telepact-console 1.0.0-alpha.295 → 1.0.0-alpha.296

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,353 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./cssMode-BRmbjg4C.js","./editor.api2-lTxZTfFP.js","./editor-CGi5ri4_.css","./lspLanguageFeatures-BO5MucrV.js","./workers-BeqnF4UC.js","./htmlMode-C3ZQVhHp.js","./jsonMode-CrR43d9c.js","./freemarker2-Cq0uyz3e.js","./handlebars-6oGY26qE.js","./html-Dc_ZOo0Y.js","./javascript-J6hFIx3j.js","./typescript-RWL1VjFc.js","./liquid-BvjaO_1L.js","./mdx-CqnTgdpx.js","./python-BF7ZUA_J.js","./razor-ZBexMQVN.js","./xml-CNdzyI0v.js","./yaml-BwV3VO0L.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,c as t,d as n,f as r,i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,u as p}from"./editor.api2-lTxZTfFP.js";import{n as m,r as h,t as g}from"./monaco.contribution-CHTVlZuL.js";import"./workers-BeqnF4UC.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var _=r((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+te(a,u),c+=ne(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+te(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.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=t)}if(e._status===1)return e._result.default;throw e._result}var j=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},M={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=M,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,j)}catch(e){j(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),v=r(((e,t)=>{t.exports=_()})),y=r((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),b=r(((e,t)=>{t.exports=y()})),x=r((e=>{var t=v();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.4`})),S=r(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=x()})),C=r((e=>{var t=b(),n=v(),r=S();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),k=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case y:return`Profiler`;case _:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case C:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function ce(e){return{current:e}}function le(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function ue(e,t){se++,oe[se]=e.current,e.current=t}var de=ce(null),fe=ce(null),pe=ce(null),me=ce(null);function he(e,t){switch(ue(pe,t),ue(fe,e),ue(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ef(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ef(t),e=tf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(de),ue(de,e)}function ge(){le(de),le(fe),le(pe)}function _e(e){e.memoizedState!==null&&ue(me,e);var t=de.current,n=tf(t,e.type);t!==n&&(ue(fe,e),ue(de,n))}function ve(e){fe.current===e&&(le(de),le(fe)),me.current===e&&(le(me),dp._currentValue=ae)}var ye,be;function xe(e){if(ye===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ye=t&&t[1]||``,be=-1<e.stack.indexOf(`
3
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
+ `+ye+e+be}var Se=!1;function Ce(e,t){if(!e||Se)return``;Se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
+ `),l=s.split(`
6
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?xe(n):``}function N(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe(`Lazy`);case 13:return e.child!==t&&t!==null?xe(`Suspense Fallback`):xe(`Suspense`);case 19:return xe(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return xe(`Activity`);default:return``}}function we(e){try{var t=``,n=null;do t+=N(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
+ Error generating stack: `+e.message+`
9
+ `+e.stack}}var Te=Object.prototype.hasOwnProperty,P=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,Ne=t.unstable_NormalPriority,Pe=t.unstable_LowPriority,Fe=t.unstable_IdlePriority,Ie=t.log,Le=t.unstable_setDisableYieldValue,Re=null,ze=null;function Be(e){if(typeof Ie==`function`&&Le(e),ze&&typeof ze.setStrictMode==`function`)try{ze.setStrictMode(Re,e)}catch{}}var Ve=Math.clz32?Math.clz32:We,He=Math.log,Ue=Math.LN2;function We(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ge=256,Ke=262144,qe=4194304;function Je(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function F(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $e(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function et(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ve(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&tt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function tt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function nt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function rt(e,t){var n=t&-t;return n=n&42?1:it(n),(n&(e.suspendedLanes|t))===0?n:0}function it(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function at(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ot(){var e=M.p;return e===0?(e=window.event,e===void 0?32:Dp(e.type)):e}function st(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var ct=Math.random().toString(36).slice(2),lt=`__reactFiber$`+ct,ut=`__reactProps$`+ct,dt=`__reactContainer$`+ct,ft=`__reactEvents$`+ct,pt=`__reactListeners$`+ct,mt=`__reactHandles$`+ct,ht=`__reactResources$`+ct,gt=`__reactMarker$`+ct;function _t(e){delete e[lt],delete e[ut],delete e[ft],delete e[pt],delete e[mt]}function vt(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dt]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wf(e);e!==null;){if(n=e[lt])return n;e=wf(e)}return t}e=n,n=e.parentNode}return null}function yt(e){if(e=e[lt]||e[dt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function xt(e){var t=e[ht];return t||=e[ht]={hoistableStyles:new Map,hoistableScripts:new Map},t}function St(e){e[gt]=!0}var Ct=new Set,I={};function wt(e,t){Tt(e,t),Tt(e+`Capture`,t)}function Tt(e,t){for(I[e]=t,e=0;e<t.length;e++)Ct.add(t[e])}var Et=RegExp(`^[: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]*$`),Dt={},Ot={};function kt(e){return Te.call(Ot,e)?!0:Te.call(Dt,e)?!1:Et.test(e)?Ot[e]=!0:(Dt[e]=!0,!1)}function At(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function jt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Mt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Nt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Pt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ft(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function It(e){if(!e._valueTracker){var t=Pt(e)?`checked`:`value`;e._valueTracker=Ft(e,t,``+e[t])}}function Lt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Pt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Rt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var zt=/[\n"\\]/g;function Bt(e){return e.replace(zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Vt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Nt(t)):e.value!==``+Nt(t)&&(e.value=``+Nt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ut(e,o,Nt(n)):Ut(e,o,Nt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Nt(s):e.removeAttribute(`name`)}function Ht(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){It(e);return}n=n==null?``:``+Nt(n),t=t==null?n:``+Nt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),It(e)}function Ut(e,t,n){t===`number`&&Rt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Wt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Nt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gt(e,t,n){if(t!=null&&(t=``+Nt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Nt(n)}function Kt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Nt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),It(e)}function qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Yt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Jt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Xt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Yt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Yt(e,o,t[o])}function Zt(e){if(e.indexOf(`-`)===-1)return!1;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 Qt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),$t=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function en(e){return $t.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function tn(){}var nn=null;function rn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var an=null,on=null;function sn(e){var t=yt(e);if(t&&(e=t.stateNode)){var n=e[ut]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Bt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ut]||null;if(!a)throw Error(i(90));Vt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Lt(r)}break a;case`textarea`:Gt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Wt(e,!!n.multiple,t,!1)}}}var cn=!1;function ln(e,t,n){if(cn)return e(t,n);cn=!0;try{return e(t)}finally{if(cn=!1,(an!==null||on!==null)&&(Au(),an&&(t=an,e=on,on=an=null,sn(t),e)))for(t=0;t<e.length;t++)sn(e[t])}}function un(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ut]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var dn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),fn=!1;if(dn)try{var pn={};Object.defineProperty(pn,`passive`,{get:function(){fn=!0}}),window.addEventListener(`test`,pn,pn),window.removeEventListener(`test`,pn,pn)}catch{fn=!1}var mn=null,hn=null,gn=null;function _n(){if(gn)return gn;var e,t=hn,n=t.length,r,i=`value`in mn?mn.value:mn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return gn=i.slice(e,1<r?1-r:void 0)}function vn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yn(){return!0}function bn(){return!1}function xn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?yn:bn,this.isPropagationStopped=bn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=yn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=yn)},persist:function(){},isPersistent:yn}),t}var Sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cn=xn(Sn),wn=f({},Sn,{view:0,detail:0}),Tn=xn(wn),En,Dn,On,kn=f({},wn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bn,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!==On&&(On&&e.type===`mousemove`?(En=e.screenX-On.screenX,Dn=e.screenY-On.screenY):Dn=En=0,On=e),En)},movementY:function(e){return`movementY`in e?e.movementY:Dn}}),An=xn(kn),jn=xn(f({},kn,{dataTransfer:0})),Mn=xn(f({},wn,{relatedTarget:0})),Nn=xn(f({},Sn,{animationName:0,elapsedTime:0,pseudoElement:0})),Pn=xn(f({},Sn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Fn=xn(f({},Sn,{data:0})),In={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Ln={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`},Rn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rn[e])?!!t[e]:!1}function Bn(){return zn}var Vn=xn(f({},wn,{key:function(e){if(e.key){var t=In[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=vn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Ln[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bn,charCode:function(e){return e.type===`keypress`?vn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?vn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Hn=xn(f({},kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Un=xn(f({},wn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bn})),Wn=xn(f({},Sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Gn=xn(f({},kn,{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})),Kn=xn(f({},Sn,{newState:0,oldState:0})),qn=[9,13,27,32],Jn=dn&&`CompositionEvent`in window,Yn=null;dn&&`documentMode`in document&&(Yn=document.documentMode);var Xn=dn&&`TextEvent`in window&&!Yn,Zn=dn&&(!Jn||Yn&&8<Yn&&11>=Yn),Qn=` `,$n=!1;function er(e,t){switch(e){case`keyup`:return qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function tr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var nr=!1;function rr(e,t){switch(e){case`compositionend`:return tr(t);case`keypress`:return t.which===32?($n=!0,Qn):null;case`textInput`:return e=t.data,e===Qn&&$n?null:e;default:return null}}function ir(e,t){if(nr)return e===`compositionend`||!Jn&&er(e,t)?(e=_n(),gn=hn=mn=null,nr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Zn&&t.locale!==`ko`?null:t.data;default:return null}}var ar={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 or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ar[e.type]:t===`textarea`}function sr(e,t,n,r){an?on?on.push(r):on=[r]:an=r,t=Rd(t,`onChange`),0<t.length&&(n=new Cn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var cr=null,lr=null;function ur(e){Ad(e,0)}function dr(e){if(Lt(bt(e)))return e}function fr(e,t){if(e===`change`)return t}var pr=!1;if(dn){var mr;if(dn){var hr=`oninput`in document;if(!hr){var gr=document.createElement(`div`);gr.setAttribute(`oninput`,`return;`),hr=typeof gr.oninput==`function`}mr=hr}else mr=!1;pr=mr&&(!document.documentMode||9<document.documentMode)}function _r(){cr&&(cr.detachEvent(`onpropertychange`,vr),lr=cr=null)}function vr(e){if(e.propertyName===`value`&&dr(lr)){var t=[];sr(t,lr,e,rn(e)),ln(ur,t)}}function yr(e,t,n){e===`focusin`?(_r(),cr=t,lr=n,cr.attachEvent(`onpropertychange`,vr)):e===`focusout`&&_r()}function br(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return dr(lr)}function xr(e,t){if(e===`click`)return dr(t)}function Sr(e,t){if(e===`input`||e===`change`)return dr(t)}function Cr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var wr=typeof Object.is==`function`?Object.is:Cr;function Tr(e,t){if(wr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Te.call(t,i)||!wr(e[i],t[i]))return!1}return!0}function Er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dr(e,t){var n=Er(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Er(n)}}function Or(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Or(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rt(e.document)}return t}function Ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var jr=dn&&`documentMode`in document&&11>=document.documentMode,Mr=null,Nr=null,Pr=null,Fr=!1;function Ir(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fr||Mr==null||Mr!==Rt(r)||(r=Mr,`selectionStart`in r&&Ar(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}),Pr&&Tr(Pr,r)||(Pr=r,r=Rd(Nr,`onSelect`),0<r.length&&(t=new Cn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Mr)))}function Lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Rr={animationend:Lr(`Animation`,`AnimationEnd`),animationiteration:Lr(`Animation`,`AnimationIteration`),animationstart:Lr(`Animation`,`AnimationStart`),transitionrun:Lr(`Transition`,`TransitionRun`),transitionstart:Lr(`Transition`,`TransitionStart`),transitioncancel:Lr(`Transition`,`TransitionCancel`),transitionend:Lr(`Transition`,`TransitionEnd`)},zr={},Br={};dn&&(Br=document.createElement(`div`).style,`AnimationEvent`in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),`TransitionEvent`in window||delete Rr.transitionend.transition);function Vr(e){if(zr[e])return zr[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Br)return zr[e]=t[n];return e}var Hr=Vr(`animationend`),Ur=Vr(`animationiteration`),Wr=Vr(`animationstart`),Gr=Vr(`transitionrun`),Kr=Vr(`transitionstart`),qr=Vr(`transitioncancel`),Jr=Vr(`transitionend`),Yr=new Map,Xr=`abort auxClick beforeToggle 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(` `);Xr.push(`scrollEnd`);function Zr(e,t){Yr.set(e,t),wt(t,[e])}var Qr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},$r=[],ei=0,ti=0;function ni(){for(var e=ei,t=ti=ei=0;t<e;){var n=$r[t];$r[t++]=null;var r=$r[t];$r[t++]=null;var i=$r[t];$r[t++]=null;var a=$r[t];if($r[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&oi(n,i,a)}}function ri(e,t,n,r){$r[ei++]=e,$r[ei++]=t,$r[ei++]=n,$r[ei++]=r,ti|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ii(e,t,n,r){return ri(e,t,n,r),si(e)}function ai(e,t){return ri(e,null,null,t),si(e)}function oi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ve(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function si(e){if(50<xu)throw xu=0,Su=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ci={};function li(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ui(e,t,n,r){return new li(e,t,n,r)}function L(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var n=e.alternate;return n===null?(n=ui(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function R(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)L(e)&&(s=1);else if(typeof e==`string`)s=np(e,n,de.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=ui(31,n,t,a),e.elementType=ee,e.lanes=o,e;case g:return pi(n.children,a,o,t);case _:s=8,a|=24;break;case y:return e=ui(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case T:return e=ui(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ui(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case x:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ui(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ui(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ui(6,e,null,t),e.lanes=n,e}function hi(e){var t=ui(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ui(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-Ve(r)-1;r&=~(1<<i),n+=1;var a=32-Ve(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-Ve(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,Fi=!1,Ii=null,Li=!1,Ri=Error(i(519));function zi(e){throw Gi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ri}function Bi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[lt]=e,t[ut]=r,n){case`dialog`:jd(`cancel`,t),jd(`close`,t);break;case`iframe`:case`object`:case`embed`:jd(`load`,t);break;case`video`:case`audio`:for(n=0;n<Od.length;n++)jd(Od[n],t);break;case`source`:jd(`error`,t);break;case`img`:case`image`:case`link`:jd(`error`,t),jd(`load`,t);break;case`details`:jd(`toggle`,t);break;case`input`:jd(`invalid`,t),Ht(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:jd(`invalid`,t);break;case`textarea`:jd(`invalid`,t),Kt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Wd(t.textContent,n)?(r.popover!=null&&(jd(`beforetoggle`,t),jd(`toggle`,t)),r.onScroll!=null&&jd(`scroll`,t),r.onScrollEnd!=null&&jd(`scrollend`,t),r.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||zi(e,!0)}function Vi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Li=!1;return;case 27:case 3:Li=!0;return;default:Ni=Ni.return}}function Hi(e){if(e!==Ni)return!1;if(!Fi)return Vi(e),Fi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||nf(e.type,e.memoizedProps)),n=!n),n&&Pi&&zi(e),Vi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=Cf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=Cf(e)}else t===27?(t=Pi,df(e.type)?(e=Sf,Sf=null,Pi=e):Pi=t):Pi=Ni?xf(e.stateNode.nextSibling):null;return!0}function Ui(){Pi=Ni=null,Fi=!1}function Wi(){var e=Ii;return e!==null&&(su===null?su=e:su.push.apply(su,e),Ii=null),e}function Gi(e){Ii===null?Ii=[e]:Ii.push(e)}var Ki=ce(null),qi=null,Ji=null;function Yi(e,t,n){ue(Ki,t._currentValue),t._currentValue=n}function Xi(e){e._currentValue=Ki.current,le(Ki)}function Zi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Qi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Zi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Zi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function $i(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;wr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===me.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dp]:e.push(dp))}a=a.return}e!==null&&Qi(t,e,n,r),t.flags|=262144}function ea(e){for(e=e.firstContext;e!==null;){if(!wr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ta(e){qi=e,Ji=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function na(e){return ia(qi,e)}function ra(e,t){return qi===null&&ta(e),ia(e,t)}function ia(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ji===null){if(e===null)throw Error(i(308));Ji=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ji=Ji.next=t;return n}var aa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},oa=t.unstable_scheduleCallback,sa=t.unstable_NormalPriority,ca={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function la(){return{controller:new aa,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&oa(sa,function(){e.controller.abort()})}var da=null,fa=0,pa=0,ma=null;function ha(e,t){if(da===null){var n=da=[];fa=0,pa=Sd(),ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return fa++,t.then(ga,ga),t}function ga(){if(--fa===0&&da!==null){ma!==null&&(ma.status=`fulfilled`);var e=da;da=null,pa=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _a(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var va=j.S;j.S=function(e,t){uu=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&ha(e,t),va!==null&&va(e,t)};var ya=ce(null);function z(){var e=ya.current;return e===null?Gl.pooledCache:e}function ba(e,t){t===null?ue(ya,ya.current):ue(ya,t.pool)}function xa(){var e=z();return e===null?null:{parent:ca._currentValue,pool:e}}var B=Error(i(460)),Sa=Error(i(474)),Ca=Error(i(542)),wa={then:function(){}};function Ta(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ea(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(tn,tn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e;default:if(typeof t.status==`string`)t.then(tn,tn);else{if(e=Gl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e}throw Oa=t,B}}function Da(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Oa=e,B):e}}var Oa=null;function ka(){if(Oa===null)throw Error(i(459));var e=Oa;return Oa=null,e}function Aa(e){if(e===B||e===Ca)throw Error(i(483))}var ja=null,Ma=0;function Na(e){var t=Ma;return Ma+=1,ja===null&&(ja=[]),Ea(ja,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ia(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Da(i)===t.type)?(t=a(t,n.props),Pa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Pa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=fi(t.type,t.key,t.props,null,e.mode,n),Pa(n,t),n.return=e,n;case h:return t=gi(t,e.mode,n),t.return=e,t;case O:return t=Da(t),f(e,t,n)}if(ie(t)||A(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Na(t),n);if(t.$$typeof===C)return f(e,ra(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case O:return n=Da(n),p(e,t,n,r)}if(ie(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Na(n),r);if(n.$$typeof===C)return p(e,t,ra(e,n),r);Fa(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Da(r),_(e,t,n,r,i)}if(ie(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Na(r),i);if(r.$$typeof===C)return _(e,t,n,ra(t,r),i);Fa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Fi&&Oi(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Fi&&Oi(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Fi&&Oi(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Fi&&Oi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Fi&&Oi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Fi&&Oi(a,h),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Da(l)===r.type){n(e,r.sibling),c=a(r,o.props),Pa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Pa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Da(o),b(e,r,o,c)}if(ie(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Na(o),c);if(o.$$typeof===C)return b(e,r,ra(e,o),c);Fa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ma=0;var i=b(e,t,n,r);return ja=null,i}catch(t){if(t===B||t===Ca)throw t;var a=ui(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Wl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=si(e),oi(e,null,n),t}return ri(e,r,t,n),si(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=ma;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(ql&p)===p:(r&p)===p){p!==0&&p===pa&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:za=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),tu|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=ce(null),Qa=ce(0);function $a(e,t){e=$l,ue(Qa,e),ue(Za,t),$l=e|t.baseLanes}function eo(){ue(Qa,$l),ue(Za,Za.current)}function to(){$l=Qa.current,le(Za),le(Qa)}var no=ce(null),ro=null;function io(e){var t=e.alternate;ue(lo,lo.current&1),ue(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){ue(lo,lo.current),ue(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(ue(lo,lo.current),ue(no,e),ro===null&&(ro=e)):so(e)}function so(){ue(lo,lo.current),ue(no,no.current)}function co(e){le(no),ro===e&&(ro=null),le(lo)}var lo=ce(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vf(n)||yf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,po=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return fo=a,po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Hs:Us,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){j.H=Vs;var t=mo!==null&&mo.next!==null;if(fo=0,ho=mo=po=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||oc||(e=e.dependencies,e!==null&&ea(e)&&(oc=!0))}function Do(e,t,n,r){po=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Ws,o=t(n,r)}while(_o);return o}function Oo(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(po.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}fo=0,ho=mo=po=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?po.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=po.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?po.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw po.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?po.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Ea(xo,e,t),t=po,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Hs:Us),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===C)return na(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=po.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=po.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),po.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),mo,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(ql&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===pa&&(d=!0);else if((fo&p)===p){u=u.next,p===pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,po.lanes|=p,tu|=p;f=u.action,vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,po.lanes|=f,tu|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!wr(o,e.memoizedState)&&(oc=!0,d&&(n=ma,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);wr(o,t.memoizedState)||(oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=po,a=No(),o=Fi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!wr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,oc=!0),a=a.queue,ps(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),Gl===null)throw Error(i(349));o||fo&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=po.updateQueue,t===null?(t=Po(),po.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wr(e,n)}catch{return!0}}function qo(e){var t=ai(e,2);t!==null&&Tu(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,mo,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Rs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(Fi){var n=Gl.formState;if(n!==null){a:{var r=po;if(Fi){if(Pi){b:{for(var i=Pi,a=Li;i.nodeType!==8;){if(!a){i=null;break b}if(i=xf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=xf(i.nextSibling),r=i.data===`F!`;break a}}zi(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Fs.bind(null,po,r),r.dispatch=n,r=Jo(!1),a=Ls.bind(null,po,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,po,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(No(),mo,e)}function as(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===B?Ca:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(po.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=No(),n=mo;if(n!==null)return as(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=po.updateQueue,t===null&&(t=Po(),po.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ls(){return No().memoizedState}function us(e,t,n,r){var i=Mo();po.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(po.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){po.flags|=4;var t=po.updateQueue;if(t===null)t=Po(),po.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=No().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(Wl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||fo&1073741824&&!(ql&261930)?e.memoizedState=t:(e.memoizedState=n,e=wu(),po.lanes|=e,tu|=e,n)}function ws(e,t,n,r){return wr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(ql&261930)?(oc=!0,e.memoizedState=n):(e=wu(),po.lanes|=e,tu|=e,t):(e=Cs(e,n,r),wr(e,t)||(oc=!0),e)}function Ts(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Ls(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,_a(c,r),Cu(e)):Is(e,t,r,Cu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},Cu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,ae,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},Cu())}function As(){return na(dp)}function js(){return No().memoizedState}function Ms(){return No().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(Tu(r,t,n),Wa(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=Cu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ii(e,t,n,r),n!==null&&(Tu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,Cu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,wr(s,o))return ri(e,t,i,0),Gl===null&&ni(),!1}catch{}if(n=ii(e,t,i,r),n!==null)return Tu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:Sd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(i(479))}else t=ii(e,n,r,2),t!==null&&Tu(t,e,2)}function Rs(e){var t=e.alternate;return e===po||t!==null&&t===po}function zs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}var Vs={readContext:na,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};Vs.useEffectEvent=Co;var Hs={readContext:na,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:na,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,po,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,po,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,po,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=po,a=Mo();if(Fi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Gl===null)throw Error(i(349));ql&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=Gl.identifierPrefix;if(Fi){var n=Di,r=Ei;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,po,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=Ns.bind(null,po)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(Wl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:na,use:Io,useCallback:xs,useContext:na,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:zo,useRef:ls,useState:function(){return zo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(No(),mo.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(No(),mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:na,use:Io,useCallback:xs,useContext:na,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){var n=No();return mo===null?Cs(n,e,t):ws(n,mo.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(Tu(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(Tu(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(Tu(t,e,n),Wa(t,e,n))}};function qs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Tr(n,r)||!Tr(i,a):!0}function Js(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function Ys(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xs(e){Qr(e)}function Zs(e){console.error(e)}function Qs(e){Qr(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ha(e),e.tag=3,e}function rc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(pu===null?pu=new Set([this]):pu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&$i(t,n,a,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?Lu():n.alternate===null&&eu===0&&(eu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),nd(e,r,a)),!1;case 22:return n.flags|=65536,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),nd(e,r,a)),!1}throw Error(i(435,n.tag))}return nd(e,r,a),Lu(),!1}if(Fi)return t=no.current,t===null?(r!==Ri&&(t=Error(i(423),{cause:r}),Gi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=tc(e.stateNode,r,a),Ga(e,a),eu!==4&&(eu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ri&&(e=Error(i(422),{cause:r}),Gi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),ou===null?ou=[o]:ou.push(o),eu!==4&&(eu=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=tc(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(pu===null||!pu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=nc(a),rc(a,e,n,r),Ga(n,a),!1}n=n.return}while(n!==null);return!1}var ac=Error(i(461)),oc=!1;function sc(e,t,n,r){t.child=e===null?Ra(t,null,n,r):La(t,e.child,n,r)}function cc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ta(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!oc?(Ao(e,t,i),Mc(e,t,i)):(Fi&&s&&Ai(t),t.flags|=1,sc(e,t,r,i),t.child)}function lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!L(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Nc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Tr:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=di(a,r),e.ref=t.ref,e.return=t,t.child=e}function uc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Tr(a,r)&&e.ref===t.ref)if(oc=!1,t.pendingProps=r=a,Nc(e,i))e.flags&131072&&(oc=!0);else return t.lanes=e.lanes,Mc(e,t,i)}return vc(e,t,n,r,i)}function dc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),eo(),so(t)):(ba(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return sc(e,t,i,n),t.child}function fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pc(e,t,n,r,i){var a=z();return a=a===null?null:{parent:ca._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),eo(),oo(t),e!==null&&$i(e,t,r,!0),t.childLanes=i,null}function mc(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hc(e,t,n){return La(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Fi){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(ao(t),(e=Pi)?(e=_f(e,Li),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw zi(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ao(t),a)if(t.flags&256)t.flags&=-257,t=hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(oc||$i(e,t,n,!1),a=(n&e.childLanes)!==0,oc||a){if(r=Gl,r!==null&&(s=rt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ai(e,s),Tu(r,e,s),ac;Lu(),t=hc(e,t,n)}else e=o.treeContext,Pi=xf(s.nextSibling),Ni=t,Fi=!0,Ii=null,Li=!1,e!==null&&Mi(t,e),t=mc(t,r),t.flags|=4096;return t}return e=di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vc(e,t,n,r,i){return ta(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!oc?(Ao(e,t,i),Mc(e,t,i)):(Fi&&r&&Ai(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return ta(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!oc?(Ao(e,t,a),Mc(e,t,a)):(Fi&&r&&Ai(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(ta(t),t.stateNode===null){var a=ci,o=n.contextType;typeof o==`object`&&o&&(a=na(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ks,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?na(o):ci,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Gs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ks.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ys(n,s);a.props=c;var l=a.context,u=n.contextType;o=ci,typeof u==`object`&&u&&(o=na(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Js(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=za||qs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ci,typeof l==`object`&&l&&(c=na(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Js(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&ea(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=za||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ea(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,_c(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=La(t,e.child,null,i),t.child=La(t,null,n,i)):sc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Mc(e,t,i),e}function xc(e,t,n,r){return Ui(),t.flags|=256,sc(e,t,n,r),t.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:xa()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=iu),e}function Tc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(lo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Fi){if(a?io(t):so(t),(e=Pi)?(e=_f(e,Li),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw zi(t);return yf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(so(t),a=t.mode,c=Dc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(null,r)):(io(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(io(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,a=t.mode,r=Dc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,La(t,e.child,null,n),r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,t=fc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),yf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Gi({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(oc||$i(e,t,n,!1),s=(n&e.childLanes)!==0,oc||s){if(s=Gl,s!==null&&(r=rt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ai(e,r),Tu(s,e,r),ac;vf(c)||Lu(),t=Oc(e,t,n)}else vf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=xf(c.nextSibling),Ni=t,Fi=!0,Ii=null,Li=!1,e!==null&&Mi(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return a?(so(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=di(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=di(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,fc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Cc(n):(a=c.cachePool,a===null?a=xa():(l=ca._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=Dc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=ui(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return La(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zi(e.return,t,n)}function Ac(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,ue(lo,o),sc(e,t,r,n),r=Fi?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n,t);else if(e.tag===19)kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ac(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ac(t,!0,n,null,a,r);break;case`together`:Ac(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tu|=t.lanes,(n&t.childLanes)===0)if(e!==null){if($i(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ea(e))):!0}function Pc(e,t,n){switch(t.tag){case 3:he(t,t.stateNode.containerInfo),Yi(t,ca,e.memoizedState.cache),Ui();break;case 27:case 5:_e(t);break;case 4:he(t,t.stateNode.containerInfo);break;case 10:Yi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=($i(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(lo,lo.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:Yi(t,ca,e.memoizedState.cache)}return Mc(e,t,n)}function Fc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)oc=!0;else{if(!Nc(e,n)&&!(t.flags&128))return oc=!1,Pc(e,t,n);oc=!!(e.flags&131072)}else oc=!1,Fi&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e==`function`)L(e)?(r=Ys(e,r),t.tag=1,t=bc(null,t,e,r,n)):(t.tag=0,t=vc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=cc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ys(r,t.pendingProps),bc(e,t,r,a,n);case 3:a:{if(he(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Yi(t,ca,r),r!==o.cache&&Qi(t,[ca],n,!0),qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=xc(e,t,r,n);break a}else if(r!==a){a=vi(Error(i(424)),t),Gi(a),t=xc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=xf(e.firstChild),Ni=t,Fi=!0,Ii=null,Li=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ui(),r===a){t=Mc(e,t,n);break a}sc(e,t,r,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=Hf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fi||(n=t.type,e=t.pendingProps,r=$d(pe.current).createElement(n),r[lt]=t,r[ut]=e,qd(r,n,e),St(r),t.stateNode=r):t.memoizedState=Hf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _e(t),e===null&&Fi&&(r=t.stateNode=Tf(t.type,t.pendingProps,pe.current),Ni=t,Li=!0,a=Pi,df(t.type)?(Sf=a,Pi=xf(r.firstChild)):Pi=a),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fi&&((a=r=Pi)&&(r=hf(r,t.type,t.pendingProps,Li),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=xf(r.firstChild),Li=!1,a=!0)),a||zi(t)),_e(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,nf(a,o)?r=null:s!==null&&nf(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),dp._currentValue=a),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&Fi&&((e=n=Pi)&&(n=gf(n,t.pendingProps,Li),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||zi(t)),null;case 13:return Tc(e,t,n);case 4:return he(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=La(t,null,r,n):sc(e,t,r,n),t.child;case 11:return cc(e,t,t.type,t.pendingProps,n);case 7:return sc(e,t,t.pendingProps,n),t.child;case 8:return sc(e,t,t.pendingProps.children,n),t.child;case 12:return sc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Yi(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ta(t),a=na(a),r=r(a),t.flags|=1,sc(e,t,r,n),t.child;case 14:return lc(e,t,t.type,t.pendingProps,n);case 15:return uc(e,t,t.type,t.pendingProps,n);case 19:return jc(e,t,n);case 31:return gc(e,t,n);case 22:return dc(e,t,n,t.pendingProps);case 24:return ta(t),r=na(ca),e===null?(a=z(),a===null&&(a=Gl,o=la(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ba(t),Yi(t,ca,a)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Yi(t,ca,r),r!==a.cache&&Qi(t,[ca],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Yi(t,ca,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ic(e){e.flags|=4}function Lc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Pu())e.flags|=8192;else throw Oa=wa,Sa}else e.flags&=-16777217}function Rc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t))if(Pu())e.flags|=8192;else throw Oa=wa,Sa}function zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Qe(),e.lanes|=t,au|=t)}function Bc(e,t){if(!Fi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vc(t),null;case 1:return Vc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xi(ca),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Hi(t)?Ic(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wi())),Vc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ic(t),o===null?(Vc(t),Lc(t,a,null,r,n)):(Vc(t),Rc(t,o))):o?o===e.memoizedState?(Vc(t),t.flags&=-16777217):(Ic(t),Vc(t),Rc(t,o)):(e=e.memoizedProps,e!==r&&Ic(t),Vc(t),Lc(t,a,e,r,n)),null;case 27:if(ve(t),n=pe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}e=de.current,Hi(t)?Bi(t,e):(e=Tf(a,r,n),t.stateNode=e,Ic(t))}return Vc(t),null;case 5:if(ve(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}if(o=de.current,Hi(t))Bi(t,o);else{var s=$d(pe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[lt]=t,o[ut]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(qd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ic(t)}}return Vc(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=pe.current,Hi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Wd(e.nodeValue,n)),e||zi(t,!0)}else e=$d(e).createTextNode(r),e[lt]=t,t.stateNode=e}return Vc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Hi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[lt]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),e=!1}else n=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(i(558))}return Vc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[lt]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),a=!1}else a=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),Vc(t),null);case 4:return ge(),e===null&&Pd(t.stateNode.containerInfo),Vc(t),null;case 10:return Xi(t.type),Vc(t),null;case 19:if(le(lo),r=t.memoizedState,r===null)return Vc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Bc(r,!1);else{if(eu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uo(e),o!==null){for(t.flags|=128,Bc(r,!1),e=o.updateQueue,t.updateQueue=e,zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)R(n,e),n=n.sibling;return ue(lo,lo.current&1|2),Fi&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>du&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304)}else{if(!a)if(e=uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Fi)return Vc(t),null}else 2*ke()-r.renderingStartTime>du&&n!==536870912&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Vc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=lo.current,ue(lo,a?n&1|2:n&1),Fi&&Oi(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Vc(t),t.subtreeFlags&6&&(t.flags|=8192)):Vc(t),n=t.updateQueue,n!==null&&zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&le(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xi(ca),Vc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Uc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(ca),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(lo),null;case 4:return ge(),null;case 10:return Xi(t.type),null;case 22:case 23:return co(t),to(),e!==null&&le(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xi(ca),null;case 25:return null;default:return null}}function Wc(e,t){switch(ji(t),t.tag){case 3:Xi(ca),ge();break;case 26:case 27:case 5:ve(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:le(lo);break;case 10:Xi(t.type);break;case 22:case 23:co(t),to(),e!==null&&le(ya);break;case 24:Xi(ca)}}function Gc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){td(t,t.return,e)}}function Kc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){td(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){td(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){td(e,e.return,t)}}}function Jc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){td(e,t,n)}}function Yc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){td(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){td(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){td(e,t,n)}else n.current=null}function Zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){td(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Jd(r,e.type,n,t),r[ut]=t}catch(t){td(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&df(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(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.tag===27&&df(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tn));else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);qd(t,r,n),t[lt]=e,t[ut]=n}catch(t){td(e,e.return,t)}}var il=!1,al=!1,ol=!1,sl=typeof WeakSet==`function`?WeakSet:Set,cl=null;function ll(e,t){if(e=e.containerInfo,Zd=bp,e=kr(e),Ar(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Qd={focusedElem:e,selectionRange:n},bp=!1,cl=t;cl!==null;)if(t=cl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,cl=e;else for(;cl!==null;){switch(t=cl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ys(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){td(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)mf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:mf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,cl=e;break}cl=t.return}}function ul(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Tl(e,n),r&4&&Gc(5,n);break;case 1:if(Tl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){td(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){td(n,n.return,e)}}r&64&&qc(n),r&512&&Yc(n,n.return);break;case 3:if(Tl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){td(n,n.return,e)}}break;case 27:t===null&&r&4&&rl(n);case 26:case 5:Tl(e,n),t===null&&r&4&&Zc(n),r&512&&Yc(n,n.return);break;case 12:Tl(e,n);break;case 31:Tl(e,n),r&4&&gl(e,n);break;case 13:Tl(e,n),r&4&&_l(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ad.bind(null,n),bf(e,n))));break;case 22:if(r=n.memoizedState!==null||il,!r){t=t!==null&&t.memoizedState!==null||al,i=il;var a=al;il=r,(al=t)&&!a?Dl(e,n,(n.subtreeFlags&8772)!=0):Tl(e,n),il=i,al=a}break;case 30:break;default:Tl(e,n)}}function dl(e){var t=e.alternate;t!==null&&(e.alternate=null,dl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_t(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var fl=null,pl=!1;function ml(e,t,n){for(n=n.child;n!==null;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ze&&typeof ze.onCommitFiberUnmount==`function`)try{ze.onCommitFiberUnmount(Re,n)}catch{}switch(n.tag){case 26:al||Xc(n,t),ml(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:al||Xc(n,t);var r=fl,i=pl;df(n.type)&&(fl=n.stateNode,pl=!1),ml(e,t,n),Ef(n.stateNode),fl=r,pl=i;break;case 5:al||Xc(n,t);case 6:if(r=fl,i=pl,fl=null,ml(e,t,n),fl=r,pl=i,fl!==null)if(pl)try{(fl.nodeType===9?fl.body:fl.nodeName===`HTML`?fl.ownerDocument.body:fl).removeChild(n.stateNode)}catch(e){td(n,t,e)}else try{fl.removeChild(n.stateNode)}catch(e){td(n,t,e)}break;case 18:fl!==null&&(pl?(e=fl,ff(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Kp(e)):ff(fl,n.stateNode));break;case 4:r=fl,i=pl,fl=n.stateNode.containerInfo,pl=!0,ml(e,t,n),fl=r,pl=i;break;case 0:case 11:case 14:case 15:Kc(2,n,t),al||Kc(4,n,t),ml(e,t,n);break;case 1:al||(Xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Jc(n,t,r)),ml(e,t,n);break;case 21:ml(e,t,n);break;case 22:al=(r=al)||n.memoizedState!==null,ml(e,t,n),al=r;break;default:ml(e,t,n)}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kp(e)}catch(e){td(t,t.return,e)}}}function _l(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kp(e)}catch(e){td(t,t.return,e)}}function vl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sl),t;default:throw Error(i(435,e.tag))}}function yl(e,t){var n=vl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=od.bind(null,e,t);t.then(r,r)}})}function bl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(df(c.type)){fl=c.stateNode,pl=!1;break a}break;case 5:fl=c.stateNode,pl=!1;break a;case 3:case 4:fl=c.stateNode.containerInfo,pl=!0;break a}c=c.return}if(fl===null)throw Error(i(160));hl(o,s,a),fl=null,pl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sl(t,e),t=t.sibling}var xl=null;function Sl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bl(t,e),Cl(e),r&4&&(Kc(3,e,e.return),Gc(3,e),Kc(5,e,e.return));break;case 1:bl(t,e),Cl(e),r&512&&(al||n===null||Xc(n,n.return)),r&64&&il&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=xl;if(bl(t,e),Cl(e),r&512&&(al||n===null||Xc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[gt]||o[lt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),qd(o,r,n),o[lt]=e,St(o),r=o;break a;case`link`:var s=ep(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=ep(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[lt]=e,St(o),r=o}e.stateNode=r}else tp(a,e.type,e.stateNode);else e.stateNode=Yf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?tp(a,e.type,e.stateNode):Yf(a,r,e.memoizedProps))}break;case 27:bl(t,e),Cl(e),r&512&&(al||n===null||Xc(n,n.return)),n!==null&&r&4&&Qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(bl(t,e),Cl(e),r&512&&(al||n===null||Xc(n,n.return)),e.flags&32){a=e.stateNode;try{qt(a,``)}catch(t){td(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(ol=!0);break;case 6:if(bl(t,e),Cl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){td(e,e.return,t)}}break;case 3:if($f=null,a=xl,xl=kf(t.containerInfo),bl(t,e),xl=a,Cl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kp(t.containerInfo)}catch(t){td(e,e.return,t)}ol&&(ol=!1,wl(e));break;case 4:r=xl,xl=kf(e.stateNode.containerInfo),bl(t,e),Cl(e),xl=r;break;case 12:bl(t,e),Cl(e);break;case 31:bl(t,e),Cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 13:bl(t,e),Cl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(lu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=il,d=al;if(il=u||a,al=d||l,bl(t,e),al=d,il=u,Cl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||il||al||El(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){td(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){td(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?pf(m,!0):pf(l.stateNode,!1)}catch(e){td(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,yl(e,n))));break;case 19:bl(t,e),Cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 30:break;case 21:break;default:bl(t,e),Cl(e)}}function Cl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if($c(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;nl(e,el(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(qt(o,``),n.flags&=-33),nl(e,el(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;tl(e,el(e),s);break;default:throw Error(i(161))}}catch(t){td(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ul(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kc(4,t,t.return),El(t);break;case 1:Xc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Jc(t,t.return,n),El(t);break;case 27:Ef(t.stateNode);case 26:case 5:Xc(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function Dl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Dl(i,a,n),Gc(4,a);break;case 1:if(Dl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){td(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){td(r,r.return,e)}}n&&o&64&&qc(a),Yc(a,a.return);break;case 27:rl(a);case 26:case 5:Dl(i,a,n),n&&r===null&&o&4&&Zc(a),Yc(a,a.return);break;case 12:Dl(i,a,n);break;case 31:Dl(i,a,n),n&&o&4&&gl(i,a);break;case 13:Dl(i,a,n),n&&o&4&&_l(i,a);break;case 22:a.memoizedState===null&&Dl(i,a,n),Yc(a,a.return);break;case 30:break;default:Dl(i,a,n)}t=t.sibling}}function Ol(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ua(n))}function kl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function Al(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jl(e,t,n,r),t=t.sibling}function jl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Al(e,t,n,r),i&2048&&Gc(9,t);break;case 1:Al(e,t,n,r);break;case 3:Al(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e)));break;case 12:if(i&2048){Al(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){td(t,t.return,e)}}else Al(e,t,n,r);break;case 31:Al(e,t,n,r);break;case 13:Al(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Al(e,t,n,r):(a._visibility|=2,Ml(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Al(e,t,n,r):Nl(e,t),i&2048&&Ol(o,t);break;case 24:Al(e,t,n,r),i&2048&&kl(t.alternate,t);break;default:Al(e,t,n,r)}}function Ml(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ml(a,o,s,c,i),Gc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ml(a,o,s,c,i)):u._visibility&2?Ml(a,o,s,c,i):Nl(a,o),i&&l&2048&&Ol(o.alternate,o);break;case 24:Ml(a,o,s,c,i),i&&l&2048&&kl(o.alternate,o);break;default:Ml(a,o,s,c,i)}t=t.sibling}}function Nl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Nl(n,r),i&2048&&Ol(r.alternate,r);break;case 24:Nl(n,r),i&2048&&kl(r.alternate,r);break;default:Nl(n,r)}t=t.sibling}}var Pl=8192;function Fl(e,t,n){if(e.subtreeFlags&Pl)for(e=e.child;e!==null;)Il(e,t,n),e=e.sibling}function Il(e,t,n){switch(e.tag){case 26:Fl(e,t,n),e.flags&Pl&&e.memoizedState!==null&&ip(n,xl,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,n);break;case 3:case 4:var r=xl;xl=kf(e.stateNode.containerInfo),Fl(e,t,n),xl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Pl,Pl=16777216,Fl(e,t,n),Pl=r):Fl(e,t,n));break;default:Fl(e,t,n)}}function Ll(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cl=r,Vl(r,e)}Ll(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zl(e),e=e.sibling}function zl(e){switch(e.tag){case 0:case 11:case 15:Rl(e),e.flags&2048&&Kc(9,e,e.return);break;case 3:Rl(e);break;case 12:Rl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bl(e)):Rl(e);break;default:Rl(e)}}function Bl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cl=r,Vl(r,e)}Ll(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kc(8,t,t.return),Bl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Bl(t));break;default:Bl(t)}e=e.sibling}}function Vl(e,t){for(;cl!==null;){var n=cl;switch(n.tag){case 0:case 11:case 15:Kc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ua(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,cl=r;else a:for(n=e;cl!==null;){r=cl;var i=r.sibling,a=r.return;if(dl(r),r===n){cl=null;break a}if(i!==null){i.return=a,cl=i;break a}cl=a}}}var Hl={getCacheForType:function(e){var t=na(ca),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return na(ca).controller.signal}},Ul=typeof WeakMap==`function`?WeakMap:Map,Wl=0,Gl=null,Kl=null,ql=0,Jl=0,Yl=null,Xl=!1,Zl=!1,Ql=!1,$l=0,eu=0,tu=0,nu=0,ru=0,iu=0,au=0,ou=null,su=null,cu=!1,lu=0,uu=0,du=1/0,fu=null,pu=null,mu=0,hu=null,gu=null,_u=0,vu=0,yu=null,bu=null,xu=0,Su=null;function Cu(){return Wl&2&&ql!==0?ql&-ql:j.T===null?ot():Sd()}function wu(){if(iu===0)if(!(ql&536870912)||Fi){var e=Ke;Ke<<=1,!(Ke&3932160)&&(Ke=262144),iu=e}else iu=536870912;return e=no.current,e!==null&&(e.flags|=32),iu}function Tu(e,t,n){(e===Gl&&(Jl===2||Jl===9)||e.cancelPendingCommit!==null)&&(Mu(e,0),ku(e,ql,iu,!1)),$e(e,n),(!(Wl&2)||e!==Gl)&&(e===Gl&&(!(Wl&2)&&(nu|=n),eu===4&&ku(e,ql,iu,!1)),md(e))}function Eu(e,t,n){if(Wl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Xe(e,t),a=r?Bu(e,t):Ru(e,t,!0),o=r;do{if(a===0){Zl&&!r&&ku(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Ou(n)){a=Ru(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ou;var l=c.current.memoizedState.isDehydrated;if(l&&(Mu(c,s).flags|=256),s=Ru(c,s,!1),s!==2){if(Ql&&!l){c.errorRecoveryDisabledLanes|=o,nu|=o,a=4;break a}o=su,su=a,o!==null&&(su===null?su=o:su.push.apply(su,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Mu(e,0),ku(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ku(r,t,iu,!Xl);break a;case 2:su=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=lu+300-ke(),10<a)){if(ku(r,t,iu,!Xl),Ye(r,0,!0)!==0)break a;_u=t,r.timeoutHandle=of(Du.bind(null,r,n,su,fu,cu,t,iu,nu,au,Xl,o,`Throttled`,-0,0),a);break a}Du(r,n,su,fu,cu,t,iu,nu,au,Xl,o,null,-0,0)}}break}while(1);md(e)}function Du(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Il(t,a,d);var m=(a&62914560)===a?lu-ke():(a&4194048)===a?uu-ke():0;if(m=op(d,m),m!==null){_u=a,e.cancelPendingCommit=m(qu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),ku(e,a,o,!l);return}}qu(e,t,a,n,r,i,o,s,c)}function Ou(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!wr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ku(e,t,n,r){t&=~ru,t&=~nu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ve(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&tt(e,n,t)}function Au(){return Wl&6?!0:(hd(0,!1),!1)}function ju(){if(Kl!==null){if(Jl===0)var e=Kl.return;else e=Kl,Ji=qi=null,jo(e),ja=null,Ma=0,e=Kl;for(;e!==null;)Wc(e.alternate,e),e=e.return;Kl=null}}function Mu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,sf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),_u=0,ju(),Gl=e,Kl=n=di(e.current,null),ql=t,Jl=0,Yl=null,Xl=!1,Zl=Xe(e,t),Ql=!1,au=iu=ru=nu=tu=eu=0,su=ou=null,cu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ve(r),a=1<<i;t|=e[i],r&=~a}return $l=t,ni(),n}function Nu(e,t){po=null,j.H=Vs,t===B||t===Ca?(t=ka(),Jl=3):t===Sa?(t=ka(),Jl=4):Jl=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Yl=t,Kl===null&&(eu=1,$s(e,vi(t,e.current)))}function Pu(){var e=no.current;return e===null?!0:(ql&4194048)===ql?ro===null:(ql&62914560)===ql||ql&536870912?e===ro:!1}function Fu(){var e=j.H;return j.H=Vs,e===null?Vs:e}function Iu(){var e=j.A;return j.A=Hl,e}function Lu(){eu=4,Xl||(ql&4194048)!==ql&&no.current!==null||(Zl=!0),!(tu&134217727)&&!(nu&134217727)||Gl===null||ku(Gl,ql,iu,!1)}function Ru(e,t,n){var r=Wl;Wl|=2;var i=Fu(),a=Iu();(Gl!==e||ql!==t)&&(fu=null,Mu(e,t)),t=!1;var o=eu;a:do try{if(Jl!==0&&Kl!==null){var s=Kl,c=Yl;switch(Jl){case 8:ju(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=Jl;if(Jl=0,Yl=null,Wu(e,s,c,l),n&&Zl){o=0;break a}break;default:l=Jl,Jl=0,Yl=null,Wu(e,s,c,l)}}zu(),o=eu;break}catch(t){Nu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ji=qi=null,Wl=r,j.H=i,j.A=a,Kl===null&&(Gl=null,ql=0,ni()),o}function zu(){for(;Kl!==null;)Hu(Kl)}function Bu(e,t){var n=Wl;Wl|=2;var r=Fu(),a=Iu();Gl!==e||ql!==t?(fu=null,du=ke()+500,Mu(e,t)):Zl=Xe(e,t);a:do try{if(Jl!==0&&Kl!==null){t=Kl;var o=Yl;b:switch(Jl){case 1:Jl=0,Yl=null,Wu(e,t,o,1);break;case 2:case 9:if(Ta(o)){Jl=0,Yl=null,Uu(t);break}t=function(){Jl!==2&&Jl!==9||Gl!==e||(Jl=7),md(e)},o.then(t,t);break a;case 3:Jl=7;break a;case 4:Jl=5;break a;case 7:Ta(o)?(Jl=0,Yl=null,Uu(t)):(Jl=0,Yl=null,Wu(e,t,o,7));break;case 5:var s=null;switch(Kl.tag){case 26:s=Kl.memoizedState;case 5:case 27:var c=Kl;if(s?rp(s):c.stateNode.complete){Jl=0,Yl=null;var l=c.sibling;if(l!==null)Kl=l;else{var u=c.return;u===null?Kl=null:(Kl=u,Gu(u))}break b}}Jl=0,Yl=null,Wu(e,t,o,5);break;case 6:Jl=0,Yl=null,Wu(e,t,o,6);break;case 8:ju(),eu=6;break a;default:throw Error(i(462))}}Vu();break}catch(t){Nu(e,t)}while(1);return Ji=qi=null,j.H=r,j.A=a,Wl=n,Kl===null?(Gl=null,ql=0,ni(),eu):0}function Vu(){for(;Kl!==null&&!De();)Hu(Kl)}function Hu(e){var t=Fc(e.alternate,e,$l);e.memoizedProps=e.pendingProps,t===null?Gu(e):Kl=t}function Uu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,ql);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,ql);break;case 5:jo(t);default:Wc(n,t),t=Kl=R(t,$l),t=Fc(n,t,$l)}e.memoizedProps=e.pendingProps,t===null?Gu(e):Kl=t}function Wu(e,t,n,r){Ji=qi=null,jo(t),ja=null,Ma=0;var i=t.return;try{if(ic(e,i,t,n,ql)){eu=1,$s(e,vi(n,e.current)),Kl=null;return}}catch(t){if(i!==null)throw Kl=i,t;eu=1,$s(e,vi(n,e.current)),Kl=null;return}t.flags&32768?(Fi||r===1?e=!0:Zl||ql&536870912?e=!1:(Xl=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ku(t,e)):Gu(t)}function Gu(e){var t=e;do{if(t.flags&32768){Ku(t,Xl);return}e=t.return;var n=Hc(t.alternate,t,$l);if(n!==null){Kl=n;return}if(t=t.sibling,t!==null){Kl=t;return}Kl=t=e}while(t!==null);eu===0&&(eu=5)}function Ku(e,t){do{var n=Uc(e.alternate,e);if(n!==null){n.flags&=32767,Kl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Kl=e;return}Kl=e=n}while(e!==null);eu=6,Kl=null}function qu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Qu();while(mu!==0);if(Wl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ti,et(e,n,o,s,c,l),e===Gl&&(Kl=Gl=null,ql=0),gu=t,hu=e,_u=n,vu=o,yu=a,bu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,sd(Ne,function(){return $u(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=Wl,Wl|=4;try{ll(e,t,n)}finally{Wl=s,M.p=a,j.T=r}}mu=1,Ju(),Yu(),Xu()}}function Ju(){if(mu===1){mu=0;var e=hu,t=gu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Wl;Wl|=4;try{Sl(t,e);var a=Qd,o=kr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Or(s.ownerDocument.documentElement,s)){if(c!==null&&Ar(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Dr(s,h),v=Dr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}bp=!!Zd,Qd=Zd=null}finally{Wl=i,M.p=r,j.T=n}}e.current=t,mu=2}}function Yu(){if(mu===2){mu=0;var e=hu,t=gu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Wl;Wl|=4;try{ul(e,t.alternate,t)}finally{Wl=i,M.p=r,j.T=n}}mu=3}}function Xu(){if(mu===4||mu===3){mu=0,Oe();var e=hu,t=gu,n=_u,r=bu;t.subtreeFlags&10256||t.flags&10256?mu=5:(mu=0,gu=hu=null,Zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(pu=null),at(n),t=t.stateNode,ze&&typeof ze.onCommitFiberRoot==`function`)try{ze.onCommitFiberRoot(Re,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{j.T=t,M.p=i}}_u&3&&Qu(),md(e),i=e.pendingLanes,n&261930&&i&42?e===Su?xu++:(xu=0,Su=e):xu=0,hd(0,!1)}}function Zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function Qu(){return Ju(),Yu(),Xu(),$u()}function $u(){if(mu!==5)return!1;var e=hu,t=vu;vu=0;var n=at(_u),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=yu,yu=null;var o=hu,s=_u;if(mu=0,gu=hu=null,_u=0,Wl&6)throw Error(i(331));var c=Wl;if(Wl|=4,zl(o.current),jl(o,o.current,s,n),Wl=c,hd(0,!1),ze&&typeof ze.onPostCommitFiberRoot==`function`)try{ze.onPostCommitFiberRoot(Re,o)}catch{}return!0}finally{M.p=a,j.T=r,Zu(e,t)}}function ed(e,t,n){t=vi(n,t),t=tc(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&($e(e,2),md(e))}function td(e,t,n){if(e.tag===3)ed(e,e,n);else for(;t!==null;){if(t.tag===3){ed(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(pu===null||!pu.has(r))){e=vi(n,e),n=nc(2),r=Ua(t,n,2),r!==null&&(rc(n,r,t,e),$e(r,2),md(r));break}}t=t.return}}function nd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ul;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ql=!0,i.add(n),e=rd.bind(null,e,t,n),t.then(e,e))}function rd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Gl===e&&(ql&n)===n&&(eu===4||eu===3&&(ql&62914560)===ql&&300>ke()-lu?!(Wl&2)&&Mu(e,0):ru|=n,au===ql&&(au=0)),md(e)}function id(e,t){t===0&&(t=Qe()),e=ai(e,t),e!==null&&($e(e,t),md(e))}function ad(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function od(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),id(e,n)}function sd(e,t){return P(e,t)}var cd=null,ld=null,ud=!1,dd=!1,fd=!1,pd=0;function md(e){e!==ld&&e.next===null&&(ld===null?cd=ld=e:ld=ld.next=e),dd=!0,ud||(ud=!0,xd())}function hd(e,t){if(!fd&&dd){fd=!0;do for(var n=!1,r=cd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,bd(r,a))}else a=ql,a=Ye(r,r===Gl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,bd(r,a));r=r.next}while(n);fd=!1}}function gd(){_d()}function _d(){dd=ud=!1;var e=0;pd!==0&&af()&&(e=pd);for(var t=ke(),n=null,r=cd;r!==null;){var i=r.next,a=vd(r,t);a===0?(r.next=null,n===null?cd=i:n.next=i,i===null&&(ld=n)):(n=r,(e!==0||a&3)&&(dd=!0)),r=i}mu!==0&&mu!==5||hd(e,!1),pd!==0&&(pd=0)}function vd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ve(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Gl,n=ql,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Jl===2||Jl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),at(n)){case 2:case 8:n=Me;break;case 32:n=Ne;break;case 268435456:n=Fe;break;default:n=Ne}return r=yd.bind(null,e),n=P(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function yd(e,t){if(mu!==0&&mu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qu()&&e.callbackNode!==n)return null;var r=ql;return r=Ye(e,e===Gl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Eu(e,r,t),vd(e,ke()),e.callbackNode!=null&&e.callbackNode===n?yd.bind(null,e):null)}function bd(e,t){if(Qu())return null;Eu(e,t,!0)}function xd(){lf(function(){Wl&6?P(je,gd):_d()})}function Sd(){if(pd===0){var e=pa;e===0&&(e=Ge,Ge<<=1,!(Ge&261888)&&(Ge=256)),pd=e}return pd}function Cd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:en(``+e)}function wd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Td(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Cd((i[ut]||null).action),o=r.submitter;o&&(t=(t=o[ut]||null)?Cd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Cn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(pd!==0){var e=o?wd(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?wd(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Ed=0;Ed<Xr.length;Ed++){var Dd=Xr[Ed];Zr(Dd.toLowerCase(),`on`+(Dd[0].toUpperCase()+Dd.slice(1)))}Zr(Hr,`onAnimationEnd`),Zr(Ur,`onAnimationIteration`),Zr(Wr,`onAnimationStart`),Zr(`dblclick`,`onDoubleClick`),Zr(`focusin`,`onFocus`),Zr(`focusout`,`onBlur`),Zr(Gr,`onTransitionRun`),Zr(Kr,`onTransitionStart`),Zr(qr,`onTransitionCancel`),Zr(Jr,`onTransitionEnd`),Tt(`onMouseEnter`,[`mouseout`,`mouseover`]),Tt(`onMouseLeave`,[`mouseout`,`mouseover`]),Tt(`onPointerEnter`,[`pointerout`,`pointerover`]),Tt(`onPointerLeave`,[`pointerout`,`pointerover`]),wt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),wt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),wt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),wt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Od=`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(` `),kd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Od));function Ad(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Qr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Qr(e)}i.currentTarget=null,a=c}}}}function jd(e,t){var n=t[ft];n===void 0&&(n=t[ft]=new Set);var r=e+`__bubble`;n.has(r)||(Fd(t,e,2,!1),n.add(r))}function Md(e,t,n){var r=0;t&&(r|=4),Fd(n,e,r,t)}var Nd=`_reactListening`+Math.random().toString(36).slice(2);function Pd(e){if(!e[Nd]){e[Nd]=!0,Ct.forEach(function(t){t!==`selectionchange`&&(kd.has(t)||Md(t,!1,e),Md(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nd]||(t[Nd]=!0,Md(`selectionchange`,!1,t))}}function Fd(e,t,n,r){switch(Dp(t)){case 2:var i=xp;break;case 8:i=Sp;break;default:i=Cp}n=i.bind(null,t,n,e),i=void 0,!fn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Id(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=vt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}ln(function(){var r=a,i=rn(n),s=[];a:{var c=Yr.get(e);if(c!==void 0){var l=Cn,u=e;switch(e){case`keypress`:if(vn(n)===0)break a;case`keydown`:case`keyup`:l=Vn;break;case`focusin`:u=`focus`,l=Mn;break;case`focusout`:u=`blur`,l=Mn;break;case`beforeblur`:case`afterblur`:l=Mn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=An;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=jn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Un;break;case Hr:case Ur:case Wr:l=Nn;break;case Jr:l=Wn;break;case`scroll`:case`scrollend`:l=Tn;break;case`wheel`:l=Gn;break;case`copy`:case`cut`:case`paste`:l=Pn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Hn;break;case`toggle`:case`beforetoggle`:l=Kn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=un(m,p),g!=null&&d.push(Ld(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==nn&&(u=n.relatedTarget||n.fromElement)&&(vt(u)||u[dt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?vt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=An,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Hn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:bt(l),h=u==null?c:bt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,vt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=zd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Bd(s,c,l,d,!1),u!==null&&f!==null&&Bd(s,f,u,d,!0)}}a:{if(c=r?bt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=fr;else if(or(c))if(pr)v=Sr;else{v=br;var y=yr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Zt(r.elementType)&&(v=fr):v=xr;if(v&&=v(e,r)){sr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ut(c,`number`,c.value)}switch(y=r?bt(r):window,e){case`focusin`:(or(y)||y.contentEditable===`true`)&&(Mr=y,Nr=r,Pr=null);break;case`focusout`:Pr=Nr=Mr=null;break;case`mousedown`:Fr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Fr=!1,Ir(s,n,i);break;case`selectionchange`:if(jr)break;case`keydown`:case`keyup`:Ir(s,n,i)}var b;if(Jn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else nr?er(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Zn&&n.locale!==`ko`&&(nr||x!==`onCompositionStart`?x===`onCompositionEnd`&&nr&&(b=_n()):(mn=i,hn=`value`in mn?mn.value:mn.textContent,nr=!0)),y=Rd(r,x),0<y.length&&(x=new Fn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=tr(n),b!==null&&(x.data=b)))),(b=Xn?rr(e,n):ir(e,n))&&(x=Rd(r,`onBeforeInput`),0<x.length&&(y=new Fn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Td(s,e,r,n,i)}Ad(s,t)})}function Ld(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=un(e,n),i!=null&&r.unshift(Ld(e,i,a)),i=un(e,t),i!=null&&r.push(Ld(e,i,a))),e.tag===3)return r;e=e.return}return[]}function zd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=un(n,a),l!=null&&o.unshift(Ld(n,l,c))):i||(l=un(n,a),l!=null&&o.push(Ld(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Vd=/\r\n?/g,Hd=/\u0000|\uFFFD/g;function Ud(e){return(typeof e==`string`?e:``+e).replace(Vd,`
10
+ `).replace(Hd,``)}function Wd(e,t){return t=Ud(t),Ud(e)===t}function Gd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&qt(e,``+r);break;case`className`:jt(e,`class`,r);break;case`tabIndex`:jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:jt(e,n,r);break;case`style`:Xt(e,r,o);break;case`data`:if(t!==`object`){jt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Gd(e,t,`name`,a.name,a,null),Gd(e,t,`formEncType`,a.formEncType,a,null),Gd(e,t,`formMethod`,a.formMethod,a,null),Gd(e,t,`formTarget`,a.formTarget,a,null)):(Gd(e,t,`encType`,a.encType,a,null),Gd(e,t,`method`,a.method,a,null),Gd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`onScroll`:r!=null&&jd(`scroll`,e);break;case`onScrollEnd`:r!=null&&jd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=en(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:jd(`beforetoggle`,e),jd(`toggle`,e),At(e,`popover`,r);break;case`xlinkActuate`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:At(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Qt.get(n)||n,At(e,n,r))}}function Kd(e,t,n,r,a,o){switch(n){case`style`:Xt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&qt(e,``+r);break;case`onScroll`:r!=null&&jd(`scroll`,e);break;case`onScrollEnd`:r!=null&&jd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!I.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ut]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):At(e,n,r)}}}function qd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:jd(`error`,e),jd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Gd(e,t,o,s,n,null)}}a&&Gd(e,t,`srcSet`,n.srcSet,n,null),r&&Gd(e,t,`src`,n.src,n,null);return;case`input`:jd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Gd(e,t,r,d,n,null)}}Ht(e,o,c,l,u,s,a,!1);return;case`select`:for(a in jd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Gd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Wt(e,!!r,n,!0):Wt(e,!!r,t,!1);return;case`textarea`:for(s in jd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Gd(e,t,s,c,n,null)}Kt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Gd(e,t,l,r,n,null)}return;case`dialog`:jd(`beforetoggle`,e),jd(`toggle`,e),jd(`cancel`,e),jd(`close`,e);break;case`iframe`:case`object`:jd(`load`,e);break;case`video`:case`audio`:for(r=0;r<Od.length;r++)jd(Od[r],e);break;case`image`:jd(`error`,e),jd(`load`,e);break;case`details`:jd(`toggle`,e);break;case`embed`:case`source`:case`link`:jd(`error`,e),jd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Gd(e,t,u,r,n,null)}return;default:if(Zt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Kd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Gd(e,t,c,r,n,null))}function Jd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Gd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Gd(e,t,p,m,r,f)}}Vt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Gd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Gd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Wt(e,!!n,n?[]:``,!1):Wt(e,!!n,t,!0)):Wt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Gd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Gd(e,t,s,a,r,o)}Gt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Gd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Gd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Gd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Gd(e,t,u,p,r,m)}return;default:if(Zt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Kd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Kd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Gd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Gd(e,t,f,p,r,m)}function Yd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Xd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Yd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Yd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Zd=null,Qd=null;function $d(e){return e.nodeType===9?e:e.ownerDocument}function ef(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function tf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function nf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rf=null;function af(){var e=window.event;return e&&e.type===`popstate`?e===rf?!1:(rf=e,!0):(rf=null,!1)}var of=typeof setTimeout==`function`?setTimeout:void 0,sf=typeof clearTimeout==`function`?clearTimeout:void 0,cf=typeof Promise==`function`?Promise:void 0,lf=typeof queueMicrotask==`function`?queueMicrotask:cf===void 0?of:function(e){return cf.resolve(null).then(e).catch(uf)};function uf(e){setTimeout(function(){throw e})}function df(e){return e===`head`}function ff(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Kp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Ef(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Ef(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[gt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Ef(e.ownerDocument.body);n=i}while(n);Kp(t)}function pf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function mf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:mf(n),_t(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function hf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[gt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=xf(e.nextSibling),e===null)break}return null}function gf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=xf(e.nextSibling),e===null))return null;return e}function _f(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=xf(e.nextSibling),e===null))return null;return e}function vf(e){return e.data===`$?`||e.data===`$~`}function yf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function bf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function xf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Sf=null;function Cf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return xf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function wf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Tf(e,t,n){switch(t=$d(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ef(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_t(e)}var Df=new Map,Of=new Set;function kf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Af=M.d;M.d={f:jf,r:Mf,D:Ff,C:If,L:Lf,m:Rf,X:Bf,S:zf,M:Vf};function jf(){var e=Af.f(),t=Au();return e||t}function Mf(e){var t=yt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):Af.r(e)}var Nf=typeof document>`u`?null:document;function Pf(e,t,n){var r=Nf;if(r&&typeof t==`string`&&t){var i=Bt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Of.has(i)||(Of.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),qd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Ff(e){Af.D(e),Pf(`dns-prefetch`,e,null)}function If(e,t){Af.C(e,t),Pf(`preconnect`,e,t)}function Lf(e,t,n){Af.L(e,t,n);var r=Nf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Bt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Bt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Bt(n.imageSizes)+`"]`)):i+=`[href="`+Bt(e)+`"]`;var a=i;switch(t){case`style`:a=Uf(e);break;case`script`:a=qf(e)}Df.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Df.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wf(a))||t===`script`&&r.querySelector(Jf(a))||(t=r.createElement(`link`),qd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Rf(e,t){Af.m(e,t);var n=Nf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Bt(r)+`"][href="`+Bt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qf(e)}if(!Df.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Df.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jf(a)))return}r=n.createElement(`link`),qd(r,`link`,e),St(r),n.head.appendChild(r)}}}function zf(e,t,n){Af.S(e,t,n);var r=Nf;if(r&&e){var i=xt(r).hoistableStyles,a=Uf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Df.get(a))&&Zf(e,n);var c=o=r.createElement(`link`);St(c),qd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Xf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bf(e,t){Af.X(e,t);var n=Nf;if(n&&e){var r=xt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),St(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t){Af.M(e,t);var n=Nf;if(n&&e){var r=xt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),St(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t,n,r){var a=(a=pe.current)?kf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Uf(n.href),n=xt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Uf(n.href);var o=xt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Df.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Df.set(e,n),o||Kf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=qf(n),n=xt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Uf(e){return`href="`+Bt(e)+`"`}function Wf(e){return`link[rel="stylesheet"][`+e+`]`}function Gf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Kf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),qd(t,`link`,n),St(t),e.head.appendChild(t))}function qf(e){return`[src="`+Bt(e)+`"]`}function Jf(e){return`script[async]`+e}function Yf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Bt(n.href)+`"]`);if(r)return t.instance=r,St(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),St(r),qd(r,`style`,a),Xf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Uf(n.href);var o=e.querySelector(Wf(a));if(o)return t.state.loading|=4,t.instance=o,St(o),o;r=Gf(n),(a=Df.get(a))&&Zf(r,a),o=(e.ownerDocument||e).createElement(`link`),St(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),qd(o,`link`,r),t.state.loading|=4,Xf(o,n.precedence,e),t.instance=o;case`script`:return o=qf(n.src),(a=e.querySelector(Jf(o)))?(t.instance=a,St(a),a):(r=n,(a=Df.get(o))&&(r=f({},n),Qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),St(a),qd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xf(r,n.precedence,e));return t.instance}function Xf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var $f=null;function ep(e,t,n){if($f===null){var r=new Map,i=$f=new Map;i.set(n,r)}else i=$f,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[gt]||a[lt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function tp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function np(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function rp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ip(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Uf(r.href),a=t.querySelector(Wf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,St(a);return}a=t.ownerDocument||t,r=Gf(r),(i=Df.get(i))&&Zf(r,i),a=a.createElement(`link`),St(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),qd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ap=0;function op(e,t){return e.stylesheets&&e.count===0&&lp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ap===0&&(ap=62500*Xd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ap?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cp=null;function lp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cp=new Map,t.forEach(up,e),cp=null,sp.call(e))}function up(e,t){if(!(t.state.loading&4)){var n=cp.get(e);if(n)var r=n.get(null);else{n=new Map,cp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=sp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dp={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function fp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=F(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=F(0),this.hiddenUpdates=F(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function pp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ui(3,null,null,t),e.current=a,a.stateNode=e,t=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function mp(e){return e?(e=ci,e):ci}function hp(e,t,n,r,i,a){i=mp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(Tu(n,e,t),Wa(n,e,t))}function gp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _p(e,t){gp(e,t),(e=e.alternate)&&gp(e,t)}function vp(e){if(e.tag===13||e.tag===31){var t=ai(e,67108864);t!==null&&Tu(t,e,67108864),_p(e,67108864)}}function yp(e){if(e.tag===13||e.tag===31){var t=Cu();t=it(t);var n=ai(e,t);n!==null&&Tu(n,e,t),_p(e,t)}}var bp=!0;function xp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,Cp(e,t,n,r)}finally{M.p=a,j.T=i}}function Sp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,Cp(e,t,n,r)}finally{M.p=a,j.T=i}}function Cp(e,t,n,r){if(bp){var i=wp(r);if(i===null)Id(e,t,r,Tp,n),Ip(e,r);else if(Rp(i,e,t,n,r))r.stopPropagation();else if(Ip(e,r),t&4&&-1<Fp.indexOf(e)){for(;i!==null;){var a=yt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ve(o);s.entanglements[1]|=c,o&=~c}md(a),!(Wl&6)&&(du=ke()+500,hd(0,!1))}}break;case 31:case 13:s=ai(a,2),s!==null&&Tu(s,a,2),Au(),_p(a,2)}if(a=wp(r),a===null&&Id(e,t,r,Tp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Id(e,t,r,null,n)}}function wp(e){return e=rn(e),Ep(e)}var Tp=null;function Ep(e){if(Tp=null,e=vt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tp=e,null}function Dp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var Op=!1,kp=null,Ap=null,jp=null,Mp=new Map,Np=new Map,Pp=[],Fp=`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`.split(` `);function Ip(e,t){switch(e){case`focusin`:case`focusout`:kp=null;break;case`dragenter`:case`dragleave`:Ap=null;break;case`mouseover`:case`mouseout`:jp=null;break;case`pointerover`:case`pointerout`:Mp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Np.delete(t.pointerId)}}function Lp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=yt(t),t!==null&&vp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rp(e,t,n,r,i){switch(t){case`focusin`:return kp=Lp(kp,e,t,n,r,i),!0;case`dragenter`:return Ap=Lp(Ap,e,t,n,r,i),!0;case`mouseover`:return jp=Lp(jp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mp.set(a,Lp(Mp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Np.set(a,Lp(Np.get(a)||null,e,t,n,r,i)),!0}return!1}function zp(e){var t=vt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,st(e.priority,function(){yp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){yp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nn=r,n.target.dispatchEvent(r),nn=null}else return t=yt(n),t!==null&&vp(t),e.blockedOn=n,!1;t.shift()}return!0}function Vp(e,t,n){Bp(e)&&n.delete(t)}function Hp(){Op=!1,kp!==null&&Bp(kp)&&(kp=null),Ap!==null&&Bp(Ap)&&(Ap=null),jp!==null&&Bp(jp)&&(jp=null),Mp.forEach(Vp),Np.forEach(Vp)}function Up(e,n){e.blockedOn===n&&(e.blockedOn=null,Op||(Op=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Hp)))}var Wp=null;function Gp(e){Wp!==e&&(Wp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Wp===e&&(Wp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ep(r||n)===null)continue;break}var a=yt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Kp(e){function t(t){return Up(t,e)}kp!==null&&Up(kp,e),Ap!==null&&Up(Ap,e),jp!==null&&Up(jp,e),Mp.forEach(t),Np.forEach(t);for(var n=0;n<Pp.length;n++){var r=Pp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Pp.length&&(n=Pp[0],n.blockedOn===null);)zp(n),n.blockedOn===null&&Pp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ut]||null;if(typeof a==`function`)o||Gp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ut]||null)s=o.formAction;else if(Ep(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Gp(n)}}}function qp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Jp(e){this._internalRoot=e}Yp.prototype.render=Jp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hp(n,Cu(),e,t,null,null)},Yp.prototype.unmount=Jp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hp(e.current,2,null,e,null,null),Au(),t[dt]=null}};function Yp(e){this._internalRoot=e}Yp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pp.length&&t!==0&&t<Pp[n].priority;n++);Pp.splice(n,0,e),n===0&&zp(e)}};var Xp=n.version;if(Xp!==`19.2.4`)throw Error(i(527,Xp,`19.2.4`));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Zp={bundleType:0,version:`19.2.4`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.4`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qp.isDisabled&&Qp.supportsFiber)try{Re=Qp.inject(Zp),ze=Qp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Xs,s=Zs,c=Qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=pp(e,1,!1,null,null,n,r,null,o,s,c,qp),e[dt]=t.current,Pd(e),new Jp(t)}})),w=r(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=C()})),T=o(v(),1),E=o(w(),1),D=l({cssDefaults:()=>te,lessDefaults:()=>ne,scssDefaults:()=>A}),O=class{constructor(e,t,n){this._onDidChange=new f,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ee={validate:!0,lint:{compatibleVendorPrefixes:`ignore`,vendorPrefix:`warning`,duplicateProperties:`warning`,emptyRules:`warning`,importStatement:`ignore`,boxModel:`ignore`,universalSelector:`ignore`,zeroUnits:`ignore`,fontFaceProperties:`warning`,hexColorLength:`error`,argumentsInColorFunction:`error`,unknownProperties:`warning`,ieHack:`ignore`,unknownVendorSpecificProperties:`ignore`,propertyIgnoredDueToDisplay:`warning`,important:`ignore`,float:`ignore`,idSelector:`ignore`},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:`collapse`,maxPreserveNewLines:void 0,preserveNewLines:!0}},k={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},te=new O(`css`,ee,k),A=new O(`scss`,ee,k),ne=new O(`less`,ee,k);function re(){return h(()=>import(`./cssMode-BRmbjg4C.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url)}n.onLanguage(`less`,()=>{re().then(e=>e.setupMode(ne))}),n.onLanguage(`scss`,()=>{re().then(e=>e.setupMode(A))}),n.onLanguage(`css`,()=>{re().then(e=>e.setupMode(te))});var ie=l({handlebarDefaults:()=>fe,handlebarLanguageService:()=>de,htmlDefaults:()=>ue,htmlLanguageService:()=>le,razorDefaults:()=>me,razorLanguageService:()=>pe,registerHTMLLanguageService:()=>ge}),j=class{constructor(e,t,n){this._onDidChange=new f,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},M={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:`default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var`,contentUnformatted:`pre`,indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:`head, body, /html`,wrapAttributes:`auto`},suggest:{},data:{useDefaultDataProvider:!0}};function ae(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===oe,documentFormattingEdits:e===oe,documentRangeFormattingEdits:e===oe}}var oe=`html`,se=`handlebars`,ce=`razor`,le=ge(oe,M,ae(oe)),ue=le.defaults,de=ge(se,M,ae(se)),fe=de.defaults,pe=ge(ce,M,ae(ce)),me=pe.defaults;function he(){return h(()=>import(`./htmlMode-C3ZQVhHp.js`),__vite__mapDeps([5,1,2,3,4]),import.meta.url)}function ge(e,t=M,r=ae(e)){let i=new j(e,t,r),a,o=n.onLanguage(e,async()=>{a=(await he()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),a?.dispose(),a=void 0}}}var _e=l({getWorker:()=>ye,jsonDefaults:()=>ve}),ve=new class{constructor(e,t,n){this._onDidChange=new f,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0}),ye=()=>be().then(e=>e.getWorker());function be(){return h(()=>import(`./jsonMode-CrR43d9c.js`),__vite__mapDeps([6,1,2,3,4]),import.meta.url)}n.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),n.onLanguage(`json`,()=>{be().then(e=>e.setupMode(ve))});var xe={},Se={},Ce=class e{static getOrCreate(t){return Se[t]||(Se[t]=new e(t)),Se[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,xe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function N(e){let t=e.id;xe[t]=e,n.register(e);let r=Ce.getOrCreate(t);n.registerTokensProviderFactory(t,{create:async()=>(await r.load()).language}),n.onLanguageEncountered(t,async()=>{let e=await r.load();n.setLanguageConfiguration(t,e.conf)})}N({id:`abap`,extensions:[`.abap`],aliases:[`abap`,`ABAP`],loader:()=>h(()=>import(`./abap-BRVHlTbR.js`),[],import.meta.url)}),N({id:`apex`,extensions:[`.cls`],aliases:[`Apex`,`apex`],mimetypes:[`text/x-apex-source`,`text/x-apex`],loader:()=>h(()=>import(`./apex-GS4zZi0I.js`),[],import.meta.url)}),N({id:`azcli`,extensions:[`.azcli`],aliases:[`Azure CLI`,`azcli`],loader:()=>h(()=>import(`./azcli-TAZdLe_1.js`),[],import.meta.url)}),N({id:`bat`,extensions:[`.bat`,`.cmd`],aliases:[`Batch`,`bat`],loader:()=>h(()=>import(`./bat-BNHAuPwR.js`),[],import.meta.url)}),N({id:`bicep`,extensions:[`.bicep`],aliases:[`Bicep`],loader:()=>h(()=>import(`./bicep-BAoj49ib.js`),[],import.meta.url)}),N({id:`cameligo`,extensions:[`.mligo`],aliases:[`Cameligo`],loader:()=>h(()=>import(`./cameligo-gupdI4nQ.js`),[],import.meta.url)}),N({id:`clojure`,extensions:[`.clj`,`.cljs`,`.cljc`,`.edn`],aliases:[`clojure`,`Clojure`],loader:()=>h(()=>import(`./clojure-Bfa7OrL3.js`),[],import.meta.url)}),N({id:`coffeescript`,extensions:[`.coffee`],aliases:[`CoffeeScript`,`coffeescript`,`coffee`],mimetypes:[`text/x-coffeescript`,`text/coffeescript`],loader:()=>h(()=>import(`./coffee-B0FZSSpt.js`),[],import.meta.url)}),N({id:`c`,extensions:[`.c`,`.h`],aliases:[`C`,`c`],loader:()=>h(()=>import(`./cpp-_-gj_ws2.js`),[],import.meta.url)}),N({id:`cpp`,extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`],aliases:[`C++`,`Cpp`,`cpp`],loader:()=>h(()=>import(`./cpp-_-gj_ws2.js`),[],import.meta.url)}),N({id:`csharp`,extensions:[`.cs`,`.csx`,`.cake`],aliases:[`C#`,`csharp`],loader:()=>h(()=>import(`./csharp-BlRNCFE9.js`),[],import.meta.url)}),N({id:`csp`,extensions:[`.csp`],aliases:[`CSP`,`csp`],loader:()=>h(()=>import(`./csp-B2Z5Y_Sf.js`),[],import.meta.url)}),N({id:`css`,extensions:[`.css`],aliases:[`CSS`,`css`],mimetypes:[`text/css`],loader:()=>h(()=>import(`./css-BmeubtOS.js`),[],import.meta.url)}),N({id:`cypher`,extensions:[`.cypher`,`.cyp`],aliases:[`Cypher`,`OpenCypher`],loader:()=>h(()=>import(`./cypher-PFHDKyaL.js`),[],import.meta.url)}),N({id:`dart`,extensions:[`.dart`],aliases:[`Dart`,`dart`],mimetypes:[`text/x-dart-source`,`text/x-dart`],loader:()=>h(()=>import(`./dart-BwvfliPc.js`),[],import.meta.url)}),N({id:`dockerfile`,extensions:[`.dockerfile`],filenames:[`Dockerfile`],aliases:[`Dockerfile`],loader:()=>h(()=>import(`./dockerfile-Y-SfPMKb.js`),[],import.meta.url)}),N({id:`ecl`,extensions:[`.ecl`],aliases:[`ECL`,`Ecl`,`ecl`],loader:()=>h(()=>import(`./ecl-BLLFWuTF.js`),[],import.meta.url)}),N({id:`elixir`,extensions:[`.ex`,`.exs`],aliases:[`Elixir`,`elixir`,`ex`],loader:()=>h(()=>import(`./elixir-xXCAglHV.js`),[],import.meta.url)}),N({id:`flow9`,extensions:[`.flow`],aliases:[`Flow9`,`Flow`,`flow9`,`flow`],loader:()=>h(()=>import(`./flow9-CVf6ZIck.js`),[],import.meta.url)}),N({id:`fsharp`,extensions:[`.fs`,`.fsi`,`.ml`,`.mli`,`.fsx`,`.fsscript`],aliases:[`F#`,`FSharp`,`fsharp`],loader:()=>h(()=>import(`./fsharp-BQqR9uQ6.js`),[],import.meta.url)}),N({id:`freemarker2`,extensions:[`.ftl`,`.ftlh`,`.ftlx`],aliases:[`FreeMarker2`,`Apache FreeMarker2`],loader:()=>h(()=>import(`./freemarker2-Cq0uyz3e.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([7,1,2]),import.meta.url)}),N({id:`freemarker2.tag-angle.interpolation-dollar`,aliases:[`FreeMarker2 (Angle/Dollar)`,`Apache FreeMarker2 (Angle/Dollar)`],loader:()=>h(()=>import(`./freemarker2-Cq0uyz3e.js`).then(e=>e.TagAngleInterpolationDollar),__vite__mapDeps([7,1,2]),import.meta.url)}),N({id:`freemarker2.tag-bracket.interpolation-dollar`,aliases:[`FreeMarker2 (Bracket/Dollar)`,`Apache FreeMarker2 (Bracket/Dollar)`],loader:()=>h(()=>import(`./freemarker2-Cq0uyz3e.js`).then(e=>e.TagBracketInterpolationDollar),__vite__mapDeps([7,1,2]),import.meta.url)}),N({id:`freemarker2.tag-angle.interpolation-bracket`,aliases:[`FreeMarker2 (Angle/Bracket)`,`Apache FreeMarker2 (Angle/Bracket)`],loader:()=>h(()=>import(`./freemarker2-Cq0uyz3e.js`).then(e=>e.TagAngleInterpolationBracket),__vite__mapDeps([7,1,2]),import.meta.url)}),N({id:`freemarker2.tag-bracket.interpolation-bracket`,aliases:[`FreeMarker2 (Bracket/Bracket)`,`Apache FreeMarker2 (Bracket/Bracket)`],loader:()=>h(()=>import(`./freemarker2-Cq0uyz3e.js`).then(e=>e.TagBracketInterpolationBracket),__vite__mapDeps([7,1,2]),import.meta.url)}),N({id:`freemarker2.tag-auto.interpolation-dollar`,aliases:[`FreeMarker2 (Auto/Dollar)`,`Apache FreeMarker2 (Auto/Dollar)`],loader:()=>h(()=>import(`./freemarker2-Cq0uyz3e.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([7,1,2]),import.meta.url)}),N({id:`freemarker2.tag-auto.interpolation-bracket`,aliases:[`FreeMarker2 (Auto/Bracket)`,`Apache FreeMarker2 (Auto/Bracket)`],loader:()=>h(()=>import(`./freemarker2-Cq0uyz3e.js`).then(e=>e.TagAutoInterpolationBracket),__vite__mapDeps([7,1,2]),import.meta.url)}),N({id:`go`,extensions:[`.go`],aliases:[`Go`],loader:()=>h(()=>import(`./go-C3AlMVwy.js`),[],import.meta.url)}),N({id:`graphql`,extensions:[`.graphql`,`.gql`],aliases:[`GraphQL`,`graphql`,`gql`],mimetypes:[`application/graphql`],loader:()=>h(()=>import(`./graphql-O_-hDldf.js`),[],import.meta.url)}),N({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>h(()=>import(`./handlebars-6oGY26qE.js`),__vite__mapDeps([8,1,2]),import.meta.url)}),N({id:`hcl`,extensions:[`.tf`,`.tfvars`,`.hcl`],aliases:[`Terraform`,`tf`,`HCL`,`hcl`],loader:()=>h(()=>import(`./hcl-BQQD6Mtj.js`),[],import.meta.url)}),N({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>h(()=>import(`./html-Dc_ZOo0Y.js`),__vite__mapDeps([9,1,2]),import.meta.url)}),N({id:`ini`,extensions:[`.ini`,`.properties`,`.gitconfig`],filenames:[`config`,`.gitattributes`,`.gitconfig`,`.editorconfig`],aliases:[`Ini`,`ini`],loader:()=>h(()=>import(`./ini-Bf0RDfP_.js`),[],import.meta.url)}),N({id:`java`,extensions:[`.java`,`.jav`],aliases:[`Java`,`java`],mimetypes:[`text/x-java-source`,`text/x-java`],loader:()=>h(()=>import(`./java-nqX2KEDD.js`),[],import.meta.url)}),N({id:`javascript`,extensions:[`.js`,`.es6`,`.jsx`,`.mjs`,`.cjs`],firstLine:`^#!.*\\bnode`,filenames:[`jakefile`],aliases:[`JavaScript`,`javascript`,`js`],mimetypes:[`text/javascript`],loader:()=>h(()=>import(`./javascript-J6hFIx3j.js`),__vite__mapDeps([10,11,1,2]),import.meta.url)}),N({id:`julia`,extensions:[`.jl`],aliases:[`julia`,`Julia`],loader:()=>h(()=>import(`./julia-B6P9U5er.js`),[],import.meta.url)}),N({id:`kotlin`,extensions:[`.kt`,`.kts`],aliases:[`Kotlin`,`kotlin`],mimetypes:[`text/x-kotlin-source`,`text/x-kotlin`],loader:()=>h(()=>import(`./kotlin-iQmfEFdy.js`),[],import.meta.url)}),N({id:`less`,extensions:[`.less`],aliases:[`Less`,`less`],mimetypes:[`text/x-less`,`text/less`],loader:()=>h(()=>import(`./less-CEaIdW1f.js`),[],import.meta.url)}),N({id:`lexon`,extensions:[`.lex`],aliases:[`Lexon`],loader:()=>h(()=>import(`./lexon-Qv4pvFSW.js`),[],import.meta.url)}),N({id:`lua`,extensions:[`.lua`],aliases:[`Lua`,`lua`],loader:()=>h(()=>import(`./lua-CFpyR7YN.js`),[],import.meta.url)}),N({id:`liquid`,extensions:[`.liquid`,`.html.liquid`],aliases:[`Liquid`,`liquid`],mimetypes:[`application/liquid`],loader:()=>h(()=>import(`./liquid-BvjaO_1L.js`),__vite__mapDeps([12,1,2]),import.meta.url)}),N({id:`m3`,extensions:[`.m3`,`.i3`,`.mg`,`.ig`],aliases:[`Modula-3`,`Modula3`,`modula3`,`m3`],loader:()=>h(()=>import(`./m3-CvKhVPQn.js`),[],import.meta.url)}),N({id:`markdown`,extensions:[`.md`,`.markdown`,`.mdown`,`.mkdn`,`.mkd`,`.mdwn`,`.mdtxt`,`.mdtext`],aliases:[`Markdown`,`markdown`],loader:()=>h(()=>import(`./markdown-qldG3Vc4.js`),[],import.meta.url)}),N({id:`mdx`,extensions:[`.mdx`],aliases:[`MDX`,`mdx`],loader:()=>h(()=>import(`./mdx-CqnTgdpx.js`),__vite__mapDeps([13,1,2]),import.meta.url)}),N({id:`mips`,extensions:[`.s`],aliases:[`MIPS`,`MIPS-V`],mimetypes:[`text/x-mips`,`text/mips`,`text/plaintext`],loader:()=>h(()=>import(`./mips-0D8PRyHq.js`),[],import.meta.url)}),N({id:`msdax`,extensions:[`.dax`,`.msdax`],aliases:[`DAX`,`MSDAX`],loader:()=>h(()=>import(`./msdax-DwZXSC5M.js`),[],import.meta.url)}),N({id:`mysql`,extensions:[],aliases:[`MySQL`,`mysql`],loader:()=>h(()=>import(`./mysql-BWq85KY4.js`),[],import.meta.url)}),N({id:`objective-c`,extensions:[`.m`],aliases:[`Objective-C`],loader:()=>h(()=>import(`./objective-c-D653JUMG.js`),[],import.meta.url)}),N({id:`pascal`,extensions:[`.pas`,`.p`,`.pp`],aliases:[`Pascal`,`pas`],mimetypes:[`text/x-pascal-source`,`text/x-pascal`],loader:()=>h(()=>import(`./pascal-rWjRDdnR.js`),[],import.meta.url)}),N({id:`pascaligo`,extensions:[`.ligo`],aliases:[`Pascaligo`,`ligo`],loader:()=>h(()=>import(`./pascaligo-Db8EehaF.js`),[],import.meta.url)}),N({id:`perl`,extensions:[`.pl`,`.pm`],aliases:[`Perl`,`pl`],loader:()=>h(()=>import(`./perl-C68oq8-D.js`),[],import.meta.url)}),N({id:`pgsql`,extensions:[],aliases:[`PostgreSQL`,`postgres`,`pg`,`postgre`],loader:()=>h(()=>import(`./pgsql-BXeHe33s.js`),[],import.meta.url)}),N({id:`php`,extensions:[`.php`,`.php4`,`.php5`,`.phtml`,`.ctp`],aliases:[`PHP`,`php`],mimetypes:[`application/x-php`],loader:()=>h(()=>import(`./php-CDVsAbfl.js`),[],import.meta.url)}),N({id:`pla`,extensions:[`.pla`],loader:()=>h(()=>import(`./pla-DnryFT0q.js`),[],import.meta.url)}),N({id:`postiats`,extensions:[`.dats`,`.sats`,`.hats`],aliases:[`ATS`,`ATS/Postiats`],loader:()=>h(()=>import(`./postiats-CDg_4Ev-.js`),[],import.meta.url)}),N({id:`powerquery`,extensions:[`.pq`,`.pqm`],aliases:[`PQ`,`M`,`Power Query`,`Power Query M`],loader:()=>h(()=>import(`./powerquery-CWPi8ROz.js`),[],import.meta.url)}),N({id:`powershell`,extensions:[`.ps1`,`.psm1`,`.psd1`],aliases:[`PowerShell`,`powershell`,`ps`,`ps1`],loader:()=>h(()=>import(`./powershell-C5A0QX3-.js`),[],import.meta.url)}),N({id:`proto`,extensions:[`.proto`],aliases:[`protobuf`,`Protocol Buffers`],loader:()=>h(()=>import(`./protobuf-Cgt-BQbL.js`),[],import.meta.url)}),N({id:`pug`,extensions:[`.jade`,`.pug`],aliases:[`Pug`,`Jade`,`jade`],loader:()=>h(()=>import(`./pug-RPYJC9QB.js`),[],import.meta.url)}),N({id:`python`,extensions:[`.py`,`.rpy`,`.pyw`,`.cpy`,`.gyp`,`.gypi`],aliases:[`Python`,`py`],firstLine:`^#!/.*\\bpython[0-9.-]*\\b`,loader:()=>h(()=>import(`./python-BF7ZUA_J.js`),__vite__mapDeps([14,1,2]),import.meta.url)}),N({id:`qsharp`,extensions:[`.qs`],aliases:[`Q#`,`qsharp`],loader:()=>h(()=>import(`./qsharp-CEz_fZTu.js`),[],import.meta.url)}),N({id:`r`,extensions:[`.r`,`.rhistory`,`.rmd`,`.rprofile`,`.rt`],aliases:[`R`,`r`],loader:()=>h(()=>import(`./r-CN875f1X.js`),[],import.meta.url)}),N({id:`razor`,extensions:[`.cshtml`],aliases:[`Razor`,`razor`],mimetypes:[`text/x-cshtml`],loader:()=>h(()=>import(`./razor-ZBexMQVN.js`),__vite__mapDeps([15,1,2]),import.meta.url)}),N({id:`redis`,extensions:[`.redis`],aliases:[`redis`],loader:()=>h(()=>import(`./redis-BLesvTwR.js`),[],import.meta.url)}),N({id:`redshift`,extensions:[],aliases:[`Redshift`,`redshift`],loader:()=>h(()=>import(`./redshift-Byf_0XqD.js`),[],import.meta.url)}),N({id:`restructuredtext`,extensions:[`.rst`],aliases:[`reStructuredText`,`restructuredtext`],loader:()=>h(()=>import(`./restructuredtext-DYg_6BiZ.js`),[],import.meta.url)}),N({id:`ruby`,extensions:[`.rb`,`.rbx`,`.rjs`,`.gemspec`,`.pp`],filenames:[`rakefile`,`Gemfile`],aliases:[`Ruby`,`rb`],loader:()=>h(()=>import(`./ruby-C4OkxbC-.js`),[],import.meta.url)}),N({id:`rust`,extensions:[`.rs`,`.rlib`],aliases:[`Rust`,`rust`],loader:()=>h(()=>import(`./rust-xAoaEFMh.js`),[],import.meta.url)}),N({id:`sb`,extensions:[`.sb`],aliases:[`Small Basic`,`sb`],loader:()=>h(()=>import(`./sb-C8dHOW_y.js`),[],import.meta.url)}),N({id:`scala`,extensions:[`.scala`,`.sc`,`.sbt`],aliases:[`Scala`,`scala`,`SBT`,`Sbt`,`sbt`,`Dotty`,`dotty`],mimetypes:[`text/x-scala-source`,`text/x-scala`,`text/x-sbt`,`text/x-dotty`],loader:()=>h(()=>import(`./scala-Spx0wP1o.js`),[],import.meta.url)}),N({id:`scheme`,extensions:[`.scm`,`.ss`,`.sch`,`.rkt`],aliases:[`scheme`,`Scheme`],loader:()=>h(()=>import(`./scheme-D2mZlAUz.js`),[],import.meta.url)}),N({id:`scss`,extensions:[`.scss`],aliases:[`Sass`,`sass`,`scss`],mimetypes:[`text/x-scss`,`text/scss`],loader:()=>h(()=>import(`./scss-DDCn3Ylu.js`),[],import.meta.url)}),N({id:`shell`,extensions:[`.sh`,`.bash`],aliases:[`Shell`,`sh`],loader:()=>h(()=>import(`./shell-M6px0EWn.js`),[],import.meta.url)}),N({id:`sol`,extensions:[`.sol`],aliases:[`sol`,`solidity`,`Solidity`],loader:()=>h(()=>import(`./solidity-DUWMJi-f.js`),[],import.meta.url)}),N({id:`aes`,extensions:[`.aes`],aliases:[`aes`,`sophia`,`Sophia`],loader:()=>h(()=>import(`./sophia-DwJbUG-2.js`),[],import.meta.url)}),N({id:`sparql`,extensions:[`.rq`],aliases:[`sparql`,`SPARQL`],loader:()=>h(()=>import(`./sparql-ClQxbRPI.js`),[],import.meta.url)}),N({id:`sql`,extensions:[`.sql`],aliases:[`SQL`],loader:()=>h(()=>import(`./sql-BQdjW7Vy.js`),[],import.meta.url)}),N({id:`st`,extensions:[`.st`,`.iecst`,`.iecplc`,`.lc3lib`,`.TcPOU`,`.TcDUT`,`.TcGVL`,`.TcIO`],aliases:[`StructuredText`,`scl`,`stl`],loader:()=>h(()=>import(`./st-BpISyZ_v.js`),[],import.meta.url)}),N({id:`swift`,aliases:[`Swift`,`swift`],extensions:[`.swift`],mimetypes:[`text/swift`],loader:()=>h(()=>import(`./swift-CMbl5gM4.js`),[],import.meta.url)}),N({id:`systemverilog`,extensions:[`.sv`,`.svh`],aliases:[`SV`,`sv`,`SystemVerilog`,`systemverilog`],loader:()=>h(()=>import(`./systemverilog-jx2Xs7uO.js`),[],import.meta.url)}),N({id:`verilog`,extensions:[`.v`,`.vh`],aliases:[`V`,`v`,`Verilog`,`verilog`],loader:()=>h(()=>import(`./systemverilog-jx2Xs7uO.js`),[],import.meta.url)}),N({id:`tcl`,extensions:[`.tcl`],aliases:[`tcl`,`Tcl`,`tcltk`,`TclTk`,`tcl/tk`,`Tcl/Tk`],loader:()=>h(()=>import(`./tcl-GIGnfs89.js`),[],import.meta.url)}),N({id:`twig`,extensions:[`.twig`],aliases:[`Twig`,`twig`],mimetypes:[`text/x-twig`],loader:()=>h(()=>import(`./twig-Bc0mxc_m.js`),[],import.meta.url)}),N({id:`typescript`,extensions:[`.ts`,`.tsx`,`.cts`,`.mts`],aliases:[`TypeScript`,`ts`,`typescript`],mimetypes:[`text/typescript`],loader:()=>h(()=>import(`./typescript-RWL1VjFc.js`),__vite__mapDeps([11,1,2]),import.meta.url)}),N({id:`typespec`,extensions:[`.tsp`],aliases:[`TypeSpec`],loader:()=>h(()=>import(`./typespec-CEioAsEm.js`),[],import.meta.url)}),N({id:`vb`,extensions:[`.vb`],aliases:[`Visual Basic`,`vb`],loader:()=>h(()=>import(`./vb-BPk67J-d.js`),[],import.meta.url)}),N({id:`wgsl`,extensions:[`.wgsl`],aliases:[`WebGPU Shading Language`,`WGSL`,`wgsl`],loader:()=>h(()=>import(`./wgsl-DOnyt8_J.js`),[],import.meta.url)}),N({id:`xml`,extensions:[`.xml`,`.xsd`,`.dtd`,`.ascx`,`.csproj`,`.config`,`.props`,`.targets`,`.wxi`,`.wxl`,`.wxs`,`.xaml`,`.svg`,`.svgz`,`.opf`,`.xslt`,`.xsl`],firstLine:`(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)`,aliases:[`XML`,`xml`],mimetypes:[`text/xml`,`application/xml`,`application/xaml+xml`,`application/xml-dtd`],loader:()=>h(()=>import(`./xml-CNdzyI0v.js`),__vite__mapDeps([16,1,2]),import.meta.url)}),N({id:`yaml`,extensions:[`.yaml`,`.yml`],aliases:[`YAML`,`yaml`,`YML`,`yml`],mimetypes:[`application/x-yaml`,`text/x-yaml`],loader:()=>h(()=>import(`./yaml-BwV3VO0L.js`),__vite__mapDeps([17,1,2]),import.meta.url)});var we=Object.defineProperty,Te=(e,t,n)=>t in e?we(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>Te(e,typeof t==`symbol`?t:t+``,n),Ee,De,Oe,ke,Ae;function je(e){return e.method!==void 0}var Me;(function(e){function t(e){return e}e.create=t})(Me||={});var Ne;(function(e){e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603;function t(e){return-32099<=e&&e<=-32e3}e.isServerError=t;function n(e){if(!t(e))throw Error(`Invalid range for a server error.`);return e}e.serverError=n,e.unexpectedServerError=-32e3;function r(e){return!0}e.isApplicationError=r;function i(e){return e}e.applicationError=i,e.genericApplicationError=-320100})(Ne||={});var Pe=class{constructor(){P(this,`listeners`,new Set),P(this,`event`,e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},Fe=class{constructor(e){P(this,`_value`),P(this,`eventEmitter`),this._value=e,this.eventEmitter=new Pe}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function Ie(e,t){let n=setTimeout(t,e);return{dispose:()=>clearTimeout(n)}}function Le(e,t,n){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,n),{dispose:()=>e.delete(t)})}var Re=class{constructor(){P(this,`_state`,`none`),P(this,`promise`),P(this,`resolve`,()=>{}),P(this,`reject`,()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}};Ee=class{constructor(){P(this,`_unprocessedMessages`,[]),P(this,`_messageListener`),P(this,`id`,Ee.id++),P(this,`_state`,new Fe({state:`open`})),P(this,`state`,this._state)}setListener(e){if(this._messageListener=e,e)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){let e=this._unprocessedMessages.shift();this._messageListener(e)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:`closed`,error:void 0}}log(e){return new ze(this,e??new Be)}},P(Ee,`id`,0);var ze=class{constructor(e,t){P(this,`baseStream`),P(this,`logger`),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){if(e===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(t=>{this.logger.log(this.baseStream,`incoming`,t),e(t)})}send(e){return this.logger.log(this.baseStream,`outgoing`,e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},Be=class{log(e,t,n){console.log(`${t===`incoming`?`<-`:`->`} [${e.toString()}] ${JSON.stringify(n)}`)}},Ve=class e{constructor(e){P(this,`connect`),this.connect=e}mapContext(t){return new e(e=>this.connect(e?He(e,t):void 0))}};function He(e,t){return{handleNotification:(n,r)=>e.handleNotification(n,t(r)),handleRequest:(n,r,i)=>e.handleRequest(n,r,t(i))}}var Ue=class e{constructor(e,t,n){P(this,`_stream`),P(this,`_listener`),P(this,`_logger`),P(this,`_unprocessedResponses`,new Map),P(this,`_lastUsedRequestId`,0),this._stream=e,this._listener=t,this._logger=n,this._stream.setListener(e=>{je(e)?e.id===void 0?this._processNotification(e):this._processRequest(e):this._processResponse(e)})}static createChannel(t,n){let r=!1;return new Ve(i=>{if(r)throw Error(`A channel to the stream ${t} was already constructed!`);return r=!0,new e(t,i,n)})}get state(){return this._stream.state}async _processNotification(e){if(e.id!==void 0)throw Error();if(!this._listener){this._logger&&this._logger.debug({text:`Notification ignored`,message:e});return}try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}}async _processRequest(e){if(e.id===void 0)throw Error();let t;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:Ne.internalError,message:`An unexpected exception was thrown.`,data:void 0}}}else this._logger&&this._logger.debug({text:`Received request even though not listening for requests`,message:e}),t={error:{code:Ne.methodNotFound,message:`This endpoint does not listen for requests or notifications.`,data:void 0}};let n;n=`result`in t?{jsonrpc:`2.0`,id:e.id,result:t.result}:{jsonrpc:`2.0`,id:e.id,error:t.error},await this._stream.send(n)}_processResponse(e){let t=``+e.id,n=this._unprocessedResponses.get(t);if(!n){this._logger&&this._logger.debug({text:`Got an unexpected response message`,message:e});return}this._unprocessedResponses.delete(t),n(e)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,n){let r={jsonrpc:`2.0`,id:this._newRequestId(),method:e.method,params:e.params||void 0};return n&&n(r.id),new Promise((e,t)=>{let n=``+r.id;this._unprocessedResponses.set(n,n=>{`result`in n?e({result:n.result}):(n.error||t(Error(`Response had neither 'result' nor 'error' field set.`)),e({error:n.error}))}),this._stream.send(r).then(void 0,e=>{this._unprocessedResponses.delete(n),t(e)})})}sendNotification(e,t){let n={jsonrpc:`2.0`,id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(n)}toString(){return`StreamChannel/`+this._stream.toString()}},We;(function(e){function t(){return{deserializeFromJson:e=>({hasErrors:!1,value:e}),serializeToJson:e=>e}}e.sAny=t;function n(){return{deserializeFromJson:e=>({hasErrors:!1,value:{}}),serializeToJson:e=>({})}}e.sEmptyObject=n;function r(){return{deserializeFromJson:e=>({hasErrors:!1,value:void 0}),serializeToJson:e=>null}}e.sVoidFromNull=r})(We||={});var Ge=Symbol(`OptionalMethodNotFound`),Ke=class{contextualize(e){return new qe(this,e)}},qe=class extends Ke{constructor(e,t){super(),P(this,`underylingTypedChannel`),P(this,`converters`),this.underylingTypedChannel=e,this.converters=t}async request(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.request(e,t,r)}async notify(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.notify(e,t,r)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(e,n)=>await t(e,await this.converters.getNewContext(n)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(e,n,r)=>await t(e,n,await this.converters.getNewContext(r)))}},Je=class e extends Ke{constructor(e,t={}){super(),P(this,`channelCtor`),P(this,`_requestSender`),P(this,`_handler`,new Map),P(this,`_unknownNotificationHandler`,new Set),P(this,`_timeout`),P(this,`sendExceptionDetails`,!1),P(this,`_logger`),P(this,`listeningDeferred`,new Re),P(this,`onListening`,this.listeningDeferred.promise),P(this,`_requestDidErrorEventEmitter`,new Pe),P(this,`onRequestDidError`,this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=Ie(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,n={}){return new e(Ue.createChannel(t,n.logger),n)}startListen(){if(this._requestSender)throw Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&=(this._timeout.dispose(),void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,n)=>this.handleRequest(e,t,n),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,n){let r=this._handler.get(e.method);if(!r)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:Ne.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if(r.kind!=`request`){let t=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e}}),{error:{code:Ne.invalidRequest,message:t,data:{method:e.method}}}}let i=r.requestType.paramsSerializer.deserializeFromJson(e.params);if(i.hasErrors){let t=`Got invalid params: ${i.errorMessage}`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e,errorMessage:i.errorMessage}}),{error:{code:Ne.invalidParams,message:t,data:{errors:i.errorMessage}}}}else{let a=i.value,o;try{let e=await r.handler(a,t,n);if(`error`in e||`errorMessage`in e){let t=e.error?r.requestType.errorSerializer.serializeToJson(e.error):void 0;o={error:{code:e.errorCode||Ne.genericApplicationError,message:e.errorMessage||`An error was returned`,data:t}}}else o={result:r.requestType.resultSerializer.serializeToJson(e.ok)}}catch(t){t instanceof Xe?o={error:{code:t.code,message:t.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${t}.`,exception:t,data:{requestObject:e}}),o={error:{code:Ne.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${t}.`:`Server has thrown an unexpected exception`}})}return o}}async handleNotification(e,t){let n=this._handler.get(e.method);if(!n){for(let t of this._unknownNotificationHandler)t(e);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}});return}if(n.kind!=`notification`){this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}});return}let r=n.notificationType.paramsSerializer.deserializeFromJson(e.params);if(r.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${r}`,data:{requestObject:e,errorMessage:r.errorMessage}});return}let i=r.value;for(let r of n.handlers)try{r(i,t)}catch(t){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${t}.`,exception:t,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return Le(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw Error(`Handler with method "${e.method}" already registered.`);return Le(this._handler,e.method,{kind:`request`,requestType:e,handler:t})}registerNotificationHandler(e,t){let n=this._handler.get(e.method);if(!n)n={kind:`notification`,notificationType:e,handlers:new Set},this._handler.set(e.method,n);else{if(n.kind!==`notification`)throw Error(`Method "${e.method}" was already registered as request handler.`);if(n.notificationType!==e)throw Error(`Method "${e.method}" was registered for a different type.`)}return Le(n.handlers,t)}getRegisteredTypes(){let e=[];for(let t of this._handler.values())t.kind===`notification`?e.push(t.notificationType):t.kind===`request`&&e.push(t.requestType);return e}async request(e,t,n){if(!this.checkChannel(this._requestSender))throw Error(`Impossible`);let r=e.paramsSerializer.serializeToJson(t);Ye(r);let i=await this._requestSender.sendRequest({method:e.method,params:r},n);if(`error`in i){if(e.isOptional&&i.error.code===Ne.methodNotFound)return Ge;let t;if(i.error.data!==void 0){let n=e.errorSerializer.deserializeFromJson(i.error.data);if(n.hasErrors)throw Error(n.errorMessage);t=n.value}else t=void 0;let n=new Xe(i.error.message,t,i.error.code);throw this._requestDidErrorEventEmitter.fire({error:n}),n}else{let t=e.resultSerializer.deserializeFromJson(i.result);if(t.hasErrors)throw Error(`Could not deserialize response: `+t.errorMessage+`
11
+
12
+ ${JSON.stringify(i,null,2)}`);return t.value}}async notify(e,t,n){if(!this.checkChannel(this._requestSender))throw Error();let r=e.paramsSerializer.serializeToJson(t);Ye(r),this._requestSender.sendNotification({method:e.method,params:r},n)}};function Ye(e){if(e!==null&&Array.isArray(e)&&typeof e!=`object`)throw Error(`Invalid value! Only null, array and object is allowed.`)}var Xe=class e extends Error{constructor(t,n,r=Ne.genericApplicationError){super(t),P(this,`data`),P(this,`code`),this.data=n,this.code=r,Object.setPrototypeOf(this,e.prototype)}},Ze=class e{constructor(e,t,n,r,i=!1){P(this,`method`),P(this,`paramsSerializer`),P(this,`resultSerializer`),P(this,`errorSerializer`),P(this,`isOptional`),P(this,`kind`,`request`),this.method=e,this.paramsSerializer=t,this.resultSerializer=n,this.errorSerializer=r,this.isOptional=i}withMethod(t){return new e(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new e(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},Qe=class e{constructor(e,t){P(this,`method`),P(this,`paramsSerializer`),P(this,`kind`,`notification`),this.method=e,this.paramsSerializer=t}withMethod(t){return new e(t,this.paramsSerializer)}};function F(e){return new Ze((e||{}).method,We.sAny(),We.sAny(),We.sAny())}function $e(e){return new Qe((e||{}).method,We.sAny())}var et=(De=Symbol(),Oe=class{constructor(e){P(this,`error`),P(this,De),this.error=e}},P(Oe,`factory`,e=>new Oe(e)),Oe);function tt(e){let t=nt(e.server),n=nt(e.client);return new rt(e.tags||[],t,n)}function nt(e){let t={};for(let[n,r]of Object.entries(e)){let e=r.method?r.method:n;t[n]=r.withMethod(e)}return t}var rt=class e{constructor(e=[],t,n){P(this,`tags`),P(this,`server`),P(this,`client`),this.tags=e,this.server=t,this.client=n}_onlyDesignTime(){return Error(`This property is not meant to be accessed at runtime`)}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,n,r){let i=this.buildCounterpart(e,n),a=this.registerHandlers(e,t,r,i);return{counterpart:i,dispose:()=>a.dispose()}}buildCounterpart(e,t){let n={};for(let[r,i]of Object.entries(t)){let t;t=i.kind===`request`?i.isOptional?async(t,n)=>{t===void 0&&(t={});try{return await e.request(i,t,n)}catch(e){if(e&&e.code===Ne.methodNotFound)return Ge;throw e}}:(t,n)=>(t===void 0&&(t={}),e.request(i,t,n)):(t,n)=>(t===void 0&&(t={}),e.notify(i,t,n)),n[r]=t}return n}registerHandlers(e,t,n,r){let i=[];for(let[a,o]of Object.entries(t))if(o.kind===`request`){let t=n[a];if(!t)continue;let s=this.createRequestHandler(r,t);i.push(e.registerRequestHandler(o,s))}else{let t=n[a];t&&i.push(e.registerNotificationHandler(o,(e,n)=>{t(e,{context:n,counterpart:r})}))}return{dispose:()=>i.forEach(e=>e.dispose())}}createRequestHandler(e,t){return async(n,r,i)=>{let a=await t(n,{context:i,counterpart:e,newErr:et.factory,requestId:r});return a instanceof et?a.error:{ok:a}}}static getServerFromStream(e,t,n,r){let i=Je.fromTransport(t,n),{server:a}=e.getServer(i,r);return i.startListen(),{channel:i,server:a}}static registerServerToStream(e,t,n,r){let i=Je.fromTransport(t,n),{client:a}=e.registerServer(i,r);return i.startListen(),{channel:i,client:a}}getServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.client,this.server,t);return{server:n,dispose:r}}registerServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.server,this.client,t);return{client:n,dispose:r}}withContext(){return new e(this.tags,this.server,this.client)}},it=(function(e){return e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`,e})({}),at=(function(e){return e[e.File=1]=`File`,e[e.Module=2]=`Module`,e[e.Namespace=3]=`Namespace`,e[e.Package=4]=`Package`,e[e.Class=5]=`Class`,e[e.Method=6]=`Method`,e[e.Property=7]=`Property`,e[e.Field=8]=`Field`,e[e.Constructor=9]=`Constructor`,e[e.Enum=10]=`Enum`,e[e.Interface=11]=`Interface`,e[e.Function=12]=`Function`,e[e.Variable=13]=`Variable`,e[e.Constant=14]=`Constant`,e[e.String=15]=`String`,e[e.Number=16]=`Number`,e[e.Boolean=17]=`Boolean`,e[e.Array=18]=`Array`,e[e.Object=19]=`Object`,e[e.Key=20]=`Key`,e[e.Null=21]=`Null`,e[e.EnumMember=22]=`EnumMember`,e[e.Struct=23]=`Struct`,e[e.Event=24]=`Event`,e[e.Operator=25]=`Operator`,e[e.TypeParameter=26]=`TypeParameter`,e})({}),ot=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),st=(function(e){return e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`,e})({}),ct=(function(e){return e[e.Text=1]=`Text`,e[e.Method=2]=`Method`,e[e.Function=3]=`Function`,e[e.Constructor=4]=`Constructor`,e[e.Field=5]=`Field`,e[e.Variable=6]=`Variable`,e[e.Class=7]=`Class`,e[e.Interface=8]=`Interface`,e[e.Module=9]=`Module`,e[e.Property=10]=`Property`,e[e.Unit=11]=`Unit`,e[e.Value=12]=`Value`,e[e.Enum=13]=`Enum`,e[e.Keyword=14]=`Keyword`,e[e.Snippet=15]=`Snippet`,e[e.Color=16]=`Color`,e[e.File=17]=`File`,e[e.Reference=18]=`Reference`,e[e.Folder=19]=`Folder`,e[e.EnumMember=20]=`EnumMember`,e[e.Constant=21]=`Constant`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`,e})({}),lt=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),ut=(function(e){return e[e.PlainText=1]=`PlainText`,e[e.Snippet=2]=`Snippet`,e})({}),dt=(function(e){return e[e.Text=1]=`Text`,e[e.Read=2]=`Read`,e[e.Write=3]=`Write`,e})({}),ft=(function(e){return e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e})({}),pt=(function(e){return e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Information=3]=`Information`,e[e.Hint=4]=`Hint`,e})({}),mt=(function(e){return e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`,e})({}),ht=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=3]=`TriggerForIncompleteCompletions`,e})({}),gt=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`,e})({}),_t=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.Automatic=2]=`Automatic`,e})({}),vt=class{constructor(e){this.method=e}},yt={textDocumentImplementation:new vt(`textDocument/implementation`),textDocumentTypeDefinition:new vt(`textDocument/typeDefinition`),textDocumentDocumentColor:new vt(`textDocument/documentColor`),textDocumentColorPresentation:new vt(`textDocument/colorPresentation`),textDocumentFoldingRange:new vt(`textDocument/foldingRange`),textDocumentDeclaration:new vt(`textDocument/declaration`),textDocumentSelectionRange:new vt(`textDocument/selectionRange`),textDocumentPrepareCallHierarchy:new vt(`textDocument/prepareCallHierarchy`),textDocumentSemanticTokensFull:new vt(`textDocument/semanticTokens/full`),textDocumentSemanticTokensFullDelta:new vt(`textDocument/semanticTokens/full/delta`),textDocumentLinkedEditingRange:new vt(`textDocument/linkedEditingRange`),workspaceWillCreateFiles:new vt(`workspace/willCreateFiles`),workspaceWillRenameFiles:new vt(`workspace/willRenameFiles`),workspaceWillDeleteFiles:new vt(`workspace/willDeleteFiles`),textDocumentMoniker:new vt(`textDocument/moniker`),textDocumentPrepareTypeHierarchy:new vt(`textDocument/prepareTypeHierarchy`),textDocumentInlineValue:new vt(`textDocument/inlineValue`),textDocumentInlayHint:new vt(`textDocument/inlayHint`),textDocumentDiagnostic:new vt(`textDocument/diagnostic`),textDocumentInlineCompletion:new vt(`textDocument/inlineCompletion`),textDocumentWillSaveWaitUntil:new vt(`textDocument/willSaveWaitUntil`),textDocumentCompletion:new vt(`textDocument/completion`),textDocumentHover:new vt(`textDocument/hover`),textDocumentSignatureHelp:new vt(`textDocument/signatureHelp`),textDocumentDefinition:new vt(`textDocument/definition`),textDocumentReferences:new vt(`textDocument/references`),textDocumentDocumentHighlight:new vt(`textDocument/documentHighlight`),textDocumentDocumentSymbol:new vt(`textDocument/documentSymbol`),textDocumentCodeAction:new vt(`textDocument/codeAction`),workspaceSymbol:new vt(`workspace/symbol`),textDocumentCodeLens:new vt(`textDocument/codeLens`),textDocumentDocumentLink:new vt(`textDocument/documentLink`),textDocumentFormatting:new vt(`textDocument/formatting`),textDocumentRangeFormatting:new vt(`textDocument/rangeFormatting`),textDocumentRangesFormatting:new vt(`textDocument/rangesFormatting`),textDocumentOnTypeFormatting:new vt(`textDocument/onTypeFormatting`),textDocumentRename:new vt(`textDocument/rename`),workspaceExecuteCommand:new vt(`workspace/executeCommand`),workspaceDidCreateFiles:new vt(`workspace/didCreateFiles`),workspaceDidRenameFiles:new vt(`workspace/didRenameFiles`),workspaceDidDeleteFiles:new vt(`workspace/didDeleteFiles`),workspaceDidChangeConfiguration:new vt(`workspace/didChangeConfiguration`),textDocumentDidOpen:new vt(`textDocument/didOpen`),textDocumentDidChange:new vt(`textDocument/didChange`),textDocumentDidClose:new vt(`textDocument/didClose`),textDocumentDidSave:new vt(`textDocument/didSave`),textDocumentWillSave:new vt(`textDocument/willSave`),workspaceDidChangeWatchedFiles:new vt(`workspace/didChangeWatchedFiles`)};tt({server:{textDocumentImplementation:F({method:`textDocument/implementation`}),textDocumentTypeDefinition:F({method:`textDocument/typeDefinition`}),textDocumentDocumentColor:F({method:`textDocument/documentColor`}),textDocumentColorPresentation:F({method:`textDocument/colorPresentation`}),textDocumentFoldingRange:F({method:`textDocument/foldingRange`}),textDocumentDeclaration:F({method:`textDocument/declaration`}),textDocumentSelectionRange:F({method:`textDocument/selectionRange`}),textDocumentPrepareCallHierarchy:F({method:`textDocument/prepareCallHierarchy`}),callHierarchyIncomingCalls:F({method:`callHierarchy/incomingCalls`}),callHierarchyOutgoingCalls:F({method:`callHierarchy/outgoingCalls`}),textDocumentSemanticTokensFull:F({method:`textDocument/semanticTokens/full`}),textDocumentSemanticTokensFullDelta:F({method:`textDocument/semanticTokens/full/delta`}),textDocumentSemanticTokensRange:F({method:`textDocument/semanticTokens/range`}),textDocumentLinkedEditingRange:F({method:`textDocument/linkedEditingRange`}),workspaceWillCreateFiles:F({method:`workspace/willCreateFiles`}),workspaceWillRenameFiles:F({method:`workspace/willRenameFiles`}),workspaceWillDeleteFiles:F({method:`workspace/willDeleteFiles`}),textDocumentMoniker:F({method:`textDocument/moniker`}),textDocumentPrepareTypeHierarchy:F({method:`textDocument/prepareTypeHierarchy`}),typeHierarchySupertypes:F({method:`typeHierarchy/supertypes`}),typeHierarchySubtypes:F({method:`typeHierarchy/subtypes`}),textDocumentInlineValue:F({method:`textDocument/inlineValue`}),textDocumentInlayHint:F({method:`textDocument/inlayHint`}),inlayHintResolve:F({method:`inlayHint/resolve`}),textDocumentDiagnostic:F({method:`textDocument/diagnostic`}),workspaceDiagnostic:F({method:`workspace/diagnostic`}),textDocumentInlineCompletion:F({method:`textDocument/inlineCompletion`}),initialize:F({method:`initialize`}),shutdown:F({method:`shutdown`}),textDocumentWillSaveWaitUntil:F({method:`textDocument/willSaveWaitUntil`}),textDocumentCompletion:F({method:`textDocument/completion`}),completionItemResolve:F({method:`completionItem/resolve`}),textDocumentHover:F({method:`textDocument/hover`}),textDocumentSignatureHelp:F({method:`textDocument/signatureHelp`}),textDocumentDefinition:F({method:`textDocument/definition`}),textDocumentReferences:F({method:`textDocument/references`}),textDocumentDocumentHighlight:F({method:`textDocument/documentHighlight`}),textDocumentDocumentSymbol:F({method:`textDocument/documentSymbol`}),textDocumentCodeAction:F({method:`textDocument/codeAction`}),codeActionResolve:F({method:`codeAction/resolve`}),workspaceSymbol:F({method:`workspace/symbol`}),workspaceSymbolResolve:F({method:`workspaceSymbol/resolve`}),textDocumentCodeLens:F({method:`textDocument/codeLens`}),codeLensResolve:F({method:`codeLens/resolve`}),textDocumentDocumentLink:F({method:`textDocument/documentLink`}),documentLinkResolve:F({method:`documentLink/resolve`}),textDocumentFormatting:F({method:`textDocument/formatting`}),textDocumentRangeFormatting:F({method:`textDocument/rangeFormatting`}),textDocumentRangesFormatting:F({method:`textDocument/rangesFormatting`}),textDocumentOnTypeFormatting:F({method:`textDocument/onTypeFormatting`}),textDocumentRename:F({method:`textDocument/rename`}),textDocumentPrepareRename:F({method:`textDocument/prepareRename`}),workspaceExecuteCommand:F({method:`workspace/executeCommand`}),workspaceDidChangeWorkspaceFolders:$e({method:`workspace/didChangeWorkspaceFolders`}),windowWorkDoneProgressCancel:$e({method:`window/workDoneProgress/cancel`}),workspaceDidCreateFiles:$e({method:`workspace/didCreateFiles`}),workspaceDidRenameFiles:$e({method:`workspace/didRenameFiles`}),workspaceDidDeleteFiles:$e({method:`workspace/didDeleteFiles`}),notebookDocumentDidOpen:$e({method:`notebookDocument/didOpen`}),notebookDocumentDidChange:$e({method:`notebookDocument/didChange`}),notebookDocumentDidSave:$e({method:`notebookDocument/didSave`}),notebookDocumentDidClose:$e({method:`notebookDocument/didClose`}),initialized:$e({method:`initialized`}),exit:$e({method:`exit`}),workspaceDidChangeConfiguration:$e({method:`workspace/didChangeConfiguration`}),textDocumentDidOpen:$e({method:`textDocument/didOpen`}),textDocumentDidChange:$e({method:`textDocument/didChange`}),textDocumentDidClose:$e({method:`textDocument/didClose`}),textDocumentDidSave:$e({method:`textDocument/didSave`}),textDocumentWillSave:$e({method:`textDocument/willSave`}),workspaceDidChangeWatchedFiles:$e({method:`workspace/didChangeWatchedFiles`}),setTrace:$e({method:`$/setTrace`}),cancelRequest:$e({method:`$/cancelRequest`}),progress:$e({method:`$/progress`})},client:{workspaceWorkspaceFolders:F({method:`workspace/workspaceFolders`}).optional(),workspaceConfiguration:F({method:`workspace/configuration`}).optional(),workspaceFoldingRangeRefresh:F({method:`workspace/foldingRange/refresh`}).optional(),windowWorkDoneProgressCreate:F({method:`window/workDoneProgress/create`}).optional(),workspaceSemanticTokensRefresh:F({method:`workspace/semanticTokens/refresh`}).optional(),windowShowDocument:F({method:`window/showDocument`}).optional(),workspaceInlineValueRefresh:F({method:`workspace/inlineValue/refresh`}).optional(),workspaceInlayHintRefresh:F({method:`workspace/inlayHint/refresh`}).optional(),workspaceDiagnosticRefresh:F({method:`workspace/diagnostic/refresh`}).optional(),clientRegisterCapability:F({method:`client/registerCapability`}).optional(),clientUnregisterCapability:F({method:`client/unregisterCapability`}).optional(),windowShowMessageRequest:F({method:`window/showMessageRequest`}).optional(),workspaceCodeLensRefresh:F({method:`workspace/codeLens/refresh`}).optional(),workspaceApplyEdit:F({method:`workspace/applyEdit`}).optional(),windowShowMessage:$e({method:`window/showMessage`}),windowLogMessage:$e({method:`window/logMessage`}),telemetryEvent:$e({method:`telemetry/event`}),textDocumentPublishDiagnostics:$e({method:`textDocument/publishDiagnostics`}),logTrace:$e({method:`$/logTrace`}),cancelRequest:$e({method:`$/cancelRequest`}),progress:$e({method:`$/progress`})}}),ke=class{constructor(){P(this,`_store`,new bt)}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},P(ke,`None`,Object.freeze({dispose(){}}));var bt=(Ae=class{constructor(){P(this,`_toDispose`,new Set),P(this,`_isDisposed`,!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(let e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?Ae.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(e),e}},P(Ae,`DISABLE_DISPOSED_WARNING`,!1),Ae);ft.Empty,ft.QuickFix,ft.Refactor,ft.RefactorExtract,ft.RefactorInline,ft.RefactorRewrite,ft.Source,ft.SourceOrganizeImports,ft.SourceFixAll,n.CodeActionTriggerType.Invoke,_t.Invoked,n.CodeActionTriggerType.Auto,_t.Automatic,ct.Text,n.CompletionItemKind.Text,ct.Method,n.CompletionItemKind.Method,ct.Function,n.CompletionItemKind.Function,ct.Constructor,n.CompletionItemKind.Constructor,ct.Field,n.CompletionItemKind.Field,ct.Variable,n.CompletionItemKind.Variable,ct.Class,n.CompletionItemKind.Class,ct.Interface,n.CompletionItemKind.Interface,ct.Module,n.CompletionItemKind.Module,ct.Property,n.CompletionItemKind.Property,ct.Unit,n.CompletionItemKind.Unit,ct.Value,n.CompletionItemKind.Value,ct.Enum,n.CompletionItemKind.Enum,ct.Keyword,n.CompletionItemKind.Keyword,ct.Snippet,n.CompletionItemKind.Snippet,ct.Color,n.CompletionItemKind.Color,ct.File,n.CompletionItemKind.File,ct.Reference,n.CompletionItemKind.Reference,ct.Folder,n.CompletionItemKind.Folder,ct.EnumMember,n.CompletionItemKind.EnumMember,ct.Constant,n.CompletionItemKind.Constant,ct.Struct,n.CompletionItemKind.Struct,ct.Event,n.CompletionItemKind.Event,ct.Operator,n.CompletionItemKind.Operator,ct.TypeParameter,n.CompletionItemKind.TypeParameter,lt.Deprecated,n.CompletionItemTag.Deprecated,n.CompletionTriggerKind.Invoke,ht.Invoked,n.CompletionTriggerKind.TriggerCharacter,ht.TriggerCharacter,n.CompletionTriggerKind.TriggerForIncompleteCompletions,ht.TriggerForIncompleteCompletions,ut.Snippet,n.CompletionItemInsertTextRule.InsertAsSnippet,at.File,n.SymbolKind.File,at.Module,n.SymbolKind.Module,at.Namespace,n.SymbolKind.Namespace,at.Package,n.SymbolKind.Package,at.Class,n.SymbolKind.Class,at.Method,n.SymbolKind.Method,at.Property,n.SymbolKind.Property,at.Field,n.SymbolKind.Field,at.Constructor,n.SymbolKind.Constructor,at.Enum,n.SymbolKind.Enum,at.Interface,n.SymbolKind.Interface,at.Function,n.SymbolKind.Function,at.Variable,n.SymbolKind.Variable,at.Constant,n.SymbolKind.Constant,at.String,n.SymbolKind.String,at.Number,n.SymbolKind.Number,at.Boolean,n.SymbolKind.Boolean,at.Array,n.SymbolKind.Array,at.Object,n.SymbolKind.Object,at.Key,n.SymbolKind.Key,at.Null,n.SymbolKind.Null,at.EnumMember,n.SymbolKind.EnumMember,at.Struct,n.SymbolKind.Struct,at.Event,n.SymbolKind.Event,at.Operator,n.SymbolKind.Operator,at.TypeParameter,n.SymbolKind.TypeParameter,ot.Deprecated,n.SymbolTag.Deprecated,dt.Text,n.DocumentHighlightKind.Text,dt.Read,n.DocumentHighlightKind.Read,dt.Write,n.DocumentHighlightKind.Write,it.Comment,n.FoldingRangeKind.Comment,it.Imports,n.FoldingRangeKind.Imports,it.Region,n.FoldingRangeKind.Region,i.Error,pt.Error,i.Warning,pt.Warning,i.Info,pt.Information,i.Hint,pt.Hint,pt.Error,i.Error,pt.Warning,i.Warning,pt.Information,i.Info,pt.Hint,i.Hint,mt.Unnecessary,e.Unnecessary,mt.Deprecated,e.Deprecated,n.SignatureHelpTriggerKind.Invoke,gt.Invoked,n.SignatureHelpTriggerKind.TriggerCharacter,gt.TriggerCharacter,n.SignatureHelpTriggerKind.ContentChange,gt.ContentChange,st.Type,n.InlayHintKind.Type,st.Parameter,n.InlayHintKind.Parameter,new Map([...Object.values(yt)].map(e=>[e.method,e])),typeof WebSocket<`u`||(typeof MozWebSocket<`u`?MozWebSocket:typeof global<`u`?global.WebSocket||global.MozWebSocket:typeof window<`u`?window.WebSocket||window.MozWebSocket:typeof self<`u`&&(self.WebSocket||self.MozWebSocket));function xt(){return p}globalThis.MonacoEnvironment?.globalAPI&&(globalThis.monaco=xt());var St=xt();St.languages.css=D,St.languages.html=ie,St.languages.typescript=g,St.languages.json=_e;var Ct=r((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),I=r(((e,t)=>{t.exports=Ct()}))(),wt=[`boolean`,`integer`,`number`,`string`,`array`,`object`,`any`];function Tt(e){if(Array.isArray(e))return{cleanTypeName:`array`,displayName:`array`,generics:e[0],nullable:!1};if(typeof e==`object`&&e)return{cleanTypeName:`object`,displayName:`object`,generics:e.string,nullable:!1};let t=String(e),n=t.endsWith(`?`),r=t.replace(/\?$/g,``),i=r.split(`.`);return{cleanTypeName:r,displayName:i.length===1?i[0]:i[1]??r,generics:null,nullable:n}}function Et(e){let{cleanTypeName:t,displayName:n,generics:r,nullable:i}=Tt(e.types);return(0,I.jsxs)(`span`,{className:`px-0 text-stone-200`,children:[wt.includes(t)?(0,I.jsx)(`span`,{className:`px-0 text-stone-400`,children:n}):(0,I.jsx)(`a`,{href:`#${t}`,className:`px-0 hover:underline ${t.startsWith(`struct`)?`text-sky-400`:`text-emerald-500`}`,children:n}),r==null?null:(0,I.jsxs)(I.Fragment,{children:[`<`,(0,I.jsx)(Et,{types:r}),`>`]}),i?`?`:null]})}function Dt(e){return Object.keys(e.fields).length===0?(0,I.jsx)(`div`,{className:`rounded-lg border border-gray-300 px-4 py-2 text-sm font-medium text-gray-600 dark:border-gray-600 dark:text-gray-400`,children:(0,I.jsx)(`span`,{children:`(empty)`})}):(0,I.jsx)(`ul`,{className:`divide-y rounded-lg border border-gray-300 bg-gray-50 text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white`,children:Object.entries(e.fields).map(([t,n])=>(0,I.jsxs)(`li`,{className:`flex w-full items-center justify-between border-gray-200 px-4 py-2 dark:border-gray-600`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`span`,{className:`rounded-sm bg-gray-200 px-2 py-1 font-mono dark:bg-gray-600`,children:t}),(0,I.jsx)(`span`,{className:`px-1`,children:`:`}),(0,I.jsx)(`span`,{className:`rounded-full py-1`,children:(0,I.jsx)(Et,{types:n})}),t.includes(`!`)?(0,I.jsx)(`span`,{className:`text-stone-600 dark:text-stone-300`,children:`(optional)`}):null]}),(0,I.jsx)(`div`,{children:e.field?e.field({header:t}):null})]},t))})}function Ot(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var kt=Ot();function At(e){kt=e}var jt={exec:()=>null};function Mt(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Pt.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Nt=(()=>{try{return!0}catch{return!1}})(),Pt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Ft=/^(?:[ \t]*(?:\n|$))+/,It=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Lt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Rt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,zt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Bt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Vt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ht=Mt(Vt).replace(/bull/g,Bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ut=Mt(Vt).replace(/bull/g,Bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Wt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gt=/^[^\n]+/,Kt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,qt=Mt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Kt).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Jt=Mt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Bt).getRegex(),Yt=`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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Xt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zt=Mt(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Xt).replace(`tag`,Yt).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qt=Mt(Wt).replace(`hr`,Rt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Yt).getRegex(),$t={blockquote:Mt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Qt).getRegex(),code:It,def:qt,fences:Lt,heading:zt,hr:Rt,html:Zt,lheading:Ht,list:Jt,newline:Ft,paragraph:Qt,table:jt,text:Gt},en=Mt(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Rt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Yt).getRegex(),tn={...$t,lheading:Ut,table:en,paragraph:Mt(Wt).replace(`hr`,Rt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,en).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Yt).getRegex()},nn={...$t,html:Mt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Xt).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:jt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Mt(Wt).replace(`hr`,Rt).replace(`heading`,` *#{1,6} *[^
13
+ ]`).replace(`lheading`,Ht).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},rn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,an=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,on=/^( {2,}|\\)\n(?!\s*$)/,sn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,cn=/[\p{P}\p{S}]/u,ln=/[\s\p{P}\p{S}]/u,un=/[^\s\p{P}\p{S}]/u,dn=Mt(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ln).getRegex(),fn=/(?!~)[\p{P}\p{S}]/u,pn=/(?!~)[\s\p{P}\p{S}]/u,mn=/(?:[^\s\p{P}\p{S}]|~)/u,hn=Mt(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Nt?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),gn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_n=Mt(gn,`u`).replace(/punct/g,cn).getRegex(),vn=Mt(gn,`u`).replace(/punct/g,fn).getRegex(),yn=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,bn=Mt(yn,`gu`).replace(/notPunctSpace/g,un).replace(/punctSpace/g,ln).replace(/punct/g,cn).getRegex(),xn=Mt(yn,`gu`).replace(/notPunctSpace/g,mn).replace(/punctSpace/g,pn).replace(/punct/g,fn).getRegex(),Sn=Mt(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,un).replace(/punctSpace/g,ln).replace(/punct/g,cn).getRegex(),Cn=Mt(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,cn).getRegex(),wn=Mt(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,un).replace(/punctSpace/g,ln).replace(/punct/g,cn).getRegex(),Tn=Mt(/\\(punct)/,`gu`).replace(/punct/g,cn).getRegex(),En=Mt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Dn=Mt(Xt).replace(`(?:-->|$)`,`-->`).getRegex(),On=Mt(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Dn).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,An=Mt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,kn).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jn=Mt(/^!?\[(label)\]\[(ref)\]/).replace(`label`,kn).replace(`ref`,Kt).getRegex(),Mn=Mt(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Kt).getRegex(),Nn=Mt(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,jn).replace(`nolink`,Mn).getRegex(),Pn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Fn={_backpedal:jt,anyPunctuation:Tn,autolink:En,blockSkip:hn,br:on,code:an,del:jt,delLDelim:jt,delRDelim:jt,emStrongLDelim:_n,emStrongRDelimAst:bn,emStrongRDelimUnd:Sn,escape:rn,link:An,nolink:Mn,punctuation:dn,reflink:jn,reflinkSearch:Nn,tag:On,text:sn,url:jt},In={...Fn,link:Mt(/^!?\[(label)\]\((.*?)\)/).replace(`label`,kn).getRegex(),reflink:Mt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,kn).getRegex()},Ln={...Fn,emStrongRDelimAst:xn,emStrongLDelim:vn,delLDelim:Cn,delRDelim:wn,url:Mt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Pn).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Mt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Pn).getRegex()},Rn={...Ln,br:Mt(on).replace(`{2,}`,`*`).getRegex(),text:Mt(Ln.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},zn={normal:$t,gfm:tn,pedantic:nn},Bn={normal:Fn,gfm:Ln,breaks:Rn,pedantic:In},Vn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Hn=e=>Vn[e];function Un(e,t){if(t){if(Pt.escapeTest.test(e))return e.replace(Pt.escapeReplace,Hn)}else if(Pt.escapeTestNoEncode.test(e))return e.replace(Pt.escapeReplaceNoEncode,Hn);return e}function Wn(e){try{e=encodeURI(e).replace(Pt.percentDecode,`%`)}catch{return null}return e}function Gn(e,t){let n=e.replace(Pt.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Pt.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Pt.slashPipe,`|`);return n}function Kn(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function qn(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Jn(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Yn(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Xn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
14
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
15
+ `)}var Zn=class{options;rules;lexer;constructor(e){this.options=e||kt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Kn(e,`
16
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Xn(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Kn(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Kn(t[0],`
17
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Kn(t[0],`
18
+ `).split(`
19
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
20
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
21
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
22
+ ${s}`:s,r=r?`${r}
23
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
24
+ `+e.join(`
25
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
26
+ `+e.join(`
27
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
28
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Jn(t[2].split(`
29
+ `,1)[0],t[1].length),l=e.split(`
30
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
31
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
32
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
33
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
34
+ `+l}u=!l.trim(),r+=p+`
35
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Gn(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
36
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Gn(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
37
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Kn(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=qn(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Yn(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Yn(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Qn=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||kt,this.options.tokenizer=this.options.tokenizer||new Zn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Pt,block:zn.normal,inline:Bn.normal};this.options.pedantic?(t.block=zn.pedantic,t.inline=Bn.pedantic):this.options.gfm&&(t.block=zn.gfm,this.options.breaks?t.inline=Bn.breaks:t.inline=Bn.gfm),this.tokenizer.rules=t}static get rules(){return{block:zn,inline:Bn}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Pt.carriageReturn,`
38
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Pt.tabCharGlobal,` `).replace(Pt.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
39
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
40
+ `)?``:`
41
+ `)+r.raw,n.text+=`
42
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
43
+ `)?``:`
44
+ `)+r.raw,n.text+=`
45
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
46
+ `)?``:`
47
+ `)+r.raw,a.text+=`
48
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
49
+ `)?``:`
50
+ `)+r.raw,n.text+=`
51
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},$n=class{options;parser;constructor(e){this.options=e||kt}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Pt.notSpaceStart)?.[0],i=e.replace(Pt.endingNewline,``)+`
52
+ `;return r?`<pre><code class="language-`+Un(r)+`">`+(n?i:Un(i,!0))+`</code></pre>
53
+ `:`<pre><code>`+(n?i:Un(i,!0))+`</code></pre>
54
+ `}blockquote({tokens:e}){return`<blockquote>
55
+ ${this.parser.parse(e)}</blockquote>
56
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
57
+ `}hr(e){return`<hr>
58
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
59
+ `+r+`</`+i+`>
60
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
61
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
62
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
63
+ <thead>
64
+ `+t+`</thead>
65
+ `+r+`</table>
66
+ `}tablerow({text:e}){return`<tr>
67
+ ${e}</tr>
68
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
69
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Un(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Wn(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Un(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Wn(e);if(i===null)return Un(n);e=i;let a=`<img src="${e}" alt="${Un(n)}"`;return t&&(a+=` title="${Un(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Un(e.text)}},er=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},tr=class e{options;renderer;textRenderer;constructor(e){this.options=e||kt,this.options.renderer=this.options.renderer||new $n,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new er}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},nr=class{options;block;constructor(e){this.options=e||kt}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Qn.lex:Qn.lexInline}provideParser(e=this.block){return e?tr.parse:tr.parseInline}},rr=new class{defaults=Ot();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tr;Renderer=$n;TextRenderer=er;Lexer=Qn;Tokenizer=Zn;Hooks=nr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new $n(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Zn(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new nr;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];nr.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&nr.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Qn.lex(e,t??this.defaults)}parser(e,t){return tr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Qn.lex:Qn.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?tr.parse:tr.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Qn.lex:Qn.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?tr.parse:tr.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
70
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Un(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ir(e,t){return rr.parse(e,t)}ir.options=ir.setOptions=function(e){return rr.setOptions(e),ir.defaults=rr.defaults,At(ir.defaults),ir},ir.getDefaults=Ot,ir.defaults=kt,ir.use=function(...e){return rr.use(...e),ir.defaults=rr.defaults,At(ir.defaults),ir},ir.walkTokens=function(e,t){return rr.walkTokens(e,t)},ir.parseInline=rr.parseInline,ir.Parser=tr,ir.parser=tr.parse,ir.Renderer=$n,ir.TextRenderer=er,ir.Lexer=Qn,ir.lexer=Qn.lex,ir.Tokenizer=Zn,ir.Hooks=nr,ir.parse=ir,ir.options,ir.setOptions,ir.use,ir.walkTokens,ir.parseInline;var ar=ir;tr.parse,Qn.lex;var{entries:or,setPrototypeOf:sr,isFrozen:cr,getPrototypeOf:lr,getOwnPropertyDescriptor:ur}=Object,{freeze:dr,seal:fr,create:pr}=Object,{apply:mr,construct:hr}=typeof Reflect<`u`&&Reflect;dr||=function(e){return e},fr||=function(e){return e},mr||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},hr||=function(e){return new e(...[...arguments].slice(1))};var gr=Ar(Array.prototype.forEach),_r=Ar(Array.prototype.lastIndexOf),vr=Ar(Array.prototype.pop),yr=Ar(Array.prototype.push),br=Ar(Array.prototype.splice),xr=Ar(String.prototype.toLowerCase),Sr=Ar(String.prototype.toString),Cr=Ar(String.prototype.match),wr=Ar(String.prototype.replace),Tr=Ar(String.prototype.indexOf),Er=Ar(String.prototype.trim),Dr=Ar(Object.prototype.hasOwnProperty),Or=Ar(RegExp.prototype.test),kr=jr(TypeError);function Ar(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return mr(e,t,n)}}function jr(e){return function(){return hr(e,[...arguments])}}function Mr(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xr;sr&&sr(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(cr(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Nr(e){for(let t=0;t<e.length;t++)Dr(e,t)||(e[t]=null);return e}function Pr(e){let t=pr(null);for(let[n,r]of or(e))Dr(e,n)&&(Array.isArray(r)?t[n]=Nr(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=Pr(r):t[n]=r);return t}function Fr(e,t){for(;e!==null;){let n=ur(e,t);if(n){if(n.get)return Ar(n.get);if(typeof n.value==`function`)return Ar(n.value)}e=lr(e)}function n(){return null}return n}var Ir=dr(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Lr=dr(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Rr=dr([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),zr=dr([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Br=dr(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Vr=dr([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Hr=dr([`#text`]),Ur=dr(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),Wr=dr(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Gr=dr(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Kr=dr([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),qr=fr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jr=fr(/<%[\w\W]*|[\w\W]*%>/gm),Yr=fr(/\$\{[\w\W]*/gm),Xr=fr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Zr=fr(/^aria-[\-\w]+$/),Qr=fr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$r=fr(/^(?:\w+script|data):/i),ei=fr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ti=fr(/^html$/i),ni=fr(/^[a-z][.\w]*(-[.\w]+)+$/i),ri=Object.freeze({__proto__:null,ARIA_ATTR:Zr,ATTR_WHITESPACE:ei,CUSTOM_ELEMENT:ni,DATA_ATTR:Xr,DOCTYPE_NAME:ti,ERB_EXPR:Jr,IS_ALLOWED_URI:Qr,IS_SCRIPT_OR_DATA:$r,MUSTACHE_EXPR:qr,TMPLIT_EXPR:Yr}),ii={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ai=function(){return typeof window>`u`?null:window},oi=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},si=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ci(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ai(),t=e=>ci(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==ii.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=Fr(m,`cloneNode`),g=Fr(m,`remove`),_=Fr(m,`nextSibling`),v=Fr(m,`childNodes`),y=Fr(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=si();t.isSupported=typeof or==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:ee,TMPLIT_EXPR:k,DATA_ATTR:te,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:ie}=ri,{IS_ALLOWED_URI:j}=ri,M=null,ae=Mr({},[...Ir,...Lr,...Rr,...Br,...Hr]),oe=null,se=Mr({},[...Ur,...Wr,...Gr,...Kr]),ce=Object.seal(pr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),le=null,ue=null,de=Object.seal(pr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),fe=!0,pe=!0,me=!1,he=!0,ge=!1,_e=!0,ve=!1,ye=!1,be=!1,xe=!1,Se=!1,Ce=!1,N=!0,we=!1,Te=!0,P=!1,Ee={},De=null,Oe=Mr({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),ke=null,Ae=Mr({},[`audio`,`video`,`img`,`source`,`image`,`track`]),je=null,Me=Mr({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ne=`http://www.w3.org/1998/Math/MathML`,Pe=`http://www.w3.org/2000/svg`,Fe=`http://www.w3.org/1999/xhtml`,Ie=Fe,Le=!1,Re=null,ze=Mr({},[Ne,Pe,Fe],Sr),Be=Mr({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ve=Mr({},[`annotation-xml`]),He=Mr({},[`title`,`style`,`font`,`a`,`script`]),Ue=null,We=[`application/xhtml+xml`,`text/html`],Ge=null,Ke=null,qe=n.createElement(`form`),Je=function(e){return e instanceof RegExp||e instanceof Function},Ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ke&&Ke===e)){if((!e||typeof e!=`object`)&&(e={}),e=Pr(e),Ue=We.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Ge=Ue===`application/xhtml+xml`?Sr:xr,M=Dr(e,`ALLOWED_TAGS`)?Mr({},e.ALLOWED_TAGS,Ge):ae,oe=Dr(e,`ALLOWED_ATTR`)?Mr({},e.ALLOWED_ATTR,Ge):se,Re=Dr(e,`ALLOWED_NAMESPACES`)?Mr({},e.ALLOWED_NAMESPACES,Sr):ze,je=Dr(e,`ADD_URI_SAFE_ATTR`)?Mr(Pr(Me),e.ADD_URI_SAFE_ATTR,Ge):Me,ke=Dr(e,`ADD_DATA_URI_TAGS`)?Mr(Pr(Ae),e.ADD_DATA_URI_TAGS,Ge):Ae,De=Dr(e,`FORBID_CONTENTS`)?Mr({},e.FORBID_CONTENTS,Ge):Oe,le=Dr(e,`FORBID_TAGS`)?Mr({},e.FORBID_TAGS,Ge):Pr({}),ue=Dr(e,`FORBID_ATTR`)?Mr({},e.FORBID_ATTR,Ge):Pr({}),Ee=Dr(e,`USE_PROFILES`)?e.USE_PROFILES:!1,fe=e.ALLOW_ARIA_ATTR!==!1,pe=e.ALLOW_DATA_ATTR!==!1,me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,he=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=e.SAFE_FOR_TEMPLATES||!1,_e=e.SAFE_FOR_XML!==!1,ve=e.WHOLE_DOCUMENT||!1,xe=e.RETURN_DOM||!1,Se=e.RETURN_DOM_FRAGMENT||!1,Ce=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,N=e.SANITIZE_DOM!==!1,we=e.SANITIZE_NAMED_PROPS||!1,Te=e.KEEP_CONTENT!==!1,P=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||Qr,Ie=e.NAMESPACE||Fe,Be=e.MATHML_TEXT_INTEGRATION_POINTS||Be,Ve=e.HTML_INTEGRATION_POINTS||Ve,ce=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(pe=!1),Se&&(xe=!0),Ee&&(M=Mr({},Hr),oe=pr(null),Ee.html===!0&&(Mr(M,Ir),Mr(oe,Ur)),Ee.svg===!0&&(Mr(M,Lr),Mr(oe,Wr),Mr(oe,Kr)),Ee.svgFilters===!0&&(Mr(M,Rr),Mr(oe,Wr),Mr(oe,Kr)),Ee.mathMl===!0&&(Mr(M,Br),Mr(oe,Gr),Mr(oe,Kr))),Dr(e,`ADD_TAGS`)||(de.tagCheck=null),Dr(e,`ADD_ATTR`)||(de.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?de.tagCheck=e.ADD_TAGS:(M===ae&&(M=Pr(M)),Mr(M,e.ADD_TAGS,Ge))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?de.attributeCheck=e.ADD_ATTR:(oe===se&&(oe=Pr(oe)),Mr(oe,e.ADD_ATTR,Ge))),e.ADD_URI_SAFE_ATTR&&Mr(je,e.ADD_URI_SAFE_ATTR,Ge),e.FORBID_CONTENTS&&(De===Oe&&(De=Pr(De)),Mr(De,e.FORBID_CONTENTS,Ge)),e.ADD_FORBID_CONTENTS&&(De===Oe&&(De=Pr(De)),Mr(De,e.ADD_FORBID_CONTENTS,Ge)),Te&&(M[`#text`]=!0),ve&&Mr(M,[`html`,`head`,`body`]),M.table&&(Mr(M,[`tbody`]),delete le.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw kr(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw kr(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=oi(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));dr&&dr(e),Ke=e}},Xe=Mr({},[...Lr,...Rr,...zr]),Ze=Mr({},[...Br,...Vr]),Qe=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ie,tagName:`template`});let n=xr(e.tagName),r=xr(t.tagName);return Re[e.namespaceURI]?e.namespaceURI===Pe?t.namespaceURI===Fe?n===`svg`:t.namespaceURI===Ne?n===`svg`&&(r===`annotation-xml`||Be[r]):!!Xe[n]:e.namespaceURI===Ne?t.namespaceURI===Fe?n===`math`:t.namespaceURI===Pe?n===`math`&&Ve[r]:!!Ze[n]:e.namespaceURI===Fe?t.namespaceURI===Pe&&!Ve[r]||t.namespaceURI===Ne&&!Be[r]?!1:!Ze[n]&&(He[n]||!Xe[n]):!!(Ue===`application/xhtml+xml`&&Re[e.namespaceURI]):!1},F=function(e){yr(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},$e=function(e,n){try{yr(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{yr(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(xe||Se)try{F(n)}catch{}else try{n.setAttribute(e,``)}catch{}},et=function(e){let t=null,r=null;if(be)e=`<remove></remove>`+e;else{let t=Cr(e,/^[\r\n\t ]+/);r=t&&t[0]}Ue===`application/xhtml+xml`&&Ie===Fe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ie===Fe)try{t=new f().parseFromString(i,Ue)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ie,`template`,null);try{t.documentElement.innerHTML=Le?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ie===Fe?T.call(t,ve?`html`:`body`)[0]:ve?t.documentElement:a},tt=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},nt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},rt=function(e){return typeof s==`function`&&e instanceof s};function it(e,n,r){gr(e,e=>{e.call(t,n,r,Ke)})}let at=function(e){let n=null;if(it(D.beforeSanitizeElements,e,null),nt(e))return F(e),!0;let r=Ge(e.nodeName);if(it(D.uponSanitizeElement,e,{tagName:r,allowedTags:M}),_e&&e.hasChildNodes()&&!rt(e.firstElementChild)&&Or(/<[/\w!]/g,e.innerHTML)&&Or(/<[/\w!]/g,e.textContent)||e.nodeType===ii.progressingInstruction||_e&&e.nodeType===ii.comment&&Or(/<[/\w]/g,e.data))return F(e),!0;if(!(de.tagCheck instanceof Function&&de.tagCheck(r))&&(!M[r]||le[r])){if(!le[r]&&st(r)&&(ce.tagNameCheck instanceof RegExp&&Or(ce.tagNameCheck,r)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(r)))return!1;if(Te&&!De[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return F(e),!0}return e instanceof c&&!Qe(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Or(/<\/no(script|embed|frames)/i,e.innerHTML)?(F(e),!0):(ge&&e.nodeType===ii.text&&(n=e.textContent,gr([O,ee,k],e=>{n=wr(n,e,` `)}),e.textContent!==n&&(yr(t.removed,{element:e.cloneNode()}),e.textContent=n)),it(D.afterSanitizeElements,e,null),!1)},ot=function(e,t,r){if(ue[t]||N&&(t===`id`||t===`name`)&&(r in n||r in qe))return!1;if(!(pe&&!ue[t]&&Or(te,t))&&!(fe&&Or(A,t))&&!(de.attributeCheck instanceof Function&&de.attributeCheck(t,e))){if(!oe[t]||ue[t]){if(!(st(e)&&(ce.tagNameCheck instanceof RegExp&&Or(ce.tagNameCheck,e)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(e))&&(ce.attributeNameCheck instanceof RegExp&&Or(ce.attributeNameCheck,t)||ce.attributeNameCheck instanceof Function&&ce.attributeNameCheck(t,e))||t===`is`&&ce.allowCustomizedBuiltInElements&&(ce.tagNameCheck instanceof RegExp&&Or(ce.tagNameCheck,r)||ce.tagNameCheck instanceof Function&&ce.tagNameCheck(r))))return!1}else if(!je[t]&&!Or(j,wr(r,re,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Tr(r,`data:`)===0&&ke[e])&&!(me&&!Or(ne,wr(r,re,``)))&&r)return!1}return!0},st=function(e){return e!==`annotation-xml`&&Cr(e,ie)},ct=function(e){it(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||nt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:oe,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Ge(a),l=s,u=a===`value`?l:Er(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,it(D.uponSanitizeAttribute,e,r),u=r.attrValue,we&&(c===`id`||c===`name`)&&($e(a,e),u=`user-content-`+u),_e&&Or(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){$e(a,e);continue}if(c===`attributename`&&Cr(u,`href`)){$e(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){$e(a,e);continue}if(!he&&Or(/\/>/i,u)){$e(a,e);continue}ge&&gr([O,ee,k],e=>{u=wr(u,e,` `)});let d=Ge(e.nodeName);if(!ot(d,c,u)){$e(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),nt(e)?F(e):vr(t.removed)}catch{$e(a,e)}}it(D.afterSanitizeAttributes,e,null)},lt=function e(t){let n=null,r=tt(t);for(it(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)it(D.uponSanitizeShadowNode,n,null),at(n),ct(n),n.content instanceof a&&e(n.content);it(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Le=!e,Le&&(e=`<!-->`),typeof e!=`string`&&!rt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw kr(`dirty is not a string, aborting`)}else throw kr(`toString is not a function`);if(!t.isSupported)return e;if(ye||Ye(n),t.removed=[],typeof e==`string`&&(P=!1),P){if(e.nodeName){let t=Ge(e.nodeName);if(!M[t]||le[t])throw kr(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=et(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===ii.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!xe&&!ge&&!ve&&e.indexOf(`<`)===-1)return b&&Ce?b.createHTML(e):e;if(i=et(e),!i)return xe?null:Ce?x:``}i&&be&&F(i.firstChild);let u=tt(P?e:i);for(;c=u.nextNode();)at(c),ct(c),c.content instanceof a&&lt(c.content);if(P)return e;if(xe){if(Se)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(oe.shadowroot||oe.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=ve?i.outerHTML:i.innerHTML;return ve&&M[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Or(ti,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
71
+ `+d),ge&&gr([O,ee,k],e=>{d=wr(d,e,` `)}),b&&Ce?b.createHTML(d):d},t.setConfig=function(){Ye(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),ye=!0},t.clearConfig=function(){Ke=null,ye=!1},t.isValidAttribute=function(e,t,n){return Ke||Ye({}),ot(Ge(e),Ge(t),n)},t.addHook=function(e,t){typeof t==`function`&&yr(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=_r(D[e],t);return n===-1?void 0:br(D[e],n,1)[0]}return vr(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=si()},t}var li=ci(),ui;try{ui=new TextDecoder}catch{}var L,di,R=0,fi=[],pi=fi,mi=0,hi={},gi,_i,vi=0,yi=0,bi,xi,Si=[],Ci,wi={useRecords:!1,mapsAsObjects:!0},Ti=class{},Ei=new Ti;Ei.name=`MessagePack 0xC1`;var Di=!1,Oi=2,ki,Ai,ji;try{Function(``)}catch{Oi=1/0}var Mi=class e{constructor(e){e&&(e.useRecords===!1&&e.mapsAsObjects===void 0&&(e.mapsAsObjects=!0),e.sequential&&e.trusted!==!1&&(e.trusted=!0,!e.structures&&e.useRecords!=0&&(e.structures=[],e.maxSharedStructures||=0)),e.structures?e.structures.sharedLength=e.structures.length:e.getStructures&&((e.structures=[]).uninitialized=!0,e.structures.sharedLength=0),e.int64AsNumber&&(e.int64AsType=`number`)),Object.assign(this,e)}unpack(t,n){if(L)return sa(()=>(ca(),this?this.unpack(t,n):e.prototype.unpack.call(wi,t,n)));!t.buffer&&t.constructor===ArrayBuffer&&(t=typeof Buffer<`u`?Buffer.from(t):new Uint8Array(t)),typeof n==`object`?(di=n.end||t.length,R=n.start||0):(R=0,di=n>-1?n:t.length),mi=0,yi=0,_i=null,pi=fi,bi=null,L=t;try{Ci=t.dataView||=new DataView(t.buffer,t.byteOffset,t.byteLength)}catch(e){throw L=null,t instanceof Uint8Array?e:Error(`Source must be a Uint8Array or Buffer but was a `+(t&&typeof t==`object`?t.constructor.name:typeof t))}if(this instanceof e){if(hi=this,this.structures)return gi=this.structures,Ni(n);(!gi||gi.length>0)&&(gi=[])}else hi=wi,(!gi||gi.length>0)&&(gi=[]);return Ni(n)}unpackMultiple(e,t){let n,r=0;try{Di=!0;let i=e.length,a=this?this.unpack(e,i):da.unpack(e,i);if(t){if(t(a,r,R)===!1)return;for(;R<i;)if(r=R,t(Ni(),r,R)===!1)return}else{for(n=[a];R<i;)r=R,n.push(Ni());return n}}catch(e){throw e.lastPosition=r,e.values=n,e}finally{Di=!1,ca()}}_mergeStructures(e,t){Ai&&(e=Ai.call(this,e)),e||=[],Object.isFrozen(e)&&(e=e.map(e=>e.slice(0)));for(let t=0,n=e.length;t<n;t++){let n=e[t];n&&(n.isShared=!0,t>=32&&(n.highByte=t-32>>5))}e.sharedLength=e.length;for(let n in t||[])if(n>=0){let r=e[n],i=t[n];i&&(r&&((e.restoreStructures||=[])[n]=r),e[n]=i)}return this.structures=e}decode(e,t){return this.unpack(e,t)}};function Ni(e){try{if(!hi.trusted&&!Di){let e=gi.sharedLength||0;e<gi.length&&(gi.length=e)}let t;if(hi.randomAccessStructure&&L[R]<64&&L[R]>=32&&ki?(t=ki(L,R,di,hi),L=null,!(e&&e.lazy)&&t&&(t=t.toJSON()),R=di):t=Fi(),bi&&=(R=bi.postBundlePosition,null),Di&&(gi.restoreStructures=null),R==di)gi&&gi.restoreStructures&&Pi(),gi=null,L=null,xi&&=null;else if(R>di)throw Error(`Unexpected end of MessagePack data`);else if(!Di){let e;try{e=JSON.stringify(t,(e,t)=>typeof t==`bigint`?`${t}n`:t).slice(0,100)}catch(t){e=`(JSON view not available `+t+`)`}throw Error(`Data read, but end of buffer not reached `+e)}return t}catch(e){throw gi&&gi.restoreStructures&&Pi(),ca(),(e instanceof RangeError||e.message.startsWith(`Unexpected end of buffer`)||R>di)&&(e.incomplete=!0),e}}function Pi(){for(let e in gi.restoreStructures)gi[e]=gi.restoreStructures[e];gi.restoreStructures=null}function Fi(){let e=L[R++];if(e<160)if(e<128){if(e<64)return e;{let t=gi[e&63]||hi.getStructures&&zi()[e&63];return t?(t.read||=Li(t,e&63),t.read()):e}}else if(e<144)if(e-=128,hi.mapsAsObjects){let t={};for(let n=0;n<e;n++){let e=ea();e===`__proto__`&&(e=`__proto_`),t[e]=Fi()}return t}else{let t=new Map;for(let n=0;n<e;n++)t.set(Fi(),Fi());return t}else{e-=144;let t=Array(e);for(let n=0;n<e;n++)t[n]=Fi();return hi.freezeData?Object.freeze(t):t}else if(e<192){let t=e-160;if(yi>=R)return _i.slice(R-vi,(R+=t)-vi);if(yi==0&&di<140){let e=t<16?Yi(t):Ji(t);if(e!=null)return e}return Bi(t)}else{let t;switch(e){case 192:return null;case 193:return bi?(t=Fi(),t>0?bi[1].slice(bi.position1,bi.position1+=t):bi[0].slice(bi.position0,bi.position0-=t)):Ei;case 194:return!1;case 195:return!0;case 196:if(t=L[R++],t===void 0)throw Error(`Unexpected end of buffer`);return Zi(t);case 197:return t=Ci.getUint16(R),R+=2,Zi(t);case 198:return t=Ci.getUint32(R),R+=4,Zi(t);case 199:return Qi(L[R++]);case 200:return t=Ci.getUint16(R),R+=2,Qi(t);case 201:return t=Ci.getUint32(R),R+=4,Qi(t);case 202:if(t=Ci.getFloat32(R),hi.useFloat32>2){let e=ua[(L[R]&127)<<1|L[R+1]>>7];return R+=4,(e*t+(t>0?.5:-.5)>>0)/e}return R+=4,t;case 203:return t=Ci.getFloat64(R),R+=8,t;case 204:return L[R++];case 205:return t=Ci.getUint16(R),R+=2,t;case 206:return t=Ci.getUint32(R),R+=4,t;case 207:return hi.int64AsType===`number`?(t=Ci.getUint32(R)*4294967296,t+=Ci.getUint32(R+4)):hi.int64AsType===`string`?t=Ci.getBigUint64(R).toString():hi.int64AsType===`auto`?(t=Ci.getBigUint64(R),t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=Ci.getBigUint64(R),R+=8,t;case 208:return Ci.getInt8(R++);case 209:return t=Ci.getInt16(R),R+=2,t;case 210:return t=Ci.getInt32(R),R+=4,t;case 211:return hi.int64AsType===`number`?(t=Ci.getInt32(R)*4294967296,t+=Ci.getUint32(R+4)):hi.int64AsType===`string`?t=Ci.getBigInt64(R).toString():hi.int64AsType===`auto`?(t=Ci.getBigInt64(R),t>=BigInt(-2)<<BigInt(52)&&t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=Ci.getBigInt64(R),R+=8,t;case 212:if(t=L[R++],t==114)return na(L[R++]&63);{let e=Si[t];if(e)return e.read?(R++,e.read(Fi())):e.noBuffer?(R++,e()):e(L.subarray(R,++R));throw Error(`Unknown extension `+t)}case 213:return t=L[R],t==114?(R++,na(L[R++]&63,L[R++])):Qi(2);case 214:return Qi(4);case 215:return Qi(8);case 216:return Qi(16);case 217:return t=L[R++],yi>=R?_i.slice(R-vi,(R+=t)-vi):Vi(t);case 218:return t=Ci.getUint16(R),R+=2,yi>=R?_i.slice(R-vi,(R+=t)-vi):Hi(t);case 219:return t=Ci.getUint32(R),R+=4,yi>=R?_i.slice(R-vi,(R+=t)-vi):Ui(t);case 220:return t=Ci.getUint16(R),R+=2,Gi(t);case 221:return t=Ci.getUint32(R),R+=4,Gi(t);case 222:return t=Ci.getUint16(R),R+=2,Ki(t);case 223:return t=Ci.getUint32(R),R+=4,Ki(t);default:if(e>=224)return e-256;if(e===void 0){let e=Error(`Unexpected end of MessagePack data`);throw e.incomplete=!0,e}throw Error(`Unknown MessagePack token `+e)}}}var Ii=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Li(e,t){function n(){if(n.count++>Oi){let n=e.read=Function(`r`,`return function(){return `+(hi.freezeData?`Object.freeze`:``)+`({`+e.map(e=>e===`__proto__`?`__proto_:r()`:Ii.test(e)?e+`:r()`:`[`+JSON.stringify(e)+`]:r()`).join(`,`)+`})}`)(Fi);return e.highByte===0&&(e.read=Ri(t,e.read)),n()}let r={};for(let t=0,n=e.length;t<n;t++){let n=e[t];n===`__proto__`&&(n=`__proto_`),r[n]=Fi()}return hi.freezeData?Object.freeze(r):r}return n.count=0,e.highByte===0?Ri(t,n):n}var Ri=(e,t)=>function(){let n=L[R++];if(n===0)return t();let r=e<32?-(e+(n<<5)):e+(n<<5),i=gi[r]||zi()[r];if(!i)throw Error(`Record id is not defined for `+r);return i.read||=Li(i,e),i.read()};function zi(){let e=sa(()=>(L=null,hi.getStructures()));return gi=hi._mergeStructures(e,gi)}var Bi=Wi,Vi=Wi,Hi=Wi,Ui=Wi;function Wi(e){let t;if(e<16&&(t=Yi(e)))return t;if(e>64&&ui)return ui.decode(L.subarray(R,R+=e));let n=R+e,r=[];for(t=``;R<n;){let e=L[R++];if(!(e&128))r.push(e);else if((e&224)==192){let t=L[R++]&63,n=(e&31)<<6|t;n<128?r.push(65533):r.push(n)}else if((e&240)==224){let t=L[R++]&63,n=L[R++]&63,i=(e&31)<<12|t<<6|n;i<2048||i>=55296&&i<=57343?r.push(65533):r.push(i)}else if((e&248)==240){let t=L[R++]&63,n=L[R++]&63,i=L[R++]&63,a=(e&7)<<18|t<<12|n<<6|i;a<65536||a>1114111?r.push(65533):a>65535?(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023,r.push(a)):r.push(a)}else r.push(65533);r.length>=4096&&(t+=qi.apply(String,r),r.length=0)}return r.length>0&&(t+=qi.apply(String,r)),t}function Gi(e){let t=Array(e);for(let n=0;n<e;n++)t[n]=Fi();return hi.freezeData?Object.freeze(t):t}function Ki(e){if(hi.mapsAsObjects){let t={};for(let n=0;n<e;n++){let e=ea();e===`__proto__`&&(e=`__proto_`),t[e]=Fi()}return t}else{let t=new Map;for(let n=0;n<e;n++)t.set(Fi(),Fi());return t}}var qi=String.fromCharCode;function Ji(e){let t=R,n=Array(e);for(let r=0;r<e;r++){let e=L[R++];if((e&128)>0){R=t;return}n[r]=e}return qi.apply(String,n)}function Yi(e){if(e<4)if(e<2){if(e===0)return``;{let e=L[R++];if((e&128)>1){--R;return}return qi(e)}}else{let t=L[R++],n=L[R++];if((t&128)>0||(n&128)>0){R-=2;return}if(e<3)return qi(t,n);let r=L[R++];if((r&128)>0){R-=3;return}return qi(t,n,r)}else{let t=L[R++],n=L[R++],r=L[R++],i=L[R++];if((t&128)>0||(n&128)>0||(r&128)>0||(i&128)>0){R-=4;return}if(e<6){if(e===4)return qi(t,n,r,i);{let e=L[R++];if((e&128)>0){R-=5;return}return qi(t,n,r,i,e)}}else if(e<8){let a=L[R++],o=L[R++];if((a&128)>0||(o&128)>0){R-=6;return}if(e<7)return qi(t,n,r,i,a,o);let s=L[R++];if((s&128)>0){R-=7;return}return qi(t,n,r,i,a,o,s)}else{let a=L[R++],o=L[R++],s=L[R++],c=L[R++];if((a&128)>0||(o&128)>0||(s&128)>0||(c&128)>0){R-=8;return}if(e<10){if(e===8)return qi(t,n,r,i,a,o,s,c);{let e=L[R++];if((e&128)>0){R-=9;return}return qi(t,n,r,i,a,o,s,c,e)}}else if(e<12){let l=L[R++],u=L[R++];if((l&128)>0||(u&128)>0){R-=10;return}if(e<11)return qi(t,n,r,i,a,o,s,c,l,u);let d=L[R++];if((d&128)>0){R-=11;return}return qi(t,n,r,i,a,o,s,c,l,u,d)}else{let l=L[R++],u=L[R++],d=L[R++],f=L[R++];if((l&128)>0||(u&128)>0||(d&128)>0||(f&128)>0){R-=12;return}if(e<14){if(e===12)return qi(t,n,r,i,a,o,s,c,l,u,d,f);{let e=L[R++];if((e&128)>0){R-=13;return}return qi(t,n,r,i,a,o,s,c,l,u,d,f,e)}}else{let p=L[R++],m=L[R++];if((p&128)>0||(m&128)>0){R-=14;return}if(e<15)return qi(t,n,r,i,a,o,s,c,l,u,d,f,p,m);let h=L[R++];if((h&128)>0){R-=15;return}return qi(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h)}}}}}function Xi(){let e=L[R++],t;if(e<192)t=e-160;else switch(e){case 217:t=L[R++];break;case 218:t=Ci.getUint16(R),R+=2;break;case 219:t=Ci.getUint32(R),R+=4;break;default:throw Error(`Expected string`)}return Wi(t)}function Zi(e){return hi.copyBuffers?Uint8Array.prototype.slice.call(L,R,R+=e):L.subarray(R,R+=e)}function Qi(e){let t=L[R++];if(Si[t]){let n;return Si[t](L.subarray(R,n=R+=e),e=>{R=e;try{return Fi()}finally{R=n}})}else throw Error(`Unknown extension type `+t)}var $i=Array(4096);function ea(){let e=L[R++];if(e>=160&&e<192){if(e-=160,yi>=R)return _i.slice(R-vi,(R+=e)-vi);if(!(yi==0&&di<180))return Bi(e)}else return R--,ta(Fi());let t=(e<<5^(e>1?Ci.getUint16(R):e>0?L[R]:0))&4095,n=$i[t],r=R,i=R+e-3,a,o=0;if(n&&n.bytes==e){for(;r<i;){if(a=Ci.getUint32(r),a!=n[o++]){r=1879048192;break}r+=4}for(i+=3;r<i;)if(a=L[r++],a!=n[o++]){r=1879048192;break}if(r===i)return R=r,n.string;i-=3,r=R}for(n=[],$i[t]=n,n.bytes=e;r<i;)a=Ci.getUint32(r),n.push(a),r+=4;for(i+=3;r<i;)a=L[r++],n.push(a);let s=e<16?Yi(e):Ji(e);return s==null?n.string=Bi(e):n.string=s}function ta(e){if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`)return e.toString();if(e==null)return e+``;if(hi.allowArraysInMapKeys&&Array.isArray(e)&&e.flat().every(e=>[`string`,`number`,`boolean`,`bigint`].includes(typeof e)))return e.flat().toString();throw Error(`Invalid property type for record: ${typeof e}`)}var na=(e,t)=>{let n=Fi().map(ta),r=e;t!==void 0&&(e=e<32?-((t<<5)+e):(t<<5)+e,n.highByte=t);let i=gi[e];return i&&(i.isShared||Di)&&((gi.restoreStructures||=[])[e]=i),gi[e]=n,n.read=Li(n,r),n.read()};Si[0]=()=>{},Si[0].noBuffer=!0,Si[66]=e=>{let t=e.byteLength%8||8,n=BigInt(e[0]&128?e[0]-256:e[0]);for(let r=1;r<t;r++)n<<=BigInt(8),n+=BigInt(e[r]);if(e.byteLength!==t){let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=(e,t)=>{let n=t-e;if(n<=40){let n=r.getBigUint64(e);for(let i=e+8;i<t;i+=8)n<<=64n,n|=r.getBigUint64(i);return n}let a=e+(n>>4<<3),o=i(e,a),s=i(a,t);return o<<BigInt((t-a)*8)|s};n=n<<BigInt((r.byteLength-t)*8)|i(t,r.byteLength)}return n};var ra={Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError:typeof AggregateError==`function`?AggregateError:null};Si[101]=()=>{let e=Fi();if(!ra[e[0]]){let t=Error(e[1],{cause:e[2]});return t.name=e[0],t}return ra[e[0]](e[1],{cause:e[2]})},Si[105]=e=>{if(hi.structuredClone===!1)throw Error(`Structured clone extension is disabled`);let t=Ci.getUint32(R-4);xi||=new Map;let n=L[R],r;r=n>=144&&n<160||n==220||n==221?[]:n>=128&&n<144||n==222||n==223?new Map:(n>=199&&n<=201||n>=212&&n<=216)&&L[R+1]===115?new Set:{};let i={target:r};xi.set(t,i);let a=Fi();if(i.used)Object.assign(r,a);else return i.target=a;if(r instanceof Map)for(let[e,t]of a.entries())r.set(e,t);if(r instanceof Set)for(let e of Array.from(a))r.add(e);return r},Si[112]=e=>{if(hi.structuredClone===!1)throw Error(`Structured clone extension is disabled`);let t=Ci.getUint32(R-4),n=xi.get(t);return n.used=!0,n.target},Si[115]=()=>new Set(Fi());var ia=[`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`,`BigInt64`,`BigUint64`].map(e=>e+`Array`),aa=typeof globalThis==`object`?globalThis:window;Si[116]=e=>{let t=e[0],n=Uint8Array.prototype.slice.call(e,1).buffer,r=ia[t];if(!r){if(t===16)return n;if(t===17)return new DataView(n);throw Error(`Could not find typed array for code `+t)}return new aa[r](n)},Si[120]=()=>{let e=Fi();return new RegExp(e[0],e[1])};var oa=[];Si[98]=e=>{let t=(e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3],n=R;return R+=t-e.length,bi=oa,bi=[Xi(),Xi()],bi.position0=0,bi.position1=0,bi.postBundlePosition=R,R=n,Fi()},Si[255]=e=>e.length==4?new Date((e[0]*16777216+(e[1]<<16)+(e[2]<<8)+e[3])*1e3):e.length==8?new Date(((e[0]<<22)+(e[1]<<14)+(e[2]<<6)+(e[3]>>2))/1e6+((e[3]&3)*4294967296+e[4]*16777216+(e[5]<<16)+(e[6]<<8)+e[7])*1e3):e.length==12?new Date(((e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3])/1e6+((e[4]&128?-281474976710656:0)+e[6]*1099511627776+e[7]*4294967296+e[8]*16777216+(e[9]<<16)+(e[10]<<8)+e[11])*1e3):new Date(`invalid`);function sa(e){ji&&ji();let t=di,n=R,r=mi,i=vi,a=yi,o=_i,s=pi,c=xi,l=bi,u=new Uint8Array(L.slice(0,di)),d=gi,f=gi.slice(0,gi.length),p=hi,m=Di,h=e();return di=t,R=n,mi=r,vi=i,yi=a,_i=o,pi=s,xi=c,bi=l,L=u,Di=m,gi=d,gi.splice(0,gi.length,...f),hi=p,Ci=new DataView(L.buffer,L.byteOffset,L.byteLength),h}function ca(){L=null,xi=null,gi=null}function la(e){e.unpack?Si[e.type]=e.unpack:Si[e.type]=e}var ua=Array(147);for(let e=0;e<256;e++)ua[e]=+(`1e`+Math.floor(45.15-e*.30103));var da=new Mi({useRecords:!1});da.unpack,da.unpackMultiple,da.unpack;var fa={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4};new Uint8Array(new Float32Array(1).buffer,0,4);var pa;try{pa=new TextEncoder}catch{}var ma,ha,ga=typeof Buffer<`u`,_a=ga?function(e){return Buffer.allocUnsafeSlow(e)}:Uint8Array,va=ga?Buffer:Uint8Array,ya=ga?4294967296:2144337920,z,ba,xa,B=0,Sa,Ca=null,wa,Ta=21760,Ea=/[\u0080-\uFFFF]/,Da=Symbol(`record-id`),Oa=class extends Mi{constructor(e){super(e),this.offset=0;let t,n,r,i,a=va.prototype.utf8Write?function(e,t){return z.utf8Write(e,t,z.byteLength-t)}:pa&&pa.encodeInto?function(e,t){return pa.encodeInto(e,z.subarray(t)).written}:!1,o=this;e||={};let s=e&&e.sequential,c=e.structures||e.saveStructures,l=e.maxSharedStructures;if(l??=c?32:0,l>8160)throw Error(`Maximum maxSharedStructure is 8160`);e.structuredClone&&e.moreTypes==null&&(this.moreTypes=!0);let u=e.maxOwnStructures;u??=c?32:64,!this.structures&&e.useRecords!=0&&(this.structures=[]);let d=l>32||u+l>64,f=l+64,p=l+u+64;if(p>8256)throw Error(`Maximum maxSharedStructure + maxOwnStructure is 8192`);let m=[],h=0,g=0;this.pack=this.encode=function(e,a){if(z||(z=new _a(8192),xa=z.dataView||=new DataView(z.buffer,0,8192),B=0),Sa=z.length-10,Sa-B<2048?(z=new _a(z.length),xa=z.dataView||=new DataView(z.buffer,0,z.length),Sa=z.length-10,B=0):B=B+7&2147483640,t=B,a&2048&&(B+=a&255),i=o.structuredClone?new Map:null,o.bundleStrings&&typeof e!=`string`?(Ca=[],Ca.size=1/0):Ca=null,r=o.structures,r){r.uninitialized&&(r=o._mergeStructures(o.getStructures()));let e=r.sharedLength||0;if(e>l)throw Error(`Shared structures is larger than maximum shared structures, try increasing maxSharedStructures to `+r.sharedLength);if(!r.transitions){r.transitions=Object.create(null);for(let t=0;t<e;t++){let e=r[t];if(!e)continue;let n,i=r.transitions;for(let t=0,r=e.length;t<r;t++){let r=e[t];n=i[r],n||=i[r]=Object.create(null),i=n}i[Da]=t+64}this.lastNamedStructuresLength=e}s||(r.nextId=e+64)}n&&=!1;let c;try{o.randomAccessStructure&&e&&typeof e==`object`?e.constructor===Object?D(e):e.constructor!==Map&&!Array.isArray(e)&&!ha.some(t=>e instanceof t)?D(e.toJSON?e.toJSON():e):y(e):y(e);let n=Ca;if(Ca&&Na(t,y,0),i&&i.idsToInsert){let e=i.idsToInsert.sort((e,t)=>e.offset>t.offset?1:-1),r=e.length,a=-1;for(;n&&r>0;){let i=e[--r].offset+t;i<n.stringsPosition+t&&a===-1&&(a=0),i>n.position+t?a>=0&&(a+=6):(a>=0&&(xa.setUint32(n.position+t,xa.getUint32(n.position+t)+a),a=-1),n=n.previous,r++)}a>=0&&n&&xa.setUint32(n.position+t,xa.getUint32(n.position+t)+a),B+=e.length*6,B>Sa&&w(B),o.offset=B;let s=Ma(z.subarray(t,B),e);return i=null,s}return o.offset=B,a&512?(z.start=t,z.end=B,z):z.subarray(t,B)}catch(e){throw c=e,e}finally{if(r&&(_(),n&&o.saveStructures)){let n=r.sharedLength||0,i=z.subarray(t,B),s=Fa(r,o);if(!c)return o.saveStructures(s,s.isCompatible)===!1?o.pack(e,a):(o.lastNamedStructuresLength=n,z.length>1073741824&&(z=null),i)}z.length>1073741824&&(z=null),a&1024&&(B=t)}};let _=()=>{g<10&&g++;let e=r.sharedLength||0;if(r.length>e&&!s&&(r.length=e),h>1e4)r.transitions=null,g=0,h=0,m.length>0&&(m=[]);else if(m.length>0&&!s){for(let e=0,t=m.length;e<t;e++)m[e][Da]=0;m=[]}},v=e=>{var t=e.length;t<16?z[B++]=144|t:t<65536?(z[B++]=220,z[B++]=t>>8,z[B++]=t&255):(z[B++]=221,xa.setUint32(B,t),B+=4);for(let n=0;n<t;n++)y(e[n])},y=e=>{B>Sa&&(z=w(B));var n=typeof e,r;if(n===`string`){let n=e.length;if(Ca&&n>=4&&n<4096){if((Ca.size+=n)>Ta){let e,n=(Ca[0]?Ca[0].length*3+Ca[1].length:0)+10;B+n>Sa&&(z=w(B+n));let r;Ca.position?(r=Ca,z[B]=200,B+=3,z[B++]=98,e=B-t,B+=4,Na(t,y,0),xa.setUint16(e+t-3,B-t-e)):(z[B++]=214,z[B++]=98,e=B-t,B+=4),Ca=[``,``],Ca.previous=r,Ca.size=0,Ca.position=e}let r=Ea.test(e);Ca[+!r]+=e,z[B++]=193,y(r?-n:n);return}let i;i=n<32?1:n<256?2:n<65536?3:5;let o=n*3;if(B+o>Sa&&(z=w(B+o)),n<64||!a){let t,a,o,s=B+i;for(t=0;t<n;t++)a=e.charCodeAt(t),a<128?z[s++]=a:a<2048?(z[s++]=a>>6|192,z[s++]=a&63|128):(a&64512)==55296&&((o=e.charCodeAt(t+1))&64512)==56320?(a=65536+((a&1023)<<10)+(o&1023),t++,z[s++]=a>>18|240,z[s++]=a>>12&63|128,z[s++]=a>>6&63|128,z[s++]=a&63|128):(z[s++]=a>>12|224,z[s++]=a>>6&63|128,z[s++]=a&63|128);r=s-B-i}else r=a(e,B+i);r<32?z[B++]=160|r:r<256?(i<2&&z.copyWithin(B+2,B+1,B+1+r),z[B++]=217,z[B++]=r):r<65536?(i<3&&z.copyWithin(B+3,B+2,B+2+r),z[B++]=218,z[B++]=r>>8,z[B++]=r&255):(i<5&&z.copyWithin(B+5,B+3,B+3+r),z[B++]=219,xa.setUint32(B,r),B+=4),B+=r}else if(n===`number`)if(e>>>0===e)e<32||e<128&&this.useRecords===!1||e<64&&!this.randomAccessStructure?z[B++]=e:e<256?(z[B++]=204,z[B++]=e):e<65536?(z[B++]=205,z[B++]=e>>8,z[B++]=e&255):(z[B++]=206,xa.setUint32(B,e),B+=4);else if(e>>0===e)e>=-32?z[B++]=256+e:e>=-128?(z[B++]=208,z[B++]=e+256):e>=-32768?(z[B++]=209,xa.setInt16(B,e),B+=2):(z[B++]=210,xa.setInt32(B,e),B+=4);else{let t;if((t=this.useFloat32)>0&&e<4294967296&&e>=-2147483648){z[B++]=202,xa.setFloat32(B,e);let n;if(t<4||(n=e*ua[(z[B]&127)<<1|z[B+1]>>7])>>0===n){B+=4;return}else B--}z[B++]=203,xa.setFloat64(B,e),B+=8}else if(n===`object`||n===`function`)if(!e)z[B++]=192;else{if(i){let n=i.get(e);if(n){n.id||=(i.idsToInsert||=[]).push(n),z[B++]=214,z[B++]=112,xa.setUint32(B,n.id),B+=4;return}else i.set(e,{offset:B-t})}let a=e.constructor;if(a===Object)C(e);else if(a===Array)v(e);else if(a===Map)if(this.mapAsEmptyObject)z[B++]=128;else{r=e.size,r<16?z[B++]=128|r:r<65536?(z[B++]=222,z[B++]=r>>8,z[B++]=r&255):(z[B++]=223,xa.setUint32(B,r),B+=4);for(let[t,n]of e)y(t),y(n)}else{for(let t=0,n=ma.length;t<n;t++){let n=ha[t];if(e instanceof n){let n=ma[t];if(n.write){n.type&&(z[B++]=212,z[B++]=n.type,z[B++]=0);let t=n.write.call(this,e);t===e?Array.isArray(e)?v(e):C(e):y(t);return}let r=z,i=xa,a=B;z=null;let o;try{o=n.pack.call(this,e,e=>(z=r,r=null,B+=e,B>Sa&&w(B),{target:z,targetView:xa,position:B-e}),y)}finally{r&&(z=r,xa=i,B=a,Sa=z.length-10)}o&&(o.length+B>Sa&&w(o.length+B),B=ja(o,z,B,n.type));return}}if(Array.isArray(e))v(e);else{if(e.toJSON){let t=e.toJSON();if(t!==e)return y(t)}if(n===`function`)return y(this.writeFunction&&this.writeFunction(e));C(e)}}}else if(n===`boolean`)z[B++]=e?195:194;else if(n===`bigint`){if(e<0x8000000000000000&&e>=-0x8000000000000000)z[B++]=211,xa.setBigInt64(B,e);else if(e<0x10000000000000000&&e>0)z[B++]=207,xa.setBigUint64(B,e);else if(this.largeBigIntToFloat)z[B++]=203,xa.setFloat64(B,Number(e));else if(this.largeBigIntToString)return y(e.toString());else if(this.useBigIntExtension||this.moreTypes){let t=BigInt(e<0?-1:0),n;if(e>>BigInt(65536)===t){let r=BigInt(0x10000000000000000)-BigInt(1),i=[];for(;i.push(e&r),e>>BigInt(63)!==t;)e>>=BigInt(64);n=new Uint8Array(new BigUint64Array(i).buffer),n.reverse()}else{let t=e<0,r=(t?~e:e).toString(16);if(r.length%2?r=`0`+r:parseInt(r.charAt(0),16)>=8&&(r=`00`+r),ga)n=Buffer.from(r,`hex`);else{n=new Uint8Array(r.length/2);for(let e=0;e<n.length;e++)n[e]=parseInt(r.slice(e*2,e*2+2),16)}if(t)for(let e=0;e<n.length;e++)n[e]=~n[e]}n.length+B>Sa&&w(n.length+B),B=ja(n,z,B,66);return}else throw RangeError(e+` was too large to fit in MessagePack 64-bit integer format, use useBigIntExtension, or set largeBigIntToFloat to convert to float-64, or set largeBigIntToString to convert to string`);B+=8}else if(n===`undefined`)this.encodeUndefinedAsNil?z[B++]=192:(z[B++]=212,z[B++]=0,z[B++]=0);else throw Error(`Unknown type: `+n)},b=this.variableMapSize||this.coercibleKeyAsNumber||this.skipValues?e=>{let t;if(this.skipValues){t=[];for(let n in e)(typeof e.hasOwnProperty!=`function`||e.hasOwnProperty(n))&&!this.skipValues.includes(e[n])&&t.push(n)}else t=Object.keys(e);let n=t.length;n<16?z[B++]=128|n:n<65536?(z[B++]=222,z[B++]=n>>8,z[B++]=n&255):(z[B++]=223,xa.setUint32(B,n),B+=4);let r;if(this.coercibleKeyAsNumber)for(let i=0;i<n;i++){r=t[i];let n=Number(r);y(isNaN(n)?r:n),y(e[r])}else for(let i=0;i<n;i++)y(r=t[i]),y(e[r])}:e=>{z[B++]=222;let n=B-t;B+=2;let r=0;for(let t in e)(typeof e.hasOwnProperty!=`function`||e.hasOwnProperty(t))&&(y(t),y(e[t]),r++);if(r>65535)throw Error(`Object is too large to serialize with fast 16-bit map size, use the "variableMapSize" option to serialize this object`);z[n+++t]=r>>8,z[n+t]=r&255},x=this.useRecords===!1?b:e.progressiveRecords&&!d?e=>{let n,i=r.transitions||=Object.create(null),a=B++-t,o;for(let s in e)if(typeof e.hasOwnProperty!=`function`||e.hasOwnProperty(s)){if(n=i[s],n)i=n;else{let c=Object.keys(e),l=i;i=r.transitions;let u=0;for(let e=0,t=c.length;e<t;e++){let t=c[e];n=i[t],n||(n=i[t]=Object.create(null),u++),i=n}a+t+1==B?(B--,T(i,c,u)):E(i,c,a,u),o=!0,i=l[s]}y(e[s])}if(!o){let n=i[Da];n?z[a+t]=n:E(i,Object.keys(e),a,0)}}:e=>{let t,n=r.transitions||=Object.create(null),i=0;for(let r in e)(typeof e.hasOwnProperty!=`function`||e.hasOwnProperty(r))&&(t=n[r],t||(t=n[r]=Object.create(null),i++),n=t);let a=n[Da];a?a>=96&&d?(z[B++]=((a-=96)&31)+96,z[B++]=a>>5):z[B++]=a:T(n,n.__keys__||Object.keys(e),i);for(let t in e)(typeof e.hasOwnProperty!=`function`||e.hasOwnProperty(t))&&y(e[t])},S=typeof this.useRecords==`function`&&this.useRecords,C=S?e=>{S(e)?x(e):b(e)}:x,w=e=>{let n;if(e>16777216){if(e-t>ya)throw Error(`Packed buffer would be larger than maximum buffer size`);n=Math.min(ya,Math.round(Math.max((e-t)*(e>67108864?1.25:2),4194304)/4096)*4096)}else n=(Math.max(e-t<<2,z.length-1)>>12)+1<<12;let r=new _a(n);return xa=r.dataView||=new DataView(r.buffer,0,n),e=Math.min(e,z.length),z.copy?z.copy(r,0,t,e):r.set(z.slice(t,e)),B-=t,t=0,Sa=r.length-10,z=r},T=(e,t,i)=>{let a=r.nextId;a||=64,a<f&&this.shouldShareStructure&&!this.shouldShareStructure(t)?(a=r.nextOwnId,a<p||(a=f),r.nextOwnId=a+1):(a>=p&&(a=f),r.nextId=a+1);let o=t.highByte=a>=96&&d?a-96>>5:-1;e[Da]=a,e.__keys__=t,r[a-64]=t,a<f?(t.isShared=!0,r.sharedLength=a-63,n=!0,o>=0?(z[B++]=(a&31)+96,z[B++]=o):z[B++]=a):(o>=0?(z[B++]=213,z[B++]=114,z[B++]=(a&31)+96,z[B++]=o):(z[B++]=212,z[B++]=114,z[B++]=a),i&&(h+=g*i),m.length>=u&&(m.shift()[Da]=0),m.push(e),y(t))},E=(e,n,r,i)=>{let a=z,o=B,s=Sa,c=t;z=ba,B=0,t=0,z||(ba=z=new _a(8192)),Sa=z.length-10,T(e,n,i),ba=z;let l=B;if(z=a,B=o,Sa=s,t=c,l>1){let e=B+l-1;e>Sa&&w(e);let n=r+t;z.copyWithin(n+l,n+1,B),z.set(ba.slice(0,l),n),B=e}else z[r+t]=ba[0]},D=e=>{let i=wa(e,z,t,B,r,w,(e,t,r)=>{if(r)return n=!0;B=t;let i=z;return y(e),_(),i===z?B:{position:B,targetView:xa,target:z}},this);if(i===0)return C(e);B=i}}useBuffer(e){z=e,z.dataView||=new DataView(z.buffer,z.byteOffset,z.byteLength),xa=z.dataView,B=0}set position(e){B=e}get position(){return B}clearSharedData(){this.structures&&=[],this.typedStructs&&=[]}};ha=[Date,Set,Error,RegExp,ArrayBuffer,Object.getPrototypeOf(Uint8Array.prototype).constructor,DataView,Ti],ma=[{pack(e,t,n){let r=e.getTime()/1e3;if((this.useTimestamp32||e.getMilliseconds()===0)&&r>=0&&r<4294967296){let{target:e,targetView:n,position:i}=t(6);e[i++]=214,e[i++]=255,n.setUint32(i,r)}else if(r>0&&r<4294967296){let{target:n,targetView:i,position:a}=t(10);n[a++]=215,n[a++]=255,i.setUint32(a,e.getMilliseconds()*4e6+(r/1e3/4294967296>>0)),i.setUint32(a+4,r)}else if(isNaN(r)){if(this.onInvalidDate)return t(0),n(this.onInvalidDate());let{target:e,targetView:r,position:i}=t(3);e[i++]=212,e[i++]=255,e[i++]=255}else{let{target:n,targetView:i,position:a}=t(15);n[a++]=199,n[a++]=12,n[a++]=255,i.setUint32(a,e.getMilliseconds()*1e6),i.setBigInt64(a+4,BigInt(Math.floor(r)))}}},{pack(e,t,n){if(this.setAsEmptyObject)return t(0),n({});let r=Array.from(e),{target:i,position:a}=t(this.moreTypes?3:0);this.moreTypes&&(i[a++]=212,i[a++]=115,i[a++]=0),n(r)}},{pack(e,t,n){let{target:r,position:i}=t(this.moreTypes?3:0);this.moreTypes&&(r[i++]=212,r[i++]=101,r[i++]=0),n([e.name,e.message,e.cause])}},{pack(e,t,n){let{target:r,position:i}=t(this.moreTypes?3:0);this.moreTypes&&(r[i++]=212,r[i++]=120,r[i++]=0),n([e.source,e.flags])}},{pack(e,t){this.moreTypes?ka(e,16,t):Aa(ga?Buffer.from(e):new Uint8Array(e),t)}},{pack(e,t){let n=e.constructor;n!==va&&this.moreTypes?ka(e,ia.indexOf(n.name),t):Aa(e,t)}},{pack(e,t){this.moreTypes?ka(e,17,t):Aa(ga?Buffer.from(e):new Uint8Array(e),t)}},{pack(e,t){let{target:n,position:r}=t(1);n[r]=193}}];function ka(e,t,n,r){let i=e.byteLength;if(i+1<256){var{target:a,position:o}=n(4+i);a[o++]=199,a[o++]=i+1}else if(i+1<65536){var{target:a,position:o}=n(5+i);a[o++]=200,a[o++]=i+1>>8,a[o++]=i+1&255}else{var{target:a,position:o,targetView:s}=n(7+i);a[o++]=201,s.setUint32(o,i+1),o+=4}a[o++]=116,a[o++]=t,e.buffer||(e=new Uint8Array(e)),a.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o)}function Aa(e,t){let n=e.byteLength;var r,i;if(n<256){var{target:r,position:i}=t(n+2);r[i++]=196,r[i++]=n}else if(n<65536){var{target:r,position:i}=t(n+3);r[i++]=197,r[i++]=n>>8,r[i++]=n&255}else{var{target:r,position:i,targetView:a}=t(n+5);r[i++]=198,a.setUint32(i,n),i+=4}r.set(e,i)}function ja(e,t,n,r){let i=e.length;switch(i){case 1:t[n++]=212;break;case 2:t[n++]=213;break;case 4:t[n++]=214;break;case 8:t[n++]=215;break;case 16:t[n++]=216;break;default:i<256?(t[n++]=199,t[n++]=i):i<65536?(t[n++]=200,t[n++]=i>>8,t[n++]=i&255):(t[n++]=201,t[n++]=i>>24,t[n++]=i>>16&255,t[n++]=i>>8&255,t[n++]=i&255)}return t[n++]=r,t.set(e,n),n+=i,n}function Ma(e,t){let n,r=t.length*6,i=e.length-r;for(;n=t.pop();){let t=n.offset,a=n.id;e.copyWithin(t+r,t,i),r-=6;let o=t+r;e[o++]=214,e[o++]=105,e[o++]=a>>24,e[o++]=a>>16&255,e[o++]=a>>8&255,e[o++]=a&255,i=t}return e}function Na(e,t,n){if(Ca.length>0){xa.setUint32(Ca.position+e,B+n-Ca.position-e),Ca.stringsPosition=B-e;let r=Ca;Ca=null,t(r[0]),t(r[1])}}function Pa(e){if(e.Class){if(!e.pack&&!e.write)throw Error(`Extension has no pack or write function`);if(e.pack&&!e.type)throw Error(`Extension has no type (numeric code to identify the extension)`);ha.unshift(e.Class),ma.unshift(e)}la(e)}function Fa(e,t){return e.isCompatible=e=>{let n=!e||(t.lastNamedStructuresLength||0)===e.length;return n||t._mergeStructures(e),n},e}var Ia=new Oa({useRecords:!1});Ia.pack,Ia.pack;var{NEVER:La,ALWAYS:Ra,DECIMAL_ROUND:za,DECIMAL_FIT:Ba}=fa,Va=o(r((e=>{(function(t){typeof DO_NOT_EXPORT_CRC>`u`?typeof e==`object`?t(e):typeof define==`function`&&define.amd?define(function(){var e={};return t(e),e}):t({}):t({})})(function(e){e.version=`1.2.2`;function t(){for(var e=0,t=Array(256),n=0;n!=256;++n)e=n,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,t[n]=e;return typeof Int32Array<`u`?new Int32Array(t):t}var n=t();function r(e){var t=0,n=0,r=0,i=typeof Int32Array<`u`?new Int32Array(4096):Array(4096);for(r=0;r!=256;++r)i[r]=e[r];for(r=0;r!=256;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[n&255];var a=[];for(r=1;r!=16;++r)a[r-1]=typeof Int32Array<`u`?i.subarray(r*256,r*256+256):i.slice(r*256,r*256+256);return a}var i=r(n),a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14];function b(e,t){for(var r=t^-1,i=0,a=e.length;i<a;)r=r>>>8^n[(r^e.charCodeAt(i++))&255];return~r}function x(e,t){for(var r=t^-1,i=e.length-15,b=0;b<i;)r=y[e[b++]^r&255]^v[e[b++]^r>>8&255]^_[e[b++]^r>>16&255]^g[e[b++]^r>>>24]^h[e[b++]]^m[e[b++]]^p[e[b++]]^f[e[b++]]^d[e[b++]]^u[e[b++]]^l[e[b++]]^c[e[b++]]^s[e[b++]]^o[e[b++]]^a[e[b++]]^n[e[b++]];for(i+=15;b<i;)r=r>>>8^n[(r^e[b++])&255];return~r}function S(e,t){for(var r=t^-1,i=0,a=e.length,o=0,s=0;i<a;)o=e.charCodeAt(i++),o<128?r=r>>>8^n[(r^o)&255]:o<2048?(r=r>>>8^n[(r^(192|o>>6&31))&255],r=r>>>8^n[(r^(128|o&63))&255]):o>=55296&&o<57344?(o=(o&1023)+64,s=e.charCodeAt(i++)&1023,r=r>>>8^n[(r^(240|o>>8&7))&255],r=r>>>8^n[(r^(128|o>>2&63))&255],r=r>>>8^n[(r^(128|s>>6&15|(o&3)<<4))&255],r=r>>>8^n[(r^(128|s&63))&255]):(r=r>>>8^n[(r^(224|o>>12&15))&255],r=r>>>8^n[(r^(128|o>>6&63))&255],r=r>>>8^n[(r^(128|o&63))&255]);return~r}e.table=n,e.bstr=b,e.buf=x,e.str=S})}))(),1),Ha=[`alpha`,`beta`,`gamma`,`delta`,`epsilon`,`zeta`,`eta`,`theta`,`iota`,`kappa`,`lambda`,`mu`,`nu`,`xi`,`omicron`,`pi`,`rho`,`sigma`,`tau`,`upsilon`,`phi`,`chi`,`psi`,`omega`],Ua=class{seed;collectionLengthMin;collectionLengthMax;count=0;constructor(e,t){this.setSeed(0),this.collectionLengthMin=e,this.collectionLengthMax=t}setSeed(e){this.seed=e===0?1:e}nextInt(){let e=this.seed;return e^=e<<16,e^=e>>11,e^=e<<5,this.seed=e===0?1:e,this.count+=1,this.seed&2147483647}nextIntWithCeiling(e){return e===0?0:this.nextInt()%e}nextBoolean(){return this.nextIntWithCeiling(31)>15}nextBytes(){let e=new ArrayBuffer(4);return new DataView(e).setInt32(0,this.nextInt()),new Uint8Array(e)}nextString(){return Ha[this.nextIntWithCeiling(Ha.length)]}nextDouble(){return(this.nextInt()&2147483647)/2147483647}nextCollectionLength(){return this.nextIntWithCeiling(this.collectionLengthMax-this.collectionLengthMin)+this.collectionLengthMin}},Wa=class{packr=new Oa({mapsAsObjects:!1,useRecords:!1});unpackr=new Mi({mapsAsObjects:!1,useRecords:!1});toJson(e){let t=JSON.stringify(e);return new TextEncoder().encode(t)}toMsgpack(e){return this.packr.encode(e)}fromJson(e){let t=new TextDecoder().decode(e);return JSON.parse(t)}fromMsgpack(e){return this.unpackr.decode(e)}};function Ga(e){return e instanceof Error?e:Error(typeof e==`string`?e:String(e))}var Ka=class e extends Error{context;cause;constructor(t,n=`serialize Telepact message`){let r=Ga(t);super(`telepact serialization failed while ${n}: ${r.message}`),Object.setPrototypeOf(this,e.prototype),this.name=`SerializationError`,this.context=n,this.cause=r,r.stack&&(this.stack=r.stack)}};function qa(e,t,n,r){let i=e.headers,a;`@binary_`in i?(a=i[`@binary_`]===!0,delete i[`@binary_`]):a=!1;let o=[e.headers,e.body];try{if(a)try{let e=t.encode(o);return r.toMsgpack(e)}catch{let e=n.encode(o);return r.toJson(e)}else{let e=n.encode(o);return r.toJson(e)}}catch(e){throw new Ka(e,a?`encoding Telepact message as binary or JSON fallback`:`encoding Telepact message as JSON`)}}var Ja=class{headers;body;constructor(e,t){this.headers=e,this.body=t}getBodyTarget(){return Object.entries(this.body)[0][0]}getBodyPayload(){return Object.entries(this.body)[0][1]}},Ya=class extends Error{constructor(e){super(`Invalid message`,{cause:e})}},Xa=class extends Error{};function Za(e,t,n,r){let i,a;try{e[0]===146?(a=!0,i=t.fromMsgpack(e)):(a=!1,i=t.fromJson(e))}catch{throw new Ya}if(!Array.isArray(i))throw new Ya;let o=i;if(o.length!==2)throw new Ya;let s;if(s=a?n.decode(o):r.decode(o),typeof s[0]!=`object`||Array.isArray(s[0]))throw new Ya;let c=s[0];if(typeof s[1]!=`object`||Array.isArray(s[1]))throw new Ya;let l=s[1];if(Object.keys(l).length!==1||typeof Object.values(l)[0]!=`object`||Array.isArray(Object.values(l)[0]))throw new Xa;return new Ja(c,l)}var Qa=class{serializationImpl;binaryEncoder;base64Encoder;constructor(e,t,n){this.serializationImpl=e,this.binaryEncoder=t,this.base64Encoder=n}serialize(e){return qa(e,this.binaryEncoder,this.base64Encoder,this.serializationImpl)}deserialize(e){return Za(e,this.serializationImpl,this.binaryEncoder,this.base64Encoder)}},$a=class{value;expiration;constructor(e,t){this.value=e,this.expiration=t}},eo=class{primary=null;secondary=null;lastUpdate=new Date;binaryEncodingCache;constructor(e){this.binaryEncodingCache=e;let t=e.getChecksums(),n=t[0],r=t[1];n&&(this.primary=new $a(n,0)),r&&(this.secondary=new $a(r,0))}updateChecksum(e){if(!this.primary){this.primary=new $a(e,0);return}if(this.primary.value!==e){let t=this.secondary;this.secondary=this.primary,this.primary=new $a(e,0),this.secondary&&(this.secondary.expiration+=1),t&&this.binaryEncodingCache.remove(t.value);return}this.lastUpdate=new Date}getCurrentChecksums(){if(!this.primary)return[];if(this.secondary){let e=(Date.now()-this.lastUpdate.getTime())/(1e3*60),t=Math.floor(e/10)+1;return this.secondary&&(this.secondary.expiration+=1*t),this.secondary&&this.secondary.expiration>5?(this.secondary=null,[this.primary.value]):[this.primary.value,this.secondary.value]}else return[this.primary.value]}},to=class extends Error{};function no(e,t){if(e==null)return e;if(typeof e==`object`&&!Array.isArray(e)){let n=new Map;for(let[r,i]of Object.entries(e)){let e=t.encodeMap.has(r)?t.encodeMap.get(r):r,a=no(i,t);n.set(e,a)}return n}else if(Array.isArray(e))return e.map(e=>no(e,t));else return e}function ro(e,t){return no(e,t)}var io=class{value;nested;constructor(e,t){this.value=e,this.nested=t}},ao=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}},oo=18,so=class{toString(){return`UNDEFINED`}};Pa({Class:so,type:oo,pack(e){return Buffer.from([])},unpack(e){return new so}});function co(e,t,n){let r=[];for(let[i,a]of e.entries()){if(typeof i==`string`)throw new ao;let e=n.get(i),o;e===void 0?(o=new io(t.length-1,new Map),a instanceof Map?t.push([i]):t.push(i),n.set(i,o)):o=e;let s=o.value,c=o.nested,l;if(a instanceof Map&&a!==null){let e=t[s+1];if(!Array.isArray(e))throw new ao;l=co(a,e,c)}else{if(Array.isArray(t[s+1]))throw new ao;l=po(a)}for(;r.length<s;)r.push(new so);r.length===s?r.push(l):r[s]=l}return r}var lo=17,uo=class{toString(){return`PACKED`}};Pa({Class:uo,type:lo,pack(e){return Buffer.from([])},unpack(e){return new uo}});function fo(e){if(e.length===0)return e;let t=[],n=[];t.push(new uo),n.push(null),t.push(n);let r=new Map;try{for(let i of e)if(i instanceof Map){let e=co(i,n,r);t.push(e)}else throw new ao;return t}catch{let t=[];for(let n of e)t.push(po(n));return t}}function po(e){if(Array.isArray(e))return fo(e);if(e instanceof Map){let t=new Map;for(let[n,r]of e.entries())t.set(n,po(r));return t}else return e}function mo(e){let t=new Map;for(let[n,r]of e.entries()){let e=po(r);t.set(n,e)}return t}function ho(e,t,n){let r=e[0],i=e[1],a=r._forceSendJson;delete r._forceSendJson;let o=n.getCurrentChecksums();if(r[`@bin_`]=o,a===!0||o.length>1)throw new to;let s=o.length>0?t.get(o[0]):void 0;if(!s)throw new to;let c=ro(i,s),l;return l=r[`@pac_`]===!0?mo(c):c,[r,l]}var go=class extends Error{constructor(e){super(`Missing binary encoding for ${String(e)}`)}};function _o(e,t){if(e instanceof Map){let n={};for(let[r,i]of e.entries()){let e=typeof r==`string`?r:t.decodeMap.get(r);if(e===void 0)throw new go(r);n[e]=_o(i,t)}return n}else if(Array.isArray(e))return e.map(e=>_o(e,t));else return e}function vo(e,t){return _o(e,t)}function yo(e,t){let n=new Map;for(let r=0;r<e.length;r+=1){let i=t[r+1],a=e[r];if(!(a instanceof so))if(Array.isArray(i)){let e=i,t=yo(a,e),r=e[0];n.set(r,t)}else{let e=xo(a);n.set(i,e)}}return n}function bo(e){if(e.length===0)return e;if(!(e[0]instanceof uo)){let t=[];for(let n of e)t.push(xo(n));return t}let t=[],n=e[1];for(let r=2;r<e.length;r+=1){let i=e[r],a=yo(i,n);t.push(a)}return t}function xo(e){if(Array.isArray(e))return bo(e);if(e instanceof Map){let t=new Map;for(let[n,r]of e.entries())t.set(n,xo(r));return t}else return e}function So(e){let t=new Map;for(let[n,r]of e.entries()){let e=xo(r);t.set(n,e)}return t}function Co(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries())t[n]=Co(r);return t}else if(Array.isArray(e)){let t=[];for(let n of e){let e=Co(n);t.push(e)}return t}else if(typeof e==`object`&&e)for(let[t,n]of Object.entries(e))Co(n);else return e}function wo(e,t,n){let r=e[0],i=e[1],a=r.get(`@bin_`)[0];if(r.has(`@enc_`)){let e=r.get(`@enc_`);t.add(a,e)}n.updateChecksum(a);let o=n.getCurrentChecksums(),s=t.get(o[0]),c;return c=r.get(`@pac_`)===!0?So(i):i,[Co(r),vo(c,s)]}var To=class{binaryEncodingCache;binaryChecksumStrategy;constructor(e){this.binaryEncodingCache=e,this.binaryChecksumStrategy=new eo(e)}encode(e){return ho(e,this.binaryEncodingCache,this.binaryChecksumStrategy)}decode(e){return wo(e,this.binaryEncodingCache,this.binaryChecksumStrategy)}};function Eo(e){let t=globalThis.crypto;if(typeof t?.getRandomValues==`function`){t.getRandomValues(e);return}for(let t=0;t<e.length;t+=1)e[t]=Math.floor(Math.random()*256)}function Do(){let e=globalThis.crypto;if(typeof e?.randomUUID==`function`)return e.randomUUID();let t=new Uint8Array(16);Eo(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``);return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}function Oo(e){if(e instanceof Error)return e;if(typeof e==`string`)return Error(e);if(e!=null)return Error(String(e))}var ko=class e extends Error{kind;caseId;cause;constructor(t,n,r){let i=Oo(typeof t==`string`?r:t),a=typeof t==`string`?t:i?.message??`telepact error`;super(a),Object.setPrototypeOf(this,e.prototype),this.name=`TelepactError`,this.kind=n,this.caseId=Do(),this.cause=i,i?.stack&&(this.stack=i.stack)}};function Ao(e,t){if(typeof e!=typeof t)return!1;if(typeof e!=`object`||!e||t===null)return e===t;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length||!n.every(e=>r.includes(e)))return!1;for(let r of n)if(!Ao(e[r],t[r]))return!1;return!0}function jo(e){return new Promise((t,n)=>{setTimeout(()=>{n(Error(`Promise timed out`))},e)})}async function Mo(e,t,n,r,i,a){let o=e.headers;try{o.hasOwnProperty(`@time_`)||(o[`@time_`]=r),i&&(o[`@binary_`]=!0),o[`@binary_`]&&a&&(o._forceSendJson=!0);let s=o[`@time_`],c=await Promise.race([t(e,n),jo(s)]);return Ao(c.body,{ErrorParseFailure_:{reasons:[{IncompatibleBinaryEncoding:{}}]}})?(o[`@binary_`]=!0,o._forceSendJson=!0,await Promise.race([t(e,n),jo(s)])):c}catch(e){throw e instanceof ko?e:e instanceof Ka?new ko(`telepact client serialization or deserialization failed`,`serialization`,e):e instanceof Error&&e.message===`Promise timed out`?new ko(`telepact client transport timed out after ${o[`@time_`]}ms`,`transport`,e):new ko(`telepact client transport failed`,`transport`,e)}}var No=class{},Po=class{encodeMap;decodeMap;checksum;constructor(e,t){this.encodeMap=e;let n=[...e.entries()].map(e=>[e[1],e[0]]);this.decodeMap=new Map(n),this.checksum=t}},Fo=class extends No{recentBinaryEncoders;constructor(){super(),this.recentBinaryEncoders=new Map}add(e,t){let n=new Po(t,e);this.recentBinaryEncoders.set(e,n)}get(e){return this.recentBinaryEncoders.get(e)}remove(e){this.recentBinaryEncoders.delete(e)}getChecksums(){return Array.from(this.recentBinaryEncoders.keys())}},Io=class{};function Lo(e){return typeof window<`u`?btoa(String.fromCharCode(...e)):Buffer.from(e).toString(`base64`)}function Ro(e){return typeof window<`u`?Uint8Array.from(atob(e),e=>e.charCodeAt(0)):Uint8Array.from(Buffer.from(e,`base64`))}function zo(e){let t=e[0],n=e[1];Bo(n,t[`@base64_`]||{})}function Bo(e,t){if(typeof t==`object`&&t&&!Array.isArray(t)){for(let[n,r]of Object.entries(t))if(r===!0)if(n===`*`&&Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=Bo(e[t],r);else if(n===`*`&&typeof e==`object`&&e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=Bo(e[t],r));else if(typeof e==`object`&&e)e[n]=Bo(e[n],r);else throw Error(`Invalid base64 path: ${n} for value: ${e}`);else if(n===`*`&&Array.isArray(e))for(let t of e)Bo(t,r);else if(n===`*`&&typeof e==`object`&&e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&Bo(e[t],r);else if(typeof e==`object`&&e)Bo(e[n],r);else throw Error(`Invalid base64 path: ${n} for value: ${e}`);return null}else if(t===!0&&(typeof e==`string`||e===null))return e===null?null:Ro(e);else throw Error(`Invalid base64 path: ${t} for value: ${e}`)}function Vo(e){let t=e[1];Ho(t)}function Ho(e){if(typeof e==`object`&&e&&!Array.isArray(e))for(let[t,n]of Object.entries(e))n instanceof Uint8Array?e[t]=btoa(String.fromCharCode(...n)):Ho(n);else if(Array.isArray(e))for(let t=0;t<e.length;t++){let n=e[t];n instanceof Uint8Array?e[t]=btoa(String.fromCharCode(...n)):Ho(n)}}var Uo=class extends Io{decode(e){return zo(e),e}encode(e){return Vo(e),e}},Wo=class extends No{recentBinaryEncoders;recentBinaryEncodersJson;namespace;constructor(e){super(),this.namespace=`telepact-api-encoding:`+e;let t=localStorage.getItem(this.namespace);console.log(`Binary Encoding loaded from local storage for ${this.namespace}: ${t}`);let n=t?JSON.parse(t):{};this.recentBinaryEncodersJson=n,this.recentBinaryEncoders=this.mapJsonToObject(n)}add(e,t){let n=Object.fromEntries(t);this.recentBinaryEncodersJson[`${e}`]=n,this.recentBinaryEncoders=this.mapJsonToObject(this.recentBinaryEncodersJson),localStorage.setItem(this.namespace,JSON.stringify(this.recentBinaryEncodersJson))}get(e){return this.recentBinaryEncoders.get(e)}remove(e){delete this.recentBinaryEncodersJson[e],this.recentBinaryEncoders=this.mapJsonToObject(this.recentBinaryEncodersJson),localStorage.setItem(this.namespace,JSON.stringify(this.recentBinaryEncodersJson))}getChecksums(){return Array.from(this.recentBinaryEncoders.keys())}mapJsonToObject(e){let t=new Map;for(var[n,r]of Object.entries(e)){let e=parseInt(n),i=new Po(new Map(Object.entries(r)),e);t.set(e,i)}return t}},Go=class{adapter;useBinaryDefault;alwaysSendJson;timeoutMsDefault;serializer;constructor(e,t){this.adapter=e,this.useBinaryDefault=t.useBinary,this.alwaysSendJson=t.alwaysSendJson,this.timeoutMsDefault=t.timeoutMsDefault;let n=new To(t.localStorageCacheNamespace?new Wo(t.localStorageCacheNamespace):new Fo),r=new Uo;this.serializer=new Qa(t.serializationImpl,n,r)}async request(e){return await Mo(e,this.adapter,this.serializer,this.timeoutMsDefault,this.useBinaryDefault,this.alwaysSendJson)}},Ko=class{useBinary;alwaysSendJson;timeoutMsDefault;serializationImpl;localStorageCacheNamespace;constructor(){this.useBinary=!1,this.alwaysSendJson=!0,this.timeoutMsDefault=5e3,this.serializationImpl=new Wa,this.localStorageCacheNamespace=``}},qo=class{functionRoutes;constructor(e){this.functionRoutes=e}async route(e){let t=e.getBodyTarget(),n=this.functionRoutes[t];if(n===void 0)throw Error(`Unknown function: ${t}`);return await n(t,e)}};function Jo(e,t){let n=e[0],r=e[1],i=n[`@clientKnownBinaryChecksums_`];if(delete n[`@clientKnownBinaryChecksums_`],Object.keys(r)[0]!==`Ok_`)throw new to;(i===void 0||!i.includes(t.checksum))&&(n[`@enc_`]=t.encodeMap),n[`@bin_`]=[t.checksum];let a=ro(r,t),o;return o=n[`@pac_`]===!0?mo(a):a,[n,o]}function Yo(e,t){let n=e[0],r=e[1];if(n.get(`@bin_`)[0]!==t.checksum)throw new to;let i;return i=n.get(`@pac_`)===!0?So(r):r,[Co(n),vo(i,t)]}var Xo=class{binaryEncoder;constructor(e){this.binaryEncoder=e}encode(e){return Jo(e,this.binaryEncoder)}decode(e){return Yo(e,this.binaryEncoder)}};function Zo(e){return Va.default.str(e)|0}var Qo=class{path;reason;data;constructor(e,t,n){this.path=e,this.reason=t,this.data=n}};function $o(e){return e===null?`Null`:typeof e==`boolean`?`Boolean`:typeof e==`number`?`Number`:typeof e==`string`?`String`:Array.isArray(e)?`Array`:typeof e==`object`?`Object`:`Unknown`}function es(e,t,n){return[new Qo(e,`TypeUnexpected`,{actual:{[$o(t)]:{}},expected:{[n]:{}}})]}function ts(e,t,n,r){let i=[],a=[];for(let[r,i]of Object.entries(e)){let e=i.optional,o=t!==null&&!t.includes(r);!(r in n)&&!e&&!o&&a.push(r)}for(let e of a){let t=new Qo([],`RequiredObjectKeyMissing`,{key:e});i.push(t)}for(let[t,a]of Object.entries(n)){let n=e[t];if(n===void 0){let e=new Qo([t],`ObjectKeyDisallowed`,{});i.push(e);continue}let o=n.typeDeclaration;r.path.push(t);let s=o.validate(a,r);r.path.pop();let c=[];for(let e of s){let n=[t,...e.path];c.push(new Qo(n,e.reason,e.data))}i.push(...c)}return i}function ns(e,t,n,r,i){let a=r?.[t]??null;i.path.push(t);let o=ts(e.fields,a,n,i);return i.path.pop(),o}function rs(e,t,n,r){if(Object.keys(n).length!==1)return[new Qo([],`ObjectSizeUnexpected`,{actual:Object.keys(n).length,expected:1})];let[i,a]=Object.entries(n)[0],o=e[i];if(o===void 0)return[new Qo([i],`ObjectKeyDisallowed`,{})];if(typeof a==`object`&&!Array.isArray(a)){let e=ns(o,i,a,t,r),n=[];for(let t of e){let e=[i,...t.path];n.push(new Qo(e,t.reason,t.data))}return n}else return es([i],a,`Object`)}function is(e,t,n,r){if(typeof e==`object`&&!Array.isArray(e)){let i;return i=t.startsWith(`fn.`)?{[t]:r.select?.[t]??null}:r.select?.[t]??null,rs(n,i,e,r)}else return es([],e,ss)}function as(e,t,n,r){let i=t?e:{},a=Array.from(Object.entries(n)).sort((e,t)=>{let n=e[0],r=t[0];for(let e=0;e<Math.min(n.length,r.length);e++){let t=n.charCodeAt(e),i=r.charCodeAt(e);if(t!==i)return t-i}return n.length-r.length}),o={};for(let[e,t]of a){let n=i[e],a=e in i,s=t.typeDeclaration,c;if(a)c=s.generateRandomValue(n,a,r);else if(t.optional){if(!r.includeOptionalFields||r.randomizeOptionalFields&&r.randomGenerator.nextBoolean())continue;c=s.generateRandomValue(null,!1,r)}else{if(!r.alwaysIncludeRequiredFields&&r.randomGenerator.nextBoolean())continue;c=s.generateRandomValue(null,!1,r)}o[e]=c}return o}function os(e,t,n,r){if(t){let[t,i]=Object.entries(e)[0],a=n[t];return{[t]:as(i,!0,a.fields,r)}}else{let e=Object.entries(n).sort((e,t)=>e[0].localeCompare(t[0])),[t,i]=e[r.randomGenerator.nextIntWithCeiling(e.length)];return{[t]:as(null,!1,i.fields,r)}}}var ss=`Object`,cs=class{name;tags;tagIndices;constructor(e,t,n){this.name=e,this.tags=t,this.tagIndices=n}getTypeParameterCount(){return 0}validate(e,t,n){return is(e,this.name,this.tags,n)}generateRandomValue(e,t,n,r){return os(e,t,this.tags,r)}getName(){return ss}};function ls(e,t,n,r){return typeof e==`object`&&!Array.isArray(e)?ts(n,r.select?.[t]??null,e,r):es([],e,us)}var us=`Object`,ds=class{name;fields;constructor(e,t){this.name=e,this.fields=t}getTypeParameterCount(){return 0}validate(e,t,n){return ls(e,this.name,this.fields,n)}generateRandomValue(e,t,n,r){return as(e,t,this.fields,r)}getName(){return us}},fs=class{};function ps(e,t,n){if(Array.isArray(e)){let r=t[0],i=[];for(let t=0;t<e.length;t++){let a=e[t];n.path.push(`*`);let o=r.validate(a,n);n.path.pop();let s=t,c=[];for(let e of o){let t=[s,...e.path];c.push(new Qo(t,e.reason,e.data))}i.push(...c)}return i}else return es([],e,hs)}function ms(e,t,n,r){let i=n[0];if(t){let n=e,a=[];for(let e of n){let n=i.generateRandomValue(e,t,r);a.push(n)}return a}else{let e=r.randomGenerator.nextCollectionLength(),t=[];for(let n=0;n<e;n++){let e=i.generateRandomValue(null,!1,r);t.push(e)}return t}}var hs=`Array`,gs=class extends fs{getTypeParameterCount(){return 1}validate(e,t,n){return ps(e,t,n)}generateRandomValue(e,t,n,r){return ms(e,t,n,r)}getName(){return hs}};function _s(e,t,n){if(typeof e==`object`&&!Array.isArray(e)){let r=t[0],i=[];for(let[t,a]of Object.entries(e)){n.path.push(`*`);let e=r.validate(a,n);n.path.pop();let o=[];for(let n of e){let e=[t,...n.path];o.push(new Qo(e,n.reason,n.data))}i.push(...o)}return i}else return es([],e,ys)}function vs(e,t,n,r){let i=n[0];if(t){let t=e,n={};for(let[e,a]of Object.entries(t))n[e]=i.generateRandomValue(a,!0,r);return n}else{let e=r.randomGenerator.nextCollectionLength(),t={};for(let n=0;n<e;n++){let e=r.randomGenerator.nextString();t[e]=i.generateRandomValue(null,!1,r)}return t}}var ys=`Object`,bs=class{getTypeParameterCount(){return 1}validate(e,t,n){return _s(e,t,n)}generateRandomValue(e,t,n,r){return vs(e,t,n,r)}getName(){return ys}};function xs(e){let t=[];if(e.type instanceof gs){let n=xs(e.typeParameters[0]);t.push(...n)}else if(e.type instanceof bs){let n=xs(e.typeParameters[0]);t.push(...n)}else if(e.type instanceof ds){let n=e.type.fields;for(let[e,r]of Object.entries(n)){t.push(e);let n=xs(r.typeDeclaration);t.push(...n)}}else if(e.type instanceof cs){let n=e.type.tags;for(let[e,r]of Object.entries(n)){t.push(e);let n=r.fields;for(let[e,r]of Object.entries(n)){t.push(e);let n=xs(r.typeDeclaration);t.push(...n)}}}return t}function Ss(e){let t=new Set;for(let[n,r]of Object.entries(e.parsed))if(n.endsWith(`.->`)&&r instanceof cs){let e=r.tags.Ok_;t.add(`Ok_`),Object.entries(e.fields).forEach(([e,n])=>{t.add(e),xs(n.typeDeclaration).forEach(e=>t.add(e))})}else if(n.startsWith(`fn.`)&&r instanceof cs){t.add(n);let e=r.tags[n];Object.entries(e.fields).forEach(([e,n])=>{t.add(e),xs(n.typeDeclaration).forEach(e=>t.add(e))})}let n=Array.from(t).sort(),r=new Map;return n.forEach((e,t)=>{r.set(e,t)}),new Po(r,Zo(n.join(`
72
+ `)))}function Cs(e,t,n,r,i){return e===null?n?[]:es([],e,t.getName()):t.validate(e,r,i)}function ws(e,t,n,r,i,a){return r&&!t&&a.randomGenerator.nextBoolean()?null:n.generateRandomValue(e,t,i,a)}var Ts=class{type;nullable;typeParameters;constructor(e,t,n){this.type=e,this.nullable=t,this.typeParameters=n}validate(e,t){return Cs(e,this.type,this.nullable,this.typeParameters,t)}generateRandomValue(e,t,n){return ws(e,t,this.type,this.nullable,this.typeParameters,n)}};function Es(e,t,n){let r=e.type,i=e.typeParameters;if(r instanceof ds){let e=r.fields,i=n[r.name],a=t,o={};for(let[t,r]of Object.entries(a))if(i===void 0||i.includes(t)){let i=e[t].typeDeclaration;o[t]=Es(i,r,n)}return o}else if(r instanceof cs){let[e,i]=Object.entries(t)[0],a=r.tags,o=a[e].fields,s={};for(let[e,t]of Object.entries(a))s[e]=Object.keys(t.fields);let c=n[r.name],l=s[e],u=c?.[e]||l,d={};for(let[e,t]of Object.entries(i))if(u===void 0||u.includes(e)){let r=o[e];d[e]=Es(r.typeDeclaration,t,n)}return{[e]:d}}else if(r instanceof bs){let e=i[0],r=t,a={};for(let[t,i]of Object.entries(r))a[t]=Es(e,i,n);return a}else if(r instanceof gs){let e=i[0],r=t,a=[];for(let t of r){let r=Es(e,t,n);a.push(r)}return a}else return t}function Ds(e){let t=[];for(let n of e){let e={path:n.path,reason:{[n.reason]:n.data}};t.push(e)}return t}var Os=class{path;select;fn;coerceBase64;base64Coercions;bytesCoercions;constructor(e,t,n){this.path=[],this.select=e,this.fn=t,this.coerceBase64=n,this.base64Coercions={},this.bytesCoercions={}}};function ks(e,t){let n=e.validate(t,[],new Os(null,null,!1));if(n.length!==0)throw new ko(`Failed internal telepact validation: ${JSON.stringify(Ds(n))}`)}function As(e,t,n,r){let i=Ds(t),a={[e]:{cases:i}};return ks(n,a),new Ja(r,a)}function js(e,t,n){let r=[];for(let i in e){let a=e[i],o=t[i];if(i.startsWith(`@`)||r.push(new Qo([i],`RequiredObjectKeyPrefixMissing`,{prefix:`@`})),o){let e=o.typeDeclaration.validate(a,new Os(null,n,!1)).map(e=>new Qo([i,...e.path],e.reason,e.data));r.push(...e)}}return r}function Ms(e,t){Ns(e,t)}function Ns(e,t){if(typeof t==`object`&&!Array.isArray(t)){for(let[n,r]of Object.entries(t))if(r===!0)if(n===`*`&&Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=Ns(e[t],r);else if(n===`*`&&typeof e==`object`&&e)for(let[t,n]of Object.entries(e))e[t]=Ns(n,r);else if(typeof e==`object`&&e)e[n]=Ns(e[n],r);else throw Error(`Invalid bytes path: ${n} for value: ${e}`);else if(n===`*`&&Array.isArray(e))for(let t=0;t<e.length;t++)Ns(e[t],r);else if(n===`*`&&typeof e==`object`&&e)for(let[t,n]of Object.entries(e))Ns(n,r);else if(typeof e==`object`&&e)Ns(e[n],r);else throw Error(`Invalid bytes path: ${n} for value: ${e}`);return null}else if(t===!0&&(typeof e==`string`||e===null))return e===null?null:Ro(e);else throw Error(`Invalid bytes path: ${t} for value: ${e} of type ${typeof e}`)}var Ps=class e{includeOptionalFields;randomizeOptionalFields;alwaysIncludeRequiredFields;fnScope;randomGenerator;constructor(e,t,n,r,i){this.includeOptionalFields=e,this.randomizeOptionalFields=t,this.alwaysIncludeRequiredFields=n,this.fnScope=r,this.randomGenerator=i}copy({alwaysIncludeRequiredFields:t}){return new e(this.includeOptionalFields,this.randomizeOptionalFields,t??this.alwaysIncludeRequiredFields,this.fnScope,this.randomGenerator)}},Fs=2;function Is(e,t){let n=t?e.full:e.original,r=Us(e.parsed);return n.map(t=>Ls(t,e,r))}function Ls(e,t,n){let r=Ws(e),i={...e};if(r.startsWith(`info.`))return i.example={},i;let a=new Ua(Fs,Fs);if(r.startsWith(`fn.`)){let e=new Ps(!0,!1,!0,r,a);return i.inputExample=Hs(t.parsed[r].generateRandomValue(null,!1,[],e)),i.outputExample=Hs(t.parsed[`${r}.->`].generateRandomValue(null,!1,[],e)),i}if(r.startsWith(`headers.`)){let o=new Ps(!0,!1,!0,n,a);return i.inputExample=Rs(e[r],t.parsedRequestHeaders,o),i.outputExample=Rs(e[`->`],t.parsedResponseHeaders,o),i}if(r.startsWith(`errors.`)){let o=new Ps(!0,!1,!0,n,a);return i.example=zs(e[r],t,o),i}let o=new Ps(!0,!1,!0,n,a);return i.example=Hs(t.parsed[r].generateRandomValue(null,!1,[],o)),i}function Rs(e,t,n){let r={};for(let i of Object.keys(e||{}).sort())r[i]=Hs(t[i].typeDeclaration.generateRandomValue(null,!1,n));return r}function zs(e,t,n){let r=e.map(e=>{let[t,n]=Object.entries(e).find(([e])=>e!==`///`);return[t,n]}).sort(([e],[t])=>e.localeCompare(t)),[i,a]=r[n.randomGenerator.nextIntWithCeiling(r.length)];return{[i]:Bs(a,t,n)}}function Bs(e,t,n){let r={};for(let i of Object.keys(e).sort()){if(i.endsWith(`!`)){if(!n.includeOptionalFields||n.randomizeOptionalFields&&n.randomGenerator.nextBoolean())continue}else if(!n.alwaysIncludeRequiredFields&&n.randomGenerator.nextBoolean())continue;r[i]=Vs(e[i],t,n)}return r}function Vs(e,t,n){if(typeof e==`string`){let r=e.endsWith(`?`),i=r?e.slice(0,-1):e;if(r&&n.randomGenerator.nextBoolean())return null;switch(i){case`boolean`:return n.randomGenerator.nextBoolean();case`integer`:return n.randomGenerator.nextInt();case`number`:return n.randomGenerator.nextDouble();case`string`:return n.randomGenerator.nextString();case`any`:{let e=n.randomGenerator.nextIntWithCeiling(3);return e===0?n.randomGenerator.nextBoolean():e===1?n.randomGenerator.nextInt():n.randomGenerator.nextString()}case`bytes`:return Lo(n.randomGenerator.nextBytes());default:return Hs(t.parsed[i].generateRandomValue(null,!1,[],n))}}if(Array.isArray(e)){let r=n.randomGenerator.nextCollectionLength(),i=[];for(let a=0;a<r;a+=1)i.push(Vs(e[0],t,n));return i}if(typeof e==`object`&&e){let r=e,[i]=Object.keys(r);if(i===`string`){let e=n.randomGenerator.nextCollectionLength(),a={};for(let o=0;o<e;o+=1)a[n.randomGenerator.nextString()]=Vs(r[i],t,n);return a}}return null}function Hs(e){if(e instanceof Uint8Array)return Lo(e);if(Array.isArray(e))return e.map(e=>Hs(e));if(typeof e==`object`&&e){let t={};for(let[n,r]of Object.entries(e))t[n]=Hs(r);return t}return e}function Us(e){let t=Object.keys(e).filter(e=>e.startsWith(`fn.`)&&!e.endsWith(`.->`)&&!e.endsWith(`_`)).sort();if(t.length>0)return t[0];let n=Object.keys(e).filter(e=>e.startsWith(`fn.`)&&!e.endsWith(`.->`)).sort();return n.length>0?n[0]:`fn.ping_`}function Ws(e){for(let t of Object.keys(e))if(t!==`///`&&t!==`->`&&t!==`_errors`)return t;throw Error(`Schema entry has no schema key: ${JSON.stringify(e)}`)}function Gs(e,t={}){return new Ja(t,{ErrorUnknown_:{caseId:e.caseId}})}async function Ks(e,t,n,r,i,a,o){let s={},c=e.headers,l=e.body,u=n.parsed,d=Object.entries(l)[0];t?.(c);let f=d[0],p=d[1],m,h;f in u?(m=null,h=f):(m=f,h=`fn.ping_`);let g=h,_=u[h],v=u[`${h}.->`],y=c[`@id_`];if(y!==void 0&&(s[`@id_`]=y),`_parseFailures`in c){let e={ErrorParseFailure_:{reasons:c._parseFailures}};return ks(v,e),new Ja(s,e)}let b=js(c,n.parsedRequestHeaders,g);if(b.length>0)return As(`ErrorInvalidRequestHeaders_`,b,v,s);if(`@auth_`in c)try{let e=o(c)??{};Object.assign(c,e)}catch(e){let t=new ko(`telepact auth handler failed while handling ${g}`,`handler`,e);try{a(t)}catch{}return Gs(t,s)}if(`@bin_`in c){let e=c[`@bin_`];s[`@binary_`]=!0,s[`@clientKnownBinaryChecksums_`]=e,`@pac_`in c&&(s[`@pac_`]=c[`@pac_`])}let x=c[`@select_`]||null;if(m!==null){let e={ErrorInvalidRequestBody_:{cases:[{path:[m],reason:{FunctionUnknown:{}}}]}};return ks(v,e),new Ja(s,e)}let S=_,C=[],w=e=>{let t=e.reason==`NumberTruncated`;return t&&C.push(e),!t},T=new Os(null,g,!1),E=S.validate(l,[],T).filter(w);if(E.length>0){if(C.length>0){let e=s[`@warn_`]||[],t=Ds(C);s[`@warn_`]=e.concat(t)}return As(`ErrorInvalidRequestBody_`,E,v,s)}Object.keys(T.bytesCoercions).length>0&&Ms(l,T.bytesCoercions);let D=c[`@unsafe_`]||!1,O=new Ja(c,{[g]:p}),ee;if(g===`fn.ping_`)ee=new Ja({},{Ok_:{}});else if(g===`fn.api_`){let e=p[`includeInternal!`]===!0;ee=new Ja({},{Ok_:{api:p[`includeExamples!`]===!0?Is(n,e):e?n.full:n.original}})}else try{ee=await r(O,i)}catch(e){let t=new ko(`telepact handler failed while handling ${g}`,`handler`,e);try{a(t)}catch{}return Gs(t,s)}let k=ee.body;ee.headers={...ee.headers,...s};let te=ee.headers,A=D,ne=new Os(x,g,c[`@binary_`]!=1),re=v.validate(k,[],ne).filter(w);if(C.length>0){let e=s[`@warn_`]||[],t=Ds(C);s[`@warn_`]=e.concat(t)}if(re.length>0&&!A){try{a(new ko(`telepact response validation failed for ${g}: ${JSON.stringify(Ds(re))}`,`validation`))}catch{}return As(`ErrorInvalidResponseBody_`,re,v,s)}Object.keys(ne.base64Coercions).length>0&&(te[`@base64_`]=ne.base64Coercions),Object.keys(ne.bytesCoercions).length>0&&Ms(k,ne.bytesCoercions);let ie=js(te,n.parsedResponseHeaders,g);if(ie.length>0){try{a(new ko(`telepact response header validation failed for ${g}: ${JSON.stringify(Ds(ie))}`,`validation`))}catch{}return As(`ErrorInvalidResponseHeaders_`,ie,v,s)}let j;return j=x===null?k:Es(new Ts(v,!1,[]),k,x),new Ja(te,j)}function qs(e,t,n,r){try{return t.deserialize(e)}catch(e){r(new ko(`telepact request parsing failed while decoding the incoming message`,`parse`,e));let t;return t=e instanceof to?`IncompatibleBinaryEncoding`:e instanceof go?`BinaryDecodeFailure`:e instanceof Ya?`ExpectedJsonArrayOfTwoObjects`:e instanceof Xa?`ExpectedJsonArrayOfAnObjectAndAnObjectOfOneObject`:`ExpectedJsonArrayOfTwoObjects`,new Ja({_parseFailures:[{[t]:{}}]},{_unknown:{}})}}async function Js(e,t,n,r,i,a,o,s,c,l){try{let u=qs(e,n,r,i);try{a(u)}catch{}let d=await Ks(u,t,r,c,l,i,s);try{o(d)}catch{}let f;try{f=n.serialize(d)}catch(e){let t=e instanceof Ka?new ko(`telepact response serialization failed`,`serialization`,e):new ko(`telepact server processing failed while serializing the response`,`serialization`,e);try{i(t)}catch{}return{bytes:n.serialize(Gs(t)),headers:{}}}return{bytes:f,headers:d.headers}}catch(e){let t=e instanceof ko?e:e instanceof Ka?new ko(`telepact response serialization failed`,`serialization`,e):new ko(`telepact server processing failed`,void 0,e);try{i(t)}catch{}return{bytes:n.serialize(Gs(t)),headers:{}}}}function Ys(e){let t=e[0],n=e[1];Xs(n,t[`@base64_`]||{})}function Xs(e,t){if(typeof t==`object`&&!Array.isArray(t)){for(let[n,r]of Object.entries(t))if(r===!0)if(n===`*`&&Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=Xs(e[t],r);else if(n===`*`&&typeof e==`object`&&e)for(let t in e)e[t]=Xs(e[t],r);else if(typeof e==`object`&&e)e[n]=Xs(e[n],r);else throw Error(`Invalid base64 path: ${n} for value: ${e}`);else if(n===`*`&&Array.isArray(e))for(let t of e)Xs(t,r);else if(n===`*`&&typeof e==`object`&&e)for(let t of Object.values(e))Xs(t,r);else if(typeof e==`object`&&e)Xs(e[n],r);else throw Error(`Invalid base64 path: ${n} for value: ${e}`);return null}else if(t===!0&&(e instanceof Uint8Array||e===null))return e===null?null:Lo(e);else throw Error(`Invalid base64 path: ${t} for value: ${e}`)}var Zs=class extends Io{decode(e){return e}encode(e){return Ys(e),e}},Qs=class{functionRouter;middleware;onError;onRequest;onResponse;onAuth;telepactSchema;serializer;constructor(e,t,n){this.functionRouter=t,this.middleware=n.middleware,this.onError=n.onError,this.onRequest=n.onRequest,this.onResponse=n.onResponse,this.onAuth=n.onAuth,this.telepactSchema=e;let r=new Xo(Ss(this.telepactSchema)),i=new Zs;if(this.serializer=new Qa(n.serialization,r,i),!(`union.Auth_`in this.telepactSchema.parsed)&&n.authRequired)throw Error("Unauthenticated server. Either define a `union.Auth_` in your schema or set `options.authRequired` to `false`.")}async process(e,t){return await Js(e,t,this.serializer,this.telepactSchema,this.onError,this.onRequest,this.onResponse,this.onAuth,this.middleware,this.functionRouter)}},$s=class{onError;onRequest;onResponse;onAuth;middleware;authRequired;serialization;constructor(){this.onError=e=>{},this.onRequest=e=>{},this.onResponse=e=>{},this.onAuth=e=>({}),this.middleware=async(e,t)=>await t.route(e),this.authRequired=!0,this.serialization=new Wa}};function ec(e,t){for(let n of e)if(tc(t,n))return!0;return!1}function tc(e,t){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<e.length;n+=1){let r=e[n];if(!ec(t,r))return!1}return!0}else if(typeof e==`object`&&typeof t==`object`)return nc(e,t);else return Ao(e,t)}function nc(e,t){for(let n in e){let r=t[n],i=e[n];if(!tc(i,r))return!1}return!0}var rc=[{"///":`Ping the server.`,"fn.ping_":{},"->":[{Ok_:{}}],_errors:`^errors\\.Validation_$`},{"///":"Get the telepact `schema` of this server.\n\nSet `includeInternal` to `true` to include Telepact internal definitions.\nSet `includeExamples` to `true` to add deterministic example payloads to\neach schema entry.\n","fn.api_":{"includeInternal!":`boolean`,"includeExamples!":`boolean`},"->":[{Ok_:{api:[{string:`any`}]}}],_errors:`^errors\\.Validation_$`},{"///":"`_ext.Select_` is the selection object used by the `@select_` header. Use\n`->` to narrow fields on the active result union, `struct.*` keys to narrow\nstruct fields, and `union.*` keys to narrow fields for specific union tags.\n\nSee https://raw.githubusercontent.com/Telepact/telepact/main/doc/\nextensions.md for full `_ext.Select_` rules and end-to-end examples.\n","_ext.Select_":{}},{"///":"The `@time_` header indicates the request timeout honored by the client.","headers.Time_":{"@time_":`integer`},"->":{}},{"///":"If `@unsafe_` is set to `true`, response validation by the server will be\ndisabled. The server will reflect the client-provided value of the\n`@unsafe_` header in the response.\n","headers.Unsafe_":{"@unsafe_":`boolean`},"->":{"@unsafe_":`boolean`}},{"///":"The `@select_` header applies an `_ext.Select_` selection to the response\nresult graph, removing omitted struct fields and union payload fields.\n","headers.Select_":{"@select_":`_ext.Select_`},"->":{}},{"///":"The `@bin_` header indicates the valid checksums of binary encodings\nnegotiated between the client and server. If the client sends a `@bin_`\nheader with any value, the server will respond with a `@bin_` header with an\narray containing the currently supported binary encoding checksum. If the\nclient's provided checksum does not match the server's checksum, the server\nwill also send an `@enc_` header containing the binary encoding, which is a\nmap of field names to field ids. The response body may also be encoded in\nbinary.\n\nThe `@pac_` header can also be used to indicate usage of 'packed' binary\nencoding strategy. If the client submits a `@pac_` header with a `true`\nvalue, the server will respond with a `@pac_` header with a `true` value.\n","headers.Binary_":{"@bin_":[`integer`],"@pac_":`boolean`},"->":{"@bin_":[`integer`],"@enc_":{string:`integer`},"@pac_":`boolean`}},{"///":"The `@warn_` header is used to send warnings to the client.","headers.Warning_":{},"->":{"@warn_":[`any`]}},{"///":"The `@id_` header is used to correlate requests and responses. The server\nwill reflect the client-provided `@id_` header as-is.\n","headers.Id_":{"@id_":`any`},"->":{"@id_":`any`}},{"///":`A type.`,"union.Type_":[{Null:{}},{Boolean:{}},{Integer:{}},{Number:{}},{String:{}},{Array:{}},{Object:{}},{Any:{}},{Base64String:{}},{Bytes:{}},{Unknown:{}}]},{"///":`A reason for the validation failure in the body.`,"union.ValidationFailureReason_":[{TypeUnexpected:{expected:`union.Type_`,actual:`union.Type_`}},{NullDisallowed:{}},{ObjectKeyDisallowed:{}},{RequiredObjectKeyPrefixMissing:{prefix:`string`}},{ArrayElementDisallowed:{}},{NumberOutOfRange:{}},{ObjectSizeUnexpected:{expected:`integer`,actual:`integer`}},{ExtensionValidationFailed:{reason:`string`,"data!":{string:`any`}}},{ObjectKeyRegexMatchCountUnexpected:{regex:`string`,expected:`integer`,actual:`integer`,keys:[`string`]}},{RequiredObjectKeyMissing:{key:`string`}},{FunctionUnknown:{}}]},{"///":`A parse failure.`,"union.ParseFailure_":[{IncompatibleBinaryEncoding:{}},{"///":`The binary decoder encountered a field id that could not be mapped to a
73
+ key.
74
+ `,BinaryDecodeFailure:{}},{JsonInvalid:{}},{ExpectedJsonArrayOfAnObjectAndAnObjectOfOneObject:{}},{ExpectedJsonArrayOfTwoObjects:{}}]},{"///":"A validation failure located at a `path` explained by a `reason`.","struct.ValidationFailure_":{path:[`any`],reason:`union.ValidationFailureReason_`}},{"///":`A standard error.`,"errors.Validation_":[{"///":`The server implementation raised an unknown error.`,ErrorUnknown_:{caseId:`string`}},{"///":`The headers on the request are invalid.`,ErrorInvalidRequestHeaders_:{cases:[`struct.ValidationFailure_`]}},{"///":`The body on the request is invalid.`,ErrorInvalidRequestBody_:{cases:[`struct.ValidationFailure_`]}},{"///":`The headers on the response are invalid.`,ErrorInvalidResponseHeaders_:{cases:[`struct.ValidationFailure_`]}},{"///":`The body that the server attempted to put on the response is invalid.`,ErrorInvalidResponseBody_:{cases:[`struct.ValidationFailure_`]}},{"///":`The request could not be parsed as a telepact Message.`,ErrorParseFailure_:{reasons:[`union.ParseFailure_`]}}]}];function ic(){return JSON.stringify(rc)}var ac=[{"///":`The \`@auth_\` header is the conventional location for sending credentials to
75
+ the server for the purpose of authentication and authorization.
76
+ `,"headers.Auth_":{"@auth_":`union.Auth_`},"->":{}},{"///":`A standard error.`,"errors.Auth_":[{"///":"The credentials in the `@auth_` header were missing or invalid.",ErrorUnauthenticated_:{"message!":`string`}},{"///":`The credentials in the \`@auth_\` header were insufficient to run the
77
+ function.
78
+ `,ErrorUnauthorized_:{"message!":`string`}}]}];function oc(){return JSON.stringify(ac)}var sc=class{documentName;path;reason;data;key;constructor(e,t,n,r){this.documentName=e,this.path=t,this.reason=n,this.data=r}},cc=Symbol.for(`yaml.alias`),lc=Symbol.for(`yaml.document`),uc=Symbol.for(`yaml.map`),dc=Symbol.for(`yaml.pair`),fc=Symbol.for(`yaml.scalar`),pc=Symbol.for(`yaml.seq`),mc=Symbol.for(`yaml.node.type`),hc=e=>!!e&&typeof e==`object`&&e[mc]===cc,gc=e=>!!e&&typeof e==`object`&&e[mc]===lc,_c=e=>!!e&&typeof e==`object`&&e[mc]===uc,vc=e=>!!e&&typeof e==`object`&&e[mc]===dc,yc=e=>!!e&&typeof e==`object`&&e[mc]===fc,bc=e=>!!e&&typeof e==`object`&&e[mc]===pc;function xc(e){if(e&&typeof e==`object`)switch(e[mc]){case uc:case pc:return!0}return!1}function Sc(e){if(e&&typeof e==`object`)switch(e[mc]){case cc:case uc:case fc:case pc:return!0}return!1}var Cc=e=>(yc(e)||xc(e))&&!!e.anchor,wc=Symbol(`break visit`),Tc=Symbol(`skip children`),Ec=Symbol(`remove node`);function Dc(e,t){let n=kc(t);gc(e)?Oc(null,e.contents,n,Object.freeze([e]))===Ec&&(e.contents=null):Oc(null,e,n,Object.freeze([]))}Dc.BREAK=wc,Dc.SKIP=Tc,Dc.REMOVE=Ec;function Oc(e,t,n,r){let i=Ac(e,t,n,r);if(Sc(i)||vc(i))return jc(e,r,i),Oc(e,i,n,r);if(typeof i!=`symbol`){if(xc(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=Oc(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===wc)return wc;else i===Ec&&(t.items.splice(e,1),--e)}}else if(vc(t)){r=Object.freeze(r.concat(t));let e=Oc(`key`,t.key,n,r);if(e===wc)return wc;e===Ec&&(t.key=null);let i=Oc(`value`,t.value,n,r);if(i===wc)return wc;i===Ec&&(t.value=null)}}return i}function kc(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Ac(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(_c(t))return n.Map?.(e,t,r);if(bc(t))return n.Seq?.(e,t,r);if(vc(t))return n.Pair?.(e,t,r);if(yc(t))return n.Scalar?.(e,t,r);if(hc(t))return n.Alias?.(e,t,r)}function jc(e,t,n){let r=t[t.length-1];if(xc(r))r.items[e]=n;else if(vc(r))e===`key`?r.key=n:r.value=n;else if(gc(r))r.contents=n;else{let e=hc(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var Mc={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Nc=e=>e.replace(/[!,[\]{}]/g,e=>Mc[e]),Pc=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Nc(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&Sc(e.contents)){let t={};Dc(e.contents,(e,n)=>{Sc(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
79
+ `)}};Pc.defaultYaml={explicit:!1,version:`1.2`},Pc.defaultTags={"!!":`tag:yaml.org,2002:`};function Fc(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function Ic(e){let t=new Set;return Dc(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Lc(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function Rc(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=Ic(e);let a=Lc(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(yc(t.node)||xc(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function zc(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=zc(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=zc(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=zc(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=zc(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function Bc(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Bc(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!Cc(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Vc=class{constructor(e){Object.defineProperty(this,mc,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!gc(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=Bc(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?zc(i,{"":o},``,o):o}},Hc=class extends Vc{constructor(e){super(cc),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Dc(e,{Node:(e,t)=>{(hc(t)||Cc(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(Bc(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Uc(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Fc(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function Uc(e,t,n){if(hc(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(xc(t)){let r=0;for(let i of t.items){let t=Uc(e,i,n);t>r&&(r=t)}return r}else if(vc(t)){let r=Uc(e,t.key,n),i=Uc(e,t.value,n);return Math.max(r,i)}return 1}var Wc=e=>!e||typeof e!=`function`&&typeof e!=`object`,Gc=class extends Vc{constructor(e){super(fc),this.value=e}toJSON(e,t){return t?.keep?this.value:Bc(this.value,e,t)}toString(){return String(this.value)}};Gc.BLOCK_FOLDED=`BLOCK_FOLDED`,Gc.BLOCK_LITERAL=`BLOCK_LITERAL`,Gc.PLAIN=`PLAIN`,Gc.QUOTE_DOUBLE=`QUOTE_DOUBLE`,Gc.QUOTE_SINGLE=`QUOTE_SINGLE`;var Kc=`tag:yaml.org,2002:`;function qc(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Jc(e,t,n){if(gc(e)&&(e=e.contents),Sc(e))return e;if(vc(e)){let t=n.schema[uc].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new Hc(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Kc+t.slice(2));let l=qc(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new Gc(e);return c&&(c.node=t),t}l=e instanceof Map?o[uc]:Symbol.iterator in Object(e)?o[pc]:o[uc]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new Gc(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function Yc(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Jc(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var Xc=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Zc=class extends Vc{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>Sc(t)||vc(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Xc(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(xc(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Yc(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(xc(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&yc(i)?i.value:i:xc(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!vc(t))return!1;let n=t.value;return n==null||e&&yc(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return xc(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(xc(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Yc(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Qc=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function $c(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var el=(e,t,n)=>e.endsWith(`
80
+ `)?$c(n,t):n.includes(`
81
+ `)?`
82
+ `+$c(n,t):(e.endsWith(` `)?``:` `)+n,tl=`flow`,nl=`block`,rl=`quoted`;function il(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===nl&&(h=al(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===rl&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
83
+ `)n===nl&&(h=al(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
84
+ `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
85
+ `&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===rl){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===rl&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function al(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
86
+ `);r=t,i=t+1,a=e[i]}return r}var ol=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),sl=e=>/^(%|---|\.\.\.)/m.test(e);function cl(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
87
+ `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function ll(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(sl(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
88
+
89
+ `;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
90
+ `,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:il(o,a,rl,ol(t,!1))}function ul(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
91
+ `)||/[ \t]\n|\n[ \t]/.test(e))return ll(e,t);let n=t.indent||(sl(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:il(r,n,tl,ol(t,!1))}function dl(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=ll;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?ul:i&&!t?ll:n?ul:ll}return r(e,t)}var fl;try{fl=RegExp(`(^|(?<!
92
+ ))
93
+ +(?!
94
+ |$)`,`g`)}catch{fl=/\n+(?!\n|$)/g}function pl({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return dl(n,r);let l=r.indent||(r.forceBlockIndent||sl(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===Gc.BLOCK_FOLDED?!1:t===Gc.BLOCK_LITERAL?!0:!cl(n,c,l.length);if(!n)return u?`|
95
+ `:`>
96
+ `;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
97
+ `&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
98
+ `);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
99
+ `&&(p=p.slice(0,-1)),p.replace(fl,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
100
+ `)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
101
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=ol(r,!0);o!==`folded`&&t!==Gc.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=il(`${v}${e}${p}`,l,nl,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function ml(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
102
+ `)||u&&/[[\]{},]/.test(a))return dl(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
103
+ `)?dl(a,t):pl(e,t,n,r);if(!s&&!u&&i!==Gc.PLAIN&&a.includes(`
104
+ `))return pl(e,t,n,r);if(sl(a)){if(c===``)return t.forceBlockIndent=!0,pl(e,t,n,r);if(s&&c===l)return dl(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return dl(a,t)}return s?d:il(d,c,tl,ol(t,!1))}function hl(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==Gc.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=Gc.QUOTE_DOUBLE);let c=e=>{switch(e){case Gc.BLOCK_FOLDED:case Gc.BLOCK_LITERAL:return i||a?dl(o.value,t):pl(o,t,n,r);case Gc.QUOTE_DOUBLE:return ll(o.value,t);case Gc.QUOTE_SINGLE:return ul(o.value,t);case Gc.PLAIN:return ml(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function gl(e,t){let n=Object.assign({blockQuote:!0,commentString:Qc,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function _l(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(yc(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function vl(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(yc(e)||xc(e))&&e.anchor;a&&Fc(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function yl(e,t,n,r){if(vc(e))return e.toString(t,n,r);if(hc(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=Sc(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=_l(t.doc.schema.tags,a);let o=vl(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):yc(a)?hl(a,t,n,r):a.toString(t,n,r);return o?yc(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function bl({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=Sc(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(xc(e)||!Sc(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||xc(e)||(yc(e)?e.type===Gc.BLOCK_FOLDED||e.type===Gc.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=yl(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=el(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=el(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=el(g,n.indent,l(f))));let _,v,y;Sc(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&yc(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&bc(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=yl(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
105
+ `:``,v){let e=l(v);S+=`\n${$c(e,n.indent)}`}x===``&&!n.inFlow?S===`
106
+ `&&y&&(S=`
107
+
108
+ `):S+=`\n${n.indent}`}else if(!p&&xc(t)){let e=x[0],r=x.indexOf(`
109
+ `),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else (x===``||x[0]===`
110
+ `)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=el(g,n.indent,l(y)):h&&i&&i(),g}function xl(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var Sl=`<<`,Cl={identify:e=>e===Sl||typeof e==`symbol`&&e.description===Sl,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new Gc(Symbol(Sl)),{addToJSMap:Tl}),stringify:()=>Sl},wl=(e,t)=>(Cl.identify(t)||yc(t)&&(!t.type||t.type===Gc.PLAIN)&&Cl.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Cl.tag&&e.default);function Tl(e,t,n){if(n=e&&hc(n)?n.resolve(e.doc):n,bc(n))for(let r of n.items)El(e,t,r);else if(Array.isArray(n))for(let r of n)El(e,t,r);else El(e,t,n)}function El(e,t,n){let r=e&&hc(n)?n.resolve(e.doc):n;if(!_c(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Dl(e,t,{key:n,value:r}){if(Sc(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(wl(e,n))Tl(e,t,r);else{let i=Bc(n,``,e);if(t instanceof Map)t.set(i,Bc(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Ol(n,i,e),o=Bc(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Ol(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(Sc(e)&&n?.doc){let t=gl(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),xl(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function kl(e,t,n){return new Al(Jc(e,void 0,n),Jc(t,void 0,n))}var Al=class e{constructor(e,t=null){Object.defineProperty(this,mc,{value:dc}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return Sc(n)&&(n=n.clone(t)),Sc(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Dl(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?bl(this,e,t,n):JSON.stringify(this)}};function jl(e,t,n){return(t.inFlow??e.flow?Nl:Ml)(e,t,n)}function Ml({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(Sc(i))!d&&i.spaceBefore&&f.push(``),Pl(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(vc(i)){let e=Sc(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),Pl(n,f,e.commentBefore,d))}d=!1;let s=yl(i,u,()=>o=null,()=>d=!0);o&&(s+=el(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
111
+ `}}return e?(p+=`
112
+ `+$c(l(e),c),s&&s()):d&&o&&o(),p}function Nl({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(Sc(i))i.spaceBefore&&d.push(``),Pl(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(vc(i)){let e=Sc(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),Pl(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=Sc(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=yl(i,c,()=>a=null);l||=d.length>u||o.includes(`
113
+ `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=el(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
114
+ `;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function Pl({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=$c(t(r),e);n.push(i.trimStart())}}function Fl(e,t){let n=yc(t)?t.value:t;for(let r of e)if(vc(r)&&(r.key===t||r.key===n||yc(r.key)&&r.key.value===n))return r}var Il=class extends Zc{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(uc,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(kl(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=vc(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Al(e,e?.value):new Al(e.key,e.value);let r=Fl(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);yc(r.value)&&Wc(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=Fl(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Fl(this.items,e)?.value;return(!t&&yc(n)?n.value:n)??void 0}has(e){return!!Fl(this.items,e)}set(e,t){this.add(new Al(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)Dl(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!vc(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),jl(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Ll={collection:`map`,default:!0,nodeClass:Il,tag:`tag:yaml.org,2002:map`,resolve(e,t){return _c(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>Il.from(e,t,n)},Rl=class extends Zc{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(pc,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=zl(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=zl(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&yc(r)?r.value:r}has(e){let t=zl(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=zl(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];yc(r)&&Wc(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(Bc(e,String(r++),t));return n}toString(e,t,n){return e?jl(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Jc(a,void 0,n))}}return i}};function zl(e){let t=yc(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var Bl={collection:`seq`,default:!0,nodeClass:Rl,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return bc(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Rl.from(e,t,n)},Vl={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),hl(e,t,n,r)}},Hl={identify:e=>e==null,createNode:()=>new Gc(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Gc(null),stringify:({source:e},t)=>typeof e==`string`&&Hl.test.test(e)?e:t.options.nullStr},Ul={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Gc(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&Ul.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function Wl({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^\d/.test(a)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}var Gl={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Wl},Kl={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Wl(e)}},ql={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Gc(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:Wl},Jl=e=>typeof e==`bigint`||Number.isInteger(e),Yl=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Xl(e,t,n){let{value:r}=e;return Jl(r)&&r>=0?n+r.toString(t):Wl(e)}var Zl={identify:e=>Jl(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>Yl(e,2,8,n),stringify:e=>Xl(e,8,`0o`)},Ql={identify:Jl,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Yl(e,0,10,n),stringify:Wl},$l={identify:e=>Jl(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Yl(e,2,16,n),stringify:e=>Xl(e,16,`0x`)},eu=[Ll,Bl,Vl,Hl,Ul,Zl,Ql,$l,Gl,Kl,ql];function tu(e){return typeof e==`bigint`||Number.isInteger(e)}var nu=({value:e})=>JSON.stringify(e),ru=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:nu},{identify:e=>e==null,createNode:()=>new Gc(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:nu},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:nu},{identify:tu,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>tu(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:nu}],iu=[Ll,Bl].concat(ru,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),au={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=Gc.BLOCK_LITERAL,t!==Gc.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===Gc.BLOCK_LITERAL?`
115
+ `:` `)}return hl({comment:e,type:t,value:s},r,i,a)}};function ou(e,t){if(bc(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!vc(r)){if(_c(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new Al(new Gc(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=vc(r)?r:new Al(r)}}else t(`Expected a sequence for this tag`);return e}function su(e,t,n){let{replacer:r}=n,i=new Rl(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(kl(o,s,n))}return i}var cu={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:ou,createNode:su},lu=class e extends Rl{constructor(){super(),this.add=Il.prototype.add.bind(this),this.delete=Il.prototype.delete.bind(this),this.get=Il.prototype.get.bind(this),this.has=Il.prototype.has.bind(this),this.set=Il.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(vc(e)?(r=Bc(e.key,``,t),i=Bc(e.value,r,t)):r=Bc(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=su(e,t,n),i=new this;return i.items=r.items,i}};lu.tag=`tag:yaml.org,2002:omap`;var uu={collection:`seq`,identify:e=>e instanceof Map,nodeClass:lu,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=ou(e,t),r=[];for(let{key:e}of n.items)yc(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new lu,n)},createNode:(e,t,n)=>lu.from(e,t,n)};function du({value:e,source:t},n){return t&&(e?fu:pu).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var fu={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Gc(!0),stringify:du},pu={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Gc(!1),stringify:du},mu={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Wl},hu={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Wl(e)}},gu={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Gc(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:Wl},_u=e=>typeof e==`bigint`||Number.isInteger(e);function vu(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function yu(e,t,n){let{value:r}=e;if(_u(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return Wl(e)}var bu={identify:_u,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>vu(e,2,2,n),stringify:e=>yu(e,2,`0b`)},xu={identify:_u,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>vu(e,1,8,n),stringify:e=>yu(e,8,`0`)},Su={identify:_u,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>vu(e,0,10,n),stringify:Wl},Cu={identify:_u,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>vu(e,2,16,n),stringify:e=>yu(e,16,`0x`)},wu=class e extends Il{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=vc(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Al(e.key,null):new Al(e,null),Fl(this.items,t.key)||this.items.push(t)}get(e,t){let n=Fl(this.items,e);return!t&&vc(n)?yc(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Fl(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Al(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(kl(e,null,n));return i}};wu.tag=`tag:yaml.org,2002:set`;var Tu={collection:`map`,identify:e=>e instanceof Set,nodeClass:wu,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>wu.from(e,t,n),resolve(e,t){if(_c(e)){if(e.hasAllNullValues(!0))return Object.assign(new wu,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function Eu(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function Du(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Wl(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Ou={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Eu(e,n),stringify:Du},ku={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Eu(e,!1),stringify:Du},Au={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Au.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=Eu(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},ju=[Ll,Bl,Vl,Hl,fu,pu,bu,xu,Su,Cu,mu,hu,gu,au,Cl,uu,cu,Tu,Ou,ku,Au],Mu=new Map([[`core`,eu],[`failsafe`,[Ll,Bl,Vl]],[`json`,iu],[`yaml11`,ju],[`yaml-1.1`,ju]]),Nu={binary:au,bool:Ul,float:ql,floatExp:Kl,floatNaN:Gl,floatTime:ku,int:Ql,intHex:$l,intOct:Zl,intTime:Ou,map:Ll,merge:Cl,null:Hl,omap:uu,pairs:cu,seq:Bl,set:Tu,timestamp:Au},Pu={"tag:yaml.org,2002:binary":au,"tag:yaml.org,2002:merge":Cl,"tag:yaml.org,2002:omap":uu,"tag:yaml.org,2002:pairs":cu,"tag:yaml.org,2002:set":Tu,"tag:yaml.org,2002:timestamp":Au};function Fu(e,t,n){let r=Mu.get(t);if(r&&!e)return n&&!r.includes(Cl)?r.concat(Cl):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(Mu.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(Cl)),i.reduce((e,t)=>{let n=typeof t==`string`?Nu[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Nu).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var Iu=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Lu=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Fu(e,`compat`):e?Fu(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?Pu:{},this.tags=Fu(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,uc,{value:Ll}),Object.defineProperty(this,fc,{value:Vl}),Object.defineProperty(this,pc,{value:Bl}),this.sortMapEntries=typeof a==`function`?a:a===!0?Iu:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Ru(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=gl(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift($c(t,``))}let o=!1,s=null;if(e.contents){if(Sc(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push($c(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=yl(e.contents,i,()=>s=null,t);s&&(c+=el(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(yl(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=a(e.comment);t.includes(`
116
+ `)?(n.push(`...`),n.push($c(t,``))):n.push(`... ${t}`)}else n.push(`...`);else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push($c(a(t),``)))}return n.join(`
117
+ `)+`
118
+ `}var zu=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,mc,{value:lc});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Pc({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[mc]:{value:lc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Sc(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){Bu(this.contents)&&this.contents.add(e)}addIn(e,t){Bu(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Ic(this);e.anchor=!t||n.has(t)?Lc(t||`a`,n):t}return new Hc(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=Rc(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Jc(e,l,p);return o&&xc(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new Al(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return Bu(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Xc(e)?this.contents==null?!1:(this.contents=null,!0):Bu(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return xc(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Xc(e)?!t&&yc(this.contents)?this.contents.value:this.contents:xc(this.contents)?this.contents.getIn(e,t):void 0}has(e){return xc(this.contents)?this.contents.has(e):!1}hasIn(e){return Xc(e)?this.contents!==void 0:xc(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Yc(this.schema,[e],t):Bu(this.contents)&&this.contents.set(e,t)}setIn(e,t){Xc(e)?this.contents=t:this.contents==null?this.contents=Yc(this.schema,Array.from(e),t):Bu(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new Pc({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new Pc({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Lu(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=Bc(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?zc(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Ru(this,e)}};function Bu(e){if(xc(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Vu=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},Hu=class extends Vu{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},Uu=class extends Vu{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},Wu=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
119
+ `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function Gu(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function Ku(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
120
+ `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(Ku(t.key)||Ku(t.value))return!0}return!1;default:return!0}}function qu(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&Ku(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function Ju(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||yc(e)&&yc(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var Yu=`All mapping items must start at the same column`;function Xu({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new(a?.nodeClass??Il)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=Gu(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,Yu)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
121
+ `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||Ku(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,Yu);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&qu(r.indent,u,i),n.atKey=!1,Ju(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=Gu(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&qu(r.indent,f,i),s=c.range[2];let l=new Al(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
122
+ `+_.comment:g.comment=_.comment);let e=new Al(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function Zu({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new(a?.nodeClass??Rl)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=Gu(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&qu(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function Qu(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var $u=`Block collections are not allowed within flow collections`,ed=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function td({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new(a?.nodeClass??(o?Il:Rl))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=Gu(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
123
+ `+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&Ku(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];vc(t)&&(t=t.value??t.key),t.comment?t.comment+=`
124
+ `+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],ed(m)&&i(r.range,`BLOCK_IN_FLOW`,$u)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);ed(f)&&i(g.range,`BLOCK_IN_FLOW`,$u),n.atKey=!1;let _=Gu(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?ed(m)&&i(v.range,`BLOCK_IN_FLOW`,$u):_.comment&&(g.comment?g.comment+=`
125
+ `+_.comment:g.comment=_.comment);let y=new Al(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;Ju(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new Il(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=Qu(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
126
+ `+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function nd(e,t,n,r,i,a){let o=n.type===`block-map`?Xu(e,t,n,r,a):n.type===`block-seq`?Zu(e,t,n,r,a):td(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function rd(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===Il.tagName&&s===`map`||o===Rl.tagName&&s===`seq`)return nd(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),nd(e,t,n,i,o)}let l=nd(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=Sc(u)?u:new Gc(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function id(e,t,n){let r=t.offset,i=ad(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?Gc.BLOCK_FOLDED:Gc.BLOCK_LITERAL,o=t.source?od(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
127
+ `.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
128
+ `;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===Gc.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
129
+ `):t.length>c||r[0]===` `?(f===` `?f=`
130
+ `:!p&&f===`
131
+ `&&(f=`
132
+
133
+ `),d+=f+t.slice(c)+r,f=`
134
+ `,p=!0):r===``?f===`
135
+ `?d+=`
136
+ `:f=`
137
+ `:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
138
+ `+o[e][0].slice(c);d[d.length-1]!==`
139
+ `&&(d+=`
140
+ `);break;default:d+=`
141
+ `}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function ad({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function od(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function sd(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=Gc.PLAIN,c=cd(a,l);break;case`single-quoted-scalar`:s=Gc.QUOTE_SINGLE,c=ld(a,l);break;case`double-quoted-scalar`:s=Gc.QUOTE_DOUBLE,c=dd(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=Qu(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function cd(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),ud(e)}function ld(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),ud(e.slice(1,-1)).replace(/''/g,`'`)}function ud(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
142
+ `,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
143
+ `,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
144
+ `?i+=a:a=`
145
+ `:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function dd(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===`
146
+ `))if(i===`
147
+ `){let{fold:t,offset:i}=fd(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=pd[i];if(a)n+=a;else if(i===`
148
+ `)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
149
+ `)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a={x:2,u:4,U:8}[i];n+=md(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
150
+ `&&!(a===`\r`&&e[r+2]===`
151
+ `)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function fd(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
152
+ `||r===`\r`)&&!(r===`\r`&&e[t+2]!==`
153
+ `);)r===`
154
+ `&&(n+=`
155
+ `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var pd={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
156
+ `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function md(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(a)){let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}return String.fromCodePoint(a)}function hd(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?id(e,t,r):sd(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[fc]:c?gd(e.schema,i,c,n,r):t.type===`scalar`?_d(e,i,t,r):e.schema[fc];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=yc(a)?a:new Gc(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new Gc(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function gd(e,t,n,r,i){if(n===`!`)return e[fc];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[fc])}function _d({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[fc];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[fc];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function vd(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var yd={composeNode:bd,composeEmptyNode:xd};function bd(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Sd(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=hd(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=rd(yd,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=xd(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!yc(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function xd(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=hd(e,{type:`scalar`,offset:vd(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Sd({options:e},{offset:t,source:n,end:r},i){let a=new Hc(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=Qu(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function Cd(e,t,{offset:n,start:r,value:i,end:a},o){let s=new zu(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=Gu(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?bd(c,i,l,o):xd(c,l.end,r,null,l,o);let u=s.contents.range[2],d=Qu(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function wd(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function Td(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
157
+
158
+ `:`
159
+ `)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Ed=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=wd(e);r?this.warnings.push(new Uu(i,t,n)):this.errors.push(new Hu(i,t,n))},this.directives=new Pc({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=Td(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(xc(i)&&!i.flow&&i.items.length>0){let e=i.items[0];vc(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Td(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=wd(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=Cd(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Hu(wd(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new Hu(wd(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=Qu(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Hu(wd(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new zu(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}},Dd=``,Od=``,kd=``,Ad=``;function jd(e){switch(e){case Dd:return`byte-order-mark`;case Od:return`doc-mode`;case kd:return`flow-error-end`;case Ad:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
160
+ `:case`\r
161
+ `:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function Md(e){switch(e){case void 0:case` `:case`
162
+ `:case`\r`:case` `:return!0;default:return!1}}var Nd=new Set(`0123456789ABCDEFabcdef`),Pd=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),Fd=new Set(`,[]{}`),Id=new Set(` ,[]{}
163
+ \r `),Ld=e=>!e||Id.has(e),Rd=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
164
+ `?!0:t===`\r`?this.buffer[e+1]===`
165
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
166
+ `||!t&&!this.atEnd)return e+n+1}return t===`
167
+ `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&Md(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
168
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===Dd&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield Od,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&Md(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Md(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&Md(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(Ld),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&Md(r[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(r[0]===`]`||r[0]===`}`)))return this.flowLevel=0,yield kd,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(Ld),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||Md(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
169
+ `,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
170
+ `,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>Md(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
171
+ `:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
172
+ `)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
173
+ `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
174
+ `;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
175
+ `&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield Ad,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Md(r)||e&&Fd.has(r))break;t=n}else if(Md(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
176
+ `?(n+=1,r=`
177
+ `,i=this.buffer[n+1]):t=n),i===`#`||e&&Fd.has(i))break;if(r===`
178
+ `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&Fd.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield Ad,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){switch(this.charAt(0)){case`!`:return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case`&`:return(yield*this.pushUntil(Ld))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case`-`:case`?`:case`:`:{let e=this.flowLevel>0,t=this.charAt(1);if(Md(t)||e&&Fd.has(t))return e?this.flowKey&&=!1:this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Md(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Pd.has(t))t=this.buffer[++e];else if(t===`%`&&Nd.has(this.buffer[e+1])&&Nd.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
179
+ `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
180
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},zd=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function Bd(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Vd(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function Hd(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function Ud(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function Wd(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function Gd(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Bd(t.start,`explicit-key-ind`)&&!Bd(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,Hd(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var Kd=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new Rd,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=jd(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&Gd(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Vd(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:Vd(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=Wd(Ud(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
181
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
182
+ `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(Bd(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Wd(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Bd(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Hd(t.key)&&!Bd(t.sep,`newline`)){let e=Wd(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Bd(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Bd(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||Bd(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=Wd(Ud(t));Gd(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
183
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
184
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=Wd(Ud(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=Wd(Ud(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function qd(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new zd||null,prettyErrors:t}}function Jd(e,t={}){let{lineCounter:n,prettyErrors:r}=qd(t),i=new Kd(n?.addNewLine),a=new Ed(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Hu(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Wu(e,n)),o.warnings.forEach(Wu(e,n))),o}function Yd(e){return JSON.stringify(e)}function Xd(e,t){let n=e.linePos(t);return{row:n.line,col:n.col}}function Zd(e,t){let n=t?.range?.[0];return typeof n==`number`?Xd(e,n):{row:1,col:1}}function Qd(e,t,n,r){let i=e?.constructor?.name;if(i===`YAMLSeq`){for(let i=0;i<(e?.items?.length??0);i+=1){let a=e?.items?.[i],o=[...t,i];r[Yd(o)]=Zd(n,a),Qd(a,o,n,r)}return}if(i===`YAMLMap`)for(let i of e?.items??[]){let e=i.key?.value;if(typeof e!=`string`)continue;let a=[...t,e];r[Yd(a)]=Zd(n,i.key),Qd(i.value,a,n,r)}}function $d(e){let t=e?.constructor?.name;if(t===`YAMLSeq`){for(let t of e?.items??[])$d(t);return}if(t===`YAMLMap`){let t=new Set;for(let n of e?.items??[]){let e=String(n.key?.value);if(t.has(e))throw Error(`Duplicate YAML key`);t.add(e),$d(n.value)}}}function ef(e,t,n){if((e.errors?.length??0)>0)throw Error(e.errors?.[0]?.message??`YAML parse failed`);let r={};return $d(e.contents),r[Yd([])]=Zd(t,e.contents),Qd(e.contents,[],t,r),e=>r[Yd(e)]??{row:1,col:1}}function tf(e){let t=new zd;return ef(Jd(e,{lineCounter:t,merge:!1,prettyErrors:!1,strict:!0}),t)}function nf(e,t){try{return tf(t)(e)}catch{return{row:1,col:1}}}var rf=Symbol(`telepactDocumentLocators`);function af(e,t){Object.defineProperty(e,rf,{configurable:!0,enumerable:!1,value:{...t},writable:!0})}function of(e){return e[rf]}function sf(e,t){let n=of(e);n!==void 0&&af(t,n)}function cf(e,t,n){let r=of(n)?.[t];return r===void 0?nf(e,n[t]??`[]`):r(e)}function lf(e,t){let n=[];for(let r of e){let e=cf(r.path,r.documentName,t),i={};i.document=r.documentName,i.location=e,i.path=r.path,i.reason={[r.reason]:r.data},n.push(Object.assign({},i))}return n}var uf=class extends Error{schemaParseFailures;schemaParseFailuresPseudoJson;constructor(e,t,n){super(JSON.stringify(lf(e,t),null,2),{cause:n}),this.schemaParseFailures=e,this.schemaParseFailuresPseudoJson=lf(e,t)}};function df(e,t,n,r,i,a){let o=[],s=e.name,c=r[s],l=n[s];for(let u in t){if(!u.startsWith(`fn.`)||u.endsWith(`.->`))continue;let d=t[u+`.->`],f=u,p=a[f],m=new RegExp(p),h=d.tags,g=e.errors.tags;if(m.exec(s))for(let t in g){let a=g[t],u=t;if(u in h){let t=r[f],a=e.errors.tagIndices[u],p=n[f],m=[t,`->`,d.tagIndices[u],u],h=cf(m,p,i);o.push(new sc(l,[c,s,a,u],`PathCollision`,{document:p,path:m,location:h}))}h[u]=a}}if(o.length>0)throw new uf(o,i)}function ff(e,t,n,r,i){let a=[],o=[...t];o.sort((e,t)=>{let i=r[e],a=r[t];return i===a?n[e]-n[t]:i.localeCompare(a)});for(let t=0;t<o.length;t++)for(let s=t+1;s<o.length;s++){let c=o[t],l=o[s],u=n[c],d=n[l],f=r[c],p=r[l],m=e[f],h=e[p],g=m[u],_=h[d],v=g[c],y=_[l];for(let e=0;e<v.length;e++){let t=v[e],n=new Set(Object.keys(t));n.delete(`///`);for(let t=0;t<y.length;t++){let r=y[t],o=new Set(Object.keys(r));if(o.delete(`///`),n.size===o.size&&[...n].every(e=>o.has(e))){let r=n.values().next().value,s=o.values().next().value,m=[u,c,e,r],h=cf(m,f,i);a.push(new sc(p,[d,l,t,s],`PathCollision`,{document:f,path:m,location:h}))}}}}if(a.length>0)throw new uf(a,i)}function pf(e,t){for(let n of e)if(t.startsWith(`info.`)&&n.startsWith(`info.`)||n===t)return n;return null}function mf(e,t,n,r){let i=/^(((fn|errors|headers|info)|((struct|union|_ext)(<[0-2]>)?))\..*)/,a=[],o=Object.keys(t).sort();for(let e of o)i.test(e)&&a.push(e);if(a.length===1)return a[0];throw new uf([new sc(e,[n],`ObjectKeyRegexMatchCountUnexpected`,{regex:i.toString().slice(1,-1),actual:a.length,expected:1,keys:o})],r)}function hf(e){return typeof e==`boolean`?[]:es([],e,_f)}function gf(e,t,n){return t?e:n.randomGenerator.nextBoolean()}var _f=`Boolean`,vf=class extends fs{getTypeParameterCount(){return 0}validate(e,t,n){return hf(e)}generateRandomValue(e,t,n,r){return gf(e,t,r)}getName(){return _f}};function yf(e){return typeof e==`number`&&Number.isInteger(e)?e===0x8000000000000000||e===-0x8000000000000000?[new Qo([],`NumberOutOfRange`,{}),new Qo([],`NumberTruncated`,{})]:[]:es([],e,xf)}function bf(e,t,n){return t?e:n.randomGenerator.nextInt()}var xf=`Integer`,Sf=class extends fs{getTypeParameterCount(){return 0}validate(e,t,n){return yf(e)}generateRandomValue(e,t,n,r){return bf(e,t,r)}getName(){return xf}};function Cf(e){return typeof e==`number`?Number.isInteger(e)&&e===0x8000000000000000||e===-0x8000000000000000?[new Qo([],`NumberOutOfRange`,{}),new Qo([],`NumberTruncated`,{})]:[]:es([],e,Tf)}function wf(e,t,n){return t?e:n.randomGenerator.nextDouble()}var Tf=`Number`,Ef=class extends fs{getTypeParameterCount(){return 0}validate(e,t,n){return Cf(e)}generateRandomValue(e,t,n,r){return wf(e,t,r)}getName(){return Tf}};function Df(e){return typeof e==`string`?[]:es([],e,kf)}function Of(e,t,n){return t?e:n.randomGenerator.nextString()}var kf=`String`,Af=class extends fs{getTypeParameterCount(){return 0}validate(e,t,n){return Df(e)}generateRandomValue(e,t,n,r){return Of(e,t,r)}getName(){return kf}};function jf(e){let t=e.randomGenerator.nextIntWithCeiling(3);return t===0?e.randomGenerator.nextBoolean():t===1?e.randomGenerator.nextInt():e.randomGenerator.nextString()}var Mf=`Any`,Nf=class extends fs{getTypeParameterCount(){return 0}validate(e,t,n){return[]}generateRandomValue(e,t,n,r){return jf(r)}getName(){return Mf}};function Pf(e,t){if(e instanceof Uint8Array)return t.coerceBase64&&Ff(t.path,t.base64Coercions),[];if(typeof e==`string`)try{if(Lo(Ro(e))!==e)throw Error(`Invalid base64`);return t.coerceBase64||Ff(t.path,t.bytesCoercions),[]}catch{return es([],e,`Base64String`)}else return es([],e,Lf)}function Ff(e,t){let n=e[0];e.length>1?(t[n]=t[n]||{},Ff(e.slice(1),t[n])):t[n]=!0}function If(e,t,n){return t?e:n.randomGenerator.nextBytes()}var Lf=`Bytes`,Rf=class extends fs{getTypeParameterCount(){return 0}validate(e,t,n){return Pf(e,n)}generateRandomValue(e,t,n,r){return If(e,t,r)}getName(){return Lf}};function zf(e,t,n,r){return[new sc(e,t,`TypeUnexpected`,{actual:{[$o(n)]:{}},expected:{[r]:{}}})]}var Bf=class{fieldName;typeDeclaration;optional;constructor(e,t,n){this.fieldName=e,this.typeDeclaration=t,this.optional=n}};function Vf(e,t,n){if(typeof t==`string`){let r=t,i=`^(.*?)(\\?)?$`,a=new RegExp(i),o=r.match(a);if(!o)throw new uf([new sc(n.documentName,e,`StringRegexMatchFailed`,{regex:i})],n.telepactSchemaDocumentNamesToJson);let s=o[1],c=o[2]!==void 0,l=up(e,s,n);if(l.getTypeParameterCount()!==0)throw new uf([new sc(n.documentName,e,`ArrayLengthUnexpected`,{actual:1,expected:l.getTypeParameterCount()+1})],n.telepactSchemaDocumentNamesToJson);return new Ts(l,c,[])}else if(Array.isArray(t)){let r=t;if(r.length!==1)throw new uf([new sc(n.documentName,e,`ArrayLengthUnexpected`,{actual:r.length,expected:1})],n.telepactSchemaDocumentNamesToJson);let i=r[0],a=[...e,0];return new Ts(new gs,!1,[Vf(a,i,n)])}else if(typeof t==`object`&&t){let r=t,i=Object.keys(r);if(i.length!==1)throw new uf([new sc(n.documentName,e,`ObjectSizeUnexpected`,{actual:i.length,expected:1})],n.telepactSchemaDocumentNamesToJson);let a=i[0],o=r[a];if(a!==`string`){let t=[...e,a];throw new uf([new sc(n.documentName,e,`RequiredObjectKeyMissing`,{key:`string`}),new sc(n.documentName,t,`ObjectKeyDisallowed`,{})],n.telepactSchemaDocumentNamesToJson)}let s=[...e,a];return new Ts(new bs,!1,[Vf(s,o,n)])}else throw new uf(zf(n.documentName,e,t,`StringOrArrayOrObject`),n.telepactSchemaDocumentNamesToJson)}function Hf(e,t,n,r,i){let a=r?`^@[a-z][a-zA-Z0-9_]*$`:`^([a-z][a-zA-Z0-9_]*)(!)?$`,o=new RegExp(a),s=t.match(o);if(!s){let n=[...e,t];throw new uf([new sc(i.documentName,n,`KeyRegexMatchFailed`,{regex:a})],i.telepactSchemaDocumentNamesToJson)}let c=s[0],l=r?!0:!!s[2];return new Bf(c,Vf([...e,c],n,i),l)}function Uf(e,t,n,r){let i=[],a={};for(let o in t){for(let t in a){let n=t.split(`!`)[0],a=o.split(`!`)[0];if(a===n){let t=[...e];i.push(new sc(r.documentName,t,`DuplicateField`,{field:a}))}}try{let i=Hf(e,o,t[o],n,r),s=i.fieldName;a[s]=i}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}}if(i.length>0)throw new uf(i,r.telepactSchemaDocumentNamesToJson);return a}function Wf(e,t,n,r,i,a){let o=[],s=new Set(Object.keys(t));s.delete(n),s.delete(`///`);for(let e of r)s.delete(e);if(s.size>0)for(let t of s){let n=e.concat(t);o.push(new sc(a.documentName,n,`ObjectKeyDisallowed`,{}))}let c=e.concat(n),l=t[n];if(!Array.isArray(l)){let e=zf(a.documentName,c,l,`Array`);throw o.push(...e),new uf(o,a.telepactSchemaDocumentNamesToJson)}let u=l,d=[],f=-1;for(let e of u){f+=1;let t=c.concat(f);if(typeof e!=`object`||Array.isArray(e)||e==null){let n=zf(a.documentName,t,e,`Object`);o.push(...n);continue}d.push(e)}if(o.length>0)throw new uf(o,a.telepactSchemaDocumentNamesToJson);if(d.length===0)o.push(new sc(a.documentName,c,`EmptyArrayDisallowed`,{}));else for(let e of i){let t=!1;for(let n of d){let r=new Set(Object.keys(n));if(r.delete(`///`),r.has(e)){t=!0;break}}t||o.push(new sc(a.documentName,c,`RequiredObjectKeyMissing`,{key:e}))}let p={},m={};for(let e=0;e<d.length;e++){let t=d[e],r=c.concat(e),i=Object.fromEntries(Object.entries(t));delete i[`///`];let s=Object.keys(i),l=`^([A-Z][a-zA-Z0-9_]*)$`,u=new RegExp(l),f=s.filter(e=>u.test(e));if(f.length!==1){o.push(new sc(a.documentName,r,`ObjectKeyRegexMatchCountUnexpected`,{regex:l,actual:f.length,expected:1,keys:s}));continue}if(Object.keys(i).length!==1){o.push(new sc(a.documentName,r,`ObjectSizeUnexpected`,{expected:1,actual:Object.keys(i).length}));continue}let h=Object.entries(i)[0],g=h[0],_=r.concat(g);if(typeof h[1]!=`object`||Array.isArray(h[1])||h[1]===null||h[1]===void 0){let e=zf(a.documentName,_,h[1],`Object`);o.push(...e);continue}let v=h[1];try{let t=Uf(_,v,!1,a);p[g]=new ds(`${n}.${g}`,t),m[g]=e}catch(e){if(e instanceof uf)o.push(...e.schemaParseFailures);else throw e}}if(o.length>0)throw new uf(o,a.telepactSchemaDocumentNamesToJson);return new cs(n,p,m)}function Gf(e,t){let n={},r=t.tags.Ok_.fields,i=Object.keys(r);i.sort();for(let e of Object.values(r))Kf(e.typeDeclaration,n);let a={};a[`->`]={Ok_:i};let o=Object.keys(n).sort();for(let e of o){if(e.startsWith(`fn.`))continue;let t=n[e];if(t instanceof cs){let n={},r=Object.keys(t.tags).sort();for(let e of r){let r=t.tags[e],i=[],a=Object.keys(r.fields).sort();for(let e of a)i.push(e);i.length>0&&(n[e]=i)}a[e]=n}else if(t instanceof ds){let n=[],r=Object.keys(t.fields).sort();for(let e of r)n.push(e);n.length>0&&(a[e]=n)}}return a}function Kf(e,t){let n=e.type;if(n instanceof cs){if(t[n.name]!==void 0)return;t[n.name]=n;for(let e of Object.values(n.tags))for(let n of Object.values(e.fields))Kf(n.typeDeclaration,t)}else if(n instanceof ds){if(t[n.name]!==void 0)return;t[n.name]=n;for(let e of Object.values(n.fields))Kf(e.typeDeclaration,t)}else (n instanceof gs||n instanceof bs)&&Kf(e.typeParameters[0],t)}function qf(e,t,n,r){let i=[],a=null;if(!(`->`in t))i.push(new sc(r.documentName,e,`RequiredObjectKeyMissing`,{key:`->`}));else try{a=Wf(e,t,`->`,Object.keys(t),[`Ok_`],r)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}if(i.length>0)throw new uf(i,r.telepactSchemaDocumentNamesToJson);let o=Gf(n,a),s=up([],`_ext.Select_`,r);return s.possibleSelects[n]=o,a}function Jf(e,t,n,r){let i=[],a=`_errors`,o=[...e,a],s=null;if(a in t&&!n.endsWith(`_`))i.push(new sc(r.documentName,o,`ObjectKeyDisallowed`,{}));else{let e=a in t?t[a]:`^errors\\..*$`;if(typeof e!=`string`){let t=zf(r.documentName,o,e,`String`);i.push(...t)}else s=e}if(i.length>0)throw new uf(i,r.telepactSchemaDocumentNamesToJson);return s}function Yf(e,t,n,r,i){let a=[],o=new Set(Object.keys(t));o.delete(n),o.delete(`///`),o.delete(`_ignoreIfDuplicate`);for(let e of r)o.delete(e);if(o.size>0)for(let t of o){let n=[...e,t];a.push(new sc(i.documentName,n,`ObjectKeyDisallowed`,{}))}let s=[...e,n],c=t[n],l=null;if(typeof c!=`object`||Array.isArray(c)||c==null){let e=zf(i.documentName,s,c,`Object`);a.push(...e)}else l=c;if(a.length>0)throw new uf(a,i.telepactSchemaDocumentNamesToJson);return new ds(n,Uf(s,l,!1,i))}function Xf(e,t,n){if(typeof e!=`object`||Array.isArray(e)||e==null)return es([],e,`Object`);let r=t[n.fn];return Zf([],e,r)}function Zf(e,t,n){if(Array.isArray(n)){if(!Array.isArray(t))return es(e,t,`Array`);let r=[];for(let[i,a]of t.entries())n.includes(a)||r.push(new Qo([...e,i],`ArrayElementDisallowed`,{}));return r}else if(typeof n==`object`&&!Array.isArray(n)){if(typeof t!=`object`||Array.isArray(t)||t===null)return es(e,t,`Object`);let r=[];for(let[i,a]of Object.entries(t))if(i in n){let t=Zf([...e,i],a,n[i]);r.push(...t)}else r.push(new Qo([...e,i],`ObjectKeyDisallowed`,{}));return r}return[]}function Qf(e,t){let n=e[t.fnScope];return $f(n,t)}function $f(e,t){if(Array.isArray(e)){let n=[];for(let r of e)t.randomGenerator.nextBoolean()&&n.push(r);return n.sort()}else if(typeof e==`object`&&!Array.isArray(e)){let n={},r=Object.keys(e).sort();for(let i of r){let r=e[i];if(t.randomGenerator.nextBoolean()){let e=$f(r,t);if(typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0)continue;n[i]=e}}return n}else throw Error(`Invalid possibleSelectSection`)}var ep=`Object`,tp=class{possibleSelects={};getTypeParameterCount(){return 0}validate(e,t,n){return Xf(e,this.possibleSelects,n)}generateRandomValue(e,t,n,r){return Qf(this.possibleSelects,r)}getName(){return ep}};function np(e,t,n){if(!(typeof e==`object`&&!Array.isArray(e)))return es([],e,`Object`);let r=e,i=/^fn\..*$/,a=Object.keys(r).sort(),o=a.filter(e=>i.test(e));if(o.length!==1)return[new Qo([],`ObjectKeyRegexMatchCountUnexpected`,{regex:i.toString().slice(1,-1),actual:o.length,expected:1,keys:a})];let s=o[0],c=t[s],l=r[s],u=c,d=s,f=u.tags[d].validate(l,[],n),p=[];for(let e of f){let t=[s,...e.path];p.push(new Qo(t,e.reason,e.data))}return p.filter(e=>e.reason!==`RequiredObjectKeyMissing`)}function rp(e,t){let n=Object.entries(e).filter(([e,t])=>e.startsWith(`fn.`)&&!e.endsWith(`.->`)).filter(([e,t])=>!e.endsWith(`_`)).map(([e,t])=>t);n.sort((e,t)=>e.name.localeCompare(t.name));let r=n[Math.floor(t.randomGenerator.nextIntWithCeiling(n.length))];return os(null,!1,r.tags,t.copy({alwaysIncludeRequiredFields:!1}))}var ip=`_ext.Call_`,ap=class extends fs{types;constructor(e){super(),this.types=e}getTypeParameterCount(){return 0}validate(e,t,n){return np(e,this.types,n)}generateRandomValue(e,t,n,r){return rp(this.types,r)}getName(){return ip}};function op(e,t,n){let r=[];if(!(typeof e==`object`&&!Array.isArray(e)))return es([],e,`Object`);let i=e,a=/^fn\..*$/,o=Object.keys(i).sort(),s=o.filter(e=>a.test(e));if(s.length!==1)return[new Qo([],`ObjectKeyRegexMatchCountUnexpected`,{regex:a.toString().slice(1,-1),actual:s.length,expected:1,keys:o})];let c=s[0],l=i[c],u=t[c],d=t[`${c}.->`],f=c,p=u.tags[f].validate(l,[],n),m=[];for(let e of p){let t=[c,...e.path];m.push(new Qo(t,e.reason,e.data))}let h=m.filter(e=>e.reason!==`RequiredObjectKeyMissing`);if(r.push(...h),!(`->`in i))r.push(new Qo([],`RequiredObjectKeyMissing`,{key:`->`}));else{let e=i[`->`],t=d.validate(e,[],n),a=[];for(let e of t){let t=[`->`,...e.path];a.push(new Qo(t,e.reason,e.data))}let o=a.filter(e=>e.reason!==`RequiredObjectKeyMissing`);r.push(...o)}let g=Object.keys(i).filter(e=>!s.includes(e)&&e!==`->`);for(let e of g)r.push(new Qo([e],`ObjectKeyDisallowed`,{}));return r}function sp(e,t){let n=Object.keys(e).filter(e=>e.startsWith(`fn.`)&&!e.endsWith(`.->`)).filter(e=>!e.endsWith(`_`)).map(e=>e);n.sort((e,t)=>e.localeCompare(t));let r=n[t.randomGenerator.nextIntWithCeiling(n.length)],i=e[r],a=e[r+`.->`],o=i.tags[r].fields,s=a.tags.Ok_.fields,c=as(null,!1,o,t.copy({alwaysIncludeRequiredFields:!1})),l=as(null,!1,s,t.copy({alwaysIncludeRequiredFields:!1}));return{[r]:c,"->":{Ok_:l}}}var cp=`_ext.Stub_`,lp=class extends fs{types;constructor(e){super(),this.types=e}getTypeParameterCount(){return 0}validate(e,t,n){return op(e,this.types,n)}generateRandomValue(e,t,n,r){return sp(this.types,r)}getName(){return cp}};function up(e,t,n){if(n.failedTypes.has(t))throw new uf([],n.telepactSchemaDocumentNamesToJson);let r=n.parsedTypes[t];if(r!==void 0)return r;let i=`^(boolean|integer|number|string|any|bytes)|((fn|(union|struct|_ext))\\.([a-zA-Z_]\\w*))$`,a=new RegExp(i),o=t.match(a);if(!o)throw new uf([new sc(n.documentName,e,`StringRegexMatchFailed`,{regex:i})],n.telepactSchemaDocumentNamesToJson);let s=o[1];if(s)return{boolean:new vf,integer:new Sf,number:new Ef,string:new Af,bytes:new Rf}[s]||new Nf;let c=o[2],l=n.schemaKeysToIndex[c],u=n.schemaKeysToDocumentName[c];if(l===void 0)throw new uf([new sc(n.documentName,e,`TypeUnknown`,{name:c})],n.telepactSchemaDocumentNamesToJson);let d=n.telepactSchemaDocumentNamesToPseudoJson[u][l],f;try{if(c.startsWith(`struct`)){let e=new ds(c,{});f=e,n.parsedTypes[c]=f,e.fields=Yf([l],d,c,[],n.copy({documentName:u})).fields}else if(c.startsWith(`union`)){let e=new cs(c,{},{});f=e,n.parsedTypes[c]=f;let t=Wf([l],d,c,[],[],n.copy({documentName:u}));e.tags=t.tags,e.tagIndices=t.tagIndices}else if(c.startsWith(`fn`)){let e=new cs(c,{},{});f=e,n.parsedTypes[c]=f;let t=Yf([l],d,c,[`->`,`_errors`],n.copy({documentName:u}));e.tags[c]=t,e.tagIndices[c]=0;let r=qf([l],d,c,n.copy({documentName:u}));n.parsedTypes[c+`.->`]=r;let i=Jf([l],d,c,n.copy({documentName:u}));n.fnErrorRegexes[c]=i}else{let e={"_ext.Select_":new tp,"_ext.Call_":new ap(n.parsedTypes),"_ext.Stub_":new lp(n.parsedTypes)}[c];if(!e)throw new uf([new sc(n.documentName,[l],`TypeExtensionImplementationMissing`,{name:c})],n.telepactSchemaDocumentNamesToJson);f=e,n.parsedTypes[c]=f}return f}catch(e){throw e instanceof uf?(n.allParseFailures.push(...e.schemaParseFailures),n.failedTypes.add(c),new uf([],n.telepactSchemaDocumentNamesToJson)):e}}var dp=class{name;errors;constructor(e,t){this.name=e,this.errors=t}};function fp(e,t,n,r){let i=[],a=Object.keys(t).filter(e=>e!==n&&e!==`///`);if(a.length>0)for(let t of a){let n=e.concat(t);i.push(new sc(r.documentName,n,`ObjectKeyDisallowed`,{}))}if(i.length>0)throw new uf(i,r.telepactSchemaDocumentNamesToJson);return new dp(n,Wf(e,t,n,[],[],r))}var pp=class{name;requestHeaders;responseHeaders;constructor(e,t,n){this.name=e,this.requestHeaders=t,this.responseHeaders=n}};function mp(e,t,n,r){let i=[],a={},o={},s=t[n],c=[...e,n];if(typeof s!=`object`||Array.isArray(s)||s==null){let e=zf(r.documentName,c,s,`Object`);i.push(...e)}else try{let e=Uf(c,s,!0,r);for(let t in e)e[t].optional=!0;Object.assign(a,e)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}let l=[...e,`->`];`->`in t||i.push(new sc(r.documentName,l,`RequiredObjectKeyMissing`,{key:`->`}));let u=t[`->`];if(typeof u!=`object`||Array.isArray(u)||u==null){let e=zf(r.documentName,c,u,`Object`);i.push(...e)}else try{let e=Uf(l,u,!0,r);for(let t in e)e[t].optional=!0;Object.assign(o,e)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}if(i.length>0)throw new uf(i,r.telepactSchemaDocumentNamesToJson);return new pp(n,a,o)}var hp=class e{documentName;telepactSchemaDocumentNamesToPseudoJson;telepactSchemaDocumentNamesToJson;schemaKeysToDocumentName;schemaKeysToIndex;parsedTypes;fnErrorRegexes;allParseFailures;failedTypes;constructor(e,t,n,r,i,a,o,s,c){this.documentName=e,this.telepactSchemaDocumentNamesToPseudoJson=t,this.telepactSchemaDocumentNamesToJson=n,this.schemaKeysToDocumentName=r,this.schemaKeysToIndex=i,this.parsedTypes=a,this.fnErrorRegexes=o,this.allParseFailures=s,this.failedTypes=c}copy({documentName:t}){return new e(t??this.documentName,this.telepactSchemaDocumentNamesToPseudoJson,this.telepactSchemaDocumentNamesToJson,this.schemaKeysToDocumentName,this.schemaKeysToIndex,this.parsedTypes,this.fnErrorRegexes,this.allParseFailures,this.failedTypes)}};function gp(e,t,n,r,i){let a=[],o=[...t];o.sort((e,t)=>{let i=r[e],a=r[t];return i===a?n[e]-n[t]:i.localeCompare(a)});for(let t=0;t<o.length;t++)for(let s=t+1;s<o.length;s++){let c=o[t],l=o[s],u=n[c],d=n[l],f=r[c],p=r[l],m=e[f],h=e[p],g=m[u],_=h[d],v=g[c],y=_[l],b=Object.keys(v).filter(e=>e in y);for(let e of b){let t=[u,c,e],n=cf(t,f,i);a.push(new sc(p,[d,l,e],`PathCollision`,{document:f,path:t,location:n}))}let x=g[`->`],S=_[`->`],C=Object.keys(x).filter(e=>e in S);for(let e of C){let t=[u,`->`,e],n=cf(t,f,i);a.push(new sc(p,[d,`->`,e],`PathCollision`,{document:f,path:t,location:n}))}}if(a.length>0)throw new uf(a,i)}function _p(e,t){return e.nullable||e.type instanceof gs||e.type instanceof bs?!0:e.type instanceof ds||e.type instanceof cs?t.has(e.type.name):!0}function vp(e,t){return Object.values(e).every(e=>e.optional||_p(e.typeDeclaration,t))}function yp(e,t){return e instanceof ds?vp(e.fields,t):e instanceof cs?Object.values(e.tags).some(e=>vp(e.fields,t)):!0}function bp(e,t,n,r){let i=new Set,a=!0;for(;a;){a=!1;for(let[t,n]of Object.entries(e))i.has(t)||yp(n,i)&&(i.add(t),a=!0)}let o=[];for(let[r,a]of Object.entries(t)){if(r.startsWith(`info.`)||r.startsWith(`headers.`)||r.startsWith(`errors.`))continue;let t=[r];r.startsWith(`fn.`)&&t.push(`${r}.->`);for(let s of t)if(e[s]!==void 0&&!i.has(s)){let e=s.endsWith(`.->`)?[n[r],`->`]:[n[r],r];o.push(new sc(a,e,`RecursiveTypeUnterminated`,{}))}}if(o.length>0)throw new uf(o,r)}function xp(e){let t={},n={},r={},i=[],a={},o=new Set,s={},c={},l=new Set,u=Object.keys(e).sort(),d={};for(let[t,n]of Object.entries(e)){let r;try{r=JSON.parse(n)}catch(n){throw new uf([new sc(t,[],`JsonInvalid`,{})],e,n)}if(!Array.isArray(r))throw new uf(zf(t,[],r,`Array`),e);d[t]=r}for(let r of u){let a=d[r],o=-1;for(let u of a){o+=1;let a=[o];if(typeof u!=`object`||Array.isArray(u)||u==null){let e=zf(r,a,u,`Object`);i.push(...e);continue}let d=u;try{let u=mf(r,d,o,e),f=pf(l,u);if(f!==null){let t=s[f],n=c[f],o=[...a,u],l=cf([t,f],n,e);i.push(new sc(r,o,`PathCollision`,{document:n,location:l,path:[t,f]}));continue}l.add(u),s[u]=o,c[u]=r,(r===`auto_`||r===`auth_`||!r.endsWith(`_`))&&(t[u]=d),n[u]=d}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}}}if(i.length>0)throw new uf(i,e);let f=new Set,p=new Set;for(let t of l){if(t.startsWith(`info.`))continue;if(t.startsWith(`headers.`)){f.add(t);continue}else if(t.startsWith(`errors.`)){p.add(t);continue}let n=s[t],l=c[t];try{up([n],t,new hp(l,d,e,c,s,r,a,i,o))}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}}if(i.length>0)throw new uf(i,e);let m=[];try{for(let t of p){let n=s[t],l=c[t],u=d[l][n];try{let f=fp([n],u,t,new hp(l,d,e,c,s,r,a,i,o));m.push(f)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}}}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}if(i.length>0)throw new uf(i,e);try{ff(d,p,s,c,e)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}if(i.length>0)throw new uf(i,e);for(let t of m)try{df(t,r,c,s,e,a)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}try{bp(r,c,s,e)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}let h=[];for(let t of f){let n=s[t],l=c[t],u=d[l][n];try{let f=mp([n],u,t,new hp(l,d,e,c,s,r,a,i,o));h.push(f)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}}if(i.length>0)throw new uf(i,e);try{gp(d,f,s,c,e)}catch(e){if(e instanceof uf)i.push(...e.schemaParseFailures);else throw e}if(i.length>0)throw new uf(i,e);let g={},_={};for(let e of h)Object.assign(g,e.requestHeaders),Object.assign(_,e.responseHeaders);let v=(e,t)=>{let n=e.startsWith(`info.`),r=t.startsWith(`info.`);return n&&!r?-1:!n&&r?1:e<t?-1:+(e>t)};return new Op(Object.keys(t).sort(v).map(e=>t[e]),Object.keys(n).sort(v).map(e=>n[e]),r,g,_)}function Sp(e){let t={...e};sf(e,t);let n=ic();Cp(e,`internal_`,n)||(t.internal_=n);let r=oc();for(let n of Object.values(e))if(/"union\.Auth_"\s*:/.test(n)){Cp(e,`auth_`,r)||(t.auth_=r);break}return xp(t)}function Cp(e,t,n){let r=wp({[t]:n});if(r===null)return!1;let i=wp(e);return i===null?!1:Array.from(r).every(e=>i.has(e))}function wp(e){let t=new Set;for(let[n,r]of Object.entries(e)){let i;try{i=JSON.parse(r)}catch{return null}if(!Array.isArray(i))return null;for(let[r,a]of i.entries())if(!(typeof a!=`object`||!a||Array.isArray(a)))try{let i=mf(n,a,r,e);t.add(i)}catch{return null}}return t}function Tp(e){if(e===null||typeof e==`string`||typeof e==`boolean`)return e;if(typeof e==`number`){if(!Number.isFinite(e))throw Error(`YAML values must be JSON-compatible`);return e}if(Array.isArray(e))return e.map(Tp);if(typeof e==`object`){if(Object.getPrototypeOf(e)!==Object.prototype)throw Error(`YAML values must be JSON-compatible`);let t={};for(let[n,r]of Object.entries(e))t[n]=Tp(r);return t}throw Error(`YAML values must be JSON-compatible`)}function Ep(e){let t=new zd,n=Jd(e,{lineCounter:t,merge:!1,prettyErrors:!1,strict:!0});if(n.errors.length>0)throw Error(n.errors[0].message);let r=Tp(n.toJS({mapAsMap:!1}));if(!Array.isArray(r))throw Error(`Telepact YAML root must be a sequence`);return{canonicalJsonText:JSON.stringify(r),locator:ef(n,t)}}function Dp(e,t,n){let r={},i={},a=[],o=t.readdirSync(e).sort().map(t=>n.join(e,t));for(let s of o){let o=n.relative(e,s);if(t.statSync(s).isDirectory()){a.push(new sc(o,[],`DirectoryDisallowed`,{})),r[o]=`[]`;continue}let c=t.readFileSync(s,`utf-8`);if(s.endsWith(`.telepact.json`))r[o]=c;else if(s.endsWith(`.telepact.yaml`))try{let e=Ep(c);r[o]=e.canonicalJsonText,e.locator!==void 0&&(i[o]=e.locator)}catch{r[o]=`[]`,a.push(new sc(o,[],`JsonInvalid`,{}))}else r[o]=c,a.push(new sc(o,[],`FileNamePatternInvalid`,{expected:`*.telepact.json|*.telepact.yaml`}))}if(af(r,i),a.length>0)throw new uf(a,r);return r}var Op=class{original;full;parsed;parsedRequestHeaders;parsedResponseHeaders;constructor(e,t,n,r,i){this.original=e,this.full=t,this.parsed=n,this.parsedRequestHeaders=r,this.parsedResponseHeaders=i}static fromJson(e){return Sp({auto_:e})}static fromFileJsonMap(e){return Sp(e)}static fromDirectory(e,t,n){return Sp(Dp(e,t,n))}},kp=class{functionName;functionArgument;verified;constructor(e,t){this.functionName=e,this.functionArgument=t,this.verified=!1}},Ap=class{whenFunction;whenArgument;thenResult;allowArgumentPartialMatch;count;constructor(e,t,n,r,i){this.whenFunction=e,this.whenArgument=t,this.thenResult=n,this.allowArgumentPartialMatch=r,this.count=i}};function jp(e,t,n,r,i){let a=0;for(let r of i)r.functionName===e&&(n?Ao(r.functionArgument,t)&&(r.verified=!0,a+=1):nc(t,r.functionArgument)&&(r.verified=!0,a+=1));let o=i.map(e=>({[e.functionName]:e.functionArgument})),s=Object.entries(r)[0],c=s[0],l=s[1],u=null;if(c===`Exact`){let e=l.times;a>e?u={TooManyMatchingCalls:{wanted:{Exact:{times:e}},found:a,allCalls:o}}:a<e&&(u={TooFewMatchingCalls:{wanted:{Exact:{times:e}},found:a,allCalls:o}})}else if(c===`AtMost`){let e=l.times;a>e&&(u={TooManyMatchingCalls:{wanted:{AtMost:{times:e}},found:a,allCalls:o}})}else if(c===`AtLeast`){let e=l.times;a<e&&(u={TooFewMatchingCalls:{wanted:{AtLeast:{times:e}},found:a,allCalls:o}})}return u===null?{Ok_:{}}:{ErrorVerificationFailure:{reason:u}}}function Mp(e){let t=e.filter(e=>!e.verified);return t.length>0?{ErrorVerificationFailure:{additionalUnverifiedCalls:t.map(e=>({[e.functionName]:e.functionArgument}))}}:{Ok_:{}}}async function Np(e,t,n,r,i,a,o,s){let c=e.headers[`@gen_`]||!1,l=e.getBodyTarget(),u=e.getBodyPayload();if(l===`fn.createStub_`){let e=u.stub,[n,r]=Object.entries(e).find(([e])=>e.startsWith(`fn.`)),i=e[`->`],a=new Ap(n,r,i,!u[`strictMatch!`]||!1,u[`count!`]||-1);return t.unshift(a),new Ja({},{Ok_:{}})}else if(l===`fn.verify_`){let e=u.call,[t,r]=Object.entries(e).find(([e])=>e.startsWith(`fn.`)),i=u[`count!`]||{AtLeast:{times:1}};return new Ja({},jp(t,r,u[`strictMatch!`]||!1,i,n))}else if(l===`fn.verifyNoMoreInteractions_`)return new Ja({},Mp(n));else if(l===`fn.clearCalls_`)return n.length=0,new Ja({},{Ok_:{}});else if(l===`fn.clearStubs_`)return t.length=0,new Ja({},{Ok_:{}});else if(l===`fn.setRandomSeed_`){let e=u.seed;return r.setSeed(e),new Ja({},{Ok_:{}})}else{n.push(new kp(l,u));let e=i.parsed[l+`.->`];for(let n of t)if(n.count!==0&&n.whenFunction===l){if(n.allowArgumentPartialMatch){if(nc(n.whenArgument,u)){let t=e.generateRandomValue(n.thenResult,!0,[],new Ps(!1,s,!0,l,r));return n.count>0&&--n.count,new Ja({},t)}}else if(Ao(n.whenArgument,u)){let t=e.generateRandomValue(n.thenResult,!0,[],new Ps(!1,s,!0,l,r));return n.count>0&&--n.count,new Ja({},t)}}if(!a&&!c)return new Ja({},{ErrorNoMatchingStub_:{}});if(e)return new Ja({},{Ok_:e.tags.Ok_.generateRandomValue({},!0,[],new Ps(!0,s,!0,l,r))});throw new ko(`Unexpected unknown function: ${l}`)}}var Pp=class{constructor(e,t){this.random=new Ua(t.generatedCollectionLengthMin,t.generatedCollectionLengthMax),this.enableGeneratedDefaultStub=t.enableMessageResponseGeneration,this.enableOptionalFieldGeneration=t.enableOptionalFieldGeneration,this.randomizeOptionalFieldGeneration=t.randomizeOptionalFieldGeneration,this.stubs=[],this.invocations=[];let n=new $s;n.onError=t.onError,n.authRequired=!1,n.middleware=async e=>await this.handle(e),this.server=new Qs(new Op(e.original,e.full,e.parsed,e.parsedRequestHeaders,e.parsedResponseHeaders),new qo({}),n)}random;enableGeneratedDefaultStub;enableOptionalFieldGeneration;randomizeOptionalFieldGeneration;stubs;invocations;server;async process(e){return await this.server.process(e)}handle=async e=>await Np(e,this.stubs,this.invocations,this.random,this.server.telepactSchema,this.enableGeneratedDefaultStub,this.enableOptionalFieldGeneration,this.randomizeOptionalFieldGeneration)},Fp=class{onError=e=>{};enableMessageResponseGeneration=!0;enableOptionalFieldGeneration=!0;randomizeOptionalFieldGeneration=!0;generatedCollectionLengthMin=0;generatedCollectionLengthMax=3},Ip=[{"///":"`_ext.Stub_` is the mock stub object consumed by `fn.createStub_`. It\ncontains exactly one non-internal `fn.*` matcher plus a matching `->`\nresult payload that the mock should return.\n\nSee https://raw.githubusercontent.com/Telepact/telepact/main/doc/02-design-apis/03-extensions.md\nfor full `_ext.Stub_` rules and end-to-end examples.\n","_ext.Stub_":{}},{"///":"`_ext.Call_` is the mock call object used by `fn.verify_` and verification\nfailures. It contains exactly one non-internal `fn.*` key whose value is\nthat function's argument object.\n\nSee https://raw.githubusercontent.com/Telepact/telepact/main/doc/02-design-apis/03-extensions.md\nfor full `_ext.Call_` rules and end-to-end examples.\n","_ext.Call_":{}},{"///":`The number of times a function is allowed to be called.`,"union.CallCountCriteria_":[{Exact:{times:`integer`}},{AtMost:{times:`integer`}},{AtLeast:{times:`integer`}}]},{"///":`Possible causes for a mock verification to fail.`,"union.VerificationFailure_":[{TooFewMatchingCalls:{wanted:`union.CallCountCriteria_`,found:`integer`,allCalls:[`_ext.Call_`]}},{TooManyMatchingCalls:{wanted:`union.CallCountCriteria_`,found:`integer`,allCalls:[`_ext.Call_`]}}]},{"///":`Create a mock stub from an \`_ext.Stub_\`.
185
+
186
+ By default the stub matcher is partial, so extra fields on the actual
187
+ request argument are allowed. Set \`strictMatch!\` to \`true\` to require exact
188
+ argument equality instead.
189
+
190
+ Set \`count!\` to limit how many matching calls consume this stub before it
191
+ stops matching.
192
+ `,"fn.createStub_":{stub:`_ext.Stub_`,"strictMatch!":`boolean`,"count!":`integer`},"->":[{Ok_:{}}],_errors:`^errors\\.Validation_$`},{"///":"Verify that the mock received a call matching the given `_ext.Call_`.\n\nBy default verification is partial and succeeds if at least one recorded\ncall contains the given argument as a JSON sub-structure. Set\n`strictMatch!` to `true` to require exact argument equality.\n\nSet `count!` to require `Exact`, `AtLeast`, or `AtMost` matching call\ncounts. Matching calls are marked as verified, which affects\n`fn.verifyNoMoreInteractions_`.\n","fn.verify_":{call:`_ext.Call_`,"strictMatch!":`boolean`,"count!":`union.CallCountCriteria_`},"->":[{Ok_:{}},{ErrorVerificationFailure:{reason:`union.VerificationFailure_`}}],_errors:`^errors\\.Validation_$`},{"///":`Verify that no interactions have occurred with this mock or that all
193
+ interactions have been verified.
194
+ `,"fn.verifyNoMoreInteractions_":{},"->":[{Ok_:{}},{ErrorVerificationFailure:{additionalUnverifiedCalls:[`_ext.Call_`]}}],_errors:`^errors\\.Validation_$`},{"///":`Clear all stub conditions.`,"fn.clearStubs_":{},"->":[{Ok_:{}}],_errors:`^errors\\.Validation_$`},{"///":`Clear all call data.`,"fn.clearCalls_":{},"->":[{Ok_:{}}],_errors:`^errors\\.Validation_$`},{"///":`Set the seed of the random generator.`,"fn.setRandomSeed_":{seed:`integer`},"->":[{Ok_:{}}],_errors:`^errors\\.Validation_$`},{"errors.Mock_":[{"///":`The mock could not return a result due to no matching stub being
195
+ available.
196
+ `,ErrorNoMatchingStub_:{}}]}];function Lp(){return JSON.stringify(Ip)}function Rp(e){let t={...e};sf(e,t),t.mock_=Lp();let n=Sp(t);return new zp(n.original,n.full,n.parsed,n.parsedRequestHeaders,n.parsedResponseHeaders)}var zp=class{original;full;parsed;parsedRequestHeaders;parsedResponseHeaders;constructor(e,t,n,r,i){this.original=e,this.full=t,this.parsed=n,this.parsedRequestHeaders=r,this.parsedResponseHeaders=i}static fromJson(e){return Rp({auto_:e})}static fromFileJsonMap(e){return Rp(e)}static fromDirectory(e,t,n){return Rp(Dp(e,t,n))}},Bp={$schema:`https://json-schema.org/draft/2020-12/schema`,type:`array`,items:{oneOf:[{type:`object`,additionalProperties:!1,minProperties:1,patternProperties:{"^info\\.[a-zA-Z_]\\w*":{type:`object`,description:`Information about the API.`,additionalProperties:!1}},properties:{"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}},{type:`object`,additionalProperties:!1,minProperties:1,patternProperties:{"^struct\\.[a-zA-Z_]\\w*?":{type:`object`,description:`A struct with 0 or more fields.`,additionalProperties:!1,patternProperties:{"^[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}}}},properties:{"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}},{type:`object`,additionalProperties:!1,minProperties:1,patternProperties:{"union\\.[a-zA-Z_]\\w*$":{type:`array`,items:{type:`object`,description:`An union with 1 or more fields huzzah.`,minProperties:1,patternProperties:{"^[A-Z]\\w*?$":{type:`object`,additionalProperties:!1,patternProperties:{"^[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}}}},properties:{"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}}}},properties:{"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}},{type:`object`,additionalProperties:!1,minProperties:2,patternProperties:{"^fn\\.[a-zA-Z_]\\w*":{description:"A function that accepts an argument struct and returns a result union that is either an `Ok_` struct or an error struct.",type:`object`,additionalProperties:!1,patternProperties:{"^[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}}}},required:[`->`],properties:{"->":{type:`array`,prefixItems:[{type:`object`,required:[`Ok_`],properties:{Ok_:{type:`object`,additionalProperties:!1,patternProperties:{"^[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}}}},additionalProperties:!1}],items:{type:`object`,patternProperties:{"^[A-Z]\\w*?$":{type:`object`,additionalProperties:!1,patternProperties:{"^[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}},properties:{"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}}}}},"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}},{type:`object`,additionalProperties:!1,minProperties:2,patternProperties:{"^headers\\.[a-zA-Z_]\\w*":{description:"A function that accepts an argument struct and returns a result union that is either an `Ok_` struct or an error struct.",type:`object`,additionalProperties:!1,patternProperties:{"^@[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}}}},required:[`->`],properties:{"->":{type:`object`,additionalProperties:!1,patternProperties:{"^@[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}}},"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}},{type:`object`,additionalProperties:!1,minProperties:1,patternProperties:{"^errors\\.[a-zA-Z_]\\w*":{type:`array`,items:{type:`object`,description:`An union with 1 or more fields huzzah.`,minProperties:1,patternProperties:{"^[A-Z]\\w*?$":{type:`object`,additionalProperties:!1,patternProperties:{"^[a-z]\\w*!?$":{$ref:`#/$defs/typeDeclaration`}}}},properties:{"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}}}},properties:{"///":{anyOf:[{type:`string`},{type:`array`,items:{type:`string`}}]}}}]},$defs:{typeDeclaration:{oneOf:[{type:`string`,pattern:`^((boolean|integer|number|string|any|bytes)|(fn|union|struct)\\.([a-zA-Z_]\\w*))(\\?)?$`},{type:`array`,minItems:1,maxItems:1,items:{$ref:`#/$defs/typeDeclaration`}},{type:`object`,properties:{string:{$ref:`#/$defs/typeDeclaration`}},required:[`string`],additionalProperties:!1}]}}},Vp={GenerateContext:Ps},Hp=new Ua(2,2),Up=`[
197
+ {},
198
+ {
199
+ "fn.ping_": {}
200
+ }
201
+ ]
202
+ `,Wp=null;function Gp(e,t=!1){let n=JSON.parse(e);if(t){let e=n?.[0]?.[`@auth_`];e!==void 0&&(n[0][`@auth_`]=`{{redacted}}`,Wp=e)}return JSON.stringify(n)}function Kp(e,t=!1){if(!e)return Up;let n=JSON.parse(e);return t&&(n[0][`@auth_`]=`{{managed}}`),n?.[0]?.[`@auth_`]===`{{redacted}}`&&Wp!==null&&(n[0][`@auth_`]=Wp,Wp=null),JSON.stringify(n,null,2)}function qp(e){let t=e.doc,n=Array.isArray(t)?t.map(e=>e.trim()).join(`
203
+ `):t,r=typeof n==`string`?ar(n):``;return li.sanitize(r)}function Jp(e){return e.args!==void 0&&e.results!==void 0}function Yp(e){return Array.isArray(e)&&e.length>0&&e[0].name!==void 0&&e[0].data!==void 0}function Xp(e){return e.type===`header`}function Zp(e,t){let n=t.parsed[e].generateRandomValue(null,!1,[],new Vp.GenerateContext(!0,!0,!0,``,Hp));return JSON.stringify(n,null,2)}function Qp(e,t,n,r){let i=t.parsed[e+`.->`].generateRandomValue(n,r,[],new Vp.GenerateContext(!0,!0,!0,e,Hp));return JSON.stringify(i,null,2)}function $p(e,t,n){let r={};for(let i of t)e===`request`?r[i]=n.parsedRequestHeaders[i]?.typeDeclaration?.generateRandomValue(null,!1,new Vp.GenerateContext(!0,!0,!0,`fn.ping_`,Hp)):r[i]=n.parsedResponseHeaders[i]?.typeDeclaration?.generateRandomValue(null,!1,new Vp.GenerateContext(!0,!0,!0,`fn.ping_`,Hp));return JSON.stringify(r,null,2)}async function em(e,t,n){let r=n.parsed[e].generateRandomValue(null,!1,[],new Vp.GenerateContext(!0,!0,!0,e,Hp)),i={};for(let r of t)i[r]=n.parsedRequestHeaders[r]?.typeDeclaration?.generateRandomValue(null,!1,new Vp.GenerateContext(!0,!0,!0,e,Hp));let a=JSON.stringify([i,r],null,2),o=new TextEncoder().encode(a),s=new Fp,c=(await new Pp(new zp(n.original,n.full,n.parsed,n.parsedRequestHeaders,n.parsedResponseHeaders),s).process(o)).bytes;try{let e=new TextDecoder().decode(c),t=JSON.parse(e);return{request:a,response:JSON.stringify(t,null,2)}}catch{return{request:a,response:Array.from(c).map((e,t)=>(e>=32&&e<=126?String.fromCharCode(e):`0x`+e.toString(16).padStart(2,`0`))+((t+1)%16==0?`
204
+ `:``)).join(``)}}}function tm(e){return e[e.length-1]??``}function nm(e,t,n,r){let i=(r?t.full:t.original).map(e=>[rm(e),e]),a=i.filter(([e])=>e.startsWith(`errors`)).map(([e,t])=>({name:e,doc:t[`///`],data:t[e]})),o=i.map(([e,n])=>{let r;if(e.startsWith(`union`))r=n[e].map(e=>{let t=Object.keys(e).find(e=>e!==`///`);return{name:t,doc:e[`///`],data:e[t]}});else if(e.startsWith(`error`))r=n[e].map(e=>{let t=Object.keys(e).find(e=>e!==`///`);return{name:t,doc:e[`///`],data:e[t]}});else if(e.startsWith(`fn`)){let i=n[e],o=n[`->`].map(e=>{let t=Object.keys(e).find(e=>e!==`///`);return{name:t,doc:e[`///`],data:e[t]}}),s=t.parsed[e].generateRandomValue(null,!1,[],new Vp.GenerateContext(!0,!1,!0,e,new Ua(2,2))),c=JSON.stringify([{},s]),l=n._errors;r={args:i,results:o,errorRegex:l,exampleCallJson:c,inheritedErrors:a.filter(e=>e.name.match(l)).map(e=>e.name)}}else if(e.startsWith(`headers`)){let t=n[e],i=n[`->`];r={type:`header`,name:e,doc:n[`///`],requestData:t,responseData:i}}else r=n[e];return{name:e,doc:n[`///`],data:r}});return n&&o.sort((e,t)=>{let n=e.name.split(`.`),r=t.name.split(`.`),i=n[1]??``,a=r[1]??``,o=0;return(tm(i)===`_`||tm(a)===`_`)&&(o=tm(a).localeCompare(tm(i))),o===0&&(n[0]===`fn`&&r[0]!==`fn`?o=-1:n[0]!==`fn`&&r[0]===`fn`&&(o=1)),o===0&&(o=i.localeCompare(a)),o}),o}function rm(e){let t=`^(((fn|errors|info|headers)|((struct|union|_ext)(<[0-2]>)?))\\..*)`,n=[];for(let r of Object.keys(e))r.match(t)&&n.push(r);let r=n[0];if(n.length===1&&r!=null)return r;throw Error(`Could not find schema key ${JSON.stringify(e)} with regex ${t}`)}function im(e){return(0,I.jsx)(`ul`,{className:`space-y-2`,children:e.tags.map(e=>(0,I.jsxs)(`li`,{className:`space-y-2 py-2`,children:[(0,I.jsx)(`div`,{className:`py-2`,children:(0,I.jsx)(`span`,{className:`radial-gradient-bg rounded-md border-4 border-sky-700 p-2 font-mono`,children:e.name})}),(0,I.jsx)(`div`,{className:`ml-4`,children:(0,I.jsx)(Dt,{fields:e.data})}),e.doc?(0,I.jsx)(`div`,{className:`ml-4 prose dark:prose-invert`,dangerouslySetInnerHTML:{__html:qp(e)}}):null]},e.name))})}function am(e){return new Worker(``+new URL(`editor.worker-Dpt_xPrs.js`,import.meta.url).href,{name:e?.name})}function om(e){return new Worker(``+new URL(`json.worker-c4h5s80L.js`,import.meta.url).href,{name:e?.name})}var sm=(0,T.forwardRef)(function(e,n){let r=(0,T.useRef)(null),i=(0,T.useRef)(null);(0,T.useImperativeHandle)(n,()=>({getContent:()=>r.current?.getValue()??``}),[]);let o=e=>e.split(`
205
+ `).length*20+40,c=()=>{let e=r.current,t=i.current;if(!e||!t)return;let n=o(e.getValue());t.style.height=`${n}px`,e.layout()};return(0,T.useEffect)(()=>{let n=i.current;if(!n)return;self.MonacoEnvironment={getWorker:function(e,t){return t===`json`?new om:new am}};let o=typeof window<`u`&&!!window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches,l=typeof window<`u`&&!!window.matchMedia&&window.matchMedia(`(prefers-color-scheme: light)`).matches,d=o?`vs-dark`:l?`vs`:`vs-dark`,f=a.create(n,{automaticLayout:!0,theme:d,scrollbar:{alwaysConsumeMouseWheel:!1},scrollBeyondLastLine:!1,readOnly:e.readOnly,padding:{top:20,bottom:20},links:e.allowLinks??!1,glyphMargin:!0,lineNumbers:e.lineNumbers??!0?`on`:`off`,minimap:{enabled:e.minimap??!0},ariaLabel:e.ariaLabel,ariaRequired:!0},{textModelService:null});r.current=f;let p=null,m=null;if(typeof window<`u`&&window.matchMedia){m=window.matchMedia(`(prefers-color-scheme: dark)`);let e=e=>{a.setTheme(e?`vs-dark`:`vs`)};e(m.matches),p=t=>e(t.matches),m.addEventListener(`change`,p)}let h=a.createModel(e.json,`json`,t.parse(`internal://server/${e.filename}`));f.setModel(h),e.readOnly||f.addAction({id:e.id,label:`Enter`,keybindings:[u.CtrlCmd|s.Enter,u.WinCtrl|s.Enter],run:()=>e.ctrlEnter?.()});let g=null;return(e.fullHeight??!0)||(c(),g=f.onDidChangeModelContent(()=>{c()})),()=>{g?.dispose(),m&&p&&m.removeEventListener(`change`,p),f.getModel()?.dispose(),f.dispose(),r.current=null}},[]),(0,I.jsx)(`div`,{className:`z-1 relative w-full ${e.fullHeight??!0?`h-full`:``}`,children:(0,I.jsx)(`div`,{ref:i,className:e.fullHeight??!0?`h-full`:``})})});function cm(e){let[t,n]=(0,T.useState)(!1),[r,i]=(0,T.useState)(1);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`div`,{className:`flex items-center justify-center space-x-2`,children:[(0,I.jsx)(`button`,{onClick:()=>n(e=>!e),className:`group mt-2 flex items-center rounded-lg hover:underline`,children:(0,I.jsx)(`h6`,{className:`rounded-md p-2 ${t?`border border-slate-500 font-bold`:``}`,children:t?`Hide Example`:`Example`})}),t?(0,I.jsx)(`button`,{onClick:()=>i(e=>e+1),className:`group mt-2 flex items-center rounded-lg hover:underline`,children:(0,I.jsx)(`h6`,{className:`rounded-md border border-slate-500 p-2 font-bold`,children:`Regenerate`})}):null]}),t?(0,I.jsx)(`div`,{className:`py-2`,children:(0,I.jsx)(sm,{id:e.schemaKey,readOnly:!0,json:e.generate(),allowLinks:!1,filename:`${e.schemaKey}.json`,ariaLabel:`${e.schemaKey}.example`,fullHeight:!1,lineNumbers:!1,minimap:!1},r)}):null]})}function lm(){return(0,I.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`1.5`,stroke:`currentColor`,className:`h-6 w-6`,children:(0,I.jsx)(`path`,{d:`M 2 7 C 7 7 10 6 14 3 M 5.913 11.248 C 6 10 7.311 9.136 8.87 10.208 M 6.011 11.345 C 7 10 8 10 8.773 10.241 M 2 7 C 5 25 22 26 14 3 M 10.333 9.721 C 10.56 8.778 11 8 13 9 M 10.365 9.851 C 11 9 12 9 13.127 9.233 M 8 16 C 9 16 12 16 14 14 M 8 16 C 11 18 13 17 14 14 M 16.442 5.074 C 19 6 19 6 22 6 C 21 14 19.269 16.35 17.741 17.422 M 19.139 9.688 C 18.066 10.696 17 10 17 9 C 17 9 18 10 19.041 9.688`})})}function um(e){let{entry:t,telepactSchema:n,navigate:r}=e,i=t.name,a=t.data,o=(0,T.useMemo)(()=>qp(t),[t]),[s,c]=(0,T.useState)(!1),[l,u]=(0,T.useState)(!1),[d,f]=(0,T.useState)(1),p=()=>{let e=new URLSearchParams(window.location.search);e.set(`v`,`md`),e.set(`mf`,i),r(`?${e.toString()}#${i}`)},m=e=>{let t=new URLSearchParams(window.location.search),n=(t.get(`mh`)??``).split(`,`).map(e=>e.trim()).filter(e=>e!==``),a=n.includes(e)?n.filter(t=>t!==e):[...n,e];t.set(`mh`,a.join(`,`)),r(`?${t.toString()}#${i}`)};(0,T.useEffect)(()=>{let e=window.location.hash?.replace(`#`,``);e&&e===i&&document.getElementById(i)?.scrollIntoView()},[i]);let h=(0,T.useMemo)(()=>i.startsWith(`fn`)?`bg-amber-500 dark:bg-amber-700`:i.startsWith(`struct`)?`bg-sky-500 dark:bg-sky-700`:i.startsWith(`union`)?`bg-green-500 dark:bg-green-700`:i.startsWith(`errors`)?`bg-rose-500 dark:bg-rose-800`:i.startsWith(`info`)?`bg-slate-300 dark:bg-slate-600`:`bg-gray-200 dark:bg-gray-700`,[i]);return(0,I.jsxs)(`section`,{id:i,"aria-label":i,className:`mb-2 rounded-lg border border-gray-300 bg-white p-6 shadow dark:border-gray-700 dark:bg-gray-800`,children:[(0,I.jsxs)(`div`,{className:`flex w-full items-center pb-4`,children:[(0,I.jsx)(`a`,{href:`#${i}`,children:(0,I.jsx)(`h5`,{className:`rounded-md px-2 py-1 font-mono text-2xl font-bold tracking-tight text-gray-900 dark:text-white ${h}`,children:i})}),Jp(a)?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{className:`grow`}),(0,I.jsx)(`div`,{children:(0,I.jsxs)(`button`,{onClick:p,className:`group flex items-center space-x-2 py-2`,children:[(0,I.jsx)(`span`,{className:`group-hover:underline`,children:`Simulate`}),(0,I.jsx)(`div`,{className:`rounded-lg p-1 group-hover:bg-sky-700 group-hover:text-cyan-300`,children:(0,I.jsx)(lm,{})})]})})]}):null]}),(0,I.jsx)(`div`,{children:i.startsWith(`struct`)?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Dt,{fields:t.data}),o?(0,I.jsx)(`div`,{className:`pt-4 prose dark:prose-invert`,dangerouslySetInnerHTML:{__html:o}}):null,(0,I.jsx)(cm,{schemaKey:i,generate:()=>Zp(i,n)})]}):Jp(a)?(0,I.jsxs)(`div`,{className:`space-y-1`,children:[(0,I.jsxs)(`section`,{"aria-label":`Arguments`,children:[(0,I.jsx)(Dt,{fields:a.args}),o?(0,I.jsx)(`div`,{className:`pt-4 prose dark:prose-invert`,dangerouslySetInnerHTML:{__html:o}}):null,(0,I.jsx)(cm,{schemaKey:i,generate:()=>Zp(i,n)})]}),(0,I.jsxs)(`section`,{"aria-label":`Result`,children:[(0,I.jsx)(`div`,{children:(0,I.jsx)(`span`,{className:`text-3xl text-emerald-500`,children:`→`})}),(0,I.jsx)(im,{tags:a.results}),(0,I.jsxs)(`div`,{className:`flex items-center justify-center space-x-2`,children:[(0,I.jsx)(`button`,{onClick:()=>c(e=>!e),className:`group mt-2 flex items-center rounded-lg hover:underline`,children:(0,I.jsx)(`h6`,{className:`rounded-md p-2 ${s?`border border-slate-500 font-bold`:``}`,children:s?`Hide Example`:`Example`})}),s?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`button`,{onClick:()=>f(e=>e+1),className:`group mt-2 flex items-center rounded-lg hover:underline`,children:(0,I.jsx)(`h6`,{className:`rounded-md border border-slate-500 p-2 font-bold`,children:`Regenerate`})}),(0,I.jsxs)(`label`,{children:[(0,I.jsx)(`input`,{type:`checkbox`,className:`mr-1`,checked:l,onChange:e=>u(e.target.checked)}),` `,`Include Errors`]})]}):null]}),s?(0,I.jsx)(`div`,{className:`py-2`,children:(0,I.jsx)(sm,{id:i,readOnly:!0,json:Qp(i,n,l?null:{Ok_:{}},!l),allowLinks:!1,filename:`${i}.result.json`,ariaLabel:`${i}.result.example`,fullHeight:!1,lineNumbers:!1,minimap:!1},d)}):null,(a.inheritedErrors?.length??0)>0?(0,I.jsx)(`div`,{className:`pt-4`,children:(0,I.jsxs)(`div`,{className:`border-t border-gray-500 pt-2`,children:[(0,I.jsx)(`h6`,{className:`font-bold tracking-tight`,children:`Also includes:`}),(0,I.jsx)(`ul`,{children:a.inheritedErrors.map(e=>(0,I.jsx)(`ul`,{children:(0,I.jsx)(`a`,{href:`#${e}`,className:`text-md pl-4 text-sky-400 hover:underline`,children:e})},e))})]})}):null]})]}):Yp(a)?(0,I.jsxs)(I.Fragment,{children:[o?(0,I.jsx)(`div`,{className:`pb-2 prose dark:prose-invert`,dangerouslySetInnerHTML:{__html:o}}):null,(0,I.jsx)(`div`,{className:`space-y-2`,children:(0,I.jsx)(im,{tags:a})}),(0,I.jsx)(cm,{schemaKey:i,generate:()=>Zp(i,n)})]}):Xp(a)?(0,I.jsxs)(`div`,{children:[o?(0,I.jsx)(`div`,{className:`prose dark:prose-invert`,dangerouslySetInnerHTML:{__html:o}}):null,(0,I.jsx)(Dt,{fields:a.requestData,field:({header:e})=>(0,I.jsxs)(`button`,{onClick:()=>m(e),className:`group flex items-center space-x-2`,children:[(0,I.jsx)(`span`,{className:`group-hover:underline`,children:`Simulate`}),(0,I.jsx)(`div`,{className:`rounded-lg px-1 group-hover:bg-sky-700 group-hover:text-cyan-300`,children:(0,I.jsx)(lm,{})})]})}),Object.keys(a.requestData).length>0?(0,I.jsx)(cm,{schemaKey:`request.${i}`,generate:()=>$p(`request`,Object.keys(a.requestData),n)}):null,(0,I.jsx)(`div`,{className:`pl-4`,children:(0,I.jsx)(`span`,{className:`text-3xl text-emerald-500`,children:`→`})}),(0,I.jsx)(Dt,{fields:a.responseData}),Object.keys(a.responseData).length>0?(0,I.jsx)(cm,{schemaKey:`response.${i}`,generate:()=>$p(`response`,Object.keys(a.responseData),n)}):null]}):o?(0,I.jsx)(`div`,{className:`prose dark:prose-invert`,dangerouslySetInnerHTML:{__html:o}}):null})]})}function dm(e){let t=e.text??``,n=e.position??`bottom`,[r,i]=(0,T.useState)(!1),[a,o]=(0,T.useState)({}),s=(0,T.useRef)(null),c=(0,T.useRef)(null),l=()=>i(!1),u=()=>{if(!s.current||!c.current)return;let e=c.current.getBoundingClientRect(),t=s.current.getBoundingClientRect(),r=0,i=0;switch(n){case`bottom`:r=e.bottom+window.scrollY+8,i=e.left+window.scrollX+e.width/2-t.width/2;break;case`left`:r=e.top+window.scrollY+e.height/2-t.height/2,i=e.left+window.scrollX-t.width-8;break;case`right`:r=e.top+window.scrollY+e.height/2-t.height/2,i=e.right+window.scrollX+8;break;default:r=e.top+window.scrollY-t.height-8,i=e.left+window.scrollX+e.width/2-t.width/2}o({top:r,left:i})},d=()=>{i(!0),setTimeout(u,1)};(0,T.useEffect)(()=>(window.addEventListener(`scroll`,l,!0),()=>{window.removeEventListener(`scroll`,l,!0)}),[]);let f=(0,T.useMemo)(()=>r&&t!==``,[r,t]);return(0,I.jsxs)(`div`,{ref:c,className:`relative`,onMouseEnter:d,onMouseLeave:l,onFocus:d,onBlur:l,children:[e.children,f?(0,I.jsx)(`span`,{ref:s,className:`fixed z-50 rounded bg-gray-900 px-3 py-2 text-sm text-white shadow-lg opacity-90 pointer-events-none transition-opacity duration-100 dark:bg-gray-900 dark:text-white`,style:a,role:`tooltip`,"aria-live":`polite`,children:t}):null]})}function fm(){return(0,I.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`1.5`,stroke:`currentColor`,className:`h-6 w-6`,children:(0,I.jsx)(`path`,{d:`M 22 18 L 22 6 C 22 4 20 4 20 4 M 20 4 L 4 4 C 4 4 2 4 2 6 L 2 18 C 2 20 4 20 4 20 L 20 20 C 20 20 22 20 22 18 M 6 8 L 9 10 L 6 12 M 10 14 L 15 14 Z`})})}function pm(e){let t=e.full,n={};function r(e){if(Array.isArray(e)){let[t,n]=e;switch(t){case`array`:return{type:`array`,items:r(n)};case`object`:return{type:`object`,additionalProperties:r(n)};default:return t.startsWith(`struct.`)||t.startsWith(`union.`)||t.startsWith(`fn`)||t.startsWith(`headers.`)?{$ref:`#/$defs/${t}`}:t.startsWith(`_ext.`)?{}:{type:t}}}else if(typeof e==`object`){let t={};for(let n in e)t[n]=r(e[n]);return{type:`object`,properties:t,additionalProperties:!1}}else return{type:e}}let i={},a=[];for(let e of t){var o=rm(e);if(o.startsWith(`struct.`))n[o]=r(e[o]);else if(o.startsWith(`union.`))n[o]={oneOf:e[o].map(e=>{let t=Object.keys(e).filter(e=>e!==`///`)[0];return{type:`object`,required:[t],properties:{[t]:r(e[t])}}})};else if(o.startsWith(`errors.`))n[o]={oneOf:e[o].map(e=>{let t=Object.keys(e).filter(e=>e!==`///`)[0];return{type:`object`,required:[t],properties:{[t]:r(e[t])}}})};else if(o.startsWith(`fn.`))a.push(o),n[o]={type:`object`,properties:{[o]:r(e[o])},additionalProperties:!1};else if(o.startsWith(`headers.`)){let t=e[o];Object.assign(i,t)}else o.startsWith(`_ext.`)&&(n[o]=r(e[o]))}let s={};Object.entries(i).forEach(([e,t])=>{s[e]=r(t)});let c={oneOf:a.map(e=>({$ref:`#/$defs/${e}`}))};return{$schema:`"https://json-schema.org/draft/2020-12/schema"`,type:`array`,prefixItems:[{type:`object`,properties:s,additionalProperties:!0},c],$defs:n}}var mm=!1,hm=null;function gm(e){hm=e}function _m(){mm||(mm=!0,m.setEagerModelSync(!0),n.registerLinkProvider(`json`,{provideLinks:e=>({links:e.findMatches(`\\{[\\s\\n]*"fn\\..*":[\\s\\n]*\\{`,!1,!0,!1,``,!1,void 0).map(t=>{let n=e._bracketPairs.matchBracket(new c(t.range.startLineNumber,t.range.startColumn));if(!n)return null;let r=new d(t.range.startLineNumber,t.range.startColumn,n[1].endLineNumber,n[1].endColumn);return{range:r,val:e.getValueInRange(r)}}).filter(e=>e!==null)}),resolveLink:e=>{let t=e.val;if(typeof t==`string`)try{let e=JSON.parse(t);hm?.(e)}catch{}return{range:e.range}}}),n.registerLinkProvider(`json`,{provideLinks:()=>({links:[]}),resolveLink:e=>({range:e.range})}))}var vm=Object.create,ym=Object.defineProperty,bm=Object.getOwnPropertyDescriptor,xm=Object.getOwnPropertyNames,Sm=Object.getPrototypeOf,Cm=Object.prototype.hasOwnProperty,wm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tm=(e,t)=>{for(var n in t)ym(e,n,{get:t[n],enumerable:!0})},Em=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of xm(t))!Cm.call(e,i)&&i!==n&&ym(e,i,{get:()=>t[i],enumerable:!(r=bm(t,i))||r.enumerable});return e},Dm=(e,t,n)=>(n=e==null?{}:vm(Sm(e)),Em(t||!e||!e.__esModule?ym(n,`default`,{value:e,enumerable:!0}):n,e)),Om=wm((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f,p,m=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,h,g,_,v,y,b;p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,n=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,g=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,_=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,b=/[\t\v\f\ufeff\p{Zs}]+/uy,l=/\r?\n|[\r\u2028\u2029]/y,u=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,h=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,r=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,a=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,o=/[^<>{}]+/y,y=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,c=/^(?:return|throw|yield)$/,d=RegExp(l.source),t.exports=function*(e,{jsx:t=!1}={}){var x,S,C,w,T,E,D,O,ee,k,te,A,ne,re;for({length:E}=e,w=0,T=``,re=[{tag:`JS`}],x=[],te=0,A=!1;w<E;){switch(O=re[re.length-1],O.tag){case`JS`:case`JSNonExpressionParen`:case`InterpolationInTemplate`:case`InterpolationInJSX`:if(e[w]===`/`&&(y.test(T)||s.test(T))&&(m.lastIndex=w,D=m.exec(e))){w=m.lastIndex,T=D[0],A=!0,yield{type:`RegularExpressionLiteral`,value:D[0],closed:D[1]!==void 0&&D[1]!==`\\`};continue}if(p.lastIndex=w,D=p.exec(e)){switch(ne=D[0],ee=p.lastIndex,k=ne,ne){case`(`:T===`?NonExpressionParenKeyword`&&re.push({tag:`JSNonExpressionParen`,nesting:te}),te++,A=!1;break;case`)`:te--,A=!0,O.tag===`JSNonExpressionParen`&&te===O.nesting&&(re.pop(),k=`?NonExpressionParenEnd`,A=!1);break;case`{`:p.lastIndex=0,C=!v.test(T)&&(y.test(T)||s.test(T)),x.push(C),A=!1;break;case`}`:switch(O.tag){case`InterpolationInTemplate`:if(x.length===O.nesting){_.lastIndex=w,D=_.exec(e),w=_.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,A=!1,yield{type:`TemplateMiddle`,value:D[0]}):(re.pop(),A=!0,yield{type:`TemplateTail`,value:D[0],closed:D[1]==="`"});continue}break;case`InterpolationInJSX`:if(x.length===O.nesting){re.pop(),w+=1,T=`}`,yield{type:`JSXPunctuator`,value:`}`};continue}}A=x.pop(),k=A?`?ExpressionBraceEnd`:`}`;break;case`]`:A=!0;break;case`++`:case`--`:k=A?`?PostfixIncDec`:`?UnaryIncDec`;break;case`<`:if(t&&(y.test(T)||s.test(T))){re.push({tag:`JSXTag`}),w+=1,T=`<`,yield{type:`JSXPunctuator`,value:ne};continue}A=!1;break;default:A=!1}w=ee,T=k,yield{type:`Punctuator`,value:ne};continue}if(n.lastIndex=w,D=n.exec(e)){switch(w=n.lastIndex,k=D[0],D[0]){case`for`:case`if`:case`while`:case`with`:T!==`.`&&T!==`?.`&&(k=`?NonExpressionParenKeyword`)}T=k,A=!s.test(D[0]),yield{type:D[1]===`#`?`PrivateIdentifier`:`IdentifierName`,value:D[0]};continue}if(g.lastIndex=w,D=g.exec(e)){w=g.lastIndex,T=D[0],A=!0,yield{type:`StringLiteral`,value:D[0],closed:D[2]!==void 0};continue}if(f.lastIndex=w,D=f.exec(e)){w=f.lastIndex,T=D[0],A=!0,yield{type:`NumericLiteral`,value:D[0]};continue}if(_.lastIndex=w,D=_.exec(e)){w=_.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,re.push({tag:`InterpolationInTemplate`,nesting:x.length}),A=!1,yield{type:`TemplateHead`,value:D[0]}):(A=!0,yield{type:`NoSubstitutionTemplate`,value:D[0],closed:D[1]==="`"});continue}break;case`JSXTag`:case`JSXTagEnd`:if(i.lastIndex=w,D=i.exec(e)){switch(w=i.lastIndex,k=D[0],D[0]){case`<`:re.push({tag:`JSXTag`});break;case`>`:re.pop(),T===`/`||O.tag===`JSXTagEnd`?(k=`?JSX`,A=!0):re.push({tag:`JSXChildren`});break;case`{`:re.push({tag:`InterpolationInJSX`,nesting:x.length}),k=`?InterpolationInJSX`,A=!1;break;case`/`:T===`<`&&(re.pop(),re[re.length-1].tag===`JSXChildren`&&re.pop(),re.push({tag:`JSXTagEnd`}))}T=k,yield{type:`JSXPunctuator`,value:D[0]};continue}if(r.lastIndex=w,D=r.exec(e)){w=r.lastIndex,T=D[0],yield{type:`JSXIdentifier`,value:D[0]};continue}if(a.lastIndex=w,D=a.exec(e)){w=a.lastIndex,T=D[0],yield{type:`JSXString`,value:D[0],closed:D[2]!==void 0};continue}break;case`JSXChildren`:if(o.lastIndex=w,D=o.exec(e)){w=o.lastIndex,T=D[0],yield{type:`JSXText`,value:D[0]};continue}switch(e[w]){case`<`:re.push({tag:`JSXTag`}),w++,T=`<`,yield{type:`JSXPunctuator`,value:`<`};continue;case`{`:re.push({tag:`InterpolationInJSX`,nesting:x.length}),w++,T=`?InterpolationInJSX`,A=!1,yield{type:`JSXPunctuator`,value:`{`};continue}}if(b.lastIndex=w,D=b.exec(e)){w=b.lastIndex,yield{type:`WhiteSpace`,value:D[0]};continue}if(l.lastIndex=w,D=l.exec(e)){w=l.lastIndex,A=!1,c.test(T)&&(T=`?NoLineTerminatorHere`),yield{type:`LineTerminatorSequence`,value:D[0]};continue}if(u.lastIndex=w,D=u.exec(e)){w=u.lastIndex,d.test(D[0])&&(A=!1,c.test(T)&&(T=`?NoLineTerminatorHere`)),yield{type:`MultiLineComment`,value:D[0],closed:D[1]!==void 0};continue}if(h.lastIndex=w,D=h.exec(e)){w=h.lastIndex,A=!1,yield{type:`SingleLineComment`,value:D[0]};continue}S=String.fromCodePoint(e.codePointAt(w)),w+=S.length,T=S,A=!1,yield{type:O.tag.startsWith(`JSX`)?`JSXInvalid`:`Invalid`,value:S}}}}),km={};Tm(km,{__debug:()=>fx,check:()=>ux,doc:()=>Cb,format:()=>lx,formatWithCursor:()=>cx,getSupportInfo:()=>dx,util:()=>Ob,version:()=>Db});var Am=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),jm=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Mm=Am(`replaceAll`,function(){if(typeof this==`string`)return jm}),Nm=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},Pm=new class extends Nm{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function Fm(e,t,n){return Pm.diff(e,t,n)}var Im=()=>{},Lm=`cr`,Rm=`crlf`,zm=`lf`,Bm=`\r`,Vm=`\r
206
+ `,Hm=`
207
+ `,Um=Hm;function Wm(e){let t=e.indexOf(Bm);return t===-1?zm:e.charAt(t+1)===Hm?Rm:Lm}function Gm(e){return e===Lm?Bm:e===Rm?Vm:Um}var Km=new Map([[Hm,/\n/gu],[Bm,/\r/gu],[Vm,/\r\n/gu]]);function qm(e,t){let n=Km.get(t);return e.match(n)?.length??0}var Jm=/\r\n?/gu;function Ym(e){return Mm(0,e,Jm,Hm)}function Xm(e){return this[e<0?this.length+e:e]}var Zm=Am(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return Xm}),Qm=`string`,$m=`array`,eh=`cursor`,th=`indent`,nh=`align`,rh=`trim`,ih=`group`,ah=`fill`,oh=`if-break`,sh=`indent-if-break`,ch=`line-suffix`,lh=`line-suffix-boundary`,uh=`line`,dh=`label`,fh=`break-parent`,ph=new Set([eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh]);function mh(e){let t=e.length;for(;t>0&&(e[t-1]===`\r`||e[t-1]===`
208
+ `);)t--;return t<e.length?e.slice(0,t):e}function hh(e){if(typeof e==`string`)return Qm;if(Array.isArray(e))return $m;if(!e)return;let{type:t}=e;if(ph.has(t))return t}var gh=hh,_h=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function vh(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
209
+ Expected it to be 'string' or 'object'.`;if(gh(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=_h([...ph].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
210
+ Expected it to be ${r}.`}var yh=class extends Error{name=`InvalidDocError`;constructor(e){super(vh(e)),this.doc=e}},bh={};function xh(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===bh){n(i.pop());continue}n&&i.push(e,bh);let a=gh(e);if(!a)throw new yh(e);if(t?.(e)!==!1)switch(a){case $m:case ah:{let t=a===$m?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case oh:i.push(e.flatContents,e.breakContents);break;case ih:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);break;case nh:case th:case sh:case dh:case ch:i.push(e.contents);break;case Qm:case eh:case rh:case lh:case uh:case fh:break;default:throw new yh(e)}}}var Sh=xh;function Ch(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(gh(e)){case $m:return t(e.map(r));case ah:return t({...e,parts:e.parts.map(r)});case oh:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case ih:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case nh:case th:case sh:case dh:case ch:return t({...e,contents:r(e.contents)});case Qm:case eh:case rh:case lh:case uh:case fh:return t(e);default:throw new yh(e)}}}function wh(e,t,n){let r=n,i=!1;function a(e){if(i)return!1;let n=t(e);n!==void 0&&(i=!0,r=n)}return Sh(e,a),r}function Th(e){if(e.type===ih&&e.break||e.type===uh&&e.hard||e.type===fh)return!0}function Eh(e){return wh(e,Th,!1)}function Dh(e){if(e.length>0){let t=Zm(0,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function Oh(e){let t=new Set,n=[];function r(e){if(e.type===fh&&Dh(n),e.type===ih){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===ih&&n.pop().break&&Dh(n)}Sh(e,r,i,!0)}function kh(e){return e.type===uh&&!e.hard?e.soft?``:` `:e.type===oh?e.flatContents:e}function Ah(e){return Ch(e,kh)}function jh(e){for(e=[...e];e.length>=2&&Zm(0,e,-2).type===uh&&Zm(0,e,-1).type===fh;)e.length-=2;if(e.length>0){let t=Mh(Zm(0,e,-1));e[e.length-1]=t}return e}function Mh(e){switch(gh(e)){case th:case sh:case ih:case ch:case dh:{let t=Mh(e.contents);return{...e,contents:t}}case oh:return{...e,breakContents:Mh(e.breakContents),flatContents:Mh(e.flatContents)};case ah:return{...e,parts:jh(e.parts)};case $m:return jh(e);case Qm:return mh(e);case nh:case eh:case rh:case lh:case uh:case fh:break;default:throw new yh(e)}return e}function Nh(e){return Mh(Fh(e))}function Ph(e){switch(gh(e)){case ah:if(e.parts.every(e=>e===``))return``;break;case ih:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===ih&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case nh:case th:case sh:case ch:if(!e.contents)return``;break;case oh:if(!e.flatContents&&!e.breakContents)return``;break;case $m:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof Zm(0,t,-1)==`string`?t[t.length-1]+=e:t.push(e),t.push(...r)}return t.length===0?``:t.length===1?t[0]:t}case Qm:case eh:case rh:case lh:case uh:case dh:case fh:break;default:throw new yh(e)}return e}function Fh(e){return Ch(e,e=>Ph(e))}function Ih(e,t=ug){return Ch(e,e=>typeof e==`string`?rg(t,e.split(`
211
+ `)):e)}function Lh(e){if(e.type===uh)return!0}function Rh(e){return wh(e,Lh,!1)}function zh(e,t){return e.type===dh?{...e,contents:t(e.contents)}:t(e)}var Bh=Im,Vh=Im,Hh=Im,Uh=Im;function Wh(e){return Bh(e),{type:th,contents:e}}function Gh(e,t){return Uh(e),Bh(t),{type:nh,contents:t,n:e}}function Kh(e){return Gh(-1/0,e)}function qh(e){return Gh({type:`root`},e)}function Jh(e){return Gh(-1,e)}function Yh(e,t,n){Bh(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=Wh(r);r=Gh(t%n,r),r=Gh(-1/0,r)}return r}var Xh={type:fh},Zh={type:eh};function Qh(e){return Hh(e),{type:ah,parts:e}}function $h(e,t={}){return Bh(e),Vh(t.expandedStates,!0),{type:ih,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function eg(e,t){return $h(e[0],{...t,expandedStates:e})}function tg(e,t=``,n={}){return Bh(e),t!==``&&Bh(t),{type:oh,breakContents:e,flatContents:t,groupId:n.groupId}}function ng(e,t){return Bh(e),{type:sh,contents:e,groupId:t.groupId,negate:t.negate}}function rg(e,t){Bh(e),Vh(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function ig(e,t){return Bh(t),e?{type:dh,label:e,contents:t}:t}var ag={type:uh},og={type:uh,soft:!0},sg={type:uh,hard:!0},cg=[sg,Xh],lg={type:uh,hard:!0,literal:!0},ug=[lg,Xh];function dg(e){return Bh(e),{type:ch,contents:e}}var fg={type:lh},pg={type:rh};function mg(e){if(!e)return``;if(Array.isArray(e)){let t=[];for(let n of e)if(Array.isArray(n))t.push(...mg(n));else{let e=mg(n);e!==``&&t.push(e)}return t}return e.type===oh?{...e,breakContents:mg(e.breakContents),flatContents:mg(e.flatContents)}:e.type===ih?{...e,contents:mg(e.contents),expandedStates:e.expandedStates?.map(mg)}:e.type===ah?{type:`fill`,parts:e.parts.map(mg)}:e.contents?{...e,contents:mg(e.contents)}:e}function hg(e){let t=Object.create(null),n=new Set;return r(mg(e));function r(e,t,n){if(typeof e==`string`)return JSON.stringify(e);if(Array.isArray(e)){let t=e.map(r).filter(Boolean);return t.length===1?t[0]:`[${t.join(`, `)}]`}if(e.type===uh){let r=n?.[t+1]?.type===fh;return e.literal?r?`literalline`:`literallineWithoutBreakParent`:e.hard?r?`hardline`:`hardlineWithoutBreakParent`:e.soft?`softline`:`line`}if(e.type===fh)return n?.[t-1]?.type===uh&&n[t-1].hard?void 0:`breakParent`;if(e.type===rh)return`trim`;if(e.type===th)return`indent(`+r(e.contents)+`)`;if(e.type===nh)return e.n===-1/0?`dedentToRoot(`+r(e.contents)+`)`:e.n<0?`dedent(`+r(e.contents)+`)`:e.n.type===`root`?`markAsRoot(`+r(e.contents)+`)`:`align(`+JSON.stringify(e.n)+`, `+r(e.contents)+`)`;if(e.type===oh)return`ifBreak(`+r(e.breakContents)+(e.flatContents?`, `+r(e.flatContents):``)+(e.groupId?(e.flatContents?``:`, ""`)+`, { groupId: ${i(e.groupId)} }`:``)+`)`;if(e.type===sh){let t=[];e.negate&&t.push(`negate: true`),e.groupId&&t.push(`groupId: ${i(e.groupId)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return`indentIfBreak(${r(e.contents)}${n})`}if(e.type===ih){let t=[];e.break&&e.break!==`propagated`&&t.push(`shouldBreak: true`),e.id&&t.push(`id: ${i(e.id)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return e.expandedStates?`conditionalGroup([${e.expandedStates.map(e=>r(e)).join(`,`)}]${n})`:`group(${r(e.contents)}${n})`}if(e.type===ah)return`fill([${e.parts.map(e=>r(e)).join(`, `)}])`;if(e.type===ch)return`lineSuffix(`+r(e.contents)+`)`;if(e.type===lh)return`lineSuffixBoundary`;if(e.type===dh)return`label(${JSON.stringify(e.label)}, ${r(e.contents)})`;if(e.type===eh)return`cursor`;throw Error(`Unknown doc type `+e.type)}function i(e){if(typeof e!=`symbol`)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||`symbol`;for(let i=0;;i++){let a=r+(i>0?` #${i}`:``);if(!n.has(a))return n.add(a),t[e]=`Symbol.for(${JSON.stringify(a)})`}}}var gg=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function _g(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function vg(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var yg=`©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇`,bg=/[^\x20-\x7F]/u,xg=new Set(yg);function Sg(e){if(!e)return 0;if(!bg.test(e))return e.length;e=e.replace(gg(),e=>xg.has(e)?` `:` `);let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||e>=65024&&e<=65039||(t+=_g(e)||vg(e)?2:1)}return t}var Cg=Sg,wg={type:0},Tg={type:1},Eg={value:``,length:0,queue:[],get root(){return Eg}};function Dg(e,t,n){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],i=``,a=0,o=0,s=0;for(let e of r)switch(e.type){case 0:u(),n.useTabs?c(1):l(n.tabWidth);break;case 3:{let{string:t}=e;u(),i+=t,a+=t.length;break}case 2:{let{width:t}=e;o+=1,s+=t;break}default:throw Error(`Unexpected indent comment '${e.type}'.`)}return f(),{...e,value:i,length:a,queue:r};function c(e){i+=` `.repeat(e),a+=n.tabWidth*e}function l(e){i+=` `.repeat(e),a+=e}function u(){n.useTabs?d():f()}function d(){o>0&&c(o),p()}function f(){s>0&&l(s),p()}function p(){o=0,s=0}}function Og(e,t,n){if(!t)return e;if(t.type===`root`)return{...e,root:e};if(t===-1/0)return e.root;let r;return r=typeof t==`number`?t<0?Tg:{type:2,width:t}:{type:3,string:t},Dg(e,r,n)}function kg(e,t){return Dg(e,wg,t)}function Ag(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===` `||r===` `)t++;else break}return t}function jg(e){let t=Ag(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Mg=Symbol(`MODE_BREAK`),Ng=Symbol(`MODE_FLAT`),Pg=Symbol(`DOC_FILL_PRINTED_LENGTH`);function Fg(e,t,n,r,i,a){if(n===1/0)return!0;let o=t.length,s=!1,c=[e],l=``;for(;n>=0;){if(c.length===0){if(o===0)return!0;c.push(t[--o]);continue}let{mode:e,doc:u}=c.pop(),d=gh(u);switch(d){case Qm:u&&(s&&=(l+=` `,--n,!1),l+=u,n-=Cg(u));break;case $m:case ah:{let t=d===$m?u:u.parts,n=u[Pg]??0;for(let r=t.length-1;r>=n;r--)c.push({mode:e,doc:t[r]});break}case th:case nh:case sh:case dh:c.push({mode:e,doc:u.contents});break;case rh:{let{text:e,count:t}=jg(l);l=e,n+=t;break}case ih:{if(a&&u.break)return!1;let t=u.break?Mg:e,n=u.expandedStates&&t===Mg?Zm(0,u.expandedStates,-1):u.contents;c.push({mode:t,doc:n});break}case oh:{let t=(u.groupId?i[u.groupId]||Ng:e)===Mg?u.breakContents:u.flatContents;t&&c.push({mode:e,doc:t});break}case uh:if(e===Mg||u.hard)return!0;u.soft||(s=!0);break;case ch:r=!0;break;case lh:if(r)return!1;break}}return!1}function Ig(e,t){let n=Object.create(null),r=t.printWidth,i=Gm(t.endOfLine),a=0,o=[{indent:Eg,mode:Mg,doc:e}],s=``,c=!1,l=[],u=[],d=[],f=[],p=0;for(Oh(e);o.length>0;){let{indent:e,mode:d,doc:f}=o.pop();switch(gh(f)){case Qm:{let e=i===`
212
+ `?f:Mm(0,f,`
213
+ `,i);e&&(s+=e,o.length>0&&(a+=Cg(e)));break}case $m:for(let t=f.length-1;t>=0;t--)o.push({indent:e,mode:d,doc:f[t]});break;case eh:if(u.length>=2)throw Error(`There are too many 'cursor' in doc.`);u.push(p+s.length);break;case th:o.push({indent:kg(e,t),mode:d,doc:f.contents});break;case nh:o.push({indent:Og(e,f.n,t),mode:d,doc:f.contents});break;case rh:_();break;case ih:switch(d){case Ng:if(!c){o.push({indent:e,mode:f.break?Mg:Ng,doc:f.contents});break}case Mg:{c=!1;let t={indent:e,mode:Ng,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&Fg(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=Zm(0,f.expandedStates,-1);if(f.break){o.push({indent:e,mode:Mg,doc:t});break}else for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({indent:e,mode:Mg,doc:t});break}else{let t={indent:e,mode:Ng,doc:f.expandedStates[r]};if(Fg(t,o,i,s,n)){o.push(t);break}}}else o.push({indent:e,mode:Mg,doc:f.contents});break}}f.id&&(n[f.id]=Zm(0,o,-1).mode);break;case ah:{let t=r-a,i=f[Pg]??0,{parts:s}=f,c=s.length-i;if(c===0)break;let u=s[i+0],p=s[i+1],m={indent:e,mode:Ng,doc:u},h={indent:e,mode:Mg,doc:u},g=Fg(m,[],t,l.length>0,n,!0);if(c===1){g?o.push(m):o.push(h);break}let _={indent:e,mode:Ng,doc:p},v={indent:e,mode:Mg,doc:p};if(c===2){g?o.push(_,m):o.push(v,h);break}let y=s[i+2],b={indent:e,mode:d,doc:{...f,[Pg]:i+2}},x=Fg({indent:e,mode:Ng,doc:[u,p,y]},[],t,l.length>0,n,!0);o.push(b),x?o.push(_,m):g?o.push(v,m):o.push(v,h);break}case oh:case sh:{let t=f.groupId?n[f.groupId]:d;if(t===Mg){let t=f.type===oh?f.breakContents:f.negate?f.contents:Wh(f.contents);t&&o.push({indent:e,mode:d,doc:t})}if(t===Ng){let t=f.type===oh?f.flatContents:f.negate?Wh(f.contents):f.contents;t&&o.push({indent:e,mode:d,doc:t})}break}case ch:l.push({indent:e,mode:d,doc:f.contents});break;case lh:l.length>0&&o.push({indent:e,mode:d,doc:sg});break;case uh:switch(d){case Ng:if(f.hard)c=!0;else{f.soft||(s+=` `,a+=1);break}case Mg:if(l.length>0){o.push({indent:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?(s+=i,a=0,e.root&&(e.root.value&&(s+=e.root.value),a=e.root.length)):(_(),s+=i+e.value,a=e.length);break}break;case dh:o.push({indent:e,mode:d,doc:f.contents});break;case fh:break;default:throw new yh(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let m=d.join(``)+s,h=[...f,...u];if(h.length!==2)return{formatted:m};let g=h[0];return{formatted:m,cursorNodeStart:g,cursorNodeText:m.slice(g,Zm(0,h,-1))};function _(){let{text:e,count:t}=jg(s);e&&(d.push(e),p+=e.length),s=``,a-=t,u.length>0&&(f.push(...u.map(e=>Math.min(e,p))),u.length=0)}}function Lg(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===` `?r=r+t-r%t:r++;return r}var Rg=Lg,zg=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Zm(0,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Zm(0,this.stack,-2)}get node(){return Zm(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Zm(0,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Zm(0,e,-2):null}getValue(){return Zm(0,this.stack,-1)}getNode(e=0){let t=this.#e(e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}#e(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1}call(e,...t){let{stack:n}=this,{length:r}=n,i=Zm(0,n,-1);for(let e of t)i=i?.[e],n.push(e,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=this.#e(t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=Zm(0,n,-1);for(let e of t)i=i[e],n.push(e,i);try{for(let t=0;t<i.length;++t)n.push(t,i[t]),e(this,t,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((t,r,i)=>{n[r]=e(t,r,i)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let e=null;if(typeof n==`number`&&(e=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of this.#t())if(e(t))return t}hasAncestor(e){for(let t of this.#t())if(e(t))return!0;return!1}*#t(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}}};function Bg(e){return typeof e==`object`&&!!e}var Vg=Bg;function Hg(e){return(t,n,r)=>{let i=!!r?.backwards;if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var Ug=Hg(/\s/u),Wg=Hg(` `),Gg=Hg(`,; `),Kg=Hg(/[^\n\r]/u),qg=e=>e===`
214
+ `||e===`\r`||e===`\u2028`||e===`\u2029`;function Jg(e,t,n){let r=!!n?.backwards;if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
215
+ `)return t-2;if(qg(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
216
+ `)return t+2;if(qg(i))return t+1}return t}var Yg=Jg;function Xg(e,t,n={}){let r=Wg(e,n.backwards?t-1:t,n);return r!==Yg(e,r,n)}var Zg=Xg;function Qg(e){return Array.isArray(e)&&e.length>0}var $g=Qg;function*e_(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>Vg(e)&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)i(e)&&(yield e);else i(n)&&(yield n)}}function*t_(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of e_(r,t))yield e,n.push(e)}}function n_(e,t){return e_(e,t).next().done}function r_(e,t,n){let{cache:r}=n;if(r.has(e))return r.get(e);let{filter:i}=n;if(!i)return[];let a,o=(n.getChildren?.(e,n)??[...e_(e,{getVisitorKeys:n.getVisitorKeys})]).flatMap(r=>(a??=[e,...t],i(r,a)?[r]:r_(r,a,n))),{locStart:s,locEnd:c}=n;return o.sort((e,t)=>s(e)-s(t)||c(e)-c(t)),r.set(e,o),o}var i_=r_;function a_(e){let t=e.type||e.kind||`(unknown type)`,n=String(e.name||e.id&&(typeof e.id==`object`?e.id.name:e.id)||e.key&&(typeof e.key==`object`?e.key.name:e.key)||e.value&&(typeof e.value==`object`?``:String(e.value))||e.operator||``);return n.length>20&&(n=n.slice(0,19)+`…`),t+(n?` `+n:``)}function o_(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=a_(e)}function s_(e,t){t.leading=!0,t.trailing=!1,o_(e,t)}function c_(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),o_(e,t)}function l_(e,t){t.leading=!1,t.trailing=!0,o_(e,t)}var u_=new WeakMap;function d_(e,t,n,r,i=[]){let{locStart:a,locEnd:o}=n,s=a(t),c=o(t),l=i_(e,i,{cache:u_,locStart:a,locEnd:o,getVisitorKeys:n.getVisitorKeys,filter:n.printer.canAttachComment,getChildren:n.printer.getCommentChildNodes}),u,d,f=0,p=l.length;for(;f<p;){let e=f+p>>1,r=l[e],m=a(r),h=o(r);if(m<=s&&c<=h)return d_(r,t,n,r,[r,...i]);if(h<=s){u=r,f=e+1;continue}if(c<=m){d=r,p=e;continue}throw Error(`Comment location overlaps with node location`)}if(r?.type===`TemplateLiteral`){let{quasis:e}=r,i=v_(e,t,n);u&&v_(e,u,n)!==i&&(u=null),d&&v_(e,d,n)!==i&&(d=null)}return{enclosingNode:r,precedingNode:u,followingNode:d}}var f_=()=>!1;function p_(e,t){let{comments:n}=e;if(delete e.comments,!$g(n)||!t.printer.canAttachComment)return;let r=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:a={}},originalText:o}=t,{ownLine:s=f_,endOfLine:c=f_,remaining:l=f_}=a,u=n.map((r,i)=>({...d_(e,r,t),comment:r,text:o,options:t,ast:e,isLastComment:n.length-1===i}));for(let[e,t]of u.entries()){let{comment:n,precedingNode:a,enclosingNode:o,followingNode:d,text:f,options:p,ast:m,isLastComment:h}=t,g;if(i?g=[t]:(n.enclosingNode=o,n.precedingNode=a,n.followingNode=d,g=[n,f,p,m,h]),h_(f,p,u,e))n.placement=`ownLine`,s(...g)||(d?s_(d,n):a?l_(a,n):c_(o||m,n));else if(g_(f,p,u,e))n.placement=`endOfLine`,c(...g)||(a?l_(a,n):d?s_(d,n):c_(o||m,n));else if(n.placement=`remaining`,!l(...g))if(a&&d){let e=r.length;e>0&&r[e-1].followingNode!==d&&__(r,p),r.push(t)}else a?l_(a,n):d?s_(d,n):c_(o||m,n)}if(__(r,t),!i)for(let e of n)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}var m_=e=>!/[\S\n\u2028\u2029]/u.test(e);function h_(e,t,n,r){let{comment:i,precedingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=o(i);if(a)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:i}=n[t];if(i!==a||!m_(e.slice(s(r),c)))break;c=o(r)}return Zg(e,c,{backwards:!0})}function g_(e,t,n,r){let{comment:i,followingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=s(i);if(a)for(let t=r+1;t<n.length;t++){let{comment:r,followingNode:i}=n[t];if(i!==a||!m_(e.slice(c,o(r))))break;c=s(r)}return Zg(e,c)}function __(e,t){let n=e.length;if(n===0)return;let{precedingNode:r,followingNode:i}=e[0],a=t.locStart(i),o;for(o=n;o>0;--o){let{comment:n,precedingNode:r,followingNode:i}=e[o-1],s=t.originalText.slice(t.locEnd(n),a);if(t.printer.isGap?.(s,t)??/^[\s(]*$/u.test(s))a=t.locStart(n);else break}for(let[t,{comment:n}]of e.entries())t<o?l_(r,n):s_(i,n);for(let e of[r,i])e.comments&&e.comments.length>1&&e.comments.sort((e,n)=>t.locStart(e)-t.locStart(n));e.length=0}function v_(e,t,n){let r=n.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<n.locStart(e[t]))return t-1;return 0}function y_(e,t){let n=t-1;n=Wg(e,n,{backwards:!0}),n=Yg(e,n,{backwards:!0}),n=Wg(e,n,{backwards:!0});let r=Yg(e,n,{backwards:!0});return n!==r}var b_=y_;function x_(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function S_(e,t){let n=e.node,r=[x_(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.(n)){let e=Zg(a,s(n))?Zg(a,o(n),{backwards:!0})?cg:ag:` `;r.push(e)}else r.push(cg);let c=Yg(a,Wg(a,s(n)));return c!==!1&&Zg(a,c)&&r.push(cg),r}function C_(e,t,n){let r=e.node,i=x_(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.(r);return n?.hasLineSuffix&&!n?.isBlock||Zg(o,s(r),{backwards:!0})?{doc:dg([cg,b_(o,s(r))?cg:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n?.hasLineSuffix?{doc:[dg([` `,i]),Xh],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function w_(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for(`printedComments`)];if((n.comments||[]).filter(e=>!r.has(e)).length===0)return{leading:``,trailing:``};let i=[],a=[],o;return e.each(()=>{let n=e.node;if(r?.has(n))return;let{leading:s,trailing:c}=n;s?i.push(S_(e,t)):c&&(o=C_(e,t,o),a.push(o.doc))},`comments`),{leading:i,trailing:a}}function T_(e,t,n){let{leading:r,trailing:i}=w_(e,n);return!r&&!i?t:zh(t,e=>[r,e,i])}function E_(e){let{[Symbol.for(`comments`)]:t,[Symbol.for(`printedComments`)]:n}=e;for(let e of t){if(!e.printed&&!n.has(e))throw Error(`Comment "`+e.value.trim()+`" was not printed. Please report this error!`);delete e.printed}}var D_=()=>Im,O_=class extends Error{name=`ConfigError`},k_=class extends Error{name=`UndefinedParserError`},A_={checkIgnorePragma:{category:`Special`,type:`boolean`,default:!1,description:`Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.`,cliCategory:`Other`},cursorOffset:{category:`Special`,type:`int`,default:-1,range:{start:-1,end:1/0,step:1},description:`Print (to stderr) where a cursor at the given position would move to after formatting.`,cliCategory:`Editor`},endOfLine:{category:`Global`,type:`choice`,default:`lf`,description:`Which end of line characters to apply.`,choices:[{value:`lf`,description:`Line Feed only (\\n), common on Linux and macOS as well as inside git repos`},{value:`crlf`,description:`Carriage Return + Line Feed characters (\\r\\n), common on Windows`},{value:`cr`,description:`Carriage Return character only (\\r), used very rarely`},{value:`auto`,description:`Maintain existing
217
+ (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:`Special`,type:`path`,description:`Specify the input filepath. This will be used to do parser inference.`,cliName:`stdin-filepath`,cliCategory:`Other`,cliDescription:`Path to the file to pretend that stdin comes from.`},insertPragma:{category:`Special`,type:`boolean`,default:!1,description:`Insert @format pragma into file's first docblock comment.`,cliCategory:`Other`},parser:{category:`Global`,type:`choice`,default:void 0,description:`Which parser to use.`,exception:e=>typeof e==`string`||typeof e==`function`,choices:[{value:`flow`,description:`Flow`},{value:`babel`,description:`JavaScript`},{value:`babel-flow`,description:`Flow`},{value:`babel-ts`,description:`TypeScript`},{value:`typescript`,description:`TypeScript`},{value:`acorn`,description:`JavaScript`},{value:`espree`,description:`JavaScript`},{value:`meriyah`,description:`JavaScript`},{value:`css`,description:`CSS`},{value:`less`,description:`Less`},{value:`scss`,description:`SCSS`},{value:`json`,description:`JSON`},{value:`json5`,description:`JSON5`},{value:`jsonc`,description:`JSON with Comments`},{value:`json-stringify`,description:`JSON.stringify`},{value:`graphql`,description:`GraphQL`},{value:`markdown`,description:`Markdown`},{value:`mdx`,description:`MDX`},{value:`vue`,description:`Vue`},{value:`yaml`,description:`YAML`},{value:`glimmer`,description:`Ember / Handlebars`},{value:`html`,description:`HTML`},{value:`angular`,description:`Angular`},{value:`lwc`,description:`Lightning Web Components`},{value:`mjml`,description:`MJML`}]},plugins:{type:`path`,array:!0,default:[{value:[]}],category:`Global`,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e==`string`||typeof e==`object`,cliName:`plugin`,cliCategory:`Config`},printWidth:{category:`Global`,type:`int`,default:80,description:`The line length where Prettier will try wrap.`,range:{start:0,end:1/0,step:1}},rangeEnd:{category:`Special`,type:`int`,default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
218
+ The range will extend forwards to the end of the selected statement.`,cliCategory:`Editor`},rangeStart:{category:`Special`,type:`int`,default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
219
+ The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:`Editor`},requirePragma:{category:`Special`,type:`boolean`,default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.`,cliCategory:`Other`},tabWidth:{type:`int`,category:`Global`,default:2,description:`Number of spaces per indentation level.`,range:{start:0,end:1/0,step:1}},useTabs:{category:`Global`,type:`boolean`,default:!1,description:`Indent with tabs instead of spaces.`},embeddedLanguageFormatting:{category:`Global`,type:`choice`,default:`auto`,description:`Control how Prettier formats quoted code embedded in the file.`,choices:[{value:`auto`,description:`Format embedded code if Prettier can automatically identify it.`},{value:`off`,description:`Never automatically format embedded code.`}]}};function j_({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(e=>e.languages??[]),r=[];for(let i of N_(Object.assign({},...e.map(({options:e})=>e),A_)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(e=>!e.deprecated)),i.name===`parser`&&(i.choices=[...i.choices,...M_(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(e=>e.defaultOptions?.[i.name]!==void 0).map(e=>[e.name,e.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*M_(e,t,n){let r=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!r.has(t)){r.add(t);let i=n.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),a=e.name;i?.name&&(a+=` (plugin: ${i.name})`),yield{value:t,description:a}}}}function N_(e){let t=[];for(let[n,r]of Object.entries(e)){let e={name:n,...r};Array.isArray(e.default)&&(e.default=Zm(0,e.default,-1).value),t.push(e)}return t}var P_=Array.prototype.toReversed??function(){return[...this].reverse()},F_=Am(`toReversed`,function(){if(Array.isArray(this))return P_});function I_(){let e=globalThis,t=e.Deno?.build?.os;return typeof t==`string`?t===`windows`:e.navigator?.platform?.startsWith(`Win`)??e.process?.platform?.startsWith(`win`)??!1}var L_=I_();function R_(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function z_(e){return e=R_(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function B_(e){e=R_(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function V_(e){return L_?B_(e):z_(e)}var H_=e=>String(e).split(/[/\\]/u).pop(),U_=e=>String(e).startsWith(`file:`);function W_(e,t){if(!t)return;let n=H_(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function G_(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}var K_=void 0;function q_(e,t){if(t){if(U_(t))try{t=V_(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function J_(e,t){let n=F_(0,e.plugins).flatMap(e=>e.languages??[]);return(G_(n,t.language)??W_(n,t.physicalFile)??W_(n,t.file)??q_(n,t.physicalFile)??q_(n,t.file)??K_?.(n,t.physicalFile))?.parsers[0]}var Y_=J_,X_={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>X_.value(e)).join(`, `)}]`;let t=Object.keys(e);return t.length===0?`{}`:`{ ${t.map(t=>`${X_.key(t)}: ${X_.value(e[t])}`).join(`, `)} }`},pair:({key:e,value:t})=>X_.value({[e]:t})},Z_=new Proxy(String,{get:()=>Z_}),Q_=Z_,$_=()=>Z_,ev=(e,t,{descriptor:n})=>{let r=[`${Q_.yellow(typeof e==`string`?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${Q_.blue(typeof t==`string`?n.key(t):n.pair(t))}`),r.join(`; `)+`.`},tv=Symbol.for(`vnopts.VALUE_NOT_EXIST`),nv=Symbol.for(`vnopts.VALUE_UNCHANGED`),rv=` `.repeat(2),iv=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),a=[];return r&&a.push(av(e,t,r,n.descriptor)),i&&a.push([av(e,t,i.title,n.descriptor)].concat(i.values.map(e=>ov(e,n.loggerPrintWidth))).join(`
220
+ `)),sv(a,n.loggerPrintWidth)};function av(e,t,n,r){return[`Invalid ${Q_.red(r.key(e))} value.`,`Expected ${Q_.blue(n)},`,`but received ${t===tv?Q_.gray(`nothing`):Q_.red(r.value(t))}.`].join(` `)}function ov({text:e,list:t},n){let r=[];return e&&r.push(`- ${Q_.blue(e)}`),t&&r.push([`- ${Q_.blue(t.title)}:`].concat(t.values.map(e=>ov(e,n-rv.length).replace(/^|\n/g,`$&${rv}`))).join(`
221
+ `)),sv(r,n)}function sv(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,a]=e.map(e=>e.split(`
222
+ `,1)[0].length);return i>t&&i>a?r:n}var cv=[],lv=[];function uv(e,t,n){if(e===t)return 0;let r=n?.maxDistance,i=e;e.length>t.length&&(e=t,t=i);let a=e.length,o=t.length;for(;a>0&&e.charCodeAt(~-a)===t.charCodeAt(~-o);)a--,o--;let s=0;for(;s<a&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(a-=s,o-=s,r!==void 0&&o-a>r)return r;if(a===0)return r!==void 0&&o>r?r:o;let c,l,u,d,f=0,p=0;for(;f<a;)lv[f]=e.charCodeAt(s+f),cv[f]=++f;for(;p<o;){for(c=t.charCodeAt(s+p),u=p++,l=p,f=0;f<a;f++)d=c===lv[f]?u:u+1,u=cv[f],l=cv[f]=u>l?d>l?l+1:d:d>u?u+1:d;if(r!==void 0){let e=l;for(f=0;f<a;f++)cv[f]<e&&(e=cv[f]);if(e>r)return r}}return cv.length=a,lv.length=a,r!==void 0&&l>r?r:l}function dv(e,t,n){if(!Array.isArray(t)||t.length===0)return;let r=n?.maxDistance,i=e.length;for(let n of t)if(n===e)return n;if(r===0)return;let a,o=1/0,s=new Set;for(let n of t){if(s.has(n))continue;s.add(n);let t=Math.abs(n.length-i);if(t>=o||r!==void 0&&t>r)continue;let c=Number.isFinite(o)?r===void 0?o:Math.min(o,r):r,l=c===void 0?uv(e,n):uv(e,n,{maxDistance:c});if(r!==void 0&&l>r)continue;let u=l;if(c!==void 0&&l===c&&c===r&&(u=uv(e,n)),u<o&&(o=u,a=n,o===0))break}if(!(r!==void 0&&o>r))return a}var fv=(e,t,{descriptor:n,logger:r,schemas:i})=>{let a=[`Ignored unknown option ${Q_.yellow(n.pair({key:e,value:t}))}.`],o=dv(e,Object.keys(i),{maxDistance:3});o&&a.push(`Did you mean ${Q_.blue(n.key(o))}?`),r.warn(a.join(` `))},pv=[`default`,`expected`,`validate`,`deprecated`,`forward`,`redirect`,`overlap`,`preprocess`,`postprocess`];function mv(e,t){let n=new e(t),r=Object.create(n);for(let e of pv)e in t&&(r[e]=gv(t[e],n,hv.prototype[e].length));return r}var hv=class{static create(e){return mv(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return`nothing`}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return nv}};function gv(e,t,n){return typeof e==`function`?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var _v=class extends hv{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},vv=class extends hv{expected(){return`anything`}validate(){return!0}},yv=class extends hv{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:`an array of the following values`,values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);e!==!0&&n.push(e.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);e!==!1&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(bv))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);`remain`in e&&n.push(e.remain),r.push(...e.redirect.map(bv))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function bv({from:e,to:t}){return{from:[e],to:t}}var xv=class extends hv{expected(){return`true or false`}validate(e){return typeof e==`boolean`}};function Sv(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n}function Cv(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n}function wv(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function Tv(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Ev(e){return e===Math.floor(e)}function Dv(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=[`undefined`,`object`,`boolean`,`number`,`string`];return n===r?n===`string`?e.localeCompare(t):Number(e)-Number(t):i.indexOf(n)-i.indexOf(r)}function Ov(e){return(...t)=>{let n=e(...t);return typeof n==`string`?Error(n):n}}function kv(e){return e===void 0?{}:e}function Av(e){if(typeof e==`string`)return{text:e};let{text:t,list:n}=e;return Iv((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(Av)}}:{text:t}}function jv(e,t){return e===!0?!0:e===!1?{value:t}:e}function Mv(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:`value`in e?[e]:e.length===0?!1:e}function Nv(e,t){return typeof e==`string`||`key`in e?{from:t,to:e}:`from`in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Pv(e,t){return e===void 0?[]:Array.isArray(e)?e.map(e=>Nv(e,t)):[Nv(e,t)]}function Fv(e,t){let n=Pv(typeof e==`object`&&`redirect`in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e==`object`&&`remain`in e?{remain:e.remain,redirect:n}:{redirect:n}}function Iv(e,t){if(!e)throw Error(t)}var Lv=class extends hv{constructor(e){super(e),this._choices=Cv(e.choices.map(e=>e&&typeof e==`object`?e:{value:e}),`value`)}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(Dv).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(` or `)).join(`, `),list:{title:`one of the following values`,values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Rv=class extends hv{expected(){return`a number`}validate(e,t){return typeof e==`number`}},zv=class extends Rv{expected(){return`an integer`}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Ev(e)}},Bv=class extends hv{expected(){return`a string`}validate(e){return typeof e==`string`}},Vv=X_,Hv=fv,Uv=iv,Wv=ev,Gv=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Vv,unknown:a=Hv,invalid:o=Uv,deprecated:s=Wv,missing:c=()=>!1,required:l=()=>!1,preprocess:u=e=>e,postprocess:d=()=>nv}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:Sv(e,`name`),normalizeDefaultResult:kv,normalizeExpectedResult:Av,normalizeDeprecatedResult:Mv,normalizeForwardResult:Pv,normalizeRedirectResult:Fv,normalizeValidateResult:jv},this._unknownHandler=a,this._invalidHandler=Ov(o),this._deprecatedHandler=s,this._identifyMissing=(e,t)=>!(e in t)||c(e,t),this._identifyRequired=l,this._preprocess=u,this._postprocess=d,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=wv()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];if(!(e in t)){let t=kv(r.default(this._utils));`value`in t&&n.push({[e]:t.value})}}r();for(let e of Object.keys(this._utils.schemas)){if(!(e in t))continue;let n=this._utils.schemas[e],r=t[e],i=n.postprocess(r,this._utils);i!==nv&&(this._applyValidation(i,e,n),t[e]=i)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let i of r){let r=this._utils.schemas[i],a=r.preprocess(e[i],this._utils);this._applyValidation(a,i,r);let o=({from:e,to:t})=>{n.push(typeof t==`string`?{[t]:e}:{[t.key]:t.value})},s=({value:e,redirectTo:t})=>{let n=Mv(r.deprecated(e,this._utils),a,!0);if(n!==!1)if(n===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(let{value:e}of n){let n={key:i,value:e};if(!this._hasDeprecationWarned(n)){let r=typeof t==`string`?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};Pv(r.forward(a,this._utils),a).forEach(o);let c=Fv(r.redirect(a,this._utils),a);if(c.redirect.forEach(o),`remain`in c){let e=c.remain;t[i]=i in t?r.overlap(t[i],e,this._utils):e,s({value:e})}for(let{from:e,to:t}of c.redirect)s({value:e,redirectTo:t})}for(let r of i){let i=e[r];this._applyUnknownHandler(r,i,t,(e,t)=>{n.push({[e]:t})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tv,this._utils)}_partitionOptionKeys(e){let[t,n]=Tv(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=jv(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let e of Object.keys(i)){if(this._identifyMissing(e,i))continue;let t=i[e];e in this._utils.schemas?r(e,t):n[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==nv){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of n){let n=t.override[r];this._applyValidation(n,r,this._utils.schemas[r]),e[r]=n}for(let n of r){let r=t.override[n];this._applyUnknownHandler(n,r,e,(t,n)=>{let r=this._utils.schemas[t];this._applyValidation(n,t,r),e[t]=n})}}}}},Kv;function qv(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:a,descriptor:o}={}){if(r){if(!a)throw Error(`'FlagSchema' option is required.`);if(!o)throw Error(`'descriptor' option is required.`)}else o=X_;let s=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let{_:r,...i}=n.schemas;return fv(e,t,{...n,schemas:i})},c=new Gv(Jv(t,{isCLI:r,FlagSchema:a}),{logger:n,unknown:s,descriptor:o}),l=n!==!1;l&&Kv&&(c._hasDeprecationWarned=Kv);let u=c.normalize(e);return l&&(Kv=c._hasDeprecationWarned),u}function Jv(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(vv.create({name:`_`}));for(let i of e)r.push(Yv(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(_v.create({name:i.alias,sourceName:i.name}));return r}function Yv(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,a={name:i},o,s={};switch(e.type){case`int`:o=zv,t&&(a.preprocess=Number);break;case`string`:o=Bv;break;case`choice`:o=Lv,a.choices=e.choices.map(t=>t?.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case`boolean`:o=xv;break;case`flag`:o=r,a.flags=n.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;case`path`:o=Bv;break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?a.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):a.validate=(e,t,n)=>e===void 0||t.validate(e,n),e.redirect&&(s.redirect=t=>t?{to:typeof e.redirect==`string`?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let e=a.preprocess||(e=>e);a.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?Zm(0,t,-1):t),r)}return e.array?yv.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...s,valueSchema:o.create(a)}):o.create({...a,...s})}var Xv=qv,Zv=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},Qv=Am(`findLast`,function(){if(Array.isArray(this))return Zv}),$v=Symbol.for(`PRETTIER_IS_FRONT_MATTER`),ey=[];function ty(e){return!!e?.[$v]}var ny=ty,ry=new Set([`yaml`,`toml`]),iy=({node:e})=>ny(e)&&ry.has(e.language);async function ay(e,t,n,r){let{node:i}=n,{language:a}=i;if(!ry.has(a))return;let o=i.value.trim(),s;if(o){let t=a===`yaml`?a:Y_(r,{language:a});if(!t)return;s=o?await e(o,{parser:t}):``}else s=o;return qh([i.startDelimiter,i.explicitLanguage??``,cg,s,s?cg:``,i.endDelimiter])}function oy(e,t){return iy({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var sy=oy;function cy({node:e}){return e.raw}var ly=cy,uy=new Set([`tokens`,`comments`,`parent`,`enclosingNode`,`precedingNode`,`followingNode`]),dy=e=>Object.keys(e).filter(e=>!uy.has(e));function fy(e,t){let n=e?t=>e(t,uy):dy;return t?new Proxy(n,{apply:(e,t,n)=>ny(n[0])?ey:Reflect.apply(e,t,n)}):n}var py=fy;function my(e,t){if(!t)throw Error(`parserName is required.`);let n=Qv(0,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new O_(r)}function hy(e,t){if(!t)throw Error(`astFormat is required.`);let n=Qv(0,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new O_(r)}function gy({plugins:e,parser:t}){return _y(my(e,t),t)}function _y(e,t){let n=e.parsers[t];return typeof n==`function`?n():n}async function vy(e,t){let n=e.printers[t];return by(typeof n==`function`?await n():n)}var yy=new WeakMap;function by(e){if(yy.has(e))return yy.get(e);let{features:t,getVisitorKeys:n,embed:r,massageAstNode:i,print:a,...o}=e;t=Cy(t);let s=t.experimental_frontMatterSupport;n=py(n,s.massageAstNode||s.embed||s.print);let c=i;i&&s.massageAstNode&&(c=new Proxy(i,{apply(e,t,n){return sy(...n),Reflect.apply(e,t,n)}}));let l=r;if(r){let e;l=new Proxy(r,{get(t,i,a){return i===`getVisitorKeys`?(e??=r.getVisitorKeys?py(r.getVisitorKeys,s.massageAstNode||s.embed):n,e):Reflect.get(t,i,a)},apply:(e,t,n)=>s.embed&&iy(...n)?ay:Reflect.apply(e,t,n)})}let u=a;s.print&&(u=new Proxy(a,{apply(e,t,n){let[r]=n;return ny(r.node)?ly(r):Reflect.apply(e,t,n)}}));let d={features:t,getVisitorKeys:n,embed:l,massageAstNode:c,print:u,...o};return yy.set(e,d),d}var xy=Object.fromEntries([`clean`,`embed`,`print`].map(e=>[e,!1]));function Sy(e){return{...xy,...e}}function Cy(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:Sy(e?.experimental_frontMatterSupport)}}var wy={astFormat:`estree`,printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function Ty(e,t={}){let n={...e};if(!n.parser)if(n.filepath){if(n.parser=Y_(n,{physicalFile:n.filepath}),!n.parser)throw new k_(`No parser could be inferred for file "${n.filepath}".`)}else throw new k_(`No parser and no file path given, couldn't infer a parser.`);let r=j_({plugins:e.plugins,showDeprecated:!0}).options,i={...wy,...Object.fromEntries(r.filter(e=>e.default!==void 0).map(e=>[e.name,e.default]))},a=my(n.plugins,n.parser),o=await _y(a,n.parser);n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;let s=a.printers?.[o.astFormat]?a:hy(n.plugins,o.astFormat),c=await vy(s,o.astFormat);n.printer=c,n.getVisitorKeys=c.getVisitorKeys;let l=s.defaultOptions?Object.fromEntries(Object.entries(s.defaultOptions).filter(([,e])=>e!==void 0)):{},u={...i,...l};for(let[e,t]of Object.entries(u))(n[e]===null||n[e]===void 0)&&(n[e]=t);return n.parser===`json`&&(n.trailingComma=`none`),Xv(n,r,{passThrough:Object.keys(wy),...t})}var Ey=Ty;Dm(Om(),1);var Dy=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,Oy=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`;RegExp(`[`+Dy+`]`),RegExp(`[`+Dy+Oy+`]`),Dy=Oy=null;var ky={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]};new Set(ky.keyword),new Set(ky.strict),new Set(ky.strictBind);var Ay=(e,t)=>n=>e(t(n));function jy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Ay(Ay(e.white,e.bgRed),e.bold),gutter:e.gray,marker:Ay(e.red,e.bold),message:Ay(e.red,e.bold),reset:e.reset}}jy($_(!0)),jy($_(!1));function My(){return new Proxy({},{get:()=>e=>e})}var Ny=/\r\n|[\n\r\u2028\u2029]/;function Py(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:a=2,linesBelow:o=3}=n||{},s=r.line,c=r.column,l=i.line,u=i.column,d=Math.max(s-(a+1),0),f=Math.min(t.length,l+o);s===-1&&(d=0),l===-1&&(f=t.length);let p=l-s,m={};if(p)for(let e=0;e<=p;e++){let n=e+s;c?e===0?m[n]=[c,t[n-1].length-c+1]:e===p?m[n]=[0,u]:m[n]=[0,t[n-e].length]:m[n]=!0}else c===u?c?m[s]=[c,0]:m[s]=!0:m[s]=[c,u-c];return{start:d,end:f,markerLines:m}}function Fy(e,t,n={}){let r=My(!1),{start:i,end:a,markerLines:o}=Py(t,e.split(Ny),n),s=t.start&&typeof t.start.column==`number`,c=String(a).length,l=e.split(Ny,a).slice(i,a).map((e,t)=>{let a=i+1+t,s=` ${` ${a}`.slice(-c)} |`,l=o[a],u=!o[a+1];if(l){let t=``;if(Array.isArray(l)){let i=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g,` `),a=l[1]||1;t=[`
223
+ `,r.gutter(s.replace(/\d/g,` `)),` `,i,r.marker(`^`).repeat(a)].join(``),u&&n.message&&(t+=` `+r.message(n.message))}return[r.marker(`>`),r.gutter(s),e.length>0?` ${e}`:``,t].join(``)}else return` ${r.gutter(s)}${e.length>0?` ${e}`:``}`}).join(`
224
+ `);return n.message&&!s&&(l=`${` `.repeat(c+1)}${n.message}
225
+ ${l}`),l}async function Iy(e,t){let n=await gy(t),r=n.preprocess?await n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(t){Ly(t,e)}return{text:r,ast:i}}function Ly(e,t){let{loc:n}=e;if(n){let r=Fy(t,n,{highlightCode:!0});throw e.message+=`
226
+ `+r,e.codeFrame=r,e}throw e}var Ry=Iy;async function zy(e,t,n,r,i){if(n.embeddedLanguageFormatting!==`auto`)return;let{printer:a}=n,{embed:o}=a;if(!o)return;if(o.length>2)throw Error(`printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed`);let{hasPrettierIgnore:s}=a,{getVisitorKeys:c}=o,l=[];f();let u=e.stack;for(let{print:r,node:a,pathStack:o}of l)try{e.stack=o;let s=await r(d,t,e,n);s&&i.set(a,s)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}e.stack=u;function d(e,t){return By(e,t,n,r)}function f(){let{node:t}=e;if(typeof t!=`object`||!t||s?.(e))return;for(let n of c(t))Array.isArray(t[n])?e.each(f,n):e.call(f,n);let r=o(e,n);if(r){if(typeof r==`function`){l.push({print:r,node:t,pathStack:[...e.stack]});return}i.set(t,r)}}}async function By(e,t,n,r){let i=await Ey({...n,...t,parentParser:n.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:a}=await Ry(e,i);return Nh(await r(a,i))}function Vy(e,t,n,r){let{originalText:i,[Symbol.for(`comments`)]:a,locStart:o,locEnd:s,[Symbol.for(`printedComments`)]:c}=t,{node:l}=e,u=o(l),d=s(l);for(let e of a)o(e)>=u&&s(e)<=d&&c.add(e);let{printPrettierIgnored:f}=t.printer;return f?f(e,t,n,r):i.slice(u,d)}var Hy=Vy;async function Uy(e,t){({ast:e}=await Gy(e,t));let n=new Map,r=new zg(e),i=D_(t),a=new Map;await zy(r,s,t,Uy,a);let o=await Wy(r,t,s,void 0,a);if(E_(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Zh,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,Zh]}return o;function s(e,t){return e===void 0||e===r?c(t):Array.isArray(e)?r.call(()=>c(t),...e):r.call(()=>c(t),e)}function c(e){i(r);let o=r.node;if(o==null)return``;let c=Vg(o)&&e===void 0;if(c&&n.has(o))return n.get(o);let l=Wy(r,t,s,e,a);return c&&n.set(o,l),l}}function Wy(e,t,n,r,i){let{node:a}=e,{printer:o}=t,s;switch(s=o.hasPrettierIgnore?.(e)?Hy(e,t,n,r):i.has(a)?i.get(a):o.print(e,t,n,r),a){case t.cursorNode:s=zh(s,e=>[Zh,e,Zh]);break;case t.nodeBeforeCursor:s=zh(s,e=>[e,Zh]);break;case t.nodeAfterCursor:s=zh(s,e=>[Zh,e]);break}return o.printComment&&!o.willPrintOwnComments?.(e,t)&&(s=T_(e,s,t)),s}async function Gy(e,t){let n=e.comments??[];t[Symbol.for(`comments`)]=n,t[Symbol.for(`printedComments`)]=new Set,p_(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function Ky(e,t){let{cursorOffset:n,locStart:r,locEnd:i,getVisitorKeys:a}=t,o=e=>r(e)<=n&&i(e)>=n,s=e,c=[e];for(let t of t_(e,{getVisitorKeys:a,filter:o}))c.push(t),s=t;if(n_(s,{getVisitorKeys:a}))return{cursorNode:s};let l,u,d=-1,f=1/0;for(;c.length>0&&(l===void 0||u===void 0);){s=c.pop();let e=l!==void 0,t=u!==void 0;for(let o of e_(s,{getVisitorKeys:a})){if(!e){let e=i(o);e<=n&&e>d&&(l=o,d=e)}if(!t){let e=r(o);e>=n&&e<f&&(u=o,f=e)}}}return{nodeBeforeCursor:l,nodeAfterCursor:u}}var qy=Ky;function Jy(e,t){let{printer:n}=t,r=n.massageAstNode;if(!r)return e;let{getVisitorKeys:i}=n,{ignoredProperties:a}=r;return o(e);function o(e,t){if(!Vg(e))return e;if(Array.isArray(e))return e.map(e=>o(e,t)).filter(Boolean);let n={},s=new Set(i(e));for(let t in e)!Object.prototype.hasOwnProperty.call(e,t)||a?.has(t)||(s.has(t)?n[t]=o(e[t],e):n[t]=e[t]);let c=r(e,n,t);if(c!==null)return c??n}}var Yy=Jy,Xy=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return t}return-1},Zy=Am(`findLastIndex`,function(){if(Array.isArray(this))return Xy}),Qy=({parser:e})=>e===`json`||e===`json5`||e===`jsonc`||e===`json-stringify`;function $y(e,t){return t=new Set(t),e.find(e=>ib.has(e.type)&&t.has(e))}function eb(e){let t=Zy(0,e,e=>e.type!==`Program`&&e.type!==`File`);return t===-1?e:e.slice(0,t+1)}function tb(e,t,{locStart:n,locEnd:r}){let[i,...a]=e,[o,...s]=t;if(i===o)return[i,o];let c=n(i);for(let e of eb(s))if(n(e)>=c)o=e;else break;let l=r(o);for(let e of eb(a)){if(r(e)<=l)i=e;else break;if(i===o)break}return[i,o]}function nb(e,t,n,r,i=[],a){let{locStart:o,locEnd:s}=n,c=o(e),l=s(e);if(t>l||t<c||a===`rangeEnd`&&t===c||a===`rangeStart`&&t===l)return;let u=[e,...i],d=i_(e,u,{cache:u_,locStart:o,locEnd:s,getVisitorKeys:n.getVisitorKeys,filter:n.printer.canAttachComment,getChildren:n.printer.getCommentChildNodes});for(let e of d){let i=nb(e,t,n,r,u,a);if(i)return i}if(r(e,i[0]))return u}function rb(e,t){return t!==`DeclareExportDeclaration`&&e!==`TypeParameterDeclaration`&&(e===`Directive`||e===`TypeAlias`||e===`TSExportAssignment`||e.startsWith(`Declare`)||e.startsWith(`TSDeclare`)||e.endsWith(`Statement`)||e.endsWith(`Declaration`))}var ib=new Set([`JsonRoot`,`ObjectExpression`,`ArrayExpression`,`StringLiteral`,`NumericLiteral`,`BooleanLiteral`,`NullLiteral`,`UnaryExpression`,`TemplateLiteral`]),ab=new Set([`OperationDefinition`,`FragmentDefinition`,`VariableDefinition`,`TypeExtensionDefinition`,`ObjectTypeDefinition`,`FieldDefinition`,`DirectiveDefinition`,`EnumTypeDefinition`,`EnumValueDefinition`,`InputValueDefinition`,`InputObjectTypeDefinition`,`SchemaDefinition`,`OperationTypeDefinition`,`InterfaceTypeDefinition`,`UnionTypeDefinition`,`ScalarTypeDefinition`]);function ob(e,t,n){if(!t)return!1;switch(e.parser){case`flow`:case`hermes`:case`babel`:case`babel-flow`:case`babel-ts`:case`typescript`:case`acorn`:case`espree`:case`meriyah`:case`oxc`:case`oxc-ts`:case`__babel_estree`:return rb(t.type,n?.type);case`json`:case`json5`:case`jsonc`:case`json-stringify`:return ib.has(t.type);case`graphql`:return ab.has(t.kind);case`vue`:return t.tag!==`root`}return!1}function sb(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:a,locEnd:o}=t,s=e.slice(r,i).search(/\S/u),c=s===-1;if(!c)for(r+=s;i>r&&!/\S/u.test(e[i-1]);--i);let l=nb(n,r,t,(e,n)=>ob(t,e,n),[],`rangeStart`);if(!l)return;let u=c?l:nb(n,i,t,e=>ob(t,e),[],`rangeEnd`);if(!u)return;let d,f;if(Qy(t)){let e=$y(l,u);d=e,f=e}else [d,f]=tb(l,u,t);return[Math.min(a(d),a(f)),Math.max(o(d),o(f))]}var cb=``,lb=Symbol(`cursor`);async function ub(e,t,n=0){if(!e||e.trim().length===0)return{formatted:``,cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Ry(e,t);t.cursorOffset>=0&&(t={...t,...qy(r,t)});let a=await Uy(r,t,n);n>0&&(a=Yh([cg,a],n,t.tabWidth));let o=Ig(a,t);if(n>0){let e=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(e),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>e.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=e+Gm(t.endOfLine)}let s=t[Symbol.for(`comments`)];if(t.cursorOffset>=0){let e,n,r,a;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(r=o.cursorNodeStart,a=o.cursorNodeText,t.cursorNode)e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw Error(`Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor`);e=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let r=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;n=i.slice(e,r)}else e=0,n=i,r=0,a=o.formatted;let c=t.cursorOffset-e;if(n===a)return{formatted:o.formatted,cursorOffset:r+c,comments:s};let l=n.split(``);l.splice(c,0,lb);let u=Fm(l,a.split(``)),d=r;for(let e of u)if(e.removed){if(e.value.includes(lb))break}else d+=e.count;return{formatted:o.formatted,cursorOffset:d,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function db(e,t){let{ast:n,text:r}=await Ry(e,t),[i,a]=sb(r,t,n)??[0,0],o=r.slice(i,a),s=Math.min(i,r.lastIndexOf(`
227
+ `,i)+1),c=r.slice(s,i).match(/^\s*/u)[0],l=Rg(c,t.tabWidth),u=await ub(o,{...t,rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:`lf`},l),d=u.formatted.trimEnd(),{cursorOffset:f}=t;f>a?f+=d.length-o.length:u.cursorOffset>=0&&(f=u.cursorOffset+i);let p=r.slice(0,i)+d+r.slice(a);if(t.endOfLine!==`lf`){let e=Gm(t.endOfLine);f>=0&&e===`\r
228
+ `&&(f+=qm(p.slice(0,f),`
229
+ `)),p=Mm(0,p,`
230
+ `,e)}return{formatted:p,cursorOffset:f,comments:u.comments}}function fb(e,t,n){return typeof t!=`number`||Number.isNaN(t)||t<0||t>e.length?n:t}function pb(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=fb(e,n,-1),r=fb(e,r,0),i=fb(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function mb(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a}=pb(e,t),o=e.charAt(0)===cb;if(o&&(e=e.slice(1),n--,r--,i--),a===`auto`&&(a=Wm(e)),e.includes(`\r`)){let t=t=>qm(e.slice(0,Math.max(t,0)),`\r
231
+ `);n-=t(n),r-=t(r),i-=t(i),e=Ym(e)}return{hasBOM:o,text:e,options:pb(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a})}}async function hb(e,t){let n=await gy(t);return!n.hasPragma||n.hasPragma(e)}async function gb(e,t){return(await gy(t)).hasIgnorePragma?.(e)}async function _b(e,t){let{hasBOM:n,text:r,options:i}=mb(e,await Ey(t));if(i.rangeStart>=i.rangeEnd&&r!==``||i.requirePragma&&!await hb(r,i)||i.checkIgnorePragma&&await gb(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let a;return i.rangeStart>0||i.rangeEnd<r.length?a=await db(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await hb(r,i)&&(r=i.printer.insertPragma(r)),a=await ub(r,i)),n&&(a.formatted=cb+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}async function vb(e,t,n){let{text:r,options:i}=mb(e,await Ey(t)),a=await Ry(r,i);return n&&(n.preprocessForPrint&&(a.ast=await Gy(a.ast,i)),n.massage&&(a.ast=Yy(a.ast,i))),a}async function yb(e,t){return t=await Ey(t),Ig(await Uy(e,t),t)}async function bb(e,t){let{formatted:n}=await _b(hg(e),{...t,parser:`__js_expression`});return n}async function xb(e,t){t=await Ey(t);let{ast:n}=await Ry(e,t);return t.cursorOffset>=0&&(t={...t,...qy(n,t)}),Uy(n,t)}async function Sb(e,t){return Ig(e,await Ey(t))}var Cb={};Tm(Cb,{builders:()=>wb,printer:()=>Tb,utils:()=>Eb});var wb={join:rg,line:ag,softline:og,hardline:cg,literalline:ug,group:$h,conditionalGroup:eg,fill:Qh,lineSuffix:dg,lineSuffixBoundary:fg,cursor:Zh,breakParent:Xh,ifBreak:tg,trim:pg,indent:Wh,indentIfBreak:ng,align:Gh,addAlignmentToDoc:Yh,markAsRoot:qh,dedentToRoot:Kh,dedent:Jh,hardlineWithoutBreakParent:sg,literallineWithoutBreakParent:lg,label:ig,concat:e=>e},Tb={printDocToString:Ig},Eb={willBreak:Eh,traverseDoc:Sh,findInDoc:wh,mapDoc:Ch,removeLines:Ah,stripTrailingHardline:Nh,replaceEndOfLine:Ih,canBreak:Rh},Db=`3.8.1`,Ob={};Tm(Ob,{addDanglingComment:()=>c_,addLeadingComment:()=>s_,addTrailingComment:()=>l_,getAlignmentSize:()=>Rg,getIndentSize:()=>Rb,getMaxContinuousCount:()=>Vb,getNextNonSpaceNonCommentCharacter:()=>Ub,getNextNonSpaceNonCommentCharacterIndex:()=>tx,getPreferredQuote:()=>Yb,getStringWidth:()=>Cg,hasNewline:()=>Zg,hasNewlineInRange:()=>Zb,hasSpaces:()=>$b,isNextLineEmpty:()=>ox,isNextLineEmptyAfterIndex:()=>Ib,isPreviousLineEmpty:()=>rx,makeString:()=>ax,skip:()=>Hg,skipEverythingButNewLine:()=>Kg,skipInlineComment:()=>Ab,skipNewline:()=>Yg,skipSpaces:()=>Wg,skipToLineEnd:()=>Gg,skipTrailingComment:()=>Mb,skipWhitespace:()=>Ug});function kb(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var Ab=kb;function jb(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?Kg(e,t):t}var Mb=jb;function Nb(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Wg(e,r),r=Ab(e,r),r=Mb(e,r),r=Yg(e,r);return r}var Pb=Nb;function Fb(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Gg(e,r),r=Ab(e,r),r=Wg(e,r);return r=Mb(e,r),r=Yg(e,r),r!==!1&&Zg(e,r)}var Ib=Fb;function Lb(e,t){let n=e.lastIndexOf(`
232
+ `);return n===-1?0:Rg(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var Rb=Lb;function zb(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Bb(e,t){let n=e.matchAll(RegExp(`(?:${zb(t)})+`,`gu`));return n.reduce||(n=[...n]),n.reduce((e,[t])=>Math.max(e,t.length),0)/t.length}var Vb=Bb;function Hb(e,t){let n=Pb(e,t);return n===!1?``:e.charAt(n)}var Ub=Hb,Wb=Object.freeze({character:`'`,codePoint:39}),Gb=Object.freeze({character:`"`,codePoint:34}),Kb=Object.freeze({preferred:Wb,alternate:Gb}),qb=Object.freeze({preferred:Gb,alternate:Wb});function Jb(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?Kb:qb,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var Yb=Jb;function Xb(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
233
+ `)return!0;return!1}var Zb=Xb;function Qb(e,t,n={}){return Wg(e,n.backwards?t-1:t,n)!==t}var $b=Qb;function ex(e,t,n){return Pb(e,n(t))}function tx(e,t){return arguments.length===2||typeof t==`number`?Pb(e,t):ex(...arguments)}function nx(e,t,n){return b_(e,n(t))}function rx(e,t){return arguments.length===2||typeof t==`number`?b_(e,t):nx(...arguments)}function ix(e,t,n){return Ib(e,n(t))}function ax(e,t,n){let r=t===`"`?`'`:`"`;return t+Mm(0,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i))+t}function ox(e,t){return arguments.length===2||typeof t==`number`?Ib(e,t):ix(...arguments)}function sx(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var cx=sx(_b);async function lx(e,t){let{formatted:n}=await cx(e,{...t,cursorOffset:-1});return n}async function ux(e,t){return await lx(e,t)===e}var dx=sx(j_,0),fx={parse:sx(vb),formatAST:sx(yb),formatDoc:sx(bb),printToDoc:sx(xb),printDocToString:sx(Sb)},px=Object.create,mx=Object.defineProperty,hx=Object.getOwnPropertyDescriptor,gx=Object.getOwnPropertyNames,_x=Object.getPrototypeOf,vx=Object.prototype.hasOwnProperty,V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yx=(e,t)=>{for(var n in t)mx(e,n,{get:t[n],enumerable:!0})},bx=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of gx(t))!vx.call(e,i)&&i!==n&&mx(e,i,{get:()=>t[i],enumerable:!(r=hx(t,i))||r.enumerable});return e},xx=(e,t,n)=>(n=e==null?{}:px(_x(e)),bx(t||!e||!e.__esModule?mx(n,`default`,{value:e,enumerable:!0}):n,e)),Sx=V((e,t)=>{t.exports=n;function n(e){return String(e).replace(/\s+/g,` `)}}),Cx=V((e,t)=>{t.exports=m;var n=9,r=10,i=32,a=33,o=58,s=91,c=92,l=93,u=94,d=96,f=4,p=1024;function m(e){var t=this.Parser,n=this.Compiler;h(t)&&_(t,e),g(n)&&v(n)}function h(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function g(e){return!!(e&&e.prototype&&e.prototype.visitors)}function _(e,t){for(var m=t||{},h=e.prototype,g=h.blockTokenizers,_=h.inlineTokenizers,v=h.blockMethods,x=h.inlineMethods,S=g.definition,C=_.reference,w=[],T=-1,E=v.length,D;++T<E;)D=v[T],!(D===`newline`||D===`indentedCode`||D===`paragraph`||D===`footnoteDefinition`)&&w.push([D]);w.push([`footnoteDefinition`]),m.inlineNotes&&(y(x,`reference`,`inlineNote`),_.inlineNote=k),y(v,`definition`,`footnoteDefinition`),y(x,`reference`,`footnoteCall`),g.definition=A,g.footnoteDefinition=O,_.footnoteCall=ee,_.reference=te,h.interruptFootnoteDefinition=w,te.locator=C.locator,ee.locator=ne,k.locator=re;function O(e,t,a){for(var c=this,d=c.interruptFootnoteDefinition,m=c.offset,h=t.length+1,_=0,v=[],y,x,S,C,w,T,E,D,O,ee,k,te,A;_<h&&(C=t.charCodeAt(_),!(C!==n&&C!==i));)_++;if(t.charCodeAt(_++)===s&&t.charCodeAt(_++)===u){for(x=_;_<h;){if(C=t.charCodeAt(_),C!==C||C===r||C===n||C===i)return;if(C===l){S=_,_++;break}_++}if(!(S===void 0||x===S||t.charCodeAt(_++)!==o)){if(a)return!0;for(y=t.slice(x,S),w=e.now(),O=0,ee=0,k=_,te=[];_<h;){if(C=t.charCodeAt(_),C!==C||C===r)A={start:O,contentStart:k||_,contentEnd:_,end:_},te.push(A),C===r&&(O=_+1,ee=0,k=void 0,A.end=O);else if(ee!==void 0)if(C===i||C===n)ee+=C===i?1:f-ee%f,ee>f&&(ee=void 0,k=_);else{if(ee<f&&A&&(A.contentStart===A.contentEnd||b(d,g,c,[e,t.slice(_,p),!0])))break;ee=void 0,k=_}_++}for(_=-1,h=te.length;h>0&&(A=te[h-1],A.contentStart===A.contentEnd);)h--;for(T=e(t.slice(0,A.contentEnd));++_<h;)A=te[_],m[w.line+_]=(m[w.line+_]||0)+(A.contentStart-A.start),v.push(t.slice(A.contentStart,A.end));return E=c.enterBlock(),D=c.tokenizeBlock(v.join(``),w),E(),T({type:`footnoteDefinition`,identifier:y.toLowerCase(),label:y,children:D})}}}function ee(e,t,a){var o=t.length+1,c=0,d,f,p,m;if(t.charCodeAt(c++)===s&&t.charCodeAt(c++)===u){for(f=c;c<o;){if(m=t.charCodeAt(c),m!==m||m===r||m===n||m===i)return;if(m===l){p=c,c++;break}c++}if(!(p===void 0||f===p))return a?!0:(d=t.slice(f,p),e(t.slice(0,c))({type:`footnoteReference`,identifier:d.toLowerCase(),label:d}))}}function k(e,t,n){var r=this,i=t.length+1,a=0,o=0,f,p,m,h,g,_,v;if(t.charCodeAt(a++)===u&&t.charCodeAt(a++)===s){for(m=a;a<i;){if(p=t.charCodeAt(a),p!==p)return;if(_===void 0)if(p===c)a+=2;else if(p===s)o++,a++;else if(p===l)if(o===0){h=a,a++;break}else o--,a++;else if(p===d){for(g=a,_=1;t.charCodeAt(g+_)===d;)_++;a+=_}else a++;else if(p===d){for(g=a,v=1;t.charCodeAt(g+v)===d;)v++;a+=v,_===v&&(_=void 0),v=void 0}else a++}if(h!==void 0)return n?!0:(f=e.now(),f.column+=2,f.offset+=2,e(t.slice(0,a))({type:`footnote`,children:r.tokenizeInline(t.slice(m,h),f)}))}}function te(e,t,n){var r=0;if(t.charCodeAt(r)===a&&r++,t.charCodeAt(r)===s&&t.charCodeAt(r+1)!==u)return C.call(this,e,t,n)}function A(e,t,r){for(var a=0,o=t.charCodeAt(a);o===i||o===n;)o=t.charCodeAt(++a);if(o===s&&t.charCodeAt(a+1)!==u)return S.call(this,e,t,r)}function ne(e,t){return e.indexOf(`[`,t)}function re(e,t){return e.indexOf(`^[`,t)}}function v(e){var t=e.prototype.visitors,n=` `;t.footnote=r,t.footnoteReference=i,t.footnoteDefinition=a;function r(e){return`^[`+this.all(e).join(``)+`]`}function i(e){return`[^`+(e.label||e.identifier)+`]`}function a(e){for(var t=this.all(e).join(`
234
+
235
+ `).split(`
236
+ `),r=0,i=t.length,a;++r<i;)a=t[r],a!==``&&(t[r]=n+a);return`[^`+(e.label||e.identifier)+`]: `+t.join(`
237
+ `)}}function y(e,t,n){e.splice(e.indexOf(t),0,n)}function b(e,t,n,r){for(var i=e.length,a=-1;++a<i;)if(t[e[a][0]].apply(n,r))return!0;return!1}}),wx=V(e=>{e.isRemarkParser=t,e.isRemarkCompiler=n;function t(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function n(e){return!!(e&&e.prototype&&e.prototype.visitors)}}),Tx=V((e,t)=>{var n=wx();t.exports=d;var r=9,i=32,a=36,o=48,s=57,c=92,l=[`math`,`math-inline`],u=`math-display`;function d(e){let t=this.Parser,r=this.Compiler;n.isRemarkParser(t)&&f(t,e),n.isRemarkCompiler(r)&&p(r,e)}function f(e,t){let n=e.prototype,d=n.inlineMethods;p.locator=f,n.inlineTokenizers.math=p,d.splice(d.indexOf(`text`),0,`math`);function f(e,t){return e.indexOf(`$`,t)}function p(e,n,d){let f=n.length,p=!1,m=!1,h=0,g,_,v,y,b,x,S;if(n.charCodeAt(h)===c&&(m=!0,h++),n.charCodeAt(h)===a){if(h++,m)return d?!0:e(n.slice(0,h))({type:`text`,value:`$`});if(n.charCodeAt(h)===a&&(p=!0,h++),v=n.charCodeAt(h),!(v===i||v===r)){for(y=h;h<f;){if(_=v,v=n.charCodeAt(h+1),_===a){if(g=n.charCodeAt(h-1),g!==i&&g!==r&&(v!==v||v<o||v>s)&&(!p||v===a)){b=h-1,h++,p&&h++,x=h;break}}else _===c&&(h++,v=n.charCodeAt(h+1));h++}if(x!==void 0)return d?!0:(S=n.slice(y,b+1),e(n.slice(0,x))({type:`inlineMath`,value:S,data:{hName:`span`,hProperties:{className:l.concat(p&&t.inlineMathDouble?[u]:[])},hChildren:[{type:`text`,value:S}]}}))}}}}function p(e){let t=e.prototype;t.visitors.inlineMath=n;function n(e){let t=`$`;return(e.data&&e.data.hProperties&&e.data.hProperties.className||[]).includes(u)&&(t=`$$`),t+e.value+t}}}),Ex=V((e,t)=>{var n=wx();t.exports=u;var r=10,i=32,a=36,o=`
238
+ `,s=`$`,c=2,l=[`math`,`math-display`];function u(){let e=this.Parser,t=this.Compiler;n.isRemarkParser(e)&&d(e),n.isRemarkCompiler(t)&&f(t)}function d(e){let t=e.prototype,n=t.blockMethods,u=t.interruptParagraph,d=t.interruptList,f=t.interruptBlockquote;t.blockTokenizers.math=p,n.splice(n.indexOf(`fencedCode`)+1,0,`math`),u.splice(u.indexOf(`fencedCode`)+1,0,[`math`]),d.splice(d.indexOf(`fencedCode`)+1,0,[`math`]),f.splice(f.indexOf(`fencedCode`)+1,0,[`math`]);function p(e,t,n){var u=t.length,d=0;let f,p,m,h,g,_,v,y,b,x,S;for(;d<u&&t.charCodeAt(d)===i;)d++;for(g=d;d<u&&t.charCodeAt(d)===a;)d++;if(_=d-g,!(_<c)){for(;d<u&&t.charCodeAt(d)===i;)d++;for(v=d;d<u;){if(f=t.charCodeAt(d),f===a)return;if(f===r)break;d++}if(t.charCodeAt(d)===r){if(n)return!0;for(p=[],v!==d&&p.push(t.slice(v,d)),d++,m=t.indexOf(o,d+1),m=m===-1?u:m;d<u;){for(y=!1,x=d,S=m,h=m,b=0;h>x&&t.charCodeAt(h-1)===i;)h--;for(;h>x&&t.charCodeAt(h-1)===a;)b++,h--;for(_<=b&&t.indexOf(s,x)===h&&(y=!0,S=h);x<=S&&x-d<g&&t.charCodeAt(x)===i;)x++;if(y)for(;S>x&&t.charCodeAt(S-1)===i;)S--;if((!y||x!==S)&&p.push(t.slice(x,S)),y)break;d=m+1,m=t.indexOf(o,d+1),m=m===-1?u:m}return p=p.join(`
239
+ `),e(t.slice(0,m))({type:`math`,value:p,data:{hName:`div`,hProperties:{className:l.concat()},hChildren:[{type:`text`,value:p}]}})}}}}function f(e){let t=e.prototype;t.visitors.math=n;function n(e){return`$$
240
+ `+e.value+`
241
+ $$`}}}),Dx=V((e,t)=>{var n=Tx(),r=Ex();t.exports=i;function i(e){var t=e||{};r.call(this,t),n.call(this,t)}}),Ox=V((e,t)=>{t.exports=r;var n=Object.prototype.hasOwnProperty;function r(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e}}),kx=V((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}}),Ax=V((e,t)=>{var n=Ox(),r=kx();t.exports=i;function i(e){var t,i,a;for(i in r(s,e),r(o,s),t=s.prototype,t)a=t[i],a&&typeof a==`object`&&(t[i]=`concat`in a?a.concat():n(a));return s;function o(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new o(arguments)}}}),jx=V((e,t)=>{t.exports=n;function n(e,t,n){return r;function r(){var r=n||this,i=r[e];return r[e]=!t,a;function a(){r[e]=i}}}}),Mx=V((e,t)=>{t.exports=n;function n(e){for(var t=String(e),n=[],r=/\r?\n|\r/g;r.exec(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toPosition:i,toOffset:a};function i(e){var t=-1;if(e>-1&&e<n[n.length-1]){for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e}}return{}}function a(e){var t=e&&e.line,r=e&&e.column,i;return!isNaN(t)&&!isNaN(r)&&t-1 in n&&(i=(n[t-2]||0)+r-1||0),i>-1&&i<n[n.length-1]?i:-1}}}),Nx=V((e,t)=>{t.exports=r;var n=`\\`;function r(e,t){return r;function r(r){for(var i=0,a=r.indexOf(n),o=e[t],s=[],c;a!==-1;)s.push(r.slice(i,a)),i=a+1,c=r.charAt(i),(!c||o.indexOf(c)===-1)&&s.push(n),a=r.indexOf(n,i+1);return s.push(r.slice(i)),s.join(``)}}}),Px=V((e,t)=>{t.exports={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Acirc:`Â`,Agrave:`À`,Aring:`Å`,Atilde:`Ã`,Auml:`Ä`,COPY:`©`,Ccedil:`Ç`,ETH:`Ð`,Eacute:`É`,Ecirc:`Ê`,Egrave:`È`,Euml:`Ë`,GT:`>`,Iacute:`Í`,Icirc:`Î`,Igrave:`Ì`,Iuml:`Ï`,LT:`<`,Ntilde:`Ñ`,Oacute:`Ó`,Ocirc:`Ô`,Ograve:`Ò`,Oslash:`Ø`,Otilde:`Õ`,Ouml:`Ö`,QUOT:`"`,REG:`®`,THORN:`Þ`,Uacute:`Ú`,Ucirc:`Û`,Ugrave:`Ù`,Uuml:`Ü`,Yacute:`Ý`,aacute:`á`,acirc:`â`,acute:`´`,aelig:`æ`,agrave:`à`,amp:`&`,aring:`å`,atilde:`ã`,auml:`ä`,brvbar:`¦`,ccedil:`ç`,cedil:`¸`,cent:`¢`,copy:`©`,curren:`¤`,deg:`°`,divide:`÷`,eacute:`é`,ecirc:`ê`,egrave:`è`,eth:`ð`,euml:`ë`,frac12:`½`,frac14:`¼`,frac34:`¾`,gt:`>`,iacute:`í`,icirc:`î`,iexcl:`¡`,igrave:`ì`,iquest:`¿`,iuml:`ï`,laquo:`«`,lt:`<`,macr:`¯`,micro:`µ`,middot:`·`,nbsp:`\xA0`,not:`¬`,ntilde:`ñ`,oacute:`ó`,ocirc:`ô`,ograve:`ò`,ordf:`ª`,ordm:`º`,oslash:`ø`,otilde:`õ`,ouml:`ö`,para:`¶`,plusmn:`±`,pound:`£`,quot:`"`,raquo:`»`,reg:`®`,sect:`§`,shy:`­`,sup1:`¹`,sup2:`²`,sup3:`³`,szlig:`ß`,thorn:`þ`,times:`×`,uacute:`ú`,ucirc:`û`,ugrave:`ù`,uml:`¨`,uuml:`ü`,yacute:`ý`,yen:`¥`,yuml:`ÿ`}}),Fx=V((e,t)=>{t.exports={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`}}),Ix=V((e,t)=>{t.exports=n;function n(e){var t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}}),Lx=V((e,t)=>{t.exports=n;function n(e){var t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}}),Rx=V((e,t)=>{t.exports=n;function n(e){var t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}}),zx=V((e,t)=>{var n=Rx(),r=Ix();t.exports=i;function i(e){return n(e)||r(e)}}),Bx=V((e,t)=>{t.exports={AEli:`Æ`,AElig:`Æ`,AM:`&`,AMP:`&`,Aacut:`Á`,Aacute:`Á`,Abreve:`Ă`,Acir:`Â`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrav:`À`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,Arin:`Å`,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atild:`Ã`,Atilde:`Ã`,Aum:`Ä`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COP:`©`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedi:`Ç`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ET:`Ð`,ETH:`Ð`,Eacut:`É`,Eacute:`É`,Ecaron:`Ě`,Ecir:`Ê`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrav:`È`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Eum:`Ë`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,G:`>`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacut:`Í`,Iacute:`Í`,Icir:`Î`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrav:`Ì`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Ium:`Ï`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,L:`<`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
242
+ `,Nfr:`𝔑`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntild:`Ñ`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacut:`Ó`,Oacute:`Ó`,Ocir:`Ô`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograv:`Ò`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslas:`Ø`,Oslash:`Ø`,Otild:`Õ`,Otilde:`Õ`,Otimes:`⨷`,Oum:`Ö`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUO:`"`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,RE:`®`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THOR:`Þ`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:`  `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacut:`Ú`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucir:`Û`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrav:`Ù`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uum:`Ü`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacut:`Ý`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:`​`,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacut:`á`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acir:`â`,acirc:`â`,acut:`´`,acute:`´`,acy:`а`,aeli:`æ`,aelig:`æ`,af:`⁡`,afr:`𝔞`,agrav:`à`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,am:`&`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,arin:`å`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atild:`ã`,atilde:`ã`,aum:`ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvba:`¦`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedi:`ç`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedi:`¸`,cedil:`¸`,cemptyv:`⦲`,cen:`¢`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,cop:`©`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curre:`¤`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,de:`°`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divid:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacut:`é`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`ê`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrav:`è`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,et:`ð`,eth:`ð`,eum:`ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac1:`¼`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac3:`¾`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,g:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacut:`í`,iacute:`í`,ic:`⁣`,icir:`î`,icirc:`î`,icy:`и`,iecy:`е`,iexc:`¡`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrav:`ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iques:`¿`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,itilde:`ĩ`,iukcy:`і`,ium:`ï`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laqu:`«`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,l:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,mac:`¯`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micr:`µ`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middo:`·`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbs:`\xA0`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,no:`¬`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntild:`ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacut:`ó`,oacute:`ó`,oast:`⊛`,ocir:`ô`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograv:`ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`º`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslas:`ø`,oslash:`ø`,osol:`⊘`,otild:`õ`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,oum:`ö`,ouml:`ö`,ovbar:`⌽`,par:`¶`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusm:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,poun:`£`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quo:`"`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raqu:`»`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,re:`®`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sec:`§`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,sh:`­`,shy:`­`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup:`⊃`,sup1:`¹`,sup2:`²`,sup3:`³`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szli:`ß`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thor:`þ`,thorn:`þ`,tilde:`˜`,time:`×`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacut:`ú`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucir:`û`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrav:`ù`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,um:`¨`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uum:`ü`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacut:`ý`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,ye:`¥`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yum:`ÿ`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`}}),Vx=V((e,t)=>{var n=Bx();t.exports=i;var r={}.hasOwnProperty;function i(e){return r.call(n,e)?n[e]:!1}}),Hx=V((e,t)=>{var n=Px(),r=Fx(),i=Ix(),a=Lx(),o=zx(),s=Vx();t.exports=M;var c={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,p=10,m=12,h=32,g=38,_=59,v=60,y=61,b=35,x=88,S=120,C=65533,w=`named`,T=`hexadecimal`,E=`decimal`,D={};D[T]=16,D[E]=10;var O={};O[w]=o,O[E]=i,O[T]=a;var ee=1,k=2,te=3,A=4,ne=5,re=6,ie=7,j={};j[ee]=`Named character references must be terminated by a semicolon`,j[k]=`Numeric character references must be terminated by a semicolon`,j[te]=`Named character references cannot be empty`,j[A]=`Numeric character references cannot be empty`,j[ne]=`Named character references must be known`,j[re]=`Numeric character references cannot be disallowed`,j[ie]=`Numeric character references cannot be outside the permissible Unicode range`;function M(e,t){var n={},r,i;for(i in t||={},d)r=t[i],n[i]=r??d[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),ae(e,n)}function ae(e,t){var i=t.additional,a=t.nonTerminated,d=t.text,M=t.reference,ae=t.warning,ce=t.textContext,le=t.referenceContext,ue=t.warningContext,de=t.position,fe=t.indent||[],pe=e.length,me=0,he=-1,ge=de.column||1,_e=de.line||1,ve=``,ye=[],be,xe,Se,Ce,N,we,Te,P,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie;for(typeof i==`string`&&(i=i.charCodeAt(0)),Ne=Le(),P=ae?Re:u,me--,pe++;++me<pe;)if(N===p&&(ge=fe[he]||1),N=e.charCodeAt(me),N===g){if(Te=e.charCodeAt(me+1),Te===f||Te===p||Te===m||Te===h||Te===g||Te===v||Te!==Te||i&&Te===i){ve+=l(N),ge++;continue}for(Ae=me+1,ke=Ae,Ie=Ae,Te===b?(Ie=++ke,Te=e.charCodeAt(Ie),Te===x||Te===S?(je=T,Ie=++ke):je=E):je=w,be=``,Oe=``,Ce=``,Me=O[je],Ie--;++Ie<pe&&(Te=e.charCodeAt(Ie),Me(Te));)Ce+=l(Te),je===w&&c.call(n,Ce)&&(be=Ce,Oe=n[Ce]);Se=e.charCodeAt(Ie)===_,Se&&(Ie++,xe=je===w?s(Ce):!1,xe&&(be=Ce,Oe=xe)),Fe=1+Ie-Ae,!Se&&!a||(Ce?je===w?(Se&&!Oe?P(ne,1):(be!==Ce&&(Ie=ke+be.length,Fe=1+Ie-ke,Se=!1),Se||(Ee=be?ee:te,t.attribute?(Te=e.charCodeAt(Ie),Te===y?(P(Ee,Fe),Oe=null):o(Te)?Oe=null:P(Ee,Fe)):P(Ee,Fe))),we=Oe):(Se||P(k,Fe),we=parseInt(Ce,D[je]),oe(we)?(P(ie,Fe),we=l(C)):we in r?(P(re,Fe),we=r[we]):(De=``,se(we)&&P(re,Fe),we>65535&&(we-=65536,De+=l(we>>>10|55296),we=56320|we&1023),we=De+l(we))):je!==w&&P(A,Fe)),we?(ze(),Ne=Le(),me=Ie-1,ge+=Ie-Ae+1,ye.push(we),Pe=Le(),Pe.offset++,M&&M.call(le,we,{start:Ne,end:Pe},e.slice(Ae-1,Ie)),Ne=Pe):(Ce=e.slice(Ae-1,Ie),ve+=Ce,ge+=Ce.length,me=Ie-1)}else N===10&&(_e++,he++,ge=0),N===N?(ve+=l(N),ge++):ze();return ye.join(``);function Le(){return{line:_e,column:ge,offset:me+(de.offset||0)}}function Re(e,t){var n=Le();n.column+=t,n.offset+=t,ae.call(ue,j[e],n,e)}function ze(){ve&&=(ye.push(ve),d&&d.call(ce,ve,{start:Ne,end:Le()}),``)}}function oe(e){return e>=55296&&e<=57343||e>1114111}function se(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}}),Ux=V((e,t)=>{var n=Ox(),r=Hx();t.exports=i;function i(e){return i.raw=a,i;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function i(n,i,a){r(n,{position:t(i),warning:o,text:a,reference:a,textContext:e,referenceContext:e})}function a(e,i,a){return r(e,n(a,{position:t(i),warning:o}))}function o(t,n,r){r!==3&&e.file.message(t,n)}}}),Wx=V((e,t)=>{t.exports=n;function n(e){return t;function t(t,n){var o=this,s=o.offset,c=[],l=o[e+`Methods`],u=o[e+`Tokenizers`],d=n.line,f=n.column,p,m,h,g,_,v;if(!t)return c;for(E.now=x,E.file=o.file,y(``);t;){for(p=-1,m=l.length,_=!1;++p<m&&(g=l[p],h=u[g],!(h&&(!h.onlyAtStart||o.atStart)&&(!h.notInList||!o.inList)&&(!h.notInBlock||!o.inBlock)&&(!h.notInLink||!o.inLink)&&(v=t.length,h.apply(o,[E,t]),_=v!==t.length,_))););_||o.file.fail(Error(`Infinite loop`),E.now())}return o.eof=x(),c;function y(e){for(var t=-1,n=e.indexOf(`
243
+ `);n!==-1;)d++,t=n,n=e.indexOf(`
244
+ `,n+1);t===-1?f+=e.length:f=e.length-t,d in s&&(t===-1?f<=s[d]&&(f=s[d]+1):f+=s[d])}function b(){var e=[],t=d+1;return function(){for(var n=d+1;t<n;)e.push((s[t]||0)+1),t++;return e}}function x(){var e={line:d,column:f};return e.offset=o.toOffset(e),e}function S(e){this.start=e,this.end=x()}function C(e){t.slice(0,e.length)!==e&&o.file.fail(Error(`Incorrectly eaten value: please report this warning on https://git.io/vg5Ft`),x())}function w(){var e=x();return t;function t(t,n){var r=t.position,i=r?r.start:e,a=[],o=r&&r.end.line,c=e.line;if(t.position=new S(i),r&&n&&r.indent){if(a=r.indent,o<c){for(;++o<c;)a.push((s[o]||0)+1);a.push(e.column)}n=a.concat(n)}return t.position.indent=n||[],t}}function T(e,t){var n=t?t.children:c,s=n[n.length-1],l;return s&&e.type===s.type&&(e.type===`text`||e.type===`blockquote`)&&r(s)&&r(e)&&(l=e.type===`text`?i:a,e=l.call(o,s,e)),e!==s&&n.push(e),o.atStart&&c.length!==0&&o.exitStart(),e}function E(e){var n=b(),r=w(),i=x();return C(e),a.reset=o,o.test=s,a.test=s,t=t.slice(e.length),y(e),n=n(),a;function a(e,t){return r(T(r(e),t),n)}function o(){var n=a.apply(null,arguments);return d=i.line,f=i.column,t=e+t,n}function s(){var n=r({});return d=i.line,f=i.column,t=e+t,n.position}}}}function r(e){var t,n;return e.type!==`text`||!e.position?!0:(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function i(e,t){return e.value+=t.value,e}function a(e,t){return this.options.commonmark||this.options.gfm?t:(e.children=e.children.concat(t.children),e)}}),Gx=V((e,t)=>{t.exports=a;var n=[`\\`,"`",`*`,`{`,`}`,`[`,`]`,`(`,`)`,`#`,`+`,`-`,`.`,`!`,`_`,`>`],r=n.concat([`~`,`|`]),i=r.concat([`
245
+ `,`"`,`$`,`%`,`&`,`'`,`,`,`/`,`:`,`;`,`<`,`=`,`?`,`@`,`^`]);a.default=n,a.gfm=r,a.commonmark=i;function a(e){var t=e||{};return t.commonmark?i:t.gfm?r:n}}),Kx=V((e,t)=>{t.exports=`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.hgroup.hr.html.iframe.legend.li.link.main.menu.menuitem.meta.nav.noframes.ol.optgroup.option.p.param.pre.section.source.title.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)}),qx=V((e,t)=>{t.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Kx()}}),Jx=V((e,t)=>{var n=Ox(),r=Gx(),i=qx();t.exports=a;function a(e){var t=this,a=t.options,o,s;if(e==null)e={};else if(typeof e==`object`)e=n(e);else throw Error("Invalid value `"+e+"` for setting `options`");for(o in i){if(s=e[o],s??=a[o],o!==`blocks`&&typeof s!=`boolean`||o===`blocks`&&typeof s!=`object`)throw Error("Invalid value `"+s+"` for setting `options."+o+"`");e[o]=s}return t.options=e,t.escape=r(e),t}}),Yx=V((e,t)=>{t.exports=n;function n(e){if(e==null)return o;if(typeof e==`string`)return a(e);if(typeof e==`object`)return`length`in e?i(e):r(e);if(typeof e==`function`)return e;throw Error(`Expected function, string, or object as test`)}function r(e){return t;function t(t){for(var n in e)if(t[n]!==e[n])return!1;return!0}}function i(e){for(var t=[],r=-1;++r<e.length;)t[r]=n(e[r]);return i;function i(){for(var e=-1;++e<t.length;)if(t[e].apply(this,arguments))return!0;return!1}}function a(e){return t;function t(t){return!!(t&&t.type===e)}}function o(){return!0}}),Xx=V((e,t)=>{t.exports=n;function n(e){return e}}),Zx=V((e,t)=>{t.exports=s;var n=Yx(),r=Xx(),i=!0,a=`skip`,o=!1;s.CONTINUE=i,s.SKIP=a,s.EXIT=o;function s(e,t,i,s){var l,u;typeof t==`function`&&typeof i!=`function`&&(s=i,i=t,t=null),u=n(t),l=s?-1:1,d(e,null,[])();function d(e,n,f){var p=typeof e==`object`&&e?e:{},m;return typeof p.type==`string`&&(m=typeof p.tagName==`string`?p.tagName:typeof p.name==`string`?p.name:void 0,h.displayName=`node (`+r(p.type+(m?`<`+m+`>`:``))+`)`),h;function h(){var r=f.concat(e),p=[],m,h;if((!t||u(e,n,f[f.length-1]||null))&&(p=c(i(e,f)),p[0]===o))return p;if(e.children&&p[0]!==a)for(h=(s?e.children.length:-1)+l;h>-1&&h<e.children.length;){if(m=d(e.children[h],h,r)(),m[0]===o)return m;h=typeof m[1]==`number`?m[1]:h+l}return p}}}function c(e){return typeof e==`object`&&e&&`length`in e?e:typeof e==`number`?[i,e]:[e]}}),Qx=V((e,t)=>{t.exports=o;var n=Zx(),r=n.CONTINUE,i=n.SKIP,a=n.EXIT;o.CONTINUE=r,o.SKIP=i,o.EXIT=a;function o(e,t,r,i){typeof t==`function`&&typeof r!=`function`&&(i=r,r=t,t=null),n(e,t,a,i);function a(e,t){var n=t[t.length-1],i=n?n.children.indexOf(e):null;return r(e,i,n)}}}),$x=V((e,t)=>{var n=Qx();t.exports=r;function r(e,t){return n(e,t?i:a),e}function i(e){delete e.position}function a(e){e.position=void 0}}),eS=V((e,t)=>{var n=Ox(),r=$x();t.exports=o;var i=`
246
+ `,a=/\r\n|\r/g;function o(){var e=this,t=String(e.file),o={line:1,column:1,offset:0},s=n(o),c;return t=t.replace(a,i),t.charCodeAt(0)===65279&&(t=t.slice(1),s.column++,s.offset++),c={type:`root`,children:e.tokenizeBlock(t,s),position:{start:o,end:e.eof||n(o)}},e.options.position||r(c,!0),c}}),tS=V((e,t)=>{var n=/^[ \t]*(\n|$)/;t.exports=r;function r(e,t,r){for(var i,a=``,o=0,s=t.length;o<s&&(i=n.exec(t.slice(o)),i!=null);)o+=i[0].length,a+=i[0];if(a!==``){if(r)return!0;e(a)}}}),nS=V((e,t)=>{var n=``,r;t.exports=i;function i(e,t){if(typeof e!=`string`)throw TypeError(`expected a string`);if(t===1)return e;if(t===2)return e+e;var i=e.length*t;if(r!==e||typeof r>`u`)r=e,n=``;else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+=e,n=n.substr(0,i),n}}),rS=V((e,t)=>{t.exports=n;function n(e){return String(e).replace(/\n+$/,``)}}),iS=V((e,t)=>{var n=nS(),r=rS();t.exports=c;var i=`
247
+ `,a=` `,o=` `,s=n(o,4);function c(e,t,n){for(var c=-1,l=t.length,u=``,d=``,f=``,p=``,m,h,g;++c<l;)if(m=t.charAt(c),g)if(g=!1,u+=f,d+=p,f=``,p=``,m===i)f=m,p=m;else for(u+=m,d+=m;++c<l;){if(m=t.charAt(c),!m||m===i){p=m,f=m;break}u+=m,d+=m}else if(m===o&&t.charAt(c+1)===m&&t.charAt(c+2)===m&&t.charAt(c+3)===m)f+=s,c+=3,g=!0;else if(m===a)f+=m,g=!0;else{for(h=``;m===a||m===o;)h+=m,m=t.charAt(++c);if(m!==i)break;f+=h+m,p+=m}if(d)return n?!0:e(u)({type:`code`,lang:null,meta:null,value:r(d)})}}),aS=V((e,t)=>{t.exports=l;var n=`
248
+ `,r=` `,i=` `,a=`~`,o="`",s=3,c=4;function l(e,t,l){var u=this,d=u.options.gfm,f=t.length+1,p=0,m=``,h,g,_,v,y,b,x,S,C,w,T,E,D;if(d){for(;p<f&&(_=t.charAt(p),!(_!==i&&_!==r));)m+=_,p++;if(E=p,_=t.charAt(p),!(_!==a&&_!==o)){for(p++,g=_,h=1,m+=_;p<f&&(_=t.charAt(p),_===g);)m+=_,h++,p++;if(!(h<s)){for(;p<f&&(_=t.charAt(p),!(_!==i&&_!==r));)m+=_,p++;for(v=``,x=``;p<f&&(_=t.charAt(p),!(_===n||g===o&&_===g));)_===i||_===r?x+=_:(v+=x+_,x=``),p++;if(_=t.charAt(p),!(_&&_!==n)){if(l)return!0;D=e.now(),D.column+=m.length,D.offset+=m.length,m+=v,v=u.decode.raw(u.unescape(v),D),x&&(m+=x),x=``,w=``,T=``,S=``,C=``;for(var O=!0;p<f;){if(_=t.charAt(p),S+=w,C+=T,w=``,T=``,_!==n){S+=_,T+=_,p++;continue}for(O?(m+=_,O=!1):(w+=_,T+=_),x=``,p++;p<f&&(_=t.charAt(p),_===i);)x+=_,p++;if(w+=x,T+=x.slice(E),!(x.length>=c)){for(x=``;p<f&&(_=t.charAt(p),_===g);)x+=_,p++;if(w+=x,T+=x,!(x.length<h)){for(x=``;p<f&&(_=t.charAt(p),!(_!==i&&_!==r));)w+=_,T+=_,p++;if(!_||_===n)break}}}for(m+=S+w,p=-1,f=v.length;++p<f;)if(_=v.charAt(p),_===i||_===r)y||=v.slice(0,p);else if(y){b=v.slice(p);break}return e(m)({type:`code`,lang:y||v||null,meta:b||null,value:C})}}}}}}),oS=V((e,t)=>{e=t.exports=n;function n(t){return t.trim?t.trim():e.right(e.left(t))}e.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,``)},e.right=function(e){if(e.trimRight)return e.trimRight();for(var t=/\s/,n=e.length;t.test(e.charAt(--n)););return e.slice(0,n+1)}}),sS=V((e,t)=>{t.exports=n;function n(e,t,n,r){for(var i=e.length,a=-1,o,s;++a<i;)if(o=e[a],s=o[1]||{},!(s.pedantic!==void 0&&s.pedantic!==n.options.pedantic)&&!(s.commonmark!==void 0&&s.commonmark!==n.options.commonmark)&&t[o[0]].apply(n,r))return!0;return!1}}),cS=V((e,t)=>{var n=oS(),r=sS();t.exports=c;var i=`
249
+ `,a=` `,o=` `,s=`>`;function c(e,t,c){for(var l=this,u=l.offset,d=l.blockTokenizers,f=l.interruptBlockquote,p=e.now(),m=p.line,h=t.length,g=[],_=[],v=[],y,b=0,x,S,C,w,T,E,D,O;b<h&&(x=t.charAt(b),!(x!==o&&x!==a));)b++;if(t.charAt(b)===s){if(c)return!0;for(b=0;b<h;){for(C=t.indexOf(i,b),E=b,D=!1,C===-1&&(C=h);b<h&&(x=t.charAt(b),!(x!==o&&x!==a));)b++;if(t.charAt(b)===s?(b++,D=!0,t.charAt(b)===o&&b++):b=E,w=t.slice(b,C),!D&&!n(w)){b=E;break}if(!D&&(S=t.slice(b),r(f,d,l,[e,S,!0])))break;T=E===b?w:t.slice(E,C),v.push(b-E),g.push(T),_.push(w),b=C+1}for(b=-1,h=v.length,y=e(g.join(i));++b<h;)u[m]=(u[m]||0)+v[b],m++;return O=l.enterBlock(),_=l.tokenizeBlock(_.join(i),p),O(),y({type:`blockquote`,children:_})}}}),lS=V((e,t)=>{t.exports=s;var n=`
250
+ `,r=` `,i=` `,a=`#`,o=6;function s(e,t,s){for(var c=this,l=c.options.pedantic,u=t.length+1,d=-1,f=e.now(),p=``,m=``,h,g,_;++d<u;){if(h=t.charAt(d),h!==i&&h!==r){d--;break}p+=h}for(_=0;++d<=u;){if(h=t.charAt(d),h!==a){d--;break}p+=h,_++}if(!(_>o)&&!(!_||!l&&t.charAt(d+1)===a)){for(u=t.length+1,g=``;++d<u;){if(h=t.charAt(d),h!==i&&h!==r){d--;break}g+=h}if(!(!l&&g.length===0&&h&&h!==n)){if(s)return!0;for(p+=g,g=``,m=``;++d<u&&(h=t.charAt(d),!(!h||h===n));){if(h!==i&&h!==r&&h!==a){m+=g+h,g=``;continue}for(;h===i||h===r;)g+=h,h=t.charAt(++d);if(!l&&m&&!g&&h===a){m+=h;continue}for(;h===a;)g+=h,h=t.charAt(++d);for(;h===i||h===r;)g+=h,h=t.charAt(++d);d--}return f.column+=p.length,f.offset+=p.length,p+=m+g,e(p)({type:`heading`,depth:_,children:c.tokenizeInline(m,f)})}}}}),uS=V((e,t)=>{t.exports=l;var n=` `,r=`
251
+ `,i=` `,a=`*`,o=`-`,s=`_`,c=3;function l(e,t,l){for(var u=-1,d=t.length+1,f=``,p,m,h,g;++u<d&&(p=t.charAt(u),!(p!==n&&p!==i));)f+=p;if(!(p!==a&&p!==o&&p!==s))for(m=p,f+=p,h=1,g=``;++u<d;)if(p=t.charAt(u),p===m)h++,f+=g+m,g=``;else if(p===i)g+=p;else return h>=c&&(!p||p===r)?(f+=g,l?!0:e(f)({type:`thematicBreak`})):void 0}}),dS=V((e,t)=>{t.exports=o;var n=` `,r=` `,i=1,a=4;function o(e){for(var t=0,o=0,s=e.charAt(t),c={},l,u=0;s===n||s===r;){for(l=s===n?a:i,o+=l,l>1&&(o=Math.floor(o/l)*l);u<o;)c[++u]=t;s=e.charAt(++t)}return{indent:o,stops:c}}}),fS=V((e,t)=>{var n=oS(),r=nS(),i=dS();t.exports=c;var a=`
252
+ `,o=` `,s=`!`;function c(e,t){var c=e.split(a),l=c.length+1,u=1/0,d=[],f,p,m;for(c.unshift(r(o,t)+s);l--;)if(p=i(c[l]),d[l]=p.stops,n(c[l]).length!==0)if(p.indent)p.indent>0&&p.indent<u&&(u=p.indent);else{u=1/0;break}if(u!==1/0)for(l=c.length;l--;){for(m=d[l],f=u;f&&!(f in m);)f--;c[l]=c[l].slice(m[f]+1)}return c.shift(),c.join(a)}}),pS=V((e,t)=>{var n=oS(),r=nS(),i=Ix(),a=dS(),o=fS(),s=sS();t.exports=w;var c=`*`,l=`_`,u=`+`,d=`-`,f=`.`,p=` `,m=`
253
+ `,h=` `,g=`)`,_=`x`,v=4,y=/\n\n(?!\s*$)/,b=/^\[([ X\tx])][ \t]/,x=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,S=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,C=/^( {1,4}|\t)?/gm;function w(e,t,r){for(var a=this,o=a.options.commonmark,_=a.options.pedantic,y=a.blockTokenizers,b=a.interruptList,x=0,S=t.length,C=null,w,E,D,O,ee,k,te,A,ne,re,ie,j,M,ae,oe,se,ce,le,ue,de=!1,fe,pe,me,he;x<S&&(O=t.charAt(x),!(O!==h&&O!==p));)x++;if(O=t.charAt(x),O===c||O===u||O===d)ee=O,D=!1;else{for(D=!0,E=``;x<S&&(O=t.charAt(x),i(O));)E+=O,x++;if(O=t.charAt(x),!E||!(O===f||o&&O===g)||r&&E!==`1`)return;C=parseInt(E,10),ee=O}if(O=t.charAt(++x),!(O!==p&&O!==h&&(_||O!==m&&O!==``))){if(r)return!0;for(x=0,ae=[],oe=[],se=[];x<S;){for(k=t.indexOf(m,x),te=x,A=!1,he=!1,k===-1&&(k=S),w=0;x<S;){if(O=t.charAt(x),O===h)w+=v-w%v;else if(O===p)w++;else break;x++}if(ce&&w>=ce.indent&&(he=!0),O=t.charAt(x),ne=null,!he){if(O===c||O===u||O===d)ne=O,x++,w++;else{for(E=``;x<S&&(O=t.charAt(x),i(O));)E+=O,x++;O=t.charAt(x),x++,E&&(O===f||o&&O===g)&&(ne=O,w+=E.length+1)}if(ne)if(O=t.charAt(x),O===h)w+=v-w%v,x++;else if(O===p){for(me=x+v;x<me&&t.charAt(x)===p;)x++,w++;x===me&&t.charAt(x)===p&&(x-=v-1,w-=v-1)}else O!==m&&O!==``&&(ne=null)}if(ne){if(!_&&ee!==ne)break;A=!0}else !o&&!he&&t.charAt(te)===p?he=!0:o&&ce&&(he=w>=ce.indent||w>v),A=!1,x=te;if(ie=t.slice(te,k),re=te===x?ie:t.slice(x,k),(ne===c||ne===l||ne===d)&&y.thematicBreak.call(a,e,ie,!0))break;if(j=M,M=!A&&!n(re).length,he&&ce)ce.value=ce.value.concat(se,ie),oe=oe.concat(se,ie),se=[];else if(A)se.length!==0&&(de=!0,ce.value.push(``),ce.trail=se.concat()),ce={value:[ie],indent:w,trail:[]},ae.push(ce),oe=oe.concat(se,ie),se=[];else if(M){if(j&&!o)break;se.push(ie)}else{if(j||s(b,y,a,[e,ie,!0]))break;ce.value=ce.value.concat(se,ie),oe=oe.concat(se,ie),se=[]}x=k+1}for(fe=e(oe.join(m)).reset({type:`list`,ordered:D,start:C,spread:de,children:[]}),le=a.enterList(),ue=a.enterBlock(),x=-1,S=ae.length;++x<S;)ce=ae[x].value.join(m),pe=e.now(),e(ce)(T(a,ce,pe),fe),ce=ae[x].trail.join(m),x!==S-1&&(ce+=m),e(ce);return le(),ue(),fe}}function T(e,t,n){var r=e.offset,i=e.options.pedantic?E:D,a=null,o,s;return t=i.apply(null,arguments),e.options.gfm&&(o=t.match(b),o&&(s=o[0].length,a=o[1].toLowerCase()===_,r[n.line]+=s,t=t.slice(s))),{type:`listItem`,spread:y.test(t),checked:a,children:e.tokenizeBlock(t,n)}}function E(e,t,n){var r=e.offset,i=n.line;return t=t.replace(S,a),i=n.line,t.replace(C,a);function a(e){return r[i]=(r[i]||0)+e.length,i++,``}}function D(e,t,n){var i=e.offset,s=n.line,c,l,u,d,f,h,g;for(t=t.replace(x,_),d=t.split(m),f=o(t,a(c).indent).split(m),f[0]=u,i[s]=(i[s]||0)+l.length,s++,h=0,g=d.length;++h<g;)i[s]=(i[s]||0)+d[h].length-f[h].length,s++;return f.join(m);function _(e,t,n,i,a){return l=t+n+i,u=a,Number(n)<10&&l.length%2==1&&(n=p+n),c=t+r(p,n.length)+i,c+u}}}),mS=V((e,t)=>{t.exports=u;var n=`
254
+ `,r=` `,i=` `,a=`=`,o=`-`,s=3,c=1,l=2;function u(e,t,u){for(var d=this,f=e.now(),p=t.length,m=-1,h=``,g,_,v,y,b;++m<p;){if(v=t.charAt(m),v!==i||m>=s){m--;break}h+=v}for(g=``,_=``;++m<p;){if(v=t.charAt(m),v===n){m--;break}v===i||v===r?_+=v:(g+=_+v,_=``)}if(f.column+=h.length,f.offset+=h.length,h+=g+_,v=t.charAt(++m),y=t.charAt(++m),!(v!==n||y!==a&&y!==o)){for(h+=v,_=y,b=y===a?c:l;++m<p;){if(v=t.charAt(m),v!==y){if(v!==n)return;m--;break}_+=v}return u?!0:e(h+_)({type:`heading`,depth:b,children:d.tokenizeInline(g,f)})}}}),hS=V(e=>{var t=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\u0000-\\u0020]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,n=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`;e.openCloseTag=RegExp(`^(?:`+t+`|`+n+`)`),e.tag=RegExp(`^(?:`+t+`|`+n+`|<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`)}),gS=V((e,t)=>{var n=hS().openCloseTag;t.exports=y;var r=` `,i=` `,a=`
255
+ `,o=`<`,s=/^<(script|pre|style)(?=(\s|>|$))/i,c=/<\/(script|pre|style)>/i,l=/^<!--/,u=/-->/,d=/^<\?/,f=/\?>/,p=/^<![A-Za-z]/,m=/>/,h=/^<!\[CDATA\[/,g=/]]>/,_=/^$/,v=RegExp(n.source+`\\s*$`);function y(e,t,n){for(var y=this.options.blocks.join(`|`),b=RegExp(`^</?(`+y+`)(?=(\\s|/?>|$))`,`i`),x=t.length,S=0,C,w,T,E,D,O,ee,k=[[s,c,!0],[l,u,!0],[d,f,!0],[p,m,!0],[h,g,!0],[b,_,!0],[v,_,!1]];S<x&&(E=t.charAt(S),!(E!==r&&E!==i));)S++;if(t.charAt(S)===o){for(C=t.indexOf(a,S+1),C=C===-1?x:C,w=t.slice(S,C),T=-1,D=k.length;++T<D;)if(k[T][0].test(w)){O=k[T];break}if(O){if(n)return O[2];if(S=C,!O[1].test(w))for(;S<x;){if(C=t.indexOf(a,S+1),C=C===-1?x:C,w=t.slice(S+1,C),O[1].test(w)){w&&(S=C);break}S=C}return ee=t.slice(0,S),e(ee)({type:`html`,value:ee})}}}}),_S=V((e,t)=>{t.exports=i;var n=String.fromCharCode,r=/\s/;function i(e){return r.test(typeof e==`number`?n(e):e.charAt(0))}}),vS=V((e,t)=>{var n=Sx();t.exports=r;function r(e){return n(e).toLowerCase()}}),yS=V((e,t)=>{var n=_S(),r=vS();t.exports=_;var i=`"`,a=`'`,o=`\\`,s=`
256
+ `,c=` `,l=` `,u=`[`,d=`]`,f=`(`,p=`)`,m=`:`,h=`<`,g=`>`;function _(e,t,n){for(var g=this,_=g.options.commonmark,b=0,x=t.length,S=``,C,w,T,E,D,O,ee,k;b<x&&(E=t.charAt(b),!(E!==l&&E!==c));)S+=E,b++;if(E=t.charAt(b),E===u){for(b++,S+=E,T=``;b<x&&(E=t.charAt(b),E!==d);)E===o&&(T+=E,b++,E=t.charAt(b)),T+=E,b++;if(!(!T||t.charAt(b)!==d||t.charAt(b+1)!==m)){for(O=T,S+=T+d+m,b=S.length,T=``;b<x&&(E=t.charAt(b),!(E!==c&&E!==l&&E!==s));)S+=E,b++;if(E=t.charAt(b),T=``,C=S,E===h){for(b++;b<x&&(E=t.charAt(b),v(E));)T+=E,b++;if(E=t.charAt(b),E===v.delimiter)S+=h+T+E,b++;else{if(_)return;b-=T.length+1,T=``}}if(!T){for(;b<x&&(E=t.charAt(b),y(E));)T+=E,b++;S+=T}if(T){for(ee=T,T=``;b<x&&(E=t.charAt(b),!(E!==c&&E!==l&&E!==s));)T+=E,b++;if(E=t.charAt(b),D=null,E===i?D=i:E===a?D=a:E===f&&(D=p),!D)T=``,b=S.length;else if(T){for(S+=T+E,b=S.length,T=``;b<x&&(E=t.charAt(b),E!==D);){if(E===s){if(b++,E=t.charAt(b),E===s||E===D)return;T+=s}T+=E,b++}if(E=t.charAt(b),E!==D)return;w=S,S+=T+E,b++,k=T,T=``}else return;for(;b<x&&(E=t.charAt(b),!(E!==c&&E!==l));)S+=E,b++;if(E=t.charAt(b),!E||E===s)return n?!0:(C=e(C).test().end,ee=g.decode.raw(g.unescape(ee),C,{nonTerminated:!1}),k&&=(w=e(w).test().end,g.decode.raw(g.unescape(k),w)),e(S)({type:`definition`,identifier:r(O),label:O,title:k||null,url:ee}))}}}}function v(e){return e!==g&&e!==u&&e!==d}v.delimiter=g;function y(e){return e!==u&&e!==d&&!n(e)}}),bS=V((e,t)=>{var n=_S();t.exports=h;var r=` `,i=`
257
+ `,a=` `,o=`-`,s=`:`,c=`\\`,l=`|`,u=1,d=2,f=`left`,p=`center`,m=`right`;function h(e,t,h){var g=this,_,v,y,b,x,S,C,w,T,E,D,O,ee,k,te,A,ne,re,ie,j,M,ae;if(g.options.gfm){for(_=0,A=0,S=t.length+1,C=[];_<S;){if(j=t.indexOf(i,_),M=t.indexOf(l,_+1),j===-1&&(j=t.length),M===-1||M>j){if(A<d)return;break}C.push(t.slice(_,j)),A++,_=j+1}for(b=C.join(i),v=C.splice(1,1)[0]||[],_=0,S=v.length,A--,y=!1,D=[];_<S;){if(T=v.charAt(_),T===l){if(E=null,y===!1){if(ae===!1)return}else D.push(y),y=!1;ae=!1}else if(T===o)E=!0,y||=null;else if(T===s)y=y===f?p:E&&y===null?m:f;else if(!n(T))return;_++}if(y!==!1&&D.push(y),!(D.length<u)){if(h)return!0;for(te=-1,re=[],ie=e(b).reset({type:`table`,align:D,children:re});++te<A;){for(ne=C[te],x={type:`tableRow`,children:[]},te&&e(i),e(ne).reset(x,ie),S=ne.length+1,_=0,w=``,O=``,ee=!0;_<S;){if(T=ne.charAt(_),T===r||T===a){O?w+=T:e(T),_++;continue}T===``||T===l?ee?e(T):((O||T)&&!ee&&(b=O,w.length>1&&(T?(b+=w.slice(0,-1),w=w.charAt(w.length-1)):(b+=w,w=``)),k=e.now(),e(b)({type:`tableCell`,children:g.tokenizeInline(O,k)},x)),e(w+T),w=``,O=``):(w&&=(O+=w,``),O+=T,T===c&&_!==S-2&&(O+=ne.charAt(_+1),_++)),ee=!1,_++}te||e(i+v)}return ie}}}}),xS=V((e,t)=>{var n=oS(),r=rS(),i=sS();t.exports=l;var a=` `,o=`
258
+ `,s=` `,c=4;function l(e,t,l){for(var u=this,d=u.options.commonmark,f=u.blockTokenizers,p=u.interruptParagraph,m=t.indexOf(o),h=t.length,g,_,v,y,b;m<h;){if(m===-1){m=h;break}if(t.charAt(m+1)===o)break;if(d){for(y=0,g=m+1;g<h;){if(v=t.charAt(g),v===a){y=c;break}else if(v===s)y++;else break;g++}if(y>=c&&v!==o){m=t.indexOf(o,m+1);continue}}if(_=t.slice(m+1),i(p,f,u,[e,_,!0]))break;if(g=m,m=t.indexOf(o,m+1),m!==-1&&n(t.slice(g,m))===``){m=g;break}}return _=t.slice(0,m),l?!0:(b=e.now(),_=r(_),e(_)({type:`paragraph`,children:u.tokenizeInline(_,b)}))}}),SS=V((e,t)=>{t.exports=n;function n(e,t){return e.indexOf(`\\`,t)}}),CS=V((e,t)=>{var n=SS();t.exports=a,a.locator=n;var r=`
259
+ `,i=`\\`;function a(e,t,n){var a=this,o,s;if(t.charAt(0)===i&&(o=t.charAt(1),a.escape.indexOf(o)!==-1))return n?!0:(s=o===r?{type:`break`}:{type:`text`,value:o},e(i+o)(s))}}),wS=V((e,t)=>{t.exports=n;function n(e,t){return e.indexOf(`<`,t)}}),TS=V((e,t)=>{var n=_S(),r=Hx(),i=wS();t.exports=d,d.locator=i,d.notInLink=!0;var a=`<`,o=`>`,s=`@`,c=`/`,l=`mailto:`,u=l.length;function d(e,t,i){var d=this,f=``,p=t.length,m=0,h=``,g=!1,_=``,v,y,b,x,S;if(t.charAt(0)===a){for(m++,f=a;m<p&&(v=t.charAt(m),!(n(v)||v===o||v===s||v===`:`&&t.charAt(m+1)===c));)h+=v,m++;if(h){if(_+=h,h=``,v=t.charAt(m),_+=v,m++,v===s)g=!0;else{if(v!==`:`||t.charAt(m+1)!==c)return;_+=c,m++}for(;m<p&&(v=t.charAt(m),!(n(v)||v===o));)h+=v,m++;if(v=t.charAt(m),!(!h||v!==o))return i?!0:(_+=h,b=_,f+=_+v,y=e.now(),y.column++,y.offset++,g&&(_.slice(0,u).toLowerCase()===l?(b=b.slice(u),y.column+=u,y.offset+=u):_=l+_),x=d.inlineTokenizers,d.inlineTokenizers={text:x.text},S=d.enterLink(),b=d.tokenizeInline(b,y),d.inlineTokenizers=x,S(),e(f)({type:`link`,title:null,url:r(_,{nonTerminated:!1}),children:b}))}}}}),ES=V((e,t)=>{t.exports=n;function n(e,t){var n=String(e),r=0,i;if(typeof t!=`string`)throw Error(`Expected character`);for(i=n.indexOf(t);i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}}),DS=V((e,t)=>{t.exports=r;var n=[`www.`,`http://`,`https://`];function r(e,t){var r=-1,i,a,o;if(!this.options.gfm)return r;for(a=n.length,i=-1;++i<a;)o=e.indexOf(n[i],t),o!==-1&&(r===-1||o<r)&&(r=o);return r}}),OS=V((e,t)=>{var n=ES(),r=Hx(),i=Ix(),a=Rx(),o=_S(),s=DS();t.exports=C,C.locator=s,C.notInLink=!0;var c=33,l=38,u=41,d=42,f=44,p=45,m=46,h=58,g=59,_=63,v=60,y=95,b=126,x=`(`,S=`)`;function C(e,t,s){var C=this,w=C.options.gfm,T=C.inlineTokenizers,E=t.length,D=-1,O=!1,ee,k,te,A,ne,re,ie,j,M,ae,oe,se,ce,le;if(w){if(t.slice(0,4)===`www.`)O=!0,A=4;else if(t.slice(0,7).toLowerCase()===`http://`)A=7;else if(t.slice(0,8).toLowerCase()===`https://`)A=8;else return;for(D=A-1,te=A,ee=[];A<E;){if(ie=t.charCodeAt(A),ie===m){if(D===A-1)break;ee.push(A),D=A,A++;continue}if(i(ie)||a(ie)||ie===p||ie===y){A++;continue}break}if(ie===m&&(ee.pop(),A--),ee[0]!==void 0&&(k=ee.length<2?te:ee[ee.length-2]+1,t.slice(k,A).indexOf(`_`)===-1)){if(s)return!0;for(j=A,ne=A;A<E&&(ie=t.charCodeAt(A),!(o(ie)||ie===v));)A++,ie===c||ie===d||ie===f||ie===m||ie===h||ie===_||ie===y||ie===b||(j=A);if(A=j,t.charCodeAt(A-1)===u)for(re=t.slice(ne,A),M=n(re,x),ae=n(re,S);ae>M;)A=ne+re.lastIndexOf(S),re=t.slice(ne,A),ae--;if(t.charCodeAt(A-1)===g&&(A--,a(t.charCodeAt(A-1)))){for(j=A-2;a(t.charCodeAt(j));)j--;t.charCodeAt(j)===l&&(A=j)}return oe=t.slice(0,A),ce=r(oe,{nonTerminated:!1}),O&&(ce=`http://`+ce),le=C.enterLink(),C.inlineTokenizers={text:T.text},se=C.tokenizeInline(oe,e.now()),C.inlineTokenizers=T,le(),e(oe)({type:`link`,title:null,url:ce,children:se})}}}}),kS=V((e,t)=>{var n=Ix(),r=Rx(),i=43,a=45,o=46,s=95;t.exports=c;function c(e,t){var n=this,r,i;if(!this.options.gfm||(r=e.indexOf(`@`,t),r===-1))return-1;if(i=r,i===t||!l(e.charCodeAt(i-1)))return c.call(n,e,r+1);for(;i>t&&l(e.charCodeAt(i-1));)i--;return i}function l(e){return n(e)||r(e)||e===i||e===a||e===o||e===s}}),AS=V((e,t)=>{var n=Hx(),r=Ix(),i=Rx(),a=kS();t.exports=d,d.locator=a,d.notInLink=!0;var o=43,s=45,c=46,l=64,u=95;function d(e,t,a){var d=this,f=d.options.gfm,p=d.inlineTokenizers,m=0,h=t.length,g=-1,_,v,y,b;if(f){for(_=t.charCodeAt(m);r(_)||i(_)||_===o||_===s||_===c||_===u;)_=t.charCodeAt(++m);if(m!==0&&_===l){for(m++;m<h;){if(_=t.charCodeAt(m),r(_)||i(_)||_===s||_===c||_===u){m++,g===-1&&_===c&&(g=m);continue}break}if(!(g===-1||g===m||_===s||_===u))return _===c&&m--,v=t.slice(0,m),a?!0:(b=d.enterLink(),d.inlineTokenizers={text:p.text},y=d.tokenizeInline(v,e.now()),d.inlineTokenizers=p,b(),e(v)({type:`link`,title:null,url:`mailto:`+n(v,{nonTerminated:!1}),children:y}))}}}}),jS=V((e,t)=>{var n=Rx(),r=wS(),i=hS().tag;t.exports=d,d.locator=r;var a=`<`,o=`?`,s=`!`,c=`/`,l=/^<a /i,u=/^<\/a>/i;function d(e,t,r){var d=this,f=t.length,p,m;if(!(t.charAt(0)!==a||f<3)&&(p=t.charAt(1),!(!n(p)&&p!==o&&p!==s&&p!==c)&&(m=t.match(i),m)))return r?!0:(m=m[0],!d.inLink&&l.test(m)?d.inLink=!0:d.inLink&&u.test(m)&&(d.inLink=!1),e(m)({type:`html`,value:m}))}}),MS=V((e,t)=>{t.exports=n;function n(e,t){var n=e.indexOf(`[`,t),r=e.indexOf(`![`,t);return r===-1||n<r?n:r}}),NS=V((e,t)=>{var n=_S(),r=MS();t.exports=g,g.locator=r;var i=`
260
+ `,a=`!`,o=`"`,s=`'`,c=`(`,l=`)`,u=`<`,d=`>`,f=`[`,p=`\\`,m=`]`,h="`";function g(e,t,r){var g=this,_=``,v=0,y=t.charAt(0),b=g.options.pedantic,x=g.options.commonmark,S=g.options.gfm,C,w,T,E,D,O,ee,k,te,A,ne,re,ie,j,M,ae,oe,se;if(y===a&&(k=!0,_=y,y=t.charAt(++v)),y===f&&!(!k&&g.inLink)){for(_+=y,j=``,v++,ne=t.length,ae=e.now(),ie=0,ae.column+=v,ae.offset+=v;v<ne;){if(y=t.charAt(v),O=y,y===h){for(w=1;t.charAt(v+1)===h;)O+=y,v++,w++;T?w>=T&&(T=0):T=w}else if(y===p)v++,O+=t.charAt(v);else if((!T||S)&&y===f)ie++;else if((!T||S)&&y===m)if(ie)ie--;else{if(t.charAt(v+1)!==c)return;O+=c,C=!0,v++;break}j+=O,O=``,v++}if(C){for(te=j,_+=j+O,v++;v<ne&&(y=t.charAt(v),n(y));)_+=y,v++;if(y=t.charAt(v),j=``,E=_,y===u){for(v++,E+=u;v<ne&&(y=t.charAt(v),y!==d);){if(x&&y===i)return;j+=y,v++}if(t.charAt(v)!==d)return;_+=u+j+d,M=j,v++}else{for(y=null,O=``;v<ne&&(y=t.charAt(v),!(O&&(y===o||y===s||x&&y===c)));){if(n(y)){if(!b)break;O+=y}else{if(y===c)ie++;else if(y===l){if(ie===0)break;ie--}j+=O,O=``,y===p&&(j+=p,y=t.charAt(++v)),j+=y}v++}_+=j,M=j,v=_.length}for(j=``;v<ne&&(y=t.charAt(v),n(y));)j+=y,v++;if(y=t.charAt(v),_+=j,j&&(y===o||y===s||x&&y===c))if(v++,_+=y,j=``,A=y===c?l:y,D=_,x){for(;v<ne&&(y=t.charAt(v),y!==A);)y===p&&(j+=p,y=t.charAt(++v)),v++,j+=y;if(y=t.charAt(v),y!==A)return;for(re=j,_+=j+y,v++;v<ne&&(y=t.charAt(v),n(y));)_+=y,v++}else for(O=``;v<ne;){if(y=t.charAt(v),y===A)ee&&(j+=A+O,O=``),ee=!0;else if(!ee)j+=y;else if(y===l){_+=j+A+O,re=j;break}else n(y)?O+=y:(j+=A+O+y,O=``,ee=!1);v++}if(t.charAt(v)===l)return r?!0:(_+=l,M=g.decode.raw(g.unescape(M),e(E).test().end,{nonTerminated:!1}),re&&=(D=e(D).test().end,g.decode.raw(g.unescape(re),D)),se={type:k?`image`:`link`,title:re||null,url:M},k?se.alt=g.decode.raw(g.unescape(te),ae)||null:(oe=g.enterLink(),se.children=g.tokenizeInline(te,ae),oe()),e(_)(se))}}}}),PS=V((e,t)=>{var n=_S(),r=MS(),i=vS();t.exports=m,m.locator=r;var a=`link`,o=`image`,s=`shortcut`,c=`collapsed`,l=`full`,u=`!`,d=`[`,f=`\\`,p=`]`;function m(e,t,r){var m=this,h=m.options.commonmark,g=t.charAt(0),_=0,v=t.length,y=``,b=``,x=a,S=s,C,w,T,E,D,O,ee,k;if(g===u&&(x=o,b=g,g=t.charAt(++_)),g===d){for(_++,b+=g,O=``,k=0;_<v;){if(g=t.charAt(_),g===d)ee=!0,k++;else if(g===p){if(!k)break;k--}g===f&&(O+=f,g=t.charAt(++_)),O+=g,_++}if(y=O,C=O,g=t.charAt(_),g===p){if(_++,y+=g,O=``,!h)for(;_<v&&(g=t.charAt(_),n(g));)O+=g,_++;if(g=t.charAt(_),g===d){for(w=``,O+=g,_++;_<v&&(g=t.charAt(_),!(g===d||g===p));)g===f&&(w+=f,g=t.charAt(++_)),w+=g,_++;g=t.charAt(_),g===p?(S=w?l:c,O+=w+g,_++):w=``,y+=O,O=``}else{if(!C)return;w=C}if(!(S!==l&&ee))return y=b+y,x===a&&m.inLink?null:r?!0:(T=e.now(),T.column+=b.length,T.offset+=b.length,w=S===l?w:C,E={type:x+`Reference`,identifier:i(w),label:w,referenceType:S},x===a?(D=m.enterLink(),E.children=m.tokenizeInline(C,T),D()):E.alt=m.decode.raw(m.unescape(C),T)||null,e(y)(E))}}}}),FS=V((e,t)=>{t.exports=n;function n(e,t){var n=e.indexOf(`**`,t),r=e.indexOf(`__`,t);return r===-1?n:n===-1||r<n?r:n}}),IS=V((e,t)=>{var n=oS(),r=_S(),i=FS();t.exports=c,c.locator=i;var a=`\\`,o=`*`,s=`_`;function c(e,t,i){var c=this,l=0,u=t.charAt(l),d,f,p,m,h,g,_;if(!(u!==o&&u!==s||t.charAt(++l)!==u)&&(f=c.options.pedantic,p=u,h=p+p,g=t.length,l++,m=``,u=``,!(f&&r(t.charAt(l)))))for(;l<g;){if(_=u,u=t.charAt(l),u===p&&t.charAt(l+1)===p&&(!f||!r(_))&&(u=t.charAt(l+2),u!==p))return n(m)?i?!0:(d=e.now(),d.column+=2,d.offset+=2,e(h+m+h)({type:`strong`,children:c.tokenizeInline(m,d)})):void 0;!f&&u===a&&(m+=u,u=t.charAt(++l)),m+=u,l++}}}),LS=V((e,t)=>{t.exports=i;var n=String.fromCharCode,r=/\w/;function i(e){return r.test(typeof e==`number`?n(e):e.charAt(0))}}),RS=V((e,t)=>{t.exports=n;function n(e,t){var n=e.indexOf(`*`,t),r=e.indexOf(`_`,t);return r===-1?n:n===-1||r<n?r:n}}),zS=V((e,t)=>{var n=oS(),r=LS(),i=_S(),a=RS();t.exports=l,l.locator=a;var o=`*`,s=`_`,c=`\\`;function l(e,t,a){var l=this,u=0,d=t.charAt(u),f,p,m,h,g,_,v;if(!(d!==o&&d!==s)&&(p=l.options.pedantic,g=d,m=d,_=t.length,u++,h=``,d=``,!(p&&i(t.charAt(u)))))for(;u<_;){if(v=d,d=t.charAt(u),d===m&&(!p||!i(v))){if(d=t.charAt(++u),d!==m){if(!n(h)||v===m)return;if(!p&&m===s&&r(d)){h+=m;continue}return a?!0:(f=e.now(),f.column++,f.offset++,e(g+h+m)({type:`emphasis`,children:l.tokenizeInline(h,f)}))}h+=m}!p&&d===c&&(h+=d,d=t.charAt(++u)),h+=d,u++}}}),BS=V((e,t)=>{t.exports=n;function n(e,t){return e.indexOf(`~~`,t)}}),VS=V((e,t)=>{var n=_S(),r=BS();t.exports=o,o.locator=r;var i=`~`,a=`~~`;function o(e,t,r){var o=this,s=``,c=``,l=``,u=``,d,f,p;if(!(!o.options.gfm||t.charAt(0)!==i||t.charAt(1)!==i||n(t.charAt(2))))for(d=1,f=t.length,p=e.now(),p.column+=2,p.offset+=2;++d<f;){if(s=t.charAt(d),s===i&&c===i&&(!l||!n(l)))return r?!0:e(a+u+a)({type:`delete`,children:o.tokenizeInline(u,p)});u+=c,l=c,c=s}}}),HS=V((e,t)=>{t.exports=n;function n(e,t){return e.indexOf("`",t)}}),US=V((e,t)=>{var n=HS();t.exports=o,o.locator=n;var r=10,i=32,a=96;function o(e,t,n){for(var o=t.length,s=0,c,l,u,d,f,p;s<o&&t.charCodeAt(s)===a;)s++;if(!(s===0||s===o)){for(c=s,f=t.charCodeAt(s);s<o;){if(d=f,f=t.charCodeAt(s+1),d===a){if(l===void 0&&(l=s),u=s+1,f!==a&&u-l===c){p=!0;break}}else l!==void 0&&(l=void 0,u=void 0);s++}if(p){if(n)return!0;if(s=c,o=l,d=t.charCodeAt(s),f=t.charCodeAt(o-1),p=!1,o-s>2&&(d===i||d===r)&&(f===i||f===r)){for(s++,o--;s<o;){if(d=t.charCodeAt(s),d!==i&&d!==r){p=!0;break}s++}p===!0&&(c++,l--)}return e(t.slice(0,u))({type:`inlineCode`,value:t.slice(c,l)})}}}}),WS=V((e,t)=>{t.exports=n;function n(e,t){for(var n=e.indexOf(`
261
+ `,t);n>t&&e.charAt(n-1)===` `;)n--;return n}}),GS=V((e,t)=>{var n=WS();t.exports=o,o.locator=n;var r=` `,i=`
262
+ `,a=2;function o(e,t,n){for(var o=t.length,s=-1,c=``,l;++s<o;){if(l=t.charAt(s),l===i)return s<a?void 0:n?!0:(c+=l,e(c)({type:`break`}));if(l!==r)return;c+=l}}}),KS=V((e,t)=>{t.exports=n;function n(e,t,n){var r=this,i,a,o,s,c,l,u,d,f,p;if(n)return!0;for(i=r.inlineMethods,s=i.length,a=r.inlineTokenizers,o=-1,f=t.length;++o<s;)d=i[o],!(d===`text`||!a[d])&&(u=a[d].locator,u||e.file.fail("Missing locator: `"+d+"`"),l=u.call(r,t,1),l!==-1&&l<f&&(f=l));c=t.slice(0,f),p=e.now(),r.decode(c,p,m);function m(t,n,r){e(r||t)({type:`text`,value:t})}}}),qS=V((e,t)=>{var n=Ox(),r=jx(),i=Mx(),a=Nx(),o=Ux(),s=Wx();t.exports=c;function c(e,t){this.file=t,this.offset={},this.options=n(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=i(t).toOffset,this.unescape=a(this,`escape`),this.decode=o(this)}var l=c.prototype;l.setOptions=Jx(),l.parse=eS(),l.options=qx(),l.exitStart=r(`atStart`,!0),l.enterList=r(`inList`,!1),l.enterLink=r(`inLink`,!1),l.enterBlock=r(`inBlock`,!1),l.interruptParagraph=[[`thematicBreak`],[`list`],[`atxHeading`],[`fencedCode`],[`blockquote`],[`html`],[`setextHeading`,{commonmark:!1}],[`definition`,{commonmark:!1}]],l.interruptList=[[`atxHeading`,{pedantic:!1}],[`fencedCode`,{pedantic:!1}],[`thematicBreak`,{pedantic:!1}],[`definition`,{commonmark:!1}]],l.interruptBlockquote=[[`indentedCode`,{commonmark:!0}],[`fencedCode`,{commonmark:!0}],[`atxHeading`,{commonmark:!0}],[`setextHeading`,{commonmark:!0}],[`thematicBreak`,{commonmark:!0}],[`html`,{commonmark:!0}],[`list`,{commonmark:!0}],[`definition`,{commonmark:!1}]],l.blockTokenizers={blankLine:tS(),indentedCode:iS(),fencedCode:aS(),blockquote:cS(),atxHeading:lS(),thematicBreak:uS(),list:pS(),setextHeading:mS(),html:gS(),definition:yS(),table:bS(),paragraph:xS()},l.inlineTokenizers={escape:CS(),autoLink:TS(),url:OS(),email:AS(),html:jS(),link:NS(),reference:PS(),strong:IS(),emphasis:zS(),deletion:VS(),code:US(),break:GS(),text:KS()},l.blockMethods=u(l.blockTokenizers),l.inlineMethods=u(l.inlineTokenizers),l.tokenizeBlock=s(`block`),l.tokenizeInline=s(`inline`),l.tokenizeFactory=s;function u(e){var t=[],n;for(n in e)t.push(n);return t}}),JS=V((e,t)=>{var n=Ax(),r=Ox(),i=qS();t.exports=a,a.Parser=i;function a(e){var t=this.data(`settings`),a=n(i);a.prototype.options=r(a.prototype.options,t,e),this.Parser=a}}),YS=V((e,t)=>{t.exports=n;function n(e){if(e)throw e}}),XS=V((e,t)=>{t.exports=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}}),ZS=V((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return typeof a>`u`||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`)if(n.call(e,t)){if(a)return a(e,t).value}else return;return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):typeof i<`u`&&c(d,{name:n,newValue:i}));return d}}),QS=V((e,t)=>{t.exports=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}}),$S=V((e,t)=>{var n=[].slice;t.exports=r;function r(e,t){var r;return i;function i(){var t=n.call(arguments,0),i=e.length>t.length,s;i&&t.push(a);try{s=e.apply(null,t)}catch(e){if(i&&r)throw e;return a(e)}i||(s&&typeof s.then==`function`?s.then(o,a):s instanceof Error?a(s):o(s))}function a(){r||(r=!0,t.apply(null,arguments))}function o(e){a(null,e)}}}),eC=V((e,t)=>{var n=$S();t.exports=i,i.wrap=n;var r=[].slice;function i(){var e=[],t={};return t.run=i,t.use=a,t;function i(){var t=-1,i=r.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!=`function`)throw Error(`Expected function as last argument, not `+a);o.apply(null,[null].concat(i));function o(s){var c=e[++t],l=r.call(arguments,0).slice(1),u=i.length,d=-1;if(s){a(s);return}for(;++d<u;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,c?n(c,o).apply(null,i):a.apply(null,[null].concat(i))}}function a(n){if(typeof n!=`function`)throw Error("Expected `fn` to be a function, not "+n);return e.push(n),t}}}),tC=V((e,t)=>{var n={}.hasOwnProperty;t.exports=r;function r(e){return!e||typeof e!=`object`?``:n.call(e,`position`)||n.call(e,`type`)?a(e.position):n.call(e,`start`)||n.call(e,`end`)?a(e):n.call(e,`line`)||n.call(e,`column`)?i(e):``}function i(e){return(!e||typeof e!=`object`)&&(e={}),o(e.line)+`:`+o(e.column)}function a(e){return(!e||typeof e!=`object`)&&(e={}),i(e.start)+`-`+i(e.end)}function o(e){return e&&typeof e==`number`?e:1}}),nC=V((e,t)=>{var n=tC();t.exports=a;function r(){}r.prototype=Error.prototype,a.prototype=new r;var i=a.prototype;i.file=``,i.name=``,i.reason=``,i.message=``,i.stack=``,i.fatal=null,i.column=null,i.line=null;function a(e,t,r){var i,a,s;typeof t==`string`&&(r=t,t=null),i=o(r),a=n(t)||`1:1`,s={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(s=t,t=t.start):s.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=s,this.source=i[0],this.ruleId=i[1]}function o(e){var t=[null,null],n;return typeof e==`string`&&(n=e.indexOf(`:`),n===-1?t[1]=e:(t[0]=e.slice(0,n),t[1]=e.slice(n+1))),t}}),rC=V(e=>{e.basename=t,e.dirname=n,e.extname=r,e.join=i,e.sep=`/`;function t(e,t){var n=0,r=-1,i,a,o,c;if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);if(s(e),i=e.length,t===void 0||!t.length||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;for(a=-1,c=t.length-1;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),c>-1&&(e.charCodeAt(i)===t.charCodeAt(c--)?c<0&&(r=i):(c=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function n(e){var t,n,r;if(s(e),!e.length)return`.`;for(t=-1,r=e.length;--r;)if(e.charCodeAt(r)===47){if(n){t=r;break}}else n||=!0;return t<0?e.charCodeAt(0)===47?`/`:`.`:t===1&&e.charCodeAt(0)===47?`//`:e.slice(0,t)}function r(e){var t=-1,n=0,r=-1,i=0,a,o,c;for(s(e),c=e.length;c--;){if(o=e.charCodeAt(c),o===47){if(a){n=c+1;break}continue}r<0&&(a=!0,r=c+1),o===46?t<0?t=c:i!==1&&(i=1):t>-1&&(i=-1)}return t<0||r<0||i===0||i===1&&t===r-1&&t===n+1?``:e.slice(t,r)}function i(){for(var e=-1,t;++e<arguments.length;)s(arguments[e]),arguments[e]&&(t=t===void 0?arguments[e]:t+`/`+arguments[e]);return t===void 0?`.`:a(t)}function a(e){var t,n;return s(e),t=e.charCodeAt(0)===47,n=o(e,!t),!n.length&&!t&&(n=`.`),n.length&&e.charCodeAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function o(e,t){for(var n=``,r=0,i=-1,a=0,o=-1,s,c;++o<=e.length;){if(o<e.length)s=e.charCodeAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length?n+`/..`:`..`,r=2)}else n.length?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function s(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}}),iC=V(e=>{e.cwd=t;function t(){return`/`}}),aC=V((e,t)=>{var n=rC(),r=iC(),i=XS();t.exports=s;var a={}.hasOwnProperty,o=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`];s.prototype.toString=v,Object.defineProperty(s.prototype,`path`,{get:c,set:l}),Object.defineProperty(s.prototype,`dirname`,{get:u,set:d}),Object.defineProperty(s.prototype,`basename`,{get:f,set:p}),Object.defineProperty(s.prototype,`extname`,{get:m,set:h}),Object.defineProperty(s.prototype,`stem`,{get:g,set:_});function s(e){var t,n;if(!e)e={};else if(typeof e==`string`||i(e))e={contents:e};else if(`message`in e&&`messages`in e)return e;if(!(this instanceof s))return new s(e);for(this.data={},this.messages=[],this.history=[],this.cwd=r.cwd(),n=-1;++n<o.length;)t=o[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)o.indexOf(t)<0&&(this[t]=e[t])}function c(){return this.history[this.history.length-1]}function l(e){b(e,`path`),this.path!==e&&this.history.push(e)}function u(){return typeof this.path==`string`?n.dirname(this.path):void 0}function d(e){x(this.path,`dirname`),this.path=n.join(e||``,this.basename)}function f(){return typeof this.path==`string`?n.basename(this.path):void 0}function p(e){b(e,`basename`),y(e,`basename`),this.path=n.join(this.dirname||``,e)}function m(){return typeof this.path==`string`?n.extname(this.path):void 0}function h(e){if(y(e,`extname`),x(this.path,`extname`),e){if(e.charCodeAt(0)!==46)throw Error("`extname` must start with `.`");if(e.indexOf(`.`,1)>-1)throw Error("`extname` cannot contain multiple dots")}this.path=n.join(this.dirname,this.stem+(e||``))}function g(){return typeof this.path==`string`?n.basename(this.path,this.extname):void 0}function _(e){b(e,`stem`),y(e,`stem`),this.path=n.join(this.dirname||``,e+(this.extname||``))}function v(e){return(this.contents||``).toString(e)}function y(e,t){if(e&&e.indexOf(n.sep)>-1)throw Error("`"+t+"` cannot be a path: did not expect `"+n.sep+"`")}function b(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function x(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}}),oC=V((e,t)=>{var n=nC(),r=aC();t.exports=r,r.prototype.message=i,r.prototype.info=o,r.prototype.fail=a;function i(e,t,r){var i=new n(e,t,r);return this.path&&(i.name=this.path+`:`+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}function a(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function o(){var e=this.message.apply(this,arguments);return e.fatal=null,e}}),sC=V((e,t)=>{t.exports=oC()}),cC=V((e,t)=>{var n=YS(),r=XS(),i=ZS(),a=QS(),o=eC(),s=sC();t.exports=m().freeze();var c=[].slice,l={}.hasOwnProperty,u=o().use(d).use(f).use(p);function d(e,t){t.tree=e.parse(t.file)}function f(e,t,n){e.run(t.tree,t.file,r);function r(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}}function p(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n==`string`||r(n)?(`value`in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function m(){var e=[],t=o(),r={},d=-1,f;return p.data=S,p.freeze=g,p.attachers=e,p.use=C,p.parse=T,p.stringify=O,p.run=E,p.runSync=D,p.process=ee,p.processSync=k,p;function p(){for(var t=m(),n=-1;++n<e.length;)t.use.apply(null,e[n]);return t.data(i(!0,{},r)),t}function g(){var n,r;if(f)return p;for(;++d<e.length;)n=e[d],n[1]!==!1&&(n[1]===!0&&(n[1]=void 0),r=n[0].apply(p,n.slice(1)),typeof r==`function`&&t.use(r));return f=!0,d=1/0,p}function S(e,t){return typeof e==`string`?arguments.length===2?(y(`data`,f),r[e]=t,p):l.call(r,e)&&r[e]||null:e?(y(`data`,f),r=e,p):r}function C(t){var n;if(y(`use`,f),t!=null)if(typeof t==`function`)u.apply(null,arguments);else if(typeof t==`object`)`length`in t?l(t):o(t);else throw Error("Expected usable value, not `"+t+"`");return n&&(r.settings=i(r.settings||{},n)),p;function o(e){l(e.plugins),e.settings&&(n=i(n||{},e.settings))}function s(e){if(typeof e==`function`)u(e);else if(typeof e==`object`)`length`in e?u.apply(null,e):o(e);else throw Error("Expected usable value, not `"+e+"`")}function l(e){var t=-1;if(e!=null)if(typeof e==`object`&&`length`in e)for(;++t<e.length;)s(e[t]);else throw Error("Expected a list of plugins, not `"+e+"`")}function u(t,n){var r=w(t);r?(a(r[1])&&a(n)&&(n=i(!0,r[1],n)),r[1]=n):e.push(c.call(arguments))}}function w(t){for(var n=-1;++n<e.length;)if(e[n][0]===t)return e[n]}function T(e){var t=s(e),n;return g(),n=p.Parser,_(`parse`,n),h(n,`parse`)?new n(String(t),t).parse():n(String(t),t)}function E(e,n,r){if(b(e),g(),!r&&typeof n==`function`&&(r=n,n=null),!r)return new Promise(i);i(null,r);function i(i,a){t.run(e,s(n),o);function o(t,n,o){n||=e,t?a(t):i?i(n):r(null,n,o)}}}function D(e,t){var r,i;return E(e,t,a),x(`runSync`,`run`,i),r;function a(e,t){i=!0,r=t,n(e)}}function O(e,t){var n=s(t),r;return g(),r=p.Compiler,v(`stringify`,r),b(e),h(r,`compile`)?new r(e,n).compile():r(e,n)}function ee(e,t){if(g(),_(`process`,p.Parser),v(`process`,p.Compiler),!t)return new Promise(n);n(null,t);function n(n,r){var i=s(e);u.run(p,{file:i},a);function a(e){e?r(e):n?n(i):t(null,i)}}}function k(e){var t,r;return g(),_(`processSync`,p.Parser),v(`processSync`,p.Compiler),t=s(e),ee(t,i),x(`processSync`,`process`,r),t;function i(e){r=!0,n(e)}}}function h(e,t){return typeof e==`function`&&e.prototype&&(g(e.prototype)||t in e.prototype)}function g(e){for(var t in e)return!0;return!1}function _(e,t){if(typeof t!=`function`)throw Error("Cannot `"+e+"` without `Parser`")}function v(e,t){if(typeof t!=`function`)throw Error("Cannot `"+e+"` without `Compiler`")}function y(e,t){if(t)throw Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function b(e){if(!e||typeof e.type!=`string`)throw Error("Expected node, got `"+e+"`")}function x(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}}),lC={};yx(lC,{languages:()=>qE,options:()=>YE,parsers:()=>XE,printers:()=>SD});var uC=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i);function dC(e){return this[e<0?this.length+e:e]}var fC=uC(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return dC}),pC=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},mC=uC(`replaceAll`,function(){if(typeof this==`string`)return pC}),hC=xx(Sx(),1);function gC(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var _C=()=>{},vC=`string`,yC=`array`,bC=`cursor`,xC=`indent`,SC=`align`,CC=`trim`,wC=`group`,TC=`fill`,EC=`if-break`,DC=`indent-if-break`,OC=`line-suffix`,kC=`line-suffix-boundary`,AC=`line`,jC=`label`,MC=`break-parent`,NC=new Set([bC,xC,SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,MC]);function PC(e){if(typeof e==`string`)return vC;if(Array.isArray(e))return yC;if(!e)return;let{type:t}=e;if(NC.has(t))return t}var FC=PC,IC=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function LC(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
263
+ Expected it to be 'string' or 'object'.`;if(FC(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=IC([...NC].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
264
+ Expected it to be ${r}.`}var RC=class extends Error{name=`InvalidDocError`;constructor(e){super(LC(e)),this.doc=e}},zC={};function BC(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===zC){n(i.pop());continue}n&&i.push(e,zC);let a=FC(e);if(!a)throw new RC(e);if(t?.(e)!==!1)switch(a){case yC:case TC:{let t=a===yC?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case EC:i.push(e.flatContents,e.breakContents);break;case wC:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);break;case SC:case xC:case DC:case jC:case OC:i.push(e.contents);break;case vC:case bC:case CC:case kC:case AC:case MC:break;default:throw new RC(e)}}}var VC=BC;function HC(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(FC(e)){case yC:return t(e.map(r));case TC:return t({...e,parts:e.parts.map(r)});case EC:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case wC:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case SC:case xC:case DC:case jC:case OC:return t({...e,contents:r(e.contents)});case vC:case bC:case CC:case kC:case AC:case MC:return t(e);default:throw new RC(e)}}}function UC(e){if(e.length>0){let t=fC(0,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function WC(e){let t=new Set,n=[];function r(e){if(e.type===MC&&UC(n),e.type===wC){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===wC&&n.pop().break&&UC(n)}VC(e,r,i,!0)}function GC(e,t=cw){return HC(e,e=>typeof e==`string`?rw(t,e.split(`
265
+ `)):e)}var KC=_C,qC=_C,JC=_C,YC=_C;function XC(e){return KC(e),{type:xC,contents:e}}function ZC(e,t){return YC(e),KC(t),{type:SC,contents:t,n:e}}function QC(e){return ZC({type:`root`},e)}var $C={type:MC};function ew(e){return JC(e),{type:TC,parts:e}}function tw(e,t={}){return KC(e),qC(t.expandedStates,!0),{type:wC,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function nw(e,t=``,n={}){return KC(e),t!==``&&KC(t),{type:EC,breakContents:e,flatContents:t,groupId:n.groupId}}function rw(e,t){KC(e),qC(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var iw={type:AC},aw={type:AC,soft:!0},ow={type:AC,hard:!0},sw=[ow,$C],cw=[{type:AC,hard:!0,literal:!0},$C],lw=`cr`,uw=`crlf`,dw=`\r`,fw=`\r
266
+ `,pw=`
267
+ `;function mw(e){return e===lw?dw:e===uw?fw:pw}var hw=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function gw(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function _w(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var vw=`©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇`,yw=/[^\x20-\x7F]/u,bw=new Set(vw);function xw(e){if(!e)return 0;if(!yw.test(e))return e.length;e=e.replace(hw(),e=>bw.has(e)?` `:` `);let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||e>=65024&&e<=65039||(t+=gw(e)||_w(e)?2:1)}return t}var Sw=xw,Cw={type:0},ww={type:1},Tw={value:``,length:0,queue:[],get root(){return Tw}};function Ew(e,t,n){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],i=``,a=0,o=0,s=0;for(let e of r)switch(e.type){case 0:u(),n.useTabs?c(1):l(n.tabWidth);break;case 3:{let{string:t}=e;u(),i+=t,a+=t.length;break}case 2:{let{width:t}=e;o+=1,s+=t;break}default:throw Error(`Unexpected indent comment '${e.type}'.`)}return f(),{...e,value:i,length:a,queue:r};function c(e){i+=` `.repeat(e),a+=n.tabWidth*e}function l(e){i+=` `.repeat(e),a+=e}function u(){n.useTabs?d():f()}function d(){o>0&&c(o),p()}function f(){s>0&&l(s),p()}function p(){o=0,s=0}}function Dw(e,t,n){if(!t)return e;if(t.type===`root`)return{...e,root:e};if(t===-1/0)return e.root;let r;return r=typeof t==`number`?t<0?ww:{type:2,width:t}:{type:3,string:t},Ew(e,r,n)}function Ow(e,t){return Ew(e,Cw,t)}function kw(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===` `||r===` `)t++;else break}return t}function Aw(e){let t=kw(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var jw=Symbol(`MODE_BREAK`),Mw=Symbol(`MODE_FLAT`),Nw=Symbol(`DOC_FILL_PRINTED_LENGTH`);function Pw(e,t,n,r,i,a){if(n===1/0)return!0;let o=t.length,s=!1,c=[e],l=``;for(;n>=0;){if(c.length===0){if(o===0)return!0;c.push(t[--o]);continue}let{mode:e,doc:u}=c.pop(),d=FC(u);switch(d){case vC:u&&(s&&=(l+=` `,--n,!1),l+=u,n-=Sw(u));break;case yC:case TC:{let t=d===yC?u:u.parts,n=u[Nw]??0;for(let r=t.length-1;r>=n;r--)c.push({mode:e,doc:t[r]});break}case xC:case SC:case DC:case jC:c.push({mode:e,doc:u.contents});break;case CC:{let{text:e,count:t}=Aw(l);l=e,n+=t;break}case wC:{if(a&&u.break)return!1;let t=u.break?jw:e,n=u.expandedStates&&t===jw?fC(0,u.expandedStates,-1):u.contents;c.push({mode:t,doc:n});break}case EC:{let t=(u.groupId?i[u.groupId]||Mw:e)===jw?u.breakContents:u.flatContents;t&&c.push({mode:e,doc:t});break}case AC:if(e===jw||u.hard)return!0;u.soft||(s=!0);break;case OC:r=!0;break;case kC:if(r)return!1;break}}return!1}function Fw(e,t){let n=Object.create(null),r=t.printWidth,i=mw(t.endOfLine),a=0,o=[{indent:Tw,mode:jw,doc:e}],s=``,c=!1,l=[],u=[],d=[],f=[],p=0;for(WC(e);o.length>0;){let{indent:e,mode:d,doc:f}=o.pop();switch(FC(f)){case vC:{let e=i===`
268
+ `?f:mC(0,f,`
269
+ `,i);e&&(s+=e,o.length>0&&(a+=Sw(e)));break}case yC:for(let t=f.length-1;t>=0;t--)o.push({indent:e,mode:d,doc:f[t]});break;case bC:if(u.length>=2)throw Error(`There are too many 'cursor' in doc.`);u.push(p+s.length);break;case xC:o.push({indent:Ow(e,t),mode:d,doc:f.contents});break;case SC:o.push({indent:Dw(e,f.n,t),mode:d,doc:f.contents});break;case CC:_();break;case wC:switch(d){case Mw:if(!c){o.push({indent:e,mode:f.break?jw:Mw,doc:f.contents});break}case jw:{c=!1;let t={indent:e,mode:Mw,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&Pw(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=fC(0,f.expandedStates,-1);if(f.break){o.push({indent:e,mode:jw,doc:t});break}else for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({indent:e,mode:jw,doc:t});break}else{let t={indent:e,mode:Mw,doc:f.expandedStates[r]};if(Pw(t,o,i,s,n)){o.push(t);break}}}else o.push({indent:e,mode:jw,doc:f.contents});break}}f.id&&(n[f.id]=fC(0,o,-1).mode);break;case TC:{let t=r-a,i=f[Nw]??0,{parts:s}=f,c=s.length-i;if(c===0)break;let u=s[i+0],p=s[i+1],m={indent:e,mode:Mw,doc:u},h={indent:e,mode:jw,doc:u},g=Pw(m,[],t,l.length>0,n,!0);if(c===1){g?o.push(m):o.push(h);break}let _={indent:e,mode:Mw,doc:p},v={indent:e,mode:jw,doc:p};if(c===2){g?o.push(_,m):o.push(v,h);break}let y=s[i+2],b={indent:e,mode:d,doc:{...f,[Nw]:i+2}},x=Pw({indent:e,mode:Mw,doc:[u,p,y]},[],t,l.length>0,n,!0);o.push(b),x?o.push(_,m):g?o.push(v,m):o.push(v,h);break}case EC:case DC:{let t=f.groupId?n[f.groupId]:d;if(t===jw){let t=f.type===EC?f.breakContents:f.negate?f.contents:XC(f.contents);t&&o.push({indent:e,mode:d,doc:t})}if(t===Mw){let t=f.type===EC?f.flatContents:f.negate?XC(f.contents):f.contents;t&&o.push({indent:e,mode:d,doc:t})}break}case OC:l.push({indent:e,mode:d,doc:f.contents});break;case kC:l.length>0&&o.push({indent:e,mode:d,doc:ow});break;case AC:switch(d){case Mw:if(f.hard)c=!0;else{f.soft||(s+=` `,a+=1);break}case jw:if(l.length>0){o.push({indent:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?(s+=i,a=0,e.root&&(e.root.value&&(s+=e.root.value),a=e.root.length)):(_(),s+=i+e.value,a=e.length);break}break;case jC:o.push({indent:e,mode:d,doc:f.contents});break;case MC:break;default:throw new RC(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let m=d.join(``)+s,h=[...f,...u];if(h.length!==2)return{formatted:m};let g=h[0];return{formatted:m,cursorNodeStart:g,cursorNodeText:m.slice(g,fC(0,h,-1))};function _(){let{text:e,count:t}=Aw(s);e&&(d.push(e),p+=e.length),s=``,a-=t,u.length>0&&(f.push(...u.map(e=>Math.min(e,p))),u.length=0)}}function Iw(e,t){let n=e.matchAll(RegExp(`(?:${gC(t)})+`,`gu`));return n.reduce||(n=[...n]),n.reduce((e,[t])=>Math.max(e,t.length),0)/t.length}var Lw=Iw;function Rw(e,t){let n=e.match(RegExp(`(${gC(t)})+`,`gu`));if(n===null)return 1;let r=new Map,i=0;for(let e of n){let n=e.length/t.length;r.set(n,!0),n>i&&(i=n)}for(let e=1;e<i;e++)if(!r.get(e))return e;return i+1}var zw=Rw,Bw=Object.freeze({character:`'`,codePoint:39}),Vw=Object.freeze({character:`"`,codePoint:34}),Hw=Object.freeze({preferred:Bw,alternate:Vw}),Uw=Object.freeze({preferred:Vw,alternate:Bw});function Ww(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?Hw:Uw,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var Gw=Ww,Kw=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},qw=xx(Sx(),1),Jw=Array.prototype.toReversed??function(){return[...this].reverse()},Yw=uC(`toReversed`,function(){if(Array.isArray(this))return Jw});function Xw(){let e=globalThis,t=e.Deno?.build?.os;return typeof t==`string`?t===`windows`:e.navigator?.platform?.startsWith(`Win`)??e.process?.platform?.startsWith(`win`)??!1}var Zw=Xw();function Qw(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function $w(e){return e=Qw(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function eT(e){e=Qw(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function tT(e){return Zw?eT(e):$w(e)}var nT=e=>String(e).split(/[/\\]/u).pop(),rT=e=>String(e).startsWith(`file:`);function iT(e,t){if(!t)return;let n=nT(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function aT(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}var oT=void 0;function sT(e,t){if(t){if(rT(t))try{t=tT(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function cT(e,t){let n=Yw(0,e.plugins).flatMap(e=>e.languages??[]);return(aT(n,t.language)??iT(n,t.physicalFile)??iT(n,t.file)??sT(n,t.physicalFile)??sT(n,t.file)??oT?.(n,t.physicalFile))?.parsers[0]}var lT=cT,uT=Symbol.for(`PRETTIER_IS_FRONT_MATTER`);function dT(e){return!!e?.[uT]}var fT=dT,pT=3;function mT(e){let t=e.slice(0,pT);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
270
+ `,pT);if(n===-1)return;let r=e.slice(pT,n).trim(),i=e.indexOf(`
271
+ ${t}`,n),a=r;if(a||=t===`+++`?`toml`:`yaml`,i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
272
+ ...`,n)),i===-1)return;let o=i+1+pT,s=e.charAt(o+1);if(!/\s?/u.test(s))return;let c=e.slice(0,o),l;return{language:a,explicitLanguage:r||null,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-pT),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return l??=c.split(`
273
+ `),l.length},get column(){return l??=c.split(`
274
+ `),fC(0,l,-1).length}},[uT]:!0}}function hT(e){let t=mT(e);return t?{frontMatter:t,get content(){let{raw:n}=t;return mC(0,n,/[^\n]/gu,` `)+e.slice(n.length)}}:{content:e}}var gT=hT,_T=`format`,vT=/<!--\s*@(?:noformat|noprettier)\s*-->|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:noformat|noprettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu,yT=/<!--\s*@(?:format|prettier)\s*-->|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:format|prettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu,bT=e=>gT(e).content.trimStart().match(yT)?.index===0,xT=e=>gT(e).content.trimStart().match(vT)?.index===0,ST=e=>{let{frontMatter:t}=gT(e),n=`<!-- @${_T} -->`;return t?`${t.raw}
275
+
276
+ ${n}
277
+
278
+ ${e.slice(t.end.index)}`:`${n}
279
+
280
+ ${e}`},CT=new Set([`position`,`raw`]);function wT(e,t,n){if((e.type===`code`||e.type===`yaml`||e.type===`import`||e.type===`export`||e.type===`jsx`)&&delete t.value,e.type===`list`&&delete t.isAligned,(e.type===`list`||e.type===`listItem`)&&delete t.spread,e.type===`text`)return null;if(e.type===`inlineCode`&&(t.value=mC(0,e.value,`
281
+ `,` `)),e.type===`wikiLink`&&(t.value=mC(0,e.value.trim(),/[\t\n]+/gu,` `)),(e.type===`definition`||e.type===`linkReference`||e.type===`imageReference`)&&(t.label=(0,qw.default)(e.label)),(e.type===`link`||e.type===`image`)&&e.url&&e.url.includes(`(`))for(let n of`<>`)t.url=mC(0,e.url,n,encodeURIComponent(n));if((e.type===`definition`||e.type===`link`||e.type===`image`)&&e.title&&(t.title=mC(0,e.title,/\\(?=["')])/gu,``)),n?.type===`root`&&n.children.length>0&&(n.children[0]===e||fT(n.children[0])&&n.children[1]===e)&&e.type===`html`&&bT(e.value))return null}wT.ignoredProperties=CT;var TT=wT,ET=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,DT=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u,OT=e=>e.position.start.offset,kT=e=>e.position.end.offset,AT=new Set([`liquidNode`,`inlineCode`,`emphasis`,`esComment`,`strong`,`delete`,`wikiLink`,`link`,`linkReference`,`image`,`imageReference`,`footnote`,`footnoteReference`,`sentence`,`whitespace`,`word`,`break`,`inlineMath`]),jT=new Set([...AT,`tableCell`,`paragraph`,`heading`]),MT=`non-cjk`,NT=`cj-letter`,PT=`k-letter`,FT=`cjk-punctuation`,IT=/\p{Script_Extensions=Hangul}/u;function LT(e){let t=[],n=e.split(/([\t\n ]+)/u);for(let[e,i]of n.entries()){if(e%2==1){t.push({type:`whitespace`,value:/\n/u.test(i)?`
282
+ `:` `});continue}if((e===0||e===n.length-1)&&i===``)continue;let a=i.split(RegExp(`(${ET.source})`,`u`));for(let[e,t]of a.entries())if(!((e===0||e===a.length-1)&&t===``)){if(e%2==0){t!==``&&r({type:`word`,value:t,kind:MT,isCJ:!1,hasLeadingPunctuation:DT.test(t[0]),hasTrailingPunctuation:DT.test(fC(0,t,-1))});continue}if(DT.test(t)){r({type:`word`,value:t,kind:FT,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(IT.test(t)){r({type:`word`,value:t,kind:PT,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}r({type:`word`,value:t,kind:NT,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return t;function r(e){let n=fC(0,t,-1);n?.type===`word`&&!r(MT,FT)&&![n.value,e.value].some(e=>/\u3000/u.test(e))&&t.push({type:`whitespace`,value:``}),t.push(e);function r(t,r){return n.kind===t&&e.kind===r||n.kind===r&&e.kind===t}}}function RT(e,t){let{numberText:n,leadingSpaces:r}=t.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(n),leadingSpaces:r}}function zT(e,t){return!e.ordered||e.children.length<2||RT(e.children[1],t).number!==1?!1:RT(e.children[0],t).number===0?e.children.length>2&&RT(e.children[2],t).number===1:!0}function BT(e,t){let{value:n}=e;return e.position.end.offset===t.length&&n.endsWith(`
283
+ `)&&t.endsWith(`
284
+ `)?n.slice(0,-1):n}function VT(e,t){return(function e(n,r,i){let a={...t(n,r,i)};return a.children&&=a.children.map((t,n)=>e(t,n,[a,...i])),a})(e,null,[])}function HT(e){if(e?.type!==`link`||e.children.length!==1)return!1;let[t]=e.children;return OT(e)===OT(t)&&kT(e)===kT(t)}function UT(e){let t;if(e.type===`html`)t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);else{let n;e.type===`esComment`?n=e:e.type===`paragraph`&&e.children.length===1&&e.children[0].type===`esComment`&&(n=e.children[0]),n&&(t=n.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return t?t[1]||`next`:!1}function WT(e,t){return n(e,t,t=>t.ordered===e.ordered);function n(e,t,n){let r=-1;for(let i of t.children)if(i.type===e.type&&n(i)?r++:r=-1,i===e)return r}}function GT(e,t){let{node:n}=e;switch(n.type){case`code`:{let{lang:e}=n;if(!e)return;let r;return r=e===`angular-ts`?lT(t,{language:`typescript`}):e===`angular-html`?`angular`:lT(t,{language:e}),r?async i=>{let a={parser:r};e===`ts`||e===`typescript`?a.filepath=`dummy.ts`:e===`tsx`&&(a.filepath=`dummy.tsx`);let o=await i(BT(n,t.originalText),a),s=t.__inJsTemplate?`~`:"`",c=s.repeat(Math.max(3,Lw(n.value,s)+1));return QC([c,n.lang,n.meta?` `+n.meta:``,sw,GC(o),sw,c])}:void 0}case`import`:case`export`:return e=>e(n.value,{__onHtmlBindingRoot:e=>KT(e,n.type),parser:`babel`});case`jsx`:return e=>e(`<$>${n.value}</$>`,{parser:`__js_expression`,rootMarker:`mdx`})}return null}function KT(e,t){let{program:{body:n}}=e;if(!n.every(e=>e.type===`ImportDeclaration`||e.type===`ExportDefaultDeclaration`||e.type===`ExportNamedDeclaration`))throw Error(`Unexpected '${t}' in MDX.`)}var qT=GT,JT=null;function YT(e){if(JT!==null&&typeof JT.property){let e=JT;return JT=YT.prototype=null,e}return JT=YT.prototype=e??Object.create(null),new YT}var XT=10;for(let e=0;e<=XT;e++)YT();function ZT(e){return YT(e)}function QT(e,t=`type`){ZT(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var $T=QT,eE=[[`children`],[]],tE=$T({root:eE[0],paragraph:eE[0],sentence:eE[0],word:eE[1],whitespace:eE[1],emphasis:eE[0],strong:eE[0],delete:eE[0],inlineCode:eE[1],wikiLink:eE[1],link:eE[0],image:eE[1],blockquote:eE[0],heading:eE[0],code:eE[1],html:eE[1],list:eE[0],thematicBreak:eE[1],linkReference:eE[0],imageReference:eE[1],definition:eE[1],footnote:eE[0],footnoteReference:eE[1],footnoteDefinition:eE[0],table:eE[0],tableCell:eE[0],break:eE[1],liquidNode:eE[1],import:eE[1],export:eE[1],esComment:eE[1],jsx:eE[1],math:eE[1],inlineMath:eE[1],tableRow:eE[0],listItem:eE[0],text:eE[1]});function nE(e,t,n,r={}){let{processor:i=n}=r,a=[];return e.each(()=>{let n=i(e);n!==!1&&(a.length>0&&rE(e)&&(a.push(sw),(aE(e,t)||oE(e))&&a.push(sw),oE(e)&&a.push(sw)),a.push(n))},`children`),a}function rE({node:e,parent:t}){let n=AT.has(e.type),r=e.type===`html`&&jT.has(t.type);return!n&&!r}var iE=new Set([`listItem`,`definition`]);function aE({node:e,previous:t,parent:n},r){if(sE(t,r)||e.type===`list`&&n.type===`listItem`&&t.type===`code`)return!0;let i=t.type===e.type&&iE.has(e.type),a=n.type===`listItem`&&(e.type===`list`||!sE(n,r)),o=UT(t)===`next`,s=e.type===`html`&&t.type===`html`&&t.position.end.line+1===e.position.start.line,c=e.type===`html`&&n.type===`listItem`&&t.type===`paragraph`&&t.position.end.line+1===e.position.start.line;return!(i||a||o||s||c)}function oE({node:e,previous:t}){let n=t.type===`list`,r=e.type===`code`&&e.isIndented;return n&&r}function sE(e,t){return e.type===`listItem`&&(e.spread||t.originalText.charAt(e.position.end.offset-1)===`
285
+ `)}function cE(e,t,n){let{node:r}=e,i=WT(r,e.parent),a=zT(r,t);return nE(e,t,n,{processor(){let o=c(),{node:s}=e;if(s.children.length===2&&s.children[1].type===`html`&&s.children[0].position.start.column!==s.children[1].position.start.column)return[o,lE(e,t,n,o)];return[o,ZC(` `.repeat(o.length),lE(e,t,n,o))];function c(){let n=r.ordered?(e.isFirst?r.start:a?1:r.start+e.index)+(i%2==0?`. `:`) `):i%2==0?`- `:`* `;return(r.isAligned||r.hasIndentedCodeblock)&&r.ordered?uE(n,t):n}}})}function lE(e,t,n,r){let{node:i}=e,a=i.checked===null?``:i.checked?`[x] `:`[ ] `;return[a,nE(e,t,n,{processor({node:e,isFirst:i}){if(i&&e.type!==`list`)return ZC(` `.repeat(a.length),n());let o=` `.repeat(dE(t.tabWidth-r.length,0,3));return[o,ZC(o,n())]}})]}function uE(e,t){let n=r();return e+` `.repeat(n>=4?0:n);function r(){let n=e.length%t.tabWidth;return n===0?0:t.tabWidth-n}}function dE(e,t,n){return Math.max(t,Math.min(e,n))}function fE(e,t,n){let{node:r}=e,i=[],a=e.map(()=>e.map(({index:e})=>{let r=Fw(n(),t).formatted,a=Sw(r);return i[e]=Math.max(i[e]??3,a),{text:r,width:a}},`children`),`children`),o=s(!1);if(t.proseWrap!==`never`)return[$C,o];return[$C,tw(nw(s(!0),o))];function s(e){return rw(ow,[l(a[0],e),c(e),...a.slice(1).map(t=>l(t,e))].map(e=>`| ${e.join(` | `)} |`))}function c(e){return i.map((t,n)=>{let i=r.align[n],a=i===`center`||i===`left`?`:`:`-`,o=i===`center`||i===`right`?`:`:`-`;return`${a}${e?`-`:`-`.repeat(t-2)}${o}`})}function l(e,t){return e.map(({text:e,width:n},a)=>{if(t)return e;let o=i[a]-n,s=r.align[a],c=0;s===`right`?c=o:s===`center`&&(c=Math.floor(o/2));let l=o-c;return`${` `.repeat(c)}${e}${` `.repeat(l)}`})}}function pE(e){let{node:t}=e,n=mC(0,mC(0,t.value,`*`,`\\*`),new RegExp([`(^|${DT.source})(_+)`,`(_+)(${DT.source}|$)`].join(`|`),`gu`),(e,t,n,r,i)=>mC(0,n?`${t}${n}`:`${r}${i}`,`_`,`\\_`)),r=(e,t,n)=>e.type===`sentence`&&n===0,i=(e,t,n)=>HT(e.children[n-1]);return n!==t.value&&(e.match(void 0,r,i)||e.match(void 0,r,(e,t,n)=>e.type===`emphasis`&&n===0,i))&&(n=n.replace(/^(\\?[*_])+/u,e=>mC(0,e,`\\`,``))),n}function mE(e,t,n){return hE(e.map(n,`children`))}function hE(e){let t=[``];return(function e(n){for(let r of n){let n=FC(r);if(n===yC){e(r);continue}let i=r,a=[];n===TC&&([i,...a]=r.parts),t.push([t.pop(),i],...a)}})(e),ew(t)}var gE=new class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=this.#e,n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(fC(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${gC([...this.#e].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,e=>t.has(e))}#t(e){let t=1/0;for(let n of e.split(`
286
+ `)){if(n.length===0)continue;let e=this.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
287
+ `).map(e=>e.slice(t)).join(`
288
+ `)}}([` `,`
289
+ `,`\f`,`\r`,` `]),_E=/^\\?.$/su,vE=/^\n *>[ >]*$/u;function yE(e,t){return e=bE(e,t),e=SE(e),e=wE(e,t),e=TE(e,t),e=CE(e),e}function bE(e,t){return VT(e,e=>{if(e.type!==`text`)return e;let{value:n}=e;if(n===`*`||n===`_`||!_E.test(n)||e.position.end.offset-e.position.start.offset===n.length)return e;let r=t.originalText.slice(e.position.start.offset,e.position.end.offset);return vE.test(r)?e:{...e,value:r}})}function xE(e,t,n){return VT(e,e=>{if(!e.children)return e;let r=[],i,a;for(let o of e.children)i&&t(i,o)?(o=n(i,o),r.splice(-1,1,o),a||=!0):r.push(o),i=o;return a?{...e,children:r}:e})}function SE(e){return xE(e,(e,t)=>e.type===`text`&&t.type===`text`,(e,t)=>({type:`text`,value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}function CE(e){return VT(e,(e,t,[n])=>{if(e.type!==`text`)return e;let{value:r}=e;return n.type===`paragraph`&&(t===0&&(r=gE.trimStart(r)),t===n.children.length-1&&(r=gE.trimEnd(r))),{type:`sentence`,position:e.position,children:LT(r)}})}function wE(e,t){return VT(e,(e,n,r)=>{if(e.type===`code`){let n=/^\n?(?: {4,}|\t)/u.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e<r.length;e++){let t=r[e];if(t.hasIndentedCodeblock)break;t.type===`list`&&(t.hasIndentedCodeblock=!0)}}return e})}function TE(e,t){return VT(e,(e,t,n)=>{if(e.type===`list`&&e.children.length>0){for(let t=0;t<n.length;t++){let r=n[t];if(r.type===`list`&&!r.isAligned)return e.isAligned=!1,e}e.isAligned=r(e)}return e});function n(e){return e.children.length===0?-1:e.children[0].position.start.column-1}function r(e){if(!e.ordered)return!0;let[r,i]=e.children;if(RT(r,t).leadingSpaces.length>1)return!0;let a=n(r);return a===-1?!1:e.children.length===1?a%t.tabWidth===0:a===n(i)?a%t.tabWidth===0?!0:RT(i,t).leadingSpaces.length>1:!1}}var EE=yE;function DE(e,t){let n=[``];return e.each(()=>{let{node:r}=e,i=t();switch(r.type){case`whitespace`:if(FC(i)!==vC){n.push(i,``);break}default:n.push([n.pop(),i])}},`children`),ew(n)}var OE=new Set([`heading`,`tableCell`,`link`,`wikiLink`]),kE=new Set(`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`);function AE({parent:e}){if(e.usesCJSpaces===void 0){let t={" ":0,"":0},{children:n}=e;for(let e=1;e<n.length-1;++e){let r=n[e];if(r.type===`whitespace`&&(r.value===` `||r.value===``)){let i=n[e-1].kind,a=n[e+1].kind;(i===NT&&a===MT||i===MT&&a===NT)&&++t[r.value]}}e.usesCJSpaces=t[` `]>t[``]}return e.usesCJSpaces}function jE(e,t){if(t)return!0;let{previous:n,next:r}=e;if(!n||!r)return!0;let i=n.kind,a=r.kind;return ME(i)&&ME(a)||i===PT&&a===NT||a===PT&&i===NT?!0:i===FT||a===FT||i===NT&&a===NT?!1:kE.has(r.value[0])||kE.has(fC(0,n.value,-1))?!0:n.hasTrailingPunctuation||r.hasLeadingPunctuation?!1:AE(e)}function ME(e){return e===MT||e===PT}function NE(e,t,n,r){if(n!==`always`||e.hasAncestor(e=>OE.has(e.type)))return!1;if(r)return t!==``;let{previous:i,next:a}=e;return!i||!a?!0:t===``?!1:i.kind===PT&&a.kind===NT||a.kind===PT&&i.kind===NT?!0:!(i.isCJ||a.isCJ)}function PE(e,t,n,r){if(n===`preserve`&&t===`
290
+ `)return sw;let i=t===` `||t===`
291
+ `&&jE(e,r);return NE(e,t,n,r)?i?iw:aw:i?` `:``}function FE(e){let{previous:t,next:n}=e;return t?.type===`sentence`&&fC(0,t.children,-1)?.type===`word`&&!fC(0,t.children,-1).hasTrailingPunctuation||n?.type===`sentence`&&n.children[0]?.type===`word`&&!n.children[0].hasLeadingPunctuation}function IE(e,t,n){let{node:r}=e;if(zE(e)){let n=[``],i=LT(t.originalText.slice(r.position.start.offset,r.position.end.offset));for(let r of i){if(r.type===`word`){n.push([n.pop(),r.value]);continue}let i=PE(e,r.value,t.proseWrap,!0);if(FC(i)===vC){n.push([n.pop(),i]);continue}n.push(i,``)}return ew(n)}switch(r.type){case`root`:return r.children.length===0?``:[LE(e,t,n),sw];case`paragraph`:return mE(e,t,n);case`sentence`:return DE(e,n);case`word`:return pE(e);case`whitespace`:{let{next:n}=e,i=n&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(n.value)?`never`:t.proseWrap;return PE(e,r.value,i)}case`emphasis`:{let i;if(HT(r.children[0]))i=t.originalText[r.position.start.offset];else{let t=FE(e),n=e.callParent(({node:t})=>t.type===`strong`&&FE(e));i=t||n||e.hasAncestor(e=>e.type===`emphasis`)?`*`:`_`}return[i,nE(e,t,n),i]}case`strong`:return[`**`,nE(e,t,n),`**`];case`delete`:return[`~~`,nE(e,t,n),`~~`];case`inlineCode`:{let e=t.proseWrap===`preserve`?r.value:mC(0,r.value,`
292
+ `,` `),n=zw(e,"`"),i="`".repeat(n),a=e.startsWith("`")||e.endsWith("`")||/^[\n ]/u.test(e)&&/[\n ]$/u.test(e)&&/[^\n ]/u.test(e)?` `:``;return[i,a,e,a,i]}case`wikiLink`:{let e=``;return e=t.proseWrap===`preserve`?r.value:mC(0,r.value,/[\t\n]+/gu,` `),[`[[`,e,`]]`]}case`link`:switch(t.originalText[r.position.start.offset]){case`<`:{let e=`mailto:`;return[`<`,r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+7)!==e?r.url.slice(7):r.url,`>`]}case`[`:return[`[`,nE(e,t,n),`](`,VE(r.url,`)`),HE(r.title,t),`)`];default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case`image`:return[`![`,r.alt||``,`](`,VE(r.url,`)`),HE(r.title,t),`)`];case`blockquote`:return[`> `,ZC(`> `,nE(e,t,n))];case`heading`:return[`#`.repeat(r.depth)+` `,nE(e,t,n)];case`code`:{if(r.isIndented){let e=` `.repeat(4);return ZC(e,[e,GC(r.value,sw)])}let e=t.__inJsTemplate?`~`:"`",n=e.repeat(Math.max(3,Lw(r.value,e)+1));return[n,r.lang||``,r.meta?` `+r.meta:``,sw,GC(BT(r,t.originalText),sw),sw,n]}case`html`:{let{parent:t,isLast:n}=e,i=t.type===`root`&&n?r.value.trimEnd():r.value;return GC(i,/^<!--.*-->$/su.test(i)?sw:QC(cw))}case`list`:return cE(e,t,n);case`thematicBreak`:{let{ancestors:t}=e,n=t.findIndex(e=>e.type===`list`);return n===-1?`---`:WT(t[n],t[n+1])%2==0?`***`:`---`}case`linkReference`:return[`[`,nE(e,t,n),`]`,r.referenceType===`full`?WE(r):r.referenceType===`collapsed`?`[]`:``];case`imageReference`:switch(r.referenceType){case`full`:return[`![`,r.alt||``,`]`,WE(r)];default:return[`![`,r.alt,`]`,r.referenceType===`collapsed`?`[]`:``]}case`definition`:{let e=t.proseWrap===`always`?iw:` `;return tw([WE(r),`:`,XC([e,VE(r.url),r.title===null?``:[e,HE(r.title,t,!1)]])])}case`footnote`:return[`[^`,nE(e,t,n),`]`];case`footnoteReference`:return GE(r);case`footnoteDefinition`:{let i=r.children.length===1&&r.children[0].type===`paragraph`&&(t.proseWrap===`never`||t.proseWrap===`preserve`&&r.children[0].position.start.line===r.children[0].position.end.line);return[GE(r),`: `,i?nE(e,t,n):tw([ZC(` `.repeat(4),nE(e,t,n,{processor:({isFirst:e})=>e?tw([aw,n()]):n()}))])]}case`table`:return fE(e,t,n);case`tableCell`:return nE(e,t,n);case`break`:return/\s/u.test(t.originalText[r.position.start.offset])?[` `,QC(cw)]:[`\\`,sw];case`liquidNode`:return GC(r.value,sw);case`import`:case`export`:case`jsx`:return r.value.trimEnd();case`esComment`:return[`{/* `,r.value,` */}`];case`math`:return[`$$`,sw,r.value?[GC(r.value,sw),sw]:``,`$$`];case`inlineMath`:return t.originalText.slice(OT(r),kT(r));default:throw new Kw(r,`Markdown`)}}function LE(e,t,n){let r=[],i=null,{children:a}=e.node;for(let[e,t]of a.entries())switch(UT(t)){case`start`:i===null&&(i={index:e,offset:t.position.end.offset});break;case`end`:i!==null&&(r.push({start:i,end:{index:e,offset:t.position.start.offset}}),i=null);break;default:break}return nE(e,t,n,{processor({index:e}){if(r.length>0){let n=r[0];if(e===n.start.index)return[RE(a[n.start.index]),t.originalText.slice(n.start.offset,n.end.offset),RE(a[n.end.index])];if(n.start.index<e&&e<n.end.index)return!1;if(e===n.end.index)return r.shift(),!1}return n()}})}function RE(e){if(e.type===`html`)return e.value;if(e.type===`paragraph`&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type===`esComment`)return[`{/* `,e.children[0].value,` */}`]}function zE(e){let t=e.findAncestor(e=>e.type===`linkReference`||e.type===`imageReference`);return t&&(t.type!==`linkReference`||t.referenceType!==`full`)}var BE=(e,t)=>{for(let n of t)e=mC(0,e,n,encodeURIComponent(n));return e};function VE(e,t=[]){let n=[` `,...Array.isArray(t)?t:[t]];return new RegExp(n.map(e=>gC(e)).join(`|`),`u`).test(e)?`<${BE(e,`<>`)}>`:e}function HE(e,t,n=!0){if(!e)return``;if(n)return` `+HE(e,t,!1);if(e=mC(0,e,/\\(?=["')])/gu,``),e.includes(`"`)&&e.includes(`'`)&&!e.includes(`)`))return`(${e})`;let r=Gw(e,t.singleQuote);return e=mC(0,e,`\\`,`\\\\`),e=mC(0,e,r,`\\${r}`),`${r}${e}${r}`}function UE(e){return e.index>0&&UT(e.previous)===`next`}function WE(e){return`[${(0,hC.default)(e.label)}]`}function GE(e){return`[^${e.label}]`}var KE={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:EE,print:IE,embed:qT,massageAstNode:TT,hasPrettierIgnore:UE,insertPragma:ST,getVisitorKeys:tE},qE=[{name:`Markdown`,type:`prose`,aceMode:`markdown`,extensions:[`.md`,`.livemd`,`.markdown`,`.mdown`,`.mdwn`,`.mkd`,`.mkdn`,`.mkdown`,`.ronn`,`.scd`,`.workbook`],filenames:[`contents.lr`,`README`],tmScope:`text.md`,aliases:[`md`,`pandoc`],codemirrorMode:`gfm`,codemirrorMimeType:`text/x-gfm`,wrap:!0,parsers:[`markdown`],vscodeLanguageIds:[`markdown`],linguistLanguageId:222},{name:`MDX`,type:`prose`,aceMode:`markdown`,extensions:[`.mdx`],filenames:[],tmScope:`text.md`,aliases:[`md`,`pandoc`],codemirrorMode:`gfm`,codemirrorMimeType:`text/x-gfm`,wrap:!0,parsers:[`mdx`],vscodeLanguageIds:[`mdx`],linguistLanguageId:222}],JE={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},YE={proseWrap:JE.proseWrap,singleQuote:JE.singleQuote},XE={};yx(XE,{markdown:()=>bD,mdx:()=>xD,remark:()=>bD});var ZE=xx(Cx(),1),QE=xx(Dx(),1),$E=xx(JS(),1),eD=xx(cC(),1),tD=/^import\s/u,nD=/^export\s/u,rD=`[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|`,iD=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,aD=/^\{\s*\/\*(.*)\*\/\s*\}/u,oD=e=>tD.test(e),sD=e=>nD.test(e),cD=e=>oD(e)||sD(e),lD=(e,t)=>{let n=t.indexOf(`
293
+
294
+ `),r=n===-1?t:t.slice(0,n);if(cD(r))return e(r)({type:sD(r)?`export`:`import`,value:r})};lD.notInBlock=!0,lD.locator=e=>cD(e)?-1:1;var uD=(e,t)=>{let n=aD.exec(t);if(n)return e(n[0])({type:`esComment`,value:n[1].trim()})};uD.locator=(e,t)=>e.indexOf(`{`,t);var dD=function(){let{Parser:e}=this,{blockTokenizers:t,blockMethods:n,inlineTokenizers:r,inlineMethods:i}=e.prototype;t.esSyntax=lD,r.esComment=uD,n.splice(n.indexOf(`paragraph`),0,`esSyntax`),i.splice(i.indexOf(`text`),0,`esComment`)},fD=function(){let e=this.Parser.prototype;e.blockMethods=[`frontMatter`,...e.blockMethods],e.blockTokenizers.frontMatter=t;function t(e,t){let{frontMatter:n}=gT(t);if(n)return e(n.raw)({...n,type:`frontMatter`})}t.onlyAtStart=!0};function pD(){return e=>VT(e,(e,t,[n])=>e.type!==`html`||iD.test(e.value)||jT.has(n.type)?e:{...e,type:`jsx`})}var mD=pD,hD=function(){let e=this.Parser.prototype,t=e.inlineMethods;t.splice(t.indexOf(`text`),0,`liquid`),e.inlineTokenizers.liquid=n;function n(e,t){let n=t.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(n)return e(n[0])({type:`liquidNode`,value:n[0]})}n.locator=function(e,t){return e.indexOf(`{`,t)}},gD=function(){let e=`wikiLink`,t=/^\[\[(?<linkContents>.+?)\]\]/su,n=this.Parser.prototype,r=n.inlineMethods;r.splice(r.indexOf(`link`),0,e),n.inlineTokenizers.wikiLink=i;function i(n,r){let i=t.exec(r);if(i){let t=i.groups.linkContents.trim();return n(i[0])({type:e,value:t})}}i.locator=function(e,t){return e.indexOf(`[`,t)}};function _D({isMDX:e}){return t=>{let n=(0,eD.default)().use($E.default,{commonmark:!0,...e&&{blocks:[rD]}}).use(ZE.default).use(fD).use(QE.default).use(e?dD:vD).use(hD).use(e?mD:vD).use(gD);return n.run(n.parse(t))}}function vD(){}var yD={astFormat:`mdast`,hasPragma:bT,hasIgnorePragma:xT,locStart:OT,locEnd:kT},bD={...yD,parse:_D({isMDX:!1})},xD={...yD,parse:_D({isMDX:!0})},SD={mdast:KE},CD=Object.defineProperty,wD=(e,t)=>{for(var n in t)CD(e,n,{get:t[n],enumerable:!0})},TD={};wD(TD,{languages:()=>gB,options:()=>mB,printers:()=>hB});var ED=[{name:`JavaScript`,type:`programming`,aceMode:`javascript`,extensions:`.js,._js,.bones,.cjs,.es,.es6,.gs,.jake,.javascript,.jsb,.jscad,.jsfl,.jslib,.jsm,.jspre,.jss,.mjs,.njs,.pac,.sjs,.ssjs,.xsjs,.xsjslib,.start.frag,.end.frag,.wxs`.split(`,`),filenames:[`Jakefile`,`start.frag`,`end.frag`],tmScope:`source.js`,aliases:[`js`,`node`],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,interpreters:[`chakra`,`d8`,`gjs`,`js`,`node`,`nodejs`,`qjs`,`rhino`,`v8`,`v8-shell`,`zx`],parsers:[`babel`,`acorn`,`espree`,`meriyah`,`babel-flow`,`babel-ts`,`flow`,`typescript`],vscodeLanguageIds:[`javascript`,`mongo`],linguistLanguageId:183},{name:`Flow`,type:`programming`,aceMode:`javascript`,extensions:[`.js.flow`],filenames:[],tmScope:`source.js`,aliases:[],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,interpreters:[`chakra`,`d8`,`gjs`,`js`,`node`,`nodejs`,`qjs`,`rhino`,`v8`,`v8-shell`],parsers:[`flow`,`babel-flow`],vscodeLanguageIds:[`javascript`],linguistLanguageId:183},{name:`JSX`,type:`programming`,aceMode:`javascript`,extensions:[`.jsx`],filenames:void 0,tmScope:`source.js.jsx`,aliases:void 0,codemirrorMode:`jsx`,codemirrorMimeType:`text/jsx`,interpreters:void 0,parsers:[`babel`,`babel-flow`,`babel-ts`,`flow`,`typescript`,`espree`,`meriyah`],vscodeLanguageIds:[`javascriptreact`],group:`JavaScript`,linguistLanguageId:183},{name:`TypeScript`,type:`programming`,aceMode:`typescript`,extensions:[`.ts`,`.cts`,`.mts`],tmScope:`source.ts`,aliases:[`ts`],codemirrorMode:`javascript`,codemirrorMimeType:`application/typescript`,interpreters:[`bun`,`deno`,`ts-node`,`tsx`],parsers:[`typescript`,`babel-ts`],vscodeLanguageIds:[`typescript`],linguistLanguageId:378},{name:`TSX`,type:`programming`,aceMode:`tsx`,extensions:[`.tsx`],tmScope:`source.tsx`,codemirrorMode:`jsx`,codemirrorMimeType:`text/typescript-jsx`,group:`TypeScript`,parsers:[`typescript`,`babel-ts`],vscodeLanguageIds:[`typescriptreact`],linguistLanguageId:94901924}],DD={};wD(DD,{canAttachComment:()=>DA,embed:()=>QN,features:()=>rB,getVisitorKeys:()=>NO,handleComments:()=>Fj,hasPrettierIgnore:()=>gL,insertPragma:()=>_P,isBlockComment:()=>RO,isGap:()=>Lj,massageAstNode:()=>bA,print:()=>nB,printComment:()=>SP,printPrettierIgnored:()=>nB,willPrintOwnComments:()=>Bj});var OD=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),kD=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},AD=OD(`replaceAll`,function(){if(typeof this==`string`)return kD});function jD(e){return this[e<0?this.length+e:e]}var MD=OD(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return jD});function ND(e){return typeof e==`object`&&!!e}var PD=ND;function*FD(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>PD(e)&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)i(e)&&(yield e);else i(n)&&(yield n)}}function*ID(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of FD(r,t))yield e,n.push(e)}}function LD(e,{getVisitorKeys:t,predicate:n}){for(let r of ID(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var RD=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function zD(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function BD(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var VD=`©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇`,HD=/[^\x20-\x7F]/u,UD=new Set(VD);function WD(e){if(!e)return 0;if(!HD.test(e))return e.length;e=e.replace(RD(),e=>UD.has(e)?` `:` `);let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||e>=65024&&e<=65039||(t+=zD(e)||BD(e)?2:1)}return t}var GD=WD;function KD(e){return(t,n,r)=>{let i=!!r?.backwards;if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var qD=KD(` `),JD=KD(`,; `),YD=KD(/[^\n\r]/u),XD=e=>e===`
295
+ `||e===`\r`||e===`\u2028`||e===`\u2029`;function ZD(e,t,n){let r=!!n?.backwards;if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
296
+ `)return t-2;if(XD(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
297
+ `)return t+2;if(XD(i))return t+1}return t}var QD=ZD;function $D(e,t,n={}){let r=qD(e,n.backwards?t-1:t,n);return r!==QD(e,r,n)}var eO=$D;function tO(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var nO=tO;function rO(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?YD(e,t):t}var iO=rO;function aO(e,t){let n=null,r=t;for(;r!==n;)n=r,r=JD(e,r),r=nO(e,r),r=qD(e,r);return r=iO(e,r),r=QD(e,r),r!==!1&&eO(e,r)}var oO=aO;function sO(e){return Array.isArray(e)&&e.length>0}var cO=sO,lO=()=>{},uO=Object.freeze({character:`'`,codePoint:39}),dO=Object.freeze({character:`"`,codePoint:34}),fO=Object.freeze({preferred:uO,alternate:dO}),pO=Object.freeze({preferred:dO,alternate:uO});function mO(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?fO:pO,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var hO=mO,gO=/\\(["'\\])|(["'])/gu;function _O(e,t){let n=t===`"`?`'`:`"`;return t+AD(0,e,gO,(e,r,i)=>r?r===n?n:e:i===t?`\\`+i:i)+t}var vO=_O;function yO(e,t){/^(?<quote>["']).*\k<quote>$/su.test(e);let n=e.slice(1,-1),r=t.parser===`json`||t.parser===`jsonc`||t.parser===`json5`&&t.quoteProps===`preserve`&&!t.singleQuote?`"`:t.__isInHtmlAttribute?`'`:hO(n,t.singleQuote);return e.charAt(0)===r?e:vO(n,r)}var bO=yO,xO=e=>Number.isInteger(e)&&e>=0;function SO(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(SO(n),t):t}function CO(e){return e.range?.[1]??e.end}function wO(e,t){let n=SO(e);return xO(n)&&n===SO(t)}function TO(e,t){let n=CO(e);return xO(n)&&n===CO(t)}function EO(e,t){return wO(e,t)&&TO(e,t)}var DO=null;function OO(e){if(DO!==null&&typeof DO.property){let e=DO;return DO=OO.prototype=null,e}return DO=OO.prototype=e??Object.create(null),new OO}var kO=10;for(let e=0;e<=kO;e++)OO();function AO(e){return OO(e)}function jO(e,t=`type`){AO(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var MO=jO,H=[[`decorators`,`key`,`typeAnnotation`,`value`],[],[`elementType`],[`expression`],[`expression`,`typeAnnotation`],[`left`,`right`],[`argument`],[`directives`,`body`],[`label`],[`callee`,`typeArguments`,`arguments`],[`body`],[`decorators`,`id`,`typeParameters`,`superClass`,`superTypeArguments`,`mixins`,`implements`,`body`,`superTypeParameters`],[`id`,`typeParameters`],[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],[`name`,`typeAnnotation`],[`test`,`consequent`,`alternate`],[`checkType`,`extendsType`,`trueType`,`falseType`],[`value`],[`id`,`body`],[`declaration`,`specifiers`,`source`,`attributes`],[`id`],[`id`,`typeParameters`,`extends`,`body`],[`typeAnnotation`],[`id`,`typeParameters`,`right`],[`body`,`test`],[`members`],[`id`,`init`],[`exported`],[`left`,`right`,`body`],[`id`,`typeParameters`,`params`,`predicate`,`returnType`,`body`],[`id`,`params`,`body`,`typeParameters`,`returnType`],[`key`,`value`],[`local`],[`objectType`,`indexType`],[`typeParameter`],[`types`],[`node`],[`object`,`property`],[`argument`,`cases`],[`pattern`,`body`,`guard`],[`literal`],[`decorators`,`key`,`value`],[`expressions`],[`qualification`,`id`],[`decorators`,`key`,`typeAnnotation`],[`typeParameters`,`params`,`returnType`],[`expression`,`typeArguments`],[`params`],[`parameterName`,`typeAnnotation`]],NO=MO({AccessorProperty:H[0],AnyTypeAnnotation:H[1],ArgumentPlaceholder:H[1],ArrayExpression:[`elements`],ArrayPattern:[`elements`,`typeAnnotation`,`decorators`],ArrayTypeAnnotation:H[2],ArrowFunctionExpression:[`typeParameters`,`params`,`predicate`,`returnType`,`body`],AsConstExpression:H[3],AsExpression:H[4],AssignmentExpression:H[5],AssignmentPattern:[`left`,`right`,`decorators`,`typeAnnotation`],AwaitExpression:H[6],BigIntLiteral:H[1],BigIntLiteralTypeAnnotation:H[1],BigIntTypeAnnotation:H[1],BinaryExpression:H[5],BindExpression:[`object`,`callee`],BlockStatement:H[7],BooleanLiteral:H[1],BooleanLiteralTypeAnnotation:H[1],BooleanTypeAnnotation:H[1],BreakStatement:H[8],CallExpression:H[9],CatchClause:[`param`,`body`],ChainExpression:H[3],ClassAccessorProperty:H[0],ClassBody:H[10],ClassDeclaration:H[11],ClassExpression:H[11],ClassImplements:H[12],ClassMethod:H[13],ClassPrivateMethod:H[13],ClassPrivateProperty:H[14],ClassProperty:H[14],ComponentDeclaration:[`id`,`params`,`body`,`typeParameters`,`rendersType`],ComponentParameter:[`name`,`local`],ComponentTypeAnnotation:[`params`,`rest`,`typeParameters`,`rendersType`],ComponentTypeParameter:H[15],ConditionalExpression:H[16],ConditionalTypeAnnotation:H[17],ContinueStatement:H[8],DebuggerStatement:H[1],DeclareClass:[`id`,`typeParameters`,`extends`,`mixins`,`implements`,`body`],DeclareComponent:[`id`,`params`,`rest`,`typeParameters`,`rendersType`],DeclaredPredicate:H[18],DeclareEnum:H[19],DeclareExportAllDeclaration:[`source`,`attributes`],DeclareExportDeclaration:H[20],DeclareFunction:[`id`,`predicate`],DeclareHook:H[21],DeclareInterface:H[22],DeclareModule:H[19],DeclareModuleExports:H[23],DeclareNamespace:H[19],DeclareOpaqueType:[`id`,`typeParameters`,`supertype`,`lowerBound`,`upperBound`],DeclareTypeAlias:H[24],DeclareVariable:H[21],Decorator:H[3],Directive:H[18],DirectiveLiteral:H[1],DoExpression:H[10],DoWhileStatement:H[25],EmptyStatement:H[1],EmptyTypeAnnotation:H[1],EnumBigIntBody:H[26],EnumBigIntMember:H[27],EnumBooleanBody:H[26],EnumBooleanMember:H[27],EnumDeclaration:H[19],EnumDefaultedMember:H[21],EnumNumberBody:H[26],EnumNumberMember:H[27],EnumStringBody:H[26],EnumStringMember:H[27],EnumSymbolBody:H[26],ExistsTypeAnnotation:H[1],ExperimentalRestProperty:H[6],ExperimentalSpreadProperty:H[6],ExportAllDeclaration:[`source`,`attributes`,`exported`],ExportDefaultDeclaration:[`declaration`],ExportDefaultSpecifier:H[28],ExportNamedDeclaration:H[20],ExportNamespaceSpecifier:H[28],ExportSpecifier:[`local`,`exported`],ExpressionStatement:H[3],File:[`program`],ForInStatement:H[29],ForOfStatement:H[29],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:H[30],FunctionExpression:H[30],FunctionTypeAnnotation:[`typeParameters`,`this`,`params`,`rest`,`returnType`],FunctionTypeParam:H[15],GenericTypeAnnotation:H[12],HookDeclaration:H[31],HookTypeAnnotation:[`params`,`returnType`,`rest`,`typeParameters`],Identifier:[`typeAnnotation`,`decorators`],IfStatement:H[16],ImportAttribute:H[32],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:H[33],ImportExpression:[`source`,`options`],ImportNamespaceSpecifier:H[33],ImportSpecifier:[`imported`,`local`],IndexedAccessType:H[34],InferredPredicate:H[1],InferTypeAnnotation:H[35],InterfaceDeclaration:H[22],InterfaceExtends:H[12],InterfaceTypeAnnotation:[`extends`,`body`],InterpreterDirective:H[1],IntersectionTypeAnnotation:H[36],JsExpressionRoot:H[37],JsonRoot:H[37],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:H[1],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:H[1],JSXExpressionContainer:H[3],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:H[1],JSXMemberExpression:H[38],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`typeArguments`,`attributes`],JSXOpeningFragment:H[1],JSXSpreadAttribute:H[6],JSXSpreadChild:H[3],JSXText:H[1],KeyofTypeAnnotation:H[6],LabeledStatement:[`label`,`body`],Literal:H[1],LogicalExpression:H[5],MatchArrayPattern:[`elements`,`rest`],MatchAsPattern:[`pattern`,`target`],MatchBindingPattern:H[21],MatchExpression:H[39],MatchExpressionCase:H[40],MatchIdentifierPattern:H[21],MatchLiteralPattern:H[41],MatchMemberPattern:[`base`,`property`],MatchObjectPattern:[`properties`,`rest`],MatchObjectPatternProperty:[`key`,`pattern`],MatchOrPattern:[`patterns`],MatchRestPattern:H[6],MatchStatement:H[39],MatchStatementCase:H[40],MatchUnaryPattern:H[6],MatchWildcardPattern:H[1],MemberExpression:H[38],MetaProperty:[`meta`,`property`],MethodDefinition:H[42],MixedTypeAnnotation:H[1],ModuleExpression:H[10],NeverTypeAnnotation:H[1],NewExpression:H[9],NGChainedExpression:H[43],NGEmptyExpression:H[1],NGMicrosyntax:H[10],NGMicrosyntaxAs:[`key`,`alias`],NGMicrosyntaxExpression:[`expression`,`alias`],NGMicrosyntaxKey:H[1],NGMicrosyntaxKeyedExpression:[`key`,`expression`],NGMicrosyntaxLet:H[32],NGPipeExpression:[`left`,`right`,`arguments`],NGRoot:H[37],NullableTypeAnnotation:H[23],NullLiteral:H[1],NullLiteralTypeAnnotation:H[1],NumberLiteralTypeAnnotation:H[1],NumberTypeAnnotation:H[1],NumericLiteral:H[1],ObjectExpression:[`properties`],ObjectMethod:H[13],ObjectPattern:[`decorators`,`properties`,`typeAnnotation`],ObjectProperty:H[42],ObjectTypeAnnotation:[`properties`,`indexers`,`callProperties`,`internalSlots`],ObjectTypeCallProperty:H[18],ObjectTypeIndexer:[`variance`,`id`,`key`,`value`],ObjectTypeInternalSlot:[`id`,`value`],ObjectTypeMappedTypeProperty:[`keyTparam`,`propType`,`sourceType`,`variance`],ObjectTypeProperty:[`key`,`value`,`variance`],ObjectTypeSpreadProperty:H[6],OpaqueType:[`id`,`typeParameters`,`supertype`,`impltype`,`lowerBound`,`upperBound`],OptionalCallExpression:H[9],OptionalIndexedAccessType:H[34],OptionalMemberExpression:H[38],ParenthesizedExpression:H[3],PipelineBareFunction:[`callee`],PipelinePrimaryTopicReference:H[1],PipelineTopicExpression:H[3],Placeholder:H[1],PrivateIdentifier:H[1],PrivateName:H[21],Program:H[7],Property:H[32],PropertyDefinition:H[14],QualifiedTypeIdentifier:H[44],QualifiedTypeofIdentifier:H[44],RegExpLiteral:H[1],RestElement:[`argument`,`typeAnnotation`,`decorators`],ReturnStatement:H[6],SatisfiesExpression:H[4],SequenceExpression:H[43],SpreadElement:H[6],StaticBlock:H[10],StringLiteral:H[1],StringLiteralTypeAnnotation:H[1],StringTypeAnnotation:H[1],Super:H[1],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],SymbolTypeAnnotation:H[1],TaggedTemplateExpression:[`tag`,`typeArguments`,`quasi`],TemplateElement:H[1],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:H[1],ThisTypeAnnotation:H[1],ThrowStatement:H[6],TopicReference:H[1],TryStatement:[`block`,`handler`,`finalizer`],TSAbstractAccessorProperty:H[45],TSAbstractKeyword:H[1],TSAbstractMethodDefinition:H[32],TSAbstractPropertyDefinition:H[45],TSAnyKeyword:H[1],TSArrayType:H[2],TSAsExpression:H[4],TSAsyncKeyword:H[1],TSBigIntKeyword:H[1],TSBooleanKeyword:H[1],TSCallSignatureDeclaration:H[46],TSClassImplements:H[47],TSConditionalType:H[17],TSConstructorType:H[46],TSConstructSignatureDeclaration:H[46],TSDeclareFunction:H[31],TSDeclareKeyword:H[1],TSDeclareMethod:[`decorators`,`key`,`typeParameters`,`params`,`returnType`],TSEmptyBodyFunctionExpression:[`id`,`typeParameters`,`params`,`returnType`],TSEnumBody:H[26],TSEnumDeclaration:H[19],TSEnumMember:[`id`,`initializer`],TSExportAssignment:H[3],TSExportKeyword:H[1],TSExternalModuleReference:H[3],TSFunctionType:H[46],TSImportEqualsDeclaration:[`id`,`moduleReference`],TSImportType:[`options`,`qualifier`,`typeArguments`,`source`],TSIndexedAccessType:H[34],TSIndexSignature:[`parameters`,`typeAnnotation`],TSInferType:H[35],TSInstantiationExpression:H[47],TSInterfaceBody:H[10],TSInterfaceDeclaration:H[22],TSInterfaceHeritage:H[47],TSIntersectionType:H[36],TSIntrinsicKeyword:H[1],TSJSDocAllType:H[1],TSJSDocNonNullableType:H[23],TSJSDocNullableType:H[23],TSJSDocUnknownType:H[1],TSLiteralType:H[41],TSMappedType:[`key`,`constraint`,`nameType`,`typeAnnotation`],TSMethodSignature:[`key`,`typeParameters`,`params`,`returnType`],TSModuleBlock:H[10],TSModuleDeclaration:H[19],TSNamedTupleMember:[`label`,`elementType`],TSNamespaceExportDeclaration:H[21],TSNeverKeyword:H[1],TSNonNullExpression:H[3],TSNullKeyword:H[1],TSNumberKeyword:H[1],TSObjectKeyword:H[1],TSOptionalType:H[23],TSParameterProperty:[`parameter`,`decorators`],TSParenthesizedType:H[23],TSPrivateKeyword:H[1],TSPropertySignature:[`key`,`typeAnnotation`],TSProtectedKeyword:H[1],TSPublicKeyword:H[1],TSQualifiedName:H[5],TSReadonlyKeyword:H[1],TSRestType:H[23],TSSatisfiesExpression:H[4],TSStaticKeyword:H[1],TSStringKeyword:H[1],TSSymbolKeyword:H[1],TSTemplateLiteralType:[`quasis`,`types`],TSThisType:H[1],TSTupleType:[`elementTypes`],TSTypeAliasDeclaration:[`id`,`typeParameters`,`typeAnnotation`],TSTypeAnnotation:H[23],TSTypeAssertion:H[4],TSTypeLiteral:H[26],TSTypeOperator:H[23],TSTypeParameter:[`name`,`constraint`,`default`],TSTypeParameterDeclaration:H[48],TSTypeParameterInstantiation:H[48],TSTypePredicate:H[49],TSTypeQuery:[`exprName`,`typeArguments`],TSTypeReference:[`typeName`,`typeArguments`],TSUndefinedKeyword:H[1],TSUnionType:H[36],TSUnknownKeyword:H[1],TSVoidKeyword:H[1],TupleTypeAnnotation:[`types`,`elementTypes`],TupleTypeLabeledElement:[`label`,`elementType`,`variance`],TupleTypeSpreadElement:[`label`,`typeAnnotation`],TypeAlias:H[24],TypeAnnotation:H[23],TypeCastExpression:H[4],TypeofTypeAnnotation:[`argument`,`typeArguments`],TypeOperator:H[23],TypeParameter:[`bound`,`default`,`variance`],TypeParameterDeclaration:H[48],TypeParameterInstantiation:H[48],TypePredicate:H[49],UnaryExpression:H[6],UndefinedTypeAnnotation:H[1],UnionTypeAnnotation:H[36],UnknownTypeAnnotation:H[1],UpdateExpression:H[6],V8IntrinsicIdentifier:H[1],VariableDeclaration:[`declarations`],VariableDeclarator:H[27],Variance:H[1],VoidPattern:H[1],VoidTypeAnnotation:H[1],WhileStatement:H[25],WithStatement:[`object`,`body`],YieldExpression:H[6]});function PO(e){let t=new Set(e);return e=>t.has(e?.type)}var FO=PO;function IO(e){return e.extra?.raw??e.raw}var LO=IO,RO=FO([`Block`,`CommentBlock`,`MultiLine`]),zO=FO([`AnyTypeAnnotation`,`ThisTypeAnnotation`,`NumberTypeAnnotation`,`VoidTypeAnnotation`,`BooleanTypeAnnotation`,`BigIntTypeAnnotation`,`SymbolTypeAnnotation`,`StringTypeAnnotation`,`NeverTypeAnnotation`,`UndefinedTypeAnnotation`,`UnknownTypeAnnotation`,`EmptyTypeAnnotation`,`MixedTypeAnnotation`]),BO=FO([`Line`,`CommentLine`,`SingleLine`,`HashbangComment`,`HTMLOpen`,`HTMLClose`,`Hashbang`,`InterpreterDirective`]);function VO(e,t){let n=t.split(`.`);for(let t=n.length-1;t>=0;t--){let r=n[t];if(t===0)return e.type===`Identifier`&&e.name===r;if(t===1&&e.type===`MetaProperty`&&e.property.type===`Identifier`&&e.property.name===r){e=e.meta;continue}if(e.type===`MemberExpression`&&!e.optional&&!e.computed&&e.property.type===`Identifier`&&e.property.name===r){e=e.object;continue}return!1}}function HO(e,t){return t.some(t=>VO(e,t))}var UO=HO;function WO({type:e}){return e.startsWith(`TS`)&&e.endsWith(`Keyword`)}var GO=WO;function KO({node:e,parent:t}){return e?.type===`EmptyStatement`?t.type===`IfStatement`?t.consequent===e||t.alternate===e:t.type===`DoWhileStatement`||t.type===`ForInStatement`||t.type===`ForOfStatement`||t.type===`ForStatement`||t.type===`LabeledStatement`||t.type===`WithStatement`||t.type===`WhileStatement`?t.body===e:!1:!1}var qO=KO;function JO(e,t){return t(e)||LD(e,{getVisitorKeys:NO,predicate:t})}function YO(e){return e.type===`AssignmentExpression`||e.type===`BinaryExpression`||e.type===`LogicalExpression`||e.type===`NGPipeExpression`||e.type===`ConditionalExpression`||Ek(e)||Dk(e)||e.type===`SequenceExpression`||e.type===`TaggedTemplateExpression`||e.type===`BindExpression`||e.type===`UpdateExpression`&&!e.prefix||uA(e)||e.type===`TSNonNullExpression`||e.type===`ChainExpression`}function XO(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function ZO(e){if(e.expressions)return[`expressions`,0];if(e.left)return[`left`];if(e.test)return[`test`];if(e.object)return[`object`];if(e.callee)return[`callee`];if(e.tag)return[`tag`];if(e.argument)return[`argument`];if(e.expression)return[`expression`];throw Error(`Unexpected node has no left side.`)}var QO=FO([`ExportDefaultDeclaration`,`DeclareExportDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`DeclareExportAllDeclaration`]),$O=FO([`ArrayExpression`]),ek=FO([`ObjectExpression`]);function tk(e){return e.type===`LogicalExpression`&&e.operator===`??`}function nk(e){return e.type===`NumericLiteral`||e.type===`Literal`&&typeof e.value==`number`}function rk(e){return e.type===`BooleanLiteral`||e.type===`Literal`&&typeof e.value==`boolean`}function ik(e){return e.type===`UnaryExpression`&&(e.operator===`+`||e.operator===`-`)&&nk(e.argument)}function ak(e){return!!(e&&(e.type===`StringLiteral`||e.type===`Literal`&&typeof e.value==`string`))}function ok(e){return e.type===`RegExpLiteral`||e.type===`Literal`&&!!e.regex}var sk=FO([`Literal`,`BooleanLiteral`,`BigIntLiteral`,`DirectiveLiteral`,`NullLiteral`,`NumericLiteral`,`RegExpLiteral`,`StringLiteral`]),ck=FO([`Identifier`,`ThisExpression`,`Super`,`PrivateName`,`PrivateIdentifier`]),lk=FO([`ObjectTypeAnnotation`,`TSTypeLiteral`,`TSMappedType`]),uk=FO([`FunctionExpression`,`ArrowFunctionExpression`]);function dk(e){return e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`}function fk(e){return Ek(e)&&e.callee.type===`Identifier`&&[`async`,`inject`,`fakeAsync`,`waitForAsync`].includes(e.callee.name)}var pk=FO([`JSXElement`,`JSXFragment`]);function mk(e){return e.method&&e.kind===`init`||e.kind===`get`||e.kind===`set`}function hk(e){return(e.type===`ObjectTypeProperty`||e.type===`ObjectTypeInternalSlot`)&&!e.static&&!e.method&&e.kind!==`get`&&e.kind!==`set`&&e.value.type===`FunctionTypeAnnotation`}function gk(e){return(e.type===`TypeAnnotation`||e.type===`TSTypeAnnotation`)&&e.typeAnnotation.type===`FunctionTypeAnnotation`&&!e.static&&!wO(e,e.typeAnnotation)}var _k=FO([`BinaryExpression`,`LogicalExpression`,`NGPipeExpression`]);function vk(e){return Dk(e)||e.type===`BindExpression`&&!!e.object}var yk=FO([`TSThisType`,`NullLiteralTypeAnnotation`,`BooleanLiteralTypeAnnotation`,`StringLiteralTypeAnnotation`,`BigIntLiteralTypeAnnotation`,`NumberLiteralTypeAnnotation`,`TSLiteralType`,`TSTemplateLiteralType`]);function bk(e){return GO(e)||zO(e)||yk(e)||e.type===`GenericTypeAnnotation`&&!e.typeParameters||e.type===`TSTypeReference`&&!e.typeArguments}function xk(e){return e.type===`Identifier`&&(e.name===`beforeEach`||e.name===`beforeAll`||e.name===`afterEach`||e.name===`afterAll`)}var Sk=`it,it.only,it.skip,describe,describe.only,describe.skip,test,test.only,test.skip,test.fixme,test.step,test.describe,test.describe.only,test.describe.skip,test.describe.fixme,test.describe.parallel,test.describe.parallel.only,test.describe.serial,test.describe.serial.only,skip,xit,xdescribe,xtest,fit,fdescribe,ftest`.split(`,`);function Ck(e){return UO(e,Sk)}function wk(e,t){if(e?.type!==`CallExpression`||e.optional)return!1;let n=eA(e);if(n.length===1){if(fk(e)&&wk(t))return uk(n[0]);if(xk(e.callee))return fk(n[0])}else if((n.length===2||n.length===3)&&(n[0].type===`TemplateLiteral`||ak(n[0]))&&Ck(e.callee))return n[2]&&!nk(n[2])?!1:(n.length===2?uk(n[1]):dk(n[1])&&Zk(n[1]).length<=1)||fk(n[1]);return!1}var Tk=e=>t=>(t?.type===`ChainExpression`&&(t=t.expression),e(t)),Ek=Tk(FO([`CallExpression`,`OptionalCallExpression`])),Dk=Tk(FO([`MemberExpression`,`OptionalMemberExpression`]));function Ok(e,t=5){return kk(e,t)<=t}function kk(e,t){let n=0;for(let r in e){let i=e[r];if(PD(i)&&typeof i.type==`string`&&(n++,n+=kk(i,t-n)),n>t)return n}return n}var Ak=.25;function jk(e,t){let{printWidth:n}=t;if(W(e))return!1;let r=n*Ak;if(e.type===`ThisExpression`||e.type===`Identifier`&&e.name.length<=r||ik(e)&&!W(e.argument))return!0;let i=e.type===`Literal`&&`regex`in e&&e.regex.pattern||e.type===`RegExpLiteral`&&e.pattern;return i?i.length<=r:ak(e)?bO(LO(e),t).length<=r:e.type===`TemplateLiteral`?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
298
+ `):e.type===`UnaryExpression`?jk(e.argument,{printWidth:n}):e.type===`CallExpression`&&e.arguments.length===0&&e.callee.type===`Identifier`?e.callee.name.length<=r-2:sk(e)}function Mk(e,t){return pk(t)?iA(t):W(t,U.Leading,t=>eO(e,CO(t)))}function Nk(e){return e.quasis.some(e=>e.value.raw.includes(`
299
+ `))}function Pk(e,t){return(e.type===`TemplateLiteral`&&Nk(e)||e.type===`TaggedTemplateExpression`&&Nk(e.quasi))&&!eO(t,SO(e),{backwards:!0})}function Fk(e){if(!W(e))return!1;let t=MD(0,oA(e,U.Dangling),-1);return t&&!RO(t)}function Ik(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(uk(n)){if(t+=1,t>1)return!0}else if(Ek(n)){for(let e of eA(n))if(uk(e))return!0}return!1}function Lk(e){let{node:t,parent:n,key:r}=e;return r===`callee`&&Ek(t)&&Ek(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var Rk=new Set([`!`,`-`,`+`,`~`]);function zk(e,t=2){if(t<=0)return!1;if(e.type===`ChainExpression`||e.type===`TSNonNullExpression`)return zk(e.expression,t);let n=e=>zk(e,t-1);if(ok(e))return GD(e.pattern??e.regex.pattern)<=5;if(sk(e)||ck(e)||e.type===`ArgumentPlaceholder`)return!0;if(e.type===`TemplateLiteral`)return e.quasis.every(e=>!e.value.raw.includes(`
300
+ `))&&e.expressions.every(n);if(ek(e))return e.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value)));if($O(e))return e.elements.every(e=>e===null||n(e));if(cA(e)){if(e.type===`ImportExpression`||zk(e.callee,t)){let r=eA(e);return r.length<=t&&r.every(n)}return!1}return Dk(e)?zk(e.object,t)&&zk(e.property,t):e.type===`UnaryExpression`&&Rk.has(e.operator)||e.type===`UpdateExpression`?zk(e.argument,t):!1}function Bk(e,t=`es5`){return e.trailingComma===`es5`&&t===`es5`||e.trailingComma===`all`&&(t===`all`||t===`es5`)}function Vk(e,t){switch(e.type){case`BinaryExpression`:case`LogicalExpression`:case`AssignmentExpression`:case`NGPipeExpression`:return Vk(e.left,t);case`MemberExpression`:case`OptionalMemberExpression`:return Vk(e.object,t);case`TaggedTemplateExpression`:return e.tag.type===`FunctionExpression`?!1:Vk(e.tag,t);case`CallExpression`:case`OptionalCallExpression`:return e.callee.type===`FunctionExpression`?!1:Vk(e.callee,t);case`ConditionalExpression`:return Vk(e.test,t);case`UpdateExpression`:return!e.prefix&&Vk(e.argument,t);case`BindExpression`:return e.object&&Vk(e.object,t);case`SequenceExpression`:return Vk(e.expressions[0],t);case`ChainExpression`:case`TSSatisfiesExpression`:case`TSAsExpression`:case`TSNonNullExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return Vk(e.expression,t);default:return t(e)}}var Hk={"==":!0,"!=":!0,"===":!0,"!==":!0},Uk={"*":!0,"/":!0,"%":!0},Wk={">>":!0,">>>":!0,"<<":!0};function Gk(e,t){return!(qk(t)!==qk(e)||e===`**`||Hk[e]&&Hk[t]||t===`%`&&Uk[e]||e===`%`&&Uk[t]||t!==e&&Uk[t]&&Uk[e]||Wk[e]&&Wk[t])}var Kk=new Map([[`|>`],[`??`],[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`],[`**`]].flatMap((e,t)=>e.map(e=>[e,t])));function qk(e){return Kk.get(e)}function Jk(e){return!!Wk[e]||e===`|`||e===`^`||e===`&`}function Yk(e){return e.rest?!0:MD(0,Zk(e),-1)?.type===`RestElement`}var Xk=new WeakMap;function Zk(e){if(Xk.has(e))return Xk.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),Xk.set(e,t),t}function Qk(e,t){let{node:n}=e,r=0,i=()=>t(e,r++);n.this&&e.call(i,`this`),e.each(i,`params`),n.rest&&e.call(i,`rest`)}var $k=new WeakMap;function eA(e){if($k.has(e))return $k.get(e);if(e.type===`ChainExpression`)return eA(e.expression);let t;return e.type===`ImportExpression`||e.type===`TSImportType`?(t=[e.source],e.options&&t.push(e.options)):t=e.type===`TSExternalModuleReference`?[e.expression]:e.arguments,$k.set(e,t),t}function tA(e,t){let{node:n}=e;if(n.type===`ChainExpression`)return e.call(()=>tA(e,t),`expression`);n.type===`ImportExpression`||n.type===`TSImportType`?(e.call(()=>t(e,0),`source`),n.options&&e.call(()=>t(e,1),`options`)):n.type===`TSExternalModuleReference`?e.call(()=>t(e,0),`expression`):e.each(t,`arguments`)}function nA(e,t){let n=[];if(e.type===`ChainExpression`&&(e=e.expression,n.push(`expression`)),e.type===`ImportExpression`||e.type===`TSImportType`){if(t===0||t===(e.options?-2:-1))return[...n,`source`];if(e.options&&(t===1||t===-1))return[...n,`options`];throw RangeError(`Invalid argument index`)}else if(e.type===`TSExternalModuleReference`){if(t===0||t===-1)return[...n,`expression`]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[...n,`arguments`,t];throw RangeError(`Invalid argument index`)}function rA(e){return e.value.trim()===`prettier-ignore`&&!e.unignore}function iA(e){return e?.prettierIgnore||W(e,U.PrettierIgnore)}var U={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},aA=(e,t)=>{if(typeof e==`function`&&(t=e,e=0),e||t)return(n,r,i)=>!(e&U.Leading&&!n.leading||e&U.Trailing&&!n.trailing||e&U.Dangling&&(n.leading||n.trailing)||e&U.Block&&!RO(n)||e&U.Line&&!BO(n)||e&U.First&&r!==0||e&U.Last&&r!==i.length-1||e&U.PrettierIgnore&&!rA(n)||t&&!t(n))};function W(e,t,n){if(!cO(e?.comments))return!1;let r=aA(t,n);return r?e.comments.some(r):!0}function oA(e,t,n){if(!Array.isArray(e?.comments))return[];let r=aA(t,n);return r?e.comments.filter(r):e.comments}var sA=(e,{originalText:t})=>oO(t,CO(e));function cA(e){return Ek(e)||e.type===`NewExpression`||e.type===`ImportExpression`}function lA(e){return e&&(e.type===`ObjectProperty`||e.type===`Property`&&!mk(e))}var uA=FO([`TSAsExpression`,`TSSatisfiesExpression`,`AsExpression`,`AsConstExpression`,`SatisfiesExpression`]),dA=FO([`TSUnionType`,`UnionTypeAnnotation`]),fA=FO([`TSIntersectionType`,`IntersectionTypeAnnotation`]),pA=FO([`TSConditionalType`,`ConditionalTypeAnnotation`]),mA=e=>e?.type===`TSAsExpression`&&e.typeAnnotation.type===`TSTypeReference`&&e.typeAnnotation.typeName.type===`Identifier`&&e.typeAnnotation.typeName.name===`const`,hA=FO([`TSTypeAliasDeclaration`,`TypeAlias`]);function gA({key:e,parent:t}){return!(e===`types`&&dA(t)||e===`types`&&fA(t))}var _A=new Set([`range`,`raw`,`comments`,`leadingComments`,`trailingComments`,`innerComments`,`extra`,`start`,`end`,`loc`,`flags`,`errors`,`tokens`]),vA=e=>{for(let t of e.quasis)delete t.value};function yA(e,t,n){if(e.type===`Program`&&delete t.sourceType,(e.type===`BigIntLiteral`||e.type===`Literal`)&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type===`EmptyStatement`&&!qO({node:e,parent:n})||e.type===`JSXText`||e.type===`JSXExpressionContainer`&&(e.expression.type===`Literal`||e.expression.type===`StringLiteral`)&&e.expression.value===` `)return null;if((e.type===`Property`||e.type===`ObjectProperty`||e.type===`MethodDefinition`||e.type===`ClassProperty`||e.type===`ClassMethod`||e.type===`PropertyDefinition`||e.type===`TSDeclareMethod`||e.type===`TSPropertySignature`||e.type===`ObjectTypeProperty`||e.type===`ImportAttribute`)&&e.key&&!e.computed){let{key:n}=e;ak(n)||nk(n)?t.key=String(n.value):n.type===`Identifier`&&(t.key=n.name)}if(e.type===`JSXElement`&&e.openingElement.name.name===`style`&&e.openingElement.attributes.some(e=>e.type===`JSXAttribute`&&e.name.name===`jsx`))for(let{type:e,expression:n}of t.children)e===`JSXExpressionContainer`&&n.type===`TemplateLiteral`&&vA(n);e.type===`JSXAttribute`&&e.name.name===`css`&&e.value.type===`JSXExpressionContainer`&&e.value.expression.type===`TemplateLiteral`&&vA(t.value.expression),e.type===`JSXAttribute`&&e.value?.type===`Literal`&&/["']|&quot;|&apos;/u.test(e.value.value)&&(t.value.value=AD(0,e.value.value,/["']|&quot;|&apos;/gu,`"`));let r=e.expression||e.callee;if(e.type===`Decorator`&&r.type===`CallExpression`&&r.callee.name===`Component`&&r.arguments.length===1){let n=e.expression.arguments[0].properties;for(let[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case`styles`:$O(r.value)&&vA(r.value.elements[0]);break;case`template`:r.value.type===`TemplateLiteral`&&vA(r.value);break}}e.type===`TaggedTemplateExpression`&&(e.tag.type===`MemberExpression`||e.tag.type===`Identifier`&&(e.tag.name===`gql`||e.tag.name===`graphql`||e.tag.name===`css`||e.tag.name===`md`||e.tag.name===`markdown`||e.tag.name===`html`)||e.tag.type===`CallExpression`)&&vA(t.quasi),e.type===`TemplateLiteral`&&vA(t),e.type===`ChainExpression`&&e.expression.type===`TSNonNullExpression`&&(t.type=`TSNonNullExpression`,t.expression.type=`ChainExpression`)}yA.ignoredProperties=_A;var bA=yA,xA=FO([`File`,`TemplateElement`,`TSEmptyBodyFunctionExpression`,`ChainExpression`]),SA=(e,[t])=>t?.type===`ComponentParameter`&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type===`MatchObjectPatternProperty`&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type===`ObjectProperty`&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type===`Property`&&t.shorthand&&t.key===e&&!mk(t)&&t.value!==t.key,CA=(e,[t])=>!!(e.type===`FunctionExpression`&&t.type===`MethodDefinition`&&t.value===e&&Zk(e).length===0&&!e.returnType&&!cO(e.typeParameters)&&e.body),wA=(e,[t])=>t?.typeAnnotation===e&&mA(t),TA=(e,[t,...n])=>wA(e,[t])||t?.typeName===e&&wA(t,n);function EA(e,t){return xA(e)||SA(e,t)||CA(e,t)?!1:e.type===`EmptyStatement`?qO({node:e,parent:t[0]}):!(TA(e,t)||e.type===`TSTypeAnnotation`&&t[0].type===`TSPropertySignature`)}var DA=EA;function OA(e){let t=e.type||e.kind||`(unknown type)`,n=String(e.name||e.id&&(typeof e.id==`object`?e.id.name:e.id)||e.key&&(typeof e.key==`object`?e.key.name:e.key)||e.value&&(typeof e.value==`object`?``:String(e.value))||e.operator||``);return n.length>20&&(n=n.slice(0,19)+`…`),t+(n?` `+n:``)}function kA(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=OA(e)}function AA(e,t){t.leading=!0,t.trailing=!1,kA(e,t)}function jA(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),kA(e,t)}function MA(e,t){t.leading=!1,t.trailing=!0,kA(e,t)}function NA(e,t){let n=null,r=t;for(;r!==n;)n=r,r=qD(e,r),r=nO(e,r),r=iO(e,r),r=QD(e,r);return r}var PA=NA;function FA(e,t){let n=PA(e,t);return n===!1?``:e.charAt(n)}var IA=FA;function LA(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
301
+ `)return!0;return!1}var RA=LA,zA=new WeakMap;function BA(e){return zA.has(e)||zA.set(e,RO(e)&&e.value[0]===`*`&&/@(?:type|satisfies)\b/u.test(e.value)),zA.get(e)}var VA=BA,HA=(e,t)=>BO(e)||!RA(t,SO(e),CO(e));function UA(e){return[Tj,ej,uj,lj,QA,YA,XA,ZA,nj,vj,mj,hj,_j,yj,bj,ij,dj,fj,$A,kj,Ej,Mj].some(t=>t(e))}function WA(e){return[JA,uj,ej,yj,YA,XA,ZA,nj,dj,pj,gj,_j,Cj,fj,Dj,Oj,Aj,Ej,Nj,jj,Mj].some(t=>t(e))}function GA(e){return[Tj,YA,XA,cj,ij,_j,sj,oj,fj,wj,Mj].some(t=>t(e))}function KA(e,t){let n=(e.body||e.properties).find(({type:e})=>e!==`EmptyStatement`);n?AA(n,t):jA(e,t)}function qA(e,t){e.type===`BlockStatement`?KA(e,t):AA(e,t)}function JA({comment:e,followingNode:t}){return t&&VA(e)?(AA(t,e),!0):!1}function YA({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){if(n?.type!==`IfStatement`||!r)return!1;if(IA(i,CO(e))===`)`)return MA(t,e),!0;if(r.type===`BlockStatement`&&r===n.consequent&&SO(e)>=CO(t)&&CO(e)<=SO(r))return AA(r,e),!0;if(t===n.consequent&&r===n.alternate){let a=PA(i,CO(n.consequent));if(r.type===`BlockStatement`&&SO(e)>=a&&CO(e)<=SO(r))return AA(r,e),!0;if(SO(e)<a||n.alternate.type===`BlockStatement`)return t.type===`BlockStatement`||HA(e,i)&&!RA(i,SO(t),SO(e))?(MA(t,e),!0):(jA(n,e),!0)}return r.type===`BlockStatement`?(KA(r,e),!0):r.type===`IfStatement`?(qA(r.consequent,e),!0):n.consequent===r?(AA(r,e),!0):!1}function XA({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return n?.type!==`WhileStatement`||!r?!1:IA(i,CO(e))===`)`?(MA(t,e),!0):r.type===`BlockStatement`?(KA(r,e),!0):n.body===r?(AA(r,e),!0):!1}function ZA({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n?.type!==`TryStatement`&&n?.type!==`CatchClause`||!r?!1:n.type===`CatchClause`&&t?(MA(t,e),!0):r.type===`BlockStatement`?(KA(r,e),!0):r.type===`TryStatement`?(qA(r.finalizer,e),!0):r.type===`CatchClause`?(qA(r.body,e),!0):!1}function QA({comment:e,enclosingNode:t,followingNode:n}){return Dk(t)&&n?.type===`Identifier`?(AA(t,e),!0):!1}function $A({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!(t?.type===`ConditionalExpression`||pA(t))?!1:n?.type===`ConditionalExpression`||pA(n)?(jA(t,e),!0):!1}function ej({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i,options:a}){let o=t&&!RA(i,CO(t),SO(e));return(!t||!o)&&(n?.type===`ConditionalExpression`||pA(n))&&r?a.experimentalTernaries&&n.alternate===r&&!(RO(e)&&!RA(a.originalText,SO(e),CO(e)))?(jA(n,e),!0):(AA(r,e),!0):!1}var tj=FO([`ClassDeclaration`,`ClassExpression`,`DeclareClass`,`DeclareInterface`,`InterfaceDeclaration`,`TSInterfaceDeclaration`]);function nj({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(tj(n)){if(cO(n.decorators)&&r?.type!==`Decorator`)return MA(MD(0,n.decorators,-1),e),!0;if(n.body&&r===n.body)return KA(n.body,e),!0;if(r){if(n.superClass&&r===n.superClass&&t&&(t===n.id||t===n.typeParameters))return MA(t,e),!0;for(let i of[`implements`,`extends`,`mixins`])if(n[i]&&r===n[i][0])return t&&(t===n.id||t===n.typeParameters||t===n.superClass)?MA(t,e):jA(n,e,i),!0}}return!1}var rj=FO([`ClassMethod`,`ClassProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`,`MethodDefinition`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`,`TSParameterProperty`]);function ij({comment:e,precedingNode:t,enclosingNode:n,text:r}){return n&&t&&IA(r,CO(e))===`(`&&(n.type===`Property`||n.type===`TSDeclareMethod`||n.type===`TSAbstractMethodDefinition`)&&t.type===`Identifier`&&n.key===t&&IA(r,CO(t))!==`:`||t?.type===`Decorator`&&rj(n)&&(BO(e)||e.placement===`ownLine`)?(MA(t,e),!0):!1}var aj=FO([`FunctionDeclaration`,`FunctionExpression`,`ClassMethod`,`MethodDefinition`,`ObjectMethod`]);function oj({comment:e,precedingNode:t,enclosingNode:n,text:r}){return IA(r,CO(e))===`(`&&t&&aj(n)?(MA(t,e),!0):!1}function sj({comment:e,enclosingNode:t,text:n}){if(t?.type!==`ArrowFunctionExpression`)return!1;let r=PA(n,CO(e));return r!==!1&&n.slice(r,r+2)===`=>`?(jA(t,e),!0):!1}function cj({comment:e,enclosingNode:t,text:n}){return IA(n,CO(e))===`)`?t&&(Pj(t)&&Zk(t).length===0||cA(t)&&eA(t).length===0)?(jA(t,e),!0):(t?.type===`MethodDefinition`||t?.type===`TSAbstractMethodDefinition`)&&Zk(t.value).length===0?(jA(t.value,e),!0):!1:!1}function lj({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return t?.type===`ComponentTypeParameter`&&(n?.type===`DeclareComponent`||n?.type===`ComponentTypeAnnotation`)&&r?.type!==`ComponentTypeParameter`||(t?.type===`ComponentParameter`||t?.type===`RestElement`)&&n?.type===`ComponentDeclaration`&&IA(i,CO(e))===`)`?(MA(t,e),!0):!1}function uj({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return t?.type===`FunctionTypeParam`&&n?.type===`FunctionTypeAnnotation`&&r?.type!==`FunctionTypeParam`||(t?.type===`Identifier`||t?.type===`AssignmentPattern`||t?.type===`ObjectPattern`||t?.type===`ArrayPattern`||t?.type===`RestElement`||t?.type===`TSParameterProperty`)&&Pj(n)&&IA(i,CO(e))===`)`?(MA(t,e),!0):!RO(e)&&r?.type===`BlockStatement`&&aj(n)&&(n.type===`MethodDefinition`?n.value.body:n.body)===r&&PA(i,CO(e))===SO(r)?(KA(r,e),!0):!1}function dj({comment:e,enclosingNode:t}){return t?.type===`LabeledStatement`?(AA(t,e),!0):!1}function fj({comment:e,enclosingNode:t}){return(t?.type===`ContinueStatement`||t?.type===`BreakStatement`)&&!t.label?(MA(t,e),!0):!1}function pj({comment:e,precedingNode:t,enclosingNode:n}){return Ek(n)&&t&&n.callee===t&&n.arguments.length>0?(AA(n.arguments[0],e),!0):!1}function mj({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return dA(n)?(rA(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(MA(t,e),!0):!1):(dA(r)&&rA(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function hj({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n&&n.type===`MatchOrPattern`?(rA(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(MA(t,e),!0):!1):(r&&r.type===`MatchOrPattern`&&rA(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function gj({comment:e,enclosingNode:t}){return lA(t)?(AA(t,e),!0):!1}function _j({comment:e,enclosingNode:t,ast:n,isLastComment:r}){return n?.body?.length===0?(r?jA(n,e):AA(n,e),!0):t?.type===`Program`&&t.body.length===0&&!cO(t.directives)?(r?jA(t,e):AA(t,e),!0):!1}function vj({comment:e,enclosingNode:t,followingNode:n}){return(t?.type===`ForInStatement`||t?.type===`ForOfStatement`)&&n!==t.body?(AA(t,e),!0):!1}function yj({comment:e,precedingNode:t,enclosingNode:n,text:r}){if(n?.type===`ImportSpecifier`||n?.type===`ExportSpecifier`)return AA(n,e),!0;let i=t?.type===`ImportSpecifier`&&n?.type===`ImportDeclaration`,a=t?.type===`ExportSpecifier`&&n?.type===`ExportNamedDeclaration`;return(i||a)&&eO(r,CO(e))?(MA(t,e),!0):!1}function bj({comment:e,enclosingNode:t}){return t?.type===`AssignmentPattern`?(AA(t,e),!0):!1}var xj=FO([`VariableDeclarator`,`AssignmentExpression`,`TypeAlias`,`TSTypeAliasDeclaration`]),Sj=FO([`ObjectExpression`,`ArrayExpression`,`TemplateLiteral`,`TaggedTemplateExpression`,`ObjectTypeAnnotation`,`TSTypeLiteral`]);function Cj({comment:e,enclosingNode:t,followingNode:n}){return xj(t)&&n&&(Sj(n)||RO(e))?(AA(n,e),!0):!1}function wj({comment:e,enclosingNode:t,precedingNode:n,followingNode:r,text:i}){return!r&&(t?.type===`TSMethodSignature`||t?.type===`TSDeclareFunction`||t?.type===`TSAbstractMethodDefinition`)&&(!n||n!==t.returnType)&&IA(i,CO(e))===`;`?(MA(t,e),!0):!1}function Tj({comment:e,enclosingNode:t,followingNode:n}){if(rA(e)&&t?.type===`TSMappedType`&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Ej({comment:e,precedingNode:t,enclosingNode:n}){if(n?.type===`TSMappedType`&&!t)return jA(n,e),!0}function Dj({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!==`SwitchCase`||t.test||!n||n!==t.consequent[0]?!1:(n.type===`BlockStatement`&&BO(e)?KA(n,e):jA(t,e),!0)}function Oj({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return dA(t)&&((n.type===`TSArrayType`||n.type===`ArrayTypeAnnotation`)&&!r||fA(n))?(MA(MD(0,t.types,-1),e),!0):!1}function kj({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if((t?.type===`ObjectPattern`||t?.type===`ArrayPattern`)&&r?.type===`TSTypeAnnotation`)return n?MA(n,e):jA(t,e),!0}function Aj({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return!r&&n?.type===`UnaryExpression`&&(t?.type===`LogicalExpression`||t?.type===`BinaryExpression`)&&RA(i,SO(n.argument),SO(t.right))&&HA(e,i)&&!RA(i,SO(t.right),SO(e))?(MA(t.right,e),!0):!1}function jj({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type===`TSPropertySignature`||e.type===`ObjectTypeProperty`)&&(dA(t)||fA(t)))return AA(t,n),!0}function Mj({enclosingNode:e,precedingNode:t,followingNode:n,comment:r,text:i}){if(uA(e)&&t===e.expression&&!HA(r,i))return n?AA(n,r):MA(e,r),!0}function Nj({comment:e,enclosingNode:t,followingNode:n,precedingNode:r}){return t&&n&&r&&t.type===`ArrowFunctionExpression`&&t.returnType===r&&(r.type===`TSTypeAnnotation`||r.type===`TypeAnnotation`)?(AA(n,e),!0):!1}var Pj=FO([`ArrowFunctionExpression`,`FunctionExpression`,`FunctionDeclaration`,`ObjectMethod`,`ClassMethod`,`TSDeclareFunction`,`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`,`TSMethodSignature`,`TSConstructorType`,`TSFunctionType`,`TSDeclareMethod`]),Fj={endOfLine:WA,ownLine:UA,remaining:GA};function Ij(e,{parser:t}){if(t===`flow`||t===`hermes`||t===`babel-flow`)return e=AD(0,e,/[\s(]/gu,``),e===``||e===`/*`||e===`/*::`}var Lj=Ij,Rj=FO([`ClassDeclaration`,`ClassExpression`,`DeclareClass`,`DeclareInterface`,`InterfaceDeclaration`,`TSInterfaceDeclaration`]);function zj(e){let{key:t,parent:n}=e;if(t===`types`&&dA(n)||t===`argument`&&n.type===`JSXSpreadAttribute`||t===`expression`&&n.type===`JSXSpreadChild`||t===`superClass`&&(n.type===`ClassDeclaration`||n.type===`ClassExpression`)||(t===`id`||t===`typeParameters`)&&Rj(n)||t===`patterns`&&n.type===`MatchOrPattern`)return!0;let{node:r}=e;return iA(r)?!1:dA(r)?gA(e):!!pk(r)}var Bj=zj,Vj=`string`,Hj=`array`,Uj=`cursor`,Wj=`indent`,Gj=`align`,Kj=`trim`,qj=`group`,Jj=`fill`,Yj=`if-break`,Xj=`indent-if-break`,Zj=`line-suffix`,Qj=`line-suffix-boundary`,$j=`line`,eM=`label`,tM=`break-parent`,nM=new Set([Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM]);function rM(e){if(typeof e==`string`)return Vj;if(Array.isArray(e))return Hj;if(!e)return;let{type:t}=e;if(nM.has(t))return t}var iM=rM,aM=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function oM(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
302
+ Expected it to be 'string' or 'object'.`;if(iM(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=aM([...nM].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
303
+ Expected it to be ${r}.`}var sM=class extends Error{name=`InvalidDocError`;constructor(e){super(oM(e)),this.doc=e}},cM={};function lM(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===cM){n(i.pop());continue}n&&i.push(e,cM);let a=iM(e);if(!a)throw new sM(e);if(t?.(e)!==!1)switch(a){case Hj:case Jj:{let t=a===Hj?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case Yj:i.push(e.flatContents,e.breakContents);break;case qj:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);break;case Gj:case Wj:case Xj:case eM:case Zj:i.push(e.contents);break;case Vj:case Uj:case Kj:case Qj:case $j:case tM:break;default:throw new sM(e)}}}var uM=lM;function dM(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(iM(e)){case Hj:return t(e.map(r));case Jj:return t({...e,parts:e.parts.map(r)});case Yj:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case qj:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case Gj:case Wj:case Xj:case eM:case Zj:return t({...e,contents:r(e.contents)});case Vj:case Uj:case Kj:case Qj:case $j:case tM:return t(e);default:throw new sM(e)}}}function fM(e,t,n){let r=n,i=!1;function a(e){if(i)return!1;let n=t(e);n!==void 0&&(i=!0,r=n)}return uM(e,a),r}function pM(e){if(e.type===qj&&e.break||e.type===$j&&e.hard||e.type===tM)return!0}function mM(e){return fM(e,pM,!1)}function hM(e){if(e.length>0){let t=MD(0,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function gM(e){let t=new Set,n=[];function r(e){if(e.type===tM&&hM(n),e.type===qj){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===qj&&n.pop().break&&hM(n)}uM(e,r,i,!0)}function _M(e){return e.type===$j&&!e.hard?e.soft?``:` `:e.type===Yj?e.flatContents:e}function vM(e){return dM(e,_M)}function yM(e){switch(iM(e)){case Jj:if(e.parts.every(e=>e===``))return``;break;case qj:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===qj&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Gj:case Wj:case Xj:case Zj:if(!e.contents)return``;break;case Yj:if(!e.flatContents&&!e.breakContents)return``;break;case Hj:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof MD(0,t,-1)==`string`?t[t.length-1]+=e:t.push(e),t.push(...r)}return t.length===0?``:t.length===1?t[0]:t}case Vj:case Uj:case Kj:case Qj:case $j:case eM:case tM:break;default:throw new sM(e)}return e}function bM(e){return dM(e,e=>yM(e))}function xM(e,t=UM){return dM(e,e=>typeof e==`string`?BM(t,e.split(`
304
+ `)):e)}function SM(e){if(e.type===$j)return!0}function CM(e){return fM(e,SM,!1)}function wM(e,t){return e.type===eM?{...e,contents:t(e.contents)}:t(e)}function TM(e){let t=!0;return uM(e,e=>{switch(iM(e)){case Vj:if(e===``)break;case Kj:case Qj:case $j:case tM:return t=!1,!1}}),t}var EM=lO,DM=lO,OM=lO,kM=lO;function G(e){return EM(e),{type:Wj,contents:e}}function AM(e,t){return kM(e),EM(t),{type:Gj,contents:t,n:e}}function jM(e){return AM(-1/0,e)}function MM(e){return AM(-1,e)}function NM(e,t,n){EM(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=G(r);r=AM(t%n,r),r=AM(-1/0,r)}return r}var PM={type:tM},FM={type:Uj};function IM(e){return OM(e),{type:Jj,parts:e}}function K(e,t={}){return EM(e),DM(t.expandedStates,!0),{type:qj,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function LM(e,t){return K(e[0],{...t,expandedStates:e})}function RM(e,t=``,n={}){return EM(e),t!==``&&EM(t),{type:Yj,breakContents:e,flatContents:t,groupId:n.groupId}}function zM(e,t){return EM(e),{type:Xj,contents:e,groupId:t.groupId,negate:t.negate}}function BM(e,t){EM(e),DM(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function VM(e,t){return EM(t),e?{type:eM,label:e,contents:t}:t}var q={type:$j},J={type:$j,soft:!0},HM={type:$j,hard:!0},Y=[HM,PM],UM=[{type:$j,hard:!0,literal:!0},PM];function WM(e){return EM(e),{type:Zj,contents:e}}var GM={type:Qj},KM=`cr`,qM=`crlf`,JM=`\r`,YM=`\r
305
+ `,XM=`
306
+ `;function ZM(e){return e===KM?JM:e===qM?YM:XM}var QM={type:0},$M={type:1},eN={value:``,length:0,queue:[],get root(){return eN}};function tN(e,t,n){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],i=``,a=0,o=0,s=0;for(let e of r)switch(e.type){case 0:u(),n.useTabs?c(1):l(n.tabWidth);break;case 3:{let{string:t}=e;u(),i+=t,a+=t.length;break}case 2:{let{width:t}=e;o+=1,s+=t;break}default:throw Error(`Unexpected indent comment '${e.type}'.`)}return f(),{...e,value:i,length:a,queue:r};function c(e){i+=` `.repeat(e),a+=n.tabWidth*e}function l(e){i+=` `.repeat(e),a+=e}function u(){n.useTabs?d():f()}function d(){o>0&&c(o),p()}function f(){s>0&&l(s),p()}function p(){o=0,s=0}}function nN(e,t,n){if(!t)return e;if(t.type===`root`)return{...e,root:e};if(t===-1/0)return e.root;let r;return r=typeof t==`number`?t<0?$M:{type:2,width:t}:{type:3,string:t},tN(e,r,n)}function rN(e,t){return tN(e,QM,t)}function iN(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===` `||r===` `)t++;else break}return t}function aN(e){let t=iN(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var oN=Symbol(`MODE_BREAK`),sN=Symbol(`MODE_FLAT`),cN=Symbol(`DOC_FILL_PRINTED_LENGTH`);function lN(e,t,n,r,i,a){if(n===1/0)return!0;let o=t.length,s=!1,c=[e],l=``;for(;n>=0;){if(c.length===0){if(o===0)return!0;c.push(t[--o]);continue}let{mode:e,doc:u}=c.pop(),d=iM(u);switch(d){case Vj:u&&(s&&=(l+=` `,--n,!1),l+=u,n-=GD(u));break;case Hj:case Jj:{let t=d===Hj?u:u.parts,n=u[cN]??0;for(let r=t.length-1;r>=n;r--)c.push({mode:e,doc:t[r]});break}case Wj:case Gj:case Xj:case eM:c.push({mode:e,doc:u.contents});break;case Kj:{let{text:e,count:t}=aN(l);l=e,n+=t;break}case qj:{if(a&&u.break)return!1;let t=u.break?oN:e,n=u.expandedStates&&t===oN?MD(0,u.expandedStates,-1):u.contents;c.push({mode:t,doc:n});break}case Yj:{let t=(u.groupId?i[u.groupId]||sN:e)===oN?u.breakContents:u.flatContents;t&&c.push({mode:e,doc:t});break}case $j:if(e===oN||u.hard)return!0;u.soft||(s=!0);break;case Zj:r=!0;break;case Qj:if(r)return!1;break}}return!1}function uN(e,t){let n=Object.create(null),r=t.printWidth,i=ZM(t.endOfLine),a=0,o=[{indent:eN,mode:oN,doc:e}],s=``,c=!1,l=[],u=[],d=[],f=[],p=0;for(gM(e);o.length>0;){let{indent:e,mode:d,doc:f}=o.pop();switch(iM(f)){case Vj:{let e=i===`
307
+ `?f:AD(0,f,`
308
+ `,i);e&&(s+=e,o.length>0&&(a+=GD(e)));break}case Hj:for(let t=f.length-1;t>=0;t--)o.push({indent:e,mode:d,doc:f[t]});break;case Uj:if(u.length>=2)throw Error(`There are too many 'cursor' in doc.`);u.push(p+s.length);break;case Wj:o.push({indent:rN(e,t),mode:d,doc:f.contents});break;case Gj:o.push({indent:nN(e,f.n,t),mode:d,doc:f.contents});break;case Kj:_();break;case qj:switch(d){case sN:if(!c){o.push({indent:e,mode:f.break?oN:sN,doc:f.contents});break}case oN:{c=!1;let t={indent:e,mode:sN,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&lN(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=MD(0,f.expandedStates,-1);if(f.break){o.push({indent:e,mode:oN,doc:t});break}else for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({indent:e,mode:oN,doc:t});break}else{let t={indent:e,mode:sN,doc:f.expandedStates[r]};if(lN(t,o,i,s,n)){o.push(t);break}}}else o.push({indent:e,mode:oN,doc:f.contents});break}}f.id&&(n[f.id]=MD(0,o,-1).mode);break;case Jj:{let t=r-a,i=f[cN]??0,{parts:s}=f,c=s.length-i;if(c===0)break;let u=s[i+0],p=s[i+1],m={indent:e,mode:sN,doc:u},h={indent:e,mode:oN,doc:u},g=lN(m,[],t,l.length>0,n,!0);if(c===1){g?o.push(m):o.push(h);break}let _={indent:e,mode:sN,doc:p},v={indent:e,mode:oN,doc:p};if(c===2){g?o.push(_,m):o.push(v,h);break}let y=s[i+2],b={indent:e,mode:d,doc:{...f,[cN]:i+2}},x=lN({indent:e,mode:sN,doc:[u,p,y]},[],t,l.length>0,n,!0);o.push(b),x?o.push(_,m):g?o.push(v,m):o.push(v,h);break}case Yj:case Xj:{let t=f.groupId?n[f.groupId]:d;if(t===oN){let t=f.type===Yj?f.breakContents:f.negate?f.contents:G(f.contents);t&&o.push({indent:e,mode:d,doc:t})}if(t===sN){let t=f.type===Yj?f.flatContents:f.negate?G(f.contents):f.contents;t&&o.push({indent:e,mode:d,doc:t})}break}case Zj:l.push({indent:e,mode:d,doc:f.contents});break;case Qj:l.length>0&&o.push({indent:e,mode:d,doc:HM});break;case $j:switch(d){case sN:if(f.hard)c=!0;else{f.soft||(s+=` `,a+=1);break}case oN:if(l.length>0){o.push({indent:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?(s+=i,a=0,e.root&&(e.root.value&&(s+=e.root.value),a=e.root.length)):(_(),s+=i+e.value,a=e.length);break}break;case eM:o.push({indent:e,mode:d,doc:f.contents});break;case tM:break;default:throw new sM(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let m=d.join(``)+s,h=[...f,...u];if(h.length!==2)return{formatted:m};let g=h[0];return{formatted:m,cursorNodeStart:g,cursorNodeText:m.slice(g,MD(0,h,-1))};function _(){let{text:e,count:t}=aN(s);e&&(d.push(e),p+=e.length),s=``,a-=t,u.length>0&&(f.push(...u.map(e=>Math.min(e,p))),u.length=0)}}function dN(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===` `?r=r+t-r%t:r++;return r}var fN=dN;function pN(e,t){let n=e.lastIndexOf(`
309
+ `);return n===-1?0:fN(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var mN=pN;function hN(e,t,n){let{node:r}=e;if(r.type===`TemplateLiteral`&&SN(e)){let r=_N(e,t,n);if(r)return r}let i=`expressions`;r.type===`TSTemplateLiteralType`&&(i=`types`);let a=[],o=e.map(n,i);a.push(GM,"`");let s=0;return e.each(({index:e,node:c})=>{if(a.push(n()),c.tail)return;let{tabWidth:l}=t,u=c.value.raw,d=u.includes(`
310
+ `)?mN(u,l):s;s=d;let f=o[e],p=r[i][e],m=RA(t.originalText,CO(c),SO(r.quasis[e+1]));if(!m){let e=uN(f,{...t,printWidth:1/0}).formatted;e.includes(`
311
+ `)?m=!0:f=e}m&&(W(p)||p.type===`Identifier`||Dk(p)||p.type===`ConditionalExpression`||p.type===`SequenceExpression`||uA(p)||_k(p))&&(f=[G([J,f]),J]);let h=d===0&&u.endsWith(`
312
+ `)?AM(-1/0,f):NM(f,d,l);a.push(K(["${",h,GM,`}`]))},`quasis`),a.push("`"),a}function gN(e,t,n){let r=n(`quasi`),{node:i}=e,a=``,o=oA(i.quasi,U.Leading)[0];return o&&(a=RA(t.originalText,CO(i.typeArguments??i.tag),SO(o))?J:` `),VM(r.label&&{tagged:!0,...r.label},[n(`tag`),n(`typeArguments`),a,GM,r])}function _N(e,t,n){let{node:r}=e,i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(e=>e.length>0)){t.__inJestEach=!0;let a=e.map(n,`expressions`);t.__inJestEach=!1;let o=a.map(e=>"${"+uN(e,{...t,printWidth:1/0,endOfLine:`lf`}).formatted+`}`),s=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<r.quasis.length;e++){let t=MD(0,s,-1),n=o[e-1];t.cells.push(n),n.includes(`
313
+ `)&&(t.hasLineBreak=!0),r.quasis[e].value.raw.includes(`
314
+ `)&&s.push({hasLineBreak:!1,cells:[]})}let c=Math.max(i.length,...s.map(e=>e.cells.length)),l=Array.from({length:c}).fill(0),u=[{cells:i},...s.filter(e=>e.cells.length>0)];for(let{cells:e}of u.filter(e=>!e.hasLineBreak))for(let[t,n]of e.entries())l[t]=Math.max(l[t],GD(n));return[GM,"`",G([Y,BM(Y,u.map(e=>BM(` | `,e.cells.map((t,n)=>e.hasLineBreak?t:t+` `.repeat(l[n]-GD(t))))))]),Y,"`"]}}function vN(e,t){let{node:n}=e,r=t();return W(n)&&(r=K([G([J,r]),J])),["${",r,GM,`}`]}function yN(e,t){return e.map(()=>vN(e,t),`expressions`)}function bN(e,t){return dM(e,e=>typeof e==`string`?t?AD(0,e,/(\\*)`/gu,"$1$1\\`"):xN(e):e)}function xN(e){return AD(0,e,/([\\`]|\$\{)/gu,`\\$1`)}function SN({node:e,parent:t}){let n=/^[fx]?(?:describe|it|test)$/u;return t.type===`TaggedTemplateExpression`&&t.quasi===e&&t.tag.type===`MemberExpression`&&t.tag.property.type===`Identifier`&&t.tag.property.name===`each`&&(t.tag.object.type===`Identifier`&&n.test(t.tag.object.name)||t.tag.object.type===`MemberExpression`&&t.tag.object.property.type===`Identifier`&&(t.tag.object.property.name===`only`||t.tag.object.property.name===`skip`)&&t.tag.object.object.type===`Identifier`&&n.test(t.tag.object.object.name))}var CN=[(e,t)=>e.type===`ObjectExpression`&&t===`properties`,(e,t)=>e.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`Component`&&t===`arguments`,(e,t)=>e.type===`Decorator`&&t===`expression`];function wN(e){let t=e=>e.type===`TemplateLiteral`,n=(e,t)=>lA(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`styles`&&t===`value`;return e.match(t,(e,t)=>$O(e)&&t===`elements`,n,...CN)||e.match(t,n,...CN)}function TN(e){return e.match(e=>e.type===`TemplateLiteral`,(e,t)=>lA(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`template`&&t===`value`,...CN)}function EN(e,t){return W(e,U.Block|U.Leading,({value:e})=>e===` ${t} `)}function DN({node:e,parent:t},n){return EN(e,n)||ON(t)&&EN(t,n)||t.type===`ExpressionStatement`&&EN(t,n)}function ON(e){return e.type===`AsConstExpression`||e.type===`TSAsExpression`&&e.typeAnnotation.type===`TSTypeReference`&&e.typeAnnotation.typeName.type===`Identifier`&&e.typeAnnotation.typeName.name===`const`}async function kN(e,t,n){let{node:r}=n,i=``;for(let[e,t]of r.quasis.entries()){let{raw:n}=t.value;e>0&&(i+=`@prettier-placeholder-`+(e-1)+`-id`),i+=n}let a=AN(await e(i,{parser:`scss`}),yN(n,t));if(!a)throw Error(`Couldn't insert all the expressions`);return["`",G([Y,a]),J,"`"]}function AN(e,t){if(!cO(t))return e;let n=0,r=dM(bM(e),e=>typeof e!=`string`||!e.includes(`@prettier-placeholder`)?e:e.split(/@prettier-placeholder-(\d+)-id/u).map((e,r)=>r%2==0?xM(e):(n++,t[e])));return t.length===n?r:null}function jN(e){return e.match(void 0,(e,t)=>t===`quasi`&&e.type===`TaggedTemplateExpression`&&UO(e.tag,[`css`,`css.global`,`css.resolve`]))||e.match(void 0,(e,t)=>t===`expression`&&e.type===`JSXExpressionContainer`,(e,t)=>t===`children`&&e.type===`JSXElement`&&e.openingElement.name.type===`JSXIdentifier`&&e.openingElement.name.name===`style`&&e.openingElement.attributes.some(e=>e.type===`JSXAttribute`&&e.name.type===`JSXIdentifier`&&e.name.name===`jsx`))}function MN(e){return e.type===`Identifier`&&e.name===`styled`}function NN(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name===`extend`}function PN({parent:e}){if(!e||e.type!==`TaggedTemplateExpression`)return!1;let t=e.tag.type===`ParenthesizedExpression`?e.tag.expression:e.tag;switch(t.type){case`MemberExpression`:return MN(t.object)||NN(t);case`CallExpression`:return MN(t.callee)||t.callee.type===`MemberExpression`&&(t.callee.object.type===`MemberExpression`&&(MN(t.callee.object.object)||NN(t.callee.object))||t.callee.object.type===`CallExpression`&&MN(t.callee.object.callee));case`Identifier`:return t.name===`css`;default:return!1}}function FN({parent:e,grandparent:t}){return t?.type===`JSXAttribute`&&e.type===`JSXExpressionContainer`&&t.name.type===`JSXIdentifier`&&t.name.name===`css`}var IN=e=>jN(e)||PN(e)||FN(e)||wN(e);async function LN(e,t,n){let{node:r}=n,i=r.quasis.length,a=yN(n,t),o=[];for(let t=0;t<i;t++){let n=r.quasis[t],s=t===0,c=t===i-1,l=n.value.cooked,u=l.split(`
315
+ `),d=u.length,f=a[t],p=d>2&&u[0].trim()===``&&u[1].trim()===``,m=d>2&&u[d-1].trim()===``&&u[d-2].trim()===``,h=u.every(e=>/^\s*(?:#[^\n\r]*)?$/u.test(e));if(!c&&/#[^\n\r]*$/u.test(u[d-1]))return null;let g=null;g=h?RN(u):await e(l,{parser:`graphql`}),g?(g=bN(g,!1),!s&&p&&o.push(``),o.push(g),!c&&m&&o.push(``)):!s&&!c&&p&&o.push(``),f&&o.push(f)}return["`",G([Y,BM(Y,o)]),Y,"`"]}function RN(e){let t=[],n=!1,r=e.map(e=>e.trim());for(let[e,i]of r.entries())i!==``&&(r[e-1]===``&&n?t.push([Y,i]):t.push(i),n=!0);return t.length===0?null:BM(Y,t)}function zN({node:e,parent:t}){return DN({node:e,parent:t},`GraphQL`)||t&&(t.type===`TaggedTemplateExpression`&&(t.tag.type===`MemberExpression`&&t.tag.object.name===`graphql`&&t.tag.property.name===`experimental`||t.tag.type===`Identifier`&&(t.tag.name===`gql`||t.tag.name===`graphql`))||t.type===`CallExpression`&&t.callee.type===`Identifier`&&t.callee.name===`graphql`)}var BN=0;async function VN(e,t,n,r,i){let{node:a}=r,o=BN;BN=BN+1>>>0;let s=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${o}_IN_JS`,c=a.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+s(t)).join(``),l=yN(r,n),u=new RegExp(s(`(\\d+)`),`gu`),d=0,f=dM(await t(c,{parser:e,__onHtmlRoot(e){d=e.children.length}}),e=>{if(typeof e!=`string`)return e;let t=[],n=e.split(u);for(let e=0;e<n.length;e++){let r=n[e];if(e%2==0){r&&(r=xN(r),i.__embeddedInHtml&&(r=AD(0,r,/<\/(?=script\b)/giu,`<\\/`)),t.push(r));continue}let a=Number(r);t.push(l[a])}return t}),p=/^\s/u.test(c)?` `:``,m=/\s$/u.test(c)?` `:``,h=i.htmlWhitespaceSensitivity===`ignore`?Y:p&&m?q:null;return h?K(["`",G([h,K(f)]),h,"`"]):VM({hug:!1},K(["`",p,d>1?G(K(f)):K(f),m,"`"]))}function HN(e){return DN(e,`HTML`)||e.match(e=>e.type===`TemplateLiteral`,(e,t)=>e.type===`TaggedTemplateExpression`&&e.tag.type===`Identifier`&&e.tag.name===`html`&&t===`quasi`)}var UN=VN.bind(void 0,`html`),WN=VN.bind(void 0,`angular`);async function GN(e,t,n){let{node:r}=n,i=AD(0,r.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(e,t)=>`\\`.repeat(t.length/2)+"`"),a=KN(i),o=a!==``;o&&(i=AD(0,i,RegExp(`^${a}`,`gmu`),``));let s=bN(await e(i,{parser:`markdown`,__inJsTemplate:!0}),!0);return["`",o?G([J,s]):[UM,jM(s)],J,"`"]}function KN(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?``:t[1]}function qN({node:e,parent:t}){return t?.type===`TaggedTemplateExpression`&&e.quasis.length===1&&t.tag.type===`Identifier`&&(t.tag.name===`md`||t.tag.name===`markdown`)}var JN=[{test:IN,print:kN},{test:zN,print:LN},{test:HN,print:UN},{test:TN,print:WN},{test:qN,print:GN}].map(({test:e,print:t})=>({test:e,print:XN(t)}));function YN(e){let{node:t}=e;if(t.type!==`TemplateLiteral`||ZN(t))return;let n=JN.find(({test:t})=>t(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===``?"``":n.print}function XN(e){return async(...t)=>{let n=await e(...t);return n&&VM({embed:!0,...n.label},n)}}function ZN({quasis:e}){return e.some(({value:{cooked:e}})=>e===null)}var QN=YN,$N=/\*\/$/,eP=/^\/\*\*?/,tP=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,nP=/(^|\s+)\/\/([^\n\r]*)/g,rP=/^(\r?\n)+/,iP=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,aP=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,oP=/(\r?\n|^) *\* ?/g,sP=[];function cP(e){let t=e.match(tP);return t?t[0].trimStart():``}function lP(e){let t=e.match(tP)?.[0];return t==null?e:e.slice(t.length)}function uP(e){e=AD(0,e.replace(eP,``).replace($N,``),oP,`$1`);let t=``;for(;t!==e;)t=e,e=AD(0,e,iP,`
316
+ $1 $2
317
+ `);e=e.replace(rP,``).trimEnd();let n=Object.create(null),r=AD(0,e,aP,``).replace(rP,``).trimEnd(),i;for(;i=aP.exec(e);){let e=AD(0,i[2],nP,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...sP,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}function dP({comments:e=``,pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(e=>fP(e,t[e])).map(e=>` * ${e}
318
+ `).join(``);if(!e){if(n.length===0)return``;if(n.length===1&&!Array.isArray(t[n[0]])){let e=t[n[0]];return`/** ${fP(n[0],e)[0]} */`}}let i=e.split(`
319
+ `).map(e=>` * ${e}`).join(`
320
+ `)+`
321
+ `;return`/**
322
+ `+(e?i:``)+(e&&n.length>0?` *
323
+ `:``)+r+` */`}function fP(e,t){return[...sP,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var pP=`format`;function mP(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
324
+ `);return t===-1?e:e.slice(0,t)}var hP=mP;function gP(e){let t=hP(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=uP(cP(e));return{shebang:t,text:e,pragmas:n,comments:r}}function _P(e){let{shebang:t,text:n,pragmas:r,comments:i}=gP(e),a=lP(n),o=dP({pragmas:{[pP]:``,...r},comments:i.trimStart()});return(t?`${t}
325
+ `:``)+o+(a.startsWith(`
326
+ `)?`
327
+ `:`
328
+
329
+ `)+a}function vP(e){if(!RO(e))return!1;let t=`*${e.value}*`.split(`
330
+ `);return t.length>1&&t.every(e=>e.trimStart()[0]===`*`)}var yP=new WeakMap;function bP(e){return yP.has(e)||yP.set(e,vP(e)),yP.get(e)}var xP=bP;function SP(e,t){let n=e.node;if(BO(n))return t.originalText.slice(SO(n),CO(n)).trimEnd();if(xP(n))return CP(n);if(RO(n))return[`/*`,xM(n.value),`*/`];throw Error(`Not a comment: `+JSON.stringify(n))}function CP(e){let t=e.value.split(`
331
+ `);return[`/*`,BM(Y,t.map((e,n)=>n===0?e.trimEnd():` `+(n<t.length-1?e.trim():e.trimStart()))),`*/`]}function wP(e,t){if(e.isRoot)return!1;let{node:n,key:r,parent:i}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&OP(n)&&kP(e))return!0;if(TP(n))return!1;if(n.type===`Identifier`){if(n.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(n.name)||r===`left`&&(n.name===`async`&&!i.await||n.name===`let`)&&i.type===`ForOfStatement`)return!0;if(n.name===`let`){let t=e.findAncestor(e=>e.type===`ForOfStatement`)?.left;if(t&&Vk(t,e=>e===n))return!0}if(r===`object`&&n.name===`let`&&i.type===`MemberExpression`&&i.computed&&!i.optional){let t=e.findAncestor(e=>e.type===`ExpressionStatement`||e.type===`ForStatement`||e.type===`ForInStatement`),r=t?t.type===`ExpressionStatement`?t.expression:t.type===`ForStatement`?t.init:t.left:void 0;if(r&&Vk(r,e=>e===n))return!0}if(r===`expression`)switch(n.name){case`await`:case`interface`:case`module`:case`using`:case`yield`:case`let`:case`component`:case`hook`:case`type`:{let t=e.findAncestor(e=>!uA(e));if(t!==i&&t.type===`ExpressionStatement`)return!0}}return!1}if(n.type===`ObjectExpression`||n.type===`FunctionExpression`||n.type===`ClassExpression`||n.type===`DoExpression`){let t=e.findAncestor(e=>e.type===`ExpressionStatement`)?.expression;if(t&&Vk(t,e=>e===n))return!0}if(n.type===`ObjectExpression`){let t=e.findAncestor(e=>e.type===`ArrowFunctionExpression`)?.body;if(t&&t.type!==`SequenceExpression`&&t.type!==`AssignmentExpression`&&Vk(t,e=>e===n))return!0}switch(i.type){case`ParenthesizedExpression`:return!1;case`ClassDeclaration`:case`ClassExpression`:if(r===`superClass`&&(n.type===`ArrowFunctionExpression`||n.type===`AssignmentExpression`||n.type===`AwaitExpression`||n.type===`BinaryExpression`||n.type===`ConditionalExpression`||n.type===`LogicalExpression`||n.type===`NewExpression`||n.type===`ObjectExpression`||n.type===`SequenceExpression`||n.type===`TaggedTemplateExpression`||n.type===`UnaryExpression`||n.type===`UpdateExpression`||n.type===`YieldExpression`||n.type===`TSNonNullExpression`||n.type===`ClassExpression`&&cO(n.decorators)))return!0;break;case`ExportDefaultDeclaration`:return AP(e,t)||n.type===`SequenceExpression`;case`Decorator`:if(r===`expression`&&!NP(n))return!0;break;case`TypeAnnotation`:if(e.match(void 0,void 0,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)&&DP(n))return!0;break;case`BinaryExpression`:if(r===`left`&&(i.operator===`in`||i.operator===`instanceof`)&&n.type===`UnaryExpression`)return!0;break;case`VariableDeclarator`:if(r===`init`&&e.match(void 0,void 0,(e,t)=>t===`declarations`&&e.type===`VariableDeclaration`,(e,t)=>t===`left`&&e.type===`ForInStatement`))return!0;break}switch(n.type){case`UpdateExpression`:if(i.type===`UnaryExpression`)return n.prefix&&(n.operator===`++`&&i.operator===`+`||n.operator===`--`&&i.operator===`-`);case`UnaryExpression`:switch(i.type){case`UnaryExpression`:return n.operator===i.operator&&(n.operator===`+`||n.operator===`-`);case`BindExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;case`TaggedTemplateExpression`:return!0;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`BinaryExpression`:return r===`left`&&i.operator===`**`;case`TSNonNullExpression`:return!0;default:return!1}case`BinaryExpression`:if(i.type===`UpdateExpression`||n.operator===`in`&&EP(e))return!0;if(n.operator===`|>`&&n.extra?.parenthesized){let t=e.grandparent;if(t.type===`BinaryExpression`&&t.operator===`|>`)return!0}case`TSTypeAssertion`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`LogicalExpression`:switch(i.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return!uA(n);case`ConditionalExpression`:return uA(n)||tk(n);case`CallExpression`:case`NewExpression`:case`OptionalCallExpression`:return r===`callee`;case`ClassExpression`:case`ClassDeclaration`:return r===`superClass`;case`TSTypeAssertion`:case`TaggedTemplateExpression`:case`UnaryExpression`:case`JSXSpreadAttribute`:case`SpreadElement`:case`BindExpression`:case`AwaitExpression`:case`TSNonNullExpression`:case`UpdateExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;case`AssignmentExpression`:case`AssignmentPattern`:return r===`left`&&(n.type===`TSTypeAssertion`||uA(n));case`LogicalExpression`:if(n.type===`LogicalExpression`)return i.operator!==n.operator;case`BinaryExpression`:{let{operator:e,type:t}=n;if(!e&&t!==`TSTypeAssertion`)return!0;let a=qk(e),o=i.operator,s=qk(o);return!!(s>a||r===`right`&&s===a||s===a&&!Gk(o,e)||s<a&&e===`%`&&(o===`+`||o===`-`)||Jk(o))}default:return!1}case`SequenceExpression`:return i.type!==`ForStatement`;case`YieldExpression`:if(i.type===`AwaitExpression`||i.type===`TSTypeAssertion`)return!0;case`AwaitExpression`:switch(i.type){case`TaggedTemplateExpression`:case`UnaryExpression`:case`LogicalExpression`:case`SpreadElement`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`BindExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`ConditionalExpression`:return r===`test`;case`BinaryExpression`:return!(!n.argument&&i.operator===`|>`);default:return!1}case`TSFunctionType`:if(e.match(e=>e.type===`TSFunctionType`,(e,t)=>t===`typeAnnotation`&&e.type===`TSTypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`))return!0;case`TSConditionalType`:case`TSConstructorType`:case`ConditionalTypeAnnotation`:if(r===`extendsType`&&pA(n)&&i.type===n.type||r===`checkType`&&pA(i))return!0;if(r===`extendsType`&&i.type===`TSConditionalType`){let{typeAnnotation:e}=n.returnType||n.typeAnnotation;if(e.type===`TSTypePredicate`&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),e.type===`TSInferType`&&e.typeParameter.constraint)return!0}case`TSUnionType`:case`TSIntersectionType`:if(dA(i)||fA(i))return!0;case`TSInferType`:if(n.type===`TSInferType`){if(i.type===`TSRestType`)return!1;if(r===`types`&&(i.type===`TSUnionType`||i.type===`TSIntersectionType`)&&n.typeParameter.type===`TSTypeParameter`&&n.typeParameter.constraint)return!0}case`TSTypeOperator`:return i.type===`TSArrayType`||i.type===`TSOptionalType`||i.type===`TSRestType`||r===`objectType`&&i.type===`TSIndexedAccessType`||i.type===`TSTypeOperator`||i.type===`TSTypeAnnotation`&&e.grandparent.type.startsWith(`TSJSDoc`);case`TSTypeQuery`:return r===`objectType`&&i.type===`TSIndexedAccessType`||r===`elementType`&&i.type===`TSArrayType`;case`TypeOperator`:return i.type===`ArrayTypeAnnotation`||i.type===`NullableTypeAnnotation`||r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`)||i.type===`TypeOperator`;case`TypeofTypeAnnotation`:return r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`)||r===`elementType`&&i.type===`ArrayTypeAnnotation`;case`ArrayTypeAnnotation`:return i.type===`NullableTypeAnnotation`;case`IntersectionTypeAnnotation`:case`UnionTypeAnnotation`:return i.type===`TypeOperator`||i.type===`KeyofTypeAnnotation`||i.type===`ArrayTypeAnnotation`||i.type===`NullableTypeAnnotation`||i.type===`IntersectionTypeAnnotation`||i.type===`UnionTypeAnnotation`||r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`);case`InferTypeAnnotation`:case`NullableTypeAnnotation`:return i.type===`ArrayTypeAnnotation`||r===`objectType`&&(i.type===`IndexedAccessType`||i.type===`OptionalIndexedAccessType`);case`ComponentTypeAnnotation`:case`FunctionTypeAnnotation`:{if(n.type===`ComponentTypeAnnotation`&&(n.rendersType===null||n.rendersType===void 0))return!1;if(e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`TypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)||e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`TypePredicate`,(e,t)=>t===`typeAnnotation`&&e.type===`TypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`))return!0;let t=i.type===`NullableTypeAnnotation`?e.grandparent:i;return t.type===`UnionTypeAnnotation`||t.type===`IntersectionTypeAnnotation`||t.type===`ArrayTypeAnnotation`||r===`objectType`&&(t.type===`IndexedAccessType`||t.type===`OptionalIndexedAccessType`)||r===`checkType`&&i.type===`ConditionalTypeAnnotation`||r===`extendsType`&&i.type===`ConditionalTypeAnnotation`&&n.returnType?.type===`InferTypeAnnotation`&&n.returnType?.typeParameter.bound||t.type===`NullableTypeAnnotation`||i.type===`FunctionTypeParam`&&i.name===null&&Zk(n).some(e=>e.typeAnnotation?.type===`NullableTypeAnnotation`)}case`OptionalIndexedAccessType`:return r===`objectType`&&i.type===`IndexedAccessType`;case`StringLiteral`:case`NumericLiteral`:case`Literal`:if(typeof n.value==`string`&&i.type===`ExpressionStatement`&&typeof i.directive!=`string`){let t=e.grandparent;return t.type===`Program`||t.type===`BlockStatement`}return r===`object`&&Dk(i)&&nk(n);case`AssignmentExpression`:return!((r===`init`||r===`update`)&&i.type===`ForStatement`||r===`expression`&&n.left.type!==`ObjectPattern`&&i.type===`ExpressionStatement`||r===`key`&&i.type===`TSPropertySignature`||i.type===`AssignmentExpression`||r===`expressions`&&i.type===`SequenceExpression`&&e.match(void 0,void 0,(e,t)=>(t===`init`||t===`update`)&&e.type===`ForStatement`)||r===`value`&&i.type===`Property`&&e.match(void 0,void 0,(e,t)=>t===`properties`&&e.type===`ObjectPattern`)||i.type===`NGChainedExpression`||r===`node`&&i.type===`JsExpressionRoot`);case`ConditionalExpression`:switch(i.type){case`TaggedTemplateExpression`:case`UnaryExpression`:case`SpreadElement`:case`BinaryExpression`:case`LogicalExpression`:case`NGPipeExpression`:case`ExportDefaultDeclaration`:case`AwaitExpression`:case`JSXSpreadAttribute`:case`TSTypeAssertion`:case`TypeCastExpression`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`TSNonNullExpression`:return!0;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`ConditionalExpression`:return t.experimentalTernaries?!1:r===`test`;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;default:return!1}case`FunctionExpression`:switch(i.type){case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`TaggedTemplateExpression`:return!0;default:return!1}case`ArrowFunctionExpression`:switch(i.type){case`BinaryExpression`:return i.operator!==`|>`||n.extra?.parenthesized;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return r===`callee`;case`MemberExpression`:case`OptionalMemberExpression`:return r===`object`;case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`TSNonNullExpression`:case`BindExpression`:case`TaggedTemplateExpression`:case`UnaryExpression`:case`LogicalExpression`:case`AwaitExpression`:case`TSTypeAssertion`:case`MatchExpressionCase`:return!0;case`TSInstantiationExpression`:return r===`expression`;case`ConditionalExpression`:return r===`test`;default:return!1}case`ClassExpression`:switch(i.type){case`NewExpression`:return r===`callee`;default:return!1}case`OptionalMemberExpression`:case`OptionalCallExpression`:case`CallExpression`:case`MemberExpression`:if(jP(e))return!0;case`TaggedTemplateExpression`:case`TSNonNullExpression`:if(r===`callee`&&(i.type===`BindExpression`||i.type===`NewExpression`)){let e=n;for(;e;)switch(e.type){case`CallExpression`:case`OptionalCallExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:case`BindExpression`:e=e.object;break;case`TaggedTemplateExpression`:e=e.tag;break;case`TSNonNullExpression`:e=e.expression;break;default:return!1}}return!1;case`BindExpression`:return r===`callee`&&(i.type===`BindExpression`||i.type===`NewExpression`)||r===`object`&&Dk(i);case`NGPipeExpression`:return!(i.type===`NGRoot`||i.type===`NGMicrosyntaxExpression`||i.type===`ObjectProperty`&&!n.extra?.parenthesized||$O(i)||r===`arguments`&&Ek(i)||r===`right`&&i.type===`NGPipeExpression`||r===`property`&&i.type===`MemberExpression`||i.type===`AssignmentExpression`);case`JSXFragment`:case`JSXElement`:return r===`callee`||r===`left`&&i.type===`BinaryExpression`&&i.operator===`<`||!$O(i)&&i.type!==`ArrowFunctionExpression`&&i.type!==`AssignmentExpression`&&i.type!==`AssignmentPattern`&&i.type!==`BinaryExpression`&&i.type!==`NewExpression`&&i.type!==`ConditionalExpression`&&i.type!==`ExpressionStatement`&&i.type!==`JsExpressionRoot`&&i.type!==`JSXAttribute`&&i.type!==`JSXElement`&&i.type!==`JSXExpressionContainer`&&i.type!==`JSXFragment`&&i.type!==`LogicalExpression`&&!Ek(i)&&!lA(i)&&i.type!==`ReturnStatement`&&i.type!==`ThrowStatement`&&i.type!==`TypeCastExpression`&&i.type!==`VariableDeclarator`&&i.type!==`YieldExpression`&&i.type!==`MatchExpressionCase`;case`TSInstantiationExpression`:return r===`object`&&Dk(i);case`MatchOrPattern`:return i.type===`MatchAsPattern`}return!1}var TP=FO(`BlockStatement.BreakStatement.ComponentDeclaration.ClassBody.ClassDeclaration.ClassMethod.ClassProperty.PropertyDefinition.ClassPrivateProperty.ContinueStatement.DebuggerStatement.DeclareComponent.DeclareClass.DeclareExportAllDeclaration.DeclareExportDeclaration.DeclareFunction.DeclareHook.DeclareInterface.DeclareModule.DeclareModuleExports.DeclareNamespace.DeclareVariable.DeclareEnum.DoWhileStatement.EnumDeclaration.ExportAllDeclaration.ExportDefaultDeclaration.ExportNamedDeclaration.ExpressionStatement.ForInStatement.ForOfStatement.ForStatement.FunctionDeclaration.HookDeclaration.IfStatement.ImportDeclaration.InterfaceDeclaration.LabeledStatement.MethodDefinition.ReturnStatement.SwitchStatement.ThrowStatement.TryStatement.TSDeclareFunction.TSEnumDeclaration.TSImportEqualsDeclaration.TSInterfaceDeclaration.TSModuleDeclaration.TSNamespaceExportDeclaration.TypeAlias.VariableDeclaration.WhileStatement.WithStatement`.split(`.`));function EP(e){let t=0,{node:n}=e;for(;n;){let r=e.getParentNode(t++);if(r?.type===`ForStatement`&&r.init===n)return!0;n=r}return!1}function DP(e){return JO(e,e=>e.type===`ObjectTypeAnnotation`&&JO(e,e=>e.type===`FunctionTypeAnnotation`))}function OP(e){return ek(e)}function kP(e){let{parent:t,key:n}=e;switch(t.type){case`NGPipeExpression`:if(n===`arguments`&&e.isLast)return e.callParent(kP);break;case`ObjectProperty`:if(n===`value`)return e.callParent(()=>e.key===`properties`&&e.isLast);break;case`BinaryExpression`:case`LogicalExpression`:if(n===`right`)return e.callParent(kP);break;case`ConditionalExpression`:if(n===`alternate`)return e.callParent(kP);break;case`UnaryExpression`:if(t.prefix)return e.callParent(kP);break}return!1}function AP(e,t){let{node:n,parent:r}=e;return n.type===`FunctionExpression`||n.type===`ClassExpression`?r.type===`ExportDefaultDeclaration`||!wP(e,t):!YO(n)||r.type!==`ExportDefaultDeclaration`&&wP(e,t)?!1:e.call(()=>AP(e,t),...ZO(n))}function jP(e){return!!(e.match(void 0,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(e=>e.type===`OptionalCallExpression`||e.type===`OptionalMemberExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(e=>e.type===`OptionalCallExpression`||e.type===`OptionalMemberExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(void 0,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(void 0,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`tag`&&e.type===`TaggedTemplateExpression`)||e.match(e=>e.type===`OptionalMemberExpression`||e.type===`OptionalCallExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&(e.type===`CallExpression`||e.type===`NewExpression`))||e.match(e=>e.type===`OptionalMemberExpression`||e.type===`OptionalCallExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&e.type===`CallExpression`)||e.match(e=>e.type===`CallExpression`||e.type===`MemberExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`)&&(e.match(void 0,void 0,(e,t)=>t===`callee`&&(e.type===`CallExpression`&&!e.optional||e.type===`NewExpression`)||t===`object`&&e.type===`MemberExpression`&&!e.optional)||e.match(void 0,void 0,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&e.type===`CallExpression`))||e.match(e=>e.type===`CallExpression`||e.type===`MemberExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`||t===`callee`&&e.type===`CallExpression`))}function MP(e){return e.type===`Identifier`?!0:Dk(e)?!e.computed&&!e.optional&&e.property.type===`Identifier`&&MP(e.object):!1}function NP(e){return e.type===`ChainExpression`&&(e=e.expression),MP(e)||Ek(e)&&!e.optional&&MP(e.callee)}var PP=wP;function FP(e,t){let n=t-1;n=qD(e,n,{backwards:!0}),n=QD(e,n,{backwards:!0}),n=qD(e,n,{backwards:!0});let r=QD(e,n,{backwards:!0});return n!==r}var IP=FP,LP=()=>!0;function RP(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function zP(e,t){let n=e.node,r=[RP(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.(n)){let e=eO(a,s(n))?eO(a,o(n),{backwards:!0})?Y:q:` `;r.push(e)}else r.push(Y);let c=QD(a,qD(a,s(n)));return c!==!1&&eO(a,c)&&r.push(Y),r}function BP(e,t,n){let r=e.node,i=RP(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.(r);return n?.hasLineSuffix&&!n?.isBlock||eO(o,s(r),{backwards:!0})?{doc:WM([Y,IP(o,s(r))?Y:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n?.hasLineSuffix?{doc:[WM([` `,i]),PM],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function VP(e,t,n={}){let{node:r}=e;if(!cO(r?.comments))return``;let{indent:i=!1,marker:a,filter:o=LP}=n,s=[];if(e.each(({node:n})=>{n.leading||n.trailing||n.marker!==a||!o(n)||s.push(RP(e,t))},`comments`),s.length===0)return``;let c=BM(Y,s);return i?G([Y,c]):c}function HP(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for(`printedComments`)];if((n.comments||[]).filter(e=>!r.has(e)).length===0)return{leading:``,trailing:``};let i=[],a=[],o;return e.each(()=>{let n=e.node;if(r?.has(n))return;let{leading:s,trailing:c}=n;s?i.push(zP(e,t)):c&&(o=BP(e,t,o),a.push(o.doc))},`comments`),{leading:i,trailing:a}}function UP(e,t,n){let{leading:r,trailing:i}=HP(e,n);return!r&&!i?t:wM(t,e=>[r,e,i])}var WP=class extends Error{name=`ArgExpansionBailout`};function GP(e,t,n,r,i){let a=e.node,o=Zk(a),s=i&&a.typeParameters?n(`typeParameters`):``;if(o.length===0)return[s,`(`,VP(e,t,{filter:e=>IA(t.originalText,CO(e))===`)`}),`)`];let{parent:c}=e,l=wk(c),u=KP(a),d=[];if(Qk(e,(e,r)=>{let i=r===o.length-1;i&&a.rest&&d.push(`...`),d.push(n()),!i&&(d.push(`,`),l||u?d.push(` `):sA(o[r],t)?d.push(Y,Y):d.push(q))}),r&&!YP(e)){if(mM(s)||mM(d))throw new WP;return K([vM(s),`(`,vM(d),`)`])}let f=o.every(e=>!cO(e.decorators));return u&&f||l?[s,`(`,...d,`)`]:(hk(c)||gk(c)||c.type===`TypeAlias`||c.type===`UnionTypeAnnotation`||c.type===`IntersectionTypeAnnotation`||c.type===`FunctionTypeAnnotation`&&c.returnType===a)&&o.length===1&&o[0].name===null&&a.this!==o[0]&&o[0].typeAnnotation&&a.typeParameters===null&&bk(o[0].typeAnnotation)&&!a.rest?t.arrowParens===`always`||a.type===`HookTypeAnnotation`?[`(`,...d,`)`]:d:[s,`(`,G([J,...d]),RM(!Yk(a)&&Bk(t,`all`)?`,`:``),J,`)`]}function KP(e){if(!e)return!1;let t=Zk(e);if(t.length!==1)return!1;let[n]=t;return!W(n)&&(n.type===`ObjectPattern`||n.type===`ArrayPattern`||n.type===`Identifier`&&n.typeAnnotation&&(n.typeAnnotation.type===`TypeAnnotation`||n.typeAnnotation.type===`TSTypeAnnotation`)&&lk(n.typeAnnotation.typeAnnotation)||n.type===`FunctionTypeParam`&&lk(n.typeAnnotation)&&n!==e.rest||n.type===`AssignmentPattern`&&(n.left.type===`ObjectPattern`||n.left.type===`ArrayPattern`)&&(n.right.type===`Identifier`||ek(n.right)&&n.right.properties.length===0||$O(n.right)&&n.right.elements.length===0))}function qP(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function JP(e,t){let n=qP(e);if(!n)return!1;let r=e.typeParameters?.params;if(r){if(r.length>1)return!1;if(r.length===1){let e=r[0];if(e.constraint||e.default)return!1}}return Zk(e).length===1&&(lk(n)||mM(t))}function YP(e){return e.match(e=>e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`,(e,t)=>{if(e.type===`CallExpression`&&t===`arguments`&&e.arguments.length===1&&e.callee.type===`CallExpression`){let t=e.callee.callee;return t.type===`Identifier`||t.type===`MemberExpression`&&!t.computed&&t.object.type===`Identifier`&&t.property.type===`Identifier`}return!1},(e,t)=>e.type===`VariableDeclarator`&&t===`init`||e.type===`ExportDefaultDeclaration`&&t===`declaration`||e.type===`TSExportAssignment`&&t===`expression`||e.type===`AssignmentExpression`&&t===`right`&&e.left.type===`MemberExpression`&&e.left.object.type===`Identifier`&&e.left.object.name===`module`&&e.left.property.type===`Identifier`&&e.left.property.name===`exports`,e=>e.type!==`VariableDeclaration`||e.kind===`const`&&e.declarations.length===1)}function XP(e){let t=Zk(e);return t.length>1&&t.some(e=>e.type===`TSParameterProperty`)}function ZP(e,t){return(t===`params`||t===`this`||t===`rest`)&&KP(e)}function QP(e){let{node:t}=e;return!t.optional||t.type===`Identifier`&&t===e.parent.key?``:Ek(t)||Dk(t)&&t.computed||t.type===`OptionalIndexedAccessType`?`?.`:`?`}function $P(e){return e.node.definite||e.match(void 0,(e,t)=>t===`id`&&e.type===`VariableDeclarator`&&e.definite)?`!`:``}var eF=FO([`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`DeclareVariable`,`DeclareExportDeclaration`,`DeclareExportAllDeclaration`,`DeclareOpaqueType`,`DeclareTypeAlias`,`DeclareEnum`,`DeclareInterface`]);function tF(e){let{node:t}=e;return t.declare||eF(t)&&e.parent.type!==`DeclareExportDeclaration`?`declare `:``}var nF=FO([`TSAbstractMethodDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]);function rF({node:e}){return e.abstract||nF(e)?`abstract `:``}function iF(e,t,n){return e.type===`EmptyStatement`?W(e,U.Leading)?[` `,t]:t:e.type===`BlockStatement`||n?[` `,t]:G([q,t])}function aF(e){return e.accessibility?e.accessibility+` `:``}var oF=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,sF=e=>oF.test(e);function cF(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,`$1$2`).replace(/^([+-]?[\d.]+)e[+-]?0+$/u,`$1`).replace(/^([+-])?\./u,`$10.`).replace(/(\.\d+?)0+(?=e|$)/u,`$1`).replace(/\.(?=e|$)/u,``)}var lF=cF,uF=0;function dF(e,t,n){let{node:r,parent:i,grandparent:a,key:o}=e,s=o!==`body`&&(i.type===`IfStatement`||i.type===`WhileStatement`||i.type===`SwitchStatement`||i.type===`DoWhileStatement`),c=r.operator===`|>`&&e.root.extra?.__isUsingHackPipeline,l=fF(e,t,n,!1,s);if(s)return l;if(c)return K(l);if(o===`callee`&&(Ek(i)||i.type===`NewExpression`)||i.type===`UnaryExpression`||Dk(i)&&!i.computed)return K([G([J,...l]),J]);let u=i.type===`ReturnStatement`||i.type===`ThrowStatement`||i.type===`JSXExpressionContainer`&&a.type===`JSXAttribute`||r.operator!==`|`&&i.type===`JsExpressionRoot`||r.type!==`NGPipeExpression`&&(i.type===`NGRoot`&&t.parser===`__ng_binding`||i.type===`NGMicrosyntaxExpression`&&a.type===`NGMicrosyntax`&&a.body.length===1)||r===i.body&&i.type===`ArrowFunctionExpression`||r!==i.body&&i.type===`ForStatement`||i.type===`ConditionalExpression`&&a.type!==`ReturnStatement`&&a.type!==`ThrowStatement`&&!Ek(a)&&a.type!==`NewExpression`||i.type===`TemplateLiteral`||gF(e),d=i.type===`AssignmentExpression`||i.type===`VariableDeclarator`||i.type===`ClassProperty`||i.type===`PropertyDefinition`||i.type===`TSAbstractPropertyDefinition`||i.type===`ClassPrivateProperty`||lA(i),f=_k(r.left)&&Gk(r.operator,r.left.operator);if(u||pF(r)&&!f||!pF(r)&&d)return K(l);if(l.length===0)return``;let p=pk(r.right),m=l.findIndex(e=>typeof e!=`string`&&!Array.isArray(e)&&e.type===qj),h=l.slice(0,m===-1?1:m+1),g=l.slice(h.length,p?-1:void 0),_=Symbol(`logicalChain-`+ ++uF),v=K([...h,G(g)],{id:_});return p?K([v,zM(MD(0,l,-1),{groupId:_})]):v}function fF(e,t,n,r,i){let{node:a}=e;if(!_k(a))return[K(n())];let o=[];Gk(a.operator,a.left.operator)?o=e.call(()=>fF(e,t,n,!0,i),`left`):o.push(K(n(`left`)));let s=pF(a),c=a.right.type===`ChainExpression`?a.right.expression:a.right,l=(a.operator===`|>`||a.type===`NGPipeExpression`||hF(e,t))&&!Mk(t.originalText,c),u=!W(c,U.Leading,VA)&&Mk(t.originalText,c),d=a.type===`NGPipeExpression`?`|`:a.operator,f=a.type===`NGPipeExpression`&&a.arguments.length>0?K(G([J,`: `,BM([q,`: `],e.map(()=>AM(2,K(n())),`arguments`))])):``,p;if(s)p=[d,Mk(t.originalText,c)?G([q,n(`right`),f]):[` `,n(`right`),f]];else{let r=d===`|>`&&e.root.extra?.__isUsingHackPipeline?e.call(()=>fF(e,t,n,!0,i),`right`):n(`right`);if(t.experimentalOperatorPosition===`start`){let e=``;if(u)switch(iM(r)){case Hj:e=r.splice(0,1)[0];break;case eM:e=r.contents.splice(0,1)[0];break}p=[q,e,d,` `,r,f]}else p=[l?q:``,d,l?` `:q,r,f]}let{parent:m}=e,h=W(a.left,U.Trailing|U.Line);if((h||!(i&&a.type===`LogicalExpression`)&&m.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(p=K(p,{shouldBreak:h})),t.experimentalOperatorPosition===`start`?o.push(s||u?` `:``,p):o.push(l?``:` `,p),r&&W(a)){let n=bM(UP(e,o,t));return n.type===Jj?n.parts:Array.isArray(n)?n:[n]}return o}function pF(e){return e.type===`LogicalExpression`?!!(ek(e.right)&&e.right.properties.length>0||$O(e.right)&&e.right.elements.length>0||pk(e.right)):!1}var mF=e=>e.type===`BinaryExpression`&&e.operator===`|`;function hF(e,t){return(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`)&&mF(e.node)&&!e.hasAncestor(e=>!mF(e)&&e.type!==`JsExpressionRoot`)}function gF(e){if(e.key!==`arguments`)return!1;let{parent:t}=e;if(!(Ek(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:n}=t;return n.type===`Identifier`&&n.name===`Boolean`}function _F(e,t,n){let{node:r}=e,{parent:i}=e,a=i.type!==`TypeParameterInstantiation`&&(!pA(i)||!t.experimentalTernaries)&&i.type!==`TSTypeParameterInstantiation`&&i.type!==`GenericTypeAnnotation`&&i.type!==`TSTypeReference`&&i.type!==`TSTypeAssertion`&&i.type!==`TupleTypeAnnotation`&&i.type!==`TSTupleType`&&!(i.type===`FunctionTypeParam`&&!i.name&&e.grandparent.this!==i)&&!((hA(i)||i.type===`VariableDeclarator`)&&Mk(t.originalText,r))&&!(hA(i)&&W(i.id,U.Trailing|U.Line)),o=bF(r),s=e.map(()=>{let r=n();return o||(r=AM(2,r)),UP(e,r,t)},`types`),c=``,l=``;if(gA(e)&&({leading:c,trailing:l}=HP(e,t)),o)return[c,BM(` | `,s),l];let u=[RM([a&&!Mk(t.originalText,r)?q:``,`| `]),BM([q,`| `],s)];if(PP(e,t))return[c,K([G(u),J]),l];let d=[c,K(u)];return(i.type===`TupleTypeAnnotation`||i.type===`TSTupleType`)&&i[i.type===`TupleTypeAnnotation`&&i.types?`types`:`elementTypes`].length>1?[K([G([RM([`(`,J]),d]),J,RM(`)`)]),l]:[K(a?G(d):d),l]}var vF=FO([`VoidTypeAnnotation`,`TSVoidKeyword`,`NullLiteralTypeAnnotation`,`TSNullKeyword`]),yF=FO([`ObjectTypeAnnotation`,`TSTypeLiteral`,`GenericTypeAnnotation`,`TSTypeReference`]);function bF(e){let{types:t}=e;if(t.some(e=>W(e)))return!1;let n=t.find(e=>yF(e));return n?t.every(e=>e===n||vF(e)):!1}function xF(e){return bk(e)||lk(e)?!0:dA(e)?bF(e):!1}var SF=new WeakSet;function CF(e,t,n=`typeAnnotation`){let{node:{[n]:r}}=e;if(!r)return``;let i=!1;if(r.type===`TSTypeAnnotation`||r.type===`TypeAnnotation`){let t=e.call(wF,n);(t===`=>`||t===`:`&&W(r,U.Leading))&&(i=!0),SF.add(r)}return i?[` `,t(n)]:t(n)}var wF=e=>e.match(e=>e.type===`TSTypeAnnotation`,(e,t)=>(t===`returnType`||t===`typeAnnotation`)&&(e.type===`TSFunctionType`||e.type===`TSConstructorType`))?`=>`:e.match(e=>e.type===`TSTypeAnnotation`,(e,t)=>t===`typeAnnotation`&&(e.type===`TSJSDocNullableType`||e.type===`TSJSDocNonNullableType`||e.type===`TSTypePredicate`))||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`typeAnnotation`&&e.type===`Identifier`,(e,t)=>t===`id`&&e.type===`DeclareFunction`)||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`typeAnnotation`&&e.type===`Identifier`,(e,t)=>t===`id`&&e.type===`DeclareHook`)||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`bound`&&e.type===`TypeParameter`&&e.usesExtendsBound)?``:`:`;function TF(e,t,n){let r=wF(e);return r?[r,` `,n(`typeAnnotation`)]:n(`typeAnnotation`)}function EF(e,t,n,r){let{node:i}=e,a=i.inexact?`...`:``;return W(i,U.Dangling)?K([n,a,VP(e,t,{indent:!0}),J,r]):[n,a,r]}function DF(e,t,n){let{node:r}=e,i=[],a=r.type===`TupleTypeAnnotation`&&r.types?`types`:r.type===`TSTupleType`||r.type===`TupleTypeAnnotation`?`elementTypes`:`elements`,o=r[a];if(o.length===0)i.push(EF(e,t,`[`,`]`));else{let s=MD(0,o,-1),c=s?.type!==`RestElement`&&!r.inexact,l=s===null,u=Symbol(`array`),d=!t.__inJestEach&&o.length>1&&o.every((e,t,n)=>{let r=e?.type;if(!$O(e)&&!ek(e))return!1;let i=n[t+1];if(i&&r!==i.type)return!1;let a=$O(e)?`elements`:`properties`;return e[a]&&e[a].length>1}),f=OF(r,t),p=c?l?`,`:Bk(t)?f?RM(`,`,``,{groupId:u}):RM(`,`):``:``;i.push(K([`[`,G([J,f?jF(e,t,n,p):[AF(e,t,n,a,r.inexact),p],VP(e,t)]),J,`]`],{shouldBreak:d,id:u}))}return i.push(QP(e),CF(e,n)),i}function OF(e,t){return $O(e)&&e.elements.length>0&&e.elements.every(e=>e&&(nk(e)||ik(e)&&!W(e.argument))&&!W(e,U.Trailing|U.Line,e=>!eO(t.originalText,SO(e),{backwards:!0})))}function kF({node:e},{originalText:t}){let n=CO(e);if(n===SO(e))return!1;let{length:r}=t;for(;n<r&&t[n]!==`,`;)n=nO(t,iO(t,n+1));return oO(t,n)}function AF(e,t,n,r,i){let a=[];return e.each(({node:r,isLast:o})=>{a.push(r?K(n()):``),(!o||i)&&a.push([`,`,q,r&&kF(e,t)?J:``])},r),i&&a.push(`...`),a}function jF(e,t,n,r){let i=[];return e.each(({isLast:a,next:o})=>{i.push([n(),a?r:`,`]),a||i.push(kF(e,t)?[Y,Y]:W(o,U.Leading|U.Line)?Y:q)},`elements`),IM(i)}function MF(e,t,n){let{node:r}=e,i=eA(r);if(i.length===0)return[`(`,VP(e,t),`)`];let a=i.length-1;if(LF(i)){let t=[`(`];return tA(e,(e,r)=>{t.push(n()),r!==a&&t.push(`, `)}),t.push(`)`),t}let o=!1,s=[];tA(e,({node:e},r)=>{let i=n();r===a||(sA(e,t)?(o=!0,i=[i,`,`,Y,Y]):i=[i,`,`,q]),s.push(i)});let c=!t.parser.startsWith(`__ng_`)&&r.type!==`ImportExpression`&&r.type!==`TSImportType`&&r.type!==`TSExternalModuleReference`&&Bk(t,`all`)?`,`:``;function l(){return K([`(`,G([q,...s]),c,q,`)`],{shouldBreak:!0})}if(o||e.parent.type!==`Decorator`&&Ik(i))return l();if(FF(i)){let e=s.slice(1);if(e.some(mM))return l();let t;try{t=n(nA(r,0),{expandFirstArg:!0})}catch(e){if(e instanceof WP)return l();throw e}return mM(t)?[PM,LM([[`(`,K(t,{shouldBreak:!0}),`, `,...e,`)`],l()])]:LM([[`(`,t,`, `,...e,`)`],[`(`,K(t,{shouldBreak:!0}),`, `,...e,`)`],l()])}if(PF(i,s,t)){let e=s.slice(0,-1);if(e.some(mM))return l();let t;try{t=n(nA(r,-1),{expandLastArg:!0})}catch(e){if(e instanceof WP)return l();throw e}return mM(t)?[PM,LM([[`(`,...e,K(t,{shouldBreak:!0}),`)`],l()])]:LM([[`(`,...e,t,`)`],[`(`,...e,K(t,{shouldBreak:!0}),`)`],l()])}let u=[`(`,G([J,...s]),RM(c),J,`)`];return Lk(e)?u:K(u,{shouldBreak:s.some(mM)||o})}function NF(e,t=!1){return ek(e)&&(e.properties.length>0||W(e))||$O(e)&&(e.elements.length>0||W(e))||e.type===`TSTypeAssertion`&&NF(e.expression)||uA(e)&&NF(e.expression)||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!==`TSTypeReference`||zF(e.body))&&(e.body.type===`BlockStatement`||e.body.type===`ArrowFunctionExpression`&&NF(e.body,!0)||ek(e.body)||$O(e.body)||!t&&(Ek(e.body)||e.body.type===`ConditionalExpression`)||pk(e.body))||e.type===`DoExpression`||e.type===`ModuleExpression`}function PF(e,t,n){let r=MD(0,e,-1);if(e.length===1){let e=MD(0,t,-1);if(e.label?.embed&&e.label?.hug!==!1)return!0}let i=MD(0,e,-2);return!W(r,U.Leading)&&!W(r,U.Trailing)&&NF(r)&&(!i||i.type!==r.type)&&(e.length!==2||i.type!==`ArrowFunctionExpression`||!$O(r))&&!(e.length>1&&OF(r,n))}function FF(e){if(e.length!==2)return!1;let[t,n]=e;return t.type===`ModuleExpression`&&BF(n)?!0:!W(t)&&(t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`&&t.body.type===`BlockStatement`)&&n.type!==`FunctionExpression`&&n.type!==`ArrowFunctionExpression`&&n.type!==`ConditionalExpression`&&IF(n)&&!NF(n)}function IF(e){if(e.type===`ParenthesizedExpression`)return IF(e.expression);if(uA(e)||e.type===`TypeCastExpression`){let{typeAnnotation:t}=e;if(t.type===`TypeAnnotation`&&(t=t.typeAnnotation),t.type===`TSArrayType`&&(t=t.elementType,t.type===`TSArrayType`&&(t=t.elementType)),t.type===`GenericTypeAnnotation`||t.type===`TSTypeReference`){let e=t.type===`GenericTypeAnnotation`?t.typeParameters:t.typeArguments;e?.params.length===1&&(t=e.params[0])}return bk(t)&&zk(e.expression,1)}return cA(e)&&eA(e).length>1?!1:_k(e)?zk(e.left,1)&&zk(e.right,1):ok(e)||zk(e)}function LF(e){return e.length===2?RF(e,0):e.length===3?e[0].type===`Identifier`&&RF(e,1):!1}function RF(e,t){let n=e[t],r=e[t+1];return n.type===`ArrowFunctionExpression`&&Zk(n).length===0&&n.body.type===`BlockStatement`&&r.type===`ArrayExpression`&&!e.some(e=>W(e))}function zF(e){return e.type===`BlockStatement`&&(e.body.some(e=>e.type!==`EmptyStatement`)||W(e,U.Dangling))}function BF(e){if(!(e.type===`ObjectExpression`&&e.properties.length===1))return!1;let[t]=e.properties;return lA(t)?!t.computed&&(t.key.type===`Identifier`&&t.key.name===`type`||ak(t.key)&&t.key.value===`type`)&&ak(t.value)&&t.value.value===`module`:!1}var VF=MF;function HF(e,t,n){return[n(`object`),K(G([J,UF(e,t,n)]))]}function UF(e,t,n){return[`::`,n(`callee`)]}var WF=e=>((e.type===`ChainExpression`||e.type===`TSNonNullExpression`)&&(e=e.expression),Ek(e)&&eA(e).length>0);function GF(e){let{node:t,ancestors:n}=e;for(let e of n){if(!(Dk(e)&&e.object===t||e.type===`TSNonNullExpression`&&e.expression===t))return e.type===`NewExpression`&&e.callee===t;t=e}return!1}function KF(e,t,n){let r=n(`object`),i=qF(e,t,n),{node:a}=e,o=e.findAncestor(e=>!(Dk(e)||e.type===`TSNonNullExpression`)),s=e.findAncestor(e=>!(e.type===`ChainExpression`||e.type===`TSNonNullExpression`)),c=o.type===`BindExpression`||o.type===`AssignmentExpression`&&o.left.type!==`Identifier`||GF(e)||a.computed||a.object.type===`Identifier`&&a.property.type===`Identifier`&&!Dk(s)||(s.type===`AssignmentExpression`||s.type===`VariableDeclarator`)&&(WF(a.object)||r.label?.memberChain);return VM(r.label,[r,c?i:K(G([J,i]))])}function qF(e,t,n){let r=n(`property`),{node:i}=e,a=QP(e);return i.computed?!i.property||nk(i.property)?[a,`[`,r,`]`]:K([a,`[`,G([J,r]),J,`]`]):[a,`.`,r]}function JF(e,t,n){if(e.node.type===`ChainExpression`)return e.call(()=>JF(e,t,n),`expression`);let r=(e.parent.type===`ChainExpression`?e.grandparent:e.parent).type===`ExpressionStatement`,i=[];function a(e){let{originalText:n}=t,r=PA(n,CO(e));return n.charAt(r)===`)`?r!==!1&&oO(n,r+1):sA(e,t)}function o(){let{node:r}=e;if(r.type===`ChainExpression`)return e.call(o,`expression`);if(Ek(r)&&(vk(r.callee)||Ek(r.callee))){let s=a(r);i.unshift({node:r,hasTrailingEmptyLine:s,printed:[UP(e,[QP(e),n(`typeArguments`),VF(e,t,n)],t),s?Y:``]}),e.call(o,`callee`)}else vk(r)?(i.unshift({node:r,needsParens:PP(e,t),printed:UP(e,Dk(r)?qF(e,t,n):UF(e,t,n),t)}),e.call(o,`object`)):r.type===`TSNonNullExpression`?(i.unshift({node:r,printed:UP(e,`!`,t)}),e.call(o,`expression`)):i.unshift({node:r,printed:n()})}let{node:s}=e;i.unshift({node:s,printed:[QP(e),n(`typeArguments`),VF(e,t,n)]}),s.callee&&e.call(o,`callee`);let c=[],l=[i[0]],u=1;for(;u<i.length&&(i[u].node.type===`TSNonNullExpression`||Ek(i[u].node)||Dk(i[u].node)&&i[u].node.computed&&nk(i[u].node.property));++u)l.push(i[u]);if(!Ek(i[0].node))for(;u+1<i.length&&vk(i[u].node)&&vk(i[u+1].node);++u)l.push(i[u]);c.push(l),l=[];let d=!1;for(;u<i.length;++u){if(d&&vk(i[u].node)){if(i[u].node.computed&&nk(i[u].node.property)){l.push(i[u]);continue}c.push(l),l=[],d=!1}(Ek(i[u].node)||i[u].node.type===`ImportExpression`)&&(d=!0),l.push(i[u]),W(i[u].node,U.Trailing)&&(c.push(l),l=[],d=!1)}l.length>0&&c.push(l);function f(e){return/^[A-Z]|^[$_]+$/u.test(e)}function p(e){return e.length<=t.tabWidth}function m(e){let t=e[1][0]?.node.computed;if(e[0].length===1){let n=e[0][0].node;return n.type===`ThisExpression`||n.type===`Identifier`&&(f(n.name)||r&&p(n.name)||t)}let n=MD(0,e[0],-1).node;return Dk(n)&&n.property.type===`Identifier`&&(f(n.property.name)||t)}let h=c.length>=2&&!W(c[1][0].node)&&m(c);function g(e){let t=e.map(e=>e.printed);return e.length>0&&MD(0,e,-1).needsParens?[`(`,...t,`)`]:t}function _(e){return e.length===0?``:G([Y,BM(Y,e.map(g))])}let v=c.map(g),y=v,b=h?3:2,x=c.flat(),S=x.slice(1,-1).some(e=>W(e.node,U.Leading))||x.slice(0,-1).some(e=>W(e.node,U.Trailing))||c[b]&&W(c[b][0].node,U.Leading);if(c.length<=b&&!S&&!c.some(e=>MD(0,e,-1).hasTrailingEmptyLine))return Lk(e)?y:K(y);let C=MD(0,c[+!!h],-1).node,w=!Ek(C)&&a(C),T=[g(c[0]),h?c.slice(1,2).map(g):``,w?Y:``,_(c.slice(h?2:1))],E=i.map(({node:e})=>e).filter(Ek);function D(){let e=MD(0,MD(0,c,-1),-1).node,t=MD(0,v,-1);return Ek(e)&&mM(t)&&E.slice(0,-1).some(e=>e.arguments.some(uk))}let O;return O=S||E.length>2&&E.some(e=>!e.arguments.every(e=>zk(e)))||v.slice(0,-1).some(mM)||D()?K(T):[mM(y)||w?PM:``,LM([y,T])],VM({memberChain:!0},O)}var YF=JF;function XF(e,t,n){let{node:r}=e,i=r.type===`NewExpression`,a=QP(e),o=eA(r),s=r.type!==`TSImportType`&&r.typeArguments?n(`typeArguments`):``,c=o.length===1&&Pk(o[0],t.originalText);if(c||$F(e)||eI(e)||wk(r,e.parent)){let t=[];if(tA(e,()=>{t.push(n())}),!(c&&t[0].label?.embed))return[i?`new `:``,ZF(e,n),a,s,`(`,BM(`, `,t),`)`]}let l=r.type===`ImportExpression`||r.type===`TSImportType`||r.type===`TSExternalModuleReference`;if(!l&&!i&&vk(r.callee)&&!e.call(()=>PP(e,t),`callee`,...r.callee.type===`ChainExpression`?[`expression`]:[]))return YF(e,t,n);let u=[i?`new `:``,ZF(e,n),a,s,VF(e,t,n)];return l||Ek(r.callee)?K(u):u}function ZF(e,t){let{node:n}=e;return n.type===`ImportExpression`?`import${n.phase?`.${n.phase}`:``}`:n.type===`TSImportType`?`import`:n.type===`TSExternalModuleReference`?`require`:t(`callee`)}var QF=[`require`,`require.resolve`,`require.resolve.paths`,`import.meta.resolve`];function $F(e){let{node:t}=e;if(!(t.type===`ImportExpression`||t.type===`TSImportType`||t.type===`TSExternalModuleReference`||t.type===`CallExpression`&&!t.optional&&UO(t.callee,QF)))return!1;let n=eA(t);return n.length===1&&ak(n[0])&&!W(n[0])}function eI(e){let{node:t}=e;if(t.type!==`CallExpression`||t.optional||t.callee.type!==`Identifier`)return!1;let n=eA(t);return t.callee.name===`require`?(n.length===1&&ak(n[0])||n.length>1)&&!W(n[0]):t.callee.name===`define`&&e.parent.type===`ExpressionStatement`?n.length===1||n.length===2&&n[0].type===`ArrayExpression`||n.length===3&&ak(n[0])&&n[1].type===`ArrayExpression`:!1}function tI(e,t,n,r,i,a){let o=iI(e,t,n,r,a),s=a?n(a,{assignmentLayout:o}):``;switch(o){case`break-after-operator`:return K([K(r),i,K(G([q,s]))]);case`never-break-after-operator`:return K([K(r),i,` `,s]);case`fluid`:{let e=Symbol(`assignment`);return K([K(r),i,K(G(q),{id:e}),GM,zM(s,{groupId:e})])}case`break-lhs`:return K([r,i,` `,K(s)]);case`chain`:return[K(r),i,q,s];case`chain-tail`:return[K(r),i,G([q,s])];case`chain-tail-arrow-chain`:return[K(r),i,s];case`only-left`:return r}}function nI(e,t,n){let{node:r}=e;return tI(e,t,n,n(`left`),[` `,r.operator],`right`)}function rI(e,t,n){return tI(e,t,n,n(`id`),` =`,`init`)}function iI(e,t,n,r,i){let{node:a}=e,o=a[i];if(!o)return`only-left`;let s=!sI(o);if(e.match(sI,cI,e=>!s||e.type!==`ExpressionStatement`&&e.type!==`VariableDeclaration`))return s?o.type===`ArrowFunctionExpression`&&o.body.type===`ArrowFunctionExpression`?`chain-tail-arrow-chain`:`chain-tail`:`chain`;if(!s&&sI(o.right)||Mk(t.originalText,o))return`break-after-operator`;if(a.type===`ImportAttribute`||o.type===`CallExpression`&&o.callee.name===`require`||t.parser===`json5`||t.parser===`jsonc`||t.parser===`json`)return`never-break-after-operator`;let c=CM(r);if(oI(a)||dI(a)||fI(a)&&c)return`break-lhs`;let l=hI(a,r,t);return e.call(()=>aI(e,t,n,l),i)?`break-after-operator`:lI(a)?`break-lhs`:!c&&(l||o.type===`TemplateLiteral`||o.type===`TaggedTemplateExpression`||rk(o)||nk(o)||o.type===`ClassExpression`)?`never-break-after-operator`:`fluid`}function aI(e,t,n,r){let i=e.node;if(_k(i)&&!pF(i))return!0;switch(i.type){case`StringLiteralTypeAnnotation`:case`SequenceExpression`:return!0;case`TSConditionalType`:case`ConditionalTypeAnnotation`:if(!t.experimentalTernaries&&!yI(i))break;return!0;case`ConditionalExpression`:{if(!t.experimentalTernaries){let{test:e}=i;return _k(e)&&!pF(e)}let{consequent:e,alternate:n}=i;return e.type===`ConditionalExpression`||n.type===`ConditionalExpression`}case`ClassExpression`:return cO(i.decorators)}if(r)return!1;let a=i,o=[];for(;;)if(a.type===`UnaryExpression`||a.type===`AwaitExpression`||a.type===`YieldExpression`&&a.argument!==null)a=a.argument,o.push(`argument`);else if(a.type===`TSNonNullExpression`)a=a.expression,o.push(`expression`);else break;return!!(ak(a)||e.call(()=>mI(e,t,n),...o))}function oI(e){if(cI(e)){let t=e.left||e.id;return t.type===`ObjectPattern`&&t.properties.length>2&&t.properties.some(e=>lA(e)&&(!e.shorthand||e.value?.type===`AssignmentPattern`))}return!1}function sI(e){return e.type===`AssignmentExpression`}function cI(e){return sI(e)||e.type===`VariableDeclarator`}function lI(e){let t=uI(e);if(cO(t)){let n=e.type===`TSTypeAliasDeclaration`?`constraint`:`bound`;if(t.length>1&&t.some(e=>e[n]||e.default))return!0}return!1}function uI(e){if(hA(e))return e.typeParameters?.params}function dI(e){if(e.type!==`VariableDeclarator`)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=pI(t.typeAnnotation);return cO(n)&&n.length>1&&n.some(e=>cO(pI(e))||e.type===`TSConditionalType`)}function fI(e){return e.type===`VariableDeclarator`&&e.init?.type===`ArrowFunctionExpression`}function pI(e){let t;switch(e.type){case`GenericTypeAnnotation`:t=e.typeParameters;break;case`TSTypeReference`:t=e.typeArguments;break}return t?.params}function mI(e,t,n,r=!1){let{node:i}=e,a=()=>mI(e,t,n,!0);if(i.type===`ChainExpression`||i.type===`TSNonNullExpression`)return e.call(a,`expression`);if(Ek(i)){if(XF(e,t,n).label?.memberChain)return!1;let r=eA(i);return!(r.length===0||r.length===1&&jk(r[0],t))||gI(i,n)?!1:e.call(a,`callee`)}return Dk(i)?e.call(a,`object`):r&&(i.type===`Identifier`||i.type===`ThisExpression`)}function hI(e,t,n){return lA(e)?(t=bM(t),typeof t==`string`&&GD(t)<n.tabWidth+3):!1}function gI(e,t){let n=_I(e);if(cO(n)){if(n.length>1)return!0;if(n.length===1){let e=n[0];if(dA(e)||fA(e)||e.type===`TSTypeLiteral`||e.type===`ObjectTypeAnnotation`)return!0}if(mM(t(e.typeParameters?`typeParameters`:`typeArguments`)))return!0}return!1}function _I(e){return(e.typeParameters??e.typeArguments)?.params}function vI(e){switch(e.type){case`FunctionTypeAnnotation`:case`GenericTypeAnnotation`:case`TSFunctionType`:return!!e.typeParameters;case`TSTypeReference`:return!!e.typeArguments;default:return!1}}function yI(e){return vI(e.checkType)||vI(e.extendsType)}var bI=new WeakMap;function xI(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function SI(e,t){return t.parser===`json`||t.parser===`jsonc`||!ak(e.key)||bO(LO(e.key),t).slice(1,-1)!==e.key.value?!1:!!(sF(e.key.value)&&!(t.parser===`babel-ts`&&e.type===`ClassProperty`||(t.parser===`typescript`||t.parser===`oxc-ts`)&&e.type===`PropertyDefinition`)||xI(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!==`ImportAttribute`&&(t.parser===`babel`||t.parser===`acorn`||t.parser===`oxc`||t.parser===`espree`||t.parser===`meriyah`||t.parser===`__babel_estree`))}function CI(e,t){let{key:n}=e.node;return(n.type===`Identifier`||nk(n)&&xI(lF(LO(n)))&&String(n.value)===lF(LO(n))&&!(t.parser===`typescript`||t.parser===`babel-ts`||t.parser===`oxc-ts`))&&(t.parser===`json`||t.parser===`jsonc`||t.quoteProps===`consistent`&&bI.get(e.parent))}function wI(e,t,n){let{node:r}=e;if(r.computed)return[`[`,n(`key`),`]`];let{parent:i}=e,{key:a}=r;if(t.quoteProps===`consistent`&&!bI.has(i)){let n=e.siblings.some(e=>!e.computed&&ak(e.key)&&!SI(e,t));bI.set(i,n)}if(CI(e,t)){let n=bO(JSON.stringify(a.type===`Identifier`?a.name:a.value.toString()),t);return e.call(()=>UP(e,n,t),`key`)}return SI(r,t)&&(t.quoteProps===`as-needed`||t.quoteProps===`consistent`&&!bI.get(i))?e.call(()=>UP(e,/^\d/u.test(a.value)?lF(a.value):a.value,t),`key`):n(`key`)}function TI(e,t,n){let{node:r}=e;return r.shorthand?n(`value`):tI(e,t,n,wI(e,t,n),`:`,`value`)}var EI=({node:e,key:t,parent:n})=>t===`value`&&e.type===`FunctionExpression`&&(n.type===`ObjectMethod`||n.type===`ClassMethod`||n.type===`ClassPrivateMethod`||n.type===`MethodDefinition`||n.type===`TSAbstractMethodDefinition`||n.type===`TSDeclareMethod`||n.type===`Property`&&mk(n));function DI(e,t,n,r){if(EI(e))return kI(e,t,n);let{node:i}=e,a=!1;if((i.type===`FunctionDeclaration`||i.type===`FunctionExpression`)&&r?.expandLastArg){let{parent:t}=e;Ek(t)&&(eA(t).length>1||Zk(i).every(e=>e.type===`Identifier`&&!e.typeAnnotation))&&(a=!0)}let o=[tF(e),i.async?`async `:``,`function${i.generator?`*`:``} `,i.id?n(`id`):``],s=GP(e,t,n,a),c=MI(e,n),l=JP(i,c);return o.push(n(`typeParameters`),K([l?K(s):s,c]),i.body?` `:``,n(`body`)),t.semi&&(i.declare||!i.body)&&o.push(`;`),o}function OI(e,t,n){let{node:r}=e,{kind:i}=r,a=r.value||r,o=[];return!i||i===`init`||i===`method`||i===`constructor`?a.async&&o.push(`async `):o.push(i,` `),a.generator&&o.push(`*`),o.push(wI(e,t,n),r.optional?`?`:``,r===a?kI(e,t,n):n(`value`)),o}function kI(e,t,n){let{node:r}=e,i=GP(e,t,n),a=MI(e,n),o=XP(r),s=JP(r,a),c=[n(`typeParameters`),K([o?K(i,{shouldBreak:!0}):s?K(i):i,a])];return r.body?c.push(` `,n(`body`)):c.push(t.semi?`;`:``),c}function AI(e){let t=Zk(e);return t.length===1&&!e.typeParameters&&!W(e,U.Dangling)&&t[0].type===`Identifier`&&!t[0].typeAnnotation&&!W(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function jI(e,t){if(t.arrowParens===`always`)return!1;if(t.arrowParens===`avoid`){let{node:t}=e;return AI(t)}return!1}function MI(e,t){let{node:n}=e,r=[CF(e,t,`returnType`)];return n.predicate&&r.push(t(`predicate`)),r}function NI(e,t,n){let{node:r}=e,i=[];if(r.argument){let e=n(`argument`);II(t,r.argument)?e=[`(`,G([Y,e]),Y,`)`]:(_k(r.argument)||t.experimentalTernaries&&r.argument.type===`ConditionalExpression`&&(r.argument.consequent.type===`ConditionalExpression`||r.argument.alternate.type===`ConditionalExpression`))&&(e=K([RM(`(`),G([J,e]),J,RM(`)`)])),i.push(` `,e)}let a=W(r,U.Dangling),o=t.semi&&a&&W(r,U.Last|U.Line);return o&&i.push(`;`),a&&i.push(` `,VP(e,t)),!o&&t.semi&&i.push(`;`),i}function PI(e,t,n){return[`return`,NI(e,t,n)]}function FI(e,t,n){return[`throw`,NI(e,t,n)]}function II(e,t){if(Mk(e.originalText,t)||W(t,U.Leading,t=>RA(e.originalText,SO(t),CO(t)))&&!pk(t))return!0;if(YO(t)){let n=t,r;for(;r=XO(n);)if(n=r,Mk(e.originalText,n))return!0}return!1}function LI(e,t){if(t.semi||BI(e,t)||HI(e,t)||VI(e,t))return!1;let{node:n,key:r,parent:i}=e;return!!(n.type===`ExpressionStatement`&&(r===`body`&&(i.type===`Program`||i.type===`BlockStatement`||i.type===`StaticBlock`||i.type===`TSModuleBlock`)||r===`consequent`&&i.type===`SwitchCase`)&&e.call(()=>RI(e,t),`expression`))}function RI(e,t){let{node:n}=e;switch(n.type){case`ParenthesizedExpression`:case`TypeCastExpression`:case`ArrayExpression`:case`ArrayPattern`:case`TemplateLiteral`:case`TemplateElement`:case`RegExpLiteral`:return!0;case`ArrowFunctionExpression`:if(!jI(e,t))return!0;break;case`UnaryExpression`:{let{prefix:e,operator:t}=n;if(e&&(t===`+`||t===`-`))return!0;break}case`BindExpression`:if(!n.object)return!0;break;case`Literal`:if(n.regex)return!0;break;default:if(pk(n))return!0}return PP(e,t)?!0:YO(n)?e.call(()=>RI(e,t),...ZO(n)):!1}var zI=({node:e,parent:t})=>e.type===`ExpressionStatement`&&t.type===`Program`&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function BI(e,t){return(t.parentParser===`markdown`||t.parentParser===`mdx`)&&zI(e)&&pk(e.node.expression)}function VI(e,t){return t.__isHtmlInlineEventHandler&&zI(e)}function HI(e,t){return(t.parser===`__vue_event_binding`||t.parser===`__vue_ts_event_binding`)&&zI(e)}var UI=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function WI(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var GI=new class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=this.#e,n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(MD(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${WI([...this.#e].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,e=>t.has(e))}#t(e){let t=1/0;for(let n of e.split(`
332
+ `)){if(n.length===0)continue;let e=this.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
333
+ `).map(e=>e.slice(t)).join(`
334
+ `)}}(`
335
+ \r `),KI=e=>e===``||e===q||e===Y||e===J;function qI(e,t,n){let{node:r}=e;if(r.type===`JSXElement`&&dL(r))return[n(`openingElement`),n(`closingElement`)];let i=r.type===`JSXElement`?n(`openingElement`):n(`openingFragment`),a=r.type===`JSXElement`?n(`closingElement`):n(`closingFragment`);if(r.children.length===1&&r.children[0].type===`JSXExpressionContainer`&&(r.children[0].expression.type===`TemplateLiteral`||r.children[0].expression.type===`TaggedTemplateExpression`))return[i,...e.map(n,`children`),a];r.children=r.children.map(e=>pL(e)?{type:`JSXText`,value:` `,raw:` `}:e);let o=r.children.some(pk),s=r.children.filter(e=>e.type===`JSXExpressionContainer`).length>1,c=r.type===`JSXElement`&&r.openingElement.attributes.length>1,l=mM(i)||o||c||s,u=e.parent.rootMarker===`mdx`,d=t.singleQuote?`{' '}`:`{" "}`,f=u?q:RM([d,J],` `),p=JI(e,t,n,f,r.openingElement?.name?.name===`fbt`),m=r.children.some(e=>fL(e));for(let e=p.length-2;e>=0;e--){let t=p[e]===``&&p[e+1]===``,n=p[e]===Y&&p[e+1]===``&&p[e+2]===Y,r=(p[e]===J||p[e]===Y)&&p[e+1]===``&&p[e+2]===f,i=p[e]===f&&p[e+1]===``&&(p[e+2]===J||p[e+2]===Y),a=p[e]===f&&p[e+1]===``&&p[e+2]===f,o=p[e]===J&&p[e+1]===``&&p[e+2]===Y||p[e]===Y&&p[e+1]===``&&p[e+2]===J;n&&m||t||r||a||o?p.splice(e,2):i&&p.splice(e+1,2)}for(;p.length>0&&KI(MD(0,p,-1));)p.pop();for(;p.length>1&&KI(p[0])&&KI(p[1]);)p.shift(),p.shift();let h=[``];for(let[e,t]of p.entries()){if(t===f){if(e===1&&TM(p[e-1])){if(p.length===2){h.push([h.pop(),d]);continue}h.push([d,Y],``);continue}else if(e===p.length-1){h.push([h.pop(),d]);continue}else if(p[e-1]===``&&p[e-2]===Y){h.push([h.pop(),d]);continue}}e%2==0?h.push([h.pop(),t]):h.push(t,``),mM(t)&&(l=!0)}let g=m?IM(h):K(h,{shouldBreak:!0});if(t.cursorNode?.type===`JSXText`&&r.children.includes(t.cursorNode)?g=[FM,g,FM]:t.nodeBeforeCursor?.type===`JSXText`&&r.children.includes(t.nodeBeforeCursor)?g=[FM,g]:t.nodeAfterCursor?.type===`JSXText`&&r.children.includes(t.nodeAfterCursor)&&(g=[g,FM]),u)return g;let _=K([i,G([Y,g]),Y,a]);return l?_:LM([K([i,...p,a]),_])}function JI(e,t,n,r,i){let a=``,o=[a];function s(e){a=e,o.push([o.pop(),e])}function c(e){e!==``&&(a=e,o.push(e,``))}return e.each(({node:e,next:t})=>{if(e.type===`JSXText`){let n=LO(e);if(fL(e)){let o=GI.split(n,!0);o[0]===``&&(o.shift(),/\n/u.test(o[0])?c(XI(i,o[1],e,t)):c(r),o.shift());let l;if(MD(0,o,-1)===``&&(o.pop(),l=o.pop()),o.length===0)return;for(let[e,t]of o.entries())e%2==1?c(q):s(t);l===void 0?c(YI(i,a,e,t)):/\n/u.test(l)?c(XI(i,a,e,t)):c(r)}else /\n/u.test(n)?n.match(/\n/gu).length>1&&c(Y):c(r)}else if(s(n()),t&&fL(t)){let n=GI.trim(LO(t)),[r]=GI.split(n);c(YI(i,r,e,t))}else c(Y)},`children`),o}function YI(e,t,n,r){return e?``:n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?t.length===1?J:Y:J}function XI(e,t,n,r){return e?Y:t.length===1?n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?Y:J:Y}var ZI=FO([`ArrayExpression`,`JSXAttribute`,`JSXElement`,`JSXExpressionContainer`,`JSXFragment`,`ExpressionStatement`,`NewExpression`,`CallExpression`,`OptionalCallExpression`,`ConditionalExpression`,`JsExpressionRoot`,`MatchExpressionCase`]);function QI(e,t,n){let{parent:r}=e;if(ZI(r))return t;let i=$I(e),a=PP(e,n);return K([a?``:RM(`(`),G([J,t]),J,a?``:RM(`)`)],{shouldBreak:i})}function $I(e){return e.match(void 0,(e,t)=>t===`body`&&e.type===`ArrowFunctionExpression`,(e,t)=>t===`arguments`&&Ek(e))&&(e.match(void 0,void 0,void 0,(e,t)=>t===`expression`&&e.type===`JSXExpressionContainer`)||e.match(void 0,void 0,void 0,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`expression`&&e.type===`JSXExpressionContainer`))}function eL(e,t,n){let{node:r}=e,i=[n(`name`)];if(r.value){let a;if(ak(r.value)){let n=AD(0,AD(0,LO(r.value).slice(1,-1),`&apos;`,`'`),`&quot;`,`"`),i=hO(n,t.jsxSingleQuote);n=i===`"`?AD(0,n,`"`,`&quot;`):AD(0,n,`'`,`&apos;`),a=e.call(()=>UP(e,xM(i+n+i),t),`value`)}else a=n(`value`);i.push(`=`,a)}return i}function tL(e,t,n){let{node:r}=e,i=(e,t)=>e.type===`JSXEmptyExpression`||!W(e)&&($O(e)||ek(e)||e.type===`ArrowFunctionExpression`||e.type===`AwaitExpression`&&(i(e.argument,e)||e.argument.type===`JSXElement`)||Ek(e)||e.type===`ChainExpression`&&Ek(e.expression)||e.type===`FunctionExpression`||e.type===`TemplateLiteral`||e.type===`TaggedTemplateExpression`||e.type===`DoExpression`||pk(t)&&(e.type===`ConditionalExpression`||_k(e)));return i(r.expression,e.parent)?K([`{`,n(`expression`),GM,`}`]):K([`{`,G([J,n(`expression`)]),J,GM,`}`])}function nL(e,t,n){let{node:r}=e,i=W(r.name)||W(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!i)return[`<`,n(`name`),n(`typeArguments`),` />`];if(r.attributes?.length===1&&ak(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
336
+ `)&&!i&&!W(r.attributes[0]))return K([`<`,n(`name`),n(`typeArguments`),` `,...e.map(n,`attributes`),r.selfClosing?` />`:`>`]);let a=r.attributes?.some(e=>ak(e.value)&&e.value.value.includes(`
337
+ `)),o=t.singleAttributePerLine&&r.attributes.length>1?Y:q;return K([`<`,n(`name`),n(`typeArguments`),G(e.map(()=>[o,n()],`attributes`)),...rL(r,t,i)],{shouldBreak:a})}function rL(e,t,n){return e.selfClosing?[q,`/>`]:iL(e,t,n)?[`>`]:[J,`>`]}function iL(e,t,n){let r=e.attributes.length>0&&W(MD(0,e.attributes,-1),U.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function aL(e,t,n){let{node:r}=e,i=[`</`],a=n(`name`);return W(r.name,U.Leading|U.Line)?i.push(G([Y,a]),Y):W(r.name,U.Leading|U.Block)?i.push(` `,a):i.push(a),i.push(`>`),i}function oL(e,t){let{node:n}=e,r=W(n),i=W(n,U.Line),a=n.type===`JSXOpeningFragment`;return[a?`<`:`</`,G([i?Y:r&&!a?` `:``,VP(e,t)]),i?Y:``,`>`]}function sL(e,t,n){return QI(e,UP(e,qI(e,t,n),t),t)}function cL(e,t){let{node:n}=e,r=W(n,U.Line);return[VP(e,t,{indent:r}),r?Y:``]}function lL(e,t,n){let{node:r}=e;return[`{`,e.call(({node:r})=>{let i=[`...`,n()];return W(r)?[G([J,UP(e,i,t)]),J]:i},r.type===`JSXSpreadAttribute`?`argument`:`expression`),`}`]}function uL(e,t,n){let{node:r}=e;if(r.type.startsWith(`JSX`))switch(r.type){case`JSXAttribute`:return eL(e,t,n);case`JSXIdentifier`:return r.name;case`JSXNamespacedName`:return BM(`:`,[n(`namespace`),n(`name`)]);case`JSXMemberExpression`:return BM(`.`,[n(`object`),n(`property`)]);case`JSXSpreadAttribute`:case`JSXSpreadChild`:return lL(e,t,n);case`JSXExpressionContainer`:return tL(e,t,n);case`JSXFragment`:case`JSXElement`:return sL(e,t,n);case`JSXOpeningElement`:return nL(e,t,n);case`JSXClosingElement`:return aL(e,t,n);case`JSXOpeningFragment`:case`JSXClosingFragment`:return oL(e,t);case`JSXEmptyExpression`:return cL(e,t);case`JSXText`:throw Error(`JSXText should be handled by JSXElement`);default:throw new UI(r,`JSX`)}}function dL(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type===`JSXText`&&!fL(t)}function fL(e){return e.type===`JSXText`&&(GI.hasNonWhitespaceCharacter(LO(e))||!/\n/u.test(LO(e)))}function pL(e){return e.type===`JSXExpressionContainer`&&ak(e.expression)&&e.expression.value===` `&&!W(e.expression)}function mL(e){let{node:t,parent:n}=e;if(!pk(t)||!pk(n))return!1;let{index:r,siblings:i}=e,a;for(let e=r;e>0;e--){let t=i[e-1];if(!(t.type===`JSXText`&&!fL(t))){a=t;break}}return a?.type===`JSXExpressionContainer`&&a.expression.type===`JSXEmptyExpression`&&iA(a.expression)}function hL(e){return iA(e.node)||mL(e)}var gL=hL;function _L(e,t,n){let{node:r}=e;if(r.type.startsWith(`NG`))switch(r.type){case`NGRoot`:return n(`node`);case`NGPipeExpression`:return dF(e,t,n);case`NGChainedExpression`:return K(BM([`;`,q],e.map(()=>xL(e)?n():[`(`,n(),`)`],`expressions`)));case`NGEmptyExpression`:return``;case`NGMicrosyntax`:return e.map(()=>[e.isFirst?``:vL(e)?` `:[`;`,q],n()],`body`);case`NGMicrosyntaxKey`:return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name)?r.name:JSON.stringify(r.name);case`NGMicrosyntaxExpression`:return[n(`expression`),r.alias===null?``:[` as `,n(`alias`)]];case`NGMicrosyntaxKeyedExpression`:{let{index:t,parent:i}=e,a=vL(e)||yL(e)||(t===1&&(r.key.name===`then`||r.key.name===`else`||r.key.name===`as`)||t===2&&(r.key.name===`else`&&i.body[t-1].type===`NGMicrosyntaxKeyedExpression`&&i.body[t-1].key.name===`then`||r.key.name===`track`))&&i.body[0].type===`NGMicrosyntaxExpression`;return[n(`key`),a?` `:`: `,n(`expression`)]}case`NGMicrosyntaxLet`:return[`let `,n(`key`),r.value===null?``:[` = `,n(`value`)]];case`NGMicrosyntaxAs`:return[n(`key`),` as `,n(`alias`)];default:throw new UI(r,`Angular`)}}function vL({node:e,index:t}){return e.type===`NGMicrosyntaxKeyedExpression`&&e.key.name===`of`&&t===1}function yL(e){let{node:t}=e;return e.parent.body[1].key.name===`of`&&t.type===`NGMicrosyntaxKeyedExpression`&&t.key.name===`track`&&t.key.type===`NGMicrosyntaxKey`}var bL=FO([`CallExpression`,`OptionalCallExpression`,`AssignmentExpression`]);function xL({node:e}){return JO(e,bL)}function SL(e,t,n){let{node:r}=e;return K([BM(q,e.map(n,`decorators`)),TL(r,t)?Y:q])}function CL(e,t,n){return EL(e.node)?[BM(Y,e.map(n,`declaration`,`decorators`)),Y]:``}function wL(e,t,n){let{node:r,parent:i}=e,{decorators:a}=r;if(!cO(a)||EL(i)||gL(e))return``;let o=r.type===`ClassExpression`||r.type===`ClassDeclaration`||TL(r,t);return[e.key===`declaration`&&QO(i)?Y:o?PM:``,BM(q,e.map(n,`decorators`)),q]}function TL(e,t){return e.decorators.some(e=>eO(t.originalText,CO(e)))}function EL(e){if(e.type!==`ExportDefaultDeclaration`&&e.type!==`ExportNamedDeclaration`&&e.type!==`DeclareExportDeclaration`)return!1;let t=e.declaration?.decorators;return cO(t)&&wO(e,t[0])}var DL=new WeakMap;function OL(e){return DL.has(e)||DL.set(e,e.type===`ConditionalExpression`&&!Vk(e,e=>e.type===`ObjectExpression`)),DL.get(e)}var kL=e=>e.type===`SequenceExpression`;function AL(e,t,n,r={}){let i=[],a,o=[],s=!1,c=!r.expandLastArg&&e.node.body.type===`ArrowFunctionExpression`,l;(function u(){let{node:d}=e,f=jL(e,t,n,r);if(i.length===0)i.push(f);else{let{leading:n,trailing:r}=HP(e,t);i.push([n,f]),o.unshift(r)}c&&(s||=d.returnType&&Zk(d).length>0||d.typeParameters||Zk(d).some(e=>e.type!==`Identifier`)),!c||d.body.type!==`ArrowFunctionExpression`?(a=n(`body`,r),l=d.body):e.call(u,`body`)})();let u=!Mk(t.originalText,l)&&(kL(l)||ML(l,a,t)||!s&&OL(l)),d=e.key===`callee`&&cA(e.parent),f=Symbol(`arrow-chain`),p=NL(e,r,{signatureDocs:i,shouldBreak:s}),m=!1,h=!1,g=!1;return c&&(d||r.assignmentLayout)&&(h=!0,g=!W(e.node,U.Leading&U.Line),m=r.assignmentLayout===`chain-tail-arrow-chain`||d&&!u),a=PL(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:l,shouldPutBodyOnSameLine:u}),K([K(h?G([g?J:``,p]):p,{shouldBreak:m,id:f}),` =>`,c?zM(a,{groupId:f}):K(a),c&&d?RM(J,``,{groupId:f}):``])}function jL(e,t,n,r){let{node:i}=e,a=[];if(i.async&&a.push(`async `),jI(e,t))a.push(n([`params`,0]));else{let i=r.expandLastArg||r.expandFirstArg,o=MI(e,n);if(i){if(mM(o))throw new WP;o=K(vM(o))}a.push(K([GP(e,t,n,i,!0),o]))}let o=VP(e,t,{filter(e){let n=PA(t.originalText,CO(e));return n!==!1&&t.originalText.slice(n,n+2)===`=>`}});return o&&a.push(` `,o),a}function ML(e,t,n){return $O(e)||ek(e)||e.type===`ArrowFunctionExpression`||e.type===`DoExpression`||e.type===`BlockStatement`||pk(e)||t.label?.hug!==!1&&(t.label?.embed||Pk(e,n.originalText))}function NL(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:i,key:a}=e;return a!==`callee`&&cA(i)||_k(i)?K([n[0],` =>`,G([q,BM([` =>`,q],n.slice(1))])],{shouldBreak:r}):a===`callee`&&cA(i)||t.assignmentLayout?K(BM([` =>`,q],n),{shouldBreak:r}):K(G(BM([` =>`,q],n)),{shouldBreak:r})}function PL(e,t,n,{bodyDoc:r,bodyComments:i,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:s,parent:c}=e,l=n.expandLastArg&&Bk(t,`all`)?RM(`,`):``,u=(n.expandLastArg||c.type===`JSXExpressionContainer`)&&!W(s)?J:``;return o&&OL(a)?[` `,K([RM(``,`(`),G([J,r]),RM(``,`)`),l,u]),i]:o?[` `,r,i]:[G([q,r,i]),l,u]}var FL=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},IL=OD(`findLast`,function(){if(Array.isArray(this))return FL});function LL(e,t,n,r){let{node:i}=e,a=[],o=IL(0,i[r],e=>e.type!==`EmptyStatement`);return e.each(({node:e})=>{e.type!==`EmptyStatement`&&(a.push(n()),e!==o&&(a.push(Y),sA(e,t)&&a.push(Y)))},r),a}function RL(e,t,n){let r=zL(e,t,n),{node:i,parent:a}=e;if(i.type===`Program`&&a?.type!==`ModuleExpression`)return r?[r,Y]:``;let o=[];if(i.type===`StaticBlock`&&o.push(`static `),o.push(`{`),r)o.push(G([Y,r]),Y);else{let t=e.grandparent;a.type===`ArrowFunctionExpression`||a.type===`FunctionExpression`||a.type===`FunctionDeclaration`||a.type===`ComponentDeclaration`||a.type===`HookDeclaration`||a.type===`ObjectMethod`||a.type===`ClassMethod`||a.type===`ClassPrivateMethod`||a.type===`ForStatement`||a.type===`WhileStatement`||a.type===`DoWhileStatement`||a.type===`DoExpression`||a.type===`ModuleExpression`||a.type===`CatchClause`&&!t.finalizer||a.type===`TSModuleDeclaration`||a.type===`MatchStatementCase`||i.type===`StaticBlock`||o.push(Y)}return o.push(`}`),o}function zL(e,t,n){let{node:r}=e,i=cO(r.directives),a=r.body.some(e=>e.type!==`EmptyStatement`),o=W(r,U.Dangling);if(!i&&!a&&!o)return``;let s=[];return i&&(s.push(LL(e,t,n,`directives`)),(a||o)&&(s.push(Y),sA(MD(0,r.directives,-1),t)&&s.push(Y))),a&&s.push(LL(e,t,n,`body`)),o&&s.push(VP(e,t)),s}function BL(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}var VL=BL;function HL(e,t,n){let{node:r}=e,i=[],a=r.type===`ObjectTypeAnnotation`,o=!UL(e),s=o?q:Y,c=W(r,U.Dangling),[l,u]=a&&r.exact?[`{|`,`|}`]:`{}`,d;if(WL(e,({node:r,next:c,isLast:l})=>{if(d??=r,i.push(n()),o&&a){let{parent:n}=e;n.inexact||!l?i.push(`,`):Bk(t)&&i.push(RM(`,`))}!o&&(JL({node:r,next:c},t)||XL({node:r,next:c},t))&&i.push(`;`),l||(i.push(s),sA(r,t)&&i.push(Y))}),c&&i.push(VP(e,t)),r.type===`ObjectTypeAnnotation`&&r.inexact){let e;e=W(r,U.Dangling)?[W(r,U.Line)||eO(t.originalText,CO(MD(0,oA(r),-1)))?Y:q,`...`]:[d?q:``,`...`],i.push(e)}if(o){let n=c||t.objectWrap===`preserve`&&d&&RA(t.originalText,SO(r),SO(d)),a;if(i.length===0)a=l+u;else{let e=t.bracketSpacing?q:J;a=[l,G([e,...i]),e,u]}return e.match(void 0,(e,t)=>t===`typeAnnotation`,(e,t)=>t===`typeAnnotation`,ZP)||e.match(void 0,(e,t)=>e.type===`FunctionTypeParam`&&t===`typeAnnotation`,ZP)?a:K(a,{shouldBreak:n})}return[l,i.length>0?[G([Y,i]),Y]:``,u]}function UL(e){let{node:t}=e;if(t.type===`ObjectTypeAnnotation`){let{key:t,parent:n}=e;return t===`body`&&(n.type===`InterfaceDeclaration`||n.type===`DeclareInterface`||n.type===`DeclareClass`)}return t.type===`ClassBody`||t.type===`TSInterfaceBody`}function WL(e,t){let{node:n}=e;if(n.type===`ClassBody`||n.type===`TSInterfaceBody`){e.each(t,`body`);return}if(n.type===`TSTypeLiteral`){e.each(t,`members`);return}if(n.type===`ObjectTypeAnnotation`){let n=[`properties`,`indexers`,`callProperties`,`internalSlots`].flatMap(t=>e.map(({node:e,index:n})=>({node:e,loc:SO(e),selector:[t,n]}),t)).sort((e,t)=>e.loc-t.loc);for(let[r,{node:i,selector:a}]of n.entries())e.call(()=>t({node:i,next:n[r+1]?.node,isLast:r===n.length-1}),...a)}}function GL(e,t){let{parent:n}=e;return e.callParent(UL)?t.semi||n.type===`ObjectTypeAnnotation`?`;`:``:n.type===`TSTypeLiteral`?e.isLast?t.semi?RM(`;`):``:t.semi||XL({node:e.node,next:e.next},t)?`;`:RM(``,`;`):``}var KL=FO([`ClassProperty`,`PropertyDefinition`,`ClassPrivateProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]),qL=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:n}=e.key;return t===`Identifier`&&(n===`static`||n===`get`||n===`set`)};function JL({node:e,next:t},n){if(n.semi||!KL(e))return!1;if(!e.value&&qL(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let e=t.key?.name;if(e===`in`||e===`instanceof`)return!0}if(KL(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case`ClassProperty`:case`PropertyDefinition`:case`TSAbstractPropertyDefinition`:return t.computed;case`MethodDefinition`:case`TSAbstractMethodDefinition`:case`ClassMethod`:case`ClassPrivateMethod`:{if((t.value?t.value.async:t.async)||t.kind===`get`||t.kind===`set`)return!1;let e=t.value?t.value.generator:t.generator;return!!(t.computed||e)}case`TSIndexSignature`:return!0}return!1}var YL=FO([`TSPropertySignature`]);function XL({node:e,next:t},n){if(n.semi||!YL(e))return!1;if(qL(e))return!0;if(!t)return!1;switch(t.type){case`TSCallSignatureDeclaration`:return!0}return!1}var ZL=VL(`heritageGroup`),QL=FO([`TSInterfaceDeclaration`,`DeclareInterface`,`InterfaceDeclaration`,`InterfaceTypeAnnotation`]);function $L(e,t,n){let{node:r}=e,i=QL(r),a=[tF(e),rF(e),i?`interface`:`class`],o=iR(e),s=[],c=[];if(r.type!==`InterfaceTypeAnnotation`){r.id&&s.push(` `);for(let i of[`id`,`typeParameters`])if(r[i]){let{leading:r,trailing:a}=e.call(()=>HP(e,t),i);s.push(r,n(i),G(a))}}if(r.superClass){let i=[oR(e,t,n),n(r.superTypeArguments?`superTypeArguments`:`superTypeParameters`)],a=e.call(()=>[`extends `,UP(e,i,t)],`superClass`);o?c.push(q,K(a)):c.push(` `,a)}else c.push(aR(e,t,n,`extends`));c.push(aR(e,t,n,`mixins`),aR(e,t,n,`implements`));let l;return o?(l=ZL(r),a.push(K([...s,G(c)],{id:l}))):a.push(...s,...c),!i&&o&&eR(r.body)?a.push(RM(Y,` `,{groupId:l})):a.push(` `),a.push(n(`body`)),a}function eR(e){return e.type===`ObjectTypeAnnotation`?[`properties`,`indexers`,`callProperties`,`internalSlots`].some(t=>cO(e[t])):cO(e.body)}function tR(e){let t=+!!e.superClass;for(let n of[`extends`,`mixins`,`implements`])if(Array.isArray(e[n])&&(t+=e[n].length),t>1)return!0;return t>1}function nR(e){let{node:t}=e;if(W(t.id,U.Trailing)||W(t.typeParameters,U.Trailing)||W(t.superClass)||tR(t))return!0;if(t.superClass)return e.parent.type===`AssignmentExpression`?!1:!(t.superTypeArguments??t.superTypeParameters)&&Dk(t.superClass);let n=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return n?n.type===`InterfaceExtends`&&n.id.type===`QualifiedTypeIdentifier`&&!n.typeParameters||(n.type===`TSClassImplements`||n.type===`TSInterfaceHeritage`)&&Dk(n.expression)&&!n.typeArguments:!1}var rR=new WeakMap;function iR(e){let{node:t}=e;return rR.has(t)||rR.set(t,nR(e)),rR.get(t)}function aR(e,t,n,r){let{node:i}=e;if(!cO(i[r]))return``;let a=VP(e,t,{marker:r}),o=BM([`,`,q],e.map(n,r));if(!tR(i)){let t=[`${r} `,a,o];return iR(e)?[q,K(t)]:[` `,t]}return[q,a,a&&Y,r,K(G([q,o]))]}function oR(e,t,n){let r=n(`superClass`),{parent:i}=e;return i.type===`AssignmentExpression`?K(RM([`(`,G([J,r]),J,`)`],r)):r}function sR(e,t,n){let{node:r}=e,i=[];return cO(r.decorators)&&i.push(SL(e,t,n)),i.push(aF(r)),r.static&&i.push(`static `),i.push(rF(e)),r.override&&i.push(`override `),i.push(OI(e,t,n)),i}function cR(e,t,n){let{node:r}=e,i=[];return cO(r.decorators)&&i.push(SL(e,t,n)),i.push(tF(e),aF(r)),r.static&&i.push(`static `),i.push(rF(e)),r.override&&i.push(`override `),r.readonly&&i.push(`readonly `),r.variance&&i.push(n(`variance`)),(r.type===`ClassAccessorProperty`||r.type===`AccessorProperty`||r.type===`TSAbstractAccessorProperty`)&&i.push(`accessor `),i.push(wI(e,t,n),QP(e),$P(e),CF(e,n)),[tI(e,t,n,i,` =`,r.type===`TSAbstractPropertyDefinition`||r.type===`TSAbstractAccessorProperty`?void 0:`value`),t.semi?`;`:``]}var lR=FO([`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`]);function uR(e){return lR(e)?uR(e.expression):e}var dR=FO([`FunctionExpression`,`ArrowFunctionExpression`]);function fR(e){return e.type===`MemberExpression`||e.type===`OptionalMemberExpression`||e.type===`Identifier`&&e.name!==`undefined`}function pR(e,t){if(HI(e,t)){let t=uR(e.node.expression);return dR(t)||fR(t)}return!(!t.semi||BI(e,t)||VI(e,t))}function mR(e,t,n){return[n(`expression`),pR(e,t)?`;`:``]}function hR(e,t,n){if(t.__isVueBindings||t.__isVueForBindingLeft){let r=e.map(n,`program`,`body`,0,`params`);if(r.length===1)return r[0];let i=BM([`,`,q],r);return t.__isVueForBindingLeft?[`(`,G([J,K(i)]),J,`)`]:i}if(t.__isEmbeddedTypescriptGenericParameters){let t=e.map(n,`program`,`body`,0,`typeParameters`,`params`);return BM([`,`,q],t)}}function gR(e,t){let{node:n}=e;switch(n.type){case`RegExpLiteral`:return yR(n);case`BigIntLiteral`:return vR(n.extra.raw);case`NumericLiteral`:return lF(n.extra.raw);case`StringLiteral`:return xM(bO(n.extra.raw,t));case`NullLiteral`:return`null`;case`BooleanLiteral`:return String(n.value);case`DirectiveLiteral`:return xR(n.extra.raw,t);case`Literal`:{if(n.regex)return yR(n.regex);if(n.bigint)return vR(n.raw);let{value:r}=n;return typeof r==`number`?lF(n.raw):typeof r==`string`?_R(e)?xR(n.raw,t):xM(bO(n.raw,t)):String(r)}}}function _R(e){if(e.key!==`expression`)return;let{parent:t}=e;return t.type===`ExpressionStatement`&&typeof t.directive==`string`}function vR(e){return e.toLowerCase()}function yR({pattern:e,flags:t}){return t=[...t].sort().join(``),`/${e}/${t}`}var bR=`use strict`;function xR(e,t){let n=e.slice(1,-1);if(n===bR||!(n.includes(`"`)||n.includes(`'`))){let e=t.singleQuote?`'`:`"`;return e+n+e}return e}function SR(e,t,n){let r=e.originalText.slice(t,n);for(let i of e[Symbol.for(`comments`)]){let e=SO(i);if(e>n)break;let a=CO(i);if(a<t)continue;let o=e-t,s=a-t;r=r.slice(0,o)+AD(0,r.slice(o,s),/[^\n]/gu,` `)+r.slice(s)}return r}var CR=SR,wR=FO([`ImportDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`DeclareExportDeclaration`,`DeclareExportAllDeclaration`]),TR=FO([`EnumBooleanBody`,`EnumNumberBody`,`EnumBigIntBody`,`EnumStringBody`,`EnumSymbolBody`]);function ER(e,t,n){let{node:r,parent:i}=e,a=TR(r),o=r.type===`TSEnumBody`||a,s=wR(r),c=a&&r.hasUnknownMembers,l=o?`members`:s?`attributes`:`properties`,u=r[l],d=o||r.type===`ObjectPattern`&&i.type!==`FunctionDeclaration`&&i.type!==`FunctionExpression`&&i.type!==`ArrowFunctionExpression`&&i.type!==`ObjectMethod`&&i.type!==`ClassMethod`&&i.type!==`ClassPrivateMethod`&&i.type!==`AssignmentPattern`&&i.type!==`CatchClause`&&r.properties.some(e=>e.value&&(e.value.type===`ObjectPattern`||e.value.type===`ArrayPattern`))||r.type!==`ObjectPattern`&&t.objectWrap===`preserve`&&u.length>0&&DR(r,u[0],t),f=[],p=e.map(({node:e})=>{let r=[...f,K(n())];return f=[`,`,q],sA(e,t)&&f.push(Y),r},l);if(c){let n;if(W(r,U.Dangling)){let i=W(r,U.Line);n=[VP(e,t),i||eO(t.originalText,CO(MD(0,oA(r),-1)))?Y:q,`...`]}else n=[`...`];p.push([...f,...n])}let m=!(c||MD(0,u,-1)?.type===`RestElement`),h;if(p.length===0){if(!W(r,U.Dangling))return[`{}`,CF(e,n)];h=K([`{`,VP(e,t,{indent:!0}),J,`}`,QP(e),CF(e,n)])}else{let r=t.bracketSpacing?q:J;h=[`{`,G([r,...p]),RM(m&&Bk(t)?`,`:``),r,`}`,QP(e),CF(e,n)]}return e.match(e=>e.type===`ObjectPattern`&&!cO(e.decorators),ZP)||lk(r)&&(e.match(void 0,(e,t)=>t===`typeAnnotation`,(e,t)=>t===`typeAnnotation`,ZP)||e.match(void 0,(e,t)=>e.type===`FunctionTypeParam`&&t===`typeAnnotation`,ZP))||!d&&e.match(e=>e.type===`ObjectPattern`,e=>e.type===`AssignmentExpression`||e.type===`VariableDeclarator`)?h:K(h,{shouldBreak:d})}function DR(e,t,n){let r=n.originalText,i=SO(e),a=SO(t);if(wR(e)){let t=SO(e);i=t+CR(n,t,a).lastIndexOf(`{`)}return RA(r,i,a)}function OR(e,t,n){let{node:r}=e;return[`import`,r.phase?` ${r.phase}`:``,PR(r),LR(e,t,n),IR(e,t,n),VR(e,t,n),t.semi?`;`:``]}var kR=e=>e.type===`ExportDefaultDeclaration`||e.type===`DeclareExportDeclaration`&&e.default;function AR(e,t,n){let{node:r}=e,i=[CL(e,t,n),tF(e),`export`,kR(r)?` default`:``],{declaration:a,exported:o}=r;return W(r,U.Dangling)&&(i.push(` `,VP(e,t)),Fk(r)&&i.push(Y)),a?i.push(` `,n(`declaration`)):(i.push(FR(r)),r.type===`ExportAllDeclaration`||r.type===`DeclareExportAllDeclaration`?(i.push(` *`),o&&i.push(` as `,n(`exported`))):i.push(LR(e,t,n)),i.push(IR(e,t,n),VR(e,t,n))),i.push(MR(r,t)),i}var jR=FO([`ClassDeclaration`,`ComponentDeclaration`,`FunctionDeclaration`,`TSInterfaceDeclaration`,`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`HookDeclaration`,`TSDeclareFunction`,`EnumDeclaration`]);function MR(e,t){return t.semi&&(!e.declaration||kR(e)&&!jR(e.declaration))?`;`:``}function NR(e,t=!0){return e&&e!==`value`?`${t?` `:``}${e}${t?``:` `}`:``}function PR(e,t){return NR(e.importKind,t)}function FR(e){return NR(e.exportKind)}function IR(e,t,n){let{node:r}=e;return r.source?[RR(r,t)?` from`:``,` `,n(`source`)]:``}function LR(e,t,n){let{node:r}=e;if(!RR(r,t))return``;let i=[` `];if(cO(r.specifiers)){let a=[],o=[];e.each(()=>{let t=e.node.type;if(t===`ExportNamespaceSpecifier`||t===`ExportDefaultSpecifier`||t===`ImportNamespaceSpecifier`||t===`ImportDefaultSpecifier`)a.push(n());else if(t===`ExportSpecifier`||t===`ImportSpecifier`)o.push(n());else throw new UI(r,`specifier`)},`specifiers`),i.push(BM(`, `,a)),o.length>0&&(a.length>0&&i.push(`, `),o.length>1||a.length>0||r.specifiers.some(e=>W(e))?i.push(K([`{`,G([t.bracketSpacing?q:J,BM([`,`,q],o)]),RM(Bk(t)?`,`:``),t.bracketSpacing?q:J,`}`])):i.push([`{`,t.bracketSpacing?` `:``,...o,t.bracketSpacing?` `:``,`}`]))}else i.push(`{}`);return i}function RR(e,t){return e.type!==`ImportDeclaration`||cO(e.specifiers)||e.importKind===`type`?!0:CR(t,SO(e),SO(e.source)).trimEnd().endsWith(`from`)}function zR(e,t){if(e.extra?.deprecatedAssertSyntax)return`assert`;let n=CR(t,CO(e.source),e.attributes?.[0]?SO(e.attributes[0]):CO(e)).trimStart();return n.startsWith(`assert`)?`assert`:n.startsWith(`with`)||cO(e.attributes)?`with`:void 0}var BR=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[n]=t,{type:r,key:i,value:a}=n;return r===`ImportAttribute`&&(i.type===`Identifier`&&i.name===`type`||ak(i)&&i.value===`type`)&&ak(a)&&!W(n)&&!W(i)&&!W(a)};function VR(e,t,n){let{node:r}=e;if(!r.source)return``;let i=zR(r,t);if(!i)return``;let a=ER(e,t,n);return BR(r)&&(a=vM(a)),[` ${i} `,a]}function HR(e,t,n){let{node:r}=e,{type:i}=r,a=i.startsWith(`Import`),o=a?`imported`:`local`,s=a?`local`:`exported`,c=r[o],l=r[s],u=``,d=``;return i===`ExportNamespaceSpecifier`||i===`ImportNamespaceSpecifier`?u=`*`:c&&(u=n(o)),l&&!UR(r)&&(d=n(s)),[NR(i===`ImportSpecifier`?r.importKind:r.exportKind,!1),u,u&&d?` as `:``,d]}function UR(e){if(e.type!==`ImportSpecifier`&&e.type!==`ExportSpecifier`)return!1;let{local:t,[e.type===`ImportSpecifier`?`imported`:`exported`]:n}=e;if(t.type!==n.type||!EO(t,n))return!1;if(ak(t))return t.value===n.value&&LO(t)===LO(n);switch(t.type){case`Identifier`:return t.name===n.name;default:return!1}}function WR(e,t){return[`...`,t(`argument`),CF(e,t)]}function GR(e){let t=[e];for(let e=0;e<t.length;e++){let n=t[e];for(let e of[`test`,`consequent`,`alternate`]){let r=n[e];if(pk(r))return!0;r.type===`ConditionalExpression`&&t.push(r)}}return!1}function KR(e,t,n){let{node:r}=e,i=r.type===`ConditionalExpression`,a=i?`alternate`:`falseType`,{parent:o}=e,s=i?n(`test`):[n(`checkType`),` `,`extends`,` `,n(`extendsType`)];return o.type===r.type&&o[a]===r?AM(2,s):s}var qR=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function JR(e){let{node:t}=e;if(t.type!==`ConditionalExpression`)return!1;let n,r=t;for(let t=0;!n;t++){let i=e.getParentNode(t);if(i.type===`ChainExpression`&&i.expression===r||Ek(i)&&i.callee===r||Dk(i)&&i.object===r||i.type===`TSNonNullExpression`&&i.expression===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||uA(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r===t?!1:n[qR.get(n.type)]===r}function YR(e,t,n){let{node:r}=e,i=r.type===`ConditionalExpression`,a=i?`consequent`:`trueType`,o=i?`alternate`:`falseType`,s=i?[`test`]:[`checkType`,`extendsType`],c=r[a],l=r[o],u=[],d=!1,{parent:f}=e,p=f.type===r.type&&s.some(e=>f[e]===r),m=f.type===r.type&&!p,h,g,_=0;do g=h||r,h=e.getParentNode(_),_++;while(h&&h.type===r.type&&s.every(e=>h[e]!==g));let v=h||f,y=g;if(i&&(pk(r[s[0]])||pk(c)||pk(l)||GR(y))){d=!0,m=!0;let e=e=>[RM(`(`),G([J,e]),J,RM(`)`)],t=e=>e.type===`NullLiteral`||e.type===`Literal`&&e.value===null||e.type===`Identifier`&&e.name===`undefined`;u.push(` ? `,t(c)?n(a):e(n(a)),` : `,l.type===r.type||t(l)?n(o):e(n(o)))}else{let e=e=>t.useTabs?G(n(e)):AM(2,n(e)),i=[q,`? `,c.type===r.type?RM(``,`(`):``,e(a),c.type===r.type?RM(``,`)`):``,q,`: `,e(o)];u.push(f.type!==r.type||f[o]===r||p?i:t.useTabs?MM(G(i)):AM(Math.max(0,t.tabWidth-2),i))}let b=e=>f===v?K(e):e,x=!d&&(Dk(f)||f.type===`NGPipeExpression`&&f.left===r)&&!f.computed,S=JR(e),C=b([KR(e,t,n),m?u:G(u),i&&x&&!S?J:``]);return p||S?K([G([J,C]),J]):C}function XR(e,t){return(Dk(t)||t.type===`NGPipeExpression`&&t.left===e)&&!t.computed}function ZR(e,t,n,r){return[...e.map(e=>oA(e)),oA(t),oA(n)].flat().some(e=>RO(e)&&RA(r.originalText,SO(e),CO(e)))}var QR=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function $R(e){let{node:t}=e;if(t.type!==`ConditionalExpression`)return!1;let n,r=t;for(let t=0;!n;t++){let i=e.getParentNode(t);if(i.type===`ChainExpression`&&i.expression===r||Ek(i)&&i.callee===r||Dk(i)&&i.object===r||i.type===`TSNonNullExpression`&&i.expression===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||uA(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r===t?!1:n[QR.get(n.type)]===r}var ez=e=>[RM(`(`),G([J,e]),J,RM(`)`)];function tz(e,t,n,r){if(!t.experimentalTernaries)return YR(e,t,n);let{node:i}=e,a=i.type===`ConditionalExpression`,o=pA(i),s=a?`consequent`:`trueType`,c=a?`alternate`:`falseType`,l=a?[`test`]:[`checkType`,`extendsType`],u=i[s],d=i[c],f=l.map(e=>i[e]),{parent:p}=e,m=p.type===i.type,h=m&&l.some(e=>p[e]===i),g=m&&p[c]===i,_=u.type===i.type,v=d.type===i.type,y=v||g,b=t.tabWidth>2||t.useTabs,x,S,C=0;do S=x||i,x=e.getParentNode(C),C++;while(x&&x.type===i.type&&l.every(e=>x[e]!==S));let w=x||p,T=r&&r.assignmentLayout&&r.assignmentLayout!==`break-after-operator`&&(p.type===`AssignmentExpression`||p.type===`VariableDeclarator`||p.type===`ClassProperty`||p.type===`PropertyDefinition`||p.type===`ClassPrivateProperty`||p.type===`ObjectProperty`||p.type===`Property`),E=(p.type===`ReturnStatement`||p.type===`ThrowStatement`)&&!(_||v),D=a&&w.type===`JSXExpressionContainer`&&e.grandparent.type!==`JSXAttribute`,O=$R(e),ee=XR(i,p),k=o&&PP(e,t),te=b?t.useTabs?` `:` `.repeat(t.tabWidth-1):``,A=ZR(f,u,d,t)||_||v,ne=!y&&!m&&!o&&(D?u.type===`NullLiteral`||u.type===`Literal`&&u.value===null:jk(u,t)&&Ok(i.test,3)),re=y||g||o&&!m||m&&a&&Ok(i.test,1)||ne,ie=[];!_&&W(u,U.Dangling)&&e.call(()=>{ie.push(VP(e,t),Y)},`consequent`);let j=[];W(i.test,U.Dangling)&&e.call(()=>{j.push(VP(e,t))},`test`),!v&&W(d,U.Dangling)&&e.call(()=>{j.push(VP(e,t))},`alternate`),W(i,U.Dangling)&&j.push(VP(e,t));let M=Symbol(`test`),ae=Symbol(`consequent`),oe=Symbol(`test-and-consequent`),se=K([a?[ez(n(`test`)),i.test.type===`ConditionalExpression`?PM:``]:[n(`checkType`),` `,`extends`,` `,pA(i.extendsType)||i.extendsType.type===`TSMappedType`?n(`extendsType`):K(ez(n(`extendsType`)))],` ?`],{id:M}),ce=n(s),le=G([_||D&&(pk(u)||m||y)?Y:q,ie,ce]),ue=re?K([se,y?le:RM(le,K(le,{id:ae}),{groupId:M})],{id:oe}):[se,le],de=n(c),fe=ne?RM(de,MM(ez(de)),{groupId:oe}):de,pe=[ue,j.length>0?[G([Y,j]),Y]:v?Y:ne?RM(q,` `,{groupId:oe}):q,`:`,v?` `:b?re?RM(te,RM(y||ne?` `:te,` `),{groupId:oe}):RM(te,` `):` `,v?fe:K([G(fe),D&&!ne?J:``]),ee&&!O?J:``,A?PM:``];return T&&!A?K(G([J,K(pe)])):T||E?K(G(pe)):O||o&&h?K([G([J,pe]),k?J:``]):p===w?K(pe):pe}function nz(e,t,n,r){let{node:i}=e;if(sk(i))return gR(e,t);switch(i.type){case`JsExpressionRoot`:return n(`node`);case`JsonRoot`:return[VP(e,t),n(`node`),Y];case`File`:return hR(e,t,n)??n(`program`);case`ExpressionStatement`:return mR(e,t,n);case`ChainExpression`:return n(`expression`);case`ParenthesizedExpression`:return!W(i.expression)&&(ek(i.expression)||$O(i.expression))?[`(`,n(`expression`),`)`]:K([`(`,G([J,n(`expression`)]),J,`)`]);case`AssignmentExpression`:return nI(e,t,n);case`VariableDeclarator`:return rI(e,t,n);case`BinaryExpression`:case`LogicalExpression`:return dF(e,t,n);case`AssignmentPattern`:return[n(`left`),` = `,n(`right`)];case`OptionalMemberExpression`:case`MemberExpression`:return KF(e,t,n);case`MetaProperty`:return[n(`meta`),`.`,n(`property`)];case`BindExpression`:return HF(e,t,n);case`Identifier`:return[i.name,QP(e),$P(e),CF(e,n)];case`V8IntrinsicIdentifier`:return[`%`,i.name];case`SpreadElement`:return WR(e,n);case`RestElement`:return WR(e,n);case`FunctionDeclaration`:case`FunctionExpression`:return DI(e,t,n,r);case`ArrowFunctionExpression`:return AL(e,t,n,r);case`YieldExpression`:return[`yield${i.delegate?`*`:``}`,i.argument?[` `,n(`argument`)]:``];case`AwaitExpression`:{let t=[`await`];if(i.argument){t.push(` `,n(`argument`));let{parent:r}=e;if(Ek(r)&&r.callee===i||Dk(r)&&r.object===i){t=[G([J,...t]),J];let n=e.findAncestor(e=>e.type===`AwaitExpression`||e.type===`BlockStatement`);if(n?.type!==`AwaitExpression`||!Vk(n.argument,e=>e===i))return K(t)}}return t}case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return AR(e,t,n);case`ImportDeclaration`:return OR(e,t,n);case`ImportSpecifier`:case`ExportSpecifier`:case`ImportNamespaceSpecifier`:case`ExportNamespaceSpecifier`:case`ImportDefaultSpecifier`:case`ExportDefaultSpecifier`:return HR(e,t,n);case`ImportAttribute`:return TI(e,t,n);case`Program`:case`BlockStatement`:case`StaticBlock`:return RL(e,t,n);case`ClassBody`:return HL(e,t,n);case`ThrowStatement`:return FI(e,t,n);case`ReturnStatement`:return PI(e,t,n);case`NewExpression`:case`ImportExpression`:case`OptionalCallExpression`:case`CallExpression`:return XF(e,t,n);case`ObjectExpression`:case`ObjectPattern`:return ER(e,t,n);case`Property`:return mk(i)?OI(e,t,n):TI(e,t,n);case`ObjectProperty`:return TI(e,t,n);case`ObjectMethod`:return OI(e,t,n);case`Decorator`:return[`@`,n(`expression`)];case`ArrayExpression`:case`ArrayPattern`:return DF(e,t,n);case`SequenceExpression`:{let{parent:t}=e;if(t.type===`ExpressionStatement`||t.type===`ForStatement`){let t=[];return e.each(({isFirst:e})=>{e?t.push(n()):t.push(`,`,G([q,n()]))},`expressions`),K(t)}let r=BM([`,`,q],e.map(n,`expressions`));return(t.type===`ReturnStatement`||t.type===`ThrowStatement`)&&e.key===`argument`||t.type===`ArrowFunctionExpression`&&e.key===`body`?K(RM([G([J,r]),J],r)):K(r)}case`ThisExpression`:return`this`;case`Super`:return`super`;case`Directive`:return[n(`value`),t.semi?`;`:``];case`UnaryExpression`:{let e=[i.operator];return/[a-z]$/u.test(i.operator)&&e.push(` `),W(i.argument)?e.push(K([`(`,G([J,n(`argument`)]),J,`)`])):e.push(n(`argument`)),e}case`UpdateExpression`:return[i.prefix?i.operator:``,n(`argument`),i.prefix?``:i.operator];case`ConditionalExpression`:return tz(e,t,n,r);case`VariableDeclaration`:{let r=e.map(n,`declarations`),a=e.parent,o=a.type===`ForStatement`||a.type===`ForInStatement`||a.type===`ForOfStatement`,s=i.declarations.some(e=>e.init),c;return r.length===1&&!W(i.declarations[0])?c=r[0]:r.length>0&&(c=G(r[0])),K([tF(e),i.kind,c?[` `,c]:``,G(r.slice(1).map(e=>[`,`,s&&!o?Y:q,e])),t.semi&&!(o&&a.body!==i)?`;`:``])}case`WithStatement`:return K([`with (`,n(`object`),`)`,iF(i.body,n(`body`))]);case`IfStatement`:{let r=iF(i.consequent,n(`consequent`)),a=[K([`if (`,K([G([J,n(`test`)]),J]),`)`,r])];if(i.alternate){let r=W(i.consequent,U.Trailing|U.Line)||Fk(i),o=i.consequent.type===`BlockStatement`&&!r;a.push(o?` `:Y),W(i,U.Dangling)&&a.push(VP(e,t),r?Y:` `),a.push(`else`,K(iF(i.alternate,n(`alternate`),i.alternate.type===`IfStatement`)))}return a}case`ForStatement`:{let r=iF(i.body,n(`body`)),a=VP(e,t),o=a?[a,J]:``;return!i.init&&!i.test&&!i.update?[o,K([`for (;;)`,r])]:[o,K([`for (`,K([G([J,n(`init`),`;`,q,n(`test`),`;`,i.update?[q,n(`update`)]:RM(``,q)]),J]),`)`,r])]}case`WhileStatement`:return K([`while (`,K([G([J,n(`test`)]),J]),`)`,iF(i.body,n(`body`))]);case`ForInStatement`:return K([`for (`,n(`left`),` in `,n(`right`),`)`,iF(i.body,n(`body`))]);case`ForOfStatement`:return K([`for`,i.await?` await`:``,` (`,n(`left`),` of `,n(`right`),`)`,iF(i.body,n(`body`))]);case`DoWhileStatement`:return[K([`do`,iF(i.body,n(`body`))]),i.body.type===`BlockStatement`?` `:Y,`while (`,K([G([J,n(`test`)]),J]),`)`,t.semi?`;`:``];case`DoExpression`:return[i.async?`async `:``,`do `,n(`body`)];case`BreakStatement`:case`ContinueStatement`:return[i.type===`BreakStatement`?`break`:`continue`,i.label?[` `,n(`label`)]:``,t.semi?`;`:``];case`LabeledStatement`:return[n(`label`),`:${i.body.type===`EmptyStatement`&&!W(i.body,U.Leading)?``:` `}`,n(`body`)];case`TryStatement`:return[`try `,n(`block`),i.handler?[` `,n(`handler`)]:``,i.finalizer?[` finally `,n(`finalizer`)]:``];case`CatchClause`:if(i.param){let e=W(i.param,e=>!RO(e)||e.leading&&eO(t.originalText,CO(e))||e.trailing&&eO(t.originalText,SO(e),{backwards:!0})),r=n(`param`);return[`catch `,e?[`(`,G([J,r]),J,`) `]:[`(`,r,`) `],n(`body`)]}return[`catch `,n(`body`)];case`SwitchStatement`:return[K([`switch (`,G([J,n(`discriminant`)]),J,`)`]),` {`,i.cases.length>0?G([Y,BM(Y,e.map(({node:e,isLast:r})=>[n(),!r&&sA(e,t)?Y:``],`cases`))]):``,Y,`}`];case`SwitchCase`:{let r=[];i.test?r.push(`case `,n(`test`),`:`):r.push(`default:`),W(i,U.Dangling)&&r.push(` `,VP(e,t));let a=i.consequent.filter(e=>e.type!==`EmptyStatement`);if(a.length>0){let i=LL(e,t,n,`consequent`);r.push(a.length===1&&a[0].type===`BlockStatement`?[` `,i]:G([Y,i]))}return r}case`DebuggerStatement`:return[`debugger`,t.semi?`;`:``];case`ClassDeclaration`:case`ClassExpression`:return $L(e,t,n);case`ClassMethod`:case`ClassPrivateMethod`:case`MethodDefinition`:return sR(e,t,n);case`ClassProperty`:case`PropertyDefinition`:case`ClassPrivateProperty`:case`ClassAccessorProperty`:case`AccessorProperty`:return cR(e,t,n);case`TemplateElement`:return xM(i.value.raw);case`TemplateLiteral`:return hN(e,t,n);case`TaggedTemplateExpression`:return gN(e,t,n);case`PrivateIdentifier`:return[`#`,i.name];case`PrivateName`:return[`#`,n(`id`)];case`TopicReference`:return`%`;case`ArgumentPlaceholder`:return`?`;case`ModuleExpression`:return[`module `,n(`body`)];case`VoidPattern`:return`void`;case`EmptyStatement`:if(qO(e))return`;`;default:throw new UI(i,`ESTree`)}}function rz(e){return[e(`elementType`),`[]`]}var iz=FO([`SatisfiesExpression`,`TSSatisfiesExpression`]);function az(e,t,n){let{parent:r,node:i,key:a}=e,o=i.type===`AsConstExpression`?`const`:n(`typeAnnotation`),s=[n(`expression`),` `,iz(i)?`satisfies`:`as`,` `,o];return a===`callee`&&Ek(r)||a===`object`&&Dk(r)?K([G([J,...s]),J]):s}function oz(e,t,n){let{node:r}=e,i=[tF(e),`component`];r.id&&i.push(` `,n(`id`)),i.push(n(`typeParameters`));let a=sz(e,t,n);return r.rendersType?i.push(K([a,` `,n(`rendersType`)])):i.push(K([a])),r.body&&i.push(` `,n(`body`)),t.semi&&r.type===`DeclareComponent`&&i.push(`;`),i}function sz(e,t,n){let{node:r}=e,i=r.params;if(r.rest&&(i=[...i,r.rest]),i.length===0)return[`(`,VP(e,t,{filter:e=>IA(t.originalText,CO(e))===`)`}),`)`];let a=[];return lz(e,(e,o)=>{let s=o===i.length-1;s&&r.rest&&a.push(`...`),a.push(n()),!s&&(a.push(`,`),sA(i[o],t)?a.push(Y,Y):a.push(q))}),[`(`,G([J,...a]),RM(Bk(t,`all`)&&!cz(r,i)?`,`:``),J,`)`]}function cz(e,t){return e.rest||MD(0,t,-1)?.type===`RestElement`}function lz(e,t){let{node:n}=e,r=0,i=e=>t(e,r++);e.each(i,`params`),n.rest&&e.call(i,`rest`)}function uz(e,t,n){let{node:r}=e;return r.shorthand?n(`local`):[n(`name`),` as `,n(`local`)]}function dz(e,t,n){let{node:r}=e,i=[];return r.name&&i.push(n(`name`),r.optional?`?: `:`: `),i.push(n(`typeAnnotation`)),i}function fz(e,t,n){return ER(e,t,n)}function pz(e,t,n){let{node:r}=e;return[r.type===`EnumSymbolBody`||r.explicitType?`of ${r.type.slice(4,-4).toLowerCase()} `:``,fz(e,t,n)]}function mz(e,t){let{node:n}=e,r=t(`id`);n.computed&&(r=[`[`,r,`]`]);let i=``;return n.initializer&&(i=t(`initializer`)),n.init&&(i=t(`init`)),i?[r,` = `,i]:r}function hz(e,t){let{node:n}=e;return[tF(e),n.const?`const `:``,`enum `,t(`id`),` `,t(`body`)]}function gz(e,t,n){let{node:r}=e,i=[rF(e)];(r.type===`TSConstructorType`||r.type===`TSConstructSignatureDeclaration`)&&i.push(`new `);let a=GP(e,t,n,!1,!0),o=[];return r.type===`FunctionTypeAnnotation`?o.push(_z(e)?` => `:`: `,n(`returnType`)):o.push(CF(e,n,`returnType`)),JP(r,o)&&(a=K(a)),i.push(a,o),[K(i),r.type===`TSConstructSignatureDeclaration`||r.type===`TSCallSignatureDeclaration`?GL(e,t):``]}function _z(e){let{node:t,parent:n}=e;return t.type===`FunctionTypeAnnotation`&&(hk(n)||!((n.type===`ObjectTypeProperty`||n.type===`ObjectTypeInternalSlot`)&&!n.variance&&!n.optional&&wO(n,t)||n.type===`ObjectTypeCallProperty`||e.getParentNode(2)?.type===`DeclareFunction`))}function vz(e,t,n){let{node:r}=e,i=[`hook`];r.id&&i.push(` `,n(`id`));let a=GP(e,t,n,!1,!0),o=MI(e,n),s=JP(r,o);return i.push(K([s?K(a):a,o]),r.body?` `:``,n(`body`)),i}function yz(e,t,n){let{node:r}=e,i=[tF(e),`hook`];return r.id&&i.push(` `,n(`id`)),t.semi&&i.push(`;`),i}function bz(e){let{node:t}=e;return t.type===`HookTypeAnnotation`&&e.getParentNode(2)?.type===`DeclareHook`}function xz(e,t,n){let{node:r}=e,i=GP(e,t,n,!1,!0),a=[bz(e)?`: `:` => `,n(`returnType`)];return K([bz(e)?``:`hook `,JP(r,a)?K(i):i,a])}function Sz(e,t,n){return[n(`objectType`),QP(e),`[`,n(`indexType`),`]`]}function Cz(e,t,n){return[`infer `,n(`typeParameter`)]}function wz(e,t,n){let r=!1;return K(e.map(({isFirst:e,previous:i,node:a,index:o})=>{let s=n();if(e)return s;let c=lk(a),l=lk(i);return l&&c?[` & `,r?G(s):s]:!l&&!c||Mk(t.originalText,a)?t.experimentalOperatorPosition===`start`?G([q,`& `,s]):G([` &`,q,s]):(o>1&&(r=!0),[` & `,o>1?G(s):s])},`types`))}function Tz(e){switch(e){case null:return``;case`PlusOptional`:return`+?`;case`MinusOptional`:return`-?`;case`Optional`:return`?`}}function Ez(e,t,n){let{node:r}=e;return[K([r.variance?n(`variance`):``,`[`,G([n(`keyTparam`),` in `,n(`sourceType`)]),`]`,Tz(r.optional),`: `,n(`propType`)]),GL(e,t)]}function Dz(e,t){return e===`+`||e===`-`?e+t:t}function Oz(e,t,n){let{node:r}=e,i=!1;if(t.objectWrap===`preserve`){let e=SO(r),n=CR(t,e+1,SO(r.key)),a=e+1+n.search(/\S/u);RA(t.originalText,e,a)&&(i=!0)}return K([`{`,G([t.bracketSpacing?q:J,W(r,U.Dangling)?K([VP(e,t),Y]):``,K([r.readonly?[Dz(r.readonly,`readonly`),` `]:``,`[`,n(`key`),` in `,n(`constraint`),r.nameType?[` as `,n(`nameType`)]:``,`]`,r.optional?Dz(r.optional,`?`):``,r.typeAnnotation?`: `:``,n(`typeAnnotation`)]),t.semi?RM(`;`):``]),t.bracketSpacing?q:J,`}`],{shouldBreak:i})}function kz(e,t,n){let{node:r}=e;return[K([`match (`,G([J,n(`argument`)]),J,`)`]),` {`,r.cases.length>0?G([Y,BM(Y,e.map(({node:e,isLast:r})=>[n(),!r&&sA(e,t)?Y:``],`cases`))]):``,Y,`}`]}function Az(e,t,n){let{node:r}=e,i=W(r,U.Dangling)?[` `,VP(e,t)]:[],a=r.type===`MatchStatementCase`?[` `,n(`body`)]:G([q,n(`body`),`,`]);return[n(`pattern`),r.guard?K([G([q,`if (`,n(`guard`),`)`])]):``,K([` =>`,i,a])]}function jz(e,t,n){let{node:r}=e;switch(r.type){case`MatchOrPattern`:return Fz(e,t,n);case`MatchAsPattern`:return[n(`pattern`),` as `,n(`target`)];case`MatchWildcardPattern`:return[`_`];case`MatchLiteralPattern`:return n(`literal`);case`MatchUnaryPattern`:return[r.operator,n(`argument`)];case`MatchIdentifierPattern`:return n(`id`);case`MatchMemberPattern`:{let e=r.property.type===`Identifier`?[`.`,n(`property`)]:[`[`,G([J,n(`property`)]),J,`]`];return K([n(`base`),e])}case`MatchBindingPattern`:return[r.kind,` `,n(`id`)];case`MatchObjectPattern`:{let t=e.map(n,`properties`);return r.rest&&t.push(n(`rest`)),K([`{`,G([J,BM([`,`,q],t)]),r.rest?``:RM(`,`),J,`}`])}case`MatchArrayPattern`:{let t=e.map(n,`elements`);return r.rest&&t.push(n(`rest`)),K([`[`,G([J,BM([`,`,q],t)]),r.rest?``:RM(`,`),J,`]`])}case`MatchObjectPatternProperty`:return r.shorthand?n(`pattern`):K([n(`key`),`:`,G([q,n(`pattern`)])]);case`MatchRestPattern`:{let e=[`...`];return r.argument&&e.push(n(`argument`)),e}}}var Mz=FO([`MatchWildcardPattern`,`MatchLiteralPattern`,`MatchUnaryPattern`,`MatchIdentifierPattern`]);function Nz(e){let{patterns:t}=e;if(t.some(e=>W(e)))return!1;let n=t.find(e=>e.type===`MatchObjectPattern`);return n?t.every(e=>e===n||Mz(e)):!1}function Pz(e){return Mz(e)||e.type===`MatchObjectPattern`?!0:e.type===`MatchOrPattern`?Nz(e):!1}function Fz(e,t,n){let{node:r}=e,{parent:i}=e,a=i.type!==`MatchStatementCase`&&i.type!==`MatchExpressionCase`&&i.type!==`MatchArrayPattern`&&i.type!==`MatchObjectPatternProperty`&&!Mk(t.originalText,r),o=Pz(r),s=e.map(()=>{let r=n();return o||(r=AM(2,r)),UP(e,r,t)},`patterns`);if(o)return BM(` | `,s);let c=[RM([`| `]),BM([q,`| `],s)];return PP(e,t)?K([G([RM([J]),c]),J]):i.type===`MatchArrayPattern`&&i.elements.length>1?K([G([RM([`(`,J]),c]),J,RM(`)`)]):K(a?G(c):c)}function Iz(e,t,n){let{node:r}=e,i=[tF(e),`opaque type `,n(`id`),n(`typeParameters`)];if(r.supertype&&i.push(`: `,n(`supertype`)),r.lowerBound||r.upperBound){let e=[];r.lowerBound&&e.push(G([q,`super `,n(`lowerBound`)])),r.upperBound&&e.push(G([q,`extends `,n(`upperBound`)])),i.push(K(e))}return r.impltype&&i.push(` = `,n(`impltype`)),i.push(t.semi?`;`:``),i}function Lz(e,t,n){let{node:r}=e;return[`...`,...r.type===`TupleTypeSpreadElement`&&r.label?[n(`label`),`: `]:[],n(`typeAnnotation`)]}function Rz(e,t,n){let{node:r}=e;return[r.variance?n(`variance`):``,n(`label`),r.optional?`?`:``,`: `,n(`elementType`)]}function zz(e,t,n){let{node:r}=e;return[tI(e,t,n,[tF(e),`type `,n(`id`),n(`typeParameters`)],` =`,r.type===`TSTypeAliasDeclaration`?`typeAnnotation`:`right`),t.semi?`;`:``]}function Bz(e,t,n){let{node:r}=e;return Zk(r).length===1&&r.type.startsWith(`TS`)&&!r[n][0].constraint&&e.parent.type===`ArrowFunctionExpression`&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Vz(e,t,n,r){let{node:i}=e;if(!i[r])return``;if(!Array.isArray(i[r]))return n(r);let a=wk(e.grandparent),o=e.match(e=>!(e[r].length===1&&lk(e[r][0])),void 0,(e,t)=>t===`typeAnnotation`,e=>e.type===`Identifier`,fI);if(i[r].length===0||!o&&(a||i[r].length===1&&(i[r][0].type===`NullableTypeAnnotation`||xF(i[r][0]))))return[`<`,BM(`, `,e.map(n,r)),Hz(e,t),`>`];let s=i.type===`TSTypeParameterInstantiation`?``:Bz(e,t,r)?`,`:Bk(t)?RM(`,`):``;return K([`<`,G([J,BM([`,`,q],e.map(n,r))]),s,J,`>`])}function Hz(e,t){let{node:n}=e;if(!W(n,U.Dangling))return``;let r=!W(n,U.Line),i=VP(e,t,{indent:!r});return r?i:[i,Y]}function Uz(e,t,n){let{node:r}=e,i=[r.const?`const `:``],a=r.type===`TSTypeParameter`?n(`name`):r.name;if(r.variance&&i.push(n(`variance`)),r.in&&i.push(`in `),r.out&&i.push(`out `),i.push(a),r.bound&&(r.usesExtendsBound&&i.push(` extends `),i.push(CF(e,n,`bound`))),r.constraint){let e=Symbol(`constraint`);i.push(` extends`,K(G(q),{id:e}),GM,zM(n(`constraint`),{groupId:e}))}if(r.default){let e=Symbol(`default`);i.push(` =`,K(G(q),{id:e}),GM,zM(n(`default`),{groupId:e}))}return K(i)}function Wz(e,t){let{node:n}=e;return[n.type===`TSTypePredicate`&&n.asserts?`asserts `:n.type===`TypePredicate`&&n.kind?`${n.kind} `:``,t(`parameterName`),n.typeAnnotation?[` is `,CF(e,t)]:``]}function Gz({node:e},t){return[`typeof `,t(e.type===`TSTypeQuery`?`exprName`:`argument`),t(`typeArguments`)]}function Kz(e,t,n){let{node:r}=e;if(zO(r))return r.type.slice(0,-14).toLowerCase();switch(r.type){case`ComponentDeclaration`:case`DeclareComponent`:case`ComponentTypeAnnotation`:return oz(e,t,n);case`ComponentParameter`:return uz(e,t,n);case`ComponentTypeParameter`:return dz(e,t,n);case`HookDeclaration`:return vz(e,t,n);case`DeclareHook`:return yz(e,t,n);case`HookTypeAnnotation`:return xz(e,t,n);case`DeclareFunction`:return[tF(e),`function `,n(`id`),n(`predicate`),t.semi?`;`:``];case`DeclareModule`:return[`declare module `,n(`id`),` `,n(`body`)];case`DeclareModuleExports`:return[`declare module.exports`,CF(e,n),t.semi?`;`:``];case`DeclareNamespace`:return[`declare namespace `,n(`id`),` `,n(`body`)];case`DeclareVariable`:return[tF(e),r.kind??`var`,` `,n(`id`),t.semi?`;`:``];case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:return AR(e,t,n);case`DeclareOpaqueType`:case`OpaqueType`:return Iz(e,t,n);case`DeclareTypeAlias`:case`TypeAlias`:return zz(e,t,n);case`IntersectionTypeAnnotation`:return wz(e,t,n);case`UnionTypeAnnotation`:return _F(e,t,n);case`ConditionalTypeAnnotation`:return tz(e,t,n);case`InferTypeAnnotation`:return Cz(e,t,n);case`FunctionTypeAnnotation`:return gz(e,t,n);case`TupleTypeAnnotation`:return DF(e,t,n);case`TupleTypeLabeledElement`:return Rz(e,t,n);case`TupleTypeSpreadElement`:return Lz(e,t,n);case`GenericTypeAnnotation`:return[n(`id`),Vz(e,t,n,`typeParameters`)];case`IndexedAccessType`:case`OptionalIndexedAccessType`:return Sz(e,t,n);case`TypeAnnotation`:return TF(e,t,n);case`TypeParameter`:return Uz(e,t,n);case`TypeofTypeAnnotation`:return Gz(e,n);case`ExistsTypeAnnotation`:return`*`;case`ArrayTypeAnnotation`:return rz(n);case`DeclareEnum`:case`EnumDeclaration`:return hz(e,n);case`EnumBooleanBody`:case`EnumNumberBody`:case`EnumBigIntBody`:case`EnumStringBody`:case`EnumSymbolBody`:return pz(e,t,n);case`EnumBooleanMember`:case`EnumNumberMember`:case`EnumBigIntMember`:case`EnumStringMember`:case`EnumDefaultedMember`:return mz(e,n);case`FunctionTypeParam`:{let t=r.name?n(`name`):e.parent.this===r?`this`:``;return[t,QP(e),t?`: `:``,n(`typeAnnotation`)]}case`DeclareClass`:case`DeclareInterface`:case`InterfaceDeclaration`:case`InterfaceTypeAnnotation`:return $L(e,t,n);case`ObjectTypeAnnotation`:return HL(e,t,n);case`ClassImplements`:case`InterfaceExtends`:return[n(`id`),n(`typeParameters`)];case`NullableTypeAnnotation`:return[`?`,n(`typeAnnotation`)];case`Variance`:{let{kind:e}=r;return e===`plus`?`+`:`-`}case`KeyofTypeAnnotation`:return[`keyof `,n(`argument`)];case`ObjectTypeCallProperty`:return[r.static?`static `:``,n(`value`),GL(e,t)];case`ObjectTypeMappedTypeProperty`:return Ez(e,t,n);case`ObjectTypeIndexer`:return[r.static?`static `:``,r.variance?n(`variance`):``,`[`,n(`id`),r.id?`: `:``,n(`key`),`]: `,n(`value`),GL(e,t)];case`ObjectTypeProperty`:{let i=``;return r.proto?i=`proto `:r.static&&(i=`static `),[i,r.kind===`init`?``:r.kind+` `,r.variance?n(`variance`):``,wI(e,t,n),QP(e),mk(r)?``:`: `,n(`value`),GL(e,t)]}case`ObjectTypeInternalSlot`:return[r.static?`static `:``,`[[`,n(`id`),`]]`,QP(e),r.method?``:`: `,n(`value`),GL(e,t)];case`ObjectTypeSpreadProperty`:return WR(e,n);case`QualifiedTypeofIdentifier`:case`QualifiedTypeIdentifier`:return[n(`qualification`),`.`,n(`id`)];case`NullLiteralTypeAnnotation`:return`null`;case`BooleanLiteralTypeAnnotation`:return String(r.value);case`StringLiteralTypeAnnotation`:return xM(bO(LO(r),t));case`NumberLiteralTypeAnnotation`:return lF(LO(r));case`BigIntLiteralTypeAnnotation`:return vR(LO(r));case`TypeCastExpression`:return[`(`,n(`expression`),CF(e,n),`)`];case`TypePredicate`:return Wz(e,n);case`TypeOperator`:return[r.operator,` `,n(`typeAnnotation`)];case`TypeParameterDeclaration`:case`TypeParameterInstantiation`:return Vz(e,t,n,`params`);case`InferredPredicate`:case`DeclaredPredicate`:return[e.key===`predicate`&&e.parent.type!==`DeclareFunction`&&!e.parent.returnType?`: `:` `,`%checks`,...r.type===`DeclaredPredicate`?[`(`,n(`value`),`)`]:[]];case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return az(e,t,n);case`MatchExpression`:case`MatchStatement`:return kz(e,t,n);case`MatchExpressionCase`:case`MatchStatementCase`:return Az(e,t,n);case`MatchOrPattern`:case`MatchAsPattern`:case`MatchWildcardPattern`:case`MatchLiteralPattern`:case`MatchUnaryPattern`:case`MatchIdentifierPattern`:case`MatchMemberPattern`:case`MatchBindingPattern`:case`MatchObjectPattern`:case`MatchObjectPatternProperty`:case`MatchRestPattern`:case`MatchArrayPattern`:return jz(e,t,n)}}function qz(e,t,n){let{node:r}=e,i=r.parameters.length>1?RM(Bk(t)?`,`:``):``,a=K([G([J,BM([`, `,J],e.map(n,`parameters`))]),i,J]);return[e.key===`body`&&e.parent.type===`ClassBody`&&r.static?`static `:``,r.readonly?`readonly `:``,`[`,r.parameters?a:``,`]`,CF(e,n),GL(e,t)]}function Jz(e,t,n){let{node:r}=e;return[r.postfix?``:n,CF(e,t),r.postfix?n:``]}function Yz(e,t,n){let{node:r}=e,i=[],a=r.kind&&r.kind!==`method`?`${r.kind} `:``;i.push(aF(r),a,r.computed?`[`:``,n(`key`),r.computed?`]`:``,QP(e));let o=GP(e,t,n,!1,!0),s=CF(e,n,`returnType`),c=JP(r,s);return i.push(c?K(o):o),r.returnType&&i.push(K(s)),[K(i),GL(e,t)]}function Xz(e,t,n){let{node:r}=e;return[tF(e),r.kind===`global`?``:`${r.kind} `,n(`id`),r.body?[` `,K(n(`body`))]:t.semi?`;`:``]}function Zz(e,t,n){let{node:r}=e,i=!($O(r.expression)||ek(r.expression)),a=K([`<`,G([J,n(`typeAnnotation`)]),J,`>`]),o=[RM(`(`),G([J,n(`expression`)]),J,RM(`)`)];return i?LM([[a,n(`expression`)],[a,K(o,{shouldBreak:!0})],[a,n(`expression`)]]):K([a,n(`expression`)])}function Qz(e,t,n){let{node:r}=e;if(r.type.startsWith(`TS`)){if(GO(r))return r.type.slice(2,-7).toLowerCase();switch(r.type){case`TSThisType`:return`this`;case`TSTypeAssertion`:return Zz(e,t,n);case`TSDeclareFunction`:return DI(e,t,n);case`TSExportAssignment`:return[`export = `,n(`expression`),t.semi?`;`:``];case`TSModuleBlock`:return RL(e,t,n);case`TSInterfaceBody`:case`TSTypeLiteral`:return HL(e,t,n);case`TSTypeAliasDeclaration`:return zz(e,t,n);case`TSQualifiedName`:return[n(`left`),`.`,n(`right`)];case`TSAbstractMethodDefinition`:case`TSDeclareMethod`:return sR(e,t,n);case`TSAbstractAccessorProperty`:case`TSAbstractPropertyDefinition`:return cR(e,t,n);case`TSInterfaceHeritage`:case`TSClassImplements`:case`TSInstantiationExpression`:return[n(`expression`),n(`typeArguments`)];case`TSTemplateLiteralType`:return hN(e,t,n);case`TSNamedTupleMember`:return Rz(e,t,n);case`TSRestType`:return Lz(e,t,n);case`TSOptionalType`:return[n(`typeAnnotation`),`?`];case`TSInterfaceDeclaration`:return $L(e,t,n);case`TSTypeParameterDeclaration`:case`TSTypeParameterInstantiation`:return Vz(e,t,n,`params`);case`TSTypeParameter`:return Uz(e,t,n);case`TSAsExpression`:case`TSSatisfiesExpression`:return az(e,t,n);case`TSArrayType`:return rz(n);case`TSPropertySignature`:return[r.readonly?`readonly `:``,wI(e,t,n),QP(e),CF(e,n),GL(e,t)];case`TSParameterProperty`:return[aF(r),r.static?`static `:``,r.override?`override `:``,r.readonly?`readonly `:``,n(`parameter`)];case`TSTypeQuery`:return Gz(e,n);case`TSIndexSignature`:return qz(e,t,n);case`TSTypePredicate`:return Wz(e,n);case`TSNonNullExpression`:return[n(`expression`),`!`];case`TSImportType`:return[XF(e,t,n),r.qualifier?[`.`,n(`qualifier`)]:``,Vz(e,t,n,`typeArguments`)];case`TSLiteralType`:return n(`literal`);case`TSIndexedAccessType`:return Sz(e,t,n);case`TSTypeOperator`:return[r.operator,` `,n(`typeAnnotation`)];case`TSMappedType`:return Oz(e,t,n);case`TSMethodSignature`:return Yz(e,t,n);case`TSNamespaceExportDeclaration`:return[`export as namespace `,n(`id`),t.semi?`;`:``];case`TSEnumDeclaration`:return hz(e,n);case`TSEnumBody`:return fz(e,t,n);case`TSEnumMember`:return mz(e,n);case`TSImportEqualsDeclaration`:return[`import `,PR(r,!1),n(`id`),` = `,n(`moduleReference`),t.semi?`;`:``];case`TSExternalModuleReference`:return XF(e,t,n);case`TSModuleDeclaration`:return Xz(e,t,n);case`TSConditionalType`:return tz(e,t,n);case`TSInferType`:return Cz(e,t,n);case`TSIntersectionType`:return wz(e,t,n);case`TSUnionType`:return _F(e,t,n);case`TSFunctionType`:case`TSCallSignatureDeclaration`:case`TSConstructorType`:case`TSConstructSignatureDeclaration`:return gz(e,t,n);case`TSTupleType`:return DF(e,t,n);case`TSTypeReference`:return[n(`typeName`),Vz(e,t,n,`typeArguments`)];case`TSTypeAnnotation`:return TF(e,t,n);case`TSEmptyBodyFunctionExpression`:return kI(e,t,n);case`TSJSDocAllType`:return`*`;case`TSJSDocUnknownType`:return`?`;case`TSJSDocNullableType`:return Jz(e,n,`?`);case`TSJSDocNonNullableType`:return Jz(e,n,`!`);default:throw new UI(r,`TypeScript`)}}}function $z(e,t,n,r){for(let i of[_L,uL,Kz,Qz,nz]){let a=i(e,t,n,r);if(a!==void 0)return a}}var eB=FO([`ClassMethod`,`ClassPrivateMethod`,`ClassProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`ClassPrivateProperty`,`MethodDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`]);function tB(e,t,n,r){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:i}=e,a=gL(e)?t.originalText.slice(SO(i),CO(i)):$z(e,t,n,r);if(!a)return``;if(eB(i))return a;let o=cO(i.decorators),s=wL(e,t,n),c=i.type===`ClassExpression`;if(o&&!c)return wM(a,e=>K([s,e]));let l=PP(e,t),u=LI(e,t);return!s&&!l&&!u?a:wM(a,e=>[u?`;`:``,l?`(`:``,l&&c&&o?[G([q,s,e]),q]:[s,e],l?`)`:``])}var nB=tB,rB={experimental_avoidAstMutation:!0},iB=[{name:`JSON.stringify`,type:`data`,aceMode:`json`,extensions:[`.importmap`],filenames:[`package.json`,`package-lock.json`,`composer.json`],tmScope:`source.json`,aliases:[`geojson`,`jsonl`,`sarif`,`topojson`],codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json-stringify`],vscodeLanguageIds:[`json`],linguistLanguageId:174},{name:`JSON`,type:`data`,aceMode:`json`,extensions:[`.json`,`.4DForm`,`.4DProject`,`.avsc`,`.geojson`,`.gltf`,`.har`,`.ice`,`.JSON-tmLanguage`,`.json.example`,`.mcmeta`,`.sarif`,`.tact`,`.tfstate`,`.tfstate.backup`,`.topojson`,`.webapp`,`.webmanifest`,`.yy`,`.yyp`],filenames:[`.all-contributorsrc`,`.arcconfig`,`.auto-changelog`,`.c8rc`,`.htmlhintrc`,`.imgbotconfig`,`.nycrc`,`.tern-config`,`.tern-project`,`.watchmanconfig`,`.babelrc`,`.jscsrc`,`.jshintrc`,`.jslintrc`,`.swcrc`],tmScope:`source.json`,aliases:[`geojson`,`jsonl`,`sarif`,`topojson`],codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json`],vscodeLanguageIds:[`json`],linguistLanguageId:174},{name:`JSON with Comments`,type:`data`,aceMode:`javascript`,extensions:[`.jsonc`,`.code-snippets`,`.code-workspace`,`.sublime-build`,`.sublime-color-scheme`,`.sublime-commands`,`.sublime-completions`,`.sublime-keymap`,`.sublime-macro`,`.sublime-menu`,`.sublime-mousemap`,`.sublime-project`,`.sublime-settings`,`.sublime-theme`,`.sublime-workspace`,`.sublime_metrics`,`.sublime_session`],filenames:[],tmScope:`source.json.comments`,aliases:[`jsonc`],codemirrorMode:`javascript`,codemirrorMimeType:`text/javascript`,group:`JSON`,parsers:[`jsonc`],vscodeLanguageIds:[`jsonc`],linguistLanguageId:423},{name:`JSON5`,type:`data`,aceMode:`json5`,extensions:[`.json5`],tmScope:`source.js`,codemirrorMode:`javascript`,codemirrorMimeType:`application/json`,parsers:[`json5`],vscodeLanguageIds:[`json5`],linguistLanguageId:175}],aB={};wD(aB,{getVisitorKeys:()=>sB,massageAstNode:()=>dB,print:()=>cB});var oB=[[]],sB=MO({JsonRoot:[`node`],ArrayExpression:[`elements`],ObjectExpression:[`properties`],ObjectProperty:[`key`,`value`],UnaryExpression:[`argument`],NullLiteral:oB[0],BooleanLiteral:oB[0],StringLiteral:oB[0],NumericLiteral:oB[0],Identifier:oB[0],TemplateLiteral:[`quasis`],TemplateElement:oB[0]});function cB(e,t,n){let{node:r}=e;switch(r.type){case`JsonRoot`:return[n(`node`),Y];case`ArrayExpression`:{if(r.elements.length===0)return`[]`;let t=e.map(()=>e.node===null?`null`:n(),`elements`);return[`[`,G([Y,BM([`,`,Y],t)]),Y,`]`]}case`ObjectExpression`:return r.properties.length===0?`{}`:[`{`,G([Y,BM([`,`,Y],e.map(n,`properties`))]),Y,`}`];case`ObjectProperty`:return[n(`key`),`: `,n(`value`)];case`UnaryExpression`:return[r.operator===`+`?``:r.operator,n(`argument`)];case`NullLiteral`:return`null`;case`BooleanLiteral`:return r.value?`true`:`false`;case`StringLiteral`:return JSON.stringify(r.value);case`NumericLiteral`:return lB(e)?JSON.stringify(String(r.value)):JSON.stringify(r.value);case`Identifier`:return lB(e)?JSON.stringify(r.name):r.name;case`TemplateLiteral`:return n([`quasis`,0]);case`TemplateElement`:return JSON.stringify(r.value.cooked);default:throw new UI(r,`JSON`)}}function lB(e){return e.key===`key`&&e.parent.type===`ObjectProperty`}var uB=new Set([`start`,`end`,`extra`,`loc`,`comments`,`leadingComments`,`trailingComments`,`innerComments`,`errors`,`range`,`tokens`]);function dB(e,t){let{type:n}=e;if(n===`ObjectProperty`){let{key:n}=e;n.type===`Identifier`?t.key={type:`StringLiteral`,value:n.name}:n.type===`NumericLiteral`&&(t.key={type:`StringLiteral`,value:String(n.value)});return}if(n===`UnaryExpression`&&e.operator===`+`)return t.argument;if(n===`ArrayExpression`){for(let[n,r]of e.elements.entries())r===null&&t.elements.splice(n,0,{type:`NullLiteral`});return}if(n===`TemplateLiteral`)return{type:`StringLiteral`,value:e.quasis[0].value.cooked}}dB.ignoredProperties=uB;var fB={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},pB=`JavaScript`,mB={arrowParens:{category:pB,type:`choice`,default:`always`,description:`Include parentheses around a sole arrow function parameter.`,choices:[{value:`always`,description:"Always include parens. Example: `(x) => x`"},{value:`avoid`,description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:fB.bracketSameLine,objectWrap:fB.objectWrap,bracketSpacing:fB.bracketSpacing,jsxBracketSameLine:{category:pB,type:`boolean`,description:`Put > on the last line instead of at a new line.`,deprecated:`2.4.0`},semi:{category:pB,type:`boolean`,default:!0,description:`Print semicolons.`,oppositeDescription:`Do not print semicolons, except at the beginning of lines which may need them.`},experimentalOperatorPosition:{category:pB,type:`choice`,default:`end`,description:`Where to print operators when binary expressions wrap lines.`,choices:[{value:`start`,description:`Print operators at the start of new lines.`},{value:`end`,description:`Print operators at the end of previous lines.`}]},experimentalTernaries:{category:pB,type:`boolean`,default:!1,description:`Use curious ternaries, with the question mark after the condition.`,oppositeDescription:`Default behavior of ternaries; keep question marks on the same line as the consequent.`},singleQuote:fB.singleQuote,jsxSingleQuote:{category:pB,type:`boolean`,default:!1,description:`Use single quotes in JSX.`},quoteProps:{category:pB,type:`choice`,default:`as-needed`,description:`Change when properties in objects are quoted.`,choices:[{value:`as-needed`,description:`Only add quotes around object properties where required.`},{value:`consistent`,description:`If at least one property in an object requires quotes, quote all properties.`},{value:`preserve`,description:`Respect the input use of quotes in object properties.`}]},trailingComma:{category:pB,type:`choice`,default:`all`,description:`Print trailing commas wherever possible when multi-line.`,choices:[{value:`all`,description:`Trailing commas wherever possible (including function arguments).`},{value:`es5`,description:`Trailing commas where valid in ES5 (objects, arrays, etc.)`},{value:`none`,description:`No trailing commas.`}]},singleAttributePerLine:fB.singleAttributePerLine},hB={estree:DD,"estree-json":aB},gB=[...ED,...iB],_B=Object.defineProperty,vB=(e,t)=>{for(var n in t)_B(e,n,{get:t[n],enumerable:!0})},yB={};vB(yB,{parsers:()=>HG});var bB={};vB(bB,{__babel_estree:()=>kG,__js_expression:()=>EG,__ts_expression:()=>DG,__vue_event_binding:()=>wG,__vue_expression:()=>EG,__vue_ts_event_binding:()=>TG,__vue_ts_expression:()=>DG,babel:()=>wG,"babel-flow":()=>OG,"babel-ts":()=>TG});function xB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var SB=class{line;column;index;constructor(e,t,n){this.line=e,this.column=t,this.index=n}},CB=class{start;end;filename;identifierName;constructor(e,t){this.start=e,this.end=t}};function wB(e,t){let{line:n,column:r,index:i}=e;return new SB(n,r+t,i+t)}var TB=`BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED`,EB={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:TB},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:TB}},DB={ArrayPattern:`array destructuring pattern`,AssignmentExpression:`assignment expression`,AssignmentPattern:`assignment expression`,ArrowFunctionExpression:`arrow function expression`,ConditionalExpression:`conditional expression`,CatchClause:`catch clause`,ForOfStatement:`for-of statement`,ForInStatement:`for-in statement`,ForStatement:`for-loop`,FormalParameters:`function parameter list`,Identifier:`identifier`,ImportSpecifier:`import specifier`,ImportDefaultSpecifier:`import default specifier`,ImportNamespaceSpecifier:`import namespace specifier`,ObjectPattern:`object destructuring pattern`,ParenthesizedExpression:`parenthesized expression`,RestElement:`rest element`,UpdateExpression:{true:`prefix operation`,false:`postfix operation`},VariableDeclarator:`variable declaration`,YieldExpression:`yield expression`},OB=e=>e.type===`UpdateExpression`?DB.UpdateExpression[`${e.prefix}`]:DB[e.type],kB={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:`'arguments' is only allowed in functions and class methods.`,AsyncFunctionInSingleStatementContext:`Async functions can only be declared at the top level or inside a block.`,AwaitBindingIdentifier:`Can not use 'await' as identifier inside an async function.`,AwaitBindingIdentifierInStaticBlock:`Can not use 'await' as identifier inside a static block.`,AwaitExpressionFormalParameter:`'await' is not allowed in async function parameters.`,AwaitUsingNotInAsyncContext:`'await using' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncContext:`'await' is only allowed within async functions and at the top levels of modules.`,BadGetterArity:`A 'get' accessor must not have any formal parameters.`,BadSetterArity:`A 'set' accessor must have exactly one formal parameter.`,BadSetterRestParameter:`A 'set' accessor function argument must not be a rest parameter.`,ConstructorClassField:`Classes may not have a field named 'constructor'.`,ConstructorClassPrivateField:`Classes may not have a private field named '#constructor'.`,ConstructorIsAccessor:`Class constructor may not be an accessor.`,ConstructorIsAsync:`Constructor can't be an async function.`,ConstructorIsGenerator:`Constructor can't be a generator.`,DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:`Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.`,DecoratorBeforeExport:`Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.`,DecoratorsBeforeAfterExport:`Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.`,DecoratorConstructor:`Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?`,DecoratorExportClass:`Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.`,DecoratorSemicolon:`Decorators must not be followed by a semicolon.`,DecoratorStaticBlock:`Decorators can't be used with a static block.`,DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:`Deleting a private field is not allowed.`,DestructureNamedImport:`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`,DuplicateConstructor:`Duplicate constructor in the same class.`,DuplicateDefaultExport:`Only one default export allowed per module.`,DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,ElementAfterRest:`Rest element must be last element.`,EscapedCharNotAnIdentifier:`Invalid Unicode escape.`,ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
338
+ - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:`'from' is not allowed as an identifier after 'export default'.`,ForInOfLoopInitializer:({type:e})=>`'${e===`ForInStatement`?`for-in`:`for-of`}' loop variable declaration may not have an initializer.`,ForInUsing:`For-in loop may not start with 'using' declaration.`,ForOfAsync:`The left-hand side of a for-of loop may not be 'async'.`,ForOfLet:`The left-hand side of a for-of loop may not start with 'let'.`,GeneratorInSingleStatementContext:`Generators can only be declared at the top level or inside a block.`,IllegalBreakContinue:({type:e})=>`Unsyntactic ${e===`BreakStatement`?`break`:`continue`}.`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list.`,IllegalReturn:`'return' outside of function.`,ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
339
+ - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:`Cannot use new with import(...).`,ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:`The 'u' and 'v' regular expression flags cannot be enabled at the same time.`,InvalidBigIntLiteral:`Invalid BigIntLiteral.`,InvalidCodePoint:`Code point out of bounds.`,InvalidCoverDiscardElement:`'void' must be followed by an expression when not used in a binding position.`,InvalidCoverInitializedName:`Invalid shorthand property initializer.`,InvalidDecimal:`Invalid decimal.`,InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${OB(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${OB(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${OB(e)}.`,InvalidNumber:`Invalid number.`,InvalidOrMissingExponent:`Floating-point numbers require a valid exponent after the 'e'.`,InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:`Binding member expression.`,InvalidRecordProperty:`Only properties and spread elements are allowed in record definitions.`,InvalidRestAssignmentPattern:`Invalid rest operator's argument.`,LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:`'let' is disallowed as a lexically bound name.`,LineTerminatorBeforeArrow:`No line break is allowed before '=>'.`,MalformedRegExpFlags:`Invalid regular expression flag.`,MissingClassName:`A class name is required.`,MissingEqInAssignment:`Only '=' operator can be used for specifying default value.`,MissingSemicolon:`Missing semicolon.`,MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingUnicodeEscape:`Expecting Unicode escape sequence \\uXXXX.`,MixingCoalesceWithLogical:`Nullish coalescing operator(??) requires parens when mixing with logical operators.`,ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:`Only string literals are allowed as module attribute values.`,ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:`Multiple default clauses.`,NewlineAfterThrow:`Illegal newline after throw.`,NoCatchOrFinally:`Missing catch or finally clause.`,NumberIdentifier:`Identifier directly after number.`,NumericSeparatorInEscapeSequence:`Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.`,ObsoleteAwaitStar:`'await*' has been removed from the async functions proposal. Use Promise.all() instead.`,OptionalChainingNoNew:`Constructors in/after an Optional Chain are not allowed.`,OptionalChainingNoTemplate:`Tagged Template Literals are not allowed in optionalChain.`,OverrideOnConstructor:`'override' modifier cannot appear on a constructor declaration.`,ParamDupe:`Argument name clash.`,PatternHasAccessor:`Object pattern can't contain getter or setter.`,PatternHasMethod:`Object pattern can't contain methods.`,PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:`Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionBarIncorrectStartSyntaxType:`Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionHashIncorrectStartSyntaxType:`Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,RecordNoProto:`'__proto__' is not allowed in Record expressions.`,RestTrailingComma:`Unexpected trailing comma after rest element.`,SloppyFunction:`In non-strict mode code, functions can only be declared at top level or inside a block.`,SloppyFunctionAnnexB:`In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.`,SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:`Classes may not have static property named prototype.`,SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:`Private fields can't be accessed on super.`,TrailingDecorator:`Decorators must be attached to a class element.`,TupleExpressionBarIncorrectEndSyntaxType:`Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionBarIncorrectStartSyntaxType:`Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionHashIncorrectStartSyntaxType:`Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,UnexpectedArgumentPlaceholder:`Unexpected argument placeholder.`,UnexpectedAwaitAfterPipelineBody:`Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.`,UnexpectedDigitAfterHash:`Unexpected digit after hash token.`,UnexpectedImportExport:`'import' and 'export' may only appear at the top level.`,UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:`Leading decorators must be attached to a class declaration.`,UnexpectedLexicalDeclaration:`Lexical declaration cannot appear in a single-statement context.`,UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:`A numeric separator is only allowed between two digits.`,UnexpectedPrivateField:`Unexpected private name.`,UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:``}${e?`, expected "${e}"`:``}`,UnexpectedTokenUnaryExponentiation:`Illegal expression. Wrap left hand side or entire exponentiation in parentheses.`,UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:`Unexpected void binding.`,UnsupportedBind:`Binding should be performed on object property.`,UnsupportedDecoratorExport:`A decorated export must export a class declaration.`,UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:`Decorators cannot be used to decorate parameters.`,UnsupportedPropertyDecorator:`Decorators cannot be used to decorate object literal properties.`,UnsupportedSuper:`'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).`,UnterminatedComment:`Unterminated comment.`,UnterminatedRegExp:`Unterminated regular expression.`,UnterminatedString:`Unterminated string constant.`,UnterminatedTemplate:`Unterminated template.`,UsingDeclarationExport:`Using declaration cannot be exported.`,UsingDeclarationHasBindingPattern:`Using declaration cannot have destructuring patterns.`,VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:`A void binding may not have an initializer.`,YieldBindingIdentifier:`Can not use 'yield' as identifier inside a generator.`,YieldInParameter:`Yield expression is not allowed in formal parameters.`,YieldNotInGeneratorFunction:`'yield' is only allowed within generator functions.`,ZeroDigitNumericSeparator:`Numeric separator can not be used after leading 0.`},AB={StrictDelete:`Deleting local variable in strict mode.`,StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block.`,StrictNumericEscape:`The only valid numeric escape in strict mode is '\\0'.`,StrictOctalLiteral:`Legacy octal literals are not allowed in strict mode.`,StrictWith:`'with' in strict mode.`},jB={ParseExpressionEmptyInput:`Unexpected parseExpression() input: The input is empty or contains only comments.`,ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},MB=new Set([`ArrowFunctionExpression`,`AssignmentExpression`,`ConditionalExpression`,`YieldExpression`]),NB=Object.assign({PipeBodyIsTighter:`Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.`,PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:`Topic reference is unbound; it must be inside a pipe body.`,PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:`Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.`,PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${OB({type:e})}; please wrap it in parentheses.`},{}),PB=[`message`];function FB(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function IB({toMessage:e,code:t,reasonCode:n,syntaxPlugin:r}){let i=n===`MissingPlugin`||n===`MissingOneOfPlugins`;return function a(o,s){let c=SyntaxError();return c.code=t,c.reasonCode=n,c.loc=o,c.pos=o.index,c.syntaxPlugin=r,i&&(c.missingPlugin=s.missingPlugin),FB(c,`clone`,function(e={}){let{line:t,column:n,index:r}=e.loc??o;return a(new SB(t,n,r),Object.assign({},s,e.details))}),FB(c,`details`,s),Object.defineProperty(c,`message`,{configurable:!0,get(){let t=`${e(s)} (${o.line}:${o.column})`;return this.message=t,t},set(e){Object.defineProperty(this,`message`,{value:e,writable:!0})}}),c}}function LB(e,t){if(Array.isArray(e))return t=>LB(t,e[0]);let n={};for(let r of Object.keys(e)){let i=e[r],a=typeof i==`string`?{message:()=>i}:typeof i==`function`?{message:i}:i,{message:o}=a,s=xB(a,PB);n[r]=IB(Object.assign({code:`BABEL_PARSER_SYNTAX_ERROR`,reasonCode:r,toMessage:typeof o==`string`?()=>o:o},t?{syntaxPlugin:t}:{},s))}return n}var X=Object.assign({},LB(EB),LB(kB),LB(AB),LB(jB),LB`pipelineOperator`(NB));function RB(){return{sourceType:`script`,sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function zB(e){let t=RB();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let n of Object.keys(t))e[n]!=null&&(t[n]=e[n]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType===`commonjs`){if(e.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:BB}=Object,VB=(e,t)=>{e&&BB(e,t,{enumerable:!1,value:e[t]})};function HB(e){return VB(e.loc.start,`index`),VB(e.loc.end,`index`),e}var UB=e=>class extends e{parse(){let e=HB(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(HB)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,`Literal`)}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){let n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,`ChainExpression`,t)}directiveToStmt(e){let t=e.value;delete e.value,this.castNodeTo(t,`Literal`),t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=this.castNodeTo(e,`ExpressionStatement`);return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:t,end:n,loc:r,range:i,raw:a,value:o}=e,s=Object.create(e.constructor.prototype);return s.type=`Literal`,s.start=t,s.end=n,s.loc=r,s.range=i,s.raw=a,s.value=o,s}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!e.expression.extra?.parenthesized}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i),e.body=e.directives.map(e=>this.directiveToStmt(e)).concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,`PrivateIdentifier`)}isPrivateName(e){return e.type===`PrivateIdentifier`}getPrivateNameSV(e){return e.name}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!==`BlockStatement`}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),delete s.kind;let{typeParameters:c}=e;return c&&(delete e.typeParameters,s.typeParameters=c,this.resetStartLocationFromNode(s,c)),e.value=this.castNodeTo(s,this.hasPlugin(`typescript`)&&!s.body?`TSEmptyBodyFunctionExpression`:`FunctionExpression`),a===`ClassPrivateMethod`&&(e.computed=!1),this.hasPlugin(`typescript`)&&e.abstract?(delete e.abstract,this.finishNode(e,`TSAbstractMethodDefinition`)):a===`ObjectMethod`?(e.kind===`method`&&(e.kind=`init`),e.shorthand=!1,this.finishNode(e,`Property`)):this.finishNode(e,`MethodDefinition`)}nameIsConstructor(e){return e.type===`Literal`?e.value===`constructor`:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return t.abstract&&this.hasPlugin(`typescript`)?(delete t.abstract,this.castNodeTo(t,`TSAbstractPropertyDefinition`)):this.castNodeTo(t,`PropertyDefinition`),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return t.abstract&&this.hasPlugin(`typescript`)?this.castNodeTo(t,`TSAbstractPropertyDefinition`):this.castNodeTo(t,`PropertyDefinition`),t.computed=!1,t}parseClassAccessorProperty(e){let t=super.parseClassAccessorProperty(e);return t.abstract&&this.hasPlugin(`typescript`)?(delete t.abstract,this.castNodeTo(t,`TSAbstractAccessorProperty`)):this.castNodeTo(t,`AccessorProperty`),t}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind=`init`,this.castNodeTo(i,`Property`)),i}finishObjectProperty(e){return e.kind=`init`,this.finishNode(e,`Property`)}isValidLVal(e,t,n,r){return e===`Property`?`value`:super.isValidLVal(e,t,n,r)}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){e.type===`Property`&&(e.kind===`get`||e.kind===`set`)?this.raise(X.PatternHasAccessor,e.key):e.type===`Property`&&e.method?this.raise(X.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return n.callee.type===`Import`?(this.castNodeTo(n,`ImportExpression`),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type===`OptionalCallExpression`?this.castNodeTo(n,`CallExpression`):n.optional=!1,n}toReferencedArguments(e){e.type!==`ImportExpression`&&super.toReferencedArguments(e)}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case`ExportAllDeclaration`:r.exported=null;break;case`ExportNamedDeclaration`:r.specifiers.length===1&&r.specifiers[0].type===`ExportNamespaceSpecifier`&&(this.castNodeTo(r,`ExportAllDeclaration`),r.exported=r.specifiers[0].exported,delete r.specifiers);case`ExportDefaultDeclaration`:{let{declaration:e}=r;e?.type===`ClassDeclaration`&&e.decorators?.length>0&&e.start===r.start&&this.resetStartLocation(r,n)}break}return r}stopParseSubscript(e,t){let n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,t,n,r,i){let a=super.parseMember(e,t,n,r,i);return a.type===`OptionalMemberExpression`?this.castNodeTo(a,`MemberExpression`):a.optional=!1,a}isOptionalMemberExpression(e){return e.type===`ChainExpression`?e.expression.type===`MemberExpression`:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type===`ChainExpression`&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type===`Property`&&e.kind===`init`&&!e.method}isObjectMethod(e){return e.type===`Property`&&(e.method||e.kind===`get`||e.kind===`set`)}castNodeTo(e,t){let n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){let t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return e.type===`Literal`?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,n){return HB(super.finishNodeAt(e,t,n))}finishNode(e,t){let n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,t){super.resetStartLocation(e,t),HB(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),HB(e)}},WB=class{constructor(e,t){this.token=e,this.preserveSpace=!!t}token;preserveSpace},GB={brace:new WB(`{`),j_oTag:new WB(`<tag`),j_cTag:new WB(`</tag`),j_expr:new WB(`<tag>...</tag>`,!0)},KB=!0,Z=!0,qB=!0,JB=!0,YB=!0,XB=!0,ZB=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,t={}){this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop==null?null:t.binop}},QB=new Map;function $B(e,t={}){t.keyword=e;let n=cV(e,t);return QB.set(e,n),n}function eV(e,t){return cV(e,{beforeExpr:KB,binop:t})}var tV=-1,nV=[],rV=[],iV=[],aV=[],oV=[],sV=[];function cV(e,t={}){return++tV,rV.push(e),iV.push(t.binop??-1),aV.push(t.beforeExpr??!1),oV.push(t.startsExpr??!1),sV.push(t.prefix??!1),nV.push(new ZB(e,t)),tV}function lV(e,t={}){return++tV,QB.set(e,tV),rV.push(e),iV.push(t.binop??-1),aV.push(t.beforeExpr??!1),oV.push(t.startsExpr??!1),sV.push(t.prefix??!1),nV.push(new ZB(`name`,t)),tV}var uV={bracketL:cV(`[`,{beforeExpr:KB,startsExpr:Z}),bracketHashL:cV(`#[`,{beforeExpr:KB,startsExpr:Z}),bracketBarL:cV(`[|`,{beforeExpr:KB,startsExpr:Z}),bracketR:cV(`]`),bracketBarR:cV(`|]`),braceL:cV(`{`,{beforeExpr:KB,startsExpr:Z}),braceBarL:cV(`{|`,{beforeExpr:KB,startsExpr:Z}),braceHashL:cV(`#{`,{beforeExpr:KB,startsExpr:Z}),braceR:cV(`}`),braceBarR:cV(`|}`),parenL:cV(`(`,{beforeExpr:KB,startsExpr:Z}),parenR:cV(`)`),comma:cV(`,`,{beforeExpr:KB}),semi:cV(`;`,{beforeExpr:KB}),colon:cV(`:`,{beforeExpr:KB}),doubleColon:cV(`::`,{beforeExpr:KB}),dot:cV(`.`),question:cV(`?`,{beforeExpr:KB}),questionDot:cV(`?.`),arrow:cV(`=>`,{beforeExpr:KB}),template:cV(`template`),ellipsis:cV(`...`,{beforeExpr:KB}),backQuote:cV("`",{startsExpr:Z}),dollarBraceL:cV("${",{beforeExpr:KB,startsExpr:Z}),templateTail:cV("...`",{startsExpr:Z}),templateNonTail:cV("...${",{beforeExpr:KB,startsExpr:Z}),at:cV(`@`),hash:cV(`#`,{startsExpr:Z}),interpreterDirective:cV(`#!...`),eq:cV(`=`,{beforeExpr:KB,isAssign:JB}),assign:cV(`_=`,{beforeExpr:KB,isAssign:JB}),slashAssign:cV(`_=`,{beforeExpr:KB,isAssign:JB}),xorAssign:cV(`_=`,{beforeExpr:KB,isAssign:JB}),moduloAssign:cV(`_=`,{beforeExpr:KB,isAssign:JB}),incDec:cV(`++/--`,{prefix:YB,postfix:XB,startsExpr:Z}),bang:cV(`!`,{beforeExpr:KB,prefix:YB,startsExpr:Z}),tilde:cV(`~`,{beforeExpr:KB,prefix:YB,startsExpr:Z}),doubleCaret:cV(`^^`,{startsExpr:Z}),doubleAt:cV(`@@`,{startsExpr:Z}),pipeline:eV(`|>`,0),nullishCoalescing:eV(`??`,1),logicalOR:eV(`||`,1),logicalAND:eV(`&&`,2),bitwiseOR:eV(`|`,3),bitwiseXOR:eV(`^`,4),bitwiseAND:eV(`&`,5),equality:eV(`==/!=/===/!==`,6),lt:eV(`</>/<=/>=`,7),gt:eV(`</>/<=/>=`,7),relational:eV(`</>/<=/>=`,7),bitShift:eV(`<</>>/>>>`,8),bitShiftL:eV(`<</>>/>>>`,8),bitShiftR:eV(`<</>>/>>>`,8),plusMin:cV(`+/-`,{beforeExpr:KB,binop:9,prefix:YB,startsExpr:Z}),modulo:cV(`%`,{binop:10,startsExpr:Z}),star:cV(`*`,{binop:10}),slash:eV(`/`,10),exponent:cV(`**`,{beforeExpr:KB,binop:11,rightAssociative:!0}),_in:$B(`in`,{beforeExpr:KB,binop:7}),_instanceof:$B(`instanceof`,{beforeExpr:KB,binop:7}),_break:$B(`break`),_case:$B(`case`,{beforeExpr:KB}),_catch:$B(`catch`),_continue:$B(`continue`),_debugger:$B(`debugger`),_default:$B(`default`,{beforeExpr:KB}),_else:$B(`else`,{beforeExpr:KB}),_finally:$B(`finally`),_function:$B(`function`,{startsExpr:Z}),_if:$B(`if`),_return:$B(`return`,{beforeExpr:KB}),_switch:$B(`switch`),_throw:$B(`throw`,{beforeExpr:KB,prefix:YB,startsExpr:Z}),_try:$B(`try`),_var:$B(`var`),_const:$B(`const`),_with:$B(`with`),_new:$B(`new`,{beforeExpr:KB,startsExpr:Z}),_this:$B(`this`,{startsExpr:Z}),_super:$B(`super`,{startsExpr:Z}),_class:$B(`class`,{startsExpr:Z}),_extends:$B(`extends`,{beforeExpr:KB}),_export:$B(`export`),_import:$B(`import`,{startsExpr:Z}),_null:$B(`null`,{startsExpr:Z}),_true:$B(`true`,{startsExpr:Z}),_false:$B(`false`,{startsExpr:Z}),_typeof:$B(`typeof`,{beforeExpr:KB,prefix:YB,startsExpr:Z}),_void:$B(`void`,{beforeExpr:KB,prefix:YB,startsExpr:Z}),_delete:$B(`delete`,{beforeExpr:KB,prefix:YB,startsExpr:Z}),_do:$B(`do`,{isLoop:qB,beforeExpr:KB}),_for:$B(`for`,{isLoop:qB}),_while:$B(`while`,{isLoop:qB}),_as:lV(`as`,{startsExpr:Z}),_assert:lV(`assert`,{startsExpr:Z}),_async:lV(`async`,{startsExpr:Z}),_await:lV(`await`,{startsExpr:Z}),_defer:lV(`defer`,{startsExpr:Z}),_from:lV(`from`,{startsExpr:Z}),_get:lV(`get`,{startsExpr:Z}),_let:lV(`let`,{startsExpr:Z}),_meta:lV(`meta`,{startsExpr:Z}),_of:lV(`of`,{startsExpr:Z}),_sent:lV(`sent`,{startsExpr:Z}),_set:lV(`set`,{startsExpr:Z}),_source:lV(`source`,{startsExpr:Z}),_static:lV(`static`,{startsExpr:Z}),_using:lV(`using`,{startsExpr:Z}),_yield:lV(`yield`,{startsExpr:Z}),_asserts:lV(`asserts`,{startsExpr:Z}),_checks:lV(`checks`,{startsExpr:Z}),_exports:lV(`exports`,{startsExpr:Z}),_global:lV(`global`,{startsExpr:Z}),_implements:lV(`implements`,{startsExpr:Z}),_intrinsic:lV(`intrinsic`,{startsExpr:Z}),_infer:lV(`infer`,{startsExpr:Z}),_is:lV(`is`,{startsExpr:Z}),_mixins:lV(`mixins`,{startsExpr:Z}),_proto:lV(`proto`,{startsExpr:Z}),_require:lV(`require`,{startsExpr:Z}),_satisfies:lV(`satisfies`,{startsExpr:Z}),_keyof:lV(`keyof`,{startsExpr:Z}),_readonly:lV(`readonly`,{startsExpr:Z}),_unique:lV(`unique`,{startsExpr:Z}),_abstract:lV(`abstract`,{startsExpr:Z}),_declare:lV(`declare`,{startsExpr:Z}),_enum:lV(`enum`,{startsExpr:Z}),_module:lV(`module`,{startsExpr:Z}),_namespace:lV(`namespace`,{startsExpr:Z}),_interface:lV(`interface`,{startsExpr:Z}),_type:lV(`type`,{startsExpr:Z}),_opaque:lV(`opaque`,{startsExpr:Z}),name:cV(`name`,{startsExpr:Z}),placeholder:cV(`%%`,{startsExpr:Z}),string:cV(`string`,{startsExpr:Z}),num:cV(`num`,{startsExpr:Z}),bigint:cV(`bigint`,{startsExpr:Z}),decimal:cV(`decimal`,{startsExpr:Z}),regexp:cV(`regexp`,{startsExpr:Z}),privateName:cV(`#name`,{startsExpr:Z}),eof:cV(`eof`),jsxName:cV(`jsxName`),jsxText:cV(`jsxText`,{beforeExpr:KB}),jsxTagStart:cV(`jsxTagStart`,{startsExpr:Z}),jsxTagEnd:cV(`jsxTagEnd`)};function dV(e){return e>=93&&e<=133}function fV(e){return e<=92}function pV(e){return e>=58&&e<=133}function mV(e){return e>=58&&e<=137}function hV(e){return aV[e]}function gV(e){return oV[e]}function _V(e){return e>=29&&e<=33}function vV(e){return e>=129&&e<=131}function yV(e){return e>=90&&e<=92}function bV(e){return e>=58&&e<=92}function xV(e){return e>=39&&e<=59}function SV(e){return e===34}function CV(e){return sV[e]}function wV(e){return e>=121&&e<=123}function TV(e){return e>=124&&e<=130}function EV(e){return rV[e]}function DV(e){return iV[e]}function OV(e){return e===57}function kV(e){return e>=24&&e<=25}function AV(e){return nV[e]}var jV=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,MV=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,NV=RegExp(`[`+jV+`]`),PV=RegExp(`[`+jV+MV+`]`);jV=MV=null;var FV=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],IV=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function LV(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function RV(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&NV.test(String.fromCharCode(e)):LV(e,FV)}function zV(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&PV.test(String.fromCharCode(e)):LV(e,FV)||LV(e,IV)}var BV={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},VV=new Set(BV.keyword),HV=new Set(BV.strict),UV=new Set(BV.strictBind);function WV(e,t){return t&&e===`await`||e===`enum`}function GV(e,t){return WV(e,t)||HV.has(e)}function KV(e){return UV.has(e)}function qV(e,t){return GV(e,t)||KV(e)}function JV(e){return VV.has(e)}function YV(e,t,n){return e===64&&t===64&&RV(n)}var XV=new Set(`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete.implements.interface.let.package.private.protected.public.static.yield.eval.arguments.enum.await`.split(`.`));function ZV(e){return XV.has(e)}var QV=class{flags=0;names=new Map;firstLexicalName=``;constructor(e){this.flags=e}},$V=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,t){this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new QV(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,n){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;t&16?i|=4:(r.firstLexicalName||=e,i|=2),r.names.set(e,i),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&1667));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(X.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(n&1))return!1;if(n&8)return e.names.has(t);let r=e.names.get(t)||0;return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}},eH=class extends QV{declareFunctions=new Set},tH=class extends $V{createScope(e){return new eH(e)}declareName(e,t,n){let r=this.currentScope();if(t&2048){this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(n&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},nH=new Set([`_`,`any`,`bool`,`boolean`,`empty`,`extends`,`false`,`interface`,`mixed`,`null`,`number`,`static`,`string`,`true`,`typeof`,`void`]),rH=LB`flow`({AmbiguousConditionalArrow:`Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.`,AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:`Explicit inexact syntax cannot appear inside an explicit exact object type.`,InexactInsideNonObject:`Explicit inexact syntax cannot appear in class or interface definitions.`,InexactVariance:`Explicit inexact syntax cannot have variance.`,InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:`Type parameter declaration needs a default, since a preceding type parameter declaration has a default.`,NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:`Cannot have a flow comment inside another flow comment.`,PatternIsOptional:Object.assign({message:`A binding pattern parameter cannot be optional in an implementation signature.`},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:`Spread properties cannot have variance.`,ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:`The type cast expression is expected to be wrapped with parenthesis.`,UnexpectedExplicitInexactInObject:`Explicit inexact syntax must appear at the end of an inexact object.`,UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:`Spread operator cannot appear in class or interface definitions.`,UnexpectedSubtractionOperand:`Unexpected token, expected "number" or "bigint".`,UnexpectedTokenAfterTypeParameter:`Expected an arrow function after this type parameter declaration.`,UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:`Only declares and type imports are allowed inside declare module.`,UnterminatedFlowComment:`Unterminated flow-comment.`});function iH(e){return e.type===`DeclareExportAllDeclaration`||e.type===`DeclareExportDeclaration`&&(!e.declaration||e.declaration.type!==`TypeAlias`&&e.declaration.type!==`InterfaceDeclaration`)}function aH(e){return e.importKind===`type`||e.importKind===`typeof`}var oH={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function sH(e,t){let n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}var cH=/\*?\s*@((?:no)?flow)\b/,lH=e=>class extends e{flowPragma=void 0;getScopeHandler(){return tH}shouldParseTypes(){return this.getPluginOption(`flow`,`all`)||this.flowPragma===`flow`}finishToken(e,t){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){let t=cH.exec(e.value);if(t)if(t[1]===`flow`)this.flowPragma=`flow`;else if(t[1]===`noflow`)this.flowPragma=`noflow`;else throw Error(`Unexpected flow pragma`)}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(rH.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,`DeclaredPredicate`)):this.finishNode(e,`InferredPredicate`)}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,`DeclareClass`)}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,`FunctionTypeAnnotation`),t.typeAnnotation=this.finishNode(r,`TypeAnnotation`),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,`DeclareFunction`)}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(rH.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,`DeclareVariable`)}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(rH.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(e))):(this.expectContextual(125,rH.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,`BlockStatement`);let r=null,i=!1;return n.forEach(e=>{iH(e)?(r===`CommonJS`&&this.raise(rH.AmbiguousDeclareModuleKind,e),r=`ES`):e.type===`DeclareModuleExports`&&(i&&this.raise(rH.DuplicateDeclareModuleExports,e),r===`ES`&&this.raise(rH.AmbiguousDeclareModuleKind,e),r=`CommonJS`,i=!0)}),e.kind=r||`CommonJS`,this.finishNode(e,`DeclareModule`)}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(rH.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:oH[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type===`ExportNamedDeclaration`?(e.default=!1,delete e.exportKind,this.castNodeTo(e,`DeclareExportDeclaration`)):this.castNodeTo(e,`DeclareExportAllDeclaration`);throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,`DeclareModuleExports`)}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return this.castNodeTo(t,`DeclareTypeAlias`),t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,`DeclareOpaqueType`),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,`DeclareInterface`)}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,`InterfaceExtends`)}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,`InterfaceDeclaration`)}checkNotUnderscore(e){e===`_`&&this.raise(rH.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){nH.has(e)&&this.raise(n?rH.AssignReservedType:rH.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,`TypeAlias`)}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,`OpaqueType`)}flowParseTypeParameter(e=!1){let t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(rH.MissingTypeParamDefault,t),this.finishNode(n,`TypeParameter`)}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,`TypeParameterDeclaration`)}flowInTopLevelContext(e){if(this.curContext()!==GB.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,!this.state.inType&&this.curContext()===GB.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TypeParameterInstantiation`)}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,`InterfaceTypeAnnotation`)}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,`ObjectTypeIndexer`)}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,`ObjectTypeInternalSlot`)}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,`FunctionTypeAnnotation`)}flowParseObjectTypeCallProperty(e,t){let n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,`ObjectTypeCallProperty`)}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let s,c,l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();t.type!==14&&t.type!==17&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();e.type!==14&&e.type!==17&&(this.next(),t=!0)}let d=this.flowParseVariance();if(this.eat(0))a!=null&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))a!=null&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e=`init`;(this.isContextual(99)||this.isContextual(104))&&mV(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,i??!c);r===null?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),s&&!this.match(8)&&!this.match(9)&&this.raise(rH.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);let u=this.finishNode(o,`ObjectTypeAnnotation`);return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(rH.InexactInsideExact,this.state.lastTokStartLoc):this.raise(rH.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(rH.InexactVariance,r),null):(a||this.raise(rH.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),r&&this.raise(rH.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,`ObjectTypeSpreadProperty`));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(i===`get`||i===`set`)&&this.flowCheckGetterSetterParams(e),!a&&e.key.name===`constructor`&&e.value.this&&this.raise(rH.ThisParamBannedInConstructor,e.value.this)):(i!==`init`&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,`ObjectTypeProperty`)}}flowCheckGetterSetterParams(e){let t=e.kind===`get`?0:1,n=e.value.params.length+ +!!e.value.rest;e.value.this&&this.raise(e.kind===`get`?rH.GetterMayNotHaveThisParam:rH.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise(e.kind===`get`?X.BadGetterArity:X.BadSetterArity,e),e.kind===`set`&&e.value.rest&&this.raise(X.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){e??=this.state.startLoc;let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,`QualifiedTypeIdentifier`)}return n}flowParseGenericType(e,t){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,`GenericTypeAnnotation`)}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,`TypeofTypeAnnotation`)}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,`TupleTypeAnnotation`)}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null,i=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(rH.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(rH.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,`FunctionTypeParam`)}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,`FunctionTypeParam`)}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case`any`:return this.finishNode(t,`AnyTypeAnnotation`);case`bool`:case`boolean`:return this.finishNode(t,`BooleanTypeAnnotation`);case`mixed`:return this.finishNode(t,`MixedTypeAnnotation`);case`empty`:return this.finishNode(t,`EmptyTypeAnnotation`);case`number`:return this.finishNode(t,`NumberTypeAnnotation`);case`string`:return this.finishNode(t,`StringTypeAnnotation`);case`symbol`:return this.finishNode(t,`SymbolTypeAnnotation`);default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),n,r,i=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=a,r;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,`FunctionTypeAnnotation`)}case 10:{let e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(dV(this.state.type)||this.match(78)){let e=this.lookahead().type;i=e!==17&&e!==14}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,`FunctionTypeAnnotation`)}case 134:return this.parseLiteral(this.state.value,`StringLiteralTypeAnnotation`);case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,`BooleanLiteralTypeAnnotation`);case 53:if(this.state.value===`-`){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,`NumberLiteralTypeAnnotation`,t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,`BigIntLiteralTypeAnnotation`,t);throw this.raise(rH.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,`NumberLiteralTypeAnnotation`);case 136:return this.parseLiteral(this.state.value,`BigIntLiteralTypeAnnotation`);case 88:return this.next(),this.finishNode(t,`VoidTypeAnnotation`);case 84:return this.next(),this.finishNode(t,`NullLiteralTypeAnnotation`);case 78:return this.next(),this.finishNode(t,`ThisTypeAnnotation`);case 55:return this.next(),this.finishNode(t,`ExistsTypeAnnotation`);case 87:return this.flowParseTypeofType();default:if(bV(this.state.type)){let e=EV(this.state.type);return this.next(),super.createIdentifier(t,e)}else if(dV(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),i=this.eat(18);n||=i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,`ArrayTypeAnnotation`)):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,`OptionalIndexedAccessType`)):t=this.finishNode(r,`IndexedAccessType`))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,`NullableTypeAnnotation`)):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,`FunctionTypeAnnotation`)}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,`IntersectionTypeAnnotation`)}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,`UnionTypeAnnotation`)}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value===`_`){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,`TypeAnnotation`)}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value===`+`?e.kind=`plus`:e.kind=`minus`,this.next(),this.finishNode(e,`Variance`)):e}parseFunctionBody(e,t,n=!1){if(t){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,`TypeAnnotation`):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(pV(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if(t.type===`Identifier`){if(t.name===`declare`){if(this.match(80)||dV(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(dV(this.state.type)){if(t.name===`interface`)return this.flowParseInterface(e);if(t.name===`type`)return this.flowParseTypeAlias(e);if(t.name===`opaque`)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||vV(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||vV(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}this.expect(17);let r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t),{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){let e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:s}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}s&&c.length>1&&this.raise(rH.AmbiguousConditionalArrow,r.startLoc),s&&c.length===1&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,{consequent:o,failed:s}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,`ConditionalExpression`)}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let n=[e],r=[];for(;n.length!==0;){let e=n.pop();e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):e.type===`ConditionalExpression`&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):sH(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,`TypeCastExpression`)}return n}assertModuleNodeAllowed(e){e.type===`ImportDeclaration`&&(e.importKind===`type`||e.importKind===`typeof`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`ExportAllDeclaration`&&e.exportKind===`type`||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}else if(this.isContextual(131)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}else if(this.isContextual(129)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind=`value`;let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind=`type`,this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind===`type`&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!==`ClassProperty`&&t.type!==`ClassPrivateProperty`&&t.type!==`PropertyDefinition`?this.raise(rH.DeclareClassElement,r):t.value&&this.raise(rH.DeclareClassFieldInitializer,t.value))}isIterator(e){return e===`iterator`||e===`asyncIterator`}readIterator(){let e=super.readWord1(),t=`@@`+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(X.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):YV(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type===`TypeCastExpression`?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&e.type===`AssignmentExpression`&&e.left.type===`TypeCastExpression`&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let n=0;n<e.length;n++){let r=e[n];r&&r.type===`TypeCastExpression`&&!r.extra?.parenthesized&&(e.length>1||!t)&&this.raise(rH.TypeCastInPattern,r.typeAnnotation)}return e}parseArrayLike(e,t,n){let r=super.parseArrayLike(e,t,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(r.elements),r}isValidLVal(e,t,n,r){return e===`TypeCastExpression`||super.isValidLVal(e,t,n,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(rH.ThisParamBannedInConstructor,t)}else if(t.type===`MethodDefinition`&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(rH.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,`ClassImplements`))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let n=t[0];this.isThisParam(n)&&e.kind===`get`?this.raise(rH.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(rH.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let s;this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseFunctionParamType(e){return this.eat(17)&&(e.type!==`Identifier`&&this.raise(rH.PatternIsOptional,e),this.isThisParam(e)&&this.raise(rH.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(rH.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(rH.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(rH.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(rH.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=aH(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind=n===`type`?n:`value`}else n===`type`&&this.match(55)&&this.unexpected(),e.importKind=n===`type`||n===`typeof`?n:`value`}parseImportSpecifier(e,t,n,r,i){let a=e.imported,o=null;a.type===`Identifier`&&(a.name===`type`?o=`type`:a.name===`typeof`&&(o=`typeof`));let s=!1;if(this.isContextual(93)&&!this.isLookaheadContextual(`as`)){let t=this.parseIdentifier(!0);o!==null&&!pV(this.state.type)?(e.imported=t,e.importKind=o,e.local=this.cloneIdentifier(t)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&pV(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(X.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(s=!0,e.local=this.cloneIdentifier(e.imported))}let c=aH(e);return n&&c&&this.raise(rH.ImportTypeShorthandOnlyInPureImport,e),(n||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),s&&!n&&!c&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,`ImportSpecifier`)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){let n=e.kind;n!==`get`&&n!==`set`&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){let n=null,r;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(n=this.state.clone(),r=this.tryParse(()=>super.parseMaybeAssign(e,t),n),!r.error)return r.node;let{context:i}=this.state,a=i[i.length-1];(a===GB.j_oTag||a===GB.j_expr)&&i.pop()}if(r?.error||this.match(47)){n||=this.state.clone();let i,a=this.tryParse(n=>{i=this.flowParseTypeParameterDeclaration();let r=this.forwardNoArrowParamsConversionAt(i,()=>{let n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,i),n});r.extra?.parenthesized&&n();let a=this.maybeUnwrapTypeCastExpression(r);return a.type!==`ArrowFunctionExpression`&&n(),a.typeParameters=i,this.resetStartLocationFromNode(a,i),r},n),o=null;if(a.node&&this.maybeUnwrapTypeCastExpression(a.node).type===`ArrowFunctionExpression`){if(!a.error&&!a.aborted)return a.node.async&&this.raise(rH.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),a.node;o=a.node}if(r?.node)return this.state=r.failState,r.node;if(o)return this.state=a.failState,o;throw r?.thrown?r.error:a.thrown?a.error:this.raise(rH.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,`TypeAnnotation`):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(rH.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if(e.type===`Identifier`&&e.name===`async`&&this.state.noArrowAt.includes(t.index)){this.next();let n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,`CallExpression`)}else if(e.type===`Identifier`&&e.name===`async`&&this.match(47)){let r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let n=this.startNodeAt(t);n.callee=e;let i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){let n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(rH.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin(`flowComments`)&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(rH.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?`*-/`:`*/`)}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return n===58&&r===58?t+2:this.input.slice(t+e,t+e+12)===`flow-include`?t+12:n===58&&r!==58?t:!1}hasFlowCommentCompletion(){if(this.input.indexOf(`*/`,this.state.pos)===-1)throw this.raise(X.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(rH.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?t.explicitType===`symbol`?rH.EnumInvalidMemberInitializerSymbolType:rH.EnumInvalidMemberInitializerPrimaryType:rH.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(rH.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(rH.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return t()?{type:`number`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 134:{let n=this.parseStringLiteral(this.state.value);return t()?{type:`string`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return t()?{type:`boolean`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}default:return{type:`invalid`,loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:`none`,loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){let{explicitType:r}=t;r!==null&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(c===``)continue;/^[a-z]/.test(c)&&this.raise(rH.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(rH.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);let l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case`boolean`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`boolean`),a.init=s.value,r.booleanMembers.push(this.finishNode(a,`EnumBooleanMember`));break;case`number`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`number`),a.init=s.value,r.numberMembers.push(this.finishNode(a,`EnumNumberMember`));break;case`string`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`string`),a.init=s.value,r.stringMembers.push(this.finishNode(a,`EnumStringMember`));break;case`invalid`:throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case`none`:switch(t){case`boolean`:this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case`number`:this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,`EnumDefaultedMember`))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}else{for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!dV(this.state.type))throw this.raise(rH.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),t!==`boolean`&&t!==`number`&&t!==`string`&&t!==`symbol`&&this.raise(rH.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case`boolean`:return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`);case`number`:return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`);case`string`:return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);case`symbol`:return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,`EnumSymbolBody`);default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,`EnumStringBody`));e.explicitType=!1;let i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(!i&&!o&&!s&&!c)return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);if(!o&&!s&&i>=c){for(let e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`)}else if(!i&&!s&&o>=c){for(let e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`)}else return this.raise(rH.EnumInconsistentMemberValues,r,{enumName:n}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,`EnumDeclaration`)}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type===`TypeCastExpression`?e.expression:e}},uH=RegExp(`\\r\\n|[\\r\\n\\u2028\\u2029]`,`g`);function dH(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function fH(e,t,n){for(let r=t;r<n;r++)if(dH(e.charCodeAt(r)))return!0;return!1}var pH=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,mH=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function hH(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var gH=LB`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:`Expected corresponding JSX closing tag for <>.`,UnexpectedSequenceExpression:`Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?`,UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:`JSX value should be either an expression or a quoted JSX text.`,UnterminatedJsxContent:`Unterminated JSX contents.`,UnwrappedAdjacentJSXElements:`Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?`});function _H(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}function vH(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return vH(e.object)+`.`+vH(e.property);throw Error(`Node had unexpected type: `+e.type)}var yH=e=>class extends e{jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(gH.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}e+=this.input.slice(t,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;case 62:case 125:this.raise(gH.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?`&rbrace;`:`&gt;`});default:dH(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
340
+ `:`\r
341
+ `):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(X.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):dH(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;n&&(this.input.slice(e,this.state.pos),++this.state.pos)}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(zV(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:bV(this.state.type)?e.name=EV(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(GB.brace),this.next(),e=this.jsxParseExpressionContainer(e,GB.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(gH.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(gH.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(GB.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();t.type===`SequenceExpression`&&!t.extra?.parenthesized&&this.raise(gH.UnexpectedSequenceExpression,t.expressions[1]),e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(GB.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(GB.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(GB.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,GB.j_expr));break}default:this.unexpected()}_H(r)&&!_H(i)&&i!==null?this.raise(gH.MissingClosingTagFragment,i):(!_H(r)&&_H(i)||!_H(r)&&!_H(i)&&vH(i.name)!==vH(r.name))&&this.raise(gH.MissingClosingTagElement,i,{openingTagName:vH(r.name)})}if(_H(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(gH.UnwrappedAdjacentJSXElements,this.state.startLoc);return _H(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===GB.j_expr){this.jsxReadToken();return}if(t===GB.j_oTag||t===GB.j_cTag){if(RV(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&t===GB.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===143)t.splice(-2,2,GB.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)t.push(GB.j_oTag);else if(n===144){let n=t[t.length-1];n===GB.j_oTag&&e===56||n===GB.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===GB.j_expr):(this.setContext(GB.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=hV(n)}},bH=class extends QV{tsNames=new Map},xH=class extends $V{importsStack=[];createScope(e){return this.importsStack.push(new Set),new bH(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(X.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,i|16);return}super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},SH=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function CH(e,t){return(e?2:0)|!!t}var wH=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function TH(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function EH(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function DH(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function OH(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?DH(e,n.comments):TH(r,n.comments)}var kH=class extends wH{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&TH(e.leadingNode,t),e.trailingNode!==null&&EH(e.trailingNode,t);else{let n=e.containingNode,r=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:case`RecordExpression`:OH(n,n.properties,e);break;case`CallExpression`:case`OptionalCallExpression`:OH(n,n.arguments,e);break;case`ImportExpression`:OH(n,[n.source,n.options??null],e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:OH(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:case`TupleExpression`:OH(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:OH(n,n.specifiers,e);break;case`TSEnumDeclaration`:DH(n,t);break;case`TSEnumBody`:OH(n,n.members,e);break;default:DH(n,t)}else DH(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},AH=class e{flags=1024;get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:e,sourceType:t,startIndex:n,startLine:r,startColumn:i}){this.strict=e===!1?!1:e===!0?!0:t===`module`,this.startIndex=n,this.curLine=r,this.lineStart=-i,this.startLoc=this.endLoc=new SB(r,i,n)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[GB.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new SB(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},jH=function(e){return e>=48&&e<=57},MH={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},NH={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function PH(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(FH(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=IH(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
342
+ `,++n,p===13&&t.charCodeAt(n)===10&&++n,++i,d=r=n):a.unterminated(o,s,c):++n}return{pos:n,str:l,firstInvalidLoc:u,lineStart:r,curLine:i}}function FH(e,t,n,r){return e===`template`?t===96||t===36&&n.charCodeAt(r+1)===123:t===(e===`double`?34:39)}function IH(e,t,n,r,i,a){let o=!i;t++;let s=e=>({pos:t,ch:e,lineStart:n,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return s(`
343
+ `);case 114:return s(`\r`);case 120:{let i;return{code:i,pos:t}=LH(e,t,n,r,2,!1,o,a),s(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=zH(e,t,n,r,o,a),s(i===null?null:String.fromCodePoint(i))}case 116:return s(` `);case 98:return s(`\b`);case 118:return s(`\v`);case 102:return s(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return s(``);case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){let o=t-1,c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;let u=e.charCodeAt(t);if(c!==`0`||u===56||u===57){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}function LH(e,t,n,r,i,a,o,s){let c=t,l;return{n:l,pos:t}=RH(e,t,n,r,16,i,a,!1,s,!o),l===null&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}function RH(e,t,n,r,i,a,o,s,c,l){let u=t,d=i===16?MH.hex:MH.decBinOct,f=i===16?NH.hex:i===10?NH.dec:i===8?NH.oct:NH.bin,p=!1,m=0;for(let u=0,h=a??1/0;u<h;++u){let a=e.charCodeAt(t),u;if(a===95&&s!==`bail`){let i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(s){if(Number.isNaN(a)||!f(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}}else{if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}++t;continue}if(u=a>=97?a-97+10:a>=65?a-65+10:jH(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else if(o)u=0,p=!0;else break}++t,m=m*i+u}return t===u||a!=null&&t-u!==a||p?{n:null,pos:t}:{n:m,pos:t}}function zH(e,t,n,r,i,a){let o=e.charCodeAt(t),s;if(o===123){if(++t,{code:s,pos:t}=LH(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,s!==null&&s>1114111)if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}else ({code:s,pos:t}=LH(e,t,n,r,4,!1,i,a));return{code:s,pos:t}}function BH(e,t,n){return new SB(n,e-t,e)}var VH=new Set([103,109,115,105,121,117,100,118]),HH=class{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new CB(e.startLoc,e.endLoc)}},UH=class extends kH{isLookahead;tokens=[];constructor(e,t){super(),this.state=new AH,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new HH(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return pH.lastIndex=e,pH.test(this.input)?pH.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return mH.lastIndex=e,mH.test(this.input)?mH.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)==56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let n=this.state.pos,r=this.input.indexOf(e,n+2);if(r===-1)throw this.raise(X.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,uH.lastIndex=n+2;uH.test(this.input)&&uH.lastIndex<=r;)++this.state.curLine,this.state.lineStart=uH.lastIndex;if(this.isLookahead)return;let i={type:`CommentBlock`,value:this.input.slice(n+2,r),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(r+e.length),loc:new CB(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(i),i}skipLineComment(e){let t=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!dH(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,a={type:`CommentLine`,value:this.input.slice(t+e,i),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),loc:new CB(n,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipSpace(){let e=this.state.pos,t=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment(`*/`);e!==void 0&&(this.addComment(e),t?.push(e));break}case 47:{let e=this.skipLineComment(2);e!==void 0&&(this.addComment(e),t?.push(e));break}default:break e}break;default:if(hH(n))++this.state.pos;else if(n===45&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let e=this.skipLineComment(3);e!==void 0&&(this.addComment(e),t?.push(e))}else break e}else if(n===60&&!this.inModule&&this.optionFlags&8192){let e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){let e=this.skipLineComment(4);e!==void 0&&(this.addComment(e),t?.push(e))}else break e}else break e}}if(t?.length>0){let n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(X.UnexpectedDigitAfterHash,this.state.curPosition());RV(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!dH(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=e===42?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(n++,t=e===37?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124&&t===62){this.finishOp(39,2);return}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`^^`}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`@@`}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin(`functionBind`)&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(RV(e)){this.readWord(e);return}}throw this.raise(X.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,n,r,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(X.UnterminatedRegExp,wB(e,1));let t=this.input.charCodeAt(i);if(dH(t))throw this.raise(X.UnterminatedRegExp,wB(e,1));if(n)n=!1;else{if(t===91)r=!0;else if(t===93&&r)r=!1;else if(t===47&&!r)break;n=t===92}}let a=this.input.slice(t,i);++i;let o=``,s=()=>wB(e,i+2-t);for(;i<this.length;){let e=this.codePointAtPos(i),t=String.fromCharCode(e);if(VH.has(e))e===118?o.includes(`u`)&&this.raise(X.IncompatibleRegExpUVFlags,s()):e===117&&o.includes(`v`)&&this.raise(X.IncompatibleRegExpUVFlags,s()),o.includes(t)&&this.raise(X.DuplicateRegExpFlags,s());else if(zV(e)||e===92)this.raise(X.MalformedRegExpFlags,s());else break;++i,o+=t}this.state.pos=i,this.finishToken(138,{pattern:a,flags:o})}readInt(e,t,n=!1,r=!0){let{n:i,pos:a}=RH(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1;this.state.pos+=2;let i=this.readInt(e);i??this.raise(X.InvalidDigit,wB(n,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,r=!0;else if(a===109)throw this.raise(X.InvalidDecimal,n);if(RV(this.codePointAtPos(this.state.pos)))throw this.raise(X.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,``);this.finishToken(136,e);return}this.finishToken(135,i)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1,i=!1,a=!1;!e&&this.readInt(10)===null&&this.raise(X.InvalidNumber,this.state.curPosition());let o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(X.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf(`_`);t>0&&this.raise(X.ZeroDigitNumericSeparator,wB(n,t))}a=o&&!/[89]/.test(e)}let s=this.input.charCodeAt(this.state.pos);if(s===46&&!a&&(++this.state.pos,this.readInt(10),r=!0,s=this.input.charCodeAt(this.state.pos)),(s===69||s===101)&&!a&&(s=this.input.charCodeAt(++this.state.pos),(s===43||s===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(X.InvalidOrMissingExponent,n),r=!0,s=this.input.charCodeAt(this.state.pos)),s===110&&((r||o)&&this.raise(X.InvalidBigIntLiteral,n),++this.state.pos,i=!0),RV(this.codePointAtPos(this.state.pos)))throw this.raise(X.NumberIdentifier,this.state.curPosition());let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,``);if(i){this.finishToken(136,c);return}let l=a?parseInt(c,8):parseFloat(c);this.finishToken(135,l)}readCodePoint(e){let{code:t,pos:n}=zH(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=PH(e===34?`double`:`single`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:r,curLine:i,lineStart:a}=PH(`template`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=r+1,this.state.lineStart=a,this.state.curLine=i,n&&(this.state.firstInvalidTemplateEscapePos=new SB(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),this.input.codePointAt(r)===96?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t=``,n=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(zV(e))this.state.pos+=e<=65535?1:2;else if(e===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?RV:zV;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(X.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);a!==null&&(i(a)||this.raise(X.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(a)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=QB.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,EV(n))}checkKeywordEscapes(){let{type:e}=this.state;bV(e)&&this.state.containsEsc&&this.raise(X.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:EV(e)})}raise(e,t,n={}){let r=e(t instanceof SB?t:t.loc.start,n);if(!(this.optionFlags&2048))throw r;return this.isLookahead||this.state.errors.push(r),r}raiseOverwrite(e,t,n={}){let r=t instanceof SB?t:t.loc.start,i=r.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){let o=a[t];if(o.loc.index===i)return a[t]=e(r,n);if(o.loc.index<i)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(X.UnexpectedToken,e??this.state.startLoc,{expected:t?EV(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(X.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(X.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,BH(t,n,r))}}errorHandlers_readInt={invalidDigit:(e,t,n,r)=>this.optionFlags&2048?(this.raise(X.InvalidDigit,BH(e,t,n),{radix:r}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(X.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(X.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(X.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(X.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(X.StrictNumericEscape,BH(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(X.UnterminatedString,BH(e-1,t,n))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(X.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(X.UnterminatedTemplate,BH(e,t,n))}})},WH=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},GH=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new WH)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(X.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=r.has(e);if(t&3){let n=o&&i.get(e);if(n){let r=n&4,a=t&4;o=(n&3)==(t&3)||r!==a,o||i.delete(e)}else o||i.set(e,t)}o&&this.parser.raise(X.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(X.InvalidPrivateFieldResolution,t,{identifierName:e})}},KH=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},qH=class extends KH{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,t){let n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},JH=class{parser;stack=[new KH];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let n=t.loc.start,{stack:r}=this,i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(X.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}};function YH(){return new KH(3)}function XH(){return new qH(1)}function ZH(){return new qH(2)}function QH(){return new KH}var $H=class extends UH{addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;i??(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let n=this.input.charCodeAt(e+t.length);return!(zV(n)||(n&64512)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return fH(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return fH(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(X.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a,voidPatternLoc:o}=e,s=!!n||!!r||!!a||!!i||!!o;if(!t)return s;n!=null&&this.raise(X.InvalidCoverInitializedName,n),r!=null&&this.raise(X.DuplicateProto,r),i!=null&&this.raise(X.UnexpectedPrivateField,i),a!=null&&this.unexpected(a),o!=null&&this.raise(X.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return mV(this.state.type)}isPrivateName(e){return e.type===`PrivateName`}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type===`MemberExpression`||e.type===`OptionalMemberExpression`)&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type===`ObjectProperty`}isObjectMethod(e){return e.type===`ObjectMethod`}initializeScopes(e=this.options.sourceType===`module`){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope;this.scope=new(this.getScopeHandler())(this,e);let a=this.prodParam;this.prodParam=new SH;let o=this.classScope;this.classScope=new GH(this);let s=this.expressionScope;return this.expressionScope=new JH(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=s}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let t=!this.inModule&&this.options.sourceType===`commonjs`;(t||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let n=t?514:1;this.optionFlags&4&&(n|=512),this.optionFlags&16&&(n|=48),this.scope.enter(n)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin(`destructuringPrivate`,t)}},eU=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},tU=class{constructor(e,t,n){this.start=t,this.end=0,this.loc=new CB(n),e?.optionFlags&128&&(this.range=[t,0]),e?.filename&&(this.loc.filename=e.filename)}type=``},nU=tU.prototype,rU=class extends $H{startNode(){let e=this.state.startLoc;return new tU(this,e.index,e)}startNodeAt(e){return new tU(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.optionFlags&128&&(e.range[1]=n.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:n,end:r,loc:i,range:a,name:o}=e,s=Object.create(nU);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,s.name=o,e.extra&&(s.extra=e.extra),s}cloneStringLiteral(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o}=e,s=Object.create(nU);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,s.extra=o,s.value=e.value,s}},iU=e=>e.type===`ParenthesizedExpression`?iU(e.expression):e,aU=class extends rU{toAssignable(e,t=!1){let n;switch((e.type===`ParenthesizedExpression`||e.extra?.parenthesized)&&(n=iU(e),t?n.type===`Identifier`?this.expressionScope.recordArrowParameterBindingError(X.InvalidParenthesizedAssignment,e):n.type!==`CallExpression`&&n.type!==`MemberExpression`&&!this.isOptionalMemberExpression(n)&&this.raise(X.InvalidParenthesizedAssignment,e):this.raise(X.InvalidParenthesizedAssignment,e)),e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:case`VoidPattern`:break;case`ObjectExpression`:this.castNodeTo(e,`ObjectPattern`);for(let n=0,r=e.properties.length,i=r-1;n<r;n++){let r=e.properties[n],a=n===i;this.toAssignableObjectExpressionProp(r,a,t),a&&r.type===`RestElement`&&e.extra?.trailingCommaLoc&&this.raise(X.RestTrailingComma,e.extra.trailingCommaLoc)}break;case`ObjectProperty`:{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case`SpreadElement`:throw Error(`Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.`);case`ArrayExpression`:this.castNodeTo(e,`ArrayPattern`),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(X.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,`AssignmentPattern`),delete e.operator,e.left.type===`VoidPattern`&&this.raise(X.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(n,t);break}}toAssignableObjectExpressionProp(e,t,n){if(e.type===`ObjectMethod`)this.raise(e.kind===`get`||e.kind===`set`?X.PatternHasAccessor:X.PatternHasMethod,e.key);else if(e.type===`SpreadElement`){this.castNodeTo(e,`RestElement`);let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(X.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let a=e[i];a&&(this.toAssignableListItem(e,i,n),a.type===`RestElement`&&(i<r?this.raise(X.RestTrailingComma,a):t&&this.raise(X.RestTrailingComma,t)))}}toAssignableListItem(e,t,n){let r=e[t];if(r.type===`SpreadElement`){this.castNodeTo(r,`RestElement`);let e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(r,n)}isAssignable(e,t){switch(e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:case`VoidPattern`:return!0;case`ObjectExpression`:{let t=e.properties.length-1;return e.properties.every((e,n)=>e.type!==`ObjectMethod`&&(n===t||e.type!==`SpreadElement`)&&this.isAssignable(e))}case`ObjectProperty`:return this.isAssignable(e.value);case`SpreadElement`:return this.isAssignable(e.argument);case`ArrayExpression`:return e.elements.every(e=>e===null||this.isAssignable(e));case`AssignmentExpression`:return e.operator===`=`;case`ParenthesizedExpression`:return this.isAssignable(e.expression);case`MemberExpression`:case`OptionalMemberExpression`:return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)t?.type===`ArrayExpression`&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,`SpreadElement`)}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return t.type===`VoidPattern`&&this.raise(X.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,`RestElement`)}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,`ArrayPattern`)}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=n&1,i=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){let r=this.parseRestBinding();if(n&2&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];if(n&2)for(this.match(26)&&this.hasPlugin(`decorators`)&&this.raise(X.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin(`discardBinding`)&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(X.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,`RestElement`)}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===139?(this.expectPlugin(`destructuringPrivate`,t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){let n=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t??=this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return t.type===`VoidPattern`&&this.raise(X.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,`AssignmentPattern`)}isValidLVal(e,t,n,r){switch(e){case`AssignmentPattern`:return`left`;case`RestElement`:return`argument`;case`ObjectProperty`:return`value`;case`ParenthesizedExpression`:return`expression`;case`ArrayPattern`:return`elements`;case`ObjectPattern`:return`properties`;case`VoidPattern`:return!0;case`CallExpression`:if(!t&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type===`OptionalMemberExpression`}checkLVal(e,t,n=64,r=!1,i=!1,a=!1,o=!1){let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s===`MemberExpression`){c&&(this.expectPlugin(`optionalChainingAssign`,e.loc.start),t.type!==`AssignmentExpression`&&this.raise(X.InvalidLhsOptionalChaining,e,{ancestor:t})),n!==64&&this.raise(X.InvalidPropertyBindingPattern,e);return}if(s===`Identifier`){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(X.ParamDupe,e):r.add(t));return}else s===`VoidPattern`&&t.type===`CatchClause`&&this.raise(X.VoidPatternCatchClauseParam,e);let l=iU(e);o||=l.type===`CallExpression`&&(l.callee.type===`Import`||l.callee.type===`Super`);let u=this.isValidLVal(s,o,!(a||e.extra?.parenthesized)&&t.type===`AssignmentExpression`,n);if(u===!0)return;if(u===!1){let r=n===64?X.InvalidLhs:X.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}let d,f;typeof u==`string`?(d=u,f=s===`ParenthesizedExpression`):[d,f]=u;let p=s===`ArrayPattern`||s===`ObjectPattern`?{type:s}:t,m=e[d];if(Array.isArray(m))for(let e of m)e&&this.checkLVal(e,p,n,r,i,f,!0);else m&&this.checkLVal(m,p,n,r,i,f,o)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?qV(e.name,this.inModule):KV(e.name))&&(t===64?this.raise(X.StrictEvalArguments,e,{referenceName:e.name}):this.raise(X.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name===`let`&&this.raise(X.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case`ParenthesizedExpression`:this.checkToRestConversion(e.expression,t);break;case`Identifier`:case`MemberExpression`:break;case`ArrayExpression`:case`ObjectExpression`:if(t)break;default:this.raise(X.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?X.RestTrailingComma:X.ElementAfterRest,this.state.startLoc),!0):!1}},oU=/in(?:stanceof)?|as|satisfies/y;function sU(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function cU(e){if(!e)throw Error(`Assert fail`)}var Q=LB`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:`An 'accessor' property cannot be declared optional.`,AccessorCannotDeclareThisParameter:`'get' and 'set' accessors cannot declare 'this' parameters.`,AccessorCannotHaveTypeParameters:`An accessor cannot have type parameters.`,ClassMethodHasDeclare:`Class methods cannot have the 'declare' modifier.`,ClassMethodHasReadonly:`Class methods cannot have the 'readonly' modifier.`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.`,ConstructorHasTypeParameters:`Type parameters cannot appear on a constructor declaration.`,DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:`Initializers are not allowed in ambient contexts.`,DeclareFunctionHasImplementation:`An implementation cannot be declared in ambient contexts.`,DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:`Type argument list cannot be empty.`,EmptyTypeParameters:`Type parameter list cannot be empty.`,ExpectedAmbientAfterExportDeclare:`'export declare' must be followed by an ambient declaration.`,ImportAliasHasImportType:`An import alias can not use 'import type'.`,ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:`Index signatures cannot have the 'abstract' modifier.`,IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:`Index signatures cannot have the 'declare' modifier.`,IndexSignatureHasOverride:`'override' modifier cannot appear on an index signature.`,IndexSignatureHasStatic:`Index signatures cannot have the 'static' modifier.`,InitializerNotAllowedInAmbientContext:`Initializers are not allowed in ambient contexts.`,InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:`Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.`,InvalidTupleMemberLabel:`Tuple members must be labeled with a simple identifier.`,MissingInterfaceName:`'interface' declarations must be followed by an identifier.`,NonAbstractClassHasAbstractMethod:`Abstract methods can only appear within an abstract class.`,NonClassMethodPropertyHasAbstractModifier:`'abstract' modifier can only appear on a class, method, or property declaration.`,OptionalTypeBeforeRequired:`A required element cannot follow an optional element.`,OverrideNotInSubClass:`This member cannot have an 'override' modifier because its containing class does not extend another class.`,PatternIsOptional:`A binding pattern parameter cannot be optional in an implementation signature.`,PrivateElementHasAbstract:`Private elements cannot have the 'abstract' modifier.`,PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:`'readonly' modifier can only appear on a property declaration or index signature.`,ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:`A 'set' accessor cannot have an optional parameter.`,SetAccessorCannotHaveRestParameter:`A 'set' accessor cannot have rest parameter.`,SetAccessorCannotHaveReturnType:`A 'set' accessor cannot have a return type annotation.`,SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:`Static class blocks cannot have any modifier.`,TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:`A type-only import can specify a default import or named bindings, but not both.`,TypeModifierIsUsedInTypeExports:`The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.`,TypeModifierIsUsedInTypeImports:`The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.`,UnexpectedParameterModifier:`A parameter property is only allowed in a constructor implementation.`,UnexpectedReadonly:`'readonly' type modifier is only permitted on array and tuple literal types.`,UnexpectedTypeAnnotation:`Did not expect a type annotation here.`,UnexpectedTypeCastInParameter:`Unexpected type cast in parameter position.`,UnsupportedImportTypeArgument:`Argument in a type import must be a string literal.`,UnsupportedParameterPropertyKind:`A parameter property may not be declared using a binding pattern.`,UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function lU(e){switch(e){case`any`:return`TSAnyKeyword`;case`boolean`:return`TSBooleanKeyword`;case`bigint`:return`TSBigIntKeyword`;case`never`:return`TSNeverKeyword`;case`number`:return`TSNumberKeyword`;case`object`:return`TSObjectKeyword`;case`string`:return`TSStringKeyword`;case`symbol`:return`TSSymbolKeyword`;case`undefined`:return`TSUndefinedKeyword`;case`unknown`:return`TSUnknownKeyword`;default:return}}function uU(e){return e===`private`||e===`public`||e===`protected`}function dU(e){return e===`in`||e===`out`}function fU(e){if(e.extra?.parenthesized)return!1;switch(e.type){case`Identifier`:return!0;case`MemberExpression`:return!e.computed&&fU(e.object);case`TSInstantiationExpression`:return fU(e.expression);default:return!1}}var pU=e=>class extends e{getScopeHandler(){return xH}tsIsIdentifier(){return dV(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,n){if(!dV(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let r=this.state.value;if(e.includes(r)){if(n&&this.match(106)||t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=Q.InvalidModifierOnTypeMember},i){let a=(e,t,n,r)=>{t===n&&i[r]&&this.raise(Q.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},o=(e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(Q.IncompatibleModifiers,e,{modifiers:[n,r]})};for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n,i.static);if(!c)break;uU(c)?i.accessibility?this.raise(Q.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):dU(c)?(i[c]&&this.raise(Q.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(Object.prototype.hasOwnProperty.call(i,c)?this.raise(Q.DuplicateModifier,s,{modifier:c}):(a(s,c,`static`,`readonly`),a(s,c,`static`,`override`),a(s,c,`override`,`readonly`),a(s,c,`abstract`,`override`),o(s,c,`declare`,`override`),o(s,c,`static`,`abstract`)),i[c]=!0),t?.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case`EnumMembers`:case`TypeMembers`:return this.match(8);case`HeritageClauseElement`:return this.match(5);case`TupleElementTypes`:return this.match(3);case`TypeParametersOrArguments`:return this.match(48)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return sU(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){let i=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let r=t();if(r==null)return;if(i.push(r),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.tsParseLiteralTypeNode():(this.raise(Q.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=this.tsParseNonConditionalType()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,`TSImportType`)}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,`ObjectExpression`)}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){let e=this.state.type;dV(e)||e===134?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,`ObjectExpression`)}tsParseEntityName(e){let t;if(e&1&&this.match(78))if(e&2)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,`ThisExpression`)}else t=this.parseIdentifier(!!(e&1));for(;this.eat(16);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(e&1)),t=this.finishNode(n,`TSQualifiedName`)}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeReference`)}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,`TSTypePredicate`)}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,`TSThisType`)}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeQuery`)}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`],disallowedModifiers:[`const`,`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:Q.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:Q.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:Q.InvalidModifierOnTypeParameter});tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,`TSTypeParameter`)}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList(`TypeParametersOrArguments`,this.tsParseTypeParameter.bind(this,e),!1,!0,n),t.params.length===0&&this.raise(Q.EmptyTypeParameters,t),n.value!==-1&&this.addExtra(t,`trailingComma`,n.value),this.finishNode(t,`TSTypeParameterDeclaration`)}tsFillSignature(e,t){let n=e===19;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.params=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;(e===`AssignmentPattern`||e===`TSParameterProperty`)&&this.raise(Q.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),dV(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSIndexSignature`)}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(Q.ReadonlyForMethodSignature,e);let n=e;n.kind&&this.match(47)&&this.raise(Q.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let r=`params`,i=`returnType`;if(n.kind===`get`)n[r].length>0&&(this.raise(X.BadGetterArity,this.state.curPosition()),this.isThisParam(n[r][0])&&this.raise(Q.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind===`set`){if(n[r].length!==1)this.raise(X.BadSetterArity,this.state.curPosition());else{let e=n[r][0];this.isThisParam(e)&&this.raise(Q.AccessorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise(Q.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise(Q.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(Q.SetAccessorCannotHaveReturnType,n[i])}else n.kind=`method`;return this.finishNode(n,`TSMethodSignature`)}else{let n=e;t&&(n.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(n.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(n,`TSPropertySignature`)}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember(`TSCallSignatureDeclaration`,e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember(`TSConstructSignatureDeclaration`,e):(e.key=this.createIdentifier(t,`new`),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:[`readonly`],disallowedModifiers:[`declare`,`abstract`,`private`,`protected`,`public`,`static`,`override`]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,`TSTypeLiteral`)}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList(`TypeMembers`,this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,`TSMappedType`)}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList(`TupleElementTypes`,this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&n!==`TSRestType`&&n!==`TSOptionalType`&&!(n===`TSNamedTupleMember`&&e.optional)&&this.raise(Q.OptionalTypeBeforeRequired,e),t||=n===`TSNamedTupleMember`&&e.optional||n===`TSOptionalType`}),this.finishNode(e,`TSTupleType`)}tsParseTupleElementType(){let e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state,r,i,a,o,s=pV(this.state.type)?this.lookaheadCharCode():null;if(s===58)r=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(s===63){a=!0;let e=this.state.value,t=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(r=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),o=this.tsParseType()):(r=!1,o=t,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),r=this.eat(14);if(r){let e;i?(e=this.startNodeAt(n),e.optional=a,e.label=i,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Q.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=a,this.raise(Q.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,`TSNamedTupleMember`)}else if(a){let e=this.startNodeAt(n);e.typeAnnotation=o,o=this.finishNode(e,`TSOptionalType`)}if(t){let t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,`TSRestType`)}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,`TSParenthesizedType`)}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return e===`TSConstructorType`&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,`TSLiteralType`)}tsParseTemplateLiteralType(){{let e=this.state.startLoc,t=this.parseTemplateElement(!1),n=[t];if(t.tail){let t=this.startNodeAt(e),r=this.startNodeAt(e);return r.expressions=[],r.quasis=n,t.literal=this.finishNode(r,`TemplateLiteral`),this.finishNode(t,`TSLiteralType`)}else{let r=[];for(;!t.tail;)r.push(this.tsParseType()),this.readTemplateContinuation(),n.push(t=this.parseTemplateElement(!1));let i=this.startNodeAt(e);return i.types=r,i.quasis=n,this.finishNode(i,`TSTemplateLiteralType`)}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value===`-`){let e=this.startNode(),t=this.lookahead();return t.type!==135&&t.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,`TSLiteralType`)}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let e=this.state.startLoc;this.next();let t=this.tsParseType();return this.expect(11),this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),t}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(dV(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:lU(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,`TSArrayType`)}else{let n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,`TSIndexedAccessType`)}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t===`readonly`&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,`TSTypeOperator`)}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case`TSTupleType`:case`TSArrayType`:return;default:this.raise(Q.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,`TSTypeParameter`),this.finishNode(e,`TSInferType`)}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return wV(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),a=[];do a.push(t());while(this.eat(n));return a.length===1&&!i?a[0]:(r.types=a,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSIntersectionType`,this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSUnionType`,this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(dV(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return e.type===`TSThisType`?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,`TSTypePredicate`)):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,`TSTypeAnnotation`)}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)):this.tsParseTypeAnnotation(!1,t);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!dV(this.state.type)&&!this.match(78)?!1:(e&&this.raise(X.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:`asserts`}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,`TSTypeAnnotation`)}tsParseType(){cU(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,`TSConditionalType`)}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual(`new`)}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType(`TSFunctionType`):this.match(77)?this.tsParseFunctionOrConstructorType(`TSConstructorType`):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType(`TSConstructorType`,!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(Q.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,`TSTypeAssertion`)}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList(`HeritageClauseElement`,()=>{{let t=super.parseExprSubscripts();fU(t)||this.raise(Q.InvalidHeritageClauseType,t.loc.start,{token:e});let n=e===`extends`?`TSInterfaceHeritage`:`TSClassImplements`;if(t.type===`TSInstantiationExpression`)return t.type=n,t;let r=this.startNodeAtNode(t);return r.expression=t,(this.match(47)||this.match(51))&&(r.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(r,n)}});return n.length||this.raise(Q.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),dV(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Q.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause(`extends`));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,`TSInterfaceBody`),this.finishNode(e,`TSInterfaceDeclaration`)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,`TSIntrinsicKeyword`)}return this.tsParseType()}),this.semicolon(),this.finishNode(e,`TSTypeAliasDeclaration`)}tsInTopLevelContext(e){if(this.curContext()!==GB.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,`TSEnumMember`)}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),e.body=this.tsParseEnumBody(),this.finishNode(e,`TSEnumDeclaration`)}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumBody`)}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,`TSModuleBlock`)}tsParseModuleOrNamespaceDeclaration(e,t=!1){return e.id=this.tsParseEntityName(1),e.id.type===`Identifier`&&this.checkIdentifier(e.id,1024),this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,`TSModuleDeclaration`)}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind=`global`,e.id=this.parseIdentifier()):this.match(134)?(e.kind=`module`,e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,`TSModuleDeclaration`)}tsParseImportEqualsDeclaration(e,t,n){e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind===`type`&&r.type!==`TSExternalModuleReference`&&this.raise(Q.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,`TSImportEqualsDeclaration`)}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,`TSExternalModuleReference`)}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual(`enum`)?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Q.InvalidModifierOnUsingDeclaration,this.state.startLoc,`declare`),e.declare=!0,this.parseVarStatement(e,`using`,!0);break;case 96:if(this.isAwaitUsing())return this.raise(Q.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,`declare`),e.declare=!0,this.next(),this.parseVarStatement(e,`await using`,!0);break;case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(dV(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,n,r){switch(t){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||dV(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(dV(this.state.type))return e.kind=`module`,this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&dV(this.state.type))return e.kind=`namespace`,this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&dV(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList(`TypeParametersOrArguments`,this.tsParseType.bind(this))))),e.params.length===0?this.raise(Q.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===GB.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return TV(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,t){let n=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:[`public`,`private`,`protected`,`override`,`readonly`]},r);let i=r.accessibility,a=r.override,o=r.readonly;!(e&4)&&(i||o||a)&&this.raise(Q.UnexpectedParameterModifier,n);let s=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(s);let c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){let e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),c.type!==`Identifier`&&c.type!==`AssignmentPattern`&&this.raise(Q.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,`TSParameterProperty`)}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return e.type===`TSParameterProperty`&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)t.type!==`Identifier`&&t.optional&&!this.state.isAmbientContext&&this.raise(Q.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=t===`FunctionDeclaration`?`TSDeclareFunction`:t===`ClassMethod`||t===`ClassPrivateMethod`?`TSDeclareMethod`:void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r===`TSDeclareFunction`&&this.state.isAmbientContext&&(this.raise(Q.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type===`TSTypeCastExpression`&&this.raise(Q.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n){let r=super.parseArrayLike(e,t,n);return r.type===`ArrayExpression`&&this.tsCheckForInvalidTypeCasts(r.elements),r}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,`TSNonNullExpression`)}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(kV(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeArguments=o,n}if(!n&&this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeArguments=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let s=this.state.type;if(s===48||s===52||s!==10&&gV(s)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(t);return c.expression=e,c.typeArguments=o,this.finishNode(c,`TSInstantiationExpression`)});if(a&&this.unexpected(a,10),o)return o.type===`TSInstantiationExpression`&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Q.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(o.expression=super.stopParseSubscript(e,r))),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let{callee:t}=e;t.type===`TSInstantiationExpression`&&!t.extra?.parenthesized&&(e.typeArguments=t.typeArguments,e.callee=t.expression)}parseExprOp(e,t,n){let r;if(DV(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(X.UnexpectedKeyword,this.state.startLoc,{keyword:`const`}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?`TSSatisfiesExpression`:`TSAsExpression`),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(Q.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind=n===`type`?`type`:`value`:e.importKind=n===`type`||n===`typeof`?n:`value`}parseImport(e){if(this.match(134))return e.importKind=`value`,super.parseImport(e);let t;if(dV(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind=`value`,this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return t.importKind===`type`&&t.specifiers.length>1&&t.specifiers[0].type===`ImportDefaultSpecifier`&&this.raise(Q.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){let t=this.startNode();this.next();let n=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind=`value`;let r=this.tsParseImportEqualsDeclaration(t,n,!0);return e.attributes=[],e.declaration=r,e.exportKind=`value`,e.source=null,e.specifiers=[],this.finishNode(e,`ExportNamedDeclaration`)}else if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,`TSExportAssignment`)}else if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,`TSNamespaceExportDeclaration`)}else return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual(`class`)}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;if(!e.declare&&(t===`using`||t===`await using`))return this.raiseOverwrite(Q.UsingDeclarationInAmbientContext,e,t),i;for(let{id:e,init:n}of i.declarations)n&&(t===`var`||t===`let`||e.typeAnnotation?this.raise(Q.InitializerNotAllowedInAmbientContext,n):hU(n,this.hasPlugin(`estree`))||this.raise(Q.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual(`enum`)){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let e=this.state.type,n=this.startNode();this.next();let r=e===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);return r?(e===125&&(r.declare=!0),r):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),e===125?`declare`:`abstract`),this.semicolon(!1),this.finishNode(n,`ExpressionStatement`))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(this.lookaheadCharCode()===123){let e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}break}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier([`public`,`protected`,`private`])}tsHasSomeModifiers(e,t){return t.some(t=>uU(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){let r=[`declare`,`private`,`public`,`protected`,`override`,`abstract`,`readonly`,`static`];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:[`in`,`out`],stopOnStartOfClassStaticBlock:!0,errorTemplate:Q.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(Q.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(Q.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Q.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Q.IndexSignatureHasDeclare,t),t.override&&this.raise(Q.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(Q.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(Q.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Q.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Q.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}return super.parseConditional(e,t,n)}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,`TSTypeCastExpression`)}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Q.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=dV(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?((r.type===`TSInterfaceDeclaration`||r.type===`TSTypeAliasDeclaration`||n)&&(e.exportKind=`type`),n&&r.type!==`TSImportEqualsDeclaration`&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(Q.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(Q.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type===`Identifier`&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Q.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Q.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Q.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(Q.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise(Q.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){e.type!==`TSDeclareMethod`&&(e.type===`MethodDefinition`&&e.value.body==null||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause(`implements`))}parseObjPropValue(e,t,n,r,i,a,o){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type===`Identifier`&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){let n,r,i;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(n=this.state.clone(),r=this.tryParse(()=>super.parseMaybeAssign(e,t),n),!r.error)return r.node;let{context:i}=this.state,a=i[i.length-1];(a===GB.j_oTag||a===GB.j_expr)&&i.pop()}if(!r?.error&&!this.match(47))return super.parseMaybeAssign(e,t);(!n||n===this.state)&&(n=this.state.clone());let a,o=this.tryParse(n=>{a=this.tsParseTypeParameters(this.tsParseConstModifier);let r=super.parseMaybeAssign(e,t);if((r.type!==`ArrowFunctionExpression`||r.extra?.parenthesized)&&n(),a?.params.length!==0&&this.resetStartLocationFromNode(r,a),r.typeParameters=a,this.hasPlugin(`jsx`)&&r.typeParameters.params.length===1&&!r.typeParameters.extra?.trailingComma){let e=r.typeParameters.params[0];e.constraint||this.raise(Q.SingleTypeParameterWithoutTrailingComma,wB(e.loc.end,1),{typeParameterName:e.name.name})}return r},n);if(!o.error&&!o.aborted)return a&&this.reportReservedArrowTypeParam(a),o.node;if(!r&&(cU(!this.hasPlugin(`jsx`)),i=this.tryParse(()=>super.parseMaybeAssign(e,t),n),!i.error))return i.node;if(r?.node)return this.state=r.failState,r.node;if(o.node)return this.state=o.failState,a&&this.reportReservedArrowTypeParam(a),o.node;if(i?.node)return this.state=i.failState,i.node;throw r?.error||o.error||i?.error}reportReservedArrowTypeParam(e){e.params.length===1&&!e.params[0].constraint&&!e.extra?.trailingComma&&this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(Q.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin(`jsx`)&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case`TSTypeCastExpression`:return this.isAssignable(e.expression,t);case`TSParameterProperty`:return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case`ParenthesizedExpression`:this.toAssignableParenthesizedExpression(e,t);break;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:t?this.expressionScope.recordArrowParameterBindingError(Q.UnexpectedTypeCastInParameter,e):this.raise(Q.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case`AssignmentExpression`:!t&&e.left.type===`TSTypeCastExpression`&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:case`ParenthesizedExpression`:this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n,r){switch(e){case`TSTypeCastExpression`:return!0;case`TSParameterProperty`:return`parameter`;case`TSNonNullExpression`:return`expression`;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:return(r!==64||!n)&&[`expression`,!0];default:return super.isValidLVal(e,t,n,r)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e,t);return r.typeArguments=n,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Q.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,n){let r=e[t];r.type===`TSTypeCastExpression`&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeArguments=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(Q.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){let s=super.parseMethod(e,t,n,r,i,a,o);if((s.abstract||s.type===`TSAbstractMethodDefinition`)&&(this.hasPlugin(`estree`)?s.value:s).body){let{key:e}=s;this.raise(Q.AbstractMethodHasImplementation,s,{methodName:e.type===`Identifier`&&!s.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}return s}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption(`typescript`,`dts`)}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,`ExportSpecifier`)):(e.exportKind=`value`,super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,`ImportSpecifier`)):(e.importKind=`value`,super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){let r=t?`imported`:`local`,i=t?`local`:`exported`,a=e[r],o,s=!1,c=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let n=this.parseIdentifier();pV(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else pV(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else pV(this.state.type)&&(s=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());s&&n&&this.raise(t?Q.TypeModifierIsUsedInTypeImports:Q.TypeModifierIsUsedInTypeExports,l),e[r]=a,e[i]=o;let u=t?`importKind`:`exportKind`;e[u]=s?`type`:`value`,c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case`ExpressionStatement`:e.directive??=void 0;return;case`RestElement`:e.value=void 0;case`Identifier`:case`ArrayPattern`:case`AssignmentPattern`:case`ObjectPattern`:e.decorators??=[],e.optional??=!1,e.typeAnnotation??=void 0;return;case`TSParameterProperty`:e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.readonly??=!1,e.static??=!1;return;case`TSEmptyBodyFunctionExpression`:e.body=null;case`TSDeclareFunction`:case`FunctionDeclaration`:case`FunctionExpression`:case`ClassMethod`:case`ClassPrivateMethod`:e.declare??=!1,e.returnType??=void 0,e.typeParameters??=void 0;return;case`Property`:e.optional??=!1;return;case`TSMethodSignature`:case`TSPropertySignature`:e.optional??=!1;case`TSIndexSignature`:e.accessibility??=void 0,e.readonly??=!1,e.static??=!1;return;case`TSAbstractPropertyDefinition`:case`PropertyDefinition`:case`TSAbstractAccessorProperty`:case`AccessorProperty`:e.declare??=!1,e.definite??=!1,e.readonly??=!1,e.typeAnnotation??=void 0;case`TSAbstractMethodDefinition`:case`MethodDefinition`:e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.optional??=!1;return;case`ClassExpression`:e.id??=null;case`ClassDeclaration`:e.abstract??=!1,e.declare??=!1,e.decorators??=[],e.implements??=[],e.superTypeArguments??=void 0,e.typeParameters??=void 0;return;case`TSTypeAliasDeclaration`:case`VariableDeclaration`:e.declare??=!1;return;case`VariableDeclarator`:e.definite??=!1;return;case`TSEnumDeclaration`:e.const??=!1,e.declare??=!1;return;case`TSEnumMember`:e.computed??=!1;return;case`TSImportType`:e.qualifier??=null,e.options??=null,e.typeArguments??=null;return;case`TSInterfaceDeclaration`:e.declare??=!1,e.extends??=[];return;case`TSMappedType`:e.optional??=!1,e.readonly??=void 0;return;case`TSModuleDeclaration`:e.declare??=!1,e.global??=e.kind===`global`;return;case`TSTypeParameter`:e.const??=!1,e.in??=!1,e.out??=!1;return}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(RV(e)){if(oU.lastIndex=t,oU.test(this.input)){let e=this.codePointAtPos(oU.lastIndex);if(!zV(e)&&e!==92)return!1}return!0}else return e===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||t===34||t===39}};function mU(e){if(e.type!==`MemberExpression`)return!1;let{computed:t,property:n}=e;return t&&n.type!==`StringLiteral`&&(n.type!==`TemplateLiteral`||n.expressions.length>0)?!1:vU(e.object)}function hU(e,t){let{type:n}=e;if(e.extra?.parenthesized)return!1;if(t){if(n===`Literal`){let{value:t}=e;if(typeof t==`string`||typeof t==`boolean`)return!0}}else if(n===`StringLiteral`||n===`BooleanLiteral`)return!0;return!!(gU(e,t)||_U(e,t)||n===`TemplateLiteral`&&e.expressions.length===0||mU(e))}function gU(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}function _U(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&gU(r,t))return!0}return!1}function vU(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:vU(e.object)}var yU=LB`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`}),bU=e=>class extends e{parsePlaceholder(e){if(this.match(133)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,`Placeholder`)),n.expectedNode=t,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder(`Expression`)||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder(`Identifier`)||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){e!==void 0&&super.checkReservedWord(e,t,n,r)}cloneIdentifier(e){let t=super.cloneIdentifier(e);return t.type===`Placeholder`&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return e.type===`Placeholder`?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder(`Pattern`)||super.parseBindingAtom()}isValidLVal(e,t,n,r){return e===`Placeholder`||super.isValidLVal(e,t,n,r)}toAssignable(e,t){e&&e.type===`Placeholder`&&e.expectedNode===`Expression`?e.expectedNode=`Pattern`:super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(e,t){e.label&&e.label.type===`Placeholder`||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){if(t.type!==`Placeholder`||t.extra?.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(t,`Identifier`),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,`LabeledStatement`)}this.semicolon();let n=e;return n.name=t.name,this.finishPlaceholder(n,`Statement`)}parseBlock(e,t,n){return this.parsePlaceholder(`BlockStatement`)||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder(`Identifier`)||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?`ClassDeclaration`:`ClassExpression`;this.next();let i=this.state.strict,a=this.parsePlaceholder(`Identifier`);if(a)if(this.match(81)||this.match(133)||this.match(5))e.id=a;else{if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,`ClassBody`),this.finishNode(e,r);throw this.raise(yU.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder(`ClassBody`)||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder(`Identifier`);if(!n)return super.parseExport(e,t);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,`Declaration`),this.finishNode(r,`ExportNamedDeclaration`);this.expectPlugin(`exportDefaultFrom`);let i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,`ExportDefaultSpecifier`)],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,`from`)&&this.input.startsWith(EV(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){return e.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;t?.length&&(e.specifiers=t.filter(e=>e.exported.type===`Placeholder`)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder(`Identifier`);if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,`StringLiteral`),this.semicolon(),this.finishNode(e,`ImportDeclaration`);let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,`ImportDefaultSpecifier`)),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.parsePlaceholder(`StringLiteral`)||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(yU.UnexpectedSpace,this.state.lastTokEndLoc)}},xU=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),dV(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,`V8IntrinsicIdentifier`),this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},SU=[`fsharp`,`hack`],CU=[`^^`,`@@`,`^`,`%`,`#`];function wU(e){if(e.has(`decorators`)){if(e.has(`decorators-legacy`))throw Error(`Cannot use the decorators and decorators-legacy plugin together`);let t=e.get(`decorators`).decoratorsBeforeExport;if(t!=null&&typeof t!=`boolean`)throw Error(`'decoratorsBeforeExport' must be a boolean, if specified.`);let n=e.get(`decorators`).allowCallParenthesized;if(n!=null&&typeof n!=`boolean`)throw Error(`'allowCallParenthesized' must be a boolean.`)}if(e.has(`flow`)&&e.has(`typescript`))throw Error(`Cannot combine flow and typescript plugins.`);if(e.has(`placeholders`)&&e.has(`v8intrinsic`))throw Error(`Cannot combine placeholders and v8intrinsic plugins.`);if(e.has(`pipelineOperator`)){let t=e.get(`pipelineOperator`).proposal;if(!SU.includes(t)){let e=SU.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if(t===`hack`){if(e.has(`placeholders`))throw Error(`Cannot combine placeholders plugin and Hack-style pipes.`);if(e.has(`v8intrinsic`))throw Error(`Cannot combine v8intrinsic plugin and Hack-style pipes.`);let t=e.get(`pipelineOperator`).topicToken;if(!CU.includes(t)){let e=CU.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}}}if(e.has(`moduleAttributes`))throw Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has(`importAssertions`))throw Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has(`deprecatedImportAssert`)&&e.has(`importAttributes`)&&e.get(`importAttributes`).deprecatedAssertSyntax)throw Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has(`recordAndTuple`))throw Error(`The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.`);if(e.has(`asyncDoExpressions`)&&!e.has(`doExpressions`)){let e=Error(`'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.`);throw e.missingPlugins=`doExpressions`,e}if(e.has(`optionalChainingAssign`)&&e.get(`optionalChainingAssign`).version!==`2023-07`)throw Error(`The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.`);if(e.has(`discardBinding`)&&e.get(`discardBinding`).syntaxType!==`void`)throw Error(`The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.`);if(e.has(`decimal`))throw Error(`The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.`);if(e.has(`importReflection`))throw Error(`The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.`)}var TU={estree:UB,jsx:yH,flow:lH,typescript:pU,v8intrinsic:xU,placeholders:bU},EU=Object.keys(TU),DU=class extends aU{checkProto(e,t,n,r){if(e.type===`SpreadElement`||this.isObjectMethod(e)||e.computed||e.shorthand)return n;let i=e.key;return(i.type===`Identifier`?i.name:i.value)===`__proto__`?t?(this.raise(X.RecordNoProto,i),!0):(n&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=i.loc.start):this.raise(X.DuplicateProto,i)),!0):n}shouldExitDescending(e,t){return e.type===`ArrowFunctionExpression`&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(X.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(X.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,`SequenceExpression`)}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){let n=this.state.startLoc,r=this.isContextual(108);if(r&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}let i;e?i=!1:(e=new eU,i=!0);let{type:a}=this.state;(a===10||dV(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),_V(this.state.type)){let t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;let r=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=r&&(e.voidPatternLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,`AssignmentExpression`),void 0,void 0,void 0,void 0,r===`||=`||r===`&&=`||r===`??=`),t}else i&&this.checkExpressionErrors(e,!0);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?gV(e):gV(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(X.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,`ConditionalExpression`)}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(n>=DV(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(X.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(xV(r)&&(this.prodParam.hasIn||!this.match(58))){let i=DV(r);if(i>n){if(r===39){if(this.expectPlugin(`pipelineOperator`),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;let o=r===41||r===42,s=r===40;s&&(i=DV(42)),this.next(),a.right=this.parseExprOpRightExpr(r,i);let c=this.finishNode(a,o||s?`LogicalExpression`:`BinaryExpression`),l=this.state.type;if(s&&(l===41||l===42)||o&&l===40)throw this.raise(X.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}return e}parseExprOpRightExpr(e,t){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption(`pipelineOperator`,`proposal`)){case`hack`:return this.withTopicBindingContext(()=>this.parseHackPipeBody());case`fsharp`:return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,OV(e)?t-1:t)}parseHackPipeBody(){let{startLoc:e}=this.state,t=this.parseMaybeAssign();return MB.has(t.type)&&!t.extra?.parenthesized&&this.raise(X.PipeUnparenthesizedBody,e,{type:t.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(X.PipeTopicUnused,e),t}checkExponentialAfterUnary(e){this.match(57)&&this.raise(X.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),a=this.startNode();if(CV(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin(`throwExpressions`);let n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=a.argument;e.type===`Identifier`?this.raise(X.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(X.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,`UnaryExpression`)}let o=this.parseUpdate(a,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?gV(e):gV(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(X.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){let t=e;return this.checkLVal(t.argument,this.finishNode(t,`UpdateExpression`)),e}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;SV(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,`UpdateExpression`))}return i}parseExprSubscripts(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(e,t,n,r);if(kV(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(i===18){if(n&&(this.raise(X.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,r);r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{let n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,r,i){let a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type===`Super`&&this.raise(X.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,`OptionalMemberExpression`)):this.finishNode(a,`MemberExpression`)}parseBind(e,t,n,r){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,`BindExpression`),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(ZH()),a=new eU),c&&(o.optional=r),r?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(e.type!==`Super`,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(X.OptionalChainingNoTemplate,t),this.finishNode(r,`TaggedTemplateExpression`)}atPossibleAsyncArrow(e){return e.type===`Identifier`&&e.name===`async`&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type===`Import`)if(e.arguments.length===0||e.arguments.length>2)this.raise(X.ImportCallArity,e);else for(let t of e.arguments)t.type===`SpreadElement`&&this.raise(X.ImportCallSpreadArgument,t);return this.finishNode(e,t?`OptionalCallExpression`:`CallExpression`)}parseCallExpressionArguments(e,t,n){let r=[],i=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=a,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&DH(e,t.innerComments),t.callee.trailingComments&&DH(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,`Import`):(this.raise(X.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,`Import`));case 78:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if(e.type===`MemberExpression`)return this.finishNode(t,`BindExpression`);throw this.raise(X.UnsupportedBind,e)}case 139:return this.raise(X.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,`%`);case 32:return this.parseTopicReferenceThenEqualsSign(44,`^`);case 37:case 38:return this.parseTopicReference(`hack`);case 44:case 54:case 27:{let e=this.getPluginOption(`pipelineOperator`,`proposal`);if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{let e=this.input.codePointAt(this.nextTokenStart());throw RV(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected()}default:if(dV(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&n.name===`async`&&!this.canInsertSemicolon()){let{type:e}=this.state;if(e===68)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(dV(e))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(e===90)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption(`pipelineOperator`,`proposal`);if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=wB(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(X.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,`TopicReference`);throw this.raise(X.PipeTopicUnconfiguredToken,t,{token:EV(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:EV(n)}]);case`smart`:return n===27;default:throw this.raise(X.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(CH(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(X.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin(`doExpressions`),t&&this.expectPlugin(`asyncDoExpressions`),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,`DoExpression`)}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(X.SuperNotAllowed,e):this.scope.allowSuper||this.raise(X.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(X.UnsupportedSuper,e),this.finishNode(e,`Super`)}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(wB(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,`PrivateName`)}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`function`);return this.next(),this.match(103)?this.expectPlugin(`functionSent`):this.hasPlugin(`functionSent`)||this.unexpected(),this.parseMetaProperty(e,t,`sent`)}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(X.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,`MetaProperty`)}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?`sourcePhaseImports`:`deferredImportEvaluation`),this.next(),e.phase=t?`source`:`defer`,this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),`import`,this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(X.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,`meta`)}}parseLiteralAtNode(e,t,n){return this.addExtra(n,`rawValue`,e),this.addExtra(n,`raw`,this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,`StringLiteral`)}parseNumericLiteral(e){return this.parseLiteral(e,`NumericLiteral`)}parseBigIntLiteral(e){{let t;try{t=BigInt(e)}catch{t=null}return this.parseLiteral(t,`BigIntLiteral`)}}parseDecimalLiteral(e){return this.parseLiteral(e,`DecimalLiteral`)}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,`raw`,this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,`RegExpLiteral`)}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,`BooleanLiteral`)}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,`NullLiteral`)}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,n;this.next(),this.expressionScope.enter(XH());let r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],s=new eU,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,s,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,`SequenceExpression`),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,`ParenthesizedExpression`)}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`new`);this.next();let n=this.parseMetaProperty(e,t,`target`);return this.scope.allowNewTarget||this.raise(X.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,`NewExpression`)}parseNewCallee(e){let t=this.match(83),n=this.parseNoCallExpr();e.callee=n,t&&(n.type===`Import`||n.type===`ImportExpression`)&&this.raise(X.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:t,startLoc:n,end:r,value:i}=this.state,a=t+1,o=this.startNodeAt(wB(n,1));i===null&&(e||this.raise(X.InvalidEscapeSequenceTemplate,wB(this.state.firstInvalidTemplateEscapePos,1)));let s=this.match(24),c=s?-1:-2,l=r+c;o.value={raw:this.input.slice(a,l).replace(/\r\n?/g,`
344
+ `),cooked:i===null?null:i.slice(1,c)},o.tail=s,this.next();let u=this.finishNode(o,`TemplateElement`);return this.resetEndLocation(u,wB(this.state.lastTokEndLoc,c)),u}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),a=this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(X.InvalidRecordProperty,i),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(X.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(X.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise(e.kind===`get`?X.BadGetterArity:X.BadSetterArity,e),e.kind===`set`&&n[n.length-1]?.type===`RestElement`&&this.raise(X.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(X.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,`ObjectProperty`)}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(pV(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{let e=this.state.startLoc;t==null?this.raise(X.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,n!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(o?576:0)|(i?32:0)),this.prodParam.enter(CH(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n){t&&this.expectPlugin(`recordAndTuple`);let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,n,i),this.state.inFSharpPipelineDirectBody=r,this.finishNode(i,t?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(518);let i=CH(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(QH()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(X.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,a,5,i,r)}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,r){let i;if(this.match(12))t||this.raise(X.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),i=null;else if(this.match(21)){let e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),r||this.raise(X.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),i=this.finishNode(e,`ArgumentPlaceholder`)}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return i}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}createIdentifierAt(e,t,n){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,`Identifier`,n)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;pV(r)?t=this.state.value:this.unexpected();let i=fV(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10||!ZV(e))){if(n&&JV(e)){this.raise(X.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?qV:GV:WV)(e,this.inModule)){this.raise(X.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e===`yield`){if(this.prodParam.hasYield){this.raise(X.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(X.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(X.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(X.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(X.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(X.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||kV(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(X.YieldInParameter,t);let n=!1,r=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:r=this.parseMaybeAssign()}return t.delegate=n,t.argument=r,this.finishNode(t,`YieldExpression`)}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(X.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(X.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}else{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(X.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(X.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parseVoidPattern(e){this.expectPlugin(`discardBinding`);let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,`VoidPattern`)}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(t!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(e===3?93:e===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}},OU={kind:1},kU={kind:2},AU=/[\uD800-\uDFFF]/u,jU=/in(?:stanceof)?/y;function MU(e,t,n){for(let t=0;t<e.length;t++){let n=e[t],{type:r}=n;typeof r==`number`&&(n.type=AV(r))}return e}var NU=class extends DU{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,this.options.sourceType===`module`?`module`:`script`),e.comments=this.comments,this.optionFlags&256&&(e.tokens=MU(this.tokens,this.input,this.startIndex)),this.finishNode(e,`File`)}parseProgram(e,t,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(X.ModuleExportUndefined,t,{localName:e});this.addExtra(e,`topLevelAwait`,this.state.hasTopLevelAwait)}let r;return r=t===140?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,wB(this.state.startLoc,-1)),r}stmtToDirective(e){let t=this.castNodeTo(e,`Directive`),n=this.castNodeTo(e.expression,`DirectiveLiteral`),r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,`of`)){let t=this.lookaheadCharCodeSince(e+2);if(t!==61&&t!==58&&t!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,`void`))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(RV(e)){if(jU.lastIndex=t,jU.test(this.input)){let e=this.codePointAtPos(jU.lastIndex);if(!zV(e)&&e!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?X.StrictFunction:this.options.annexB?X.SloppyFunctionAnnexB:X.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(X.AwaitUsingNotInAsyncContext,r):this.raise(X.UnexpectedLexicalDeclaration,r):this.raise(X.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(X.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(X.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(X.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(X.UnexpectedImportExport,this.state.startLoc),this.next();let e;return e=n===83?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(X.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return dV(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(X.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){return e&&(t.decorators?.length?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(X.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(X.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(X.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(X.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(X.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(OU),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(OU);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isAwaitUsing(),i=r||this.isForUsing(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.recordAwaitIfAllowed()||this.raise(X.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(X.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new eU,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(X.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(X.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}else this.checkExpressionErrors(i,!0);return t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(X.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(kU),this.scope.enter(256);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(X.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(X.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{type:`CatchClause`},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(X.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(OU),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(X.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(X.LabelRedeclaration,n,{labelName:t});let i=yV(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(X.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(X.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(X.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):(n===`const`||n===`using`||n===`await using`)&&!(this.match(58)||this.isContextual(102))&&this.raise(X.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();t===`using`||t===`await using`?(n.type===`ArrayPattern`||n.type===`ObjectPattern`)&&this.raise(X.UsingDeclarationHasBindingPattern,n.loc.start):n.type===`VoidPattern`&&this.raise(X.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:`VariableDeclarator`},t===`var`?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(X.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(CH(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||dV(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(YH()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(X.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(X.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(X.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(139);if(this.parseClassElementName(l),this.parsePostMemberNameModifiers(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(X.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&dV(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(X.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(X.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(X.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(X.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===134)&&e.static&&n===`prototype`&&this.raise(X.StaticPrototype,this.state.startLoc),t===139){n===`constructor`&&this.raise(X.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let r=t.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,`StaticBlock`)),t.decorators?.length&&this.raise(X.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(X.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(X.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(QH()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(dV(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(X.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(X.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(X.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){let n=e;if(this.checkExport(n,!0,!1,!!n.source),n.declaration?.type===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(X.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(X.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,`ExportDefaultDeclaration`)}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t?.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers??=[];let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||=[];let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(X.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(X.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(dV(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(t===123||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith(`from`,e))return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||dV(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(X.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(X.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!t.extra?.parenthesized&&this.raise(X.ExportDefaultFromAsIdentifier,t)}}else if(e.specifiers?.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(X.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t===`default`?this.raise(X.DuplicateDefaultExport,e):this.raise(X.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||=this.cloneIdentifier(e.local),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=AU.exec(e.value);return t&&this.raise(X.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions==null?!1:e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;e.phase===`source`?n!==`ImportDefaultSpecifier`&&this.raise(X.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase===`defer`?n!==`ImportNamespaceSpecifier`&&this.raise(X.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(n!==`ImportDefaultSpecifier`&&this.raise(X.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(X.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!==`default`:t.value!==`default`});e!==void 0&&this.raise(X.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,t,n,r){t||(this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.startNode(),r=this.parseIdentifierName(!0),{type:i}=this.state;return(pV(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.applyImportPhase(e,t,r,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,r))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return dV(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(X.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(X.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(X.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(X.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(X.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),t=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin(`deprecatedImportAssert`)||this.raise(X.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,`deprecatedAssertSyntax`,!0),this.next(),t=this.parseImportAttributes()):t=[];e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}else if(pV(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(X.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(X.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||=this.cloneIdentifier(n)}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}},PU=class extends NU{constructor(e,t,n){let r=zB(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=n,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let i=0;r.allowAwaitOutsideFunction&&(i|=1),r.allowReturnOutsideFunction&&(i|=2),r.allowImportExportEverywhere&&(i|=8),r.allowSuperOutsideMethod&&(i|=16),r.allowUndeclaredExports&&(i|=64),r.allowNewTargetOutsideFunction&&(i|=4),r.allowYieldOutsideFunction&&(i|=32),r.ranges&&(i|=128),r.tokens&&(i|=256),r.createImportExpressions&&(i|=512),r.createParenthesizedExpressions&&(i|=1024),r.errorRecovery&&(i|=2048),r.attachComment&&(i|=4096),r.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return $V}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function FU(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=RU(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,RU(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,RU(t,e).parse()}catch{}throw n}}else return RU(t,e).parse()}function IU(e,t){let n=RU(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}function LU(e){let t={};for(let n of Object.keys(e))t[n]=AV(e[n]);return t}LU(uV);function RU(e,t){let n=PU,r=new Map;if(e?.plugins){for(let t of e.plugins){let e,n;typeof t==`string`?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}wU(r),n=BU(r)}return new n(e,t,r)}var zU=new Map;function BU(e){let t=[];for(let n of EU)e.has(n)&&t.push(n);let n=t.join(`|`),r=zU.get(n);if(!r){r=PU;for(let e of t)r=TU[e](r);zU.set(n,r)}return r}function VU(e){return(t,n,r)=>{let i=!!r?.backwards;if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var HU=VU(` `),UU=VU(/[^\n\r]/u);function WU(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var GU=WU,KU=e=>e===`
345
+ `||e===`\r`||e===`\u2028`||e===`\u2029`;function qU(e,t,n){let r=!!n?.backwards;if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
346
+ `)return t-2;if(KU(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
347
+ `)return t+2;if(KU(i))return t+1}return t}var JU=qU;function YU(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?UU(e,t):t}var XU=YU;function ZU(e,t){let n=null,r=t;for(;r!==n;)n=r,r=HU(e,r),r=GU(e,r),r=XU(e,r),r=JU(e,r);return r}var QU=ZU;function $U(e){let t=[];for(let n of e)try{return n()}catch(e){t.push(e)}throw Object.assign(Error(`All combinations failed`),{errors:t})}function eW(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
348
+ `);return t===-1?e:e.slice(0,t)}var tW=eW,nW=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),rW=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},iW=nW(`findLast`,function(){if(Array.isArray(this))return rW});function aW(e){return this[e<0?this.length+e:e]}var oW=nW(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return aW});function sW(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(sW(n),t):t}function cW(e){return e.range?.[1]??e.end}function lW(e){let t=new Set(e);return e=>t.has(e?.type)}var uW=lW,dW=uW([`Block`,`CommentBlock`,`MultiLine`]),fW=uW([`Line`,`CommentLine`,`SingleLine`,`HashbangComment`,`HTMLOpen`,`HTMLClose`,`Hashbang`,`InterpreterDirective`]),pW=new WeakMap;function mW(e){return pW.has(e)||pW.set(e,dW(e)&&e.value[0]===`*`&&/@(?:type|satisfies)\b/u.test(e.value)),pW.get(e)}var hW=mW;function gW(e){if(!dW(e))return!1;let t=`*${e.value}*`.split(`
349
+ `);return t.length>1&&t.every(e=>e.trimStart()[0]===`*`)}var _W=new WeakMap;function vW(e){return _W.has(e)||_W.set(e,gW(e)),_W.get(e)}var yW=vW;function bW(e){if(e.length<2)return;let t;for(let n=e.length-1;n>=0;n--){let r=e[n];if(t&&cW(r)===sW(t)&&yW(r)&&yW(t)&&(e.splice(n+1,1),r.value+=`*//*`+t.value,r.range=[sW(r),cW(t)]),!fW(r)&&!dW(r))throw TypeError(`Unknown comment type: "${r.type}".`);t=r}}var xW=bW;function SW(e){return typeof e==`object`&&!!e}var CW=SW,wW=null;function TW(e){if(wW!==null&&typeof wW.property){let e=wW;return wW=TW.prototype=null,e}return wW=TW.prototype=e??Object.create(null),new TW}var EW=10;for(let e=0;e<=EW;e++)TW();function DW(e){return TW(e)}function OW(e,t=`type`){DW(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var kW=OW,$=[[`decorators`,`key`,`typeAnnotation`,`value`],[],[`elementType`],[`expression`],[`expression`,`typeAnnotation`],[`left`,`right`],[`argument`],[`directives`,`body`],[`label`],[`callee`,`typeArguments`,`arguments`],[`body`],[`decorators`,`id`,`typeParameters`,`superClass`,`superTypeArguments`,`mixins`,`implements`,`body`,`superTypeParameters`],[`id`,`typeParameters`],[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],[`name`,`typeAnnotation`],[`test`,`consequent`,`alternate`],[`checkType`,`extendsType`,`trueType`,`falseType`],[`value`],[`id`,`body`],[`declaration`,`specifiers`,`source`,`attributes`],[`id`],[`id`,`typeParameters`,`extends`,`body`],[`typeAnnotation`],[`id`,`typeParameters`,`right`],[`body`,`test`],[`members`],[`id`,`init`],[`exported`],[`left`,`right`,`body`],[`id`,`typeParameters`,`params`,`predicate`,`returnType`,`body`],[`id`,`params`,`body`,`typeParameters`,`returnType`],[`key`,`value`],[`local`],[`objectType`,`indexType`],[`typeParameter`],[`types`],[`node`],[`object`,`property`],[`argument`,`cases`],[`pattern`,`body`,`guard`],[`literal`],[`decorators`,`key`,`value`],[`expressions`],[`qualification`,`id`],[`decorators`,`key`,`typeAnnotation`],[`typeParameters`,`params`,`returnType`],[`expression`,`typeArguments`],[`params`],[`parameterName`,`typeAnnotation`]],AW=kW({AccessorProperty:$[0],AnyTypeAnnotation:$[1],ArgumentPlaceholder:$[1],ArrayExpression:[`elements`],ArrayPattern:[`elements`,`typeAnnotation`,`decorators`],ArrayTypeAnnotation:$[2],ArrowFunctionExpression:[`typeParameters`,`params`,`predicate`,`returnType`,`body`],AsConstExpression:$[3],AsExpression:$[4],AssignmentExpression:$[5],AssignmentPattern:[`left`,`right`,`decorators`,`typeAnnotation`],AwaitExpression:$[6],BigIntLiteral:$[1],BigIntLiteralTypeAnnotation:$[1],BigIntTypeAnnotation:$[1],BinaryExpression:$[5],BindExpression:[`object`,`callee`],BlockStatement:$[7],BooleanLiteral:$[1],BooleanLiteralTypeAnnotation:$[1],BooleanTypeAnnotation:$[1],BreakStatement:$[8],CallExpression:$[9],CatchClause:[`param`,`body`],ChainExpression:$[3],ClassAccessorProperty:$[0],ClassBody:$[10],ClassDeclaration:$[11],ClassExpression:$[11],ClassImplements:$[12],ClassMethod:$[13],ClassPrivateMethod:$[13],ClassPrivateProperty:$[14],ClassProperty:$[14],ComponentDeclaration:[`id`,`params`,`body`,`typeParameters`,`rendersType`],ComponentParameter:[`name`,`local`],ComponentTypeAnnotation:[`params`,`rest`,`typeParameters`,`rendersType`],ComponentTypeParameter:$[15],ConditionalExpression:$[16],ConditionalTypeAnnotation:$[17],ContinueStatement:$[8],DebuggerStatement:$[1],DeclareClass:[`id`,`typeParameters`,`extends`,`mixins`,`implements`,`body`],DeclareComponent:[`id`,`params`,`rest`,`typeParameters`,`rendersType`],DeclaredPredicate:$[18],DeclareEnum:$[19],DeclareExportAllDeclaration:[`source`,`attributes`],DeclareExportDeclaration:$[20],DeclareFunction:[`id`,`predicate`],DeclareHook:$[21],DeclareInterface:$[22],DeclareModule:$[19],DeclareModuleExports:$[23],DeclareNamespace:$[19],DeclareOpaqueType:[`id`,`typeParameters`,`supertype`,`lowerBound`,`upperBound`],DeclareTypeAlias:$[24],DeclareVariable:$[21],Decorator:$[3],Directive:$[18],DirectiveLiteral:$[1],DoExpression:$[10],DoWhileStatement:$[25],EmptyStatement:$[1],EmptyTypeAnnotation:$[1],EnumBigIntBody:$[26],EnumBigIntMember:$[27],EnumBooleanBody:$[26],EnumBooleanMember:$[27],EnumDeclaration:$[19],EnumDefaultedMember:$[21],EnumNumberBody:$[26],EnumNumberMember:$[27],EnumStringBody:$[26],EnumStringMember:$[27],EnumSymbolBody:$[26],ExistsTypeAnnotation:$[1],ExperimentalRestProperty:$[6],ExperimentalSpreadProperty:$[6],ExportAllDeclaration:[`source`,`attributes`,`exported`],ExportDefaultDeclaration:[`declaration`],ExportDefaultSpecifier:$[28],ExportNamedDeclaration:$[20],ExportNamespaceSpecifier:$[28],ExportSpecifier:[`local`,`exported`],ExpressionStatement:$[3],File:[`program`],ForInStatement:$[29],ForOfStatement:$[29],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:$[30],FunctionExpression:$[30],FunctionTypeAnnotation:[`typeParameters`,`this`,`params`,`rest`,`returnType`],FunctionTypeParam:$[15],GenericTypeAnnotation:$[12],HookDeclaration:$[31],HookTypeAnnotation:[`params`,`returnType`,`rest`,`typeParameters`],Identifier:[`typeAnnotation`,`decorators`],IfStatement:$[16],ImportAttribute:$[32],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:$[33],ImportExpression:[`source`,`options`],ImportNamespaceSpecifier:$[33],ImportSpecifier:[`imported`,`local`],IndexedAccessType:$[34],InferredPredicate:$[1],InferTypeAnnotation:$[35],InterfaceDeclaration:$[22],InterfaceExtends:$[12],InterfaceTypeAnnotation:[`extends`,`body`],InterpreterDirective:$[1],IntersectionTypeAnnotation:$[36],JsExpressionRoot:$[37],JsonRoot:$[37],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:$[1],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:$[1],JSXExpressionContainer:$[3],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:$[1],JSXMemberExpression:$[38],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`typeArguments`,`attributes`],JSXOpeningFragment:$[1],JSXSpreadAttribute:$[6],JSXSpreadChild:$[3],JSXText:$[1],KeyofTypeAnnotation:$[6],LabeledStatement:[`label`,`body`],Literal:$[1],LogicalExpression:$[5],MatchArrayPattern:[`elements`,`rest`],MatchAsPattern:[`pattern`,`target`],MatchBindingPattern:$[21],MatchExpression:$[39],MatchExpressionCase:$[40],MatchIdentifierPattern:$[21],MatchLiteralPattern:$[41],MatchMemberPattern:[`base`,`property`],MatchObjectPattern:[`properties`,`rest`],MatchObjectPatternProperty:[`key`,`pattern`],MatchOrPattern:[`patterns`],MatchRestPattern:$[6],MatchStatement:$[39],MatchStatementCase:$[40],MatchUnaryPattern:$[6],MatchWildcardPattern:$[1],MemberExpression:$[38],MetaProperty:[`meta`,`property`],MethodDefinition:$[42],MixedTypeAnnotation:$[1],ModuleExpression:$[10],NeverTypeAnnotation:$[1],NewExpression:$[9],NGChainedExpression:$[43],NGEmptyExpression:$[1],NGMicrosyntax:$[10],NGMicrosyntaxAs:[`key`,`alias`],NGMicrosyntaxExpression:[`expression`,`alias`],NGMicrosyntaxKey:$[1],NGMicrosyntaxKeyedExpression:[`key`,`expression`],NGMicrosyntaxLet:$[32],NGPipeExpression:[`left`,`right`,`arguments`],NGRoot:$[37],NullableTypeAnnotation:$[23],NullLiteral:$[1],NullLiteralTypeAnnotation:$[1],NumberLiteralTypeAnnotation:$[1],NumberTypeAnnotation:$[1],NumericLiteral:$[1],ObjectExpression:[`properties`],ObjectMethod:$[13],ObjectPattern:[`decorators`,`properties`,`typeAnnotation`],ObjectProperty:$[42],ObjectTypeAnnotation:[`properties`,`indexers`,`callProperties`,`internalSlots`],ObjectTypeCallProperty:$[18],ObjectTypeIndexer:[`variance`,`id`,`key`,`value`],ObjectTypeInternalSlot:[`id`,`value`],ObjectTypeMappedTypeProperty:[`keyTparam`,`propType`,`sourceType`,`variance`],ObjectTypeProperty:[`key`,`value`,`variance`],ObjectTypeSpreadProperty:$[6],OpaqueType:[`id`,`typeParameters`,`supertype`,`impltype`,`lowerBound`,`upperBound`],OptionalCallExpression:$[9],OptionalIndexedAccessType:$[34],OptionalMemberExpression:$[38],ParenthesizedExpression:$[3],PipelineBareFunction:[`callee`],PipelinePrimaryTopicReference:$[1],PipelineTopicExpression:$[3],Placeholder:$[1],PrivateIdentifier:$[1],PrivateName:$[21],Program:$[7],Property:$[32],PropertyDefinition:$[14],QualifiedTypeIdentifier:$[44],QualifiedTypeofIdentifier:$[44],RegExpLiteral:$[1],RestElement:[`argument`,`typeAnnotation`,`decorators`],ReturnStatement:$[6],SatisfiesExpression:$[4],SequenceExpression:$[43],SpreadElement:$[6],StaticBlock:$[10],StringLiteral:$[1],StringLiteralTypeAnnotation:$[1],StringTypeAnnotation:$[1],Super:$[1],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],SymbolTypeAnnotation:$[1],TaggedTemplateExpression:[`tag`,`typeArguments`,`quasi`],TemplateElement:$[1],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:$[1],ThisTypeAnnotation:$[1],ThrowStatement:$[6],TopicReference:$[1],TryStatement:[`block`,`handler`,`finalizer`],TSAbstractAccessorProperty:$[45],TSAbstractKeyword:$[1],TSAbstractMethodDefinition:$[32],TSAbstractPropertyDefinition:$[45],TSAnyKeyword:$[1],TSArrayType:$[2],TSAsExpression:$[4],TSAsyncKeyword:$[1],TSBigIntKeyword:$[1],TSBooleanKeyword:$[1],TSCallSignatureDeclaration:$[46],TSClassImplements:$[47],TSConditionalType:$[17],TSConstructorType:$[46],TSConstructSignatureDeclaration:$[46],TSDeclareFunction:$[31],TSDeclareKeyword:$[1],TSDeclareMethod:[`decorators`,`key`,`typeParameters`,`params`,`returnType`],TSEmptyBodyFunctionExpression:[`id`,`typeParameters`,`params`,`returnType`],TSEnumBody:$[26],TSEnumDeclaration:$[19],TSEnumMember:[`id`,`initializer`],TSExportAssignment:$[3],TSExportKeyword:$[1],TSExternalModuleReference:$[3],TSFunctionType:$[46],TSImportEqualsDeclaration:[`id`,`moduleReference`],TSImportType:[`options`,`qualifier`,`typeArguments`,`source`],TSIndexedAccessType:$[34],TSIndexSignature:[`parameters`,`typeAnnotation`],TSInferType:$[35],TSInstantiationExpression:$[47],TSInterfaceBody:$[10],TSInterfaceDeclaration:$[22],TSInterfaceHeritage:$[47],TSIntersectionType:$[36],TSIntrinsicKeyword:$[1],TSJSDocAllType:$[1],TSJSDocNonNullableType:$[23],TSJSDocNullableType:$[23],TSJSDocUnknownType:$[1],TSLiteralType:$[41],TSMappedType:[`key`,`constraint`,`nameType`,`typeAnnotation`],TSMethodSignature:[`key`,`typeParameters`,`params`,`returnType`],TSModuleBlock:$[10],TSModuleDeclaration:$[19],TSNamedTupleMember:[`label`,`elementType`],TSNamespaceExportDeclaration:$[21],TSNeverKeyword:$[1],TSNonNullExpression:$[3],TSNullKeyword:$[1],TSNumberKeyword:$[1],TSObjectKeyword:$[1],TSOptionalType:$[23],TSParameterProperty:[`parameter`,`decorators`],TSParenthesizedType:$[23],TSPrivateKeyword:$[1],TSPropertySignature:[`key`,`typeAnnotation`],TSProtectedKeyword:$[1],TSPublicKeyword:$[1],TSQualifiedName:$[5],TSReadonlyKeyword:$[1],TSRestType:$[23],TSSatisfiesExpression:$[4],TSStaticKeyword:$[1],TSStringKeyword:$[1],TSSymbolKeyword:$[1],TSTemplateLiteralType:[`quasis`,`types`],TSThisType:$[1],TSTupleType:[`elementTypes`],TSTypeAliasDeclaration:[`id`,`typeParameters`,`typeAnnotation`],TSTypeAnnotation:$[23],TSTypeAssertion:$[4],TSTypeLiteral:$[26],TSTypeOperator:$[23],TSTypeParameter:[`name`,`constraint`,`default`],TSTypeParameterDeclaration:$[48],TSTypeParameterInstantiation:$[48],TSTypePredicate:$[49],TSTypeQuery:[`exprName`,`typeArguments`],TSTypeReference:[`typeName`,`typeArguments`],TSUndefinedKeyword:$[1],TSUnionType:$[36],TSUnknownKeyword:$[1],TSVoidKeyword:$[1],TupleTypeAnnotation:[`types`,`elementTypes`],TupleTypeLabeledElement:[`label`,`elementType`,`variance`],TupleTypeSpreadElement:[`label`,`typeAnnotation`],TypeAlias:$[24],TypeAnnotation:$[23],TypeCastExpression:$[4],TypeofTypeAnnotation:[`argument`,`typeArguments`],TypeOperator:$[23],TypeParameter:[`bound`,`default`,`variance`],TypeParameterDeclaration:$[48],TypeParameterInstantiation:$[48],TypePredicate:$[49],UnaryExpression:$[6],UndefinedTypeAnnotation:$[1],UnionTypeAnnotation:$[36],UnknownTypeAnnotation:$[1],UpdateExpression:$[6],V8IntrinsicIdentifier:$[1],VariableDeclaration:[`declarations`],VariableDeclarator:$[27],Variance:$[1],VoidPattern:$[1],VoidTypeAnnotation:$[1],WhileStatement:$[25],WithStatement:[`object`,`body`],YieldExpression:$[6]});function jW(e,t){if(!CW(e))return e;if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=jW(e[n],t);return e}if(t.onEnter){let n=t.onEnter(e)??e;if(n!==e)return jW(n,t);e=n}let n=AW(e);for(let r=0;r<n.length;r++)e[n[r]]=jW(e[n[r]],t);return t.onLeave&&(e=t.onLeave(e)||e),e}var MW=jW;uW([`RegExpLiteral`,`BigIntLiteral`,`NumericLiteral`,`StringLiteral`,`DirectiveLiteral`,`Literal`,`JSXText`,`TemplateElement`,`StringLiteralTypeAnnotation`,`NumberLiteralTypeAnnotation`,`BigIntLiteralTypeAnnotation`]);function NW(e,t){let{parser:n,text:r}=t,{comments:i}=e,a=n===`oxc`&&t.oxcAstType===`ts`;xW(i);let o=e.type===`File`?e.program:e;o.interpreter&&(i.unshift(o.interpreter),delete o.interpreter),a&&e.hashbang&&(i.unshift(e.hashbang),delete e.hashbang),e.type===`Program`&&(e.range=[0,r.length]);let s;return e=MW(e,{onEnter(t){switch(t.type){case`ParenthesizedExpression`:{let{expression:e}=t,n=sW(t);if(e.type===`TypeCastExpression`)return e.range=[n,cW(t)],e;let o=!1;if(!a){if(!s){s=[];for(let e of i)hW(e)&&s.push(cW(e))}let e=iW(0,s,e=>e<=n);o=e&&r.slice(e,n).trim().length===0}return o?void 0:(e.extra={...e.extra,parenthesized:!0},e)}case`TemplateLiteral`:if(t.expressions.length!==t.quasis.length-1)throw Error(`Malformed template literal.`);break;case`TemplateElement`:(n===`flow`||n===`hermes`||n===`espree`||n===`typescript`||a)&&(t.range=[sW(t)+1,cW(t)-(t.tail?1:2)]);break;case`VariableDeclaration`:{let e=oW(0,t.declarations,-1);e?.init&&r[cW(e)]!==`;`&&(t.range=[sW(t),cW(e)]);break}case`TSParenthesizedType`:return t.typeAnnotation;case`TopicReference`:e.extra={...e.extra,__isUsingHackPipeline:!0};break;case`TSUnionType`:case`TSIntersectionType`:if(t.types.length===1)return t.types[0];break;case`ImportExpression`:n===`hermes`&&t.attributes&&!t.options&&(t.options=t.attributes);break}},onLeave(e){switch(e.type){case`LogicalExpression`:if(PW(e))return FW(e);break;case`TSImportType`:!e.source&&e.argument.type===`TSLiteralType`&&(e.source=e.argument.literal,delete e.argument);break}}}),e}function PW(e){return e.type===`LogicalExpression`&&e.right.type===`LogicalExpression`&&e.operator===e.right.operator}function FW(e){return PW(e)?FW({type:`LogicalExpression`,operator:e.operator,left:FW({type:`LogicalExpression`,operator:e.operator,left:e.left,right:e.right.left,range:[sW(e.left),cW(e.right.left)]}),right:e.right.right,range:[sW(e),cW(e)]}):e}var IW=NW;function LW(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var RW=LW,zW=`Unexpected parseExpression() input: `;function BW(e){let{message:t,loc:n,reasonCode:r}=e;if(!n)return e;let{line:i,column:a}=n,o=e;(r===`MissingPlugin`||r===`MissingOneOfPlugins`)&&(t=`Unexpected token.`,o=void 0);let s=` (${i}:${a})`;return t.endsWith(s)&&(t=t.slice(0,-s.length)),t.startsWith(zW)&&(t=t.slice(zW.length)),RW(t,{loc:{start:{line:i,column:a+1}},cause:o})}var VW=BW,HW=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},UW=nW(`replaceAll`,function(){if(typeof this==`string`)return HW}),WW=/\*\/$/,GW=/^\/\*\*?/,KW=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,qW=/(^|\s+)\/\/([^\n\r]*)/g,JW=/^(\r?\n)+/,YW=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,XW=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ZW=/(\r?\n|^) *\* ?/g,QW=[];function $W(e){let t=e.match(KW);return t?t[0].trimStart():``}function eG(e){e=UW(0,e.replace(GW,``).replace(WW,``),ZW,`$1`);let t=``;for(;t!==e;)t=e,e=UW(0,e,YW,`
350
+ $1 $2
351
+ `);e=e.replace(JW,``).trimEnd();let n=Object.create(null),r=UW(0,e,XW,``).replace(JW,``).trimEnd(),i;for(;i=XW.exec(e);){let e=UW(0,i[2],qW,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...QW,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}var tG=[`noformat`,`noprettier`],nG=[`format`,`prettier`];function rG(e){let t=tW(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=eG($W(e));return{shebang:t,text:e,pragmas:n,comments:r}}function iG(e){let{pragmas:t}=rG(e);return nG.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function aG(e){let{pragmas:t}=rG(e);return tG.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function oG(e){return e=typeof e==`function`?{parse:e}:e,{astFormat:`estree`,hasPragma:iG,hasIgnorePragma:aG,locStart:sW,locEnd:cW,...e}}var sG=oG,cG=`module`,lG=`commonjs`;function uG(e){if(typeof e==`string`){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return cG;if(/\.(?:cjs|cts)$/iu.test(e))return lG}}function dG(e,t){let{type:n=`JsExpressionRoot`,rootMarker:r,text:i}=t,{tokens:a,comments:o}=e;return delete e.tokens,delete e.comments,{tokens:a,comments:o,type:n,node:e,range:[0,i.length],rootMarker:r}}var fG=dG,pG=e=>sG(xG(e)),mG={sourceType:cG,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:[`doExpressions`,`exportDefaultFrom`,`functionBind`,`functionSent`,`throwExpressions`,`partialApplication`,`decorators`,`moduleBlocks`,`asyncDoExpressions`,`destructuringPrivate`,`decoratorAutoAccessors`,`sourcePhaseImports`,`deferredImportEvaluation`,[`optionalChainingAssign`,{version:`2023-07`}],[`discardBinding`,{syntaxType:`void`}]],tokens:!1,ranges:!1},hG=`v8intrinsic`,gG=[[`pipelineOperator`,{proposal:`hack`,topicToken:`%`}],[`pipelineOperator`,{proposal:`fsharp`}]],_G=(e,t=mG)=>({...t,plugins:[...t.plugins,...e]}),vG=/@(?:no)?flow\b/u;function yG(e,t){if(t?.endsWith(`.js.flow`))return!0;let n=tW(e);n&&(e=e.slice(n.length));let r=QU(e,0);return r!==!1&&(e=e.slice(0,r)),vG.test(e)}function bG(e,t,n){let r=e(t,n),i=r.errors.find(e=>!SG.has(e.reasonCode));if(i)throw i;return r}function xG({isExpression:e=!1,optionsCombinations:t}){return(n,r={})=>{let{filepath:i}=r;if(typeof i!=`string`&&(i=void 0),(r.parser===`babel`||r.parser===`__babel_estree`)&&yG(n,i))return r.parser=`babel-flow`,OG.parse(n,r);let a=t,o=r.__babelSourceType??uG(i);o&&o!==cG&&(a=a.map(e=>({...e,sourceType:o,...o===lG?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let s=/%[A-Z]/u.test(n);n.includes(`|>`)?a=(s?[...gG,hG]:gG).flatMap(e=>a.map(t=>_G([e],t))):s&&(a=a.map(e=>_G([hG],e)));let c=e?IU:FU,l;try{l=$U(a.map(e=>()=>bG(c,n,e)))}catch({errors:[e]}){throw VW(e)}return e&&(l=fG(l,{text:n,rootMarker:r.rootMarker})),IW(l,{text:n})}}var SG=new Set(`StrictNumericEscape.StrictWith.StrictOctalLiteral.StrictDelete.StrictEvalArguments.StrictEvalArgumentsBinding.StrictFunction.ForInOfLoopInitializer.ConstructorHasTypeParameters.UnsupportedParameterPropertyKind.DecoratorExportClass.ParamDupe.InvalidDecimal.RestTrailingComma.UnsupportedParameterDecorator.UnterminatedJsxContent.UnexpectedReservedWord.ModuleAttributesWithDuplicateKeys.InvalidEscapeSequenceTemplate.NonAbstractClassHasAbstractMethod.OptionalTypeBeforeRequired.PatternIsOptional.DeclareClassFieldHasInitializer.TypeImportCannotSpecifyDefaultAndNamed.VarRedeclaration.InvalidPrivateFieldResolution.DuplicateExport.ImportAttributesUseAssert.DeclarationMissingInitializer`.split(`.`)),CG=[_G([`jsx`])],wG=pG({optionsCombinations:CG}),TG=pG({optionsCombinations:[_G([`jsx`,`typescript`]),_G([`typescript`])]}),EG=pG({isExpression:!0,optionsCombinations:[_G([`jsx`])]}),DG=pG({isExpression:!0,optionsCombinations:[_G([`typescript`])]}),OG=pG({optionsCombinations:[_G([`jsx`,[`flow`,{all:!0}],`flowComments`])]}),kG=pG({optionsCombinations:CG.map(e=>_G([`estree`],e))}),AG={};vB(AG,{json:()=>RG,"json-stringify":()=>VG,json5:()=>zG,jsonc:()=>BG});function jG(e){return Array.isArray(e)&&e.length>0}var MG=jG,NG={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function PG(e){let t=FU(e,NG),{program:n}=t;if(n.body.length===0&&n.directives.length===0&&!n.interpreter)return t}function FG(e,t={}){let{allowComments:n=!0,allowEmpty:r=!1}=t,i;try{i=IU(e,NG)}catch(t){if(r&&t.code===`BABEL_PARSER_SYNTAX_ERROR`&&t.reasonCode===`ParseExpressionEmptyInput`)try{i=PG(e)}catch{}if(!i)throw VW(t)}if(!n&&MG(i.comments))throw IG(i.comments[0],`Comment`);return i=fG(i,{type:`JsonRoot`,text:e}),i.node.type===`File`?delete i.node:LG(i.node),i}function IG(e,t){let[n,r]=[e.loc.start,e.loc.end].map(({line:e,column:t})=>({line:e,column:t+1}));return RW(`${t} is not allowed in JSON.`,{loc:{start:n,end:r}})}function LG(e){switch(e.type){case`ArrayExpression`:for(let t of e.elements)t!==null&&LG(t);return;case`ObjectExpression`:for(let t of e.properties)LG(t);return;case`ObjectProperty`:if(e.computed)throw IG(e.key,`Computed key`);if(e.shorthand)throw IG(e.key,`Shorthand property`);e.key.type!==`Identifier`&&LG(e.key),LG(e.value);return;case`UnaryExpression`:{let{operator:t,argument:n}=e;if(t!==`+`&&t!==`-`)throw IG(e,`Operator '${e.operator}'`);if(n.type===`NumericLiteral`||n.type===`Identifier`&&(n.name===`Infinity`||n.name===`NaN`))return;throw IG(n,`Operator '${t}' before '${n.type}'`)}case`Identifier`:if(e.name!==`Infinity`&&e.name!==`NaN`&&e.name!==`undefined`)throw IG(e,`Identifier '${e.name}'`);return;case`TemplateLiteral`:if(MG(e.expressions))throw IG(e.expressions[0],`'TemplateLiteral' with expression`);for(let t of e.quasis)LG(t);return;case`NullLiteral`:case`BooleanLiteral`:case`NumericLiteral`:case`StringLiteral`:case`TemplateElement`:return;default:throw IG(e,`'${e.type}'`)}}var RG=sG({parse:e=>FG(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),zG=sG(e=>FG(e)),BG=sG(e=>FG(e,{allowEmpty:!0})),VG=sG({parse:e=>FG(e,{allowComments:!1}),astFormat:`estree-json`}),HG={...bB,...AG};function UG(e){return e.map(e=>{let t=Math.max(0,80-e.length);return` `+e.padEnd(e.length+t)})}async function WG(e){if(Array.isArray(e)){let t=[];for(let n of e){let e=await WG(n);t.push(e)}return t}else if(typeof e==`object`&&e){let t={};for(let[n,r]of Object.entries(e))if(n===`///`){let e;e=typeof r==`string`?r:r.map(e=>e.trim()).join(`
352
+ `);let i=(await lx(e,{parser:`markdown`,printWidth:78,proseWrap:`always`,plugins:[lC]})).split(`
353
+ `);i.pop(),i.length===1?t[n]=` `+i[0]+` `:t[n]=UG(i)}else t[n]=await WG(r);return t}else return e}async function GG(e){let t=await WG(JSON.parse(e));return JSON.stringify(t,null,4)}var{group:KG,line:qG,softline:JG,hardline:YG,join:XG,indent:ZG}=Cb.builders;function QG(e,t,n){let r=e.getValue();if(r.type===`JsonRoot`)return e.call(n,`node`);if(r.type===`ArrayExpression`){let t=e.getParentNode(),r=t.type===`JsonRoot`,i=t&&t.type===`ObjectProperty`&&t.key.value===`///`,a=t&&t.type===`ObjectProperty`&&(t.key.value.includes(`union.`)||t.key.value.includes(`errors.`)||t.key.value===`->`);return r||i||a?[`[`,ZG(KG([YG,XG(KG([`,`,YG]),e.map(n,`elements`))])),YG,`]`]:KG([`[`,XG(`, `,e.map(n,`elements`)),`]`])}if(r.type===`ObjectExpression`){let t=()=>{let t=e.stack,n=t[t.length-1];n.loc&&n.loc.start.line,n.loc&&n.loc.start.column;for(let e=t.length-2;e>=0;e--){let n=t[e];if(n.type===`ObjectProperty`){let e=n.key.value;if(/^@[a-z][a-zA-Z0-9_]*$/.test(e)||/^([a-z][a-zA-Z0-9_]*)(!)?$/.test(e))return!0}}return!1},i=e.map(n,`properties`);return r.properties.length===0||t()?[`{`,XG(`, `,i),`}`]:[`{`,ZG(KG([YG,XG(KG([`,`,YG]),i)])),YG,`}`]}return r.type===`StringLiteral`||r.type===`NumericLiteral`?JSON.stringify(r.value):r.type===`BooleanLiteral`?r.value?`true`:`false`:r.type===`NullLiteral`?`null`:r.type===`ObjectProperty`?KG([e.call(n,`key`),`: `,e.call(n,`value`)]):``}var $G=HG[`json-stringify`],eK={print:QG},{parse:tK}=$G,nK={languages:[{name:`telepact`,parsers:[`telepact-parse`],extensions:[`.telepact.json`]}],parsers:{"telepact-parse":{...$G,parse:async(e,t)=>tK(await GG(e),t),astFormat:`telepact-ast`}},printers:{"telepact-ast":eK}};function rK(e){if(window.telepactConsoleProxy===void 0)return e;let t=e.toLowerCase();if(!t.startsWith(`http://`)&&!t.startsWith(`https://`))return e;let n=new URL(window.telepactConsoleProxy.httpPath,window.location.href);return n.searchParams.set(`target`,e),n.toString()}function iK(e){if(window.telepactConsoleProxy===void 0)return e;let t=e.toLowerCase();if(!t.startsWith(`ws://`)&&!t.startsWith(`wss://`))return e;let n=new URL(window.telepactConsoleProxy.wsPath,window.location.href);return n.protocol===`https:`?n.protocol=`wss:`:n.protocol===`http:`&&(n.protocol=`ws:`),n.searchParams.set(`target`,e),n.toString()}async function aK(e){let t=(e.searchParams.get(`s`)??``).trim(),n=e.searchParams.get(`i`)===`1`,r=e.searchParams.get(`p`),i=r===`http`||r===`ws`?r:void 0,a=t.toLowerCase(),o=a.startsWith(`ws://`)||a.startsWith(`wss://`)?`ws`:a.startsWith(`http://`)||a.startsWith(`https://`)?`http`:void 0,s=i??o,c=typeof window.overrideAuthHeader==`function`,l,u=`unknown`,d=!0;if(t===``){let t=typeof window.overrideDefaultSchema==`function`?window.overrideDefaultSchema():'[{"///": "No schema loaded.\\n\\nTry [editing the schema](/?v=ds), or loading a schema from a live running Telepact server by entering a URL in the `Live URL` text box.", "info.Example":{}}]',n=e.searchParams.get(`sd`)??t,r=zp.fromJson(n),i=new Fp;i.generatedCollectionLengthMin=2,i.randomizeOptionalFieldGeneration=!1,i.onError=e=>console.log(e);let a=new Pp(r,i);l=new Go(async(e,t)=>{let n=t.serialize(e),r=await a.process(n);return t.deserialize(r.bytes)},new Ko),u=`draft`,d=!1}else if(s===`http`)l=new Go(async(e,n)=>{let r=async(t,n)=>(t!==void 0&&(e.headers[`@auth_`]=t),n()),i=async()=>{let r=n.serialize(e),i=await(await fetch(rK(t),{method:`POST`,body:r})).arrayBuffer(),a=new Uint8Array(i);return n.deserialize(a)};return e.getBodyTarget().endsWith(`_`)||window.overrideAuthHeader===void 0?r(void 0,i):window.overrideAuthHeader(t,e=>r(e,i))},new Ko),u=`http`;else if(s===`ws`){let e=[],n=null,r=null,i=t=>{for(;e.length>0;)e.shift()?.reject(t)},a=async e=>{if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());if(typeof e==`string`)return new TextEncoder().encode(e);if(ArrayBuffer.isView(e)){let t=e;return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}throw Error(`Unsupported WebSocket payload type`)},o=async()=>{if(n&&n.readyState===WebSocket.OPEN)return;if(r)return r;let o=new WebSocket(iK(t));o.binaryType=`arraybuffer`,n=o;let s=!1,c=async t=>{if(o!==n)return;let r=e.shift();if(!r){console.warn(`Received unexpected WebSocket message with no pending Telepact request.`);return}try{let e=await a(t.data),n=r.serializer.deserialize(e);r.resolve(n)}catch(e){r.reject(e)}},l=e=>{if(o!==n)return;o.removeEventListener(`message`,c),o.removeEventListener(`close`,l),o.removeEventListener(`error`,u),n=null;let t=e.reason?` ${e.reason}`:``,r=Error(`WebSocket closed with code ${e.code}.${t}`);s&&i(r)},u=()=>{o===n&&i(Error(`WebSocket error`))};return o.addEventListener(`message`,c),o.addEventListener(`close`,l),o.addEventListener(`error`,u),r=new Promise((e,t)=>{let r=()=>{o.removeEventListener(`open`,a),o.removeEventListener(`error`,d),o.removeEventListener(`close`,f)},a=()=>{r(),s=!0,e()},d=()=>{r(),o===n&&(o.removeEventListener(`message`,c),o.removeEventListener(`close`,l),o.removeEventListener(`error`,u),n=null);let e=Error(`Failed to establish WebSocket connection`);t(e),i(e)},f=e=>{r(),o===n&&(o.removeEventListener(`message`,c),o.removeEventListener(`close`,l),o.removeEventListener(`error`,u),n=null);let a=e.reason?`: ${e.reason}`:``,s=Error(`WebSocket closed before ready (code ${e.code}${a})`);t(s),i(s)};o.addEventListener(`open`,a,{once:!0}),o.addEventListener(`error`,d,{once:!0}),o.addEventListener(`close`,f,{once:!0})}).finally(()=>{r=null}),r},s=async(t,r)=>{await o();let i=n;if(!i||i.readyState!==WebSocket.OPEN)throw Error(`WebSocket is not open`);let a=r.serialize(t);return new Promise((t,n)=>{let o={resolve:t,reject:n,serializer:r};e.push(o);try{i.send(a)}catch(t){e.pop(),n(t instanceof Error?t:Error(`Failed to send message over WebSocket`))}})};l=new Go(async(e,n)=>{let r=async(t,n)=>(t!==void 0&&(e.headers[`@auth_`]=t),n()),i=()=>s(e,n);return e.getBodyTarget().endsWith(`_`)||window.overrideAuthHeader===void 0?r(void 0,i):window.overrideAuthHeader(t,e=>r(e,i))},new Ko),u=`ws`}else return{schemaSource:`unknown`,showInternalApi:n,readonlyEditor:!0,authManaged:c};if(!l)return{schemaSource:`unknown`,showInternalApi:n,readonlyEditor:!0,authManaged:c};let f=n?{"includeInternal!":!0}:{},p=(await l.request(new Ja({},{"fn.api_":f})))?.body?.Ok_?.api;if(!Array.isArray(p))throw Error(`Failed to get schema from server.`);let m=Op.fromJson(JSON.stringify(p,null,2)),h=p.filter(e=>n?!0:!(typeof e==`object`&&Object.keys(e).find(e=>e.endsWith(`_`))!==void 0)),g=JSON.stringify(h,null,2),_=(await km.format(g,{parser:`telepact-parse`,printWidth:78,proseWrap:`always`,plugins:[yB,TD,lC,nK]})).trimEnd();return{client:l,schemaSource:u,schemaProtocol:u===`http`||u===`ws`?u:void 0,showInternalApi:n,readonlyEditor:d,filteredSchemaPseudoJson:h,telepactSchema:m,schemaDraft:_,authManaged:c}}function oK(e,t){let n=JSON.parse(t),r=new Ja(n[0],n[1]),i=Date.now();return new Promise((t,n)=>{setTimeout(async()=>{try{let n=await e.request(r);t(JSON.stringify([n.headers,n.body],null,2))}catch(e){n(e)}},Math.max(0,500-(Date.now()-i)))})}function sK(e){let t=e.toLowerCase();return t.startsWith(`ws://`)||t.startsWith(`wss://`)?`ws`:`http`}function cK(e,t){let n=e.trim();if(n===``)return null;if(/%(?![0-9A-Fa-f]{2})/.test(n))return`Enter a valid URL or relative path`;let r=t===`ws`?[`ws:`,`wss:`]:[`http:`,`https:`];try{let e=new URL(n);return r.includes(e.protocol.toLowerCase())?null:t===`ws`?`URL must match selected scheme (ws:// or wss:// or a relative path)`:`URL must match selected scheme (http:// or https:// or a relative path)`}catch{try{return new URL(n,`http://placeholder.local`),null}catch{return`Enter a valid URL or relative path`}}}function lK(e,t,n){let r=n===1?`w-full`:`w-1/2`;return t===`s`?`justify-start `+r:e.includes(`s`)?`justify-end `+r:t===`d`?`justify-start `+r:e.includes(`d`)||t===`r`?`justify-end `+r:e.includes(`r`)?`justify-start `+r:t===`t`&&e.includes(`m`)?`justify-end `+r:t===`m`&&e.includes(`t`)?`justify-start `+r:`justify-end `+r}function uK(){let[e,t]=(0,T.useState)(()=>new URL(window.location.href)),n=e=>{let n=new URL(e,window.location.href);if(window.history.pushState({},``,n),t(n),n.hash){let e=n.hash.replace(`#`,``);setTimeout(()=>{document.getElementById(e)?.scrollIntoView()},0)}},[r,i]=(0,T.useState)(null),[a,o]=(0,T.useState)({status:`idle`});(0,T.useEffect)(()=>{let e=()=>{t(new URL(window.location.href)),i(null)},n=()=>t(new URL(window.location.href));return window.addEventListener(`popstate`,e),window.addEventListener(`hashchange`,n),()=>{window.removeEventListener(`popstate`,e),window.removeEventListener(`hashchange`,n)}},[]),(0,T.useEffect)(()=>{if(!r){o({status:`idle`});return}let e=!1;return o({status:`loading`}),r.then(t=>{e||o({status:`ready`,value:t})},t=>{e||o({status:`error`,error:t})}),()=>{e=!0}},[r]);let s=(e.searchParams.get(`s`)??``).trim(),c=e.searchParams.get(`p`)??``,l=`${s}|${c}|${e.searchParams.get(`i`)??``}|${e.searchParams.get(`sd`)??``}`,[u,d]=(0,T.useState)({status:`loading`});(0,T.useEffect)(()=>{let t=!1;return d({status:`loading`}),aK(e).then(e=>{t||d({status:`ready`,value:e})}).catch(e=>{t||d({status:`error`,error:e})}),()=>{t=!0}},[l]);let f=u.status===`ready`?u.value:null,p=f?.telepactSchema,m=f?.filteredSchemaPseudoJson??[],h=f?.schemaDraft??``,g=f?.authManaged??!1,_=f?.readonlyEditor??!0,v=f?.schemaSource??`unknown`;(0,T.useEffect)(()=>(_m(),gm(t=>{let r=JSON.stringify([{},t],null,2),a=new URLSearchParams(e.searchParams.toString());a.set(`r`,Gp(r,!0)),n(`?${a.toString()}`),i(null)}),()=>gm(null)),[e.search]),(0,T.useEffect)(()=>{if(!p)return;let e=pm(p);ve.setDiagnosticsOptions({schemas:[{uri:`internal://server/jsonschema-telepact.json`,fileMatch:[`schema.telepact.json`],schema:Bp},{uri:`internal://server/jsonschema-request.json`,fileMatch:[`request.json`],schema:e}]})},[p]);let y=e.searchParams.get(`v`)??`d`,b=y.substring(0,2),x=e.searchParams.get(`az`)===`1`,S=e.searchParams.get(`mf`)??`fn.ping_`,C=(e.searchParams.get(`mh`)??``).split(`,`).map(e=>e.trim()).filter(e=>e!==``),w=e.searchParams.get(`r`),[E,D]=(0,T.useState)(s);(0,T.useEffect)(()=>{D(s)},[s]);let[O,ee]=(0,T.useState)(()=>c===`http`||c===`ws`?c:sK(s)),k=(0,T.useMemo)(()=>cK(E,O),[E,O]),te=v===`draft`?`Submit (mock)`:`Submit (live)`,[A,ne]=(0,T.useState)(!1),[re,ie]=(0,T.useState)(!1),j=t=>{t.preventDefault();let r=E.trim();if(D(r),cK(r,O)!==null)return;let i=new URLSearchParams(e.searchParams.toString());i.get(`s`)!==r&&(i.delete(`mf`),i.delete(`mh`),i.delete(`r`),i.set(`v`,`d`)),r===``?(i.delete(`s`),i.delete(`p`)):(i.set(`s`,r),i.set(`p`,O)),ne(!1),n(`?${i.toString()}`)},M=t=>{let r;r=y.substring(0,2).includes(t)?y.replace(t,``):y.includes(t)?t+y.replace(t,``):t+y;let i=new URLSearchParams(e.searchParams.toString());i.set(`v`,r),n(`?${i.toString()}`)},ae=()=>{let t=new URLSearchParams(e.searchParams.toString());t.get(`i`)===`1`?t.delete(`i`):t.set(`i`,`1`),n(`?${t.toString()}`)},oe=(0,T.useRef)(null),se=(0,T.useRef)(null),ce=()=>{let t=oe.current?.getContent();if(!t)return;let r=Gp(t),i=new URLSearchParams(e.searchParams.toString());i.set(`s`,``),i.set(`sd`,r),i.set(`v`,`sd`),n(`?${i.toString()}`)},le=()=>{if((v===`http`||v===`ws`)&&!sessionStorage.getItem(`telepact-console:live-request-acknowledge`)){if(!confirm(`You are about to submit a request to a live server.`))return;sessionStorage.setItem(`telepact-console:live-request-acknowledge`,`true`)}let t=se.current?.getContent();if(!t)return;let r=new URLSearchParams(e.searchParams.toString());r.set(`v`,`tr`),r.set(`r`,Gp(t,!0)),n(`?${r.toString()}`),f?.client&&i(oK(f.client,t))},[ue,de]=(0,T.useState)(1),[fe,pe]=(0,T.useState)({status:`idle`});(0,T.useEffect)(()=>{if(!p||!b.includes(`m`)){pe({status:`idle`});return}let e=!1;return pe({status:`loading`}),em(S,C,p).then(t=>{e||pe({status:`ready`,value:t})},t=>{e||pe({status:`error`,error:t})}),()=>{e=!0}},[p,b,S,C.join(`,`),ue]);let me=f?.showInternalApi??!1,he=(0,T.useMemo)(()=>{if(!p)return[];let e=nm(m,p,x,me);return me?e:e.filter(e=>!(e.name.split(`.`)[1]??``).endsWith(`_`))},[m,x,me,p]),ge=`${ue}:${S}:${C.join(`,`)}`,_e=e=>{e.key===`Escape`&&(e.stopPropagation(),ne(!1))};return(0,I.jsxs)(`div`,{className:`text-gray-800 dark:text-gray-200`,children:[(0,I.jsx)(`nav`,{className:`fixed top-0 z-10 h-16 w-full border-y border-slate-300 bg-slate-100 dark:border-slate-600 dark:bg-slate-800`,children:(0,I.jsxs)(`div`,{className:`flex h-full items-center px-4`,children:[(0,I.jsx)(`div`,{className:`flex items-center ${re?`shrink-0 pr-4`:`flex-1 min-w-0`}`,children:(0,I.jsxs)(`div`,{className:`flex items-center rounded-md py-2`,children:[(0,I.jsx)(`div`,{className:`text-sky-400`,children:(0,I.jsx)(`img`,{src:`/favicon.svg`,alt:`Telepact logo`,className:`h-8 w-8`})}),(0,I.jsx)(`h1`,{className:`px-2 text-lg font-semibold text-gray-900 dark:text-gray-100`,children:`Telepact`})]})}),(0,I.jsxs)(`div`,{id:`view-select`,className:`flex shrink-0 content-center space-x-2 ${re?`ml-4 mr-auto justify-start`:`mx-auto justify-center`}`,children:[(0,I.jsxs)(`div`,{className:`inline-flex rounded-md`,children:[(0,I.jsx)(dm,{text:`Schema`,children:(0,I.jsx)(`button`,{"aria-label":`Toggle Schema`,"aria-pressed":b.includes(`s`),onClick:()=>M(`s`),className:`rounded-s-md p-2 ${b.includes(`s`)?`bg-sky-700 text-cyan-300`:`bg-slate-200 text-gray-800 dark:bg-slate-700 dark:text-gray-200`}`,children:(0,I.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`1`,stroke:`currentColor`,className:`h-6 w-6`,children:(0,I.jsx)(`path`,{d:`M 2 22 L 5 16 L 19 2 L 22 5 L 8 19 L 2 22 M 5 16 L 8 19 M 19 8 L 16 5 M 17 4 L 20 7`})})})}),(0,I.jsx)(dm,{text:`Documentation`,children:(0,I.jsx)(`button`,{"aria-label":`Toggle Documentation`,"aria-pressed":b.includes(`d`),onClick:()=>M(`d`),className:`p-2 ${b.includes(`d`)?`bg-sky-700 text-cyan-300`:`bg-slate-200 text-gray-800 dark:bg-slate-700 dark:text-gray-200`}`,children:(0,I.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`1.5`,stroke:`currentColor`,className:`h-6 w-6`,children:(0,I.jsx)(`path`,{d:`M 20 19 L 20 5 M 20 5 L 14 5 L 12 6 L 10 5 L 4 5 L 4 19 L 10 19 L 12 20 L 14 19 L 20 19 M 20 7 L 22 7 L 22 21 L 14 21 L 12 22 L 10 21 L 2 21 L 2 7 L 4 7 M 12 6 L 12 20 M 7 9 L 9 9 M 7 12 L 9 12 M 7 15 L 9 15 M 15 9 L 17 9 M 15 12 L 17 12 M 15 15 L 17 15`})})})}),(0,I.jsx)(dm,{text:`Example`,children:(0,I.jsx)(`button`,{"aria-label":`Toggle Simulation`,"aria-pressed":b.includes(`m`),onClick:()=>M(`m`),className:`rounded-e-md p-2 ${b.includes(`m`)?`bg-sky-700 text-cyan-300`:`bg-slate-200 text-gray-800 dark:bg-slate-700 dark:text-gray-200`}`,children:(0,I.jsx)(lm,{})})})]}),(0,I.jsxs)(`div`,{className:`inline-flex rounded-md`,children:[(0,I.jsx)(dm,{text:`Terminal`,children:(0,I.jsx)(`button`,{"aria-label":`Toggle Terminal`,"aria-pressed":b.includes(`t`),onClick:()=>M(`t`),className:`rounded-s-md p-2 ${b.includes(`t`)?`bg-emerald-900 text-green-300`:`bg-slate-200 text-gray-800 dark:bg-slate-700 dark:text-gray-200`}`,children:(0,I.jsx)(fm,{})})}),(0,I.jsx)(dm,{text:`Results`,children:(0,I.jsx)(`button`,{"aria-label":`Toggle Results`,"aria-pressed":b.includes(`r`),onClick:()=>M(`r`),className:`rounded-e-md p-2 ${b.includes(`r`)?`bg-emerald-900 text-green-300`:`bg-slate-200 text-gray-800 dark:bg-slate-700 dark:text-gray-200`}`,children:(0,I.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`1.5`,stroke:`currentColor`,className:`h-6 w-6`,children:(0,I.jsx)(`path`,{d:`M 22 15 L 22 6 M 22 6 L 2 6 L 2 15 M 5 12 L 19 12 M 17 12 L 17 22 L 7 22 L 7 12 M 2 15 L 7 15 M 17 15 L 22 15 M 7 6 L 7 2 L 17 2 L 17 6 M 20 8 L 19 8 L 19 9 L 20 9 M 10 15 L 14 15 M 10 18 L 14 18 Z`})})})})]})]}),(0,I.jsx)(`div`,{className:`flex flex-1 min-w-0 items-center justify-end`,children:(0,I.jsxs)(`form`,{className:`flex items-center space-x-2 ml-4 ${re?`w-full`:``}`,onSubmit:j,children:[(0,I.jsxs)(`div`,{className:`flex items-stretch rounded-md border focus-within:ring-1 focus-within:ring-inset ${k?`border-red-500 focus-within:ring-red-500 ring-1 ring-inset ring-red-500 dark:border-red-400 dark:focus-within:ring-red-400`:`border-gray-300 focus-within:ring-gray-500 dark:border-gray-500 dark:focus-within:ring-gray-400`} ${re?`flex-1 min-w-0`:`w-80`}`,children:[(0,I.jsx)(`label`,{htmlFor:`url`,className:`content-center rounded-l-md px-2 py-2 text-sm font-medium whitespace-nowrap ${k?`bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300`:`bg-zinc-200 text-gray-700 dark:bg-zinc-600 dark:text-gray-200`}`,children:`Live URL`}),(0,I.jsxs)(`div`,{className:`relative flex content-center`,children:[(0,I.jsxs)(`button`,{type:`button`,className:`content-center border-l border-gray-300 dark:border-gray-500 flex items-center gap-1 px-2 py-2 text-sm font-medium lowercase focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sky-500 ${k?`bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300`:`bg-zinc-200 text-gray-700 dark:bg-zinc-600 dark:text-gray-200`}`,"aria-haspopup":`listbox`,"aria-label":`Select protocol`,"aria-expanded":A?`true`:`false`,onClick:()=>ne(e=>!e),onKeyDown:_e,children:[(0,I.jsx)(`span`,{children:O}),(0,I.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,className:`h-4 w-4`,children:(0,I.jsx)(`path`,{fillRule:`evenodd`,d:`M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.94l3.71-3.71a.75.75 0 1 1 1.06 1.06l-4.24 4.24a.75.75 0 0 1-1.06 0L5.21 8.29a.75.75 0 0 1 .02-1.08z`,clipRule:`evenodd`})})]}),A?(0,I.jsxs)(`div`,{className:`absolute left-0 top-full z-20 mt-1 w-28 overflow-hidden rounded-md border border-gray-200 bg-white shadow-lg dark:border-zinc-600 dark:bg-zinc-700`,role:`listbox`,"aria-label":`Select protocol`,onKeyDown:_e,tabIndex:-1,children:[(0,I.jsx)(`button`,{type:`button`,onClick:()=>{ee(`http`),ne(!1)},className:`block w-full px-3 py-2 text-left text-sm lowercase ${O===`http`?`bg-sky-600 text-white`:`text-gray-700 hover:bg-sky-100 dark:text-gray-100 dark:hover:bg-zinc-600`}`,role:`option`,"aria-selected":O===`http`?`true`:`false`,children:`http`}),(0,I.jsx)(`button`,{type:`button`,onClick:()=>{ee(`ws`),ne(!1)},className:`block w-full px-3 py-2 text-left text-sm lowercase ${O===`ws`?`bg-sky-600 text-white`:`text-gray-700 hover:bg-sky-100 dark:text-gray-100 dark:hover:bg-zinc-600`}`,role:`option`,"aria-selected":O===`ws`?`true`:`false`,children:`ws`})]}):null]}),(0,I.jsxs)(`div`,{className:`${re?`flex-1 min-w-0`:``}`,onFocus:()=>ie(!0),onBlur:e=>{let t=e.currentTarget,n=e.relatedTarget;(!t||!n||!t.contains(n))&&(ie(!1),ne(!1))},children:[(0,I.jsx)(dm,{text:k??``,children:(0,I.jsx)(`input`,{type:`text`,name:`url`,id:`url`,placeholder:`None (draft mode)`,value:E,onChange:e=>D(e.target.value),className:`w-full rounded-r-md border-0 pl-2 py-2 placeholder:text-gray-400 focus:ring-1 focus:ring-inset ${k?`bg-red-50 text-red-800 focus:ring-red-500 dark:bg-red-900/30 dark:text-red-200 dark:focus:ring-red-400`:`bg-zinc-100 focus:ring-gray-500 dark:bg-zinc-700 dark:focus:ring-gray-400`}`,"aria-invalid":k?`true`:`false`,"aria-describedby":k?`live-url-error`:void 0})}),k?(0,I.jsx)(`p`,{id:`live-url-error`,className:`sr-only`,children:k}):null]})]}),(0,I.jsx)(`button`,{type:`submit`,className:`shrink-0 rounded-md bg-sky-700 px-3 py-2 text-sm font-semibold text-white active:bg-sky-800`,children:`Load`})]})})]})}),(0,I.jsxs)(`main`,{className:`mt-16 flex h-[calc(100vh-4em)] bg-zinc-50 dark:bg-zinc-800`,children:[u.status===`loading`?(0,I.jsx)(`span`,{children:`loading schema`}):null,u.status===`error`?(0,I.jsx)(`span`,{children:`failed to get schema`}):null,u.status===`ready`?(0,I.jsxs)(I.Fragment,{children:[b.includes(`s`)?(0,I.jsx)(`div`,{className:`flex h-[calc(100vh-4em)] ${lK(b,`s`,b.length)}`,children:(0,I.jsxs)(`div`,{className:`flex w-full flex-col p-6`,children:[(0,I.jsxs)(`div`,{className:`flex justify-between`,children:[(0,I.jsx)(`h1`,{className:`pb-4 text-xl font-semibold text-gray-900 dark:text-gray-100`,children:`Schema (JSON)`}),_?null:(0,I.jsxs)(`div`,{className:`flex space-x-2`,children:[(0,I.jsx)(`a`,{href:`https://github.com/Telepact/telepact/blob/main/doc/02-design-apis/01-schema-guide.md`,children:(0,I.jsxs)(`button`,{className:`flex items-center rounded-md bg-gray-200 px-3 py-2 text-sm font-semibold text-gray-900 hover:bg-gray-300 hover:underline dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600`,children:[(0,I.jsx)(`span`,{children:`Writing Guide`}),(0,I.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:`3`,stroke:`currentColor`,className:`ml-2 h-4 w-4`,children:(0,I.jsx)(`path`,{d:`M 14 2 L 4 2 A 4 4 0 0 0 0 6 L 0 20 A 4 4 0 0 0 4 24 L 18 24 A 4 4 0 0 0 22 20 L 22 10 M 11 13 L 24 0 L 18 0 M 24 0 L 24 6`})})]})}),(0,I.jsx)(`div`,{children:(0,I.jsx)(`button`,{onClick:ce,className:`rounded-md bg-sky-700 px-3 py-2 text-sm font-semibold text-white hover:bg-sky-600 active:bg-sky-700`,children:(0,I.jsx)(`span`,{children:`Save`})})})]})]}),(0,I.jsx)(`div`,{className:`grow border border-zinc-300 dark:border-zinc-600`,children:(0,I.jsx)(sm,{id:`schema`,readOnly:_,json:h,ctrlEnter:ce,filename:`schema.telepact.json`,ariaLabel:`schema`,ref:oe},h)})]})}):null,b.includes(`d`)?(0,I.jsx)(`div`,{className:`flex overflow-scroll ${lK(b,`d`,b.length)}`,children:(0,I.jsxs)(`div`,{className:`flex w-full flex-col p-6`,children:[(0,I.jsx)(`div`,{children:(0,I.jsx)(`h1`,{className:`pb-4 text-xl font-semibold text-gray-900 dark:text-gray-100`,children:`Schema`})}),he.map(e=>(0,I.jsx)(um,{entry:e,telepactSchema:p,navigate:n},e.name)),(0,I.jsx)(`div`,{className:`flex justify-center pb-4`,children:(0,I.jsx)(`button`,{onClick:ae,className:`mt-4 rounded-md bg-sky-700 px-3 py-2 text-sm font-semibold text-white hover:bg-sky-600`,children:me?`Hide Internal API`:`Show Internal API`})})]})}):null,b.includes(`m`)?(0,I.jsx)(`div`,{className:`flex overflow-scroll ${lK(b,`m`,b.length)}`,children:(0,I.jsxs)(`div`,{className:`flex w-full flex-col p-6`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,I.jsx)(`h1`,{className:`pb-4 text-xl font-semibold text-gray-900 dark:text-gray-100`,children:`Mocked Example`}),(0,I.jsx)(`button`,{onClick:()=>de(e=>e+1),className:`rounded-md bg-sky-700 px-3 py-2 text-sm font-semibold text-white hover:bg-sky-600`,children:`Regenerate`})]}),fe.status===`loading`?(0,I.jsx)(`div`,{className:`mb-4`,children:(0,I.jsxs)(`span`,{children:[`Loading...`,(0,I.jsx)(`span`,{children:` `})]})}):null,fe.status===`ready`?(0,I.jsxs)(`div`,{className:`flex h-full flex-col space-y-2`,children:[(0,I.jsx)(`div`,{className:`h-1/2 grow border border-zinc-300 dark:border-zinc-600`,children:(0,I.jsx)(sm,{id:`requestExample`,readOnly:!0,json:fe.value.request,allowLinks:!1,filename:`requestExample.json`,ariaLabel:`requestExample`,minimap:!1},`${ge}:request`)}),(0,I.jsx)(`div`,{className:`ml-4 shrink`,children:(0,I.jsx)(`span`,{className:`text-3xl text-emerald-500`,children:`→`})}),(0,I.jsx)(`div`,{className:`h-1/2 grow border border-zinc-300 dark:border-zinc-600`,children:(0,I.jsx)(sm,{id:`responseExample`,readOnly:!0,json:fe.value.response,allowLinks:!1,filename:`responseExample.json`,ariaLabel:`responseExample`,lineNumbers:!1,minimap:!1},`${ge}:response`)})]}):null]})}):null,b.includes(`t`)?(0,I.jsx)(`div`,{className:`flex h-[calc(100vh-4em)] ${lK(b,`t`,b.length)}`,children:(0,I.jsxs)(`div`,{className:`flex w-full flex-col bg-zinc-100 p-6 dark:bg-zinc-700`,children:[(0,I.jsxs)(`div`,{className:`flex justify-between`,children:[(0,I.jsx)(`h1`,{className:`pb-4 text-xl font-semibold text-gray-900 dark:text-gray-100`,children:`Request`}),(0,I.jsx)(`div`,{children:(0,I.jsx)(`button`,{onClick:le,disabled:a.status===`loading`,className:`rounded-md px-3 py-2 text-sm font-semibold ${a.status===`loading`?`cursor-not-allowed bg-sky-600/40 text-gray-500 dark:text-gray-300`:`bg-sky-700 text-white active:bg-sky-800`}`,children:te})})]}),(0,I.jsx)(`div`,{className:`grow border border-zinc-300 dark:border-zinc-600`,children:(0,I.jsx)(sm,{id:`request`,readOnly:!1,json:Kp(w,g),ctrlEnter:le,filename:`request.json`,ariaLabel:`request`,ref:se},w??``)})]})}):null,b.includes(`r`)?(0,I.jsx)(`div`,{className:`flex h-[calc(100vh-4em)] ${lK(b,`r`,b.length)}`,children:r?(0,I.jsxs)(`div`,{className:`flex w-full flex-col bg-zinc-100 p-6 dark:bg-zinc-700`,children:[(0,I.jsx)(`h1`,{className:`mb-4 text-xl font-semibold text-gray-900 dark:text-gray-100`,children:`Response`}),a.status===`loading`?(0,I.jsx)(`div`,{className:`grid h-full w-full place-content-center`,children:(0,I.jsx)(`div`,{children:(0,I.jsxs)(`span`,{children:[`Loading...`,(0,I.jsx)(`span`,{children:` `})]})})}):null,a.status===`ready`?(0,I.jsx)(`div`,{className:`grow border border-zinc-300 dark:border-zinc-600`,children:(0,I.jsx)(sm,{id:`response`,readOnly:!0,json:a.value,allowLinks:!0,filename:`response.json`,ariaLabel:`response`},a.value)}):null,a.status===`error`?(0,I.jsx)(`div`,{className:`h-full rounded-md border border-red-300 bg-red-100 p-4 text-red-700 dark:border-red-700 dark:bg-red-500/20 dark:text-red-500`,children:(0,I.jsx)(`div`,{className:`overflow-scroll`,children:(0,I.jsx)(`span`,{children:String(a.error)})})}):null]}):(0,I.jsx)(`div`,{className:`grid h-full w-full place-content-center`,children:(0,I.jsx)(`div`,{children:(0,I.jsx)(`span`,{children:`Click "Submit" on Request pane to fetch response.`})})})}):null]}):null]})]})}var dK=document.getElementById(`app-root`);if(!dK)throw Error(`Missing #app-root`);E.createRoot(dK).render((0,I.jsx)(T.StrictMode,{children:(0,I.jsx)(uK,{})}));