@mintlify/cli 4.1.70 → 4.1.71

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.
@@ -4,20 +4,20 @@ import { dirname as __mintDirname } from 'node:path';
4
4
  const require = __mintCreateRequire(import.meta.url);
5
5
  const __filename = __mintFileURLToPath(import.meta.url);
6
6
  const __dirname = __mintDirname(__filename);
7
- import{I as e,O as t,P as n,d as r,k as i,s as a}from"./utils-Dps9hFB1.js";import{I as o,N as s,P as c,S as l,T as u,_ as d,b as f,c as p,f as m,g as h,l as g,m as _,o as v,x as y}from"./micromark-extension-mdxjs-BEBdzW1n.js";import{n as b}from"./currencyMath-ssJIW64e.js";import{i as x,n as S,r as ee,t as te}from"./schemas-CVKidklE.js";import{n as ne,t as re}from"./lib-g4r7PSeX.js";function ie(){return[l(),y(),f(),d(),h()]}var ae=n();function oe(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;return typeof n==`number`&&typeof r==`number`?t.slice(n,r):``}function se(e,t){if(!t)return;let n=e.at(-1);n?.type===`text`?n.value+=t:e.push({type:`text`,value:t})}const ce=/^([a-z][a-z\d+.-]*):/i,le=/* @__PURE__ */ new Set([`http`,`https`,`mailto`,`tel`]);function ue(e){let t=ce.exec(e.replace(/[\u0000- ]/g,``))?.[1];return!t||le.has(t.toLowerCase())}function de(e,t){let n=oe(e,t),r=e.url.trim();return n.startsWith(`[`)&&r.length>0&&ue(r)&&(/^(?:https?:\/\/|mailto:|tel:|\/|#|\.\.?\/)/i.test(r)||r.includes(`/`)||/^[^\s@]+\.[^\s]+$/u.test(r))}function fe(e,t){let n=[];for(let r of e)switch(r.type){case`text`:se(n,r.value.replace(/\n/g,` `));break;case`inlineCode`:n.push({type:`inlineCode`,value:r.value});break;case`strong`:case`emphasis`:case`delete`:n.push(Object.assign(Object.assign({},r),{children:fe(r.children,t)}));break;case`link`:de(r,t)?n.push(Object.assign(Object.assign({},r),{children:fe(r.children,t)})):se(n,oe(r,t));break;default:se(n,oe(r,t))}return n}const pe=/[\\&*_`[\]!<>~@\0\t\n\r]|:\/\/|www\.|\s$/i;function me(e){if(!e)return[];if(!pe.test(e))return[{type:`text`,value:e}];try{let t=`title: `,n=`${t}${e.replace(/\n/g,` `)}`,r=u(n,{extensions:[_()],mdastExtensions:[ie()]}),i=r.children.length===1?r.children[0]:void 0;if(i?.type!==`paragraph`)return[{type:`text`,value:e}];let a=fe(i.children,n),o=a[0];return o?.type!==`text`||!o.value.startsWith(t)?[{type:`text`,value:e}]:(o.value=o.value.slice(7),o.value||a.shift(),a)}catch{return[{type:`text`,value:e}]}}function he(e){return r({type:`paragraph`,children:me(e)})}function ge(e){this.content=e}ge.prototype={constructor:ge,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new ge(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new ge(n)},addToStart:function(e,t){return new ge([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ge(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new ge(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ge.from(e),e.size?new ge(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ge.from(e),e.size?new ge(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ge.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},ge.from=function(e){if(e instanceof ge)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ge(t)};function _e(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=_e(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function ve(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=0,t=Math.min(o.text.length,s.text.length);for(;e<t&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let e=ve(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}var ye=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return _e(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return ve(this,e,t,n)}findIndex(e){if(e==0)return xe(0,e);if(e==this.size)return xe(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?xe(t+1,i):xe(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return new e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};ye.empty=new ye([],0);const be={index:0,offset:0};function xe(e,t){return be.index=e,be.offset=t,be}function Se(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!Se(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!Se(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var Ce=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Se(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};Ce.none=[];var we=class extends Error{},Te=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=De(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Ee(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(ye.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};Te.empty=new Te(ye.empty,0,0);function Ee(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Ee(a.content,t-i-1,n-i-1)))}function De(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=De(o.content,t-a-1,n,o);return s&&e.replaceChild(i,o.copy(s))}function Oe(e,t,n){if(n.openStart>e.depth)throw new we(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new we(`Inconsistent open depths`);return ke(e,t,n,0)}function ke(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=ke(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return Pe(a,C(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Pe(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Ie(n,e);return Pe(a,Fe(e,i,o,t,r))}}function Ae(e,t){if(!t.type.compatibleContent(e.type))throw new we(`Cannot join `+t.type.name+` onto `+e.type.name)}function je(e,t,n){let r=e.node(n);return Ae(r,t.node(n)),r}function Me(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ne(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Me(e.nodeAfter,r),a++));for(let e=a;e<o;e++)Me(i.child(e),r);t&&t.depth==n&&t.textOffset&&Me(t.nodeBefore,r)}function Pe(e,t){return e.type.checkContent(t),e.copy(t)}function Fe(e,t,n,r,i){let a=e.depth>i&&je(e,t,i+1),o=r.depth>i&&je(n,r,i+1),s=[];return Ne(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ae(a,o),Me(Pe(a,Fe(e,t,n,r,i+1)),s)):(a&&Me(Pe(a,C(e,t,i+1)),s),Ne(t,n,i,s),o&&Me(Pe(o,C(n,r,i+1)),s)),Ne(r,null,i,s),new ye(s)}function C(e,t,n){let r=[];return Ne(null,e,n,r),e.depth>n&&Me(Pe(je(e,t,n+1),C(e,t,n+1)),r),Ne(t,null,n,r),new ye(r)}function Ie(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(ye.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Le=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Ce.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Be(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=w.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else w.set(t,r=new Re);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%ze,i}},Re=class{constructor(){this.elts=[],this.i=0}};const ze=12,w=/* @__PURE__ */ new WeakMap;var Be=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const Ve=Object.create(null);var He=class e{constructor(e,t,n,r=Ce.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||ye.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&Se(this.attrs,t||e.defaultAttrs||Ve)&&Ce.sameSet(this.marks,n||Ce.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return Te.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new Te(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Oe(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Le.resolveCached(this,e)}resolveNoCache(e){return Le.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),We(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=ye.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ce.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Ce.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=ye.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};He.prototype.text=void 0;var Ue=class e extends He{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):We(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function We(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ge=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ke(t,n);if(r.next==null)return e.empty;let i=qe(r);r.next&&r.err(`Unexpected trailing text`);let a=tt(Qe(i));return nt(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return ye.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
8
- `)}};Ge.empty=new Ge(!0);var Ke=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function qe(e){let t=[];do t.push(Je(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Je(e){let t=[];do t.push(Ye(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ye(e){let t=Ze(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Xe(e,t);else break;return t}function T(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Xe(e,t){let n=T(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:T(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function E(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Ze(e){if(e.eat(`(`)){let t=qe(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=E(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Qe(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function $e(e,t){return t-e}function et(e,t){let n=[];return r(t),n.sort($e);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function tt(e){let t=Object.create(null);return n(et(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);et(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ge(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort($e);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function nt(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function rt(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function it(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function at(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function ot(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new lt(e,r,t[r]);return n}var st=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=ot(e,n.attrs),this.defaultAttrs=rt(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ge.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:it(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new He(this,this.computeAttrs(e),ye.from(t),Ce.setFrom(n))}createChecked(e=null,t,n){return t=ye.from(t),this.checkContent(t),new He(this,this.computeAttrs(e),t,Ce.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=ye.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(ye.empty,!0);return i?new He(this,e,t.append(i),Ce.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){at(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:Ce.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ct(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var lt=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ct(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},ut=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ot(e,r.attrs),this.excluded=null;let i=rt(this.attrs);this.instance=i?new Ce(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ce(this,it(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){at(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},dt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=ge.from(e.nodes),t.marks=ge.from(e.marks||{}),this.nodes=st.compile(this.spec.nodes,this),this.marks=ut.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ge.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?ft(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:ft(this,n.split(` `))}this.nodeFromJSON=e=>He.fromJSON(this,e),this.markFromJSON=e=>Ce.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof st))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ue(n,n.defaultAttrs,e,Ce.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function ft(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}var pt=Object.create,mt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,_t=Object.getPrototypeOf,vt=Object.prototype.hasOwnProperty,yt=(e,t)=>function(){return t||(0,e[gt(e)[0]])((t={exports:{}}).exports,t),t.exports},bt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of gt(t))!vt.call(e,i)&&i!==n&&mt(e,i,{get:()=>t[i],enumerable:!(r=ht(t,i))||r.enumerable});return e},xt=(e,t,n)=>(n=e==null?{}:pt(_t(e)),bt(t||!e||!e.__esModule?mt(n,`default`,{value:e,enumerable:!0}):n,e)),St=yt({"../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}}}),D=yt({"../../node_modules/acorn/dist/acorn.js"(e,t){(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.acorn={}))})(e,(function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239],n=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],r=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,i=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,a={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},o=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,s={5:o,"5module":o+` export import`,6:o+` const class extends export import super`},c=/^in(stanceof)?$/,l=RegExp(`[`+i+`]`),u=RegExp(`[`+i+r+`]`);function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):t!==!1&&d(e,n)}function p(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&u.test(String.fromCharCode(e)):r===!1?!1:d(e,n)||d(e,t)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),privateId:new m(`privateId`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function ee(e){return e===10||e===13||e===8232||e===8233}function te(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(ee(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var ne=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,re=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ie=Object.prototype,ae=ie.hasOwnProperty,oe=ie.toString,se=Object.hasOwn||(function(e,t){return ae.call(e,t)}),ce=Array.isArray||(function(e){return oe.call(e)===`[object Array]`});function le(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}function ue(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var de=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,fe=function(e,t){this.line=e,this.column=t};fe.prototype.offset=function(e){return new fe(this.line,this.column+e)};var pe=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function me(e,t){for(var n=1,r=0;;){var i=te(e,r,t);if(i<0)return new fe(n,t-r);++n,r=i}}var he={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ge=!1;function _e(e){var t={};for(var n in he)t[n]=e&&se(e,n)?e[n]:he[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ge&&typeof console==`object`&&console.warn&&(ge=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
9
- Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),ce(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return ce(t.onComment)&&(t.onComment=ve(t,t.onComment)),t}function ve(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new pe(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var ye=1,be=2,xe=4,Se=8,Ce=16,we=32,Te=64,Ee=128,De=256,Oe=ye|be|De;function ke(e,t){return be|(e?xe:0)|(t?Se:0)}var Ae=0,je=1,Me=2,Ne=3,Pe=4,Fe=5,C=function(e,t,n){this.options=e=_e(e),this.sourceFile=e.sourceFile,this.keywords=le(s[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=le(r);var i=(r?r+` `:``)+a.strict;this.reservedWordsStrict=le(i),this.reservedWordsStrictBind=le(i+` `+a.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
10
- `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ye),this.regexpState=null,this.privateNameStack=[]},Ie={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};C.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Ie.inFunction.get=function(){return(this.currentVarScope().flags&be)>0},Ie.inGenerator.get=function(){return(this.currentVarScope().flags&Se)>0&&!this.currentVarScope().inClassFieldInit},Ie.inAsync.get=function(){return(this.currentVarScope().flags&xe)>0&&!this.currentVarScope().inClassFieldInit},Ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&De)return!1;if(t.flags&be)return(t.flags&xe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&Te)>0||n||this.options.allowSuperOutsideMethod},Ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ee)>0},Ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(be|De))>0||n},Ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&De)>0},C.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},C.parse=function(e,t){return new this(t,e).parse()},C.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},C.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(C.prototype,Ie);var Le=C.prototype,Re=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Le.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){re.lastIndex=e,e+=re.exec(this.input)[0].length;var t=Re.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){re.lastIndex=e+t[0].length;var n=re.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,re.lastIndex=e,e+=re.exec(this.input)[0].length,this.input[e]===`;`&&e++}},Le.eat=function(e){return this.type===e&&(this.next(),!0)},Le.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},Le.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Le.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},Le.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Le.expect=function(e){this.eat(e)||this.unexpected()},Le.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var ze=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Le.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Le.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Le.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var w=C.prototype;w.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Be={kind:`loop`},Ve={kind:`switch`};w.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;re.lastIndex=this.pos;var t=re.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(f(r,!0)){for(var i=n+1;p(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!c.test(a))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;re.lastIndex=this.pos;var e=re.exec(this.input),t=this.pos+e[0].length,n;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(p(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},w.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){re.lastIndex=this.pos;var o=re.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===b.name&&u.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},w.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},w.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},w.parseDoStatement=function(e){return this.next(),this.labels.push(Be),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Be),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual(`let`),o=!1,s=new ze,c=this.parseExpression(t>-1?`await`:!0,s);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Ue|(n?0:We),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},w.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Ve),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},w.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var He=[];w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();if(this.next(),this.eat(b.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?we:0),this.checkLValPattern(t.param,n?Pe:Me),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},w.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Be),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},w.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},w.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},w.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},w.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},w.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&(!t||this.type!==b._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(b.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?je:Me,!1)};var Ue=1,We=2,Ge=4;w.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&We&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Ue&&(e.id=t&Ge&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&We)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?je:Me:Ne));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ke(e.async,e.generator)),t&Ue||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Ue?`FunctionDeclaration`:`FunctionExpression`)},w.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raise(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Ke(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},w.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===b.parenL||o!==`method`||i||a){var l=!n.static&&qe(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},w.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===b.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&qe(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},w.parseClassField=function(e){if(qe(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&qe(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,`PropertyDefinition`)},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(De|Te);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},w.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Me,!1)):(t===!0&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];se(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Ke(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function qe(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}w.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(b._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===b._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,Ue|Ge,!1,n)}else if(this.type===b._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type===`Literal`&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},w.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),se(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},w.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},w.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},w.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual(`as`)?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},w.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=He,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},w.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,Me),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(b.comma))return e}if(this.type===b.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLValSimple(r.local,Me),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,Me),e.push(this.finishNode(i,`ImportSpecifier`))}return e},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return de.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Je=C.prototype;Je.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Je.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Je.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Je.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Je.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},Je.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Je.parseBindingListItem=function(e){return e},Je.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Je.checkLValSimple=function(e,t,n){t===void 0&&(t=Ae);var r=t!==Ae;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===Me&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(se(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Fe&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Je.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Ae),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Je.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Ae),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Ye=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},T={b_stat:new Ye(`{`,!1),b_expr:new Ye(`{`,!0),b_tmpl:new Ye("${",!1),p_stat:new Ye(`(`,!1),p_expr:new Ye(`(`,!0),q_tmpl:new Ye("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ye(`function`,!1),f_expr:new Ye(`function`,!0),f_expr_gen:new Ye(`function`,!0,!1,null,!0),f_gen:new Ye(`function`,!1,!1,null,!0)},Xe=C.prototype;Xe.initialContext=function(){return[T.b_stat]},Xe.curContext=function(){return this.context[this.context.length-1]},Xe.braceIsBlock=function(e){var t=this.curContext();return t===T.f_expr||t===T.f_stat?!0:e===b.colon&&(t===T.b_stat||t===T.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===T.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Xe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Xe.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Xe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===T.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?T.b_stat:T.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(T.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?T.p_stat:T.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&(e!==b.semi||this.curContext()===T.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==b.colon&&e!==b.braceL||this.curContext()!==T.b_stat)?this.context.push(T.f_expr):this.context.push(T.f_stat),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===T.q_tmpl?this.context.pop():this.context.push(T.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===T.f_expr?this.context[t]=T.f_expr_gen:this.context[t]=T.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var E=C.prototype;E.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},E.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},E.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ze,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},E.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},E.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},E.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},E.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},E.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&s.argument.type===`Identifier`?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Ze(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(b.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function Ze(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Ze(e.expression)}E.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},E.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},E.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):u.property=this.type===b.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new ze,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseArrowExpression(this.startNodeAt(t,n),h,!0,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===b.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},E.parseExprAtom=function(e,t){this.type===b.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),n=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(n.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(n,`Super`);case b._this:return n=this.startNode(),this.next(),this.finishNode(n,`ThisExpression`);case b.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&s.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(T.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name===`async`&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case b.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return n=this.startNode(),n.value=this.type===b._null?null:this.type===b._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,`Literal`);case b.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case b.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(n,`ArrayExpression`);case b.braceL:return this.overrideContext(T.b_expr),this.parseObj(!1,e);case b._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},E.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(e);case b.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},E.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},E.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},E.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},E.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},E.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ze,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},E.parseParenItem=function(e){return e},E.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Qe=[];E.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===b._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),e.arguments=this.eat(b.parenL)?this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):Qe,this.finishNode(e,`NewExpression`)},E.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
11
- `),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},E.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},E.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},E.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},E.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},E.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},E.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},E.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ke(t,r.generator)|Te|(n?Ee:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},E.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ke(n,!1)|Ce),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},E.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Fe),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},E.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},E.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,je,t?null:n)}},E.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},E.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},E.parseIdent=function(e){var t=this.startNode();return this.type===b.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!==`class`&&t.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},E.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},E.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},E.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var $e=C.prototype;$e.raise=function(e,t){var n=me(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},$e.raiseRecoverable=$e.raise,$e.curPosition=function(){if(this.options.locations)return new fe(this.curLine,this.pos-this.lineStart)};var et=C.prototype,tt=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};et.enterScope=function(e){this.scopeStack.push(new tt(e))},et.exitScope=function(){this.scopeStack.pop()},et.treatFunctionsAsVarInScope=function(e){return e.flags&be||!this.inModule&&e.flags&ye},et.declareName=function(e,t,n){var r=!1;if(t===Me){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&ye&&delete this.undefinedExports[e]}else if(t===Pe)this.currentScope().lexical.push(e);else if(t===Ne){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&we&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&ye&&delete this.undefinedExports[e],s.flags&Oe)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},et.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},et.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},et.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Oe)return t}},et.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Oe&&!(t.flags&Ce))return t}};var nt=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new pe(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},rt=C.prototype;rt.startNode=function(){return new nt(this,this.start,this.startLoc)},rt.startNodeAt=function(e,t){return new nt(this,e,t)};function it(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}rt.finishNode=function(e,t){return it.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},rt.finishNodeAt=function(e,t,n,r){return it.call(this,e,t,n,r)},rt.copyNode=function(e){var t=new nt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var at=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,ot=at+` Extended_Pictographic`,st=ot,ct=st+` EBase EComp EMod EPres ExtPict`,lt=ct,ut={9:at,10:ot,11:st,12:ct,13:lt,14:lt},dt=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ft=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,pt=ft+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,mt=pt+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,ht=mt+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,gt=ht+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,_t={9:ft,10:pt,11:mt,12:ht,13:gt,14:gt+` Kawi Nag_Mundari Nagm`},vt={};function yt(e){var t=vt[e]={binary:le(ut[e]+` `+dt),nonBinary:{General_Category:le(dt),Script:le(_t[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var bt=0,xt=[9,10,11,12,13,14];bt<xt.length;bt+=1){var St=xt[bt];yt(St)}var D=C.prototype,Ct=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=vt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ct.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Ct.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ct.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ct.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ct.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ct.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ct.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ct.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},D.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},D.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},D.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},D.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},D.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},D.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},D.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},D.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},D.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},D.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},D.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},D.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},D.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},D.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},D.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},D.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},D.regexp_eatSyntaxCharacter=function(e){var t=e.current();return O(t)?(e.lastIntValue=t,e.advance(),!0):!1};function O(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}D.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!O(n);)e.advance();return e.pos!==t},D.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},D.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},D.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},D.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ue(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ue(e.lastIntValue);return!0}return!1},D.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),wt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function wt(e){return f(e,!0)||e===36||e===95}D.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Tt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Tt(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}D.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},D.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},D.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},D.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},D.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},D.regexp_eatZero=function(e){return e.current()===48&&!jt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},D.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},D.regexp_eatControlLetter=function(e){var t=e.current();return Et(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Et(e){return e>=65&&e<=90||e>=97&&e<=122}D.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Dt(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Dt(e){return e>=0&&e<=1114111}D.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},D.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},D.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ot(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function Ot(e){return e===100||e===68||e===115||e===83||e===119||e===87}D.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},D.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){se(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},D.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},D.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;kt(t=e.current());)e.lastStringValue+=ue(t),e.advance();return e.lastStringValue!==``};function kt(e){return Et(e)||e===95}D.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;At(t=e.current());)e.lastStringValue+=ue(t),e.advance();return e.lastStringValue!==``};function At(e){return kt(e)||jt(e)}D.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},D.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},D.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},D.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Pt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},D.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},D.regexp_eatClassControlLetter=function(e){var t=e.current();return jt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},D.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},D.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;jt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function jt(e){return e>=48&&e<=57}D.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Mt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Nt(n),e.advance();return e.pos!==t};function Mt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Nt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}D.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},D.regexp_eatOctalDigit=function(e){var t=e.current();return Pt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Pt(e){return e>=48&&e<=55}D.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Mt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Nt(i),e.advance()}return!0};var Ft=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new pe(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},k=C.prototype;k.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ft(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},k.getToken=function(){return this.next(),new Ft(this)},typeof Symbol<`u`&&(k[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),k.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},k.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},k.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},k.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=te(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},k.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ee(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},k.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&ne.test(String.fromCharCode(e)))++this.pos;else break loop}}},k.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},k.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},k.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},k.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},k.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},k.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},k.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},k.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},k.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},k.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},k.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+ue(t)+`'`)},k.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+ue(e)+`'`)},k.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},k.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ct(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},k.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function It(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Lt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}k.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Lt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},k.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Lt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=It(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},k.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},k.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ee(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var Rt={};k.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Rt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},k.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Rt;this.raise(e,t)},k.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ee(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
7
+ import{G as e,H as t,K as n,L as r,N as i,O as a,P as o,V as s,W as c,Y as l,dt as u,ft as d,j as f,l as p,lt as m,nt as h,tt as g,w as _,z as v}from"./utils-D-zUiakl.js";import{n as y}from"./currencyMath-BHNabTeO.js";import{n as b,t as x}from"./lib-BstlxGQb.js";import{i as S,n as C,r as ee,t as te}from"./schemas-CVKidklE.js";import{n as ne}from"./remark-utils-CLJr2toS.js";function re(){return[n(),e(),c(),t(),s()]}var ie=m();function ae(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;return typeof n==`number`&&typeof r==`number`?t.slice(n,r):``}function oe(e,t){if(!t)return;let n=e.at(-1);n?.type===`text`?n.value+=t:e.push({type:`text`,value:t})}const se=/^([a-z][a-z\d+.-]*):/i,ce=/* @__PURE__ */ new Set([`http`,`https`,`mailto`,`tel`]);function le(e){let t=se.exec(e.replace(/[\u0000- ]/g,``))?.[1];return!t||ce.has(t.toLowerCase())}function ue(e,t){let n=ae(e,t),r=e.url.trim();return n.startsWith(`[`)&&r.length>0&&le(r)&&(/^(?:https?:\/\/|mailto:|tel:|\/|#|\.\.?\/)/i.test(r)||r.includes(`/`)||/^[^\s@]+\.[^\s]+$/u.test(r))}function de(e,t){let n=[];for(let r of e)switch(r.type){case`text`:oe(n,r.value.replace(/\n/g,` `));break;case`inlineCode`:n.push({type:`inlineCode`,value:r.value});break;case`strong`:case`emphasis`:case`delete`:n.push(Object.assign(Object.assign({},r),{children:de(r.children,t)}));break;case`link`:ue(r,t)?n.push(Object.assign(Object.assign({},r),{children:de(r.children,t)})):oe(n,ae(r,t));break;default:oe(n,ae(r,t))}return n}const fe=/[\\&*_`[\]!<>~@\0\t\n\r]|:\/\/|www\.|\s$/i;function pe(e){if(!e)return[];if(!fe.test(e))return[{type:`text`,value:e}];try{let t=`title: `,n=`${t}${e.replace(/\n/g,` `)}`,r=l(n,{extensions:[v()],mdastExtensions:[re()]}),i=r.children.length===1?r.children[0]:void 0;if(i?.type!==`paragraph`)return[{type:`text`,value:e}];let a=de(i.children,n),o=a[0];return o?.type!==`text`||!o.value.startsWith(t)?[{type:`text`,value:e}]:(o.value=o.value.slice(7),o.value||a.shift(),a)}catch{return[{type:`text`,value:e}]}}function me(e){return ne({type:`paragraph`,children:pe(e)})}function he(e){this.content=e}he.prototype={constructor:he,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new he(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new he(n)},addToStart:function(e,t){return new he([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new he(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new he(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=he.from(e),e.size?new he(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=he.from(e),e.size?new he(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=he.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},he.from=function(e){if(e instanceof he)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new he(t)};function ge(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=ge(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function _e(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=0,t=Math.min(o.text.length,s.text.length);for(;e<t&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let e=_e(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}var ve=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ge(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return _e(this,e,t,n)}findIndex(e){if(e==0)return be(0,e);if(e==this.size)return be(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?be(t+1,i):be(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return new e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};ve.empty=new ve([],0);const ye={index:0,offset:0};function be(e,t){return ye.index=e,ye.offset=t,ye}function xe(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!xe(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!xe(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var Se=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&xe(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};Se.none=[];var Ce=class extends Error{},we=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ee(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Te(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(ve.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};we.empty=new we(ve.empty,0,0);function Te(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Te(a.content,t-i-1,n-i-1)))}function Ee(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=Ee(o.content,t-a-1,n,o);return s&&e.replaceChild(i,o.copy(s))}function De(e,t,n){if(n.openStart>e.depth)throw new Ce(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Ce(`Inconsistent open depths`);return Oe(e,t,n,0)}function Oe(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=Oe(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return Ne(a,Fe(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Ne(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Ie(n,e);return Ne(a,Pe(e,i,o,t,r))}}function ke(e,t){if(!t.type.compatibleContent(e.type))throw new Ce(`Cannot join `+t.type.name+` onto `+e.type.name)}function Ae(e,t,n){let r=e.node(n);return ke(r,t.node(n)),r}function je(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Me(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(je(e.nodeAfter,r),a++));for(let e=a;e<o;e++)je(i.child(e),r);t&&t.depth==n&&t.textOffset&&je(t.nodeBefore,r)}function Ne(e,t){return e.type.checkContent(t),e.copy(t)}function Pe(e,t,n,r,i){let a=e.depth>i&&Ae(e,t,i+1),o=r.depth>i&&Ae(n,r,i+1),s=[];return Me(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(ke(a,o),je(Ne(a,Pe(e,t,n,r,i+1)),s)):(a&&je(Ne(a,Fe(e,t,i+1)),s),Me(t,n,i,s),o&&je(Ne(o,Fe(n,r,i+1)),s)),Me(r,null,i,s),new ve(s)}function Fe(e,t,n){let r=[];return Me(null,e,n,r),e.depth>n&&je(Ne(Ae(e,t,n+1),Fe(e,t,n+1)),r),Me(t,null,n,r),new ve(r)}function Ie(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(ve.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Le=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Se.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Be(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=w.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else w.set(t,r=new Re);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%ze,i}},Re=class{constructor(){this.elts=[],this.i=0}};const ze=12,w=/* @__PURE__ */ new WeakMap;var Be=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const Ve=Object.create(null);var He=class e{constructor(e,t,n,r=Se.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||ve.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&xe(this.attrs,t||e.defaultAttrs||Ve)&&Se.sameSet(this.marks,n||Se.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return we.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new we(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return De(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Le.resolveCached(this,e)}resolveNoCache(e){return Le.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),We(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=ve.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Se.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Se.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=ve.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};He.prototype.text=void 0;var Ue=class e extends He{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):We(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function We(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ge=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ke(t,n);if(r.next==null)return e.empty;let i=qe(r);r.next&&r.err(`Unexpected trailing text`);let a=tt(Qe(i));return nt(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return ve.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
8
+ `)}};Ge.empty=new Ge(!0);var Ke=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function qe(e){let t=[];do t.push(Je(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Je(e){let t=[];do t.push(Ye(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ye(e){let t=Ze(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Xe(e,t);else break;return t}function T(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Xe(e,t){let n=T(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:T(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function E(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Ze(e){if(e.eat(`(`)){let t=qe(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=E(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Qe(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function $e(e,t){return t-e}function et(e,t){let n=[];return r(t),n.sort($e);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function tt(e){let t=Object.create(null);return n(et(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);et(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ge(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort($e);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function nt(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function rt(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function it(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function at(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function ot(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new lt(e,r,t[r]);return n}var st=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=ot(e,n.attrs),this.defaultAttrs=rt(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ge.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:it(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new He(this,this.computeAttrs(e),ve.from(t),Se.setFrom(n))}createChecked(e=null,t,n){return t=ve.from(t),this.checkContent(t),new He(this,this.computeAttrs(e),t,Se.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=ve.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(ve.empty,!0);return i?new He(this,e,t.append(i),Se.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){at(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:Se.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ct(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var lt=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ct(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},ut=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ot(e,r.attrs),this.excluded=null;let i=rt(this.attrs);this.instance=i?new Se(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Se(this,it(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){at(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},dt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=he.from(e.nodes),t.marks=he.from(e.marks||{}),this.nodes=st.compile(this.spec.nodes,this),this.marks=ut.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ge.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?ft(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:ft(this,n.split(` `))}this.nodeFromJSON=e=>He.fromJSON(this,e),this.markFromJSON=e=>Se.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof st))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ue(n,n.defaultAttrs,e,Se.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function ft(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}var pt=Object.create,mt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,_t=Object.getPrototypeOf,vt=Object.prototype.hasOwnProperty,yt=(e,t)=>function(){return t||(0,e[gt(e)[0]])((t={exports:{}}).exports,t),t.exports},bt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of gt(t))!vt.call(e,i)&&i!==n&&mt(e,i,{get:()=>t[i],enumerable:!(r=ht(t,i))||r.enumerable});return e},xt=(e,t,n)=>(n=e==null?{}:pt(_t(e)),bt(t||!e||!e.__esModule?mt(n,`default`,{value:e,enumerable:!0}):n,e)),St=yt({"../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}}}),D=yt({"../../node_modules/acorn/dist/acorn.js"(e,t){(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.acorn={}))})(e,(function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239],n=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],r=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,i=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,a={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},o=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,s={5:o,"5module":o+` export import`,6:o+` const class extends export import super`},c=/^in(stanceof)?$/,l=RegExp(`[`+i+`]`),u=RegExp(`[`+i+r+`]`);function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):t!==!1&&d(e,n)}function p(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&u.test(String.fromCharCode(e)):r===!1?!1:d(e,n)||d(e,t)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),privateId:new m(`privateId`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e){return e===10||e===13||e===8232||e===8233}function ee(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(C(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var te=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ne=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,re=Object.prototype,ie=re.hasOwnProperty,ae=re.toString,oe=Object.hasOwn||(function(e,t){return ie.call(e,t)}),se=Array.isArray||(function(e){return ae.call(e)===`[object Array]`});function ce(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}function le(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var ue=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,de=function(e,t){this.line=e,this.column=t};de.prototype.offset=function(e){return new de(this.line,this.column+e)};var fe=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function pe(e,t){for(var n=1,r=0;;){var i=ee(e,r,t);if(i<0)return new de(n,t-r);++n,r=i}}var me={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},he=!1;function ge(e){var t={};for(var n in me)t[n]=e&&oe(e,n)?e[n]:me[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!he&&typeof console==`object`&&console.warn&&(he=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
9
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),se(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return se(t.onComment)&&(t.onComment=_e(t,t.onComment)),t}function _e(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new fe(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var ve=1,ye=2,be=4,xe=8,Se=16,Ce=32,we=64,Te=128,Ee=256,De=ve|ye|Ee;function Oe(e,t){return ye|(e?be:0)|(t?xe:0)}var ke=0,Ae=1,je=2,Me=3,Ne=4,Pe=5,Fe=function(e,t,n){this.options=e=ge(e),this.sourceFile=e.sourceFile,this.keywords=ce(s[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=ce(r);var i=(r?r+` `:``)+a.strict;this.reservedWordsStrict=ce(i),this.reservedWordsStrictBind=ce(i+` `+a.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
10
+ `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ve),this.regexpState=null,this.privateNameStack=[]},Ie={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Fe.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Ie.inFunction.get=function(){return(this.currentVarScope().flags&ye)>0},Ie.inGenerator.get=function(){return(this.currentVarScope().flags&xe)>0&&!this.currentVarScope().inClassFieldInit},Ie.inAsync.get=function(){return(this.currentVarScope().flags&be)>0&&!this.currentVarScope().inClassFieldInit},Ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Ee)return!1;if(t.flags&ye)return(t.flags&be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&we)>0||n||this.options.allowSuperOutsideMethod},Ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Te)>0},Ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(ye|Ee))>0||n},Ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ee)>0},Fe.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Fe.parse=function(e,t){return new this(t,e).parse()},Fe.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Fe.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Fe.prototype,Ie);var Le=Fe.prototype,Re=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Le.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ne.lastIndex=e,e+=ne.exec(this.input)[0].length;var t=Re.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){ne.lastIndex=e+t[0].length;var n=ne.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,ne.lastIndex=e,e+=ne.exec(this.input)[0].length,this.input[e]===`;`&&e++}},Le.eat=function(e){return this.type===e&&(this.next(),!0)},Le.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},Le.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Le.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},Le.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Le.expect=function(e){this.eat(e)||this.unexpected()},Le.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var ze=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Le.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Le.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Le.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var w=Fe.prototype;w.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Be={kind:`loop`},Ve={kind:`switch`};w.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;ne.lastIndex=this.pos;var t=ne.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(f(r,!0)){for(var i=n+1;p(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!c.test(a))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;ne.lastIndex=this.pos;var e=ne.exec(this.input),t=this.pos+e[0].length,n;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(p(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},w.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){ne.lastIndex=this.pos;var o=ne.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===b.name&&u.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},w.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},w.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},w.parseDoStatement=function(e){return this.next(),this.labels.push(Be),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Be),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual(`let`),o=!1,s=new ze,c=this.parseExpression(t>-1?`await`:!0,s);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Ue|(n?0:We),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},w.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Ve),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},w.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var He=[];w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();if(this.next(),this.eat(b.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?Ce:0),this.checkLValPattern(t.param,n?Ne:je),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},w.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Be),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},w.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},w.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},w.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},w.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},w.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&(!t||this.type!==b._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(b.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?Ae:je,!1)};var Ue=1,We=2,Ge=4;w.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&We&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Ue&&(e.id=t&Ge&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&We)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Ae:je:Me));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Oe(e.async,e.generator)),t&Ue||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Ue?`FunctionDeclaration`:`FunctionExpression`)},w.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raise(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Ke(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},w.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===b.parenL||o!==`method`||i||a){var l=!n.static&&qe(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},w.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===b.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&qe(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},w.parseClassField=function(e){if(qe(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&qe(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,`PropertyDefinition`)},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Ee|we);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},w.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,je,!1)):(t===!0&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];oe(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Ke(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function qe(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}w.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(b._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===b._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,Ue|Ge,!1,n)}else if(this.type===b._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type===`Literal`&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},w.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),oe(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},w.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},w.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},w.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual(`as`)?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},w.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=He,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},w.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,je),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(b.comma))return e}if(this.type===b.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLValSimple(r.local,je),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,je),e.push(this.finishNode(i,`ImportSpecifier`))}return e},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return ue.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Je=Fe.prototype;Je.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Je.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Je.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Je.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Je.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},Je.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Je.parseBindingListItem=function(e){return e},Je.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Je.checkLValSimple=function(e,t,n){t===void 0&&(t=ke);var r=t!==ke;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===je&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(oe(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Pe&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Je.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=ke),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Je.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=ke),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Ye=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},T={b_stat:new Ye(`{`,!1),b_expr:new Ye(`{`,!0),b_tmpl:new Ye("${",!1),p_stat:new Ye(`(`,!1),p_expr:new Ye(`(`,!0),q_tmpl:new Ye("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ye(`function`,!1),f_expr:new Ye(`function`,!0),f_expr_gen:new Ye(`function`,!0,!1,null,!0),f_gen:new Ye(`function`,!1,!1,null,!0)},Xe=Fe.prototype;Xe.initialContext=function(){return[T.b_stat]},Xe.curContext=function(){return this.context[this.context.length-1]},Xe.braceIsBlock=function(e){var t=this.curContext();return t===T.f_expr||t===T.f_stat?!0:e===b.colon&&(t===T.b_stat||t===T.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===T.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Xe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Xe.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Xe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===T.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?T.b_stat:T.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(T.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?T.p_stat:T.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&(e!==b.semi||this.curContext()===T.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==b.colon&&e!==b.braceL||this.curContext()!==T.b_stat)?this.context.push(T.f_expr):this.context.push(T.f_stat),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===T.q_tmpl?this.context.pop():this.context.push(T.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===T.f_expr?this.context[t]=T.f_expr_gen:this.context[t]=T.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var E=Fe.prototype;E.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},E.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},E.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ze,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},E.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},E.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},E.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},E.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},E.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&s.argument.type===`Identifier`?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Ze(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(b.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function Ze(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Ze(e.expression)}E.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},E.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},E.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):u.property=this.type===b.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new ze,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseArrowExpression(this.startNodeAt(t,n),h,!0,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===b.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},E.parseExprAtom=function(e,t){this.type===b.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),n=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(n.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(n,`Super`);case b._this:return n=this.startNode(),this.next(),this.finishNode(n,`ThisExpression`);case b.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&s.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(T.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name===`async`&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case b.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return n=this.startNode(),n.value=this.type===b._null?null:this.type===b._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,`Literal`);case b.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case b.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(n,`ArrayExpression`);case b.braceL:return this.overrideContext(T.b_expr),this.parseObj(!1,e);case b._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},E.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(e);case b.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},E.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},E.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},E.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},E.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},E.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ze,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},E.parseParenItem=function(e){return e},E.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Qe=[];E.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===b._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),e.arguments=this.eat(b.parenL)?this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):Qe,this.finishNode(e,`NewExpression`)},E.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
11
+ `),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},E.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},E.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},E.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},E.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},E.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},E.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},E.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Oe(t,r.generator)|we|(n?Te:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},E.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Oe(n,!1)|Se),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},E.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Pe),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},E.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},E.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,Ae,t?null:n)}},E.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},E.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},E.parseIdent=function(e){var t=this.startNode();return this.type===b.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!==`class`&&t.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},E.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},E.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},E.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var $e=Fe.prototype;$e.raise=function(e,t){var n=pe(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},$e.raiseRecoverable=$e.raise,$e.curPosition=function(){if(this.options.locations)return new de(this.curLine,this.pos-this.lineStart)};var et=Fe.prototype,tt=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};et.enterScope=function(e){this.scopeStack.push(new tt(e))},et.exitScope=function(){this.scopeStack.pop()},et.treatFunctionsAsVarInScope=function(e){return e.flags&ye||!this.inModule&&e.flags&ve},et.declareName=function(e,t,n){var r=!1;if(t===je){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&ve&&delete this.undefinedExports[e]}else if(t===Ne)this.currentScope().lexical.push(e);else if(t===Me){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&Ce&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&ve&&delete this.undefinedExports[e],s.flags&De)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},et.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},et.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},et.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&De)return t}},et.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&De&&!(t.flags&Se))return t}};var nt=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new fe(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},rt=Fe.prototype;rt.startNode=function(){return new nt(this,this.start,this.startLoc)},rt.startNodeAt=function(e,t){return new nt(this,e,t)};function it(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}rt.finishNode=function(e,t){return it.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},rt.finishNodeAt=function(e,t,n,r){return it.call(this,e,t,n,r)},rt.copyNode=function(e){var t=new nt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var at=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,ot=at+` Extended_Pictographic`,st=ot,ct=st+` EBase EComp EMod EPres ExtPict`,lt=ct,ut={9:at,10:ot,11:st,12:ct,13:lt,14:lt},dt=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ft=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,pt=ft+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,mt=pt+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,ht=mt+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,gt=ht+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,_t={9:ft,10:pt,11:mt,12:ht,13:gt,14:gt+` Kawi Nag_Mundari Nagm`},vt={};function yt(e){var t=vt[e]={binary:ce(ut[e]+` `+dt),nonBinary:{General_Category:ce(dt),Script:ce(_t[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var bt=0,xt=[9,10,11,12,13,14];bt<xt.length;bt+=1){var St=xt[bt];yt(St)}var D=Fe.prototype,Ct=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=vt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ct.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Ct.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ct.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ct.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ct.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ct.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ct.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ct.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},D.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},D.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},D.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},D.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},D.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},D.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},D.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},D.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},D.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},D.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},D.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},D.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},D.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},D.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},D.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},D.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},D.regexp_eatSyntaxCharacter=function(e){var t=e.current();return O(t)?(e.lastIntValue=t,e.advance(),!0):!1};function O(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}D.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!O(n);)e.advance();return e.pos!==t},D.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},D.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},D.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},D.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=le(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=le(e.lastIntValue);return!0}return!1},D.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),wt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function wt(e){return f(e,!0)||e===36||e===95}D.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Tt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Tt(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}D.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},D.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},D.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},D.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},D.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},D.regexp_eatZero=function(e){return e.current()===48&&!jt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},D.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},D.regexp_eatControlLetter=function(e){var t=e.current();return Et(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Et(e){return e>=65&&e<=90||e>=97&&e<=122}D.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Dt(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Dt(e){return e>=0&&e<=1114111}D.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},D.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},D.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ot(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function Ot(e){return e===100||e===68||e===115||e===83||e===119||e===87}D.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},D.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){oe(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},D.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},D.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;kt(t=e.current());)e.lastStringValue+=le(t),e.advance();return e.lastStringValue!==``};function kt(e){return Et(e)||e===95}D.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;At(t=e.current());)e.lastStringValue+=le(t),e.advance();return e.lastStringValue!==``};function At(e){return kt(e)||jt(e)}D.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},D.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},D.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},D.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Pt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},D.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},D.regexp_eatClassControlLetter=function(e){var t=e.current();return jt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},D.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},D.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;jt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function jt(e){return e>=48&&e<=57}D.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Mt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Nt(n),e.advance();return e.pos!==t};function Mt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Nt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}D.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},D.regexp_eatOctalDigit=function(e){var t=e.current();return Pt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Pt(e){return e>=48&&e<=55}D.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Mt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Nt(i),e.advance()}return!0};var Ft=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new fe(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},k=Fe.prototype;k.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ft(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},k.getToken=function(){return this.next(),new Ft(this)},typeof Symbol<`u`&&(k[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),k.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},k.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},k.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},k.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=ee(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},k.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},k.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&te.test(String.fromCharCode(e)))++this.pos;else break loop}}},k.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},k.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},k.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},k.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},k.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},k.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},k.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},k.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},k.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},k.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},k.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+le(t)+`'`)},k.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+le(e)+`'`)},k.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},k.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ct(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},k.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function It(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Lt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}k.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Lt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},k.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Lt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=It(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},k.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},k.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var Rt={};k.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Rt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},k.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Rt;this.raise(e,t)},k.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
12
12
  `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},k.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},k.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
13
- `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ue(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return ee(t)?``:String.fromCharCode(t)}},k.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},k.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=ue(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},k.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var zt=`8.8.2`;C.acorn={Parser:C,version:zt,defaultOptions:he,Position:fe,SourceLocation:pe,getLineInfo:me,Node:nt,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:Ye,tokContexts:T,isIdentifierChar:p,isIdentifierStart:f,Token:Ft,isNewLine:ee,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:ne};function Bt(e,t){return C.parse(e,t)}function Vt(e,t,n){return C.parseExpressionAt(e,t,n)}function Ht(e,t){return C.tokenizer(e,t)}e.Node=nt,e.Parser=C,e.Position=fe,e.SourceLocation=pe,e.TokContext=Ye,e.Token=Ft,e.TokenType=m,e.defaultOptions=he,e.getLineInfo=me,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=ee,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=ne,e.parse=Bt,e.parseExpressionAt=Vt,e.tokContexts=T,e.tokTypes=b,e.tokenizer=Ht,e.version=zt}))}}),Ct=yt({"../../node_modules/acorn-jsx/index.js"(e,t){var n=St(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=/* @__PURE__ */ new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return o(D()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||D(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`&gt;`:`&rbrace;`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
13
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return le(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return C(t)?``:String.fromCharCode(t)}},k.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},k.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=le(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},k.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var zt=`8.8.2`;Fe.acorn={Parser:Fe,version:zt,defaultOptions:me,Position:de,SourceLocation:fe,getLineInfo:pe,Node:nt,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:Ye,tokContexts:T,isIdentifierChar:p,isIdentifierStart:f,Token:Ft,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:te};function Bt(e,t){return Fe.parse(e,t)}function Vt(e,t,n){return Fe.parseExpressionAt(e,t,n)}function Ht(e,t){return Fe.tokenizer(e,t)}e.Node=nt,e.Parser=Fe,e.Position=de,e.SourceLocation=fe,e.TokContext=Ye,e.Token=Ft,e.TokenType=m,e.defaultOptions=me,e.getLineInfo=pe,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=te,e.parse=Bt,e.parseExpressionAt=Vt,e.tokContexts=T,e.tokTypes=b,e.tokenizer=Ht,e.version=zt}))}}),Ct=yt({"../../node_modules/acorn-jsx/index.js"(e,t){var n=St(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=/* @__PURE__ */ new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return o(D()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||D(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`&gt;`:`&rbrace;`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
14
14
  `:`\r
15
- `):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}}),O={callout:`Callout`,accordion:`Accordion`,accordionGroup:`AccordionGroup`,accordionTitle:`AccordionTitle`,accordionBody:`AccordionBody`,card:`Card`,cardTitle:`CardTitle`,cardBody:`CardBody`,columns:`Columns`,column:`Column`,update:`Update`,tab:`Tab`,tabs:`Tabs`,step:`Step`,stepTitle:`StepTitle`,stepBody:`StepBody`,steps:`Steps`,icon:`Icon`,codeBlock:`CodeBlock`,codeGroup:`CodeGroup`,frame:`Frame`,paramField:`ParamField`,responseField:`ResponseField`,requestExample:`RequestExample`,responseExample:`ResponseExample`,expandable:`Expandable`,customComponent:`CustomComponent`,staticHTML:`StaticHTML`,inlineStaticHTML:`InlineStaticHTML`,image:`Image`,inlineImage:`InlineImage`,video:`Video`,unknownTag:`UnknownTag`,inlineUnknownTag:`InlineUnknownTag`,mdxJsEsm:`MdxJsEsm`,inlineMath:`InlineMath`,blockMath:`BlockMath`,badge:`Badge`,tooltip:`Tooltip`,mermaidBlock:`MermaidBlock`,promptBlock:`PromptBlock`,promptDescription:`PromptDescription`,color:`Color`,tree:`Tree`,visibility:`Visibility`,database:`Database`},wt=[`Info`,`Check`,`Note`,`Tip`,`Warning`,`Danger`,`Callout`],Tt=/* @__PURE__ */ new Set(/* @__PURE__ */ `a.b.br.button.div.form.h1.h2.h3.h4.head.iframe.img.input.label.li.link.ol.p.path.picture.script.section.source.span.svg.table.tbody.td.th.thead.tr.ul.code.pre.zapier-zap-templates.kbd`.split(`.`)),Et=/* @__PURE__ */ new Set(/* @__PURE__ */ `Accordion.AccordionGroup.Badge.Heading.Card.CardGroup.Callout.Color.Panel.Tree.View.Tile.Column.Columns.Check.CodeGroup.CodeBlock.CustomCode.CustomComponent.DynamicCustomComponent.Expandable.Frame.Info.Icon.Link.MDXContentController.Note.ParamField.RequestExample.ResponseExample.ResponseField.Step.Steps.Tab.Tabs.Tip.Danger.Tooltip.SnippetGroup.Warning.Latex.Update.ZoomImage.Prompt.Mermaid`.split(`.`)),Dt=/* @__PURE__ */ new Set([`Badge`,`Icon`,`Tooltip`]),Ot=`commentThreadIds`,kt=/* @__PURE__ */ new Set([Ot,`__childIndex`,`__isLastInGroup`,`__hasGroupParent`,`__isHidden`,`__editorOpen`]),At=/* @__PURE__ */ new Set([`mdxJsxNode`,`mdastNode`]),jt=/* @__PURE__ */ new Set([Ot,`__isHidden`,`__hasGroupParent`,`__childIndex`,`__isLastInGroup`,`__expressionAttributes`,`__namedExpressionAttributes`,`__editorOpen`,`__mintlifyExtraAttrs`,`__jsxImage`,`__closingTag`]),Mt=`__jsxImage`,Nt=`__closingTag`,Pt={left:`mr-auto`,center:`mx-auto`,right:`ml-auto`},Ft=`bottom-right`,k=`text`,It=`bottom-right`,Lt=`Font Awesome, Lucide or Tabler icon name, URL, path to an icon file, or SVG code.`,Rt=`Font Awesome icon style. Ignored for other icon libraries.`,zt=`#FF6B6B`,Bt=`https://example.com/page`,Vt=[`gray`,`blue`,`green`,`orange`,`yellow`,`red`,`purple`,`white`,`surface`,`white-destructive`,`surface-destructive`],Ht=[`rounded`,`pill`],Ut=[`xs`,`sm`,`md`,`lg`],Wt=[`info`,`warning`,`note`,`tip`,`check`,`danger`],Gt=[{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`stepNumber`,type:`number`,placeholder:`1`},{name:`titleSize`,type:`string`},{name:`isLast`,type:`boolean`}],Kt=[{name:`type`,type:`string`,options:Wt,description:`Callout-style theme for the background, border and default icon.`},{name:`color`,type:`string`,placeholder:zt,description:`Color of the card icon.`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`horizontal`,type:`boolean`,description:`Compact horizontal layout.`},{name:`href`,type:`string`,placeholder:Bt},{name:`img`,type:`string`,placeholder:`/images/hero.png`,description:`Shown at the top of the card.`},{name:`cta`,type:`string`,placeholder:`Learn more`}],qt=[{name:`cols`,type:`number`}],Jt=[{name:`description`,type:`string`,placeholder:`Shown below the title`},{name:`defaultOpen`,type:`boolean`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt}],Yt=[{name:`type`,type:`string`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`color`,type:`string`,placeholder:`#FFC107`,description:`Border, background tint and text color.`}],Xt=[{name:`title`,type:`string`,required:!0,placeholder:`macOS`,description:`Tabs with matching titles sync their selection.`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt}],Zt=[{name:`defaultTabIndex`,type:`number`,placeholder:`0`,description:`Zero-based index of the tab shown on page load.`}],Qt=[{name:`color`,type:`string`,default:`gray`,options:Vt},{name:`size`,type:`string`,default:`md`,options:Ut},{name:`shape`,type:`string`,default:`rounded`,options:Ht},{name:`stroke`,type:`boolean`,default:!1,description:`Outline instead of a filled background.`},{name:`disabled`,type:`boolean`,default:!1},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt}],$t=[{name:`tip`,type:`string`,default:``,required:!0,placeholder:`Application Programming Interface`},{name:`headline`,type:`string`,default:``,placeholder:`Did you know?`,description:`Shown above the tip text.`},{name:`cta`,type:`string`,default:``,placeholder:`Learn more`},{name:`href`,type:`string`,default:``,placeholder:Bt,description:`Required when a call to action is set.`}],en=[{name:`caption`,type:`string`,placeholder:`Figure 1: request flow`,description:`Centered below the content. Supports Markdown.`}],tn=[{name:`title`,type:`string`,required:!0,placeholder:`user`},{name:`defaultOpen`,type:`boolean`}],nn=[{name:`for`,type:`string`,required:!0,options:[`humans`,`agents`,`signed-in`,`signed-out`],description:`Humans: visible on the web, excluded from Markdown output. Agents: hidden on the web, included in Markdown output. Signed in / signed out: shown on the web by login state; signed-in content is excluded from Markdown output. { groups: [...] }: shown to signed-in users in any listed group. { groups: { excludes: [...] } }: hidden from users in any excluded group.`}],rn=[`table`,`board`,`calendar`],an=[{name:`id`,type:`string`,required:!0,placeholder:`00000000-0000-0000-0000-000000000000`,description:`UUID of the database.`},{name:`view`,type:`string`,options:rn,description:`Table, board or calendar. Omitted or unknown means table.`},{name:`sort`,type:`string`,placeholder:`-Due, Name`,description:`Comma-separated property names. A leading - sorts descending.`},{name:`filter`,type:`string`,placeholder:`Status != "Done" and Points > 3`,description:`Formula that keeps the rows it is true for.`},{name:`groupBy`,type:`string`,placeholder:`Status`,description:`Property name to group rows by.`},{name:`calendarBy`,type:`string`,placeholder:`Launch date`,description:`Date property that places rows on the calendar.`},{name:`sql`,type:`string`,placeholder:`SELECT * FROM roadmap LIMIT 50`,description:`A read-only SQL query. When set, the block shows its results instead of the view.`}],on=[{name:`label`,type:`string`,required:!0,placeholder:`v1.2.0`,description:`Shown next to the update and used as its anchor link. Keep labels unique.`},{name:`tags`,type:`expression`,placeholder:`["feature", "fix"]`,description:`Shown as filters in the side panel.`},{name:`description`,type:`string`,placeholder:`Short summary of the update`},{name:`rss`,type:`expression`,description:`Creates a single RSS feed entry with a custom title and description.`}],sn=[{name:`name`,type:`string`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`color`,type:`string`,placeholder:zt},{name:`size`,type:`number`,placeholder:`16`,description:`In pixels.`}],cn=[{name:`language`,type:`string`,placeholder:`typescript`},{name:`filename`,type:`string`,placeholder:`index.ts`},{name:`filenameSyntax`,type:`string`},{name:`expandable`,type:`boolean`},{name:`icon`,type:`expression`,description:Lt},{name:`lang`,type:`string`},{name:`lines`,type:`boolean`,description:`Show line numbers.`},{name:`wrap`,type:`boolean`,description:`Wrap long lines.`},{name:`highlight`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to highlight.`},{name:`focus`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to focus on.`},{name:`add`,type:`expression`},{name:`remove`,type:`expression`},{name:`twoslash`,type:`boolean`,description:`Interactive type information for JavaScript and TypeScript.`},{name:`nocopy`,type:`boolean`}],ln=[{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`actions`,type:`expression`,default:[`copy`],placeholder:`["copy", "cursor"]`,description:`Available actions: copy (clipboard) and cursor (open in Cursor).`}],un=[{name:`placement`,type:`string`,default:It,placeholder:It,description:`Position of the controls: top-left, top-right, bottom-left or bottom-right.`},{name:`actions`,type:`boolean`,description:`Force the controls on or off. By default they appear when the diagram is taller than 120px.`}],dn=[{name:`query`,type:`string`,placeholder:`limit`},{name:`path`,type:`string`,placeholder:`userId`},{name:`body`,type:`string`,placeholder:`email`},{name:`header`,type:`string`,placeholder:`Authorization`},{name:`default`,type:`string`,placeholder:`10`,description:`Used when the request value is empty.`},{name:`type`,type:`string`,placeholder:`string`,description:`number, string, boolean or object. Arrays use the [] suffix, for example string[].`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`},{name:`placeholder`,type:`string`,placeholder:`sk_live_...`,description:`Shown in the API playground input.`}],fn=[{name:`name`,type:`string`,required:!0,placeholder:`id`},{name:`type`,type:`string`,placeholder:`string`},{name:`default`,type:`string`,placeholder:`null`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`}];function pn(e){return`default`in e?e.default:null}function mn(e){return Object.fromEntries(e.map(e=>[e.name,{default:pn(e)}]))}function hn(e){return Object.fromEntries(e.map(e=>[e.name,pn(e)]))}function A(e){let t={};for(let[n,r]of Object.entries(e))t[n]={default:r};return t}var j={__isHidden:null,__hasGroupParent:null,__childIndex:null,__isLastInGroup:null,__mintlifyExtraAttrs:null},gn={doc:{content:`block*`},text:{group:`inline`},paragraph:{content:`inline*`,group:`block`},heading:{content:`inline*`,group:`block`,attrs:A({level:1,customId:null})},blockquote:{content:`block*`,group:`block`},bulletList:{content:`listItem*`,group:`block`},orderedList:{content:`listItem*`,group:`block`,attrs:A({start:1})},listItem:{content:`block*`,attrs:A({checked:null})},hardBreak:{group:`inline`,inline:!0},horizontalRule:{group:`block`},table:{content:`tableRow*`,group:`block`},tableRow:{content:`(tableHeader | tableCell)*`},tableHeader:{content:`block*`,attrs:A({align:null,colwidth:null})},tableCell:{content:`block*`,attrs:A({align:null,colwidth:null})},[O.codeBlock]:{content:`text*`,group:`block`,code:!0,attrs:Object.assign(Object.assign({},mn(cn)),A(Object.assign({__isMermaidChild:null,__isPromptChild:null},j)))},[O.codeGroup]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.callout]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(Yt)),A(j))},[O.accordion]:{content:`${O.accordionTitle} ${O.accordionBody}`,group:`block`,attrs:Object.assign(Object.assign({},mn(Jt)),A(j))},[O.accordionGroup]:{content:`(${O.accordion} | block)*`,group:`block`,attrs:A(Object.assign({},j))},[O.accordionTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.accordionBody]:{content:`block*`,isolating:!0},[O.card]:{content:`${O.cardTitle} ${O.cardBody}`,group:`block`,attrs:Object.assign(Object.assign({},mn(Kt)),A(j))},[O.cardTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.cardBody]:{content:`block*`,isolating:!0},[O.columns]:{content:`(${O.card} | ${O.column} | block)*`,group:`block`,attrs:Object.assign(Object.assign({},mn(qt)),A(j))},[O.column]:{content:`block*`,isolating:!0},[O.update]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(on)),A(j))},[O.tab]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(Xt)),A(j))},[O.tabs]:{content:`${O.tab}*`,group:`block`,attrs:Object.assign(Object.assign({},mn(Zt)),A(j))},[O.step]:{content:`${O.stepTitle} ${O.stepBody}`,group:`block`,attrs:Object.assign(Object.assign({},mn(Gt)),A(j))},[O.stepTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.stepBody]:{content:`block*`,isolating:!0},[O.steps]:{content:`${O.step}*`,group:`block`,attrs:A(Object.assign({},j))},[O.frame]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(en)),A(j))},[O.icon]:{group:`inline`,inline:!0,atom:!0,attrs:Object.assign(Object.assign({},mn(sn)),A(j))},[O.badge]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},mn(Qt)),A(j))},[O.tooltip]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},mn($t)),A(Object.assign({isNewlyCreated:null},j)))},[O.image]:{group:`block`,atom:!0,attrs:A(Object.assign({imgAttributes:null,lightSrc:null,darkSrc:null,width:null,align:null},j))},[O.inlineImage]:{group:`inline`,inline:!0,atom:!0,attrs:A(Object.assign({imgAttributes:null,width:null,height:null},j))},[O.video]:{group:`block`,atom:!0,attrs:A(Object.assign({videoAttributes:null,sources:null,width:null},j))},[O.staticHTML]:{content:`block*`,group:`block`,attrs:A({tagName:`div`,attributes:null,mdxJsxNode:null})},[O.inlineStaticHTML]:{content:`inline*`,group:`inline`,inline:!0,attrs:A({tagName:`span`,attributes:null,mdxJsxNode:null})},[O.unknownTag]:{group:`block`,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.inlineUnknownTag]:{group:`inline`,inline:!0,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.mdxJsEsm]:{group:`block`,atom:!0,attrs:A({mdastNode:null})},[O.inlineMath]:{group:`inline`,inline:!0,atom:!0,attrs:A({expression:null})},[O.blockMath]:{group:`block`,atom:!0,attrs:A({expression:null})},[O.mermaidBlock]:{content:O.codeBlock,group:`block`,attrs:Object.assign(Object.assign({},mn(un)),A(j))},[O.promptBlock]:{content:`${O.promptDescription} ${O.codeBlock}`,group:`block`,attrs:Object.assign(Object.assign({},mn(ln)),A(j))},[O.promptDescription]:{content:`block*`,isolating:!0},[O.expandable]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(tn)),A(j))},[O.visibility]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(nn)),A(j))},[O.paramField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(dn)),A(j))},[O.responseField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(fn)),A(j))},[O.requestExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.responseExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.customComponent]:{content:`block*`,group:`block`,attrs:A(Object.assign({name:null,attributes:null},j))},[O.color]:{group:`block`,atom:!0,attrs:A(Object.assign({variant:null,colorData:[]},j))},[O.tree]:{group:`block`,atom:!0,attrs:A(Object.assign({treeData:[]},j))},[O.database]:{group:`block`,atom:!0,attrs:Object.assign(Object.assign({},mn(an)),A(j))}},_n={bold:{},italic:{},strike:{},code:{},link:{attrs:A({href:null,title:null,referenceLabel:null,mdxLinkAttributes:null,mdxLinkId:null})},underline:{},subscript:{},superscript:{},kbd:{}};function vn(e,t){return e!==`doc`&&!t.inline&&t.group!==`inline`}function yn(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,vn(e,t)?Object.assign(Object.assign({},t),{attrs:Object.assign(Object.assign({},t.attrs),{[Ot]:{default:null}})}):t]))}var bn=new dt({nodes:yn(gn),marks:_n});function xn(e){return new dt({nodes:yn(Object.assign(Object.assign({},gn),e?.nodes)),marks:Object.assign(Object.assign({},_n),e?.marks)})}var Sn=`table`,Cn=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,wn=e=>typeof e==`string`&&Cn.test(e),Tn=e=>rn.some(t=>t===e),En=e=>Tn(e)?e:Sn,Dn=`sql`,On=Symbol(`invalid-database-sql`),kn=/&(?=#?[A-Za-z0-9]+;)|<(?=[A-Za-z/!?])|[`~\0\r\n]/,An=/[\\`~\0\r\n]|\$\{|<(?=!|\/|MDX)/g,jn={"\\":`\\\\`,"`":"\\`","~":`\\x7E`,"\0":`\\x00`,"\r":`\\r`,"\n":`\\n`,"${":"\\${","<":`\\x3C`},Mn=e=>{if(!kn.test(e)){if(!e.includes(`"`))return`${Dn}="${e}"`;if(!e.includes(`'`))return`${Dn}='${e}'`}return`${Dn}={\`${e.replace(An,e=>jn[e]??e)}\`}`},Nn=e=>e.type===`mdxJsxAttribute`&&e.name===Dn,Pn=e=>{let{value:t}=e;if(typeof t==`string`)return t;let n=(t?.data?.estree)?.body[0];if(n?.type!==`ExpressionStatement`)return null;let{expression:r}=n;return r.type===`Literal`?typeof r.value==`string`?r.value:null:r.type!==`TemplateLiteral`||r.expressions.length>0?null:r.quasis[0]?.value.cooked??null},Fn=e=>{let t=e.filter(Nn),[n]=t;return n?t.length>1?On:Pn(n)??On:null},In=e=>e.filter(e=>!Nn(e));function Ln(e){return typeof e==`string`?e.split(` `).filter(Boolean):[]}function Rn(e){let t=[...new Set(e.filter(Boolean))];return t.length>0?t.join(` `):null}var zn=/* @__PURE__ */ new Set([O.staticHTML,O.inlineStaticHTML]);function Bn(e,t){return!t||e===`svg`}function Vn(e){let t=[],n=(e,r,i)=>{let a=zn.has(e.type.name)&&e.attrs.mdxJsxNode!=null;a&&i&&!Bn(e.attrs.tagName,!0)&&t.push(r),e.forEach((e,t)=>n(e,r+1+t,i||a))};return e.forEach((e,t)=>n(e,t,!1)),t}function Hn(e){try{let t=(0,ae.parse)(e);if(t&&typeof t==`object`&&!Array.isArray(t))return t}catch{}return{}}function Un(e){let t=e.children.find(e=>e.type===`yaml`);return!t||!(`value`in t)?{}:Hn(t.value)}function Wn(e,t=[]){return e?Object.assign({type:`text`,text:e},t.length>0&&{marks:t}):{type:`text`,text:``}}function Gn(e){if(!e)return{text:``,marks:[]};if(e.type===`text`||e.type===`inlineCode`)return{text:(`value`in e?e.value:``)||``,marks:Kn(e)};if(`children`in e&&Array.isArray(e.children)){let t=``,n=Kn(e);for(let r of e.children){let{text:e,marks:i}=Gn(r);t+=e,n.push(...i)}return{text:t,marks:n}}return{text:``,marks:[]}}function Kn(e){let t=[];if(!e)return t;switch(e.type){case`link`:t.push({type:`link`,attrs:{href:e.url,title:e.title||void 0}});break;case`inlineCode`:t.push({type:`code`});break;case`emphasis`:t.push({type:`italic`});break;case`strong`:t.push({type:`bold`});break;case`delete`:t.push({type:`strike`});break;case`mdxJsxTextElement`:e.name===`u`?t.push({type:`underline`}):e.name===`sub`?t.push({type:`subscript`}):e.name===`sup`&&t.push({type:`superscript`})}return t}function qn(e,t){return t.nodes[e.type]?.isInline===!0}function Jn(e,t){let n=[],r=[],i=()=>{r.length!==0&&(n.push({type:`paragraph`,content:r}),r=[])};for(let a of e)qn(a,t)?r.push(a):(i(),n.push(a));return i(),n}function Yn(e,t){return Bn(e.name,t.hasStaticHtmlParent===!0)?e:null}var Xn={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,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:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,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:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,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:`
15
+ `):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}}),O={callout:`Callout`,accordion:`Accordion`,accordionGroup:`AccordionGroup`,accordionTitle:`AccordionTitle`,accordionBody:`AccordionBody`,card:`Card`,cardTitle:`CardTitle`,cardBody:`CardBody`,columns:`Columns`,column:`Column`,update:`Update`,tab:`Tab`,tabs:`Tabs`,step:`Step`,stepTitle:`StepTitle`,stepBody:`StepBody`,steps:`Steps`,icon:`Icon`,codeBlock:`CodeBlock`,codeGroup:`CodeGroup`,frame:`Frame`,paramField:`ParamField`,responseField:`ResponseField`,requestExample:`RequestExample`,responseExample:`ResponseExample`,expandable:`Expandable`,customComponent:`CustomComponent`,staticHTML:`StaticHTML`,inlineStaticHTML:`InlineStaticHTML`,image:`Image`,inlineImage:`InlineImage`,video:`Video`,unknownTag:`UnknownTag`,inlineUnknownTag:`InlineUnknownTag`,mdxJsEsm:`MdxJsEsm`,inlineMath:`InlineMath`,blockMath:`BlockMath`,badge:`Badge`,tooltip:`Tooltip`,mermaidBlock:`MermaidBlock`,promptBlock:`PromptBlock`,promptDescription:`PromptDescription`,color:`Color`,tree:`Tree`,visibility:`Visibility`,database:`Database`},wt=[`Info`,`Check`,`Note`,`Tip`,`Warning`,`Danger`,`Callout`],Tt=/* @__PURE__ */ new Set(/* @__PURE__ */ `a.b.br.button.div.form.h1.h2.h3.h4.head.iframe.img.input.label.li.link.ol.p.path.picture.script.section.source.span.svg.table.tbody.td.th.thead.tr.ul.code.pre.zapier-zap-templates.kbd`.split(`.`)),Et=/* @__PURE__ */ new Set(/* @__PURE__ */ `Accordion.AccordionGroup.Badge.Heading.Card.CardGroup.Callout.Color.Panel.Tree.View.Tile.Column.Columns.Check.CodeGroup.CodeBlock.CustomCode.CustomComponent.DynamicCustomComponent.Expandable.Frame.Info.Icon.Link.MDXContentController.Note.ParamField.RequestExample.ResponseExample.ResponseField.Step.Steps.Tab.Tabs.Tip.Danger.Tooltip.SnippetGroup.Warning.Latex.Update.ZoomImage.Prompt.Mermaid`.split(`.`)),Dt=/* @__PURE__ */ new Set([`Badge`,`Icon`,`Tooltip`]),Ot=`commentThreadIds`,kt=/* @__PURE__ */ new Set([Ot,`__childIndex`,`__isLastInGroup`,`__hasGroupParent`,`__isHidden`,`__editorOpen`]),At=/* @__PURE__ */ new Set([`mdxJsxNode`,`mdastNode`]),jt=/* @__PURE__ */ new Set([Ot,`__isHidden`,`__hasGroupParent`,`__childIndex`,`__isLastInGroup`,`__expressionAttributes`,`__namedExpressionAttributes`,`__editorOpen`,`__mintlifyExtraAttrs`,`__jsxImage`,`__closingTag`]),Mt=`__jsxImage`,Nt=`__closingTag`,Pt={left:`mr-auto`,center:`mx-auto`,right:`ml-auto`},Ft=`bottom-right`,k=`text`,It=`bottom-right`,Lt=`Font Awesome, Lucide or Tabler icon name, URL, path to an icon file, or SVG code.`,Rt=`Font Awesome icon style. Ignored for other icon libraries.`,zt=`#FF6B6B`,Bt=`https://example.com/page`,Vt=[`gray`,`blue`,`green`,`orange`,`yellow`,`red`,`purple`,`white`,`surface`,`white-destructive`,`surface-destructive`],Ht=[`rounded`,`pill`],Ut=[`xs`,`sm`,`md`,`lg`],Wt=[`info`,`warning`,`note`,`tip`,`check`,`danger`],Gt=[{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`stepNumber`,type:`number`,placeholder:`1`},{name:`titleSize`,type:`string`},{name:`isLast`,type:`boolean`}],Kt=[{name:`type`,type:`string`,options:Wt,description:`Callout-style theme for the background, border and default icon.`},{name:`color`,type:`string`,placeholder:zt,description:`Color of the card icon.`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`horizontal`,type:`boolean`,description:`Compact horizontal layout.`},{name:`href`,type:`string`,placeholder:Bt},{name:`img`,type:`string`,placeholder:`/images/hero.png`,description:`Shown at the top of the card.`},{name:`cta`,type:`string`,placeholder:`Learn more`}],qt=[{name:`cols`,type:`number`}],Jt=[{name:`description`,type:`string`,placeholder:`Shown below the title`},{name:`defaultOpen`,type:`boolean`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt}],Yt=[{name:`type`,type:`string`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`color`,type:`string`,placeholder:`#FFC107`,description:`Border, background tint and text color.`}],Xt=[{name:`title`,type:`string`,required:!0,placeholder:`macOS`,description:`Tabs with matching titles sync their selection.`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt}],Zt=[{name:`defaultTabIndex`,type:`number`,placeholder:`0`,description:`Zero-based index of the tab shown on page load.`}],Qt=[{name:`color`,type:`string`,default:`gray`,options:Vt},{name:`size`,type:`string`,default:`md`,options:Ut},{name:`shape`,type:`string`,default:`rounded`,options:Ht},{name:`stroke`,type:`boolean`,default:!1,description:`Outline instead of a filled background.`},{name:`disabled`,type:`boolean`,default:!1},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt}],$t=[{name:`tip`,type:`string`,default:``,required:!0,placeholder:`Application Programming Interface`},{name:`headline`,type:`string`,default:``,placeholder:`Did you know?`,description:`Shown above the tip text.`},{name:`cta`,type:`string`,default:``,placeholder:`Learn more`},{name:`href`,type:`string`,default:``,placeholder:Bt,description:`Required when a call to action is set.`}],en=[{name:`caption`,type:`string`,placeholder:`Figure 1: request flow`,description:`Centered below the content. Supports Markdown.`}],tn=[{name:`title`,type:`string`,required:!0,placeholder:`user`},{name:`defaultOpen`,type:`boolean`}],nn=[{name:`for`,type:`string`,required:!0,options:[`humans`,`agents`,`signed-in`,`signed-out`],description:`Humans: visible on the web, excluded from Markdown output. Agents: hidden on the web, included in Markdown output. Signed in / signed out: shown on the web by login state; signed-in content is excluded from Markdown output. { groups: [...] }: shown to signed-in users in any listed group. { groups: { excludes: [...] } }: hidden from users in any excluded group.`}],rn=[`table`,`board`,`calendar`],an=[{name:`id`,type:`string`,required:!0,placeholder:`00000000-0000-0000-0000-000000000000`,description:`UUID of the database.`},{name:`view`,type:`string`,options:rn,description:`Table, board or calendar. Omitted or unknown means table.`},{name:`sort`,type:`string`,placeholder:`-Due, Name`,description:`Comma-separated property names. A leading - sorts descending.`},{name:`filter`,type:`string`,placeholder:`Status != "Done" and Points > 3`,description:`Formula that keeps the rows it is true for.`},{name:`groupBy`,type:`string`,placeholder:`Status`,description:`Property name to group rows by.`},{name:`calendarBy`,type:`string`,placeholder:`Launch date`,description:`Date property that places rows on the calendar.`},{name:`sql`,type:`string`,placeholder:`SELECT * FROM roadmap LIMIT 50`,description:`A read-only SQL query. When set, the block shows its results instead of the view.`}],on=[{name:`label`,type:`string`,required:!0,placeholder:`v1.2.0`,description:`Shown next to the update and used as its anchor link. Keep labels unique.`},{name:`tags`,type:`expression`,placeholder:`["feature", "fix"]`,description:`Shown as filters in the side panel.`},{name:`description`,type:`string`,placeholder:`Short summary of the update`},{name:`rss`,type:`expression`,description:`Creates a single RSS feed entry with a custom title and description.`}],sn=[{name:`name`,type:`string`},{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`color`,type:`string`,placeholder:zt},{name:`size`,type:`number`,placeholder:`16`,description:`In pixels.`}],cn=[{name:`language`,type:`string`,placeholder:`typescript`},{name:`filename`,type:`string`,placeholder:`index.ts`},{name:`filenameSyntax`,type:`string`},{name:`expandable`,type:`boolean`},{name:`icon`,type:`expression`,description:Lt},{name:`lang`,type:`string`},{name:`lines`,type:`boolean`,description:`Show line numbers.`},{name:`wrap`,type:`boolean`,description:`Wrap long lines.`},{name:`highlight`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to highlight.`},{name:`focus`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to focus on.`},{name:`add`,type:`expression`},{name:`remove`,type:`expression`},{name:`twoslash`,type:`boolean`,description:`Interactive type information for JavaScript and TypeScript.`},{name:`nocopy`,type:`boolean`}],ln=[{name:`icon`,type:`expression`,description:Lt},{name:`iconType`,type:`string`,description:Rt},{name:`actions`,type:`expression`,default:[`copy`],placeholder:`["copy", "cursor"]`,description:`Available actions: copy (clipboard) and cursor (open in Cursor).`}],un=[{name:`placement`,type:`string`,default:It,placeholder:It,description:`Position of the controls: top-left, top-right, bottom-left or bottom-right.`},{name:`actions`,type:`boolean`,description:`Force the controls on or off. By default they appear when the diagram is taller than 120px.`}],dn=[{name:`query`,type:`string`,placeholder:`limit`},{name:`path`,type:`string`,placeholder:`userId`},{name:`body`,type:`string`,placeholder:`email`},{name:`header`,type:`string`,placeholder:`Authorization`},{name:`default`,type:`string`,placeholder:`10`,description:`Used when the request value is empty.`},{name:`type`,type:`string`,placeholder:`string`,description:`number, string, boolean or object. Arrays use the [] suffix, for example string[].`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`},{name:`placeholder`,type:`string`,placeholder:`sk_live_...`,description:`Shown in the API playground input.`}],fn=[{name:`name`,type:`string`,required:!0,placeholder:`id`},{name:`type`,type:`string`,placeholder:`string`},{name:`default`,type:`string`,placeholder:`null`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`}];function pn(e){return`default`in e?e.default:null}function mn(e){return Object.fromEntries(e.map(e=>[e.name,{default:pn(e)}]))}function hn(e){return Object.fromEntries(e.map(e=>[e.name,pn(e)]))}function A(e){let t={};for(let[n,r]of Object.entries(e))t[n]={default:r};return t}var j={__isHidden:null,__hasGroupParent:null,__childIndex:null,__isLastInGroup:null,__mintlifyExtraAttrs:null},gn={doc:{content:`block*`},text:{group:`inline`},paragraph:{content:`inline*`,group:`block`},heading:{content:`inline*`,group:`block`,attrs:A({level:1,customId:null})},blockquote:{content:`block*`,group:`block`},bulletList:{content:`listItem*`,group:`block`},orderedList:{content:`listItem*`,group:`block`,attrs:A({start:1})},listItem:{content:`block*`,attrs:A({checked:null})},hardBreak:{group:`inline`,inline:!0},horizontalRule:{group:`block`},table:{content:`tableRow*`,group:`block`},tableRow:{content:`(tableHeader | tableCell)*`},tableHeader:{content:`block*`,attrs:A({align:null,colwidth:null})},tableCell:{content:`block*`,attrs:A({align:null,colwidth:null})},[O.codeBlock]:{content:`text*`,group:`block`,code:!0,attrs:Object.assign(Object.assign({},mn(cn)),A(Object.assign({__isMermaidChild:null,__isPromptChild:null},j)))},[O.codeGroup]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.callout]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(Yt)),A(j))},[O.accordion]:{content:`${O.accordionTitle} ${O.accordionBody}`,group:`block`,attrs:Object.assign(Object.assign({},mn(Jt)),A(j))},[O.accordionGroup]:{content:`(${O.accordion} | block)*`,group:`block`,attrs:A(Object.assign({},j))},[O.accordionTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.accordionBody]:{content:`block*`,isolating:!0},[O.card]:{content:`${O.cardTitle} ${O.cardBody}`,group:`block`,attrs:Object.assign(Object.assign({},mn(Kt)),A(j))},[O.cardTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.cardBody]:{content:`block*`,isolating:!0},[O.columns]:{content:`(${O.card} | ${O.column} | block)*`,group:`block`,attrs:Object.assign(Object.assign({},mn(qt)),A(j))},[O.column]:{content:`block*`,isolating:!0},[O.update]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(on)),A(j))},[O.tab]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(Xt)),A(j))},[O.tabs]:{content:`${O.tab}*`,group:`block`,attrs:Object.assign(Object.assign({},mn(Zt)),A(j))},[O.step]:{content:`${O.stepTitle} ${O.stepBody}`,group:`block`,attrs:Object.assign(Object.assign({},mn(Gt)),A(j))},[O.stepTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.stepBody]:{content:`block*`,isolating:!0},[O.steps]:{content:`${O.step}*`,group:`block`,attrs:A(Object.assign({},j))},[O.frame]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(en)),A(j))},[O.icon]:{group:`inline`,inline:!0,atom:!0,attrs:Object.assign(Object.assign({},mn(sn)),A(j))},[O.badge]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},mn(Qt)),A(j))},[O.tooltip]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},mn($t)),A(Object.assign({isNewlyCreated:null},j)))},[O.image]:{group:`block`,atom:!0,attrs:A(Object.assign({imgAttributes:null,lightSrc:null,darkSrc:null,width:null,align:null},j))},[O.inlineImage]:{group:`inline`,inline:!0,atom:!0,attrs:A(Object.assign({imgAttributes:null,width:null,height:null},j))},[O.video]:{group:`block`,atom:!0,attrs:A(Object.assign({videoAttributes:null,sources:null,width:null},j))},[O.staticHTML]:{content:`block*`,group:`block`,attrs:A({tagName:`div`,attributes:null,mdxJsxNode:null})},[O.inlineStaticHTML]:{content:`inline*`,group:`inline`,inline:!0,attrs:A({tagName:`span`,attributes:null,mdxJsxNode:null})},[O.unknownTag]:{group:`block`,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.inlineUnknownTag]:{group:`inline`,inline:!0,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.mdxJsEsm]:{group:`block`,atom:!0,attrs:A({mdastNode:null})},[O.inlineMath]:{group:`inline`,inline:!0,atom:!0,attrs:A({expression:null})},[O.blockMath]:{group:`block`,atom:!0,attrs:A({expression:null})},[O.mermaidBlock]:{content:O.codeBlock,group:`block`,attrs:Object.assign(Object.assign({},mn(un)),A(j))},[O.promptBlock]:{content:`${O.promptDescription} ${O.codeBlock}`,group:`block`,attrs:Object.assign(Object.assign({},mn(ln)),A(j))},[O.promptDescription]:{content:`block*`,isolating:!0},[O.expandable]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(tn)),A(j))},[O.visibility]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(nn)),A(j))},[O.paramField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(dn)),A(j))},[O.responseField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},mn(fn)),A(j))},[O.requestExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.responseExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.customComponent]:{content:`block*`,group:`block`,attrs:A(Object.assign({name:null,attributes:null},j))},[O.color]:{group:`block`,atom:!0,attrs:A(Object.assign({variant:null,colorData:[]},j))},[O.tree]:{group:`block`,atom:!0,attrs:A(Object.assign({treeData:[]},j))},[O.database]:{group:`block`,atom:!0,attrs:Object.assign(Object.assign({},mn(an)),A(j))}},_n={bold:{},italic:{},strike:{},code:{},link:{attrs:A({href:null,title:null,referenceLabel:null,mdxLinkAttributes:null,mdxLinkId:null})},underline:{},subscript:{},superscript:{},kbd:{}};function vn(e,t){return e!==`doc`&&!t.inline&&t.group!==`inline`}function yn(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,vn(e,t)?Object.assign(Object.assign({},t),{attrs:Object.assign(Object.assign({},t.attrs),{[Ot]:{default:null}})}):t]))}var bn=new dt({nodes:yn(gn),marks:_n});function xn(e){return new dt({nodes:yn(Object.assign(Object.assign({},gn),e?.nodes)),marks:Object.assign(Object.assign({},_n),e?.marks)})}var Sn=`table`,Cn=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,wn=e=>typeof e==`string`&&Cn.test(e),Tn=e=>rn.some(t=>t===e),En=e=>Tn(e)?e:Sn,Dn=`sql`,On=Symbol(`invalid-database-sql`),kn=/&(?=#?[A-Za-z0-9]+;)|<(?=[A-Za-z/!?])|[`~\0\r\n]/,An=/[\\`~\0\r\n]|\$\{|<(?=!|\/|MDX)/g,jn={"\\":`\\\\`,"`":"\\`","~":`\\x7E`,"\0":`\\x00`,"\r":`\\r`,"\n":`\\n`,"${":"\\${","<":`\\x3C`},Mn=e=>{if(!kn.test(e)){if(!e.includes(`"`))return`${Dn}="${e}"`;if(!e.includes(`'`))return`${Dn}='${e}'`}return`${Dn}={\`${e.replace(An,e=>jn[e]??e)}\`}`},Nn=e=>e.type===`mdxJsxAttribute`&&e.name===Dn,Pn=e=>{let{value:t}=e;if(typeof t==`string`)return t;let n=(t?.data?.estree)?.body[0];if(n?.type!==`ExpressionStatement`)return null;let{expression:r}=n;return r.type===`Literal`?typeof r.value==`string`?r.value:null:r.type!==`TemplateLiteral`||r.expressions.length>0?null:r.quasis[0]?.value.cooked??null},Fn=e=>{let t=e.filter(Nn),[n]=t;return n?t.length>1?On:Pn(n)??On:null},In=e=>e.filter(e=>!Nn(e));function Ln(e){return typeof e==`string`?e.split(` `).filter(Boolean):[]}function Rn(e){let t=[...new Set(e.filter(Boolean))];return t.length>0?t.join(` `):null}var zn=/* @__PURE__ */ new Set([O.staticHTML,O.inlineStaticHTML]);function Bn(e,t){return!t||e===`svg`}function Vn(e){let t=[],n=(e,r,i)=>{let a=zn.has(e.type.name)&&e.attrs.mdxJsxNode!=null;a&&i&&!Bn(e.attrs.tagName,!0)&&t.push(r),e.forEach((e,t)=>n(e,r+1+t,i||a))};return e.forEach((e,t)=>n(e,t,!1)),t}function Hn(e){try{let t=(0,ie.parse)(e);if(t&&typeof t==`object`&&!Array.isArray(t))return t}catch{}return{}}function Un(e){let t=e.children.find(e=>e.type===`yaml`);return!t||!(`value`in t)?{}:Hn(t.value)}function Wn(e,t=[]){return e?Object.assign({type:`text`,text:e},t.length>0&&{marks:t}):{type:`text`,text:``}}function Gn(e){if(!e)return{text:``,marks:[]};if(e.type===`text`||e.type===`inlineCode`)return{text:(`value`in e?e.value:``)||``,marks:Kn(e)};if(`children`in e&&Array.isArray(e.children)){let t=``,n=Kn(e);for(let r of e.children){let{text:e,marks:i}=Gn(r);t+=e,n.push(...i)}return{text:t,marks:n}}return{text:``,marks:[]}}function Kn(e){let t=[];if(!e)return t;switch(e.type){case`link`:t.push({type:`link`,attrs:{href:e.url,title:e.title||void 0}});break;case`inlineCode`:t.push({type:`code`});break;case`emphasis`:t.push({type:`italic`});break;case`strong`:t.push({type:`bold`});break;case`delete`:t.push({type:`strike`});break;case`mdxJsxTextElement`:e.name===`u`?t.push({type:`underline`}):e.name===`sub`?t.push({type:`subscript`}):e.name===`sup`&&t.push({type:`superscript`})}return t}function qn(e,t){return t.nodes[e.type]?.isInline===!0}function Jn(e,t){let n=[],r=[],i=()=>{r.length!==0&&(n.push({type:`paragraph`,content:r}),r=[])};for(let a of e)qn(a,t)?r.push(a):(i(),n.push(a));return i(),n}function Yn(e,t){return Bn(e.name,t.hasStaticHtmlParent===!0)?e:null}var Xn={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,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:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,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:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,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:`
16
16
  `,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:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,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:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:`  `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,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:`Ũ`,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:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:`​`,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:`⁡`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,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:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,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:`˘`,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:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,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:`∐`,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:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,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:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,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:`η`,eth:`ð`,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:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,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:`⪐`,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:`‐`,iacute:`í`,ic:`⁣`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,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:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,itilde:`ĩ`,iukcy:`і`,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:`⪅`,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:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,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:`ℕ`,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:`𝕟`,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:`≹`,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:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,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:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,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:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,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:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,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:`▭`,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:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,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:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,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:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,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:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,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:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`},Zn=/* @__PURE__ */ `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.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`.split(`.`),Qn=new Uint32Array([161,169,171,172,174,177,180,180,182,184,187,187,191,191,215,215,247,247,706,709,722,735,741,747,749,749,751,767,885,885,894,894,900,901,903,903,1014,1014,1154,1154,1370,1375,1417,1418,1421,1423,1470,1470,1472,1472,1475,1475,1478,1478,1523,1524,1542,1551,1563,1563,1565,1567,1642,1645,1748,1748,1758,1758,1769,1769,1789,1790,1792,1805,2038,2041,2046,2047,2096,2110,2142,2142,2184,2184,2404,2405,2416,2416,2546,2547,2554,2555,2557,2557,2678,2678,2800,2801,2928,2928,3059,3066,3191,3191,3199,3199,3204,3204,3407,3407,3449,3449,3572,3572,3647,3647,3663,3663,3674,3675,3841,3863,3866,3871,3892,3892,3894,3894,3896,3896,3898,3901,3973,3973,4030,4037,4039,4044,4046,4058,4170,4175,4254,4255,4347,4347,4960,4968,5008,5017,5120,5120,5741,5742,5787,5788,5867,5869,5941,5942,6100,6102,6104,6107,6144,6154,6464,6464,6468,6469,6622,6655,6686,6687,6816,6822,6824,6829,7002,7018,7028,7038,7164,7167,7227,7231,7294,7295,7360,7367,7379,7379,8125,8125,8127,8129,8141,8143,8157,8159,8173,8175,8189,8190,8208,8231,8240,8286,8314,8318,8330,8334,8352,8384,8448,8449,8451,8454,8456,8457,8468,8468,8470,8472,8478,8483,8485,8485,8487,8487,8489,8489,8494,8494,8506,8507,8512,8516,8522,8525,8527,8527,8586,8587,8592,9254,9280,9290,9372,9449,9472,10101,10132,11123,11126,11157,11159,11263,11493,11498,11513,11516,11518,11519,11632,11632,11776,11822,11824,11869,11904,11929,11931,12019,12032,12245,12272,12287,12289,12292,12296,12320,12336,12336,12342,12343,12349,12351,12443,12444,12448,12448,12539,12539,12688,12689,12694,12703,12736,12771,12783,12783,12800,12830,12842,12871,12880,12880,12896,12927,12938,12976,12992,13311,19904,19967,42128,42182,42238,42239,42509,42511,42611,42611,42622,42622,42738,42743,42752,42774,42784,42785,42889,42890,43048,43051,43062,43065,43124,43127,43214,43215,43256,43258,43260,43260,43310,43311,43359,43359,43457,43469,43486,43487,43612,43615,43639,43641,43742,43743,43760,43761,43867,43867,43882,43883,44011,44011,64297,64297,64434,64450,64830,64847,64975,64975,65020,65023,65040,65049,65072,65106,65108,65126,65128,65131,65281,65295,65306,65312,65339,65344,65371,65381,65504,65510,65512,65518,65532,65533,65792,65794,65847,65855,65913,65929,65932,65934,65936,65948,65952,65952,66e3,66044,66463,66463,66512,66512,66927,66927,67671,67671,67703,67704,67871,67871,67903,67903,68176,68184,68223,68223,68296,68296,68336,68342,68409,68415,68505,68508,69293,69293,69461,69465,69510,69513,69703,69709,69819,69820,69822,69825,69952,69955,70004,70005,70085,70088,70093,70093,70107,70107,70109,70111,70200,70205,70313,70313,70731,70735,70746,70747,70749,70749,70854,70854,71105,71127,71233,71235,71264,71276,71353,71353,71484,71487,71739,71739,72004,72006,72162,72162,72255,72262,72346,72348,72350,72354,72448,72457,72769,72773,72816,72817,73463,73464,73539,73551,73685,73713,73727,73727,74864,74868,77809,77810,92782,92783,92917,92917,92983,92991,92996,92997,93847,93850,94178,94178,113820,113820,113823,113823,118608,118723,118784,119029,119040,119078,119081,119140,119146,119148,119171,119172,119180,119209,119214,119274,119296,119361,119365,119365,119552,119638,120513,120513,120539,120539,120571,120571,120597,120597,120629,120629,120655,120655,120687,120687,120713,120713,120745,120745,120771,120771,120832,121343,121399,121402,121453,121460,121462,121475,121477,121483,123215,123215,123647,123647,125278,125279,126124,126124,126128,126128,126254,126254,126704,126705,126976,127019,127024,127123,127136,127150,127153,127167,127169,127183,127185,127221,127245,127405,127462,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,128727,128732,128748,128752,128764,128768,128886,128891,128985,128992,129003,129008,129008,129024,129035,129040,129095,129104,129113,129120,129159,129168,129197,129200,129201,129280,129619,129632,129645,129648,129660,129664,129672,129680,129725,129727,129733,129742,129755,129760,129768,129776,129784,129792,129938,129940,129994]),$n=128,er=4,tr=6,nr=7,rr=31,ir=1114111,ar=55296,or=57343,sr=64976,cr=65007,lr=65535,ur=65534,dr=65533,fr=6,pr=128,mr=159,hr=`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ`,gr=new Set(Zn),_r=1024,vr=4,yr=new Uint8Array($n);for(let e=0;e<$n;e++)(e>=9&&e<=13||e===32)&&(yr[e]|=1),(e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126)&&(yr[e]|=2),e>=48&&e<=57&&(yr[e]|=4),(e>=65&&e<=90||e>=97&&e<=122)&&(yr[e]|=8);function br(e){return e<$n?!!(yr[e]&1):e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function xr(e){if(e<$n)return!!(yr[e]&2);let t=0,n=Qn.length>>1;for(;t<n;){let r=t+n>>>1;if(e<Qn[r*2])n=r;else if(e>Qn[r*2+1])t=r+1;else return!0}return!1}function M(e){return e===32||e===9}function Sr(e){return e>=48&&e<=57}function Cr(e){return e>=65&&e<=90||e>=97&&e<=122}function wr(e,t,n){let r=t+1;if(e.charCodeAt(r)===35){r++;let t=e.charCodeAt(r)===120||e.charCodeAt(r)===88;t&&r++;let i=r,a=0;for(;r<n&&r-i<(t?tr:nr);){let n=e.charCodeAt(r),i=Sr(n)?n-48:t&&n>=65&&n<=70?n-55:t&&n>=97&&n<=102?n-87:-1;if(i<0)break;a=a*(t?16:10)+i,r++}return r===i||e.charCodeAt(r)!==59?void 0:((a<9||a===11||a>13&&a<32||a>126&&a<160||a>ir||a>=ar&&a<=or||a>=sr&&a<=cr||(a&lr)>=ur)&&(a=dr),{value:String.fromCodePoint(a),end:r+1})}let i=r;for(;r<n&&r-i<rr&&(Cr(e.charCodeAt(r))||Sr(e.charCodeAt(r)));)r++;if(e.charCodeAt(r)!==59)return;let a=e.slice(i,r),o=Object.hasOwn(Xn,a)?Xn[a]:void 0;if(o!==void 0)return{value:o,end:r+1}}function Tr(e,t,n){let r=t+1;if(e.charCodeAt(r)===35){r++;let t=e.charCodeAt(r)===120||e.charCodeAt(r)===88;t&&r++;let i=r;for(;r<n;){let n=e.charCodeAt(r);if(!Sr(n)&&!(t&&(n>=65&&n<=70||n>=97&&n<=102)))break;r++}if(r===i||e.charCodeAt(r)!==59)return;let a=Number.parseInt(e.slice(i,r),t?16:10);return{value:a>ir||a>=ar&&a<=or||a===0?String.fromCharCode(dr):a>=pr&&a<=mr?hr[a-pr]:String.fromCodePoint(a),end:r+1}}let i=r,a=0;for(;r<n&&(Cr(e.charCodeAt(r))||Sr(e.charCodeAt(r)));)r++,r-i<=fr&&gr.has(e.slice(i,r))&&(a=r);if(e.charCodeAt(r)!==59)return;let o=e.slice(i,r);if(Object.hasOwn(Xn,o))return{value:Xn[o],end:r+1};if(a)return{value:Xn[e.slice(i,a)],end:a}}var Er=/[\\&\0]/;function Dr(e){if(!Er.test(e))return e;let t=``,n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===92&&e.charCodeAt(r+1)<$n&&xr(e.charCodeAt(r+1)))t+=e.slice(n,r)+e[r+1],n=++r+1;else if(i===38){let i=wr(e,r,e.length);i&&(t+=e.slice(n,r)+i.value,n=i.end,r=i.end-1)}else i===0&&(t+=e.slice(n,r)+`�`,n=r+1)}return t?t+e.slice(n):e}function Or(e){let t=``,n=!1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);M(i)||i===10||i===13?n=t.length>0:(n&&(t+=` `),t+=e[r],n=!1)}return t.toLowerCase().toUpperCase().toLowerCase()}var kr=new Int32Array(_r),Ar=0,jr=0,Mr=0,Nr=!0;function Pr(e,t){Nr=t,jr=1,Mr=0,kr[0]=0,Ar=0;let n=e.indexOf(`
17
17
  `),r=e.indexOf(`\r`);for(;n>=0||r>=0;){let t=n<0?r:r<0?n:Math.min(n,r);if(t===r&&(n===r+1&&t++,r=e.indexOf(`\r`,t+1)),t===n&&(n=e.indexOf(`
18
- `,t+1)),jr===kr.length){let e=new Int32Array(jr*2);e.set(kr),kr=e}kr[jr++]=t+1}Ar=jr-+(kr[jr-1]===e.length)}function Fr(e){if(e<kr[Mr]||Mr+1<jr&&e>=kr[Mr+1]){let t=0;for(;Mr+1<jr&&e>=kr[Mr+1]&&t++<vr;)Mr++;for(;Mr&&e<kr[Mr]&&t++<vr;)Mr--;if(e<kr[Mr]||Mr+1<jr&&e>=kr[Mr+1]){let t=0,n=jr;for(;t+1<n;){let r=t+n>>>1;kr[r]<=e?t=r:n=r}Mr=t}}return{line:Mr+1,column:e-kr[Mr]+1,offset:e}}function Ir(e,t,n){return Nr?{start:n??Fr(e),end:Fr(t)}:void 0}var N;(function(e){e[e.Root=0]=`Root`,e[e.Paragraph=1]=`Paragraph`,e[e.Heading=2]=`Heading`,e[e.ThematicBreak=3]=`ThematicBreak`,e[e.Blockquote=4]=`Blockquote`,e[e.List=5]=`List`,e[e.ListItem=6]=`ListItem`,e[e.Html=7]=`Html`,e[e.Code=8]=`Code`,e[e.Definition=9]=`Definition`,e[e.Text=10]=`Text`,e[e.Emphasis=11]=`Emphasis`,e[e.Strong=12]=`Strong`,e[e.InlineCode=13]=`InlineCode`,e[e.Break=14]=`Break`,e[e.Link=15]=`Link`,e[e.Image=16]=`Image`,e[e.LinkReference=17]=`LinkReference`,e[e.ImageReference=18]=`ImageReference`,e[e.Delete=19]=`Delete`,e[e.Table=20]=`Table`,e[e.TableRow=21]=`TableRow`,e[e.TableCell=22]=`TableCell`,e[e.FootnoteDefinition=23]=`FootnoteDefinition`,e[e.FootnoteReference=24]=`FootnoteReference`,e[e.Yaml=25]=`Yaml`,e[e.Toml=26]=`Toml`,e[e.Mdx=27]=`Mdx`,e[e.IdString=28]=`IdString`,e[e.Math=29]=`Math`,e[e.InlineMath=30]=`InlineMath`})(N||={});var Lr=/* @__PURE__ */ new Uint8Array(31);for(let e of[N.Root,N.Paragraph,N.Heading,N.Blockquote,N.List,N.ListItem,N.Emphasis,N.Strong,N.Link,N.LinkReference,N.Delete,N.Table,N.TableRow,N.TableCell,N.FootnoteDefinition])Lr[e]=1;var Rr=[1,1,2,3,4,5,6],zr=[],Br=[],Vr=2048,P={count:0,kind:new Uint8Array(Vr),start:new Int32Array(Vr),end:new Int32Array(Vr),child:new Int32Array(Vr),next:new Int32Array(Vr),prev:new Int32Array(Vr),last:new Int32Array(Vr),a:new Int32Array(Vr),b:new Int32Array(Vr),positionless:new Uint8Array(Vr),value:zr,extra:Br};function Hr(){P.count=0,P.value.length=0,P.extra.length=0}function F(e,t,n,r=0){let i=++P.count;if(i>=Vr){Vr*=2;let e=new Uint8Array(Vr);e.set(P.kind),P.kind=e;let t=new Uint8Array(Vr);t.set(P.positionless),P.positionless=t;for(let e of[`start`,`end`,`child`,`next`,`prev`,`last`,`a`,`b`]){let t=P[e],n=new Int32Array(Vr);n.set(t),P[e]=n}}return P.kind[i]=e,P.positionless[i]=0,P.start[i]=t,P.end[i]=n,P.child[i]=P.next[i]=P.prev[i]=P.last[i]=P.a[i]=P.b[i]=0,r&&Ur(r,i),i}function Ur(e,t){P.prev[t]=P.last[e],P.last[e]?P.next[P.last[e]]=t:P.child[e]=t,P.last[e]=t}function Wr(e){let t=Lr[P.kind[e]]||P.kind[e]===N.Mdx&&P.extra[e]?.children?[]:void 0;for(let n=P.child[e];n;n=P.next[n])t.push(Wr(n));let n=P.value[e]??``,r=P.extra[e],i=P.positionless[e]?void 0:Ir(P.start[e],P.end[e],r?.positionStart);switch(P.kind[e]){case N.Mdx:{let e={...r};return t&&(e.children=t),i&&(e.position=i),e}case N.Paragraph:return i?{type:`paragraph`,children:t,position:i}:{type:`paragraph`,children:t};case N.Heading:return i?{type:`heading`,depth:Rr[P.a[e]],children:t,position:i}:{type:`heading`,depth:Rr[P.a[e]],children:t};case N.ThematicBreak:return i?{type:`thematicBreak`,position:i}:{type:`thematicBreak`};case N.Blockquote:return i?{type:`blockquote`,children:t,position:i}:{type:`blockquote`,children:t};case N.List:return i?{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t,position:i}:{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t};case N.ListItem:return i?{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t,position:i}:{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t};case N.Html:return i?{type:`html`,value:n,position:i}:{type:`html`,value:n};case N.Code:return i?{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n,position:i}:{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n};case N.Definition:return i?{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url,position:i}:{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url};case N.Text:return i?{type:`text`,value:n,position:i}:{type:`text`,value:n};case N.IdString:return i?{type:`idString`,value:n,position:i}:{type:`idString`,value:n};case N.Emphasis:return i?{type:`emphasis`,children:t,position:i}:{type:`emphasis`,children:t};case N.Strong:return i?{type:`strong`,children:t,position:i}:{type:`strong`,children:t};case N.InlineCode:return i?{type:`inlineCode`,value:n,position:i}:{type:`inlineCode`,value:n};case N.Break:return i?{type:`break`,position:i}:{type:`break`};case N.Delete:return i?{type:`delete`,children:t,position:i}:{type:`delete`,children:t};case N.Link:return i?{type:`link`,title:r.title,url:r.url,children:t,position:i}:{type:`link`,title:r.title,url:r.url,children:t};case N.Image:return i?{type:`image`,title:r.title,url:r.url,alt:n,position:i}:{type:`image`,title:r.title,url:r.url,alt:n};case N.LinkReference:return i?{type:`linkReference`,children:t,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`linkReference`,children:t,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.ImageReference:return i?{type:`imageReference`,alt:n,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`imageReference`,alt:n,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.Table:return i?{type:`table`,align:r,children:t,position:i}:{type:`table`,align:r,children:t};case N.TableRow:return i?{type:`tableRow`,children:t,position:i}:{type:`tableRow`,children:t};case N.TableCell:return i?{type:`tableCell`,children:t,position:i}:{type:`tableCell`,children:t};case N.FootnoteDefinition:return i?{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t,position:i}:{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t};case N.FootnoteReference:return i?{type:`footnoteReference`,identifier:r.identifier,label:r.label,position:i}:{type:`footnoteReference`,identifier:r.identifier,label:r.label};case N.Math:{let e={hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[{type:`text`,value:n}]}]};return i?{type:`math`,meta:r??null,value:n,data:e,position:i}:{type:`math`,meta:r??null,value:n,data:e}}case N.InlineMath:{let e={hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[{type:`text`,value:n}]};return i?{type:`inlineMath`,value:n,data:e,position:i}:{type:`inlineMath`,value:n,data:e}}case N.Yaml:return i?{type:`yaml`,value:n,position:i}:{type:`yaml`,value:n};case N.Toml:return i?{type:`toml`,value:n,position:i}:{type:`toml`,value:n};default:throw Error(`Unknown parser node kind`)}}function Gr(e){let t=[];for(let n=P.child[e];n;n=P.next[n])t.push(Wr(n));let n=Ir(P.start[e],P.end[e]);return n?{type:`root`,children:t,position:n}:{type:`root`,children:t}}var Kr=32,qr=7,Jr=8,Yr=4,Xr=3;function Zr(e){return Cr(e)||Sr(e)||e===43||e===45||e===46||e===95}function Qr(e,t,n){for(let r=0;r<n.length;r++)if((e.charCodeAt(t+r)|Kr)!==n.charCodeAt(r))return!1;return!0}function $r(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(br(t)||t===60)return!0;if(t!==33&&t!==34&&t!==39&&t!==41&&t!==42&&t!==44&&t!==46&&t!==58&&t!==59&&t!==63&&t!==95&&t!==126){if(t===93){let t=e.charCodeAt(r+1);if(r+1===n||t===40||t===91||br(t))return!0}else if(t===38){let t=r+1;for(;t<n&&Cr(e.charCodeAt(t));)t++;if(t===r+1||e.charCodeAt(t)!==59)return!1;r=t}else return!1}}return!0}function ei(e,t,n){let r=!1,i=!1,a=!1,o=t;for(;o<n;o++){let t=e.charCodeAt(o);if(t===46||t===95){if($r(e,o,n))break;t===95?r=!0:(i=r,r=!1)}else{if(br(t)||t!==45&&xr(t))break;a=!0}}return a&&!r&&!i?o:-1}function ti(e,t,n){let r=0,i=0,a=t;for(;a<n;a++){let t=e.charCodeAt(a);if(br(t))break;if(t===40)r++;else if(t===41&&i<r)i++;else{if(`!"&')*,.:;<?]_~`.includes(e[a])&&$r(e,a,n))break;t===41&&i++}}return a}function ni(e,t,n,r,i=!0){let a=e.charCodeAt(t);if(i&&Zr(a)&&r!==47&&!Zr(r)){let r=t;for(;r<n&&Zr(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===64){r++;let t=!1,i=!1;for(;r<n;r++){let n=e.charCodeAt(r);if(n===46&&(Cr(e.charCodeAt(r+1))||Sr(e.charCodeAt(r+1))))t=!0;else if(Cr(n)||Sr(n)||n===45||n===95)i=!0;else break}if(t&&i&&Cr(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}}if((a===72||a===104)&&!Cr(r)){let r=Qr(e,t,`http://`)?qr:Qr(e,t,`https://`)?Jr:0;if(r){let i=e.charCodeAt(t+r);if(t+r<n&&i>32&&!xr(i)&&!br(i)){let i=ei(e,t+r,n);if(i>t+r)return{end:ti(e,i,n),prefix:``}}}}if((a===87||a===119)&&Qr(e,t,`www.`)&&t+Yr<n&&(r===-1||r===40||r===42||r===95||r===91||r===93||r===126||r===32||r===9||r===10||r===13)){let r=ei(e,t,n);if(r>t)return{end:ti(e,r,n),prefix:`http://`}}}function ri(e,t,n){let r=0,i=t,a=!0,o=!0;for(let s=t;s<=n;s++){if(s!==n&&e.charCodeAt(s)!==46)continue;a=o,o=!0;let t=!1;for(let n=i;n<s;n++)e.charCodeAt(n)===95&&(o=!1),(Cr(e.charCodeAt(n))||Sr(e.charCodeAt(n)))&&(t=!0);s>i&&!t&&(o=!1),r++,i=s+1}return r>=2&&o&&a}function ii(e,t,n){let r=n;for(;r>t&&`!"&'),.:;<>?]}`.includes(e[r-1]);)r--;if(r===n)return n;let i=0,a=0;for(let n=t;n<r;n++)e.charCodeAt(n)===40?i++:e.charCodeAt(n)===41&&a++;let o=r;for(let t=r;t<n&&i>a;t++)e.charCodeAt(t)===41&&(o=t+1,a++);return o}function ai(e,t){let n=t?e.charCodeAt(t-1):-1;if(t&&!br(n)&&!xr(n))return;let r=Qr(e,t,`http://`)?qr:Qr(e,t,`https://`)?Jr:Qr(e,t,`www.`)?Xr:0;if(!r)return;let i=t+r,a=i;for(;i<e.length&&(Cr(e.charCodeAt(i))||Sr(e.charCodeAt(i))||e.charCodeAt(i)===95||e.charCodeAt(i)===45||e.charCodeAt(i)===46);)i++;if(i===a||!ri(e,r===Xr?t:a,i))return;for(;i<e.length&&e.charCodeAt(i)!==32&&e.charCodeAt(i)!==9&&e.charCodeAt(i)!==10&&e.charCodeAt(i)!==13;)i++;let o=ii(e,t+r,i);if(o>t+r||r===Xr&&o===t+r)return{end:o,prefix:r===Xr?`http://`:``}}function oi(e,t){let n=t?e.charCodeAt(t-1):-1;if(n===47||t&&!br(n)&&!xr(n))return;let r=t;for(;r<e.length&&Zr(e.charCodeAt(r));)r++;if(r===t||e.charCodeAt(r)!==64)return;let i=++r,a=!1,o=!1;for(;r<e.length;){let t=e.charCodeAt(r);if(Cr(t)||Sr(t)||t===95||t===45)o=!0,r++;else if(t===46&&o&&(Cr(e.charCodeAt(r+1))||Sr(e.charCodeAt(r+1))||e.charCodeAt(r+1)===95||e.charCodeAt(r+1)===45))a=!0,o=!1,r++;else break}if(a&&r>i&&Cr(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}var si=/https?:\/\/|www\./gi;function ci(e,t){let n=e.indexOf(`@`,t);if(n<0)return-1;let r=n;for(;r>t&&Zr(e.charCodeAt(r-1));)r--;return r}function li(e,t,n){let r=P.value[t]??``;if(r.indexOf(n?`@`:`.`)<0)return;let i=0,a=0,o=0;si.lastIndex=0;let s=n?ci(r,0):si.exec(r)?.index??-1;for(;s>=0;){let e=s,t=n?oi(r,e):ai(r,e);if(!t){s=n?ci(r,e+1):si.exec(r)?.index??-1;continue}if(i<e){let t=F(N.Text,0,0);P.value[t]=r.slice(i,e),P.positionless[t]=1,o?(P.next[o]=t,P.prev[t]=o):a=t,o=t}let c=F(N.Link,0,0);P.extra[c]={title:null,url:t.prefix+r.slice(e,t.end)},P.positionless[c]=1;let l=F(N.Text,0,0,c);P.value[l]=r.slice(e,t.end),P.positionless[l]=1,o?(P.next[o]=c,P.prev[c]=o):a=c,o=c,i=t.end,n?s=ci(r,t.end):(si.lastIndex=t.end,s=si.exec(r)?.index??-1)}if(!a)return;if(i<r.length){let e=F(N.Text,0,0);P.value[e]=r.slice(i),P.positionless[e]=1,P.next[o]=e,P.prev[e]=o,o=e}let c=P.prev[t],l=P.next[t];c?P.next[c]=a:P.child[e]=a,P.prev[a]=c,P.next[o]=l,l?P.prev[l]=o:P.last[e]=o}function ui(e){for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text?li(e,t,!1):P.kind[t]!==N.Link&&P.kind[t]!==N.LinkReference&&P.child[t]&&ui(t),t=n}for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text&&li(e,t,!0),t=n}}function I(e,t){return e.map?e.map[t]:e.base+t}var di=new Uint8Array($n);for(let e of[10,13,33,42,60,91,92,93,95,96,123,126])di[e]=1;var fi=di.slice();for(let e of[72,104,87,119])fi[e]=1;var pi=fi.slice();for(let e=0;e<$n;e++)(yr[e]&12||e===43||e===45||e===46)&&(pi[e]=1);var mi=pi.slice();mi[36]=1;var hi=/[\n\r!*<[\]\\_`{~]/g,gi=/[\n\r!*<[\]\\_`{~]|https?:\/\/|www\./gi,_i=/[\n\r!$*<[\]\\_`{~]/g,vi=/[\n\r!$*<[\]\\_`{~]|https?:\/\/|www\./gi,yi=1024,bi=32,xi=2,Si=32,Ci=63,wi=3,Ti=0,Ei=yi,Di=new Int32Array(Ei),Oi=new Int32Array(Ei),ki=new Int32Array(Ei),Ai=new Int32Array(Ei),ji=new Uint8Array(Ei),Mi=new Uint8Array(Ei),Ni=0,Pi=0,Fi=/* @__PURE__ */ new Map,Ii=hi,Li=gi,Ri=pi,zi=0,Bi=/* @__PURE__ */ new Int32Array,Vi=/* @__PURE__ */ new Int32Array,Hi=/* @__PURE__ */ new Int32Array(64),Ui=``,Wi,Gi,Ki=-1,qi=``,Ji=[],Yi=[],Xi=1/0,Zi=0;function Qi(e,t){qi=t,Ti=0,Wi=Gi=void 0,Fi.clear(),Pi=e.math?e.math.singleDollarTextMath?1:2:0,Ii=Pi?_i:hi,Li=Pi?vi:gi,Ri=Pi?mi:pi}function $i(e,t,n,r,i,a){if(Ti===Ei){Ei*=2;let e=new Int32Array(Ei);e.set(Di),Di=e;let t=new Int32Array(Ei);t.set(Oi),Oi=t;let n=new Int32Array(Ei);n.set(ki),ki=n;let r=new Int32Array(Ei);r.set(Ai),Ai=r;let i=new Uint8Array(Ei);i.set(ji),ji=i;let a=new Uint8Array(Ei);a.set(Mi),Mi=a}Di[Ti]=e,Oi[Ti]=t,ki[Ti]=n,Ai[Ti]=r,ji[Ti]=i,Mi[Ti++]=a}function ea(e,t){let n=P.prev[t],r=P.next[t];n?P.next[n]=r:P.child[e]=r,r?P.prev[r]=n:P.last[e]=n}function ta(e,t,n,r,i,a=3){let o=i?2:1;a&o&&na(e,t,n,r,i,a),a&~o&&na(e,t,n,r,!i,a&~o)}function na(e,t,n,r,i,a){for(let o=n;o<r;o++)if(Oi[o]===t&&ji[o]===126===i&&Mi[o]&2)for(;Ai[o];){let r=o-1;for(;r>=n;r--){if(Oi[r]!==t||!Ai[r]||!(Mi[r]&1)||ji[r]!==ji[o])continue;let e=Ai[r],n=Ai[o];if(ji[r]===126){if(e!==n)continue}else if((Mi[r]&2||Mi[o]&1)&&(e+n)%3==0&&(e%3!=0||n%3!=0))continue;break}if(r<n)break;let i=ji[r]===126?Ai[r]:Ai[r]>=2&&Ai[o]>=2?2:1,s=Di[r],c=Di[o],l=ki[r]+Ai[r],u=ki[o],d=F(ji[r]===126?N.Delete:i===2?N.Strong:N.Emphasis,I(e,l-i),I(e,u+i));P.child[d]=P.next[s],P.last[d]=P.prev[c],P.prev[P.child[d]]=0,P.next[P.last[d]]=0,P.next[s]=d,P.prev[d]=s,P.next[d]=c,P.prev[c]=d,Ai[r]-=i,Ai[o]-=i,ki[o]+=i,P.end[s]=I(e,l-i),P.start[c]=I(e,u+i),P.value[s]=e.source.slice(ki[r],l-i),P.value[c]=e.source.slice(u+i,u+i+Ai[o]);for(let e=r+1;e<o;e++)Oi[e]===t&&(Oi[e]=d);ta(e,d,r+1,o,!0,a),Ai[r]||ea(t,s),Ai[o]||ea(t,c)}}function ra(e,t,n){let r=ia(e,t,n);if(!(r<0))return{end:r,value:Dr(e.charCodeAt(t)===60?e.slice(t+1,r-1):e.slice(t,r))}}function ia(e,t,n){let r=t;if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===62)return r+1;if(t===60||t===10||t===13)return-1;t===92&&xr(e.charCodeAt(r+1))&&r++}return-1}let i=0;for(;r<n;r++){let t=e.charCodeAt(r);if(t!==0&&t<=32||t===127)break;if(t===92&&r+1<e.length&&xr(e.charCodeAt(r+1)))r++;else if(t===40){if(++i>bi)return-1}else if(t===41){if(!i)break;i--}}return i?-1:r}function aa(e,t,n){let r=oa(e,t,n);if(r>=0)return{end:r,value:Dr(ca(e.slice(t+1,r-1)))}}function oa(e,t,n){let r=e.charCodeAt(t);if(r!==34&&r!==39&&r!==40)return-1;let i=r===40?41:r;for(let r=t+1;r<n;r++){let t=e.charCodeAt(r);if(t===i)return r+1;if(t===92&&xr(e.charCodeAt(r+1))&&r++,t===13&&e.charCodeAt(r+1)===10)r++;else if((t===10||t===13)&&(e.charCodeAt(r+1)===10||e.charCodeAt(r+1)===13))return-1}return-1}function sa(e,t,n){for(;t<n&&(M(e.charCodeAt(t))||e.charCodeAt(t)===10||e.charCodeAt(t)===13);)t++;return t}function ca(e,t=1/0){let n=``,r=0;for(let i=0;i<e.length;i++){let a=e.charCodeAt(i);if(a!==10&&a!==13)continue;a===13&&e.charCodeAt(i+1)===10&&i++;let o=i+1,s=0;for(;M(e.charCodeAt(o))&&s<t;)s+=e.charCodeAt(o)===9?er-s%er:1,o++;o>i+1&&(n+=e.slice(r,i+1)+(s>t?` `.repeat(s-t):``),r=o,i=o-1)}return n+e.slice(r)}function la(e,t,n){let r=sa(e,t+1,n),i=ra(e,r,n);if(!i)return;r=sa(e,i.end,n);let a=null;if(r>i.end&&e.charCodeAt(r)!==41){let t=aa(e,r,n);if(!t)return;a=t.value||null,r=sa(e,t.end,n)}if(e.charCodeAt(r)===41)return{end:r+1,url:i.value,title:a}}function ua(e,t,n){let r=sa(e,t+1,n),i=ia(e,r,n);if(i<0)return-1;if(r=sa(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=oa(e,r,n);if(t<0)return-1;r=sa(e,t,n)}return e.charCodeAt(r)===41?r+1:-1}function da(e,t,n,r,i){if(r===Wi&&e===Ui&&i===Gi&&n<=Ki&&Bi[t]===zi){let e=Vi[t];if(e>=0?e<n:n===Ki)return e}Bi.length<=e.length&&(Bi=new Int32Array(e.length+1),Vi=new Int32Array(e.length+1),zi=0),zi++,Ui=e,Wi=r,Gi=i,Ki=n;let a,o=0,s=0,c=-1;for(let l=t;l<n;l++){let t=e.charCodeAt(l);if((t===123||t===60)&&i.inline){let e=i.inline(r,l,n,i);if(e){l=e.end-1;continue}}if(t===92&&xr(e.charCodeAt(l+1)))l++;else if(t===60||t===96||t===36&&Pi)l=fa(e,l,n,t);else if(t===91||t===33&&e.charCodeAt(l+1)===91){if(t===33&&(a||=[],a.push(o),l++),o===Hi.length){let e=new Int32Array(o*2);e.set(Hi),Hi=e}Hi[o]=l+1,Bi[l+1]=zi,Vi[l+1]=-1,o++,c=l}else if(t===93){if(!o)return l;o--,Vi[Hi[o]]=l;let t=a!==void 0&&a[a.length-1]===o;t&&a.pop();let r=c+1;if(c=-1,o<s&&(s=o,!t))continue;let u=pa(e,r,l,n,i,t);if(u<0)continue;t||(s=o),l=u-1}}return-1}function fa(e,t,n,r){if(r===60)return Math.max(t,(Sa(e,t,n)?.end??xa(e,t,n))-1);let i=t+1;for(;e.charCodeAt(i)===r;)i++;let a=ha(e,i,n,i-t,r);return a>=0?a+i-t-1:i-1}function pa(e,t,n,r,i,a){let o=e.charCodeAt(n+1),s=t>0;if(o!==40&&o!==91&&!(s&&i.definitions.size))return-1;if(s&&!a&&e.charCodeAt(t)===94&&i.config.gfm){let r=e.slice(t+1,n);if(r&&!Na(r)&&i.footnotes.has(Or(r)))return-1}return Ia(e,t,n,r,i,s)}function ma(e,t,n,r,i=96){for(let a=t;a<n;){if(e.charCodeAt(a)!==i){a++;continue}let t=a+1;for(;e.charCodeAt(t)===i;)t++;if(t-a===r)return a;a=t}return-1}function ha(e,t,n,r,i){if(i!==36)return ma(e,t,n,r,i);if(r<Pi)return-1;let a=Fi.get(e);if(!a){a=/* @__PURE__ */ new Map;for(let t=e.indexOf(`$`);t!==-1;){let n=t+1;for(;e.charCodeAt(n)===36;)n++;let r=n-t,i=a.get(r);i?i.push(t):a.set(r,[t]),t=e.indexOf(`$`,n)}Fi.set(e,a)}let o=a.get(r);if(!o)return-1;let s=0,c=o.length;for(;s<c;){let e=s+c>>>1;o[e]<t?s=e+1:c=e}let l=o[s];return l<n?l:-1}function ga(e,t,n){let r=e.source,i=!0;for(let a=t;a<n;a++){let t=r.charCodeAt(a);(t!==32&&t!==10&&t!==13||_a(e,a))&&(i=!1)}let a=r.charCodeAt(t),o=r.charCodeAt(n-1);return i||a!==32&&a!==10&&a!==13||o!==32&&o!==10&&o!==13||_a(e,n-1)||(t+=a===13&&r.charCodeAt(t+1)===10?2:1,n-=o===10&&r.charCodeAt(n-2)===13?2:1),r.slice(t,n)}function _a(e,t){return!!e.map&&e.source.charCodeAt(t)===32&&qi.charCodeAt(e.map[t])===9}var va=0;function ya(e,t,n,r){let i=t;for(;;){let t=e.charCodeAt(i);if(i>=n||t===60||t===61||t===62||t===96)return ba(i);if(t===34||t===39){let t=e.indexOf(e[i],i+1);return t<0||t>=n?ba(n):t+1}let a=i;for(r||i++;i<n&&!br(e.charCodeAt(i))&&!`"'=/<>\``.includes(e[i]);)i++;if(i===a)return ba(i);if(!r||e.charCodeAt(i)!==61)return i;for(i++;M(e.charCodeAt(i));)i++}}function ba(e){return va=e,-1}function xa(e,t,n,r=!1){let i=t+1;if(va=i,e.startsWith(`<!--`,t)){if(e.charCodeAt(t+4)===62)return t+5;if(e.charCodeAt(t+4)===45&&e.charCodeAt(t+5)===62)return t+6;let r=e.indexOf(`-->`,t+4);return r<0||r+3>n?ba(n):r+3}if(e.startsWith(`<![CDATA[`,t)){let r=e.indexOf(`]]>`,t+9);return r<0||r+3>n?ba(n):r+3}if(e.charCodeAt(i)===63){let t=e.indexOf(`?>`,i+1);return t<0||t+2>n?ba(n):t+2}if(e.charCodeAt(i)===33){if(!Cr(e.charCodeAt(i+1)))return-1;let t=e.indexOf(`>`,i+2);return t<0||t>=n?ba(n):t+1}let a=e.charCodeAt(i)===47;if(a&&i++,!Cr(e.charCodeAt(i)))return-1;for(i++;i<n&&(Cr(e.charCodeAt(i))||Sr(e.charCodeAt(i))||e.charCodeAt(i)===45);i++);for(;i<n;){let t=i;if(i=sa(e,i,n),e.charCodeAt(i)===62)return i+1;if(e.charCodeAt(i)===47&&e.charCodeAt(i+1)===62&&!a)return i+2;if(a||i===t)return ba(i);let o=e.charCodeAt(i);if(!Cr(o)&&o!==95&&o!==58)return ba(i);for(i++;i<n&&(Cr(e.charCodeAt(i))||Sr(e.charCodeAt(i))||`-._:`.includes(e[i]));)i++;let s=i;if(i=sa(e,i,n),e.charCodeAt(i)!==61)i=s;else if(i=sa(e,i+1,n),i=ya(e,i,n,r),i<0)return-1}return ba(n)}function Sa(e,t,n){let r=t+1;for(;r<n&&e.charCodeAt(r)!==62&&e.charCodeAt(r)>32&&e.charCodeAt(r)!==127&&e.charCodeAt(r)!==60;)r++;if(e.charCodeAt(r)!==62)return;let i=e.slice(t+1,r),a=t+1;for(;a<r&&e.charCodeAt(a)!==58;)a++;if(a<r&&a-t>=xi+1&&a-t<=Si+1&&Cr(e.charCodeAt(t+1))){let n=!0;for(let r=t+2;r<a;r++)Cr(e.charCodeAt(r))||Sr(e.charCodeAt(r))||`+-.`.includes(e[r])||(n=!1);if(n)return{end:r+1,url:i,value:i}}if(Ca(i))return{end:r+1,url:`mailto:`+i,value:i}}function Ca(e){let t=-1;for(let n=0;n<e.length;n++)if(e.charCodeAt(n)===64){if(t>=0)return!1;t=n}if(t<=0||t===e.length-1)return!1;for(let n=0;n<t;n++)if(!Cr(e.charCodeAt(n))&&!Sr(e.charCodeAt(n))&&!".#$%&'*+-/=?^_`{|}~".includes(e[n]))return!1;let n=0;for(let r=t+1;r<=e.length;r++){let t=e.charCodeAt(r);if(r===e.length||t===46){if(!n||n>Ci||e.charCodeAt(r-1)===45)return!1;n=0}else{if(!Cr(t)&&!Sr(t)&&t!==45||!n&&t===45)return!1;n++}}return!0}function wa(e,t,n,r,i){let a=e.source.charCodeAt(n-1),o=F(N.Text,I(e,t),a===10||a===13?Ea(e,n):I(e,n),r);return P.value[o]=i??Dr(e.source.slice(t,n)),o}function Ta(e,t){t>=Zi?Xi=Math.min(Xi,e):(Ji.push(e),Yi.push(t))}function Ea(e,t){if(!e.map||!Da(t))return I(e,t-1)+1;let n=I(e,t);return e.source.charCodeAt(t)===32&&qi.charCodeAt(n)===9?n+1:n}function Da(e){if(Xi<e)return!0;let t=0,n=!1;for(let r=0;r<Ji.length;r++)Yi[r]<e||(Ji[r]<e&&(n=!0),Ji[t]=Ji[r],Yi[t++]=Yi[r]);return Ji.length=Yi.length=t,n}function Oa(e,t,n){let r=sa(e,t+1,n),i=ia(e,r,n);if(i<0){if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===60||t===10||t===13)return r;t===92&&xr(e.charCodeAt(r+1))&&r++}return n}let t=0;for(;r<n;r++){let n=e.charCodeAt(r);if(n!==0&&n<=32||n===127)return r;if(n===92&&xr(e.charCodeAt(r+1)))r++;else if(n===40&&++t>bi)return r;else n===41&&t--}return n}if(r=sa(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=oa(e,r,n);if(t<0)return ka(e.charCodeAt(r))?n:r;r=sa(e,t,n)}return r}function ka(e){return e===34||e===39||e===40}function Aa(e){let t=0;for(let n=P.child[e];n;){let r=P.next[n];P.kind[n]===N.Text&&t&&P.kind[t]===N.Text?(P.value[t]=(P.value[t]??``)+(P.value[n]??``),P.end[t]=P.end[n],ea(e,n)):(P.child[n]&&Aa(n),t=n),n=r}}function ja(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.child[n]?ja(n):P.value[n]??``;return t}function Ma(e,t,n,r,i,a=!1,o=!0,s=!a){let c=e.source,l=Ti;o&&(Ni=0,Ji.length=Yi.length=0,Xi=1/0,Zi=n);let u=t,d=i.config.gfm&&s?c.indexOf(`@`,t):-1,f=d>=0&&d<n,p=f?Ri:i.config.gfm&&s?fi:di,m=!i.inline||i.inlineMarkers,h=i.config.gfm&&s?Li:Ii,g=t,_=0;for(;g<n;){if(m){if(f)for(;g<n&&!p[c.charCodeAt(g)];)g++;else{h.lastIndex=g;let e=h.exec(c);g=e&&e.index<n?e.index:n}if(g===n)break}let l=c.charCodeAt(g);if(i.inline){let t=i.inline(e,g,n,i);if(t){u<g&&wa(e,u,g,r),Ur(r,t.node),g=u=t.end;continue}}let d=g>t?c.charCodeAt(g-1):-1,v=!(yr[d]&12)&&d!==43&&d!==45&&d!==46&&d!==95&&d!==47||(l===72||l===104||l===87||l===119)&&!(yr[d]&8);if(i.config.gfm&&s&&!_&&v&&(f&&(yr[l]&12||l===43||l===45||l===46||l===95)||l===72||l===104||l===87||l===119)){let t=ni(c,g,n,d,f);if(t){u<g&&wa(e,u,g,r);let n=F(N.Link,I(e,g),I(e,t.end),r),i=c.slice(g,t.end);P.extra[n]={title:null,url:t.prefix+i},wa(e,g,t.end,n,i),g=u=t.end;continue}}if(l===92){let t=c.charCodeAt(g+1);if(t<$n&&xr(t)){g+=2;continue}if(t===10||t===13){u<g&&wa(e,u,g,r);let n=g+2;for(t===13&&c.charCodeAt(n)===10&&n++,F(N.Break,I(e,g),Ea(e,n),r);M(c.charCodeAt(n));)n++;g=u=n;continue}}if(l===10||l===13){let t=g;for(;t>u&&M(c.charCodeAt(t-1));)t--;let n=g+1;l===13&&c.charCodeAt(n)===10&&n++;let i=!1;for(let e=t;e<g;e++)c.charCodeAt(e)===9&&(i=!0);if(!i&&g-t>=2&&c.charCodeAt(g-1)===32&&c.charCodeAt(g-2)===32){for(u<t&&wa(e,u,t,r),F(N.Break,I(e,t),Ea(e,n),r);M(c.charCodeAt(n));)n++;g=u=n}else{for(u<t&&wa(e,u,t,r),wa(e,g,n,r);M(c.charCodeAt(n));)n++;g=u=n}}else if(l===96){let t=g+1;for(;c.charCodeAt(t)===96;)t++;let i=ma(c,t,n,t-g);if(i>=0){u<g&&wa(e,u,g,r);let n=i+t-g,a=F(N.InlineCode,I(e,g),I(e,n),r);P.value[a]=ga(e,t,i),e.table&&(P.value[a]=Pa(P.value[a])),g=u=n;continue}Ta(g,1/0),g=t}else if(l===36&&Pi){let t=g+1;for(;c.charCodeAt(t)===36;)t++;let i=ha(c,t,n,t-g,l);if(i>=0){u<g&&wa(e,u,g,r);let n=i+t-g,a=F(N.InlineMath,I(e,g),I(e,n),r);P.value[a]=ga(e,t,i),g=u=n;continue}t-g>=Pi&&Ta(g,1/0),g=t}else if(l===42||l===95||l===126&&i.config.gfm){let a=g+1;for(;c.charCodeAt(a)===l;)a++;let s=a-g;if(l===126&&(s>2||s===1&&!i.config.gfm?.singleTilde)){g=a;continue}u<g&&wa(e,u,g,r);let d=wa(e,g,a,r),f=g>t||!o?c.charCodeAt(g-1):32,p=a<n||!o?c.charCodeAt(a):32,m=br(f),h=br(p),_=xr(f),v=xr(p),y=!h&&(!v||m||_)||l!==126&&i.config.gfm!==void 0&&p===126,b=!m&&(!_||h||v)||l!==126&&i.config.gfm!==void 0&&f===126,x=l===95?y&&(!b||_):y,S=l===95?b&&(!y||v):b;Ni||=l,$i(d,r,g,s,l,!!x|(S?2:0)),g=u=a}else{if(l===91||l===33&&c.charCodeAt(g+1)===91){let t=l===33,o=g+(t?2:1),s=da(c,o,n,e,i);if(s>=0){let l=s+1,d=c.slice(o,s),f,p=!1,m=!1;if(!t&&d.charCodeAt(0)===94&&d.length>1&&!Na(d)&&i.config.gfm&&i.footnotes.has(Or(d.slice(1))))f={label:Dr(d.slice(1)),identifier:Or(d.slice(1))},m=!0;else if(t||!a){if(c.charCodeAt(l)===40&&(f=la(c,l,n),!f&&e.map&&Ta(l,Oa(c,l,n))),f)l=f.end;else{let e=d,t=`shortcut`;if(c.charCodeAt(l)===91){e=``;let r=l+1;for(;r<n&&c.charCodeAt(r)!==93&&c.charCodeAt(r)!==91;)c.charCodeAt(r)===92&&r++,r++;c.charCodeAt(r)===93&&(e=c.slice(l+1,r),t=e?`full`:`collapsed`,e||=d,i.definitions.has(Or(e))?l=r+1:e=``),l<=r&&Ta(l,c.charCodeAt(r)===93?r+1:r)}e&&i.definitions.has(Or(e))&&(f={label:Dr(e),identifier:Or(e),referenceType:t},p=!0)}}else e.map&&c.charCodeAt(l)===40&&Ta(l,Oa(c,l,n));if(f&&!t&&!m&&Fa(e,o,s,i)&&(f=void 0),f){u<g&&wa(e,u,g,r);let n=F(m?N.FootnoteReference:t?p?N.ImageReference:N.Image:p?N.LinkReference:N.Link,I(e,g),I(e,l),r);P.extra[n]=f,m||(Ma(e,o,s,n,i,!t,!1,!1),t&&!i.config.mdx&&(P.value[n]=ja(n),P.child[n]=P.last[n]=0)),g=u=l;continue}}t||_++}if(l===93&&_&&_--,l===60&&!i.config.mdx){let t=Sa(c,g,n),i=t?.end??xa(c,g,n);if(i>g){u<g&&wa(e,u,g,r);let n=F(t?N.Link:N.Html,I(e,g),I(e,i),r);t?(P.extra[n]={url:t.url,title:null},wa(e,g+1,i-1,n,t.value)):P.value[n]=ca(c.slice(g,i),wi),g=u=i;continue}t||Ta(g,va)}g++}}for(;o&&n>u&&M(c.charCodeAt(n-1));)n--;u<n&&wa(e,u,n,r),ta(e,r,l,Ti,!o||Ni===126),Ti=l,Aa(r)}function Na(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(M(n)||n===10||n===13)return!0}return!1}function Pa(e){let t=``,n=0;for(let r=0;r+1<e.length;r++)e.charCodeAt(r)===92&&e.charCodeAt(r+1)===124&&(t+=e.slice(n,r),n=r+1,r++);return t+e.slice(n)}function Fa(e,t,n,r){let i=e.source;for(let a=t;a<n;a++){let t=i.charCodeAt(a);if((t===123||t===60)&&r.inline){let t=r.inline(e,a,n,r);if(t){a=t.end-1;continue}}if(t===92){a++;continue}if(t===96||t===36&&Pi){let e=a+1;for(;i.charCodeAt(e)===t;)e++;let r=ha(i,e,n,e-a,t);if(r>=0){a=r+e-a-1;continue}a=e-1}if(t===60){let e=Sa(i,a,n)?.end??xa(i,a,n);if(e>a){a=e-1;continue}}if(t===33&&i.charCodeAt(a+1)===91){let t=da(i,a+2,n,e,r);if(t>=0){if(Fa(e,a+2,t,r))return!0;let o=Ia(i,a+2,t,n,r);a=(o<0?t+1:o)-1;continue}}if(t!==91)continue;let o=da(i,a+1,n,e,r);if(!(o<0)){if(i.charCodeAt(a+1)===94&&o>a+2&&r.config.gfm&&r.footnotes.has(Or(i.slice(a+2,o)))&&!Na(i.slice(a+2,o)))a=o;else if(Ia(i,a+1,o,n,r)>=0)return!0}}return!1}function Ia(e,t,n,r,i,a=!0){let o=n+1,s=e.charCodeAt(o),c=a&&i.definitions.size>0;if(s===91){let a=o+1;for(;a<r&&e.charCodeAt(a)!==93&&e.charCodeAt(a)!==91;)e.charCodeAt(a)===92&&a++,a++;return e.charCodeAt(a)===93?a>o+1?i.definitions.has(Or(e.slice(o+1,a)))?a+1:-1:c&&i.definitions.has(Or(e.slice(t,n)))?a+1:-1:-1}if(s===40){let t=ua(e,o,r);if(t>=0)return t}return c&&i.definitions.has(Or(e.slice(t,n)))?o:-1}var La=3,Ra=4,za=4,Ba=6,Va=3,Ha=3,Ua=2,Wa=9,Ga=4,Ka=999,qa=100,Ja=1024,Ya=1,Xa=!1,Za=!1,Qa=!1,$a=0,eo,to,no=!1,ro,io=0,ao=new Int32Array(Ja),oo=new Int32Array(Ja),so=[],co,lo=0,uo=0;function fo(){Qa=!1,co=void 0,$a=0,eo=void 0,to=void 0,ro=void 0,io=0,so.length=0}function po(e,t){if(io===ao.length){let e=new Int32Array(io*2);e.set(ao),ao=e;let t=new Int32Array(io*2);t.set(oo),oo=t}so[io]=e,ao[io]=t,oo[io++]=0}function mo(e,t=0){let n=[],r=0;for(;r<Ar&&kr[r]<t;)r++;for(let t=r;t<Ar;t++){let r=kr[t],i=t+1<Ar?kr[t+1]:e.length,a=i;e.charCodeAt(a-1)===10&&a--,e.charCodeAt(a-1)===13&&a--,n.push({start:r,end:a,next:i})}return n}function L(e,t){let n=t.start,r=t.padding??0;for(;n<t.end&&M(e.charCodeAt(n));)r+=e.charCodeAt(n)===9?vo(e,n):1,n++;return{start:n,indent:r}}function R(e,t){return L(e,t).start===t.end}function ho(e,t,n,r){if(R(e,t[0])&&M(e.charCodeAt(n-1)))return!1;for(let n=1;n<t.length&&t[n].start<r;n++)if(R(e,t[n]))return!1;return!0}function go(e,t,n){for(;n>t&&M(e.charCodeAt(n-1));)n--;return n}function _o(e,t,n){let r=t.start,i=t.padding??0;if(i>=n)return{...t,padding:i-n};for(;r<t.end&&i<n&&M(e.charCodeAt(r));)i+=e.charCodeAt(r)===9?vo(e,r):1,r++;return{start:r,end:t.end,next:t.next,padding:Math.max(0,i-n),lazy:t.lazy}}function vo(e,t){let n=t;for(;n&&e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13;)n--;let r=0;for(let i=n;i<t;i++)r+=e.charCodeAt(i)===9?er-r%er:1;return er-r%er}function yo(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La)return!1;let i=e.charCodeAt(r.start);if(i!==42&&i!==45&&i!==95)return!1;let a=0;for(let n=r.start;n<t.end;n++){let t=e.charCodeAt(n);if(t===i)a++;else if(!M(t))return!1}return a>=Va}function bo(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La||e.charCodeAt(r.start)!==35)return;let i=r.start;for(;e.charCodeAt(i)===35;)i++;let a=i-r.start;if(a>Ba||i<t.end&&!M(e.charCodeAt(i)))return;for(;M(e.charCodeAt(i));)i++;let o=i,s=go(e,o,t.end),c=s;for(;c>o&&e.charCodeAt(c-1)===35;)c--;return(c===o||c<s&&M(e.charCodeAt(c-1)))&&(s=go(e,o,c)),{start:r.start,content:o,end:s,depth:a}}function xo(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La)return 0;let i=e.charCodeAt(r.start);if(i!==45&&i!==61)return 0;let a=r.start;for(;e.charCodeAt(a)===i;)a++;if(a===r.start)return 0;for(;M(e.charCodeAt(a));)a++;return a===t.end?i===61?1:2:0}function So(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La)return;let i=e.charCodeAt(r.start),a=i===36;if(i!==96&&i!==126&&!(a&&Za))return;let o=r.start;for(;e.charCodeAt(o)===i;)o++;if(!(o-r.start<(a?Ua:Ha))){if(i!==126){for(let n=o;n<t.end;n++)if(e.charCodeAt(n)===i)return}return{start:r.start,content:o,char:i,length:o-r.start,indent:r.indent}}}function Co(e,t,n=Xa){let r=L(e,t);if(Qa||!n&&r.indent>La)return;let i=r.start,a=e.charCodeAt(i),o=0,s=!1;if(Sr(a)){for(s=!0;Sr(e.charCodeAt(i))&&i-r.start<Wa;)o=o*10+e.charCodeAt(i++)-48;if(e.charCodeAt(i)!==46&&e.charCodeAt(i)!==41)return;i++}else if(a===42||a===43||a===45)i++;else return;if(i<t.end&&!M(e.charCodeAt(i)))return;let c=i,l=0;for(;i<t.end&&M(e.charCodeAt(i));)l+=e.charCodeAt(i)===9?vo(e,i):1,i++;let u=0,d=i===t.end;return(!n&&l>Ga||d)&&(u=e.charCodeAt(c)===9?vo(e,c)-1:0,i=c<t.end?c+1:c,l=1),{start:r.start,content:i,prefix:d?c:i,indent:r.indent+c-r.start+(l||1),ordered:s,number:o,char:e.charCodeAt(c-1),padding:u}}function wo(e,t,n=Xa){let r=L(e,t);if(Qa||!n&&r.indent>La||e.charCodeAt(r.start)!==62)return-1;let i=r.start+1;return M(e.charCodeAt(i))&&i++,i}var To=/* @__PURE__ */ new Set(/* @__PURE__ */ `address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)),Eo=/<\/(?:script|pre|style|textarea)>/i;function Do(e,t,n){let r=L(e,t),i=r.start;if(r.indent>La||e.charCodeAt(i)!==60)return;if(e.startsWith(`<!--`,i))return{start:i,until:`-->`};if(e.startsWith(`<?`,i))return{start:i,until:`?>`};if(e.startsWith(`<![CDATA[`,i))return{start:i,until:`]]>`};if(e.charCodeAt(i+1)===33&&Cr(e.charCodeAt(i+2)))return{start:i,until:`>`};let a=i+1;e.charCodeAt(a)===47&&a++;let o=a;for(;Cr(e.charCodeAt(a))||Sr(e.charCodeAt(a));)a++;let s=e.slice(o,a).toLowerCase();if(M(e.charCodeAt(a))||e.charCodeAt(a)===62||e.charCodeAt(a)===47&&e.charCodeAt(a+1)===62||a===t.end){if(e.charCodeAt(i+1)!==47&&e.charCodeAt(a)!==47&&(s===`script`||s===`pre`||s===`style`||s===`textarea`))return{start:i,until:Eo};if(To.has(s))return{start:i,until:null}}if(!n){let n=xa(e,i,t.end,!0);if(n>0&&go(e,n,t.end)===n)return{start:i,until:null}}}function Oo(e,t){let n=e.source;return e.interrupt?.(t)||R(n,t)||yo(n,t)||bo(n,t)||So(n,t)?!0:!e.config.mdx&&!!Do(n,t,!0)}function ko(e,t){let n=e.source;if(Oo(e,t)||wo(n,t)>=0||e.config.gfm&&jo(n,t))return!0;let r=Co(n,t);return!!r&&(!r.ordered||n.charCodeAt(r.start)===49&&(n.charCodeAt(r.start+1)===46||n.charCodeAt(r.start+1)===41))&&!R(n,{start:r.content,end:t.end,next:t.next,padding:r.padding})}function Ao(e,t){return!!e.interrupt?.(t)&&(e.continuationEnd?.(t)??t.end)>t.end}function jo(e,t){let n=L(e,t);if(Qa||!Xa&&n.indent>La||!e.startsWith(`[^`,n.start))return;let r=n.start+2;for(;r<t.end;r++){let t=e.charCodeAt(r);if(M(t)||t===91)return;if(t===93)break;t===92&&e.charCodeAt(r+1)<$n&&xr(e.charCodeAt(r+1))&&r++}if(!(r===n.start+2||r-n.start>Ka+2||e.charCodeAt(r)!==93||e.charCodeAt(r+1)!==58))return{end:r+2,raw:e.slice(n.start+2,r)}}function Mo(){return $a>0}function No(e,t){let n=e.source;return wo(n,t)>=0||!!Co(n,t)&&!yo(n,t)||!!e.config.gfm&&!!jo(n,t)}function Po(e,t,n,r){let i=e.source,a=n<t.length?t[n]:r;return!a||a===eo||a.lazy||!Ko(i,a)&&!Fo(i,a)?!1:R(i,a)?a.start===a.end&&!a.padding&&a.end===i.length:No(e,a)}function Fo(e,t){let n=ro;if(!n||!t||t.lazy)return!1;let r=1,i=n.length-1;for(;r<=i;){let a=r+i>>1,o=n[a];if(o.next<t.next)r=a+1;else if(o.next>t.next)i=a-1;else return!o.lazy&&!R(e,o)}return!1}function Io(e,t,n,r,i,a,o,s){if(!ro)return!1;let c=e.source,l=o?Fo(c,t[n])&&o.prefix:Po(e,t,n,s)?Fo(c,t[n]??s)&&(t[n]??s).start:n>r+1&&Ko(c,t[n-1])&&Fo(c,t[n-1])&&t[n-1].end;if(l===!1)return!1;if(P.end[i]<=t[r].end)for(let e=r+1;e<n;e++)t[e].end<l&&R(c,t[e])&&(P.a[i]=1);return P.end[i]=l,P.end[a]=l,!0}function Lo(e,t){return e.config.mdx||!Do(e.source,t,!1)?1:t.next===t.end?0:2}function Ro(e,t,n){let r=e.source,i=!1;for(let a=0;a<qa;a++){let a=wo(r,t),o=a<0?Co(r,t):void 0,s=a<0&&!o&&e.config.gfm?jo(r,t):void 0;if(a<0&&!o&&!s)break;i=!!o;let c=o?{start:o.content,end:t.end,next:t.next,padding:o.padding}:s?{start:s.end,end:t.end,next:t.next}:{start:a,end:t.end,next:t.next,padding:zo(r,a)};if(n.start===t.start)n={...c,end:n.end,next:n.next};else if(o||s){let e=o?o.indent:za;if(L(r,n).indent<e)return{line:n,lazy:!0,list:i};n=_o(r,n,e)}else{let e=wo(r,n);if(e<0)return{line:n,lazy:!0,list:i};n={start:e,end:n.end,next:n.next,padding:zo(r,e)}}t=c}return{line:n,lazy:!1,list:i}}function zo(e,t){return e.charCodeAt(t-1)===9?vo(e,t-1)-1:0}function Bo(e,t,n,r,i){let a=e.source,o=i.start;for(;o<i.end&&a.charCodeAt(o)!==45;)o++;if(o===i.end)return!1;let s=Wo(e,t,n,i);if(s.lazy)return!1;let c=Wo(e,t,n,r).line;return R(a,c)||e.interrupt?.(c)?!1:!!ts(e,[c,s.line],0)}function Vo(e,t,n,r){let i=Wo(e,t,n,r);return!i.lazy&&!R(e.source,i.line)&&!ko(e,i.line)&&!Co(e.source,i.line)}function Ho(e,t){let n=t.start;for(;M(e.charCodeAt(n));)n++;let r=e.charCodeAt(n);return r===62||r===45||r===42||r===43||r===91||r>=48&&r<=57}function Uo(e,t,n,r){let i=e.source;if(!r){if(t!==n){let r=Ro(e,t,t);if(r.list&&R(i,r.line)&&!Ro(e,t,n).lazy)return t}return n}return ko(e,Ro(e,t,n).line)?n:t}function Wo(e,t,n,r){if(t&&t!==n&&Ho(e.source,t)){let i=Ro(e,t,n);if(!i.lazy&&i.line.start!==n.start){let n=Ro(e,t,r);return n.lazy||!Ho(e.source,i.line)?n:Ro(e,i.line,n.line)}}return Ro(e,n,r)}function Go(e,t,n=!1,r=0,i=!1){let a=e.source,o=t;no=!1;for(let s=0;s<qa;s++){let c=s===0&&r===3;if(R(a,o))return c?3:0;if(!e.config.mdx&&L(a,o).indent>=Ra)return s===0&&!i&&r!==1?3:0;if(yo(a,o)||bo(a,o)||So(a,o)||e.interrupt?.(o)||!e.config.mdx&&Do(a,o,!1))return 0;let l=wo(a,o),u=l<0?Co(a,o):void 0;if(u&&(no=!0),u&&(n||c)&&(R(a,{start:u.content,end:t.end,next:t.next})||u.ordered&&(a.charCodeAt(u.start)!==49||a.charCodeAt(u.start+1)!==46&&a.charCodeAt(u.start+1)!==41)))return 1;let d=l>=0?l:u?.content;if(d===void 0)return 1;o={start:d,end:t.end,next:t.next}}return 0}function Ko(e,t){for(let n=t.start-1;n>=0&&e.charCodeAt(n)!==10&&e.charCodeAt(n)!==13;n--)if(e.charCodeAt(n)===62)return!0;return!1}function qo(e,t,n=!0){let r=!0;for(let e=0;e<t.length;e++)if((!n||e>0)&&t[e].padding||e>0&&t[e].start!==t[e-1].next){r=!1;break}if(r&&t.length){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,t[t.length-1].end),base:i}}if(t.length===1&&(n||!t[0].padding)){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,r.end),base:i}}let i=0;for(let r=0;r<t.length;r++){let a=t[r],o=n&&r===0?L(e,a).start:a.start;i+=a.end-o+(n&&r===0?0:a.padding??0)+(r+1<t.length?a.next-a.end:0)}let a=new Int32Array(i+1),o=``,s=0;for(let r=0;r<t.length;r++){let i=t[r],c=n&&r===0?L(e,i).start:i.start,l=r+1<t.length?i.next:i.end;if((!n||r>0)&&i.padding){o+=` `.repeat(i.padding);for(let e=0;e<i.padding;e++)a[s++]=c-1}o+=e.slice(c,l);for(let e=c;e<l;e++)a[s++]=e;a[s]=l}return{source:o,base:0,map:a}}function Jo(e,t,n){po(qo(e.source,n),t)}function Yo(e,t,n,r,i=!1){let a=e.source,o=t[n],s=L(a,o);if(!i&&!Xa&&s.indent>La||a.charCodeAt(s.start)!==91)return 0;for(let e=s.start+1;e<o.end;e++){let t=a.charCodeAt(e);if(t===92)e++;else{if(t===91)return 0;if(t===93){if(a.charCodeAt(e+1)!==58)return 0;break}}}if(ts(e,t,n))return 0;let c=n+1;if(t===co&&n>=lo&&n<uo)c=uo;else{for(co=t,lo=n;c<t.length&&!R(a,t[c])&&!ko(e,t[c])&&!xo(a,t[c])&&!ts(e,t,c,!0);)c++;uo=c}for(let i=2;;i*=2){let a=Xo(e,t,n,Math.min(c,n+i),c,r,s);if(a>=0)return a}}function Xo(e,t,n,r,i,a,o){let s=e.source,c=t[n],l=qo(s,t.slice(n,r),!1),u=l.source,d=r<i,f=o.start-c.start+(c.padding??0)+1,p=f;for(;f<u.length&&f-p<=Ka&&u.charCodeAt(f)!==93&&u.charCodeAt(f)!==91;)u.charCodeAt(f)===92&&f++,f++;if(d&&f+1>=u.length)return-1;if(f-p>Ka||f===p||u.charCodeAt(f)!==93||u.charCodeAt(f+1)!==58)return 0;let m=u.slice(p,f),h=Or(m);if(!h)return 0;for(f+=2;M(u.charCodeAt(f));)f++;if(u.charCodeAt(f)===10||u.charCodeAt(f)===13)for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&!Zo(u,f))return-1;let g=ra(u,f,u.length);if(!g||g.end===f)return 0;f=g.end;let _=f;for(;M(u.charCodeAt(f));)f++;let v=null,y=f,b=u.charCodeAt(f)===10||u.charCodeAt(f)===13;if(b){for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&f>=u.length)return-1}if(f>_){let e=aa(u,f,u.length);if(e){let t=e.end;for(;M(u.charCodeAt(t));)t++;if(d&&t>=u.length)return-1;if(t===u.length||u.charCodeAt(t)===10||u.charCodeAt(t)===13)v=e.value||null,y=t;else if(!b)return 0}else{let e=u.charCodeAt(f);if(d&&(e===34||e===39||e===40))return-1;if(!b&&f<u.length)return 0}}else if(f<u.length)return 0;let x=I(l,y),S=1;for(;n+S<t.length&&t[n+S-1].end<x;)S++;if(S>i-n)return 0;let ee={identifier:h,label:Dr(m),url:g.value,title:v},te=F(N.Definition,o.start,x,a);return P.extra[te]=ee,e.definitions.has(h)||e.definitions.set(h,ee),S}function Zo(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Qo(e,t){let n=L(e,t).start,r=go(e,n,t.end);if(e.charCodeAt(n)===124&&n++,e.charCodeAt(r-1)===124){let t=0;for(let i=r-2;i>=n&&e.charCodeAt(i)===92;i--)t++;t&1||r--}let i=[],a=n;for(let t=n;t<r;t++)e.charCodeAt(t)===92&&(e.charCodeAt(t+1)===124||e.charCodeAt(t+1)===92)?t++:e.charCodeAt(t)===124&&(i.push([a,t]),a=t+1);return i.push([a,r]),i}function $o(e,t){let n=L(e,t);if(!Xa&&n.indent>La)return;let r=e.charCodeAt(n.start);if(r!==45&&r!==58&&r!==124)return;let i=Qo(e,t),a=[];for(let t of i){let n=t[0],r=go(e,n,t[1]);for(;M(e.charCodeAt(n));)n++;let i=e.charCodeAt(n)===58;i&&n++;let o=n;for(;e.charCodeAt(n)===45;)n++;if(n===o)return;let s=e.charCodeAt(n)===58;if(s&&n++,n!==r)return;a.push(i?s?`center`:`left`:s?`right`:null)}return a}function es(e,t,n){let r=e.source,i=F(N.TableRow,L(r,t).start,t.end,n),a=Qo(r,t);for(let e=0;e<a.length;e++){let[n,o]=a[e],s=F(N.TableCell,e===0?L(r,t).start:n-1,e+1===a.length?t.end:o,i),c=n;for(;M(r.charCodeAt(c));)c++;let l=go(r,c,o);po({source:r.slice(c,l),base:c,table:!0},s)}}function ts(e,t,n,r=!1){if(!e.config.gfm||!t[n+1]||t[n+1].lazy||t[n]===to)return;let i=e.source,a=$o(i,t[n+1]);if(!a)return;let o=t[n];if(!Xa&&L(i,o).indent>=Ra||Co(i,o)&&(!r||ko(e,o))||wo(i,o)>=0||jo(i,o)||!r&&!Xa&&Do(i,o,!1)||xo(e.source,t[n+1])||Co(e.source,t[n+1]))return;let s=Qo(e.source,t[n]);if(s.length===a.length&&!(s.length===1&&s[0][0]>s[0][1]))return a}function ns(e,t){let n=P.last[e];for(;n&&(P.kind[n]===N.Blockquote||P.kind[n]===N.List||P.kind[n]===N.ListItem||P.kind[n]===N.FootnoteDefinition);)n=P.last[n];return!!n&&P.kind[n]===N.Table&&P.end[n]===t}function rs(e,t,n,r,i){let a=ts(e,t,n,i);if(!a||!Xa&&Do(e.source,t[n],!1))return 0;let o=e.source,s=F(N.Table,L(o,t[n]).start,t[n+1].end,r);P.extra[s]=a,es(e,t[n],s);let c=n+2;for(;c<t.length&&!t[c].lazy&&!ko(e,t[c])&&!e.esm?.(t[c])&&!Co(o,t[c])&&(Xa||L(o,t[c]).indent<Ra)&&(e.config.mdx||!Do(o,t[c],!1));c++)es(e,t[c],s),P.end[s]=t[c].end;return c-n}function is(e,t,n){let r=e.config.frontmatter;if(!r||!t.length)return 0;let i=e.source,a=t[0],o=i.charCodeAt(a.start),s=o===45&&r.yaml,c=o===43&&r.toml;if(!s&&!c||go(i,a.start,a.end)-a.start!==3||i.charCodeAt(a.start+1)!==o||i.charCodeAt(a.start+2)!==o)return 0;for(let e=1;e<t.length;e++){let r=t[e];if(go(i,r.start,r.end)-r.start!==3||i.charCodeAt(r.start)!==o||i.charCodeAt(r.start+1)!==o||i.charCodeAt(r.start+2)!==o)continue;let c=F(s?N.Yaml:N.Toml,a.start,r.end,n);return P.value[c]=i.slice(a.next,e===1?a.next:t[e-1].end),e+1}return Qa=!0,0}function as(e,t,n,r,i,a){let o=e.source,s=t[n],c=n+1,l=!1,u=[];for(;c<t.length;c++){let e=t[c];if(e.lazy)break;let n=L(o,e),r=n.start;for(;o.charCodeAt(r)===i.char;)r++;if((Xa||n.indent<=La)&&r-n.start>=i.length&&go(o,r,e.end)===r){l=!0;break}u.push(_o(o,e,i.indent))}let d=l?t[c]:t[Math.max(n,c-1)],f=!t[c]?.lazy&&a&&No(e,a),p=P.kind[r]===N.Root||!!f||(P.kind[r]===N.ListItem||P.kind[r]===N.FootnoteDefinition)&&d.next===o.length&&!$a,m=!l&&c>n+1&&d.start===d.end&&d.end===o.length&&!d.padding,h=i.char===36,g=F(h?N.Math:N.Code,i.start,m?t[c-2].next:l||!p?d.end:d.next,r);m&&(P.end[r]=Math.max(P.end[r],d.end));let _=i.content;for(;M(o.charCodeAt(_));)_++;let v=_;for(;v<s.end&&!M(o.charCodeAt(v));)v++;let y=v;for(;M(o.charCodeAt(y));)y++;P.extra[g]=h?_===s.end?null:Dr(o.slice(_,s.end)):{lang:_===s.end?null:Dr(o.slice(_,v)),meta:y===s.end?null:Dr(o.slice(y,s.end))},P.value[g]=u.length?qo(o,u,!1).source:``;let b=u[u.length-1];if(!l&&b&&(!p&&R(o,d)||b.start===b.end&&b.end===o.length)){let e=P.value[g];e.charCodeAt(e.length-1)===10?P.value[g]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[g]=e.slice(0,-1))}let x=u[0];return x&&x.start===x.end&&!x.padding&&o.charCodeAt(s.end)===13&&s.next===s.end+1&&P.value[g].charCodeAt(0)===10&&(P.value[g]=P.value[g].slice(1)),(l||p)&&u.length>1&&b.start===b.end&&!b.padding&&o.charCodeAt(b.end)===10&&P.value[g].charCodeAt(P.value[g].length-1)===13&&(P.value[g]=P.value[g].slice(0,-1)),c-n+ +!!l}function os(e,t,n,r,i,a){let o=e.source,s=t[n],c=n,l=!1;for(;c<t.length&&!(c>n&&(s.lazy||t[c].lazy)||!i.until&&R(o,t[c]));c++)if(i.until){let e=o.slice(t[c].start,t[c].end);if(typeof i.until==`string`?e.includes(i.until):i.until.test(e)){l=!0,c++;break}}let u=t[c-1],d=a&&No(e,a),f=i.until&&!l&&(P.kind[r]===N.Root||d||u.next===o.length)&&c===t.length,p=F(N.Html,s.start,f?u.next:u.end,r),m=t.slice(n,c);return P.value[p]=qo(o,m,!1).source,f&&(P.value[p]+=o.slice(u.end,u.next)),c-n}function ss(e,t,n,r,i,a,o,s,c){let l=e.source,u=t[n],d=i.raw,f=Or(d),p=i.end;for(;M(l.charCodeAt(p));)p++;let m=[{start:p,end:u.end,next:u.next}],h=n+1,g=n,_=Go(e,m[0],o>0),v=no,y=m[0],b,x=!1,S;for(;h<t.length;h++){let n=L(l,t[h]),r=n.indent;if(n.start===t[h].end)m.push(t[h]),_!==3&&(_=0),x=!1;else if(!t[h].lazy&&(r>=za||s&&r===0)){let n=r>=za?_o(l,t[h],za):t[h];if(x?(x=Vo(e,b,y,n),x||(S=n)):e.config.gfm&&m[m.length-1]!==S&&Bo(e,b,y,m[m.length-1],n)&&(x=!0),!x){let t=Uo(e,y,n,_===1);t!==y&&(b=y,y=t)}m.push(n),g=h,_=x?0:Go(e,n,_===1,_,v),v||=no}else if(_===1&&(!ko(e,t[h])&&!Co(l,t[h])||Ao(e,t[h]))){let n=Lo(e,t[h]);if(n===0)break;if(m.push({...t[h],lazy:!0}),g=h,n===2){h++;break}}else break}let ee=t[g].end;h>g+1&&Ko(l,t[h-1])&&(ee=t[h-1].end),Po(e,t,h,c)&&(ee=(t[h]??c).start);let te=F(N.FootnoteDefinition,a,ee,r);P.extra[te]={identifier:f,label:Dr(d)},e.footnotes.add(f);let ne=ro;ro??=m;let re=ds(e,m,te,!1,o,t[h]??c);return ro=ne,re<m.length&&(h=n+re,P.end[te]=t[h-1].end),ts(e,t,h)&&ns(te,t[h-1].end)&&(to=t[h]),P.last[te]&&(P.end[te]=Math.max(P.end[te],P.end[P.last[te]])),h-n}function cs(e,t,n){for(let r=P.child[n];r;r=P.next[r]){let n,i;if(P.kind[r]===N.Mdx&&P.extra[r]?.type===`mdxJsxFlowElement`)n=P.a[r],i=P.b[r];else if(P.kind[r]===N.FootnoteDefinition){let t=P.child[r]?P.start[P.child[r]]:P.end[r];for(let n=P.start[r];n<t;n++)if(e.charCodeAt(n)===10||e.charCodeAt(n)===13)return!0;n=P.start[r],i=P.end[r]}else continue;for(let i=P.child[r];i;i=P.next[i]){for(let r of t)if(r.end>n&&r.end<=P.start[i]&&R(e,r))return!0;n=P.end[i]}for(let a of t)if(a.end>n&&(P.kind[r]===N.FootnoteDefinition?a.end<a.next&&a.next<=i:a.end<=i)&&R(e,a))return!0;if(cs(e,t,r))return!0}return!1}function ls(e,t,n,r,i){let a=e.source,o=n,s=0,c=!1,l=!1,u,d,f;for(;o<t.length;o++){let p=t[o],m=wo(a,p);if(m>=0){let t={start:m,end:p.end,next:p.next,padding:zo(a,m),lazy:p.lazy};if(l&&d?(l=Vo(e,f,d,t),l||(u=t)):e.config.gfm&&d&&i[i.length-1]!==u&&Bo(e,f,d,i[i.length-1],t)&&(l=!0),!l){let n=Uo(e,d??t,t,s===1);n!==d&&(f=d,d=n)}i.push(t),s=l?0:Go(e,t,s===1||o===n&&r>0,s,c),c||=no}else if(s===1&&(!ko(e,p)&&!Co(a,p)||Ao(e,p))){let t=Lo(e,p);if(t===0)break;if(i.push({...p,lazy:!0}),t===2){o++;break}}else break}return o}function us(e,t,n,r){let i=t[n],a=P.last[r];if(!a||!Ko(e,i)||!(P.kind[a]===N.Blockquote&&i.next===e.length&&i.end===i.next&&i.start===i.end&&!i.padding&&n>0&&!R(e,t[n-1])||P.kind[a]===N.List||P.kind[a]===N.FootnoteDefinition))return;let o=P.kind[a]===N.List?P.last[a]:0;if(o&&Fo(e,i)){let r=P.last[o];n>0&&R(e,t[n-1])&&(r?P.end[r]:P.start[o])<t[n-1].end&&(P.a[o]=1),P.end[o]=i.end}else o&&n>0&&R(e,t[n-1])&&P.end[o]<t[n-1].end&&(P.extra[a]=!0);P.end[a]=i.end}function ds(e,t,n,r=!1,i=0,a){Xa=!!e.config.mdx,Za=!!e.config.math;let o=n,s=e.source,c=r?is(e,t,n):0,l=i===2?1:i,u=!1,d=0;for(;c<t.length;){n=e.flowParent?.(o)??o;let r=t[c];if(R(s,r)){us(s,t,c,n),l!==3&&(l=0),c++;continue}let i=L(s,r);if(e.flow){let n=e.flow(e,t,c,o,a);if(n){if(l=0,c+=n,t[c]?.lazy)return c;continue}}let f=bo(s,r);if(f){let t=F(N.Heading,f.start,r.end,n);P.a[t]=f.depth,Jo(e,t,[{start:f.content,end:f.end,next:f.end}]),l=0,c++;continue}let p=So(s,r);if(p){if(c+=as(e,t,c,n,p,a),t[c]?.lazy)return c;l=0;continue}if(!r.lazy&&yo(s,r)){F(N.ThematicBreak,i.start,r.end,n),l=0,c++;continue}let m=r.start<d;if((m?-1:wo(s,r))>=0){let o=P.last[n];if(o&&P.kind[o]===N.List&&Ko(s,r)){let e=P.last[o];c>0&&R(s,t[c-1])&&P.child[e]&&P.end[e]<=t[c-1].start&&(P.extra[o]=!0),P.end[o]=r.start}let d=[],f=ls(e,t,c,l,d),p=F(N.Blockquote,i.start,t[f-1].end,n);$a++;let m=ds(e,d,p,!1,l,t[f]??a);if($a--,m<d.length&&(f=c+m,P.end[p]=t[f-1].end),ts(e,t,f)&&ns(p,t[f-1].end)&&(to=t[f]),t[f]?.lazy)return f;let h=P.last[p];(Po(e,t,f,a)||h&&(t[f]??a)&&(t[f]??a)!==eo&&P.end[h]>t[f-1].end)&&(P.end[p]=(t[f]??a).start),P.last[p]&&(P.end[p]=Math.max(P.end[p],P.end[P.last[p]])),u=f<t.length&&!R(s,t[f]),l=0,c=f;continue}let h=e.config.gfm&&!m&&jo(s,r);if(h){if(c+=ss(e,t,c,n,h,i.start,l,P.kind[o]===N.FootnoteDefinition,a),t[c]?.lazy)return c;l=0;continue}let g=rs(e,t,c,n,l===1||l===2);if(g){c+=g,l=0;continue}let _=r.lazy||m?void 0:Co(s,r);if(_&&l&&(R(s,{start:_.content,end:r.end,next:r.next})||_.ordered&&(s.charCodeAt(_.start)!==49||s.charCodeAt(_.start+1)!==46&&s.charCodeAt(_.start+1)!==41))&&(_=void 0),_){let i=F(N.List,_.start,r.end,n);P.a[i]=+!!_.ordered,P.b[i]=_.number;let o=c,d=!1;for(;o<t.length;){let n=Co(s,t[o]);if(!n||n.ordered!==_.ordered||n.char!==_.char||yo(s,t[o]))break;let r=o,c=[{start:n.content,end:t[o].end,next:t[o].next,padding:n.padding}];o++;let u=Go(e,c[0],l>0),f=no,p=c[0],m,h=!1,g=r,v=!1,y=!1,b;for(;o<t.length;o++){let i=t[o];if(R(s,i)){if(g===r&&R(s,c[0])){let n=o+1;for(;n<t.length&&R(s,t[n]);)n++;let r=n<t.length?Co(s,t[n]):void 0;r&&r.char===_.char&&r.ordered===_.ordered?(Fo(s,t[n])||(d=!0),o=n):Po(e,t,n,a)&&(o=n);break}c.push(_o(s,i,n.indent)),h=!0,u!==3&&(u=0),y=!1;continue}let v=L(s,i);if(v.indent<n.indent&&Co(s,i)&&!i.lazy)break;if(!i.lazy&&v.indent>=n.indent){let t=_o(s,i,n.indent);if(y?(y=Vo(e,m,p,t),y||(b=t)):e.config.gfm&&c[c.length-1]!==b&&Bo(e,m,p,c[c.length-1],t)&&(y=!0),!y){let n=Uo(e,p,t,u===1);n!==p&&(m=p,p=n)}c.push(t),g=o,u=y?0:Go(e,t,u===1||l>0,u,f),f||=no,h=!1}else if(u===1&&(i.lazy||!ko(e,i)||Ao(e,i))){let t=Lo(e,i);if(t===0)break;if(c.push({...i,lazy:!0}),g=o,t===2){o++;break}}else break}let x=F(N.ListItem,n.start,t[g].end,i);P.a[x]=+!!v;let S=io,ee=o<t.length?Co(s,t[o]):void 0,te=eo;ee&&ee.ordered===_.ordered&&ee.char===_.char&&!yo(s,t[o])&&(eo=t[o]);let ne=ds(e,c,x,!1,l,t[o]??a);eo=te,ne<c.length&&(o=r+ne,g=o-1,P.end[x]=t[g].end),ts(e,t,o)&&ns(x,t[o-1].end)&&(to=t[o]),l=0;let re=o<t.length?Co(s,t[o]):void 0,ie=re&&re.ordered===_.ordered&&re.char===_.char&&!yo(s,t[o]);if(e.config.gfm){let e=P.child[x];for(;e&&P.kind[e]===N.Definition;)e=P.next[e];if(e&&P.kind[e]===N.Paragraph)for(let t=S;t<io;t++){if(ao[t]!==e)continue;let r=so[t].source,i=r.charCodeAt(1),a=i===13&&r.charCodeAt(2)===10?3:2,o=a+1;for(;M(r.charCodeAt(o));)o++;r.charCodeAt(0)===91&&(M(i)||i===10||i===13||i===120||i===88)&&r.charCodeAt(a)===93&&o<r.length&&(M(r.charCodeAt(a+1))||r.charCodeAt(a+1)===10||r.charCodeAt(a+1)===13)&&ho(s,c,n.content,P.start[e])&&(P.b[x]=i===120||i===88?2:1,oo[t]=a+1,P.a[e]=Ya);break}}for(let e=P.child[x];e&&P.next[e];e=P.next[e]){let n=P.next[e];for(let i=r;i<g;i++)t[i].end>P.end[e]&&t[i].next<=P.start[n]&&R(s,t[i])&&(v=!0)}if((e.config.mdx||e.config.gfm)&&cs(s,c,x)&&(v=!0),P.a[x]=+!!v,P.last[x]&&(P.end[x]=Math.max(P.end[x],P.end[P.last[x]])),ie&&P.last[x]&&(P.end[P.last[x]]===t[o].start||P.end[P.last[x]]===t[o-1].next)&&(P.end[x]=re.prefix),Io(e,t,o,g,x,i,ie?re:void 0,a)){if(!ie)break;continue}ie&&h&&P.end[x]<=t[g].end&&(d=!0),P.end[i]=P.end[x],!ie&&o>g+1&&Ko(s,t[o-1])&&(P.end[i]=t[o-1].end),!ie&&o>g+2&&Ko(s,t[o-1])&&P.end[x]<=t[g].end&&(d=!0),!ie&&Po(e,t,o,a)&&(P.end[i]=(t[o]??a).start,o>g+1&&P.end[x]<=t[g].end?d=!0:P.end[x]>t[g].end&&(P.end[x]=P.end[i]));let ae=t[o]??a;if(!ie&&ae&&ae!==eo&&P.end[x]>t[o-1].end&&ae.start>P.end[i]&&(P.end[i]=P.end[x]=ae.start),!ie)break}if(P.extra[i]=d,t[o]?.lazy)return o;let f=o;for(;f<t.length&&R(s,t[f]);)f++;u=f<t.length&&L(s,t[f]).indent>=Ra,l=0,c=o;continue}let v=P.last[n];if(v&&P.kind[v]===N.Definition&&c>0&&!R(s,t[c-1])){let r=Yo(e,t,c,n,!0);if(r){l=2,c+=r;continue}}if(!e.config.mdx&&i.indent>=Ra&&l!==2){let e=[],i=c,a=c;for(;i<t.length&&!(u&&i>c);i++){let n=t[i];if(R(s,n))e.push(_o(s,n,Ra));else if(L(s,n).indent>=Ra)e.push(_o(s,n,Ra)),a=i;else break}let o=a;for(let e=a+1;e<i;e++)L(s,t[e]).indent>=Ra&&(o=e);e.length=o-c+1;let d=F(N.Code,r.start,t[o].end,n);if(P.value[d]=qo(s,e,!1).source,R(s,e[e.length-1])){let e=P.value[d];e.charCodeAt(e.length-1)===10?P.value[d]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[d]=e.slice(0,-1))}l=u?0:3,u=!1,c=i;continue}let y=!e.config.mdx&&Do(s,r,l===2&&!r.lazy&&!ts(e,t,c,!0));if(y){if(c+=os(e,t,c,n,y,a),t[c]?.lazy)return c;l=0;continue}let b=Yo(e,t,c,n);if(b){l=2,c+=b;continue}let x=[r];e.continuationEnd&&(d=Math.max(d,e.continuationEnd(r,e,t,c,a)));let S=c+1,ee=0;for(;S<t.length&&(ee=t[S].lazy?0:xo(s,t[S]),!ee);S++){let n=e.continuation?.(e,t,S,a);if(n)break;if(t[S].start<d){if(n===void 0&&Oo(e,t[S]))break}else{if(n===void 0&&!t[S].lazy&&ko(e,t[S])||t[S].lazy&&!e.config.mdx&&Do(s,t[S],!1)||n===void 0&&t[S].lazy&&Ao(e,t[S]))break;e.continuationEnd&&(d=e.continuationEnd(t[S],e,t,S,a))}if(ts(e,t,S,!0))break;x.push(t[S])}let te=i.start;if(ee&&!xo(s,r)){let e=P.last[n],r=c-1;for(;e&&P.kind[e]===N.Definition&&r>=0&&!R(s,t[r]);)te=P.start[e],e=P.prev[e],r--}let ne=F(ee?N.Heading:N.Paragraph,te,ee?t[S].end:t[S-1].end,n);if(P.a[ne]=ee,Jo(e,ne,x),l=+!ee,c=S+ +!!ee,ee&&t[c]?.lazy)return c}return t.length}function fs(e){for(let t=0;t<io;t++){let n=so[t],r=ao[t];if(Ma(n,oo[t],n.source.length,r,e),so[t]=void 0,P.kind[r]===N.Paragraph&&P.a[r]===Ya){let t=P.child[r];if(t&&P.kind[t]===N.Text){if(P.value[t]=P.value[t].slice(1),!P.value[t])P.child[r]=P.next[t],P.next[t]?P.prev[P.next[t]]=0:P.last[r]=0;else{if(e.config.positions){let e=Fr(P.start[t]),n={line:e.line,column:e.column+1,offset:e.offset+1};P.extra[t]=P.extra[r]={positionStart:n}}P.start[t]++,P.start[r]=P.start[t]}}}}}function ps(e=[],t=!0){let n={gfm:void 0,mdx:void 0,frontmatter:void 0,positions:t};for(let t of e)t.name===`gfm`?n.gfm=t:t.name===`mdx`?n.mdx=t:t.name===`frontmatter`?n.frontmatter=t:t.name===`headingId`?n.headingId=t:t.name===`math`&&(n.math=t);return n}var ms=class extends Error{name;reason;place;line;column;ruleId;source;url;fatal=!0;constructor(e){super(e.reason,{cause:e.cause}),this.name=e.place?`${e.place.line}:${e.place.column}`:`1:1`,this.reason=e.reason,this.place=e.place,this.line=e.place?.line,this.column=e.place?.column,this.ruleId=e.ruleId,this.source=e.source,this.url=e.url}},hs=2024,gs=4,_s=2,vs=1,ys=2,bs="Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",xs={ecmaVersion:hs,sourceType:`module`,locations:!0,preserveParens:!0};function Ss(e){let t=0,n=``;for(;;){let r=e.indexOf(`/*`,t);if(r<0)break;let i=e.indexOf(`*/`,r+2);if(i<0)break;n+=e.slice(t,r),t=i+2}t&&(e=n+e.slice(t));for(let t=0;t<e.length;){let n=e.charCodeAt(t);if(br(n))t++;else{if(n!==47)return!1;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&e.charCodeAt(t)!==10&&e.charCodeAt(t)!==13;)t++;if(t===e.length)return!1}else return!1}}return!0}function Cs(e,t,n,r=`micromark-extension-mdx-expression`){throw new ms({reason:e,place:Fr(t),ruleId:n,source:r})}function ws(e,t){if(e&&typeof e==`object`){if(typeof e.type==`string`&&typeof e.start==`number`){let n=Fr(t(e.start)),r=Fr(t(e.end));e.start=n.offset,e.end=r.offset,e.loc={start:{line:n.line,column:n.column-1,offset:n.offset},end:{line:r.line,column:r.column-1,offset:r.offset}},e.range=[n.offset,r.offset]}for(let n of Object.keys(e)){if(n===`loc`||n===`range`)continue;let r=e[n];if(Array.isArray(r))for(let e=0;e<r.length;e++)ws(r[e],t),r[e]?.type===`ParenthesizedExpression`&&(r[e]=r[e].expression);else r&&typeof r==`object`&&(ws(r,t),r.type===`ParenthesizedExpression`&&(e[n]=r.expression))}}}function Ts(e,t,n,r=!1,i=!1,a=!0){let o=[],s=i?`({`:``,c=i?`})`:``,l=s+e+c,u=r&&Ss(e);u&&!a&&Cs(`Unexpected empty expression`,n(0),`unexpected-empty-expression`);let d=t=>n(Math.max(0,Math.min(e.length,t-s.length))),f;try{f=r&&!u?t.acorn.parseExpressionAt(l,0,{...xs,onComment:o}):t.acorn.parse(l,{...xs,onComment:o})}catch(t){return{error:{cause:t,at:d(t.pos)},swallow:t.raisedAt>=s.length+e.length||t.message.startsWith(`Unterminated comment`)}}if(r&&!u){let n=l.slice(f.end,l.length-c.length);if(!Ss(n))return{error:{at:d(f.end)},swallow:n.trimStart()[0]===`/`};if(!t.estree&&!i)return{program:f};f={type:`Program`,start:0,end:s.length+e.length,body:[{type:`ExpressionStatement`,expression:f,start:0,end:s.length+e.length}],sourceType:`module`,comments:[]}}if(f.comments=o,(t.estree||i||!r)&&ws(f,d),i){let e=f.body[0];(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`)&&Cs("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",e.start,`non-spread`);let t=e.expression.properties;t[1]&&Cs(`Unexpected extra content in spread: only a single spread is supported`,t[1].start,`spread-extra`),t[0]&&t[0].type!==`SpreadElement`&&Cs("Unexpected `"+t[0].type+"` in code: only spread elements are supported",t[0].start,`non-spread`)}return{program:f}}function Es(e,t,n){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t===125)return n;if(t===123||t===34||t===39||t===96||t===47)break}try{let r=n.acorn.tokenizer(e.slice(t),xs),i=0;for(;;){let e=r.getToken(),n=e.type.label;if(n===`eof`)return-1;if(n===`{`||n==="${")i++;else if(n===`}`){if(!i)return t+e.start;i--}}}catch{return-1}}var Ds=/* @__PURE__ */ new WeakMap;function Os(e,t){let n=Ds.get(e);return n?(t<n.from||n.at>=0&&t>n.at)&&(n.at=e.source.indexOf(`}`,t)):Ds.set(e,n={from:t,at:e.source.indexOf(`}`,t)}),n.from=t,n.at}function ks(e,t,n,r){let i=e.source,a=t+1,o=0;for(let s=2;;s*=2,a++){for(;a<n;a++){let e=i.charCodeAt(a);if((e===10||e===13&&i.charCodeAt(a+1)!==10)&&++o===s)break}if(a>=n||2*(a-t)>n-t)return;let c=Is(e,t+1,a,!0,!1),l=Ts(c.value,r,c.map,!0,!1,!0);if(l.error&&!l.swallow)return l.error}}var As=/* @__PURE__ */ new WeakMap,js=``;function Ms(e){js=e}function Ns(e,t){return e.source.charCodeAt(t)===32&&js.charCodeAt(I(e,t))===9}function Ps(e,t){return I(e,t)+ +!!Ns(e,t)}function Fs(e,t,n,r,i=!1,a=!0){let o=t*gs+(i?_s:0)+(a?vs:0),s=As.get(e)?.get(o);if(s&&s.end<=n)return s;let c=e.source,l,u=Os(e,t+1),d=u>=0&&u<n;if(d&&!i&&(l=ks(e,t,u,r)),d&&!l){let s=Es(c.slice(0,n),t+1,r),d=s>=0?s:u;for(let s=d;s<n;s++){if(c.charCodeAt(s)!==125)continue;let n=Is(e,t+1,s,!0),u=n.virtual?Is(e,t+1,s,!0,!1):n,d=Ts(u.value,r,u.map,!0,i,a);if(d.program){let t={end:s+1,value:n.value};r.estree&&(t.data={estree:d.program});let i=As.get(e);return i||(i=/* @__PURE__ */ new Map,As.set(e,i)),i.set(o,t),t}if(l=d.error,!d.swallow)break}}let f=-1;for(let r of e.lazy??[])r>t&&r<n&&(f<0||r<f)&&(f=r);f>=0&&Cs(bs,Ps(e,f),`unexpected-lazy`),e.boundary!==void 0&&Cs(bs,e.boundary,`unexpected-lazy`),l&&Cs(`Could not parse expression with acorn`,l.at,`acorn`),Cs("Unexpected end of file in expression, expected a corresponding closing brace for `{`",I(e,n),`unexpected-eof`)}function Is(e,t,n,r,i=!0){let a=[],o=``,s=!1,c=I(e,t);for(let l=t;l<=n&&(e.lazy?.has(l)&&Cs(bs,Ps(e,l),`unexpected-lazy`),l!==n);l++){let t=e.source.charCodeAt(l);if(a.push(I(e,l)),o+=e.source[l],c=I(e,l)+1,r&&(t===10||t===13&&e.source.charCodeAt(l+1)!==10)){e.lazy?.has(l+1)&&Cs(bs,Ps(e,l+1),`unexpected-lazy`);let t=0,r=0,u=0;for(;l+1<n&&M(e.source.charCodeAt(l+1));){let n=I(e,l+1),i=e.source.charCodeAt(l+1)===9,a=Ns(e,l+1);if(t>=ys){if(!a)break;r++}else t+=i?vo(js,n):1,t>ys&&(r=t-ys);l++,u=n+1}if(r&&(s=!0,c=u,i)){o+=` `.repeat(r);for(let e=0;e<r;e++)a.push(u)}}}return a.push(c),{value:o,map:e=>a[e],virtual:s}}var Ls=e=>Cr(e)||e===36||e===95||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Start}`,`u`)).test(String.fromCharCode(e)),Rs=e=>Ls(e)||Sr(e)||e===45||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Continue}`,`u`)).test(String.fromCharCode(e)),zs="a character that can start a name, such as a letter, `$`, or `_`",Bs="a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag",Vs="a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag",Hs="an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag",Us="a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag";function Ws(e,t,n,r){let i=e.source;if(M(i.charCodeAt(t+1))||i.charCodeAt(t+1)===10||i.charCodeAt(t+1)===13)return;let a=t+1,o=()=>{e.lazy?.has(a)&&Cs("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Ps(e,a),`unexpected-lazy`,`micromark-extension-mdx-jsx`)},s=()=>{for(;a<n&&br(i.charCodeAt(a));)o(),a++;o()},c=(t,r)=>{a>=n&&e.boundary!==void 0&&Cs("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",e.boundary,`unexpected-lazy`,`micromark-extension-mdx-jsx`);let o=i.charCodeAt(a),s=a>=n,c=o===96?"` ` `":i[a];Cs(`Unexpected `+(s?`end of file`:"character `"+c+"` (U+"+o.toString(16).toUpperCase().padStart(4,`0`)+`)`)+` `+t+`, expected `+r,I(e,a),s?`unexpected-eof`:`unexpected-character`,`micromark-extension-mdx-jsx`)};s();let l=i.charCodeAt(a)===47;l&&(a++,s());let u=(e,t)=>{Ls(i.charCodeAt(a))||c(`before `+e,t);let r=a++;for(;a<n&&Rs(i.charCodeAt(a));)a++;return i.slice(r,a)},d=null;if(i.charCodeAt(a)!==62){let e=i.charCodeAt(a);d=u(`name`,zs+(e===33?" (note: to create a comment in MDX, use `{/* text */}`)":l&&(e===42||e===47)?` (note: JS comments in JSX tags are not supported in MDX)`:``));let t=`name`;for(;;){let e=i.charCodeAt(a);!br(e)&&(e===46&&t===`local name`||e===58&&t!==`name`||e!==46&&e!==58&&e!==47&&e!==62&&e!==123)&&c(`in `+t,Vs+(e===64&&t!==`local name`?" (note: to create a link in MDX, use `[text](url)`)":``)),s();let n=i.charCodeAt(a);if(n===46&&t!==`local name`||n===58&&t===`name`)a++,s(),t=n===46?`member name`:`local name`,d+=(n===46?`.`:`:`)+u(t,n===46?Bs:zs+(i.charCodeAt(a)===43||i.charCodeAt(a)>46&&i.charCodeAt(a)<58?" (note: to create a link in MDX, use `[text](url)`)":``));else{n!==47&&n!==62&&n!==123&&!Ls(n)&&c(`after `+t,Bs);break}}}let f=[],p=!1;for(;a<n&&i.charCodeAt(a)!==62;){s();let t=i.charCodeAt(a);if(t===62)break;if(t===47){l&&Cs("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",I(e,a),`unexpected-self-closing-slash`,`mdast-util-mdx-jsx`),p=!0,a++,s(),i.charCodeAt(a)!==62&&c(`after self-closing slash`,"`>` to end the tag"+(i.charCodeAt(a)===42||i.charCodeAt(a)===47?` (note: JS comments in JSX tags are not supported in MDX)`:``));break}let d=a;if(l&&Cs(`Unexpected attribute in closing tag, expected the end of the tag`,I(e,a),`unexpected-attribute`,`mdast-util-mdx-jsx`),t===123){let t=Fs(e,a,n,r,!0,!1);a=t.end;let i={type:`mdxJsxExpressionAttribute`,value:t.value};t.data&&(i.data=t.data);let o=Ir(I(e,d),I(e,a));o&&(i.position=o),f.push(i);continue}let m=u(`attribute name`,Bs),h=!1,g=i.charCodeAt(a);!br(g)&&g!==47&&g!==58&&g!==61&&g!==62&&g!==123&&c(`in attribute name`,Hs);let _=a;if(s(),i.charCodeAt(a)===58){h=!0,a++,s(),m+=`:`+u(`local attribute name`,Us),_=a;let e=i.charCodeAt(a);!br(e)&&e!==47&&e!==61&&e!==62&&e!==123&&c(`in local attribute name`,Hs),s()}let v=null;if(i.charCodeAt(a)===61){a++,s();let t=i.charCodeAt(a);if(t===34||t===39){for(a++,v=``;a<n&&i.charCodeAt(a)!==t;){o();let e=i.charCodeAt(a);if(e===38){let e=Tr(i,a,n);if(e){v+=e.value,a=e.end;continue}}if(v+=i[a++],e===10||e===13&&i.charCodeAt(a)!==10)for(o();br(i.charCodeAt(a))&&i.charCodeAt(a)!==10&&i.charCodeAt(a)!==13;)a++}a>=n&&c(`in attribute value`,"a corresponding closing quote `"+String.fromCharCode(t)+"`"),a++,_=a}else if(t===123){let t=Fs(e,a,n,r,!1,!1);v={type:`mdxJsxAttributeValueExpression`,value:t.value},t.data&&(v.data=t.data),a=_=t.end}else c(`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}else i.charCodeAt(a)!==47&&i.charCodeAt(a)!==62&&i.charCodeAt(a)!==123&&!Ls(i.charCodeAt(a))&&c(h?`after local attribute name`:`after attribute name`,Us);let y=Ir(I(e,d),I(e,_)),b={type:`mdxJsxAttribute`,name:m,value:v};y&&(b.position=y),f.push(b),s()}return a>=n&&c(d===null?`before name`:`before attribute name`,d===null?zs:Bs),{type:`tag`,start:t,end:a+1,name:d,attributes:f,close:l,selfClosing:p}}function Gs(e,t=e.close){return`<`+(t?`/`:``)+(e.name??``)+`>`}function Ks(e,t){let n=Fr(e),r=t===void 0?void 0:Fr(t);return n.line+`:`+n.column+(r?`-`+r.line+`:`+r.column:``)}function qs(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.value[n]??(P.extra[n]?.type===`mdxTextExpression`?P.extra[n].value:qs(n));return t}function Js(e,t){let n={source:e,base:0};Ms(e);let r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new WeakMap,o=e=>r.get(e)?.at(-1)?.node??e,s,c=0,l=e=>e.start===e.next&&!e.padding,u=()=>Math.max(e.lastIndexOf(`
18
+ `,t+1)),jr===kr.length){let e=new Int32Array(jr*2);e.set(kr),kr=e}kr[jr++]=t+1}Ar=jr-+(kr[jr-1]===e.length)}function Fr(e){if(e<kr[Mr]||Mr+1<jr&&e>=kr[Mr+1]){let t=0;for(;Mr+1<jr&&e>=kr[Mr+1]&&t++<vr;)Mr++;for(;Mr&&e<kr[Mr]&&t++<vr;)Mr--;if(e<kr[Mr]||Mr+1<jr&&e>=kr[Mr+1]){let t=0,n=jr;for(;t+1<n;){let r=t+n>>>1;kr[r]<=e?t=r:n=r}Mr=t}}return{line:Mr+1,column:e-kr[Mr]+1,offset:e}}function Ir(e,t,n){return Nr?{start:n??Fr(e),end:Fr(t)}:void 0}var N;(function(e){e[e.Root=0]=`Root`,e[e.Paragraph=1]=`Paragraph`,e[e.Heading=2]=`Heading`,e[e.ThematicBreak=3]=`ThematicBreak`,e[e.Blockquote=4]=`Blockquote`,e[e.List=5]=`List`,e[e.ListItem=6]=`ListItem`,e[e.Html=7]=`Html`,e[e.Code=8]=`Code`,e[e.Definition=9]=`Definition`,e[e.Text=10]=`Text`,e[e.Emphasis=11]=`Emphasis`,e[e.Strong=12]=`Strong`,e[e.InlineCode=13]=`InlineCode`,e[e.Break=14]=`Break`,e[e.Link=15]=`Link`,e[e.Image=16]=`Image`,e[e.LinkReference=17]=`LinkReference`,e[e.ImageReference=18]=`ImageReference`,e[e.Delete=19]=`Delete`,e[e.Table=20]=`Table`,e[e.TableRow=21]=`TableRow`,e[e.TableCell=22]=`TableCell`,e[e.FootnoteDefinition=23]=`FootnoteDefinition`,e[e.FootnoteReference=24]=`FootnoteReference`,e[e.Yaml=25]=`Yaml`,e[e.Toml=26]=`Toml`,e[e.Mdx=27]=`Mdx`,e[e.IdString=28]=`IdString`,e[e.Math=29]=`Math`,e[e.InlineMath=30]=`InlineMath`})(N||={});var Lr=/* @__PURE__ */ new Uint8Array(31);for(let e of[N.Root,N.Paragraph,N.Heading,N.Blockquote,N.List,N.ListItem,N.Emphasis,N.Strong,N.Link,N.LinkReference,N.Delete,N.Table,N.TableRow,N.TableCell,N.FootnoteDefinition])Lr[e]=1;var Rr=[1,1,2,3,4,5,6],zr=[],Br=[],Vr=2048,P={count:0,kind:new Uint8Array(Vr),start:new Int32Array(Vr),end:new Int32Array(Vr),child:new Int32Array(Vr),next:new Int32Array(Vr),prev:new Int32Array(Vr),last:new Int32Array(Vr),a:new Int32Array(Vr),b:new Int32Array(Vr),positionless:new Uint8Array(Vr),value:zr,extra:Br};function Hr(){P.count=0,P.value.length=0,P.extra.length=0}function F(e,t,n,r=0){let i=++P.count;if(i>=Vr){Vr*=2;let e=new Uint8Array(Vr);e.set(P.kind),P.kind=e;let t=new Uint8Array(Vr);t.set(P.positionless),P.positionless=t;for(let e of[`start`,`end`,`child`,`next`,`prev`,`last`,`a`,`b`]){let t=P[e],n=new Int32Array(Vr);n.set(t),P[e]=n}}return P.kind[i]=e,P.positionless[i]=0,P.start[i]=t,P.end[i]=n,P.child[i]=P.next[i]=P.prev[i]=P.last[i]=P.a[i]=P.b[i]=0,r&&Ur(r,i),i}function Ur(e,t){P.prev[t]=P.last[e],P.last[e]?P.next[P.last[e]]=t:P.child[e]=t,P.last[e]=t}function Wr(e){let t=Lr[P.kind[e]]||P.kind[e]===N.Mdx&&P.extra[e]?.children?[]:void 0;for(let n=P.child[e];n;n=P.next[n])t.push(Wr(n));let n=P.value[e]??``,r=P.extra[e],i=P.positionless[e]?void 0:Ir(P.start[e],P.end[e],r?.positionStart);switch(P.kind[e]){case N.Mdx:{let e={...r};return t&&(e.children=t),i&&(e.position=i),e}case N.Paragraph:return i?{type:`paragraph`,children:t,position:i}:{type:`paragraph`,children:t};case N.Heading:return i?{type:`heading`,depth:Rr[P.a[e]],children:t,position:i}:{type:`heading`,depth:Rr[P.a[e]],children:t};case N.ThematicBreak:return i?{type:`thematicBreak`,position:i}:{type:`thematicBreak`};case N.Blockquote:return i?{type:`blockquote`,children:t,position:i}:{type:`blockquote`,children:t};case N.List:return i?{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t,position:i}:{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t};case N.ListItem:return i?{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t,position:i}:{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t};case N.Html:return i?{type:`html`,value:n,position:i}:{type:`html`,value:n};case N.Code:return i?{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n,position:i}:{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n};case N.Definition:return i?{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url,position:i}:{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url};case N.Text:return i?{type:`text`,value:n,position:i}:{type:`text`,value:n};case N.IdString:return i?{type:`idString`,value:n,position:i}:{type:`idString`,value:n};case N.Emphasis:return i?{type:`emphasis`,children:t,position:i}:{type:`emphasis`,children:t};case N.Strong:return i?{type:`strong`,children:t,position:i}:{type:`strong`,children:t};case N.InlineCode:return i?{type:`inlineCode`,value:n,position:i}:{type:`inlineCode`,value:n};case N.Break:return i?{type:`break`,position:i}:{type:`break`};case N.Delete:return i?{type:`delete`,children:t,position:i}:{type:`delete`,children:t};case N.Link:return i?{type:`link`,title:r.title,url:r.url,children:t,position:i}:{type:`link`,title:r.title,url:r.url,children:t};case N.Image:return i?{type:`image`,title:r.title,url:r.url,alt:n,position:i}:{type:`image`,title:r.title,url:r.url,alt:n};case N.LinkReference:return i?{type:`linkReference`,children:t,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`linkReference`,children:t,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.ImageReference:return i?{type:`imageReference`,alt:n,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`imageReference`,alt:n,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.Table:return i?{type:`table`,align:r,children:t,position:i}:{type:`table`,align:r,children:t};case N.TableRow:return i?{type:`tableRow`,children:t,position:i}:{type:`tableRow`,children:t};case N.TableCell:return i?{type:`tableCell`,children:t,position:i}:{type:`tableCell`,children:t};case N.FootnoteDefinition:return i?{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t,position:i}:{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t};case N.FootnoteReference:return i?{type:`footnoteReference`,identifier:r.identifier,label:r.label,position:i}:{type:`footnoteReference`,identifier:r.identifier,label:r.label};case N.Math:{let e={hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[{type:`text`,value:n}]}]};return i?{type:`math`,meta:r??null,value:n,data:e,position:i}:{type:`math`,meta:r??null,value:n,data:e}}case N.InlineMath:{let e={hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[{type:`text`,value:n}]};return i?{type:`inlineMath`,value:n,data:e,position:i}:{type:`inlineMath`,value:n,data:e}}case N.Yaml:return i?{type:`yaml`,value:n,position:i}:{type:`yaml`,value:n};case N.Toml:return i?{type:`toml`,value:n,position:i}:{type:`toml`,value:n};default:throw Error(`Unknown parser node kind`)}}function Gr(e){let t=[];for(let n=P.child[e];n;n=P.next[n])t.push(Wr(n));let n=Ir(P.start[e],P.end[e]);return n?{type:`root`,children:t,position:n}:{type:`root`,children:t}}var Kr=32,qr=7,Jr=8,Yr=4,Xr=3;function Zr(e){return Cr(e)||Sr(e)||e===43||e===45||e===46||e===95}function Qr(e,t,n){for(let r=0;r<n.length;r++)if((e.charCodeAt(t+r)|Kr)!==n.charCodeAt(r))return!1;return!0}function $r(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(br(t)||t===60)return!0;if(t!==33&&t!==34&&t!==39&&t!==41&&t!==42&&t!==44&&t!==46&&t!==58&&t!==59&&t!==63&&t!==95&&t!==126){if(t===93){let t=e.charCodeAt(r+1);if(r+1===n||t===40||t===91||br(t))return!0}else if(t===38){let t=r+1;for(;t<n&&Cr(e.charCodeAt(t));)t++;if(t===r+1||e.charCodeAt(t)!==59)return!1;r=t}else return!1}}return!0}function ei(e,t,n){let r=!1,i=!1,a=!1,o=t;for(;o<n;o++){let t=e.charCodeAt(o);if(t===46||t===95){if($r(e,o,n))break;t===95?r=!0:(i=r,r=!1)}else{if(br(t)||t!==45&&xr(t))break;a=!0}}return a&&!r&&!i?o:-1}function ti(e,t,n){let r=0,i=0,a=t;for(;a<n;a++){let t=e.charCodeAt(a);if(br(t))break;if(t===40)r++;else if(t===41&&i<r)i++;else{if(`!"&')*,.:;<?]_~`.includes(e[a])&&$r(e,a,n))break;t===41&&i++}}return a}function ni(e,t,n,r,i=!0){let a=e.charCodeAt(t);if(i&&Zr(a)&&r!==47&&!Zr(r)){let r=t;for(;r<n&&Zr(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===64){r++;let t=!1,i=!1;for(;r<n;r++){let n=e.charCodeAt(r);if(n===46&&(Cr(e.charCodeAt(r+1))||Sr(e.charCodeAt(r+1))))t=!0;else if(Cr(n)||Sr(n)||n===45||n===95)i=!0;else break}if(t&&i&&Cr(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}}if((a===72||a===104)&&!Cr(r)){let r=Qr(e,t,`http://`)?qr:Qr(e,t,`https://`)?Jr:0;if(r){let i=e.charCodeAt(t+r);if(t+r<n&&i>32&&!xr(i)&&!br(i)){let i=ei(e,t+r,n);if(i>t+r)return{end:ti(e,i,n),prefix:``}}}}if((a===87||a===119)&&Qr(e,t,`www.`)&&t+Yr<n&&(r===-1||r===40||r===42||r===95||r===91||r===93||r===126||r===32||r===9||r===10||r===13)){let r=ei(e,t,n);if(r>t)return{end:ti(e,r,n),prefix:`http://`}}}function ri(e,t,n){let r=0,i=t,a=!0,o=!0;for(let s=t;s<=n;s++){if(s!==n&&e.charCodeAt(s)!==46)continue;a=o,o=!0;let t=!1;for(let n=i;n<s;n++)e.charCodeAt(n)===95&&(o=!1),(Cr(e.charCodeAt(n))||Sr(e.charCodeAt(n)))&&(t=!0);s>i&&!t&&(o=!1),r++,i=s+1}return r>=2&&o&&a}function ii(e,t,n){let r=n;for(;r>t&&`!"&'),.:;<>?]}`.includes(e[r-1]);)r--;if(r===n)return n;let i=0,a=0;for(let n=t;n<r;n++)e.charCodeAt(n)===40?i++:e.charCodeAt(n)===41&&a++;let o=r;for(let t=r;t<n&&i>a;t++)e.charCodeAt(t)===41&&(o=t+1,a++);return o}function ai(e,t){let n=t?e.charCodeAt(t-1):-1;if(t&&!br(n)&&!xr(n))return;let r=Qr(e,t,`http://`)?qr:Qr(e,t,`https://`)?Jr:Qr(e,t,`www.`)?Xr:0;if(!r)return;let i=t+r,a=i;for(;i<e.length&&(Cr(e.charCodeAt(i))||Sr(e.charCodeAt(i))||e.charCodeAt(i)===95||e.charCodeAt(i)===45||e.charCodeAt(i)===46);)i++;if(i===a||!ri(e,r===Xr?t:a,i))return;for(;i<e.length&&e.charCodeAt(i)!==32&&e.charCodeAt(i)!==9&&e.charCodeAt(i)!==10&&e.charCodeAt(i)!==13;)i++;let o=ii(e,t+r,i);if(o>t+r||r===Xr&&o===t+r)return{end:o,prefix:r===Xr?`http://`:``}}function oi(e,t){let n=t?e.charCodeAt(t-1):-1;if(n===47||t&&!br(n)&&!xr(n))return;let r=t;for(;r<e.length&&Zr(e.charCodeAt(r));)r++;if(r===t||e.charCodeAt(r)!==64)return;let i=++r,a=!1,o=!1;for(;r<e.length;){let t=e.charCodeAt(r);if(Cr(t)||Sr(t)||t===95||t===45)o=!0,r++;else if(t===46&&o&&(Cr(e.charCodeAt(r+1))||Sr(e.charCodeAt(r+1))||e.charCodeAt(r+1)===95||e.charCodeAt(r+1)===45))a=!0,o=!1,r++;else break}if(a&&r>i&&Cr(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}var si=/https?:\/\/|www\./gi;function ci(e,t){let n=e.indexOf(`@`,t);if(n<0)return-1;let r=n;for(;r>t&&Zr(e.charCodeAt(r-1));)r--;return r}function li(e,t,n){let r=P.value[t]??``;if(r.indexOf(n?`@`:`.`)<0)return;let i=0,a=0,o=0;si.lastIndex=0;let s=n?ci(r,0):si.exec(r)?.index??-1;for(;s>=0;){let e=s,t=n?oi(r,e):ai(r,e);if(!t){s=n?ci(r,e+1):si.exec(r)?.index??-1;continue}if(i<e){let t=F(N.Text,0,0);P.value[t]=r.slice(i,e),P.positionless[t]=1,o?(P.next[o]=t,P.prev[t]=o):a=t,o=t}let c=F(N.Link,0,0);P.extra[c]={title:null,url:t.prefix+r.slice(e,t.end)},P.positionless[c]=1;let l=F(N.Text,0,0,c);P.value[l]=r.slice(e,t.end),P.positionless[l]=1,o?(P.next[o]=c,P.prev[c]=o):a=c,o=c,i=t.end,n?s=ci(r,t.end):(si.lastIndex=t.end,s=si.exec(r)?.index??-1)}if(!a)return;if(i<r.length){let e=F(N.Text,0,0);P.value[e]=r.slice(i),P.positionless[e]=1,P.next[o]=e,P.prev[e]=o,o=e}let c=P.prev[t],l=P.next[t];c?P.next[c]=a:P.child[e]=a,P.prev[a]=c,P.next[o]=l,l?P.prev[l]=o:P.last[e]=o}function ui(e){for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text?li(e,t,!1):P.kind[t]!==N.Link&&P.kind[t]!==N.LinkReference&&P.child[t]&&ui(t),t=n}for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text&&li(e,t,!0),t=n}}function I(e,t){return e.map?e.map[t]:e.base+t}var di=new Uint8Array($n);for(let e of[10,13,33,42,60,91,92,93,95,96,123,126])di[e]=1;var fi=di.slice();for(let e of[72,104,87,119])fi[e]=1;var pi=fi.slice();for(let e=0;e<$n;e++)(yr[e]&12||e===43||e===45||e===46)&&(pi[e]=1);var mi=pi.slice();mi[36]=1;var hi=/[\n\r!*<[\]\\_`{~]/g,gi=/[\n\r!*<[\]\\_`{~]|https?:\/\/|www\./gi,_i=/[\n\r!$*<[\]\\_`{~]/g,vi=/[\n\r!$*<[\]\\_`{~]|https?:\/\/|www\./gi,yi=1024,bi=32,xi=2,Si=32,Ci=63,wi=3,Ti=0,Ei=yi,Di=new Int32Array(Ei),Oi=new Int32Array(Ei),ki=new Int32Array(Ei),Ai=new Int32Array(Ei),ji=new Uint8Array(Ei),Mi=new Uint8Array(Ei),Ni=0,Pi=0,Fi=/* @__PURE__ */ new Map,Ii=hi,Li=gi,Ri=pi,zi=0,Bi=/* @__PURE__ */ new Int32Array,Vi=/* @__PURE__ */ new Int32Array,Hi=/* @__PURE__ */ new Int32Array(64),Ui=``,Wi,Gi,Ki=-1,qi=``,Ji=[],Yi=[],Xi=1/0,Zi=0;function Qi(e,t){qi=t,Ti=0,Wi=Gi=void 0,Fi.clear(),Pi=e.math?e.math.singleDollarTextMath?1:2:0,Ii=Pi?_i:hi,Li=Pi?vi:gi,Ri=Pi?mi:pi}function $i(e,t,n,r,i,a){if(Ti===Ei){Ei*=2;let e=new Int32Array(Ei);e.set(Di),Di=e;let t=new Int32Array(Ei);t.set(Oi),Oi=t;let n=new Int32Array(Ei);n.set(ki),ki=n;let r=new Int32Array(Ei);r.set(Ai),Ai=r;let i=new Uint8Array(Ei);i.set(ji),ji=i;let a=new Uint8Array(Ei);a.set(Mi),Mi=a}Di[Ti]=e,Oi[Ti]=t,ki[Ti]=n,Ai[Ti]=r,ji[Ti]=i,Mi[Ti++]=a}function ea(e,t){let n=P.prev[t],r=P.next[t];n?P.next[n]=r:P.child[e]=r,r?P.prev[r]=n:P.last[e]=n}function ta(e,t,n,r,i,a=3){let o=i?2:1;a&o&&na(e,t,n,r,i,a),a&~o&&na(e,t,n,r,!i,a&~o)}function na(e,t,n,r,i,a){for(let o=n;o<r;o++)if(Oi[o]===t&&ji[o]===126===i&&Mi[o]&2)for(;Ai[o];){let r=o-1;for(;r>=n;r--){if(Oi[r]!==t||!Ai[r]||!(Mi[r]&1)||ji[r]!==ji[o])continue;let e=Ai[r],n=Ai[o];if(ji[r]===126){if(e!==n)continue}else if((Mi[r]&2||Mi[o]&1)&&(e+n)%3==0&&(e%3!=0||n%3!=0))continue;break}if(r<n)break;let i=ji[r]===126?Ai[r]:Ai[r]>=2&&Ai[o]>=2?2:1,s=Di[r],c=Di[o],l=ki[r]+Ai[r],u=ki[o],d=F(ji[r]===126?N.Delete:i===2?N.Strong:N.Emphasis,I(e,l-i),I(e,u+i));P.child[d]=P.next[s],P.last[d]=P.prev[c],P.prev[P.child[d]]=0,P.next[P.last[d]]=0,P.next[s]=d,P.prev[d]=s,P.next[d]=c,P.prev[c]=d,Ai[r]-=i,Ai[o]-=i,ki[o]+=i,P.end[s]=I(e,l-i),P.start[c]=I(e,u+i),P.value[s]=e.source.slice(ki[r],l-i),P.value[c]=e.source.slice(u+i,u+i+Ai[o]);for(let e=r+1;e<o;e++)Oi[e]===t&&(Oi[e]=d);ta(e,d,r+1,o,!0,a),Ai[r]||ea(t,s),Ai[o]||ea(t,c)}}function ra(e,t,n){let r=ia(e,t,n);if(!(r<0))return{end:r,value:Dr(e.charCodeAt(t)===60?e.slice(t+1,r-1):e.slice(t,r))}}function ia(e,t,n){let r=t;if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===62)return r+1;if(t===60||t===10||t===13)return-1;t===92&&xr(e.charCodeAt(r+1))&&r++}return-1}let i=0;for(;r<n;r++){let t=e.charCodeAt(r);if(t!==0&&t<=32||t===127)break;if(t===92&&r+1<e.length&&xr(e.charCodeAt(r+1)))r++;else if(t===40){if(++i>bi)return-1}else if(t===41){if(!i)break;i--}}return i?-1:r}function aa(e,t,n){let r=oa(e,t,n);if(r>=0)return{end:r,value:Dr(ca(e.slice(t+1,r-1)))}}function oa(e,t,n){let r=e.charCodeAt(t);if(r!==34&&r!==39&&r!==40)return-1;let i=r===40?41:r;for(let r=t+1;r<n;r++){let t=e.charCodeAt(r);if(t===i)return r+1;if(t===92&&xr(e.charCodeAt(r+1))&&r++,t===13&&e.charCodeAt(r+1)===10)r++;else if((t===10||t===13)&&(e.charCodeAt(r+1)===10||e.charCodeAt(r+1)===13))return-1}return-1}function sa(e,t,n){for(;t<n&&(M(e.charCodeAt(t))||e.charCodeAt(t)===10||e.charCodeAt(t)===13);)t++;return t}function ca(e,t=1/0){let n=``,r=0;for(let i=0;i<e.length;i++){let a=e.charCodeAt(i);if(a!==10&&a!==13)continue;a===13&&e.charCodeAt(i+1)===10&&i++;let o=i+1,s=0;for(;M(e.charCodeAt(o))&&s<t;)s+=e.charCodeAt(o)===9?er-s%er:1,o++;o>i+1&&(n+=e.slice(r,i+1)+(s>t?` `.repeat(s-t):``),r=o,i=o-1)}return n+e.slice(r)}function la(e,t,n){let r=sa(e,t+1,n),i=ra(e,r,n);if(!i)return;r=sa(e,i.end,n);let a=null;if(r>i.end&&e.charCodeAt(r)!==41){let t=aa(e,r,n);if(!t)return;a=t.value||null,r=sa(e,t.end,n)}if(e.charCodeAt(r)===41)return{end:r+1,url:i.value,title:a}}function ua(e,t,n){let r=sa(e,t+1,n),i=ia(e,r,n);if(i<0)return-1;if(r=sa(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=oa(e,r,n);if(t<0)return-1;r=sa(e,t,n)}return e.charCodeAt(r)===41?r+1:-1}function da(e,t,n,r,i){if(r===Wi&&e===Ui&&i===Gi&&n<=Ki&&Bi[t]===zi){let e=Vi[t];if(e>=0?e<n:n===Ki)return e}Bi.length<=e.length&&(Bi=new Int32Array(e.length+1),Vi=new Int32Array(e.length+1),zi=0),zi++,Ui=e,Wi=r,Gi=i,Ki=n;let a,o=0,s=0,c=-1;for(let l=t;l<n;l++){let t=e.charCodeAt(l);if((t===123||t===60)&&i.inline){let e=i.inline(r,l,n,i);if(e){l=e.end-1;continue}}if(t===92&&xr(e.charCodeAt(l+1)))l++;else if(t===60||t===96||t===36&&Pi)l=fa(e,l,n,t);else if(t===91||t===33&&e.charCodeAt(l+1)===91){if(t===33&&(a||=[],a.push(o),l++),o===Hi.length){let e=new Int32Array(o*2);e.set(Hi),Hi=e}Hi[o]=l+1,Bi[l+1]=zi,Vi[l+1]=-1,o++,c=l}else if(t===93){if(!o)return l;o--,Vi[Hi[o]]=l;let t=a!==void 0&&a[a.length-1]===o;t&&a.pop();let r=c+1;if(c=-1,o<s&&(s=o,!t))continue;let u=pa(e,r,l,n,i,t);if(u<0)continue;t||(s=o),l=u-1}}return-1}function fa(e,t,n,r){if(r===60)return Math.max(t,(Sa(e,t,n)?.end??xa(e,t,n))-1);let i=t+1;for(;e.charCodeAt(i)===r;)i++;let a=ha(e,i,n,i-t,r);return a>=0?a+i-t-1:i-1}function pa(e,t,n,r,i,a){let o=e.charCodeAt(n+1),s=t>0;if(o!==40&&o!==91&&!(s&&i.definitions.size))return-1;if(s&&!a&&e.charCodeAt(t)===94&&i.config.gfm){let r=e.slice(t+1,n);if(r&&!Na(r)&&i.footnotes.has(Or(r)))return-1}return Ia(e,t,n,r,i,s)}function ma(e,t,n,r,i=96){for(let a=t;a<n;){if(e.charCodeAt(a)!==i){a++;continue}let t=a+1;for(;e.charCodeAt(t)===i;)t++;if(t-a===r)return a;a=t}return-1}function ha(e,t,n,r,i){if(i!==36)return ma(e,t,n,r,i);if(r<Pi)return-1;let a=Fi.get(e);if(!a){a=/* @__PURE__ */ new Map;for(let t=e.indexOf(`$`);t!==-1;){let n=t+1;for(;e.charCodeAt(n)===36;)n++;let r=n-t,i=a.get(r);i?i.push(t):a.set(r,[t]),t=e.indexOf(`$`,n)}Fi.set(e,a)}let o=a.get(r);if(!o)return-1;let s=0,c=o.length;for(;s<c;){let e=s+c>>>1;o[e]<t?s=e+1:c=e}let l=o[s];return l<n?l:-1}function ga(e,t,n){let r=e.source,i=!0;for(let a=t;a<n;a++){let t=r.charCodeAt(a);(t!==32&&t!==10&&t!==13||_a(e,a))&&(i=!1)}let a=r.charCodeAt(t),o=r.charCodeAt(n-1);return i||a!==32&&a!==10&&a!==13||o!==32&&o!==10&&o!==13||_a(e,n-1)||(t+=a===13&&r.charCodeAt(t+1)===10?2:1,n-=o===10&&r.charCodeAt(n-2)===13?2:1),r.slice(t,n)}function _a(e,t){return!!e.map&&e.source.charCodeAt(t)===32&&qi.charCodeAt(e.map[t])===9}var va=0;function ya(e,t,n,r){let i=t;for(;;){let t=e.charCodeAt(i);if(i>=n||t===60||t===61||t===62||t===96)return ba(i);if(t===34||t===39){let t=e.indexOf(e[i],i+1);return t<0||t>=n?ba(n):t+1}let a=i;for(r||i++;i<n&&!br(e.charCodeAt(i))&&!`"'=/<>\``.includes(e[i]);)i++;if(i===a)return ba(i);if(!r||e.charCodeAt(i)!==61)return i;for(i++;M(e.charCodeAt(i));)i++}}function ba(e){return va=e,-1}function xa(e,t,n,r=!1){let i=t+1;if(va=i,e.startsWith(`<!--`,t)){if(e.charCodeAt(t+4)===62)return t+5;if(e.charCodeAt(t+4)===45&&e.charCodeAt(t+5)===62)return t+6;let r=e.indexOf(`-->`,t+4);return r<0||r+3>n?ba(n):r+3}if(e.startsWith(`<![CDATA[`,t)){let r=e.indexOf(`]]>`,t+9);return r<0||r+3>n?ba(n):r+3}if(e.charCodeAt(i)===63){let t=e.indexOf(`?>`,i+1);return t<0||t+2>n?ba(n):t+2}if(e.charCodeAt(i)===33){if(!Cr(e.charCodeAt(i+1)))return-1;let t=e.indexOf(`>`,i+2);return t<0||t>=n?ba(n):t+1}let a=e.charCodeAt(i)===47;if(a&&i++,!Cr(e.charCodeAt(i)))return-1;for(i++;i<n&&(Cr(e.charCodeAt(i))||Sr(e.charCodeAt(i))||e.charCodeAt(i)===45);i++);for(;i<n;){let t=i;if(i=sa(e,i,n),e.charCodeAt(i)===62)return i+1;if(e.charCodeAt(i)===47&&e.charCodeAt(i+1)===62&&!a)return i+2;if(a||i===t)return ba(i);let o=e.charCodeAt(i);if(!Cr(o)&&o!==95&&o!==58)return ba(i);for(i++;i<n&&(Cr(e.charCodeAt(i))||Sr(e.charCodeAt(i))||`-._:`.includes(e[i]));)i++;let s=i;if(i=sa(e,i,n),e.charCodeAt(i)!==61)i=s;else if(i=sa(e,i+1,n),i=ya(e,i,n,r),i<0)return-1}return ba(n)}function Sa(e,t,n){let r=t+1;for(;r<n&&e.charCodeAt(r)!==62&&e.charCodeAt(r)>32&&e.charCodeAt(r)!==127&&e.charCodeAt(r)!==60;)r++;if(e.charCodeAt(r)!==62)return;let i=e.slice(t+1,r),a=t+1;for(;a<r&&e.charCodeAt(a)!==58;)a++;if(a<r&&a-t>=xi+1&&a-t<=Si+1&&Cr(e.charCodeAt(t+1))){let n=!0;for(let r=t+2;r<a;r++)Cr(e.charCodeAt(r))||Sr(e.charCodeAt(r))||`+-.`.includes(e[r])||(n=!1);if(n)return{end:r+1,url:i,value:i}}if(Ca(i))return{end:r+1,url:`mailto:`+i,value:i}}function Ca(e){let t=-1;for(let n=0;n<e.length;n++)if(e.charCodeAt(n)===64){if(t>=0)return!1;t=n}if(t<=0||t===e.length-1)return!1;for(let n=0;n<t;n++)if(!Cr(e.charCodeAt(n))&&!Sr(e.charCodeAt(n))&&!".#$%&'*+-/=?^_`{|}~".includes(e[n]))return!1;let n=0;for(let r=t+1;r<=e.length;r++){let t=e.charCodeAt(r);if(r===e.length||t===46){if(!n||n>Ci||e.charCodeAt(r-1)===45)return!1;n=0}else{if(!Cr(t)&&!Sr(t)&&t!==45||!n&&t===45)return!1;n++}}return!0}function wa(e,t,n,r,i){let a=e.source.charCodeAt(n-1),o=F(N.Text,I(e,t),a===10||a===13?Ea(e,n):I(e,n),r);return P.value[o]=i??Dr(e.source.slice(t,n)),o}function Ta(e,t){t>=Zi?Xi=Math.min(Xi,e):(Ji.push(e),Yi.push(t))}function Ea(e,t){if(!e.map||!Da(t))return I(e,t-1)+1;let n=I(e,t);return e.source.charCodeAt(t)===32&&qi.charCodeAt(n)===9?n+1:n}function Da(e){if(Xi<e)return!0;let t=0,n=!1;for(let r=0;r<Ji.length;r++)Yi[r]<e||(Ji[r]<e&&(n=!0),Ji[t]=Ji[r],Yi[t++]=Yi[r]);return Ji.length=Yi.length=t,n}function Oa(e,t,n){let r=sa(e,t+1,n),i=ia(e,r,n);if(i<0){if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===60||t===10||t===13)return r;t===92&&xr(e.charCodeAt(r+1))&&r++}return n}let t=0;for(;r<n;r++){let n=e.charCodeAt(r);if(n!==0&&n<=32||n===127)return r;if(n===92&&xr(e.charCodeAt(r+1)))r++;else if(n===40&&++t>bi)return r;else n===41&&t--}return n}if(r=sa(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=oa(e,r,n);if(t<0)return ka(e.charCodeAt(r))?n:r;r=sa(e,t,n)}return r}function ka(e){return e===34||e===39||e===40}function Aa(e){let t=0;for(let n=P.child[e];n;){let r=P.next[n];P.kind[n]===N.Text&&t&&P.kind[t]===N.Text?(P.value[t]=(P.value[t]??``)+(P.value[n]??``),P.end[t]=P.end[n],ea(e,n)):(P.child[n]&&Aa(n),t=n),n=r}}function ja(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.child[n]?ja(n):P.value[n]??``;return t}function Ma(e,t,n,r,i,a=!1,o=!0,s=!a){let c=e.source,l=Ti;o&&(Ni=0,Ji.length=Yi.length=0,Xi=1/0,Zi=n);let u=t,d=i.config.gfm&&s?c.indexOf(`@`,t):-1,f=d>=0&&d<n,p=f?Ri:i.config.gfm&&s?fi:di,m=!i.inline||i.inlineMarkers,h=i.config.gfm&&s?Li:Ii,g=t,_=0;for(;g<n;){if(m){if(f)for(;g<n&&!p[c.charCodeAt(g)];)g++;else{h.lastIndex=g;let e=h.exec(c);g=e&&e.index<n?e.index:n}if(g===n)break}let l=c.charCodeAt(g);if(i.inline){let t=i.inline(e,g,n,i);if(t){u<g&&wa(e,u,g,r),Ur(r,t.node),g=u=t.end;continue}}let d=g>t?c.charCodeAt(g-1):-1,v=!(yr[d]&12)&&d!==43&&d!==45&&d!==46&&d!==95&&d!==47||(l===72||l===104||l===87||l===119)&&!(yr[d]&8);if(i.config.gfm&&s&&!_&&v&&(f&&(yr[l]&12||l===43||l===45||l===46||l===95)||l===72||l===104||l===87||l===119)){let t=ni(c,g,n,d,f);if(t){u<g&&wa(e,u,g,r);let n=F(N.Link,I(e,g),I(e,t.end),r),i=c.slice(g,t.end);P.extra[n]={title:null,url:t.prefix+i},wa(e,g,t.end,n,i),g=u=t.end;continue}}if(l===92){let t=c.charCodeAt(g+1);if(t<$n&&xr(t)){g+=2;continue}if(t===10||t===13){u<g&&wa(e,u,g,r);let n=g+2;for(t===13&&c.charCodeAt(n)===10&&n++,F(N.Break,I(e,g),Ea(e,n),r);M(c.charCodeAt(n));)n++;g=u=n;continue}}if(l===10||l===13){let t=g;for(;t>u&&M(c.charCodeAt(t-1));)t--;let n=g+1;l===13&&c.charCodeAt(n)===10&&n++;let i=!1;for(let e=t;e<g;e++)c.charCodeAt(e)===9&&(i=!0);if(!i&&g-t>=2&&c.charCodeAt(g-1)===32&&c.charCodeAt(g-2)===32){for(u<t&&wa(e,u,t,r),F(N.Break,I(e,t),Ea(e,n),r);M(c.charCodeAt(n));)n++;g=u=n}else{for(u<t&&wa(e,u,t,r),wa(e,g,n,r);M(c.charCodeAt(n));)n++;g=u=n}}else if(l===96){let t=g+1;for(;c.charCodeAt(t)===96;)t++;let i=ma(c,t,n,t-g);if(i>=0){u<g&&wa(e,u,g,r);let n=i+t-g,a=F(N.InlineCode,I(e,g),I(e,n),r);P.value[a]=ga(e,t,i),e.table&&(P.value[a]=Pa(P.value[a])),g=u=n;continue}Ta(g,1/0),g=t}else if(l===36&&Pi){let t=g+1;for(;c.charCodeAt(t)===36;)t++;let i=ha(c,t,n,t-g,l);if(i>=0){u<g&&wa(e,u,g,r);let n=i+t-g,a=F(N.InlineMath,I(e,g),I(e,n),r);P.value[a]=ga(e,t,i),g=u=n;continue}t-g>=Pi&&Ta(g,1/0),g=t}else if(l===42||l===95||l===126&&i.config.gfm){let a=g+1;for(;c.charCodeAt(a)===l;)a++;let s=a-g;if(l===126&&(s>2||s===1&&!i.config.gfm?.singleTilde)){g=a;continue}u<g&&wa(e,u,g,r);let d=wa(e,g,a,r),f=g>t||!o?c.charCodeAt(g-1):32,p=a<n||!o?c.charCodeAt(a):32,m=br(f),h=br(p),_=xr(f),v=xr(p),y=!h&&(!v||m||_)||l!==126&&i.config.gfm!==void 0&&p===126,b=!m&&(!_||h||v)||l!==126&&i.config.gfm!==void 0&&f===126,x=l===95?y&&(!b||_):y,S=l===95?b&&(!y||v):b;Ni||=l,$i(d,r,g,s,l,!!x|(S?2:0)),g=u=a}else{if(l===91||l===33&&c.charCodeAt(g+1)===91){let t=l===33,o=g+(t?2:1),s=da(c,o,n,e,i);if(s>=0){let l=s+1,d=c.slice(o,s),f,p=!1,m=!1;if(!t&&d.charCodeAt(0)===94&&d.length>1&&!Na(d)&&i.config.gfm&&i.footnotes.has(Or(d.slice(1))))f={label:Dr(d.slice(1)),identifier:Or(d.slice(1))},m=!0;else if(t||!a){if(c.charCodeAt(l)===40&&(f=la(c,l,n),!f&&e.map&&Ta(l,Oa(c,l,n))),f)l=f.end;else{let e=d,t=`shortcut`;if(c.charCodeAt(l)===91){e=``;let r=l+1;for(;r<n&&c.charCodeAt(r)!==93&&c.charCodeAt(r)!==91;)c.charCodeAt(r)===92&&r++,r++;c.charCodeAt(r)===93&&(e=c.slice(l+1,r),t=e?`full`:`collapsed`,e||=d,i.definitions.has(Or(e))?l=r+1:e=``),l<=r&&Ta(l,c.charCodeAt(r)===93?r+1:r)}e&&i.definitions.has(Or(e))&&(f={label:Dr(e),identifier:Or(e),referenceType:t},p=!0)}}else e.map&&c.charCodeAt(l)===40&&Ta(l,Oa(c,l,n));if(f&&!t&&!m&&Fa(e,o,s,i)&&(f=void 0),f){u<g&&wa(e,u,g,r);let n=F(m?N.FootnoteReference:t?p?N.ImageReference:N.Image:p?N.LinkReference:N.Link,I(e,g),I(e,l),r);P.extra[n]=f,m||(Ma(e,o,s,n,i,!t,!1,!1),t&&!i.config.mdx&&(P.value[n]=ja(n),P.child[n]=P.last[n]=0)),g=u=l;continue}}t||_++}if(l===93&&_&&_--,l===60&&!i.config.mdx){let t=Sa(c,g,n),i=t?.end??xa(c,g,n);if(i>g){u<g&&wa(e,u,g,r);let n=F(t?N.Link:N.Html,I(e,g),I(e,i),r);t?(P.extra[n]={url:t.url,title:null},wa(e,g+1,i-1,n,t.value)):P.value[n]=ca(c.slice(g,i),wi),g=u=i;continue}t||Ta(g,va)}g++}}for(;o&&n>u&&M(c.charCodeAt(n-1));)n--;u<n&&wa(e,u,n,r),ta(e,r,l,Ti,!o||Ni===126),Ti=l,Aa(r)}function Na(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(M(n)||n===10||n===13)return!0}return!1}function Pa(e){let t=``,n=0;for(let r=0;r+1<e.length;r++)e.charCodeAt(r)===92&&e.charCodeAt(r+1)===124&&(t+=e.slice(n,r),n=r+1,r++);return t+e.slice(n)}function Fa(e,t,n,r){let i=e.source;for(let a=t;a<n;a++){let t=i.charCodeAt(a);if((t===123||t===60)&&r.inline){let t=r.inline(e,a,n,r);if(t){a=t.end-1;continue}}if(t===92){a++;continue}if(t===96||t===36&&Pi){let e=a+1;for(;i.charCodeAt(e)===t;)e++;let r=ha(i,e,n,e-a,t);if(r>=0){a=r+e-a-1;continue}a=e-1}if(t===60){let e=Sa(i,a,n)?.end??xa(i,a,n);if(e>a){a=e-1;continue}}if(t===33&&i.charCodeAt(a+1)===91){let t=da(i,a+2,n,e,r);if(t>=0){if(Fa(e,a+2,t,r))return!0;let o=Ia(i,a+2,t,n,r);a=(o<0?t+1:o)-1;continue}}if(t!==91)continue;let o=da(i,a+1,n,e,r);if(!(o<0)){if(i.charCodeAt(a+1)===94&&o>a+2&&r.config.gfm&&r.footnotes.has(Or(i.slice(a+2,o)))&&!Na(i.slice(a+2,o)))a=o;else if(Ia(i,a+1,o,n,r)>=0)return!0}}return!1}function Ia(e,t,n,r,i,a=!0){let o=n+1,s=e.charCodeAt(o),c=a&&i.definitions.size>0;if(s===91){let a=o+1;for(;a<r&&e.charCodeAt(a)!==93&&e.charCodeAt(a)!==91;)e.charCodeAt(a)===92&&a++,a++;return e.charCodeAt(a)===93?a>o+1?i.definitions.has(Or(e.slice(o+1,a)))?a+1:-1:c&&i.definitions.has(Or(e.slice(t,n)))?a+1:-1:-1}if(s===40){let t=ua(e,o,r);if(t>=0)return t}return c&&i.definitions.has(Or(e.slice(t,n)))?o:-1}var La=3,Ra=4,za=4,Ba=6,Va=3,Ha=3,Ua=2,Wa=9,Ga=4,Ka=999,qa=100,Ja=1024,Ya=1,Xa=!1,Za=!1,Qa=!1,$a=0,eo,to,no=!1,ro,io=0,ao=new Int32Array(Ja),oo=new Int32Array(Ja),so=[],co,lo=0,uo=0;function fo(){Qa=!1,co=void 0,$a=0,eo=void 0,to=void 0,ro=void 0,io=0,so.length=0}function po(e,t){if(io===ao.length){let e=new Int32Array(io*2);e.set(ao),ao=e;let t=new Int32Array(io*2);t.set(oo),oo=t}so[io]=e,ao[io]=t,oo[io++]=0}function mo(e,t=0){let n=[],r=0;for(;r<Ar&&kr[r]<t;)r++;for(let t=r;t<Ar;t++){let r=kr[t],i=t+1<Ar?kr[t+1]:e.length,a=i;e.charCodeAt(a-1)===10&&a--,e.charCodeAt(a-1)===13&&a--,n.push({start:r,end:a,next:i})}return n}function L(e,t){let n=t.start,r=t.padding??0;for(;n<t.end&&M(e.charCodeAt(n));)r+=e.charCodeAt(n)===9?vo(e,n):1,n++;return{start:n,indent:r}}function R(e,t){return L(e,t).start===t.end}function ho(e,t,n,r){if(R(e,t[0])&&M(e.charCodeAt(n-1)))return!1;for(let n=1;n<t.length&&t[n].start<r;n++)if(R(e,t[n]))return!1;return!0}function go(e,t,n){for(;n>t&&M(e.charCodeAt(n-1));)n--;return n}function _o(e,t,n){let r=t.start,i=t.padding??0;if(i>=n)return{...t,padding:i-n};for(;r<t.end&&i<n&&M(e.charCodeAt(r));)i+=e.charCodeAt(r)===9?vo(e,r):1,r++;return{start:r,end:t.end,next:t.next,padding:Math.max(0,i-n),lazy:t.lazy}}function vo(e,t){let n=t;for(;n&&e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13;)n--;let r=0;for(let i=n;i<t;i++)r+=e.charCodeAt(i)===9?er-r%er:1;return er-r%er}function yo(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La)return!1;let i=e.charCodeAt(r.start);if(i!==42&&i!==45&&i!==95)return!1;let a=0;for(let n=r.start;n<t.end;n++){let t=e.charCodeAt(n);if(t===i)a++;else if(!M(t))return!1}return a>=Va}function bo(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La||e.charCodeAt(r.start)!==35)return;let i=r.start;for(;e.charCodeAt(i)===35;)i++;let a=i-r.start;if(a>Ba||i<t.end&&!M(e.charCodeAt(i)))return;for(;M(e.charCodeAt(i));)i++;let o=i,s=go(e,o,t.end),c=s;for(;c>o&&e.charCodeAt(c-1)===35;)c--;return(c===o||c<s&&M(e.charCodeAt(c-1)))&&(s=go(e,o,c)),{start:r.start,content:o,end:s,depth:a}}function xo(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La)return 0;let i=e.charCodeAt(r.start);if(i!==45&&i!==61)return 0;let a=r.start;for(;e.charCodeAt(a)===i;)a++;if(a===r.start)return 0;for(;M(e.charCodeAt(a));)a++;return a===t.end?i===61?1:2:0}function So(e,t,n=Xa){let r=L(e,t);if(!n&&r.indent>La)return;let i=e.charCodeAt(r.start),a=i===36;if(i!==96&&i!==126&&!(a&&Za))return;let o=r.start;for(;e.charCodeAt(o)===i;)o++;if(!(o-r.start<(a?Ua:Ha))){if(i!==126){for(let n=o;n<t.end;n++)if(e.charCodeAt(n)===i)return}return{start:r.start,content:o,char:i,length:o-r.start,indent:r.indent}}}function Co(e,t,n=Xa){let r=L(e,t);if(Qa||!n&&r.indent>La)return;let i=r.start,a=e.charCodeAt(i),o=0,s=!1;if(Sr(a)){for(s=!0;Sr(e.charCodeAt(i))&&i-r.start<Wa;)o=o*10+e.charCodeAt(i++)-48;if(e.charCodeAt(i)!==46&&e.charCodeAt(i)!==41)return;i++}else if(a===42||a===43||a===45)i++;else return;if(i<t.end&&!M(e.charCodeAt(i)))return;let c=i,l=0;for(;i<t.end&&M(e.charCodeAt(i));)l+=e.charCodeAt(i)===9?vo(e,i):1,i++;let u=0,d=i===t.end;return(!n&&l>Ga||d)&&(u=e.charCodeAt(c)===9?vo(e,c)-1:0,i=c<t.end?c+1:c,l=1),{start:r.start,content:i,prefix:d?c:i,indent:r.indent+c-r.start+(l||1),ordered:s,number:o,char:e.charCodeAt(c-1),padding:u}}function wo(e,t,n=Xa){let r=L(e,t);if(Qa||!n&&r.indent>La||e.charCodeAt(r.start)!==62)return-1;let i=r.start+1;return M(e.charCodeAt(i))&&i++,i}var To=/* @__PURE__ */ new Set(/* @__PURE__ */ `address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)),Eo=/<\/(?:script|pre|style|textarea)>/i;function Do(e,t,n){let r=L(e,t),i=r.start;if(r.indent>La||e.charCodeAt(i)!==60)return;if(e.startsWith(`<!--`,i))return{start:i,until:`-->`};if(e.startsWith(`<?`,i))return{start:i,until:`?>`};if(e.startsWith(`<![CDATA[`,i))return{start:i,until:`]]>`};if(e.charCodeAt(i+1)===33&&Cr(e.charCodeAt(i+2)))return{start:i,until:`>`};let a=i+1;e.charCodeAt(a)===47&&a++;let o=a;for(;Cr(e.charCodeAt(a))||Sr(e.charCodeAt(a));)a++;let s=e.slice(o,a).toLowerCase();if(M(e.charCodeAt(a))||e.charCodeAt(a)===62||e.charCodeAt(a)===47&&e.charCodeAt(a+1)===62||a===t.end){if(e.charCodeAt(i+1)!==47&&e.charCodeAt(a)!==47&&(s===`script`||s===`pre`||s===`style`||s===`textarea`))return{start:i,until:Eo};if(To.has(s))return{start:i,until:null}}if(!n){let n=xa(e,i,t.end,!0);if(n>0&&go(e,n,t.end)===n)return{start:i,until:null}}}function Oo(e,t){let n=e.source;return e.interrupt?.(t)||R(n,t)||yo(n,t)||bo(n,t)||So(n,t)?!0:!e.config.mdx&&!!Do(n,t,!0)}function ko(e,t){let n=e.source;if(Oo(e,t)||wo(n,t)>=0||e.config.gfm&&jo(n,t))return!0;let r=Co(n,t);return!!r&&(!r.ordered||n.charCodeAt(r.start)===49&&(n.charCodeAt(r.start+1)===46||n.charCodeAt(r.start+1)===41))&&!R(n,{start:r.content,end:t.end,next:t.next,padding:r.padding})}function Ao(e,t){return!!e.interrupt?.(t)&&(e.continuationEnd?.(t)??t.end)>t.end}function jo(e,t){let n=L(e,t);if(Qa||!Xa&&n.indent>La||!e.startsWith(`[^`,n.start))return;let r=n.start+2;for(;r<t.end;r++){let t=e.charCodeAt(r);if(M(t)||t===91)return;if(t===93)break;t===92&&e.charCodeAt(r+1)<$n&&xr(e.charCodeAt(r+1))&&r++}if(!(r===n.start+2||r-n.start>Ka+2||e.charCodeAt(r)!==93||e.charCodeAt(r+1)!==58))return{end:r+2,raw:e.slice(n.start+2,r)}}function Mo(){return $a>0}function No(e,t){let n=e.source;return wo(n,t)>=0||!!Co(n,t)&&!yo(n,t)||!!e.config.gfm&&!!jo(n,t)}function Po(e,t,n,r){let i=e.source,a=n<t.length?t[n]:r;return!a||a===eo||a.lazy||!Ko(i,a)&&!Fo(i,a)?!1:R(i,a)?a.start===a.end&&!a.padding&&a.end===i.length:No(e,a)}function Fo(e,t){let n=ro;if(!n||!t||t.lazy)return!1;let r=1,i=n.length-1;for(;r<=i;){let a=r+i>>1,o=n[a];if(o.next<t.next)r=a+1;else if(o.next>t.next)i=a-1;else return!o.lazy&&!R(e,o)}return!1}function Io(e,t,n,r,i,a,o,s){if(!ro)return!1;let c=e.source,l=o?Fo(c,t[n])&&o.prefix:Po(e,t,n,s)?Fo(c,t[n]??s)&&(t[n]??s).start:n>r+1&&Ko(c,t[n-1])&&Fo(c,t[n-1])&&t[n-1].end;if(l===!1)return!1;if(P.end[i]<=t[r].end)for(let e=r+1;e<n;e++)t[e].end<l&&R(c,t[e])&&(P.a[i]=1);return P.end[i]=l,P.end[a]=l,!0}function Lo(e,t){return e.config.mdx||!Do(e.source,t,!1)?1:t.next===t.end?0:2}function Ro(e,t,n){let r=e.source,i=!1;for(let a=0;a<qa;a++){let a=wo(r,t),o=a<0?Co(r,t):void 0,s=a<0&&!o&&e.config.gfm?jo(r,t):void 0;if(a<0&&!o&&!s)break;i=!!o;let c=o?{start:o.content,end:t.end,next:t.next,padding:o.padding}:s?{start:s.end,end:t.end,next:t.next}:{start:a,end:t.end,next:t.next,padding:zo(r,a)};if(n.start===t.start)n={...c,end:n.end,next:n.next};else if(o||s){let e=o?o.indent:za;if(L(r,n).indent<e)return{line:n,lazy:!0,list:i};n=_o(r,n,e)}else{let e=wo(r,n);if(e<0)return{line:n,lazy:!0,list:i};n={start:e,end:n.end,next:n.next,padding:zo(r,e)}}t=c}return{line:n,lazy:!1,list:i}}function zo(e,t){return e.charCodeAt(t-1)===9?vo(e,t-1)-1:0}function Bo(e,t,n,r,i){let a=e.source,o=i.start;for(;o<i.end&&a.charCodeAt(o)!==45;)o++;if(o===i.end)return!1;let s=Wo(e,t,n,i);if(s.lazy)return!1;let c=Wo(e,t,n,r).line;return R(a,c)||e.interrupt?.(c)?!1:!!ts(e,[c,s.line],0)}function Vo(e,t,n,r){let i=Wo(e,t,n,r);return!i.lazy&&!R(e.source,i.line)&&!ko(e,i.line)&&!Co(e.source,i.line)}function Ho(e,t){let n=t.start;for(;M(e.charCodeAt(n));)n++;let r=e.charCodeAt(n);return r===62||r===45||r===42||r===43||r===91||r>=48&&r<=57}function Uo(e,t,n,r){let i=e.source;if(!r){if(t!==n){let r=Ro(e,t,t);if(r.list&&R(i,r.line)&&!Ro(e,t,n).lazy)return t}return n}return ko(e,Ro(e,t,n).line)?n:t}function Wo(e,t,n,r){if(t&&t!==n&&Ho(e.source,t)){let i=Ro(e,t,n);if(!i.lazy&&i.line.start!==n.start){let n=Ro(e,t,r);return n.lazy||!Ho(e.source,i.line)?n:Ro(e,i.line,n.line)}}return Ro(e,n,r)}function Go(e,t,n=!1,r=0,i=!1){let a=e.source,o=t;no=!1;for(let s=0;s<qa;s++){let c=s===0&&r===3;if(R(a,o))return c?3:0;if(!e.config.mdx&&L(a,o).indent>=Ra)return s===0&&!i&&r!==1?3:0;if(yo(a,o)||bo(a,o)||So(a,o)||e.interrupt?.(o)||!e.config.mdx&&Do(a,o,!1))return 0;let l=wo(a,o),u=l<0?Co(a,o):void 0;if(u&&(no=!0),u&&(n||c)&&(R(a,{start:u.content,end:t.end,next:t.next})||u.ordered&&(a.charCodeAt(u.start)!==49||a.charCodeAt(u.start+1)!==46&&a.charCodeAt(u.start+1)!==41)))return 1;let d=l>=0?l:u?.content;if(d===void 0)return 1;o={start:d,end:t.end,next:t.next}}return 0}function Ko(e,t){for(let n=t.start-1;n>=0&&e.charCodeAt(n)!==10&&e.charCodeAt(n)!==13;n--)if(e.charCodeAt(n)===62)return!0;return!1}function qo(e,t,n=!0){let r=!0;for(let e=0;e<t.length;e++)if((!n||e>0)&&t[e].padding||e>0&&t[e].start!==t[e-1].next){r=!1;break}if(r&&t.length){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,t[t.length-1].end),base:i}}if(t.length===1&&(n||!t[0].padding)){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,r.end),base:i}}let i=0;for(let r=0;r<t.length;r++){let a=t[r],o=n&&r===0?L(e,a).start:a.start;i+=a.end-o+(n&&r===0?0:a.padding??0)+(r+1<t.length?a.next-a.end:0)}let a=new Int32Array(i+1),o=``,s=0;for(let r=0;r<t.length;r++){let i=t[r],c=n&&r===0?L(e,i).start:i.start,l=r+1<t.length?i.next:i.end;if((!n||r>0)&&i.padding){o+=` `.repeat(i.padding);for(let e=0;e<i.padding;e++)a[s++]=c-1}o+=e.slice(c,l);for(let e=c;e<l;e++)a[s++]=e;a[s]=l}return{source:o,base:0,map:a}}function Jo(e,t,n){po(qo(e.source,n),t)}function Yo(e,t,n,r,i=!1){let a=e.source,o=t[n],s=L(a,o);if(!i&&!Xa&&s.indent>La||a.charCodeAt(s.start)!==91)return 0;for(let e=s.start+1;e<o.end;e++){let t=a.charCodeAt(e);if(t===92)e++;else{if(t===91)return 0;if(t===93){if(a.charCodeAt(e+1)!==58)return 0;break}}}if(ts(e,t,n))return 0;let c=n+1;if(t===co&&n>=lo&&n<uo)c=uo;else{for(co=t,lo=n;c<t.length&&!R(a,t[c])&&!ko(e,t[c])&&!xo(a,t[c])&&!ts(e,t,c,!0);)c++;uo=c}for(let i=2;;i*=2){let a=Xo(e,t,n,Math.min(c,n+i),c,r,s);if(a>=0)return a}}function Xo(e,t,n,r,i,a,o){let s=e.source,c=t[n],l=qo(s,t.slice(n,r),!1),u=l.source,d=r<i,f=o.start-c.start+(c.padding??0)+1,p=f;for(;f<u.length&&f-p<=Ka&&u.charCodeAt(f)!==93&&u.charCodeAt(f)!==91;)u.charCodeAt(f)===92&&f++,f++;if(d&&f+1>=u.length)return-1;if(f-p>Ka||f===p||u.charCodeAt(f)!==93||u.charCodeAt(f+1)!==58)return 0;let m=u.slice(p,f),h=Or(m);if(!h)return 0;for(f+=2;M(u.charCodeAt(f));)f++;if(u.charCodeAt(f)===10||u.charCodeAt(f)===13)for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&!Zo(u,f))return-1;let g=ra(u,f,u.length);if(!g||g.end===f)return 0;f=g.end;let _=f;for(;M(u.charCodeAt(f));)f++;let v=null,y=f,b=u.charCodeAt(f)===10||u.charCodeAt(f)===13;if(b){for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&f>=u.length)return-1}if(f>_){let e=aa(u,f,u.length);if(e){let t=e.end;for(;M(u.charCodeAt(t));)t++;if(d&&t>=u.length)return-1;if(t===u.length||u.charCodeAt(t)===10||u.charCodeAt(t)===13)v=e.value||null,y=t;else if(!b)return 0}else{let e=u.charCodeAt(f);if(d&&(e===34||e===39||e===40))return-1;if(!b&&f<u.length)return 0}}else if(f<u.length)return 0;let x=I(l,y),S=1;for(;n+S<t.length&&t[n+S-1].end<x;)S++;if(S>i-n)return 0;let C={identifier:h,label:Dr(m),url:g.value,title:v},ee=F(N.Definition,o.start,x,a);return P.extra[ee]=C,e.definitions.has(h)||e.definitions.set(h,C),S}function Zo(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Qo(e,t){let n=L(e,t).start,r=go(e,n,t.end);if(e.charCodeAt(n)===124&&n++,e.charCodeAt(r-1)===124){let t=0;for(let i=r-2;i>=n&&e.charCodeAt(i)===92;i--)t++;t&1||r--}let i=[],a=n;for(let t=n;t<r;t++)e.charCodeAt(t)===92&&(e.charCodeAt(t+1)===124||e.charCodeAt(t+1)===92)?t++:e.charCodeAt(t)===124&&(i.push([a,t]),a=t+1);return i.push([a,r]),i}function $o(e,t){let n=L(e,t);if(!Xa&&n.indent>La)return;let r=e.charCodeAt(n.start);if(r!==45&&r!==58&&r!==124)return;let i=Qo(e,t),a=[];for(let t of i){let n=t[0],r=go(e,n,t[1]);for(;M(e.charCodeAt(n));)n++;let i=e.charCodeAt(n)===58;i&&n++;let o=n;for(;e.charCodeAt(n)===45;)n++;if(n===o)return;let s=e.charCodeAt(n)===58;if(s&&n++,n!==r)return;a.push(i?s?`center`:`left`:s?`right`:null)}return a}function es(e,t,n){let r=e.source,i=F(N.TableRow,L(r,t).start,t.end,n),a=Qo(r,t);for(let e=0;e<a.length;e++){let[n,o]=a[e],s=F(N.TableCell,e===0?L(r,t).start:n-1,e+1===a.length?t.end:o,i),c=n;for(;M(r.charCodeAt(c));)c++;let l=go(r,c,o);po({source:r.slice(c,l),base:c,table:!0},s)}}function ts(e,t,n,r=!1){if(!e.config.gfm||!t[n+1]||t[n+1].lazy||t[n]===to)return;let i=e.source,a=$o(i,t[n+1]);if(!a)return;let o=t[n];if(!Xa&&L(i,o).indent>=Ra||Co(i,o)&&(!r||ko(e,o))||wo(i,o)>=0||jo(i,o)||!r&&!Xa&&Do(i,o,!1)||xo(e.source,t[n+1])||Co(e.source,t[n+1]))return;let s=Qo(e.source,t[n]);if(s.length===a.length&&!(s.length===1&&s[0][0]>s[0][1]))return a}function ns(e,t){let n=P.last[e];for(;n&&(P.kind[n]===N.Blockquote||P.kind[n]===N.List||P.kind[n]===N.ListItem||P.kind[n]===N.FootnoteDefinition);)n=P.last[n];return!!n&&P.kind[n]===N.Table&&P.end[n]===t}function rs(e,t,n,r,i){let a=ts(e,t,n,i);if(!a||!Xa&&Do(e.source,t[n],!1))return 0;let o=e.source,s=F(N.Table,L(o,t[n]).start,t[n+1].end,r);P.extra[s]=a,es(e,t[n],s);let c=n+2;for(;c<t.length&&!t[c].lazy&&!ko(e,t[c])&&!e.esm?.(t[c])&&!Co(o,t[c])&&(Xa||L(o,t[c]).indent<Ra)&&(e.config.mdx||!Do(o,t[c],!1));c++)es(e,t[c],s),P.end[s]=t[c].end;return c-n}function is(e,t,n){let r=e.config.frontmatter;if(!r||!t.length)return 0;let i=e.source,a=t[0],o=i.charCodeAt(a.start),s=o===45&&r.yaml,c=o===43&&r.toml;if(!s&&!c||go(i,a.start,a.end)-a.start!==3||i.charCodeAt(a.start+1)!==o||i.charCodeAt(a.start+2)!==o)return 0;for(let e=1;e<t.length;e++){let r=t[e];if(go(i,r.start,r.end)-r.start!==3||i.charCodeAt(r.start)!==o||i.charCodeAt(r.start+1)!==o||i.charCodeAt(r.start+2)!==o)continue;let c=F(s?N.Yaml:N.Toml,a.start,r.end,n);return P.value[c]=i.slice(a.next,e===1?a.next:t[e-1].end),e+1}return Qa=!0,0}function as(e,t,n,r,i,a){let o=e.source,s=t[n],c=n+1,l=!1,u=[];for(;c<t.length;c++){let e=t[c];if(e.lazy)break;let n=L(o,e),r=n.start;for(;o.charCodeAt(r)===i.char;)r++;if((Xa||n.indent<=La)&&r-n.start>=i.length&&go(o,r,e.end)===r){l=!0;break}u.push(_o(o,e,i.indent))}let d=l?t[c]:t[Math.max(n,c-1)],f=!t[c]?.lazy&&a&&No(e,a),p=P.kind[r]===N.Root||!!f||(P.kind[r]===N.ListItem||P.kind[r]===N.FootnoteDefinition)&&d.next===o.length&&!$a,m=!l&&c>n+1&&d.start===d.end&&d.end===o.length&&!d.padding,h=i.char===36,g=F(h?N.Math:N.Code,i.start,m?t[c-2].next:l||!p?d.end:d.next,r);m&&(P.end[r]=Math.max(P.end[r],d.end));let _=i.content;for(;M(o.charCodeAt(_));)_++;let v=_;for(;v<s.end&&!M(o.charCodeAt(v));)v++;let y=v;for(;M(o.charCodeAt(y));)y++;P.extra[g]=h?_===s.end?null:Dr(o.slice(_,s.end)):{lang:_===s.end?null:Dr(o.slice(_,v)),meta:y===s.end?null:Dr(o.slice(y,s.end))},P.value[g]=u.length?qo(o,u,!1).source:``;let b=u[u.length-1];if(!l&&b&&(!p&&R(o,d)||b.start===b.end&&b.end===o.length)){let e=P.value[g];e.charCodeAt(e.length-1)===10?P.value[g]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[g]=e.slice(0,-1))}let x=u[0];return x&&x.start===x.end&&!x.padding&&o.charCodeAt(s.end)===13&&s.next===s.end+1&&P.value[g].charCodeAt(0)===10&&(P.value[g]=P.value[g].slice(1)),(l||p)&&u.length>1&&b.start===b.end&&!b.padding&&o.charCodeAt(b.end)===10&&P.value[g].charCodeAt(P.value[g].length-1)===13&&(P.value[g]=P.value[g].slice(0,-1)),c-n+ +!!l}function os(e,t,n,r,i,a){let o=e.source,s=t[n],c=n,l=!1;for(;c<t.length&&!(c>n&&(s.lazy||t[c].lazy)||!i.until&&R(o,t[c]));c++)if(i.until){let e=o.slice(t[c].start,t[c].end);if(typeof i.until==`string`?e.includes(i.until):i.until.test(e)){l=!0,c++;break}}let u=t[c-1],d=a&&No(e,a),f=i.until&&!l&&(P.kind[r]===N.Root||d||u.next===o.length)&&c===t.length,p=F(N.Html,s.start,f?u.next:u.end,r),m=t.slice(n,c);return P.value[p]=qo(o,m,!1).source,f&&(P.value[p]+=o.slice(u.end,u.next)),c-n}function ss(e,t,n,r,i,a,o,s,c){let l=e.source,u=t[n],d=i.raw,f=Or(d),p=i.end;for(;M(l.charCodeAt(p));)p++;let m=[{start:p,end:u.end,next:u.next}],h=n+1,g=n,_=Go(e,m[0],o>0),v=no,y=m[0],b,x=!1,S;for(;h<t.length;h++){let n=L(l,t[h]),r=n.indent;if(n.start===t[h].end)m.push(t[h]),_!==3&&(_=0),x=!1;else if(!t[h].lazy&&(r>=za||s&&r===0)){let n=r>=za?_o(l,t[h],za):t[h];if(x?(x=Vo(e,b,y,n),x||(S=n)):e.config.gfm&&m[m.length-1]!==S&&Bo(e,b,y,m[m.length-1],n)&&(x=!0),!x){let t=Uo(e,y,n,_===1);t!==y&&(b=y,y=t)}m.push(n),g=h,_=x?0:Go(e,n,_===1,_,v),v||=no}else if(_===1&&(!ko(e,t[h])&&!Co(l,t[h])||Ao(e,t[h]))){let n=Lo(e,t[h]);if(n===0)break;if(m.push({...t[h],lazy:!0}),g=h,n===2){h++;break}}else break}let C=t[g].end;h>g+1&&Ko(l,t[h-1])&&(C=t[h-1].end),Po(e,t,h,c)&&(C=(t[h]??c).start);let ee=F(N.FootnoteDefinition,a,C,r);P.extra[ee]={identifier:f,label:Dr(d)},e.footnotes.add(f);let te=ro;ro??=m;let ne=ds(e,m,ee,!1,o,t[h]??c);return ro=te,ne<m.length&&(h=n+ne,P.end[ee]=t[h-1].end),ts(e,t,h)&&ns(ee,t[h-1].end)&&(to=t[h]),P.last[ee]&&(P.end[ee]=Math.max(P.end[ee],P.end[P.last[ee]])),h-n}function cs(e,t,n){for(let r=P.child[n];r;r=P.next[r]){let n,i;if(P.kind[r]===N.Mdx&&P.extra[r]?.type===`mdxJsxFlowElement`)n=P.a[r],i=P.b[r];else if(P.kind[r]===N.FootnoteDefinition){let t=P.child[r]?P.start[P.child[r]]:P.end[r];for(let n=P.start[r];n<t;n++)if(e.charCodeAt(n)===10||e.charCodeAt(n)===13)return!0;n=P.start[r],i=P.end[r]}else continue;for(let i=P.child[r];i;i=P.next[i]){for(let r of t)if(r.end>n&&r.end<=P.start[i]&&R(e,r))return!0;n=P.end[i]}for(let a of t)if(a.end>n&&(P.kind[r]===N.FootnoteDefinition?a.end<a.next&&a.next<=i:a.end<=i)&&R(e,a))return!0;if(cs(e,t,r))return!0}return!1}function ls(e,t,n,r,i){let a=e.source,o=n,s=0,c=!1,l=!1,u,d,f;for(;o<t.length;o++){let p=t[o],m=wo(a,p);if(m>=0){let t={start:m,end:p.end,next:p.next,padding:zo(a,m),lazy:p.lazy};if(l&&d?(l=Vo(e,f,d,t),l||(u=t)):e.config.gfm&&d&&i[i.length-1]!==u&&Bo(e,f,d,i[i.length-1],t)&&(l=!0),!l){let n=Uo(e,d??t,t,s===1);n!==d&&(f=d,d=n)}i.push(t),s=l?0:Go(e,t,s===1||o===n&&r>0,s,c),c||=no}else if(s===1&&(!ko(e,p)&&!Co(a,p)||Ao(e,p))){let t=Lo(e,p);if(t===0)break;if(i.push({...p,lazy:!0}),t===2){o++;break}}else break}return o}function us(e,t,n,r){let i=t[n],a=P.last[r];if(!a||!Ko(e,i)||!(P.kind[a]===N.Blockquote&&i.next===e.length&&i.end===i.next&&i.start===i.end&&!i.padding&&n>0&&!R(e,t[n-1])||P.kind[a]===N.List||P.kind[a]===N.FootnoteDefinition))return;let o=P.kind[a]===N.List?P.last[a]:0;if(o&&Fo(e,i)){let r=P.last[o];n>0&&R(e,t[n-1])&&(r?P.end[r]:P.start[o])<t[n-1].end&&(P.a[o]=1),P.end[o]=i.end}else o&&n>0&&R(e,t[n-1])&&P.end[o]<t[n-1].end&&(P.extra[a]=!0);P.end[a]=i.end}function ds(e,t,n,r=!1,i=0,a){Xa=!!e.config.mdx,Za=!!e.config.math;let o=n,s=e.source,c=r?is(e,t,n):0,l=i===2?1:i,u=!1,d=0;for(;c<t.length;){n=e.flowParent?.(o)??o;let r=t[c];if(R(s,r)){us(s,t,c,n),l!==3&&(l=0),c++;continue}let i=L(s,r);if(e.flow){let n=e.flow(e,t,c,o,a);if(n){if(l=0,c+=n,t[c]?.lazy)return c;continue}}let f=bo(s,r);if(f){let t=F(N.Heading,f.start,r.end,n);P.a[t]=f.depth,Jo(e,t,[{start:f.content,end:f.end,next:f.end}]),l=0,c++;continue}let p=So(s,r);if(p){if(c+=as(e,t,c,n,p,a),t[c]?.lazy)return c;l=0;continue}if(!r.lazy&&yo(s,r)){F(N.ThematicBreak,i.start,r.end,n),l=0,c++;continue}let m=r.start<d;if((m?-1:wo(s,r))>=0){let o=P.last[n];if(o&&P.kind[o]===N.List&&Ko(s,r)){let e=P.last[o];c>0&&R(s,t[c-1])&&P.child[e]&&P.end[e]<=t[c-1].start&&(P.extra[o]=!0),P.end[o]=r.start}let d=[],f=ls(e,t,c,l,d),p=F(N.Blockquote,i.start,t[f-1].end,n);$a++;let m=ds(e,d,p,!1,l,t[f]??a);if($a--,m<d.length&&(f=c+m,P.end[p]=t[f-1].end),ts(e,t,f)&&ns(p,t[f-1].end)&&(to=t[f]),t[f]?.lazy)return f;let h=P.last[p];(Po(e,t,f,a)||h&&(t[f]??a)&&(t[f]??a)!==eo&&P.end[h]>t[f-1].end)&&(P.end[p]=(t[f]??a).start),P.last[p]&&(P.end[p]=Math.max(P.end[p],P.end[P.last[p]])),u=f<t.length&&!R(s,t[f]),l=0,c=f;continue}let h=e.config.gfm&&!m&&jo(s,r);if(h){if(c+=ss(e,t,c,n,h,i.start,l,P.kind[o]===N.FootnoteDefinition,a),t[c]?.lazy)return c;l=0;continue}let g=rs(e,t,c,n,l===1||l===2);if(g){c+=g,l=0;continue}let _=r.lazy||m?void 0:Co(s,r);if(_&&l&&(R(s,{start:_.content,end:r.end,next:r.next})||_.ordered&&(s.charCodeAt(_.start)!==49||s.charCodeAt(_.start+1)!==46&&s.charCodeAt(_.start+1)!==41))&&(_=void 0),_){let i=F(N.List,_.start,r.end,n);P.a[i]=+!!_.ordered,P.b[i]=_.number;let o=c,d=!1;for(;o<t.length;){let n=Co(s,t[o]);if(!n||n.ordered!==_.ordered||n.char!==_.char||yo(s,t[o]))break;let r=o,c=[{start:n.content,end:t[o].end,next:t[o].next,padding:n.padding}];o++;let u=Go(e,c[0],l>0),f=no,p=c[0],m,h=!1,g=r,v=!1,y=!1,b;for(;o<t.length;o++){let i=t[o];if(R(s,i)){if(g===r&&R(s,c[0])){let n=o+1;for(;n<t.length&&R(s,t[n]);)n++;let r=n<t.length?Co(s,t[n]):void 0;r&&r.char===_.char&&r.ordered===_.ordered?(Fo(s,t[n])||(d=!0),o=n):Po(e,t,n,a)&&(o=n);break}c.push(_o(s,i,n.indent)),h=!0,u!==3&&(u=0),y=!1;continue}let v=L(s,i);if(v.indent<n.indent&&Co(s,i)&&!i.lazy)break;if(!i.lazy&&v.indent>=n.indent){let t=_o(s,i,n.indent);if(y?(y=Vo(e,m,p,t),y||(b=t)):e.config.gfm&&c[c.length-1]!==b&&Bo(e,m,p,c[c.length-1],t)&&(y=!0),!y){let n=Uo(e,p,t,u===1);n!==p&&(m=p,p=n)}c.push(t),g=o,u=y?0:Go(e,t,u===1||l>0,u,f),f||=no,h=!1}else if(u===1&&(i.lazy||!ko(e,i)||Ao(e,i))){let t=Lo(e,i);if(t===0)break;if(c.push({...i,lazy:!0}),g=o,t===2){o++;break}}else break}let x=F(N.ListItem,n.start,t[g].end,i);P.a[x]=+!!v;let S=io,C=o<t.length?Co(s,t[o]):void 0,ee=eo;C&&C.ordered===_.ordered&&C.char===_.char&&!yo(s,t[o])&&(eo=t[o]);let te=ds(e,c,x,!1,l,t[o]??a);eo=ee,te<c.length&&(o=r+te,g=o-1,P.end[x]=t[g].end),ts(e,t,o)&&ns(x,t[o-1].end)&&(to=t[o]),l=0;let ne=o<t.length?Co(s,t[o]):void 0,re=ne&&ne.ordered===_.ordered&&ne.char===_.char&&!yo(s,t[o]);if(e.config.gfm){let e=P.child[x];for(;e&&P.kind[e]===N.Definition;)e=P.next[e];if(e&&P.kind[e]===N.Paragraph)for(let t=S;t<io;t++){if(ao[t]!==e)continue;let r=so[t].source,i=r.charCodeAt(1),a=i===13&&r.charCodeAt(2)===10?3:2,o=a+1;for(;M(r.charCodeAt(o));)o++;r.charCodeAt(0)===91&&(M(i)||i===10||i===13||i===120||i===88)&&r.charCodeAt(a)===93&&o<r.length&&(M(r.charCodeAt(a+1))||r.charCodeAt(a+1)===10||r.charCodeAt(a+1)===13)&&ho(s,c,n.content,P.start[e])&&(P.b[x]=i===120||i===88?2:1,oo[t]=a+1,P.a[e]=Ya);break}}for(let e=P.child[x];e&&P.next[e];e=P.next[e]){let n=P.next[e];for(let i=r;i<g;i++)t[i].end>P.end[e]&&t[i].next<=P.start[n]&&R(s,t[i])&&(v=!0)}if((e.config.mdx||e.config.gfm)&&cs(s,c,x)&&(v=!0),P.a[x]=+!!v,P.last[x]&&(P.end[x]=Math.max(P.end[x],P.end[P.last[x]])),re&&P.last[x]&&(P.end[P.last[x]]===t[o].start||P.end[P.last[x]]===t[o-1].next)&&(P.end[x]=ne.prefix),Io(e,t,o,g,x,i,re?ne:void 0,a)){if(!re)break;continue}re&&h&&P.end[x]<=t[g].end&&(d=!0),P.end[i]=P.end[x],!re&&o>g+1&&Ko(s,t[o-1])&&(P.end[i]=t[o-1].end),!re&&o>g+2&&Ko(s,t[o-1])&&P.end[x]<=t[g].end&&(d=!0),!re&&Po(e,t,o,a)&&(P.end[i]=(t[o]??a).start,o>g+1&&P.end[x]<=t[g].end?d=!0:P.end[x]>t[g].end&&(P.end[x]=P.end[i]));let ie=t[o]??a;if(!re&&ie&&ie!==eo&&P.end[x]>t[o-1].end&&ie.start>P.end[i]&&(P.end[i]=P.end[x]=ie.start),!re)break}if(P.extra[i]=d,t[o]?.lazy)return o;let f=o;for(;f<t.length&&R(s,t[f]);)f++;u=f<t.length&&L(s,t[f]).indent>=Ra,l=0,c=o;continue}let v=P.last[n];if(v&&P.kind[v]===N.Definition&&c>0&&!R(s,t[c-1])){let r=Yo(e,t,c,n,!0);if(r){l=2,c+=r;continue}}if(!e.config.mdx&&i.indent>=Ra&&l!==2){let e=[],i=c,a=c;for(;i<t.length&&!(u&&i>c);i++){let n=t[i];if(R(s,n))e.push(_o(s,n,Ra));else if(L(s,n).indent>=Ra)e.push(_o(s,n,Ra)),a=i;else break}let o=a;for(let e=a+1;e<i;e++)L(s,t[e]).indent>=Ra&&(o=e);e.length=o-c+1;let d=F(N.Code,r.start,t[o].end,n);if(P.value[d]=qo(s,e,!1).source,R(s,e[e.length-1])){let e=P.value[d];e.charCodeAt(e.length-1)===10?P.value[d]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[d]=e.slice(0,-1))}l=u?0:3,u=!1,c=i;continue}let y=!e.config.mdx&&Do(s,r,l===2&&!r.lazy&&!ts(e,t,c,!0));if(y){if(c+=os(e,t,c,n,y,a),t[c]?.lazy)return c;l=0;continue}let b=Yo(e,t,c,n);if(b){l=2,c+=b;continue}let x=[r];e.continuationEnd&&(d=Math.max(d,e.continuationEnd(r,e,t,c,a)));let S=c+1,C=0;for(;S<t.length&&(C=t[S].lazy?0:xo(s,t[S]),!C);S++){let n=e.continuation?.(e,t,S,a);if(n)break;if(t[S].start<d){if(n===void 0&&Oo(e,t[S]))break}else{if(n===void 0&&!t[S].lazy&&ko(e,t[S])||t[S].lazy&&!e.config.mdx&&Do(s,t[S],!1)||n===void 0&&t[S].lazy&&Ao(e,t[S]))break;e.continuationEnd&&(d=e.continuationEnd(t[S],e,t,S,a))}if(ts(e,t,S,!0))break;x.push(t[S])}let ee=i.start;if(C&&!xo(s,r)){let e=P.last[n],r=c-1;for(;e&&P.kind[e]===N.Definition&&r>=0&&!R(s,t[r]);)ee=P.start[e],e=P.prev[e],r--}let te=F(C?N.Heading:N.Paragraph,ee,C?t[S].end:t[S-1].end,n);if(P.a[te]=C,Jo(e,te,x),l=+!C,c=S+ +!!C,C&&t[c]?.lazy)return c}return t.length}function fs(e){for(let t=0;t<io;t++){let n=so[t],r=ao[t];if(Ma(n,oo[t],n.source.length,r,e),so[t]=void 0,P.kind[r]===N.Paragraph&&P.a[r]===Ya){let t=P.child[r];if(t&&P.kind[t]===N.Text){if(P.value[t]=P.value[t].slice(1),!P.value[t])P.child[r]=P.next[t],P.next[t]?P.prev[P.next[t]]=0:P.last[r]=0;else{if(e.config.positions){let e=Fr(P.start[t]),n={line:e.line,column:e.column+1,offset:e.offset+1};P.extra[t]=P.extra[r]={positionStart:n}}P.start[t]++,P.start[r]=P.start[t]}}}}}function ps(e=[],t=!0){let n={gfm:void 0,mdx:void 0,frontmatter:void 0,positions:t};for(let t of e)t.name===`gfm`?n.gfm=t:t.name===`mdx`?n.mdx=t:t.name===`frontmatter`?n.frontmatter=t:t.name===`headingId`?n.headingId=t:t.name===`math`&&(n.math=t);return n}var ms=class extends Error{name;reason;place;line;column;ruleId;source;url;fatal=!0;constructor(e){super(e.reason,{cause:e.cause}),this.name=e.place?`${e.place.line}:${e.place.column}`:`1:1`,this.reason=e.reason,this.place=e.place,this.line=e.place?.line,this.column=e.place?.column,this.ruleId=e.ruleId,this.source=e.source,this.url=e.url}},hs=2024,gs=4,_s=2,vs=1,ys=2,bs="Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",xs={ecmaVersion:hs,sourceType:`module`,locations:!0,preserveParens:!0};function Ss(e){let t=0,n=``;for(;;){let r=e.indexOf(`/*`,t);if(r<0)break;let i=e.indexOf(`*/`,r+2);if(i<0)break;n+=e.slice(t,r),t=i+2}t&&(e=n+e.slice(t));for(let t=0;t<e.length;){let n=e.charCodeAt(t);if(br(n))t++;else{if(n!==47)return!1;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&e.charCodeAt(t)!==10&&e.charCodeAt(t)!==13;)t++;if(t===e.length)return!1}else return!1}}return!0}function Cs(e,t,n,r=`micromark-extension-mdx-expression`){throw new ms({reason:e,place:Fr(t),ruleId:n,source:r})}function ws(e,t){if(e&&typeof e==`object`){if(typeof e.type==`string`&&typeof e.start==`number`){let n=Fr(t(e.start)),r=Fr(t(e.end));e.start=n.offset,e.end=r.offset,e.loc={start:{line:n.line,column:n.column-1,offset:n.offset},end:{line:r.line,column:r.column-1,offset:r.offset}},e.range=[n.offset,r.offset]}for(let n of Object.keys(e)){if(n===`loc`||n===`range`)continue;let r=e[n];if(Array.isArray(r))for(let e=0;e<r.length;e++)ws(r[e],t),r[e]?.type===`ParenthesizedExpression`&&(r[e]=r[e].expression);else r&&typeof r==`object`&&(ws(r,t),r.type===`ParenthesizedExpression`&&(e[n]=r.expression))}}}function Ts(e,t,n,r=!1,i=!1,a=!0){let o=[],s=i?`({`:``,c=i?`})`:``,l=s+e+c,u=r&&Ss(e);u&&!a&&Cs(`Unexpected empty expression`,n(0),`unexpected-empty-expression`);let d=t=>n(Math.max(0,Math.min(e.length,t-s.length))),f;try{f=r&&!u?t.acorn.parseExpressionAt(l,0,{...xs,onComment:o}):t.acorn.parse(l,{...xs,onComment:o})}catch(t){return{error:{cause:t,at:d(t.pos)},swallow:t.raisedAt>=s.length+e.length||t.message.startsWith(`Unterminated comment`)}}if(r&&!u){let n=l.slice(f.end,l.length-c.length);if(!Ss(n))return{error:{at:d(f.end)},swallow:n.trimStart()[0]===`/`};if(!t.estree&&!i)return{program:f};f={type:`Program`,start:0,end:s.length+e.length,body:[{type:`ExpressionStatement`,expression:f,start:0,end:s.length+e.length}],sourceType:`module`,comments:[]}}if(f.comments=o,(t.estree||i||!r)&&ws(f,d),i){let e=f.body[0];(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`)&&Cs("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",e.start,`non-spread`);let t=e.expression.properties;t[1]&&Cs(`Unexpected extra content in spread: only a single spread is supported`,t[1].start,`spread-extra`),t[0]&&t[0].type!==`SpreadElement`&&Cs("Unexpected `"+t[0].type+"` in code: only spread elements are supported",t[0].start,`non-spread`)}return{program:f}}function Es(e,t,n){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t===125)return n;if(t===123||t===34||t===39||t===96||t===47)break}try{let r=n.acorn.tokenizer(e.slice(t),xs),i=0;for(;;){let e=r.getToken(),n=e.type.label;if(n===`eof`)return-1;if(n===`{`||n==="${")i++;else if(n===`}`){if(!i)return t+e.start;i--}}}catch{return-1}}var Ds=/* @__PURE__ */ new WeakMap;function Os(e,t){let n=Ds.get(e);return n?(t<n.from||n.at>=0&&t>n.at)&&(n.at=e.source.indexOf(`}`,t)):Ds.set(e,n={from:t,at:e.source.indexOf(`}`,t)}),n.from=t,n.at}function ks(e,t,n,r){let i=e.source,a=t+1,o=0;for(let s=2;;s*=2,a++){for(;a<n;a++){let e=i.charCodeAt(a);if((e===10||e===13&&i.charCodeAt(a+1)!==10)&&++o===s)break}if(a>=n||2*(a-t)>n-t)return;let c=Is(e,t+1,a,!0,!1),l=Ts(c.value,r,c.map,!0,!1,!0);if(l.error&&!l.swallow)return l.error}}var As=/* @__PURE__ */ new WeakMap,js=``;function Ms(e){js=e}function Ns(e,t){return e.source.charCodeAt(t)===32&&js.charCodeAt(I(e,t))===9}function Ps(e,t){return I(e,t)+ +!!Ns(e,t)}function Fs(e,t,n,r,i=!1,a=!0){let o=t*gs+(i?_s:0)+(a?vs:0),s=As.get(e)?.get(o);if(s&&s.end<=n)return s;let c=e.source,l,u=Os(e,t+1),d=u>=0&&u<n;if(d&&!i&&(l=ks(e,t,u,r)),d&&!l){let s=Es(c.slice(0,n),t+1,r),d=s>=0?s:u;for(let s=d;s<n;s++){if(c.charCodeAt(s)!==125)continue;let n=Is(e,t+1,s,!0),u=n.virtual?Is(e,t+1,s,!0,!1):n,d=Ts(u.value,r,u.map,!0,i,a);if(d.program){let t={end:s+1,value:n.value};r.estree&&(t.data={estree:d.program});let i=As.get(e);return i||(i=/* @__PURE__ */ new Map,As.set(e,i)),i.set(o,t),t}if(l=d.error,!d.swallow)break}}let f=-1;for(let r of e.lazy??[])r>t&&r<n&&(f<0||r<f)&&(f=r);f>=0&&Cs(bs,Ps(e,f),`unexpected-lazy`),e.boundary!==void 0&&Cs(bs,e.boundary,`unexpected-lazy`),l&&Cs(`Could not parse expression with acorn`,l.at,`acorn`),Cs("Unexpected end of file in expression, expected a corresponding closing brace for `{`",I(e,n),`unexpected-eof`)}function Is(e,t,n,r,i=!0){let a=[],o=``,s=!1,c=I(e,t);for(let l=t;l<=n&&(e.lazy?.has(l)&&Cs(bs,Ps(e,l),`unexpected-lazy`),l!==n);l++){let t=e.source.charCodeAt(l);if(a.push(I(e,l)),o+=e.source[l],c=I(e,l)+1,r&&(t===10||t===13&&e.source.charCodeAt(l+1)!==10)){e.lazy?.has(l+1)&&Cs(bs,Ps(e,l+1),`unexpected-lazy`);let t=0,r=0,u=0;for(;l+1<n&&M(e.source.charCodeAt(l+1));){let n=I(e,l+1),i=e.source.charCodeAt(l+1)===9,a=Ns(e,l+1);if(t>=ys){if(!a)break;r++}else t+=i?vo(js,n):1,t>ys&&(r=t-ys);l++,u=n+1}if(r&&(s=!0,c=u,i)){o+=` `.repeat(r);for(let e=0;e<r;e++)a.push(u)}}}return a.push(c),{value:o,map:e=>a[e],virtual:s}}var Ls=e=>Cr(e)||e===36||e===95||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Start}`,`u`)).test(String.fromCharCode(e)),Rs=e=>Ls(e)||Sr(e)||e===45||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Continue}`,`u`)).test(String.fromCharCode(e)),zs="a character that can start a name, such as a letter, `$`, or `_`",Bs="a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag",Vs="a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag",Hs="an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag",Us="a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag";function Ws(e,t,n,r){let i=e.source;if(M(i.charCodeAt(t+1))||i.charCodeAt(t+1)===10||i.charCodeAt(t+1)===13)return;let a=t+1,o=()=>{e.lazy?.has(a)&&Cs("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Ps(e,a),`unexpected-lazy`,`micromark-extension-mdx-jsx`)},s=()=>{for(;a<n&&br(i.charCodeAt(a));)o(),a++;o()},c=(t,r)=>{a>=n&&e.boundary!==void 0&&Cs("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",e.boundary,`unexpected-lazy`,`micromark-extension-mdx-jsx`);let o=i.charCodeAt(a),s=a>=n,c=o===96?"` ` `":i[a];Cs(`Unexpected `+(s?`end of file`:"character `"+c+"` (U+"+o.toString(16).toUpperCase().padStart(4,`0`)+`)`)+` `+t+`, expected `+r,I(e,a),s?`unexpected-eof`:`unexpected-character`,`micromark-extension-mdx-jsx`)};s();let l=i.charCodeAt(a)===47;l&&(a++,s());let u=(e,t)=>{Ls(i.charCodeAt(a))||c(`before `+e,t);let r=a++;for(;a<n&&Rs(i.charCodeAt(a));)a++;return i.slice(r,a)},d=null;if(i.charCodeAt(a)!==62){let e=i.charCodeAt(a);d=u(`name`,zs+(e===33?" (note: to create a comment in MDX, use `{/* text */}`)":l&&(e===42||e===47)?` (note: JS comments in JSX tags are not supported in MDX)`:``));let t=`name`;for(;;){let e=i.charCodeAt(a);!br(e)&&(e===46&&t===`local name`||e===58&&t!==`name`||e!==46&&e!==58&&e!==47&&e!==62&&e!==123)&&c(`in `+t,Vs+(e===64&&t!==`local name`?" (note: to create a link in MDX, use `[text](url)`)":``)),s();let n=i.charCodeAt(a);if(n===46&&t!==`local name`||n===58&&t===`name`)a++,s(),t=n===46?`member name`:`local name`,d+=(n===46?`.`:`:`)+u(t,n===46?Bs:zs+(i.charCodeAt(a)===43||i.charCodeAt(a)>46&&i.charCodeAt(a)<58?" (note: to create a link in MDX, use `[text](url)`)":``));else{n!==47&&n!==62&&n!==123&&!Ls(n)&&c(`after `+t,Bs);break}}}let f=[],p=!1;for(;a<n&&i.charCodeAt(a)!==62;){s();let t=i.charCodeAt(a);if(t===62)break;if(t===47){l&&Cs("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",I(e,a),`unexpected-self-closing-slash`,`mdast-util-mdx-jsx`),p=!0,a++,s(),i.charCodeAt(a)!==62&&c(`after self-closing slash`,"`>` to end the tag"+(i.charCodeAt(a)===42||i.charCodeAt(a)===47?` (note: JS comments in JSX tags are not supported in MDX)`:``));break}let d=a;if(l&&Cs(`Unexpected attribute in closing tag, expected the end of the tag`,I(e,a),`unexpected-attribute`,`mdast-util-mdx-jsx`),t===123){let t=Fs(e,a,n,r,!0,!1);a=t.end;let i={type:`mdxJsxExpressionAttribute`,value:t.value};t.data&&(i.data=t.data);let o=Ir(I(e,d),I(e,a));o&&(i.position=o),f.push(i);continue}let m=u(`attribute name`,Bs),h=!1,g=i.charCodeAt(a);!br(g)&&g!==47&&g!==58&&g!==61&&g!==62&&g!==123&&c(`in attribute name`,Hs);let _=a;if(s(),i.charCodeAt(a)===58){h=!0,a++,s(),m+=`:`+u(`local attribute name`,Us),_=a;let e=i.charCodeAt(a);!br(e)&&e!==47&&e!==61&&e!==62&&e!==123&&c(`in local attribute name`,Hs),s()}let v=null;if(i.charCodeAt(a)===61){a++,s();let t=i.charCodeAt(a);if(t===34||t===39){for(a++,v=``;a<n&&i.charCodeAt(a)!==t;){o();let e=i.charCodeAt(a);if(e===38){let e=Tr(i,a,n);if(e){v+=e.value,a=e.end;continue}}if(v+=i[a++],e===10||e===13&&i.charCodeAt(a)!==10)for(o();br(i.charCodeAt(a))&&i.charCodeAt(a)!==10&&i.charCodeAt(a)!==13;)a++}a>=n&&c(`in attribute value`,"a corresponding closing quote `"+String.fromCharCode(t)+"`"),a++,_=a}else if(t===123){let t=Fs(e,a,n,r,!1,!1);v={type:`mdxJsxAttributeValueExpression`,value:t.value},t.data&&(v.data=t.data),a=_=t.end}else c(`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}else i.charCodeAt(a)!==47&&i.charCodeAt(a)!==62&&i.charCodeAt(a)!==123&&!Ls(i.charCodeAt(a))&&c(h?`after local attribute name`:`after attribute name`,Us);let y=Ir(I(e,d),I(e,_)),b={type:`mdxJsxAttribute`,name:m,value:v};y&&(b.position=y),f.push(b),s()}return a>=n&&c(d===null?`before name`:`before attribute name`,d===null?zs:Bs),{type:`tag`,start:t,end:a+1,name:d,attributes:f,close:l,selfClosing:p}}function Gs(e,t=e.close){return`<`+(t?`/`:``)+(e.name??``)+`>`}function Ks(e,t){let n=Fr(e),r=t===void 0?void 0:Fr(t);return n.line+`:`+n.column+(r?`-`+r.line+`:`+r.column:``)}function qs(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.value[n]??(P.extra[n]?.type===`mdxTextExpression`?P.extra[n].value:qs(n));return t}function Js(e,t){let n={source:e,base:0};Ms(e);let r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new WeakMap,o=e=>r.get(e)?.at(-1)?.node??e,s,c=0,l=e=>e.start===e.next&&!e.padding,u=()=>Math.max(e.lastIndexOf(`
19
19
  `),e.lastIndexOf(`\r`))+1;function d(t,r,i){let o=a.get(r);if(o)return o;let s=new Int32Array(r.length),c=!0;for(let e=1;e<r.length;e++)r[e].start!==r[e-1].next&&(c=!1);let d=0,f=/* @__PURE__ */ new Set;for(let e=0;e<r.length;e++)r[e].lazy&&f.add(d),c||(d+=r[e].padding??0),s[e]=d,d+=r[e].next-r[e].start;let p;if(c)p=r[0].start===0&&r.at(-1).next===e.length?n:{source:e.slice(r[0].start,r.at(-1).next),base:r[0].start,lazy:f};else{let t=new Int32Array(d+1),n=[],i=0;for(let a of r){for(let e=0;e<(a.padding??0);e++)n.push(` `),t[i++]=a.start-1;n.push(e.slice(a.start,a.next));for(let e=a.start;e<a.next;e++)t[i++]=e}t[i]=l(r.at(-1))?u():r.at(-1).next,p={source:n.join(``),base:0,map:t,lazy:f}}i&&!No(t,i)?p.boundary=l(i)?u():i.start:!i&&Mo()&&(e.charCodeAt(e.length-1)===10||e.charCodeAt(e.length-1)===13)&&(p.boundary=e.length);let m={view:p,starts:s};return a.set(r,m),m}function f(e,t,n){t&&Cs("Unexpected closing tag `"+Gs(e)+"`, expected corresponding closing tag for `"+Gs(t,!1)+"` ("+Ks(t.start,t.end)+`)`,I(n,e.start),`end-tag-mismatch`,`mdast-util-mdx-jsx`),Cs("Unexpected closing slash `/` in tag, expected an open tag first",I(n,e.start+1),`unexpected-closing-slash`,`mdast-util-mdx-jsx`)}function p(e,n,r){let i=e.source.charCodeAt(n);if(i===123){let i=Fs(e,n,r,t),a=F(N.Mdx,I(e,n),I(e,i.end));return P.extra[a]={type:`mdxTextExpression`,value:i.value},i.data&&(P.extra[a].data=i.data),{end:i.end,node:a}}if(i!==60)return;let a=Ws(e,n,r,t);if(!a)return;let o=F(N.Mdx,I(e,n),I(e,a.end));return P.extra[o]={type:`mdxJsxTextElement`,name:a.name,attributes:a.attributes,children:[],tag:{...a,start:I(e,a.start),end:I(e,a.end)}},{end:a.end,node:o}}function m(n,r,a,s){let c=r;for(;;){for(;c+1<n.length&&!R(e,n[c+1]);)c++;let l=n[c].end,u=e.slice(a,l),d=i.length?`var `+i.join(`,`)+`
20
- `:``,f=Ts(d+u,t,e=>a+Math.max(0,e-d.length));if(!f.program){if(c+1<n.length&&f.swallow){c++;continue}Cs(`Could not parse import/exports with acorn`,f.error.at,`acorn`,`micromark-extension-mdxjs-esm`)}let p=f.program;d&&p.body.shift();for(let e of p.body)if([`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`].includes(e.type)||Cs("Unexpected `"+e.type+"` in code: only import/exports are supported",e.start,`non-esm`,`micromark-extension-mdxjs-esm`),e.type===`ImportDeclaration`)for(let t of e.specifiers)i.push(t.local.name);let m=F(N.Mdx,a,l,o(s));return P.extra[m]={type:`mdxjsEsm`,value:u},t.estree&&(P.extra[m].data={estree:p}),c-r+1}}function h(t){return(e.startsWith(`import `,t.start)||e.startsWith(`export `,t.start))&&Fr(t.start).column===1}function g(e,n){let r=e.source,i=[];for(;;){let a=r.charCodeAt(n);try{if(a===60){let a=Ws(e,n,r.length,t);if(!a)break;i.push(a),n=a.end}else if(a===123){let a=Fs(e,n,r.length,t);i.push({type:`expression`,start:n,end:a.end,result:a}),n=a.end}else break}catch(e){return{found:i,end:n,complete:!1,error:e}}for(;M(r.charCodeAt(n));)n++;if(n>=r.length||r.charCodeAt(n)===10||r.charCodeAt(n)===13)return{found:i,end:n,complete:!0};if(r.charCodeAt(n)===123&&i.at(-1).type===`expression`||r.charCodeAt(n)!==60&&r.charCodeAt(n)!==123)break}return{found:i,end:n,complete:!1}}function _(t,n,i,a,l){let u=n[i],p=u.start;for(;M(e.charCodeAt(p));)p++;let _=i&&!R(e,n[i-1])&&P.kind[P.last[o(a)]]===N.Definition;if(h(u)&&!_)return m(n,i,p,a);if(e.charCodeAt(p)!==60&&e.charCodeAt(p)!==123)return 0;let v=d(t,n,l),y=v.view,b=g(y,v.starts[i]+p-u.start);if(b.error)throw b.error;if(!b.complete)return 0;let{found:x,end:S}=b;for(let e of x){if(e.type===`expression`){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxFlowExpression`,value:e.result.value},e.result.data&&(P.extra[t].data=e.result.data);continue}let t=r.get(a)??[];if(r.set(a,t),e.close){let n=t.at(-1);if(!n){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxJsxFlowElement`,name:e.name,attributes:[],children:[],tag:{...e,start:I(y,e.start),end:I(y,e.end)}};continue}n.tag.name!==e.name&&!s&&(s=()=>f(e,n.tag,y),c=I(y,e.end)),P.end[n.node]=I(y,e.end),P.b[n.node]=I(y,e.start),t.pop()}else{let n=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.a[n]=I(y,e.end),P.extra[n]={type:`mdxJsxFlowElement`,name:e.name,attributes:e.attributes,children:[]},e.selfClosing||t.push({node:n,tag:{...e,start:I(y,e.start),end:I(y,e.end)}})}}let ee=I(y,S),te=i;for(;te<n.length&&n[te].end<ee;)te++;return te-i+1}return{inline:p,flow:_,flowParent:o,esm:h,hasImports:()=>i.length>0,continuation(t,r,i,a){let o=r[i],s=o.start;for(;M(e.charCodeAt(s));)s++;if(e.charCodeAt(s)!==60&&e.charCodeAt(s)!==123)return;let{view:c,starts:l}=d(t,r,a);if(c.lazy?.size){let e=g(c,l[i]+s-o.start);if(e.error)throw e.error;return e.complete}if(c!==n){let e=g(c,l[i]+s-o.start);return!!e.error||e.complete}},interrupt(t){let r=t.start;for(;M(e.charCodeAt(r));)r++;if(e.charCodeAt(r)!==60&&e.charCodeAt(r)!==123)return!1;let i=g(n,r);return!!i.error||i.complete},continuationEnd(t,r,i,a=0,o){let s=t.start;for(;M(e.charCodeAt(s));)s++;let c=e.charCodeAt(s);if(c!==60&&c!==123)return t.end;let l=n,u=s;if(r&&i){let e=d(r,i,o);l=e.view,u=e.starts[a]+s-t.start}let f=g(l,u);if(f.error){if(f.error.ruleId===`unexpected-eof`){if(r&&o&&No(r,o))throw f.error;return e.length}return l.source.charCodeAt(f.end)===123?e.length:Math.max(f.error.place?.offset??I(l,f.end),t.end)}return Math.max(I(l,f.end),t.end)},finish(){let t={[N.Root]:`root`,[N.Paragraph]:`paragraph`,[N.Heading]:`heading`,[N.Blockquote]:`blockQuote`,[N.List]:`list`,[N.ListItem]:`listItem`,[N.Emphasis]:`emphasis`,[N.Strong]:`strong`,[N.Delete]:`strikethrough`,[N.Link]:`link`,[N.LinkReference]:`link`,[N.Image]:`image`,[N.ImageReference]:`image`,[N.FootnoteDefinition]:`gfmFootnoteDefinition`};function n(n,r){return P.kind[n]===N.Heading?/[\n\r]/.test(e.slice(P.start[n],P.end[n]))?`setextHeading`:`atxHeading`:P.kind[n]===N.TableCell?r?`tableHeader`:`tableData`:t[P.kind[n]]??`paragraph`}function i(e){s&&c<=e&&s()}function a(t,o,s=!1){let c=[],l=[];for(let e=P.child[t];e;e=P.next[e])l.push(e);P.child[t]=P.last[t]=0;for(let r of l){P.next[r]=P.prev[r]=0;let u=P.extra[r],d=u?.tag;if(d){if(delete u.tag,d.close){let r=c.at(-1);if(!r){if(i(d.end),o){o.name!==d.name&&f(d,o,{source:e,base:0});let r=n(t,s);Cs("Expected the closing tag `"+Gs(d)+"` either after the end of `"+r+"` ("+Ks(P.end[t])+") or another opening tag after the start of `"+r+"` ("+Ks(P.start[t])+`)`,d.start,`end-tag-mismatch`,`mdast-util-mdx-jsx`)}f(d,void 0,{source:e,base:0})}r.tag.name!==d.name&&(i(d.end),f(d,r.tag,{source:e,base:0})),P.end[r.node]=d.end,c.pop()}else Ur(c.at(-1)?.node??t,r),d.selfClosing||c.push({tag:d,node:r})}else{let e=c.at(-1)?.tag??o,n=u?.type===`mdxJsxFlowElement`?{type:`tag`,start:P.start[r],end:P.a[r],name:u.name,attributes:u.attributes,close:!1,selfClosing:!1}:void 0,i=P.kind[t]===N.Table?r===l[0]:s;P.child[r]&&a(r,n??e,i),(P.kind[r]===N.Image||P.kind[r]===N.ImageReference)&&(P.value[r]=qs(r),P.child[r]=P.last[r]=0),Ur(c.at(-1)?.node??t,r)}}let u=c.at(-1);u&&(i(P.end[t]),Cs("Expected a closing tag for `"+Gs(u.tag,!1)+"` ("+Ks(u.tag.start,u.tag.end)+") before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`));let d=r.get(t)?.at(-1);if(d){i(P.end[t]);let e="Expected a closing tag for `"+Gs(d.tag,!1)+"` ("+Ks(d.tag.start,d.tag.end)+`)`;if(P.kind[t]===N.Root)throw new ms({reason:e,ruleId:`end-tag-mismatch`,source:`mdast-util-mdx-jsx`});Cs(e+" before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`)}}a(1),s?.()}}}function Ys(e,t,n){let r=e.source;if(r.charCodeAt(t)===123&&r.charCodeAt(t+1)===35)for(let i=t+2;i<n;i++){let n=r.charCodeAt(i);if(n===10||n===13||n===92||n===123)return;if(n===125){let n=F(N.IdString,I(e,t+2),I(e,i));return P.value[n]=Dr(r.slice(t+2,i)),{node:n,end:i+1}}}}function Xs({source:e,config:t,hooks:n,from:r=0}){e.charCodeAt(0)===65279&&(e=e.slice(1)),e.indexOf(`\0`)>=0&&(e=e.replaceAll(`\0`,`�`)),Pr(e,t.positions),Hr(),fo(),Qi(t,e);let i=F(N.Root,0,e.length),a=t.mdx?Js(e,t.mdx):void 0,o=t.headingId?(e,t,n)=>Ys(e,t,n)??a?.inline(e,t,n):a?.inline,s={source:e,config:t,definitions:/* @__PURE__ */ new Map,footnotes:/* @__PURE__ */ new Set,...a,flow:n?.flow??a?.flow,inline:n?.inline??o};return s.inlineMarkers=!!o&&!n?.inline,ds(s,mo(e,r),i,r===0),fs(s),a?.finish(),t.gfm&&ui(i),s.definitions.size>0||s.footnotes.size>0||a?.hasImports(),Gr(i)}var Zs=4;function Qs(e,t){let n=t.join(`/`),r=e.scopes.get(n);if(!r){let i=e.characters.map(e=>e?.filter(e=>$s(t,e.pattern))),a=[],o=[];for(let e=0;e<i.length;e++){let t=i[e];if(!t?.length)continue;let n=`\\u`+e.toString(16).padStart(Zs,`0`);if(t.some(e=>!e.before&&!e.after&&!e.pattern.atBreak))a.push(n);else for(let{pattern:e}of t){let t=(e.atBreak?`[\\r\\n][\\t ]*`:``)+(e.before||``);o.push((t?`(?<=`+t+`)`:``)+n+(e.after?`(?=`+e.after+`)`:``))}}a.length&&o.unshift(`[`+a.join(``)+`]`),r={characters:i,expression:new RegExp(o.join(`|`)||`(?!)`,`g`)},e.scopes.set(n,r)}return r}function $s(e,t){return ec(e,t.inConstruct,!0)&&!ec(e,t.notInConstruct,!1)}function ec(e,t,n){if(typeof t==`string`)return e.includes(t);if(!t?.length)return n;for(let n of t)if(e.includes(n))return!0;return!1}function tc(e,t,n){if(n.digits){let n=t;for(;n&&e.charCodeAt(n-1)>=48&&e.charCodeAt(n-1)<=57;)n--;return n===t?-1:n}if(n.characters)return t&&n.characters[e.charCodeAt(t-1)]?t-1:-1;let r=n.literal||``;return t>=r.length&&e.startsWith(r,t-r.length)?t-r.length:-1}function nc(e,t,n){if(n.end&&t===e.length)return t;if(n.characters)return n.characters[e.charCodeAt(t)]?t+1:-1;let r=n.literal||``;return e.startsWith(r,t)?t+r.length:-1}function rc(e){return e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126}function ic(e,t=``){let n=0,r=``;for(let i=e.indexOf(`\\`);i!==-1;i=e.indexOf(`\\`,i+1))rc(i+1<e.length?e.charCodeAt(i+1):t.charCodeAt(0))&&(r+=e.slice(n,i)+`\\`,n=i);return r+e.slice(n)}function ac(e,t,n){let r=n.before||``,i=n.after||``,a=r+(t||``)+i,o=e.rules,s=e.scopedRules||Qs(o,e.stack);e.customHandlers||(e.scopedRules=s);let{characters:c,expression:l}=s;l.lastIndex=0;let u=o.custom?null:l.exec(a);if(!o.custom&&!u)return ic(t||``,i);let d=o.next;d.fill(0);let f=[],p=[];if(o.custom){for(let{pattern:t,expression:n}of o.custom){if(!$s(e.stack,t))continue;n.lastIndex=0;let r;for(;r=n.exec(a);){let e=`before`in t||!!t.atBreak,n=r.index+(e?r[1].length:0),i=4|!!e|(`after`in t?2:0);f[n]=f[n]?f[n]&i:i}}for(let e=0;e<f.length;e++)f[e]&&p.push(e)}for(;u;u=l.exec(a)){let e=u.index,t=c[a.charCodeAt(e)];if(!t)continue;let n=0;for(let r of t){let t=r.before?tc(a,e,r.before):e;if(t<0)continue;if(r.pattern.atBreak){for(;t&&(a.charCodeAt(t-1)===32||a.charCodeAt(t-1)===9);)t--;if(!t||a.charCodeAt(t-1)!==10&&a.charCodeAt(t-1)!==13)continue;t--}if(t<d[r.index])continue;let i=r.after?nc(a,e+1,r.after):e+1;if(i<0)continue;d[r.index]=i;let o=4|(`before`in r.pattern||r.pattern.atBreak?1:0)|(`after`in r.pattern?2:0);n=n?n&o:o}n&&(f[e]=n,p.push(e))}let m=r.length,h=a.length-i.length,g=``;for(let e of p){if(e<m||e>=h)continue;let t=f[e];if(e+1<h&&t&2&&f[e+1]===4||t&1&&e&&f[e-1]===4)continue;m!==e&&(g+=ic(a.slice(m,e),`\\`)),m=e;let r=a.charCodeAt(e);rc(r)&&!n.encode?.includes(a[e])?g+=`\\`:(g+=`&#x`+r.toString(16).toUpperCase()+`;`,m++)}return g+ic(a.slice(m,h),i)}sc.peek=oc;function oc(){return`[`}function sc(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}cc.peek=lc;function cc(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function lc(){return`~`}function uc(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function dc(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function fc(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function pc(e){return e<0||e===32}var mc=gc(/* @__PURE__ */ RegExp(`\\p{P}|\\p{S}`,`u`)),hc=gc(/\s/);function gc(e){return t;function t(t){return t>-1&&e.test(String.fromCharCode(t))}}function _c(e){if(pc(e)||hc(e))return 1;if(mc(e))return 2}function vc(e,t,n){let r=_c(e),i=_c(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yc.peek=bc;function yc(e,t,n,r){let i=dc(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=vc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=fc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=vc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+fc(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function bc(e,t,n){return n.options.emphasis||`*`}function xc(e){return e.value?e.value||``:e.alt?e.alt||``:e.children?e.children.map(xc).join(``):``}Sc.peek=Cc;function Sc(e){return e.value||``}function Cc(){return`<`}wc.peek=Tc;function wc(e,t,n,r){let i=uc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Tc(){return`!`}Ec.peek=Dc;function Ec(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Dc(){return`!`}Oc.peek=jc;function Oc(e,t,n){let r=e.value||``,i=kc(r,"`",1);return/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `),i+Ac(r,n)+i}function kc(e,t,n){let r=t.charCodeAt(0),i=/* @__PURE__ */ new Set;for(let n=e.indexOf(t);n!==-1;n=e.indexOf(t,n+1)){let t=n;for(;e.charCodeAt(n+1)===r;)n++;i.add(n-t+1)}let a=n;for(;i.has(a);)a++;return t.repeat(a)}function Ac(e,t){if(!e.includes(`
20
+ `:``,f=Ts(d+u,t,e=>a+Math.max(0,e-d.length));if(!f.program){if(c+1<n.length&&f.swallow){c++;continue}Cs(`Could not parse import/exports with acorn`,f.error.at,`acorn`,`micromark-extension-mdxjs-esm`)}let p=f.program;d&&p.body.shift();for(let e of p.body)if([`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`].includes(e.type)||Cs("Unexpected `"+e.type+"` in code: only import/exports are supported",e.start,`non-esm`,`micromark-extension-mdxjs-esm`),e.type===`ImportDeclaration`)for(let t of e.specifiers)i.push(t.local.name);let m=F(N.Mdx,a,l,o(s));return P.extra[m]={type:`mdxjsEsm`,value:u},t.estree&&(P.extra[m].data={estree:p}),c-r+1}}function h(t){return(e.startsWith(`import `,t.start)||e.startsWith(`export `,t.start))&&Fr(t.start).column===1}function g(e,n){let r=e.source,i=[];for(;;){let a=r.charCodeAt(n);try{if(a===60){let a=Ws(e,n,r.length,t);if(!a)break;i.push(a),n=a.end}else if(a===123){let a=Fs(e,n,r.length,t);i.push({type:`expression`,start:n,end:a.end,result:a}),n=a.end}else break}catch(e){return{found:i,end:n,complete:!1,error:e}}for(;M(r.charCodeAt(n));)n++;if(n>=r.length||r.charCodeAt(n)===10||r.charCodeAt(n)===13)return{found:i,end:n,complete:!0};if(r.charCodeAt(n)===123&&i.at(-1).type===`expression`||r.charCodeAt(n)!==60&&r.charCodeAt(n)!==123)break}return{found:i,end:n,complete:!1}}function _(t,n,i,a,l){let u=n[i],p=u.start;for(;M(e.charCodeAt(p));)p++;let _=i&&!R(e,n[i-1])&&P.kind[P.last[o(a)]]===N.Definition;if(h(u)&&!_)return m(n,i,p,a);if(e.charCodeAt(p)!==60&&e.charCodeAt(p)!==123)return 0;let v=d(t,n,l),y=v.view,b=g(y,v.starts[i]+p-u.start);if(b.error)throw b.error;if(!b.complete)return 0;let{found:x,end:S}=b;for(let e of x){if(e.type===`expression`){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxFlowExpression`,value:e.result.value},e.result.data&&(P.extra[t].data=e.result.data);continue}let t=r.get(a)??[];if(r.set(a,t),e.close){let n=t.at(-1);if(!n){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxJsxFlowElement`,name:e.name,attributes:[],children:[],tag:{...e,start:I(y,e.start),end:I(y,e.end)}};continue}n.tag.name!==e.name&&!s&&(s=()=>f(e,n.tag,y),c=I(y,e.end)),P.end[n.node]=I(y,e.end),P.b[n.node]=I(y,e.start),t.pop()}else{let n=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.a[n]=I(y,e.end),P.extra[n]={type:`mdxJsxFlowElement`,name:e.name,attributes:e.attributes,children:[]},e.selfClosing||t.push({node:n,tag:{...e,start:I(y,e.start),end:I(y,e.end)}})}}let C=I(y,S),ee=i;for(;ee<n.length&&n[ee].end<C;)ee++;return ee-i+1}return{inline:p,flow:_,flowParent:o,esm:h,hasImports:()=>i.length>0,continuation(t,r,i,a){let o=r[i],s=o.start;for(;M(e.charCodeAt(s));)s++;if(e.charCodeAt(s)!==60&&e.charCodeAt(s)!==123)return;let{view:c,starts:l}=d(t,r,a);if(c.lazy?.size){let e=g(c,l[i]+s-o.start);if(e.error)throw e.error;return e.complete}if(c!==n){let e=g(c,l[i]+s-o.start);return!!e.error||e.complete}},interrupt(t){let r=t.start;for(;M(e.charCodeAt(r));)r++;if(e.charCodeAt(r)!==60&&e.charCodeAt(r)!==123)return!1;let i=g(n,r);return!!i.error||i.complete},continuationEnd(t,r,i,a=0,o){let s=t.start;for(;M(e.charCodeAt(s));)s++;let c=e.charCodeAt(s);if(c!==60&&c!==123)return t.end;let l=n,u=s;if(r&&i){let e=d(r,i,o);l=e.view,u=e.starts[a]+s-t.start}let f=g(l,u);if(f.error){if(f.error.ruleId===`unexpected-eof`){if(r&&o&&No(r,o))throw f.error;return e.length}return l.source.charCodeAt(f.end)===123?e.length:Math.max(f.error.place?.offset??I(l,f.end),t.end)}return Math.max(I(l,f.end),t.end)},finish(){let t={[N.Root]:`root`,[N.Paragraph]:`paragraph`,[N.Heading]:`heading`,[N.Blockquote]:`blockQuote`,[N.List]:`list`,[N.ListItem]:`listItem`,[N.Emphasis]:`emphasis`,[N.Strong]:`strong`,[N.Delete]:`strikethrough`,[N.Link]:`link`,[N.LinkReference]:`link`,[N.Image]:`image`,[N.ImageReference]:`image`,[N.FootnoteDefinition]:`gfmFootnoteDefinition`};function n(n,r){return P.kind[n]===N.Heading?/[\n\r]/.test(e.slice(P.start[n],P.end[n]))?`setextHeading`:`atxHeading`:P.kind[n]===N.TableCell?r?`tableHeader`:`tableData`:t[P.kind[n]]??`paragraph`}function i(e){s&&c<=e&&s()}function a(t,o,s=!1){let c=[],l=[];for(let e=P.child[t];e;e=P.next[e])l.push(e);P.child[t]=P.last[t]=0;for(let r of l){P.next[r]=P.prev[r]=0;let u=P.extra[r],d=u?.tag;if(d){if(delete u.tag,d.close){let r=c.at(-1);if(!r){if(i(d.end),o){o.name!==d.name&&f(d,o,{source:e,base:0});let r=n(t,s);Cs("Expected the closing tag `"+Gs(d)+"` either after the end of `"+r+"` ("+Ks(P.end[t])+") or another opening tag after the start of `"+r+"` ("+Ks(P.start[t])+`)`,d.start,`end-tag-mismatch`,`mdast-util-mdx-jsx`)}f(d,void 0,{source:e,base:0})}r.tag.name!==d.name&&(i(d.end),f(d,r.tag,{source:e,base:0})),P.end[r.node]=d.end,c.pop()}else Ur(c.at(-1)?.node??t,r),d.selfClosing||c.push({tag:d,node:r})}else{let e=c.at(-1)?.tag??o,n=u?.type===`mdxJsxFlowElement`?{type:`tag`,start:P.start[r],end:P.a[r],name:u.name,attributes:u.attributes,close:!1,selfClosing:!1}:void 0,i=P.kind[t]===N.Table?r===l[0]:s;P.child[r]&&a(r,n??e,i),(P.kind[r]===N.Image||P.kind[r]===N.ImageReference)&&(P.value[r]=qs(r),P.child[r]=P.last[r]=0),Ur(c.at(-1)?.node??t,r)}}let u=c.at(-1);u&&(i(P.end[t]),Cs("Expected a closing tag for `"+Gs(u.tag,!1)+"` ("+Ks(u.tag.start,u.tag.end)+") before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`));let d=r.get(t)?.at(-1);if(d){i(P.end[t]);let e="Expected a closing tag for `"+Gs(d.tag,!1)+"` ("+Ks(d.tag.start,d.tag.end)+`)`;if(P.kind[t]===N.Root)throw new ms({reason:e,ruleId:`end-tag-mismatch`,source:`mdast-util-mdx-jsx`});Cs(e+" before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`)}}a(1),s?.()}}}function Ys(e,t,n){let r=e.source;if(r.charCodeAt(t)===123&&r.charCodeAt(t+1)===35)for(let i=t+2;i<n;i++){let n=r.charCodeAt(i);if(n===10||n===13||n===92||n===123)return;if(n===125){let n=F(N.IdString,I(e,t+2),I(e,i));return P.value[n]=Dr(r.slice(t+2,i)),{node:n,end:i+1}}}}function Xs({source:e,config:t,hooks:n,from:r=0}){e.charCodeAt(0)===65279&&(e=e.slice(1)),e.indexOf(`\0`)>=0&&(e=e.replaceAll(`\0`,`�`)),Pr(e,t.positions),Hr(),fo(),Qi(t,e);let i=F(N.Root,0,e.length),a=t.mdx?Js(e,t.mdx):void 0,o=t.headingId?(e,t,n)=>Ys(e,t,n)??a?.inline(e,t,n):a?.inline,s={source:e,config:t,definitions:/* @__PURE__ */ new Map,footnotes:/* @__PURE__ */ new Set,...a,flow:n?.flow??a?.flow,inline:n?.inline??o};return s.inlineMarkers=!!o&&!n?.inline,ds(s,mo(e,r),i,r===0),fs(s),a?.finish(),t.gfm&&ui(i),s.definitions.size>0||s.footnotes.size>0||a?.hasImports(),Gr(i)}var Zs=4;function Qs(e,t){let n=t.join(`/`),r=e.scopes.get(n);if(!r){let i=e.characters.map(e=>e?.filter(e=>$s(t,e.pattern))),a=[],o=[];for(let e=0;e<i.length;e++){let t=i[e];if(!t?.length)continue;let n=`\\u`+e.toString(16).padStart(Zs,`0`);if(t.some(e=>!e.before&&!e.after&&!e.pattern.atBreak))a.push(n);else for(let{pattern:e}of t){let t=(e.atBreak?`[\\r\\n][\\t ]*`:``)+(e.before||``);o.push((t?`(?<=`+t+`)`:``)+n+(e.after?`(?=`+e.after+`)`:``))}}a.length&&o.unshift(`[`+a.join(``)+`]`),r={characters:i,expression:new RegExp(o.join(`|`)||`(?!)`,`g`)},e.scopes.set(n,r)}return r}function $s(e,t){return ec(e,t.inConstruct,!0)&&!ec(e,t.notInConstruct,!1)}function ec(e,t,n){if(typeof t==`string`)return e.includes(t);if(!t?.length)return n;for(let n of t)if(e.includes(n))return!0;return!1}function tc(e,t,n){if(n.digits){let n=t;for(;n&&e.charCodeAt(n-1)>=48&&e.charCodeAt(n-1)<=57;)n--;return n===t?-1:n}if(n.characters)return t&&n.characters[e.charCodeAt(t-1)]?t-1:-1;let r=n.literal||``;return t>=r.length&&e.startsWith(r,t-r.length)?t-r.length:-1}function nc(e,t,n){if(n.end&&t===e.length)return t;if(n.characters)return n.characters[e.charCodeAt(t)]?t+1:-1;let r=n.literal||``;return e.startsWith(r,t)?t+r.length:-1}function rc(e){return e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126}function ic(e,t=``){let n=0,r=``;for(let i=e.indexOf(`\\`);i!==-1;i=e.indexOf(`\\`,i+1))rc(i+1<e.length?e.charCodeAt(i+1):t.charCodeAt(0))&&(r+=e.slice(n,i)+`\\`,n=i);return r+e.slice(n)}function ac(e,t,n){let r=n.before||``,i=n.after||``,a=r+(t||``)+i,o=e.rules,s=e.scopedRules||Qs(o,e.stack);e.customHandlers||(e.scopedRules=s);let{characters:c,expression:l}=s;l.lastIndex=0;let u=o.custom?null:l.exec(a);if(!o.custom&&!u)return ic(t||``,i);let d=o.next;d.fill(0);let f=[],p=[];if(o.custom){for(let{pattern:t,expression:n}of o.custom){if(!$s(e.stack,t))continue;n.lastIndex=0;let r;for(;r=n.exec(a);){let e=`before`in t||!!t.atBreak,n=r.index+(e?r[1].length:0),i=4|!!e|(`after`in t?2:0);f[n]=f[n]?f[n]&i:i}}for(let e=0;e<f.length;e++)f[e]&&p.push(e)}for(;u;u=l.exec(a)){let e=u.index,t=c[a.charCodeAt(e)];if(!t)continue;let n=0;for(let r of t){let t=r.before?tc(a,e,r.before):e;if(t<0)continue;if(r.pattern.atBreak){for(;t&&(a.charCodeAt(t-1)===32||a.charCodeAt(t-1)===9);)t--;if(!t||a.charCodeAt(t-1)!==10&&a.charCodeAt(t-1)!==13)continue;t--}if(t<d[r.index])continue;let i=r.after?nc(a,e+1,r.after):e+1;if(i<0)continue;d[r.index]=i;let o=4|(`before`in r.pattern||r.pattern.atBreak?1:0)|(`after`in r.pattern?2:0);n=n?n&o:o}n&&(f[e]=n,p.push(e))}let m=r.length,h=a.length-i.length,g=``;for(let e of p){if(e<m||e>=h)continue;let t=f[e];if(e+1<h&&t&2&&f[e+1]===4||t&1&&e&&f[e-1]===4)continue;m!==e&&(g+=ic(a.slice(m,e),`\\`)),m=e;let r=a.charCodeAt(e);rc(r)&&!n.encode?.includes(a[e])?g+=`\\`:(g+=`&#x`+r.toString(16).toUpperCase()+`;`,m++)}return g+ic(a.slice(m,h),i)}sc.peek=oc;function oc(){return`[`}function sc(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}cc.peek=lc;function cc(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function lc(){return`~`}function uc(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function dc(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function fc(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function pc(e){return e<0||e===32}var mc=gc(/* @__PURE__ */ RegExp(`\\p{P}|\\p{S}`,`u`)),hc=gc(/\s/);function gc(e){return t;function t(t){return t>-1&&e.test(String.fromCharCode(t))}}function _c(e){if(pc(e)||hc(e))return 1;if(mc(e))return 2}function vc(e,t,n){let r=_c(e),i=_c(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yc.peek=bc;function yc(e,t,n,r){let i=dc(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=vc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=fc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=vc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+fc(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function bc(e,t,n){return n.options.emphasis||`*`}function xc(e){return e.value?e.value||``:e.alt?e.alt||``:e.children?e.children.map(xc).join(``):``}Sc.peek=Cc;function Sc(e){return e.value||``}function Cc(){return`<`}wc.peek=Tc;function wc(e,t,n,r){let i=uc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Tc(){return`!`}Ec.peek=Dc;function Ec(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Dc(){return`!`}Oc.peek=jc;function Oc(e,t,n){let r=e.value||``,i=kc(r,"`",1);return/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `),i+Ac(r,n)+i}function kc(e,t,n){let r=t.charCodeAt(0),i=/* @__PURE__ */ new Set;for(let n=e.indexOf(t);n!==-1;n=e.indexOf(t,n+1)){let t=n;for(;e.charCodeAt(n+1)===r;)n++;i.add(n-t+1)}let a=n;for(;i.has(a);)a++;return t.repeat(a)}function Ac(e,t){if(!e.includes(`
21
21
  `)&&!e.includes(`\r`))return e;for(let n of t.rules.breaks){n.lastIndex=0;let t;for(;t=n.exec(e);){let n=t.index;e.charCodeAt(n)===10&&e.charCodeAt(n-1)===13&&n--,e=e.slice(0,n)+` `+e.slice(t.index+1)}}return e}function jc(){return"`"}function Mc(e,t){let n=xc(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][a-z+.-]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}Nc.peek=Pc;function Nc(e,t,n,r){let i=uc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(Mc(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Pc(e,t,n){return Mc(e,n)?`<`:`[`}Fc.peek=Ic;function Fc(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Ic(){return`[`}function Lc(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Rc.peek=zc;function Rc(e,t,n,r){let i=Lc(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=vc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=fc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=vc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+fc(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function zc(e,t,n){return n.options.strong||`*`}Vc.peek=Bc;function Bc(e,t,n,r){let i=e.value||``,a=i.charCodeAt(0);return!n.rules.custom&&a!==92&&!n.rules.characters[a]?i.charAt(0):n.rules.custom?Vc(e,t,n,r):ac(n,i.slice(0,2),{before:r.before,after:i.length>2?i.charAt(2):r.after}).charAt(0)}function Vc(e,t,n,r){return n.safe(e.value,r)}function Hc(e,t={}){return Uc({source:e,config:ps(t.syntax,t.positions??!0)})}function Uc({source:e,config:t,from:n=0}){try{return Xs({source:e,config:t,from:n})}catch(e){if(e instanceof ms)return e;throw e}}function Wc(e=[`yaml`,`toml`]){return{name:`frontmatter`,yaml:e.includes(`yaml`),toml:e.includes(`toml`)}}function Gc(e={}){return{name:`gfm`,singleTilde:e.singleTilde??!0}}function Kc(e={}){return{name:`math`,singleDollarTextMath:e.singleDollarTextMath??!0}}var qc=[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],Jc=[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],Yc=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,Xc=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,Zc={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},Qc=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,$c={5:Qc,"5module":Qc+` export import`,6:Qc+` const class extends export import super`},el=/^in(stanceof)?$/,tl=RegExp(`[`+Xc+`]`),nl=RegExp(`[`+Xc+Yc+`]`);function rl(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function il(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&tl.test(String.fromCharCode(e)):t!==!1&&rl(e,Jc)}function al(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&nl.test(String.fromCharCode(e)):t===!1?!1:rl(e,Jc)||rl(e,qc)}var z=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function ol(e,t){return new z(e,{beforeExpr:!0,binop:t})}var sl={beforeExpr:!0},cl={startsExpr:!0},ll={};function B(e,t){return t===void 0&&(t={}),t.keyword=e,ll[e]=new z(e,t)}var V={num:new z(`num`,cl),regexp:new z(`regexp`,cl),string:new z(`string`,cl),name:new z(`name`,cl),privateId:new z(`privateId`,cl),eof:new z(`eof`),bracketL:new z(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new z(`]`),braceL:new z(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new z(`}`),parenL:new z(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new z(`)`),comma:new z(`,`,sl),semi:new z(`;`,sl),colon:new z(`:`,sl),dot:new z(`.`),question:new z(`?`,sl),questionDot:new z(`?.`),arrow:new z(`=>`,sl),template:new z(`template`),invalidTemplate:new z(`invalidTemplate`),ellipsis:new z(`...`,sl),backQuote:new z("`",cl),dollarBraceL:new z("${",{beforeExpr:!0,startsExpr:!0}),eq:new z(`=`,{beforeExpr:!0,isAssign:!0}),assign:new z(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new z(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new z(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ol(`||`,1),logicalAND:ol(`&&`,2),bitwiseOR:ol(`|`,3),bitwiseXOR:ol(`^`,4),bitwiseAND:ol(`&`,5),equality:ol(`==/!=/===/!==`,6),relational:ol(`</>/<=/>=`,7),bitShift:ol(`<</>>/>>>`,8),plusMin:new z(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ol(`%`,10),star:ol(`*`,10),slash:ol(`/`,10),starstar:new z(`**`,{beforeExpr:!0}),coalesce:ol(`??`,1),_break:B(`break`),_case:B(`case`,sl),_catch:B(`catch`),_continue:B(`continue`),_debugger:B(`debugger`),_default:B(`default`,sl),_do:B(`do`,{isLoop:!0,beforeExpr:!0}),_else:B(`else`,sl),_finally:B(`finally`),_for:B(`for`,{isLoop:!0}),_function:B(`function`,cl),_if:B(`if`),_return:B(`return`,sl),_switch:B(`switch`),_throw:B(`throw`,sl),_try:B(`try`),_var:B(`var`),_const:B(`const`),_while:B(`while`,{isLoop:!0}),_with:B(`with`),_new:B(`new`,{beforeExpr:!0,startsExpr:!0}),_this:B(`this`,cl),_super:B(`super`,cl),_class:B(`class`,cl),_extends:B(`extends`,sl),_export:B(`export`),_import:B(`import`,cl),_null:B(`null`,cl),_true:B(`true`,cl),_false:B(`false`,cl),_in:B(`in`,{beforeExpr:!0,binop:7}),_instanceof:B(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:B(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:B(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:B(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},ul=/\r\n?|\n|\u2028|\u2029/,dl=new RegExp(ul.source,`g`);function fl(e){return e===10||e===13||e===8232||e===8233}function pl(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(fl(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var ml=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,hl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,gl=Object.prototype,_l=gl.hasOwnProperty,vl=gl.toString,yl=Object.hasOwn||(function(e,t){return _l.call(e,t)}),bl=Array.isArray||(function(e){return vl.call(e)===`[object Array]`}),xl=/* @__PURE__ */ Object.create(null);function Sl(e){return xl[e]||(xl[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function Cl(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var wl=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Tl=function(e,t){this.line=e,this.column=t};Tl.prototype.offset=function(e){return new Tl(this.line,this.column+e)};var El=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function Dl(e,t){for(var n=1,r=0;;){var i=pl(e,r,t);if(i<0)return new Tl(n,t-r);++n,r=i}}var Ol={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},kl=!1;function Al(e){var t={};for(var n in Ol)t[n]=e&&yl(e,n)?e[n]:Ol[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!kl&&typeof console==`object`&&console.warn&&(kl=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
22
22
  Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),bl(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(bl(t.onComment)&&(t.onComment=jl(t,t.onComment)),t.sourceType===`commonjs`&&t.allowAwaitOutsideFunction)throw Error(`Cannot use allowAwaitOutsideFunction with sourceType: commonjs`);return t}function jl(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new El(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var Ml=1,Nl=2,Pl=4,Fl=8,Il=16,Ll=32,Rl=64,zl=128,Bl=256,Vl=512,Hl=1024,Ul=Ml|Nl|Bl;function Wl(e,t){return Nl|(e?Pl:0)|(t?Fl:0)}var Gl=0,Kl=1,ql=2,Jl=3,Yl=4,Xl=5,Zl=function(e,t,n){this.options=e=Al(e),this.sourceFile=e.sourceFile,this.keywords=Sl($c[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=Zc[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=Sl(r);var i=(r?r+` `:``)+Zc.strict;this.reservedWordsStrict=Sl(i),this.reservedWordsStrictBind=Sl(i+` `+Zc.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
23
23
  `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ul).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=V.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType===`commonjs`?Nl:Ml),this.regexpState=null,this.privateNameStack=[]},Ql={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Zl.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Ql.inFunction.get=function(){return(this.currentVarScope().flags&Nl)>0},Ql.inGenerator.get=function(){return(this.currentVarScope().flags&Fl)>0},Ql.inAsync.get=function(){return(this.currentVarScope().flags&Pl)>0},Ql.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Bl|Vl))return!1;if(t&Nl)return(t&Pl)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ql.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Ml)},Ql.allowSuper.get=function(){return(this.currentThisScope().flags&Rl)>0||this.options.allowSuperOutsideMethod},Ql.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zl)>0},Ql.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ql.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Bl|Vl)||t&Nl&&!(t&Il))return!0}return!1},Ql.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&Hl||!this.inModule&&e&Ml)},Ql.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Bl)>0},Zl.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Zl.parse=function(e,t){return new this(t,e).parse()},Zl.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Zl.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Zl.prototype,Ql);var $l=Zl.prototype,eu=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;$l.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){hl.lastIndex=e,e+=hl.exec(this.input)[0].length;var t=eu.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){hl.lastIndex=e+t[0].length;var n=hl.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||ul.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,hl.lastIndex=e,e+=hl.exec(this.input)[0].length,this.input[e]===`;`&&e++}},$l.eat=function(e){return this.type===e&&(this.next(),!0)},$l.isContextual=function(e){return this.type===V.name&&this.value===e&&!this.containsEsc},$l.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},$l.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},$l.canInsertSemicolon=function(){return this.type===V.eof||this.type===V.braceR||ul.test(this.input.slice(this.lastTokEnd,this.start))},$l.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$l.semicolon=function(){!this.eat(V.semi)&&!this.insertSemicolon()&&this.unexpected()},$l.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},$l.expect=function(e){this.eat(e)||this.unexpected()},$l.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var tu=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$l.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},$l.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},$l.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},$l.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var H=Zl.prototype;H.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==V.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType===`commonjs`?`script`:this.options.sourceType,this.finishNode(e,`Program`)};var nu={kind:`loop`},ru={kind:`switch`};H.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;hl.lastIndex=this.pos;var t=hl.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(il(r)){var i=n;do n+=r<=65535?1:2;while(al(r=this.fullCharCodeAt(n)));if(r===92)return!0;var a=this.input.slice(i,n);if(!el.test(a))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;hl.lastIndex=this.pos;var e=hl.exec(this.input),t=this.pos+e[0].length,n;return!ul.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(al(n=this.fullCharCodeAt(t+8))||n===92))},H.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;hl.lastIndex=this.pos;var n=hl.exec(this.input),r=this.pos+n[0].length;if(ul.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||al(a=this.fullCharCodeAt(i))||a===92)return!1;hl.lastIndex=i;var o=hl.exec(this.input);if(r=i+o[0].length,o&&ul.test(this.input.slice(i,r)))return!1}var s=this.fullCharCodeAt(r);if(!il(s)&&s!==92)return!1;var c=r;do r+=s<=65535?1:2;while(al(s=this.fullCharCodeAt(r)));if(s===92)return!0;var l=this.input.slice(c,r);return!(el.test(l)||t&&l===`of`)},H.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},H.isUsing=function(e){return this.isUsingKeyword(!1,e)},H.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=V._var,a=`let`),r){case V._break:case V._continue:return this.parseBreakContinueStatement(i,r.keyword);case V._debugger:return this.parseDebuggerStatement(i);case V._do:return this.parseDoStatement(i);case V._for:return this.parseForStatement(i);case V._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case V._class:return e&&this.unexpected(),this.parseClass(i,!0);case V._if:return this.parseIfStatement(i);case V._return:return this.parseReturnStatement(i);case V._switch:return this.parseSwitchStatement(i);case V._throw:return this.parseThrowStatement(i);case V._try:return this.parseTryStatement(i);case V._const:case V._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case V._while:return this.parseWhileStatement(i);case V._with:return this.parseWithStatement(i);case V.braceL:return this.parseBlock(!0,i);case V.semi:return this.parseEmptyStatement(i);case V._export:case V._import:if(this.options.ecmaVersion>10&&r===V._import){hl.lastIndex=this.pos;var o=hl.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===V._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===V.name&&d.type===`Identifier`&&this.eat(V.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},H.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(V.semi)||this.insertSemicolon()?e.label=null:this.type===V.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},H.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},H.parseDoStatement=function(e){return this.next(),this.labels.push(nu),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(V._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(V.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},H.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(nu),this.enterScope(0),this.expect(V.parenL),this.type===V.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===V._var||this.type===V._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new tu,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===V._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===V._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},H.parseForAfterInit=function(e,t,n){return(this.type===V._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===V._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},H.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,au|(n?0:ou),!1,t)},H.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(V._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},H.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(V.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},H.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(V.braceL),this.labels.push(ru),this.enterScope(Hl);for(var t,n=!1;this.type!==V.braceR;)if(this.type===V._case||this.type===V._default){var r=this.type===V._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(V.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},H.parseThrowStatement=function(e){return this.next(),ul.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var iu=[];H.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?Ll:0),this.checkLValPattern(e,t?Yl:ql),this.expect(V.parenR),e},H.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===V._catch){var t=this.startNode();this.next(),this.eat(V.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(V._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},H.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(nu),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},H.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},H.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===V._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},H.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},H.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(V.braceL),e&&this.enterScope(0);this.type!==V.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},H.parseFor=function(e,t){return e.init=t,this.expect(V.semi),e.test=this.type===V.semi?null:this.parseExpression(),this.expect(V.semi),e.update=this.type===V.parenR?null:this.parseExpression(),this.expect(V.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},H.parseForIn=function(e,t){var n=this.type===V._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(V.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},H.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(V.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===V._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==V._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&(!t||this.type!==V._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(V.comma))break}return e},H.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?Kl:ql,!1)};var au=1,ou=2,su=4;H.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===V.star&&t&ou&&this.unexpected(),e.generator=this.eat(V.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&au&&(e.id=t&su&&this.type!==V.name?null:this.parseIdent(),e.id&&!(t&ou)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Kl:ql:Jl));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Wl(e.async,e.generator)),t&au||(e.id=this.type===V.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&au?`FunctionDeclaration`:`FunctionExpression`)},H.parseFunctionParams=function(e){this.expect(V.parenL),e.params=this.parseBindingList(V.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(V.braceL);this.type!==V.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&cu(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},H.parseClassElement=function(e){if(this.eat(V.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(V.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===V.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===V.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(V.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===V.parenL||o!==`method`||i||a){var l=!n.static&&lu(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},H.isClassElementNameStart=function(){return this.type===V.name||this.type===V.privateId||this.type===V.num||this.type===V.string||this.type===V.bracketL||this.type.keyword},H.parseClassElementName=function(e){this.type===V.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},H.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&lu(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},H.parseClassField=function(e){return lu(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&lu(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(V.eq)?(this.enterScope(Vl|Rl),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},H.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Bl|Rl);this.type!==V.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},H.parseClassId=function(e,t){this.type===V.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ql,!1)):(t===!0&&this.unexpected(),e.id=null)},H.parseClassSuper=function(e){e.superClass=this.eat(V._extends)?this.parseExprSubscripts(null,!1):null},H.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},H.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];yl(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function cu(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function lu(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}H.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==V.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},H.parseExport=function(e,t){if(this.next(),this.eat(V.star))return this.parseExportAllDeclaration(e,t);if(this.eat(V._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==V.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},H.parseExportDeclaration=function(e){return this.parseStatement(null)},H.parseExportDefaultDeclaration=function(){var e;if(this.type===V._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,au|su,!1,e)}if(this.type===V._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},H.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),yl(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},H.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},H.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},H.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},H.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},H.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(V.braceL);!this.eat(V.braceR);){if(n)n=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;t.push(this.parseExportSpecifier(e))}return t},H.parseImport=function(e){return this.next(),this.type===V.string?(e.specifiers=iu,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===V.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},H.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,ql),this.finishNode(e,`ImportSpecifier`)},H.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ql),this.finishNode(e,`ImportDefaultSpecifier`)},H.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,ql),this.finishNode(e,`ImportNamespaceSpecifier`)},H.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===V.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(V.comma)))return e;if(this.type===V.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(V.braceL);!this.eat(V.braceR);){if(t)t=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;e.push(this.parseImportSpecifier())}return e},H.parseWithClause=function(){var e=[];if(!this.eat(V._with))return e;this.expect(V.braceL);for(var t={},n=!0;!this.eat(V.braceR);){if(n)n=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;yl(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},H.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===V.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(V.colon),this.type!==V.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},H.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===V.string){var e=this.parseLiteral(this.value);return wl.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},H.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},H.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var uu=Zl.prototype;uu.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},uu.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},uu.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},uu.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==V.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},uu.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case V.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(V.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case V.braceL:return this.parseObj(!0)}return this.parseIdent()},uu.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(V.comma),t&&this.type===V.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===V.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},uu.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},uu.parseBindingListItem=function(e){return e},uu.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(V.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},uu.checkLValSimple=function(e,t,n){t===void 0&&(t=Gl);var r=t!==Gl;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===ql&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(yl(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Xl&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},uu.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Gl),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},uu.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Gl),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var du=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},fu={b_stat:new du(`{`,!1),b_expr:new du(`{`,!0),b_tmpl:new du("${",!1),p_stat:new du(`(`,!1),p_expr:new du(`(`,!0),q_tmpl:new du("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new du(`function`,!1),f_expr:new du(`function`,!0),f_expr_gen:new du(`function`,!0,!1,null,!0),f_gen:new du(`function`,!1,!1,null,!0)},pu=Zl.prototype;pu.initialContext=function(){return[fu.b_stat]},pu.curContext=function(){return this.context[this.context.length-1]},pu.braceIsBlock=function(e){var t=this.curContext();return t===fu.f_expr||t===fu.f_stat?!0:e===V.colon&&(t===fu.b_stat||t===fu.b_expr)?!t.isExpr:e===V._return||e===V.name&&this.exprAllowed?ul.test(this.input.slice(this.lastTokEnd,this.start)):e===V._else||e===V.semi||e===V.eof||e===V.parenR||e===V.arrow?!0:e===V.braceL?t===fu.b_stat:e===V._var||e===V._const||e===V.name?!1:!this.exprAllowed},pu.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},pu.updateContext=function(e){var t,n=this.type;n.keyword&&e===V.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},pu.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},V.parenR.updateContext=V.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===fu.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},V.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?fu.b_stat:fu.b_expr),this.exprAllowed=!0},V.dollarBraceL.updateContext=function(){this.context.push(fu.b_tmpl),this.exprAllowed=!0},V.parenL.updateContext=function(e){var t=e===V._if||e===V._for||e===V._with||e===V._while;this.context.push(t?fu.p_stat:fu.p_expr),this.exprAllowed=!0},V.incDec.updateContext=function(){},V._function.updateContext=V._class.updateContext=function(e){e.beforeExpr&&e!==V._else&&(e!==V.semi||this.curContext()===fu.p_stat)&&!(e===V._return&&ul.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==V.colon&&e!==V.braceL||this.curContext()!==fu.b_stat)?this.context.push(fu.f_expr):this.context.push(fu.f_stat),this.exprAllowed=!1},V.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},V.backQuote.updateContext=function(){this.curContext()===fu.q_tmpl?this.context.pop():this.context.push(fu.q_tmpl),this.exprAllowed=!1},V.star.updateContext=function(e){if(e===V._function){var t=this.context.length-1;this.context[t]===fu.f_expr?this.context[t]=fu.f_expr_gen:this.context[t]=fu.f_gen}this.exprAllowed=!0},V.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==V.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var U=Zl.prototype;U.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},U.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===V.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(V.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},U.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new tu,r=!0);var s=this.start,c=this.startLoc;(this.type===V.parenL||this.type===V.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===V.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===V.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},U.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(V.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(V.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},U.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},U.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==V._in)&&a>r){var o=this.type===V.logicalOR||this.type===V.logicalAND,s=this.type===V.coalesce;s&&(a=V.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===V.coalesce||s&&(this.type===V.logicalOR||this.type===V.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},U.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},U.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===V.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&mu(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&hu(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===V.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==V._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(V.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function mu(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&mu(e.expression)}function hu(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&hu(e.expression)||e.type===`ParenthesizedExpression`&&hu(e.expression)}U.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},U.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},U.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(V.arrow)},U.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},U.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(V.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(V.bracketL);if(l||c&&this.type!==V.parenL&&this.type!==V.backQuote||this.eat(V.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(V.bracketR)):u.property=this.type===V.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(V.parenL)){var d=new tu,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(V.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===V.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},U.parseExprAtom=function(e,t,n){this.type===V.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case V._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===V.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==V.dot&&this.type!==V.bracketL&&this.type!==V.parenL&&this.unexpected(),this.finishNode(r,`Super`);case V._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case V.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(V._function))return this.overrideContext(fu.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(V.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===V.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(V.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case V.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case V.num:case V.string:return this.parseLiteral(this.value);case V._null:case V._true:case V._false:return r=this.startNode(),r.value=this.type===V._null?null:this.type===V._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case V.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case V.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(V.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case V.braceL:return this.overrideContext(fu.b_expr),this.parseObj(!1,e);case V._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case V._class:return this.parseClass(this.startNode(),!1);case V._new:return this.parseNew();case V.backQuote:return this.parseTemplate();case V._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},U.parseExprAtomDefault=function(){this.unexpected()},U.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===V.parenL&&!e)return this.parseDynamicImport(t);if(this.type===V.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},U.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(V.parenR)?e.options=null:(this.expect(V.comma),this.afterTrailingComma(V.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(V.parenR)||(this.expect(V.comma),this.afterTrailingComma(V.parenR)||this.unexpected())));else if(!this.eat(V.parenR)){var t=this.start;this.eat(V.comma)&&this.eat(V.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},U.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},U.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},U.parseParenExpression=function(){this.expect(V.parenL);var e=this.parseExpression();return this.expect(V.parenR),e},U.shouldParseArrow=function(e){return!this.canInsertSemicolon()},U.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new tu,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==V.parenR;){if(l?l=!1:this.expect(V.comma),a&&this.afterTrailingComma(V.parenR,!0)){u=!0;break}if(this.type===V.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(V.parenR),e&&this.shouldParseArrow(c)&&this.eat(V.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},U.parseParenItem=function(e){return e},U.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var gu=[];U.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===V.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),e.arguments=this.eat(V.parenL)?this.parseExprList(V.parenR,this.options.ecmaVersion>=8,!1):gu,this.finishNode(e,`NewExpression`)},U.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===V.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
@@ -31,9 +31,9 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
31
31
  `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Fd).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=J.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(nf),this.regexpState=null,this.privateNameStack=[]},xf={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};bf.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},xf.inFunction.get=function(){return(this.currentVarScope().flags&rf)>0},xf.inGenerator.get=function(){return(this.currentVarScope().flags&of)>0&&!this.currentVarScope().inClassFieldInit},xf.inAsync.get=function(){return(this.currentVarScope().flags&af)>0&&!this.currentVarScope().inClassFieldInit},xf.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&df)return!1;if(t.flags&rf)return(t.flags&af)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},xf.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&lf)>0||n||this.options.allowSuperOutsideMethod},xf.allowDirectSuper.get=function(){return(this.currentThisScope().flags&uf)>0},xf.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},xf.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(rf|df))>0||n},xf.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&df)>0},bf.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},bf.parse=function(e,t){return new this(t,e).parse()},bf.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},bf.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(bf.prototype,xf);var Sf=bf.prototype,Cf=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Sf.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Bd.lastIndex=e,e+=Bd.exec(this.input)[0].length;var t=Cf.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){Bd.lastIndex=e+t[0].length;var n=Bd.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||Fd.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,Bd.lastIndex=e,e+=Bd.exec(this.input)[0].length,this.input[e]===`;`&&e++}},Sf.eat=function(e){return this.type===e&&(this.next(),!0)},Sf.isContextual=function(e){return this.type===J.name&&this.value===e&&!this.containsEsc},Sf.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Sf.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Sf.canInsertSemicolon=function(){return this.type===J.eof||this.type===J.braceR||Fd.test(this.input.slice(this.lastTokEnd,this.start))},Sf.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Sf.semicolon=function(){!this.eat(J.semi)&&!this.insertSemicolon()&&this.unexpected()},Sf.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Sf.expect=function(e){this.eat(e)||this.unexpected()},Sf.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var wf=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Sf.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Sf.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Sf.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Sf.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var Y=bf.prototype;Y.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==J.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Tf={kind:`loop`},Ef={kind:`switch`};Y.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;Bd.lastIndex=this.pos;var t=Bd.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(kd(r,!0)){for(var i=n+1;Ad(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!Td.test(a))return!0}return!1},Y.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;Bd.lastIndex=this.pos;var e=Bd.exec(this.input),t=this.pos+e[0].length,n;return!Fd.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(Ad(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},Y.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=J._var,a=`let`),r){case J._break:case J._continue:return this.parseBreakContinueStatement(i,r.keyword);case J._debugger:return this.parseDebuggerStatement(i);case J._do:return this.parseDoStatement(i);case J._for:return this.parseForStatement(i);case J._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case J._class:return e&&this.unexpected(),this.parseClass(i,!0);case J._if:return this.parseIfStatement(i);case J._return:return this.parseReturnStatement(i);case J._switch:return this.parseSwitchStatement(i);case J._throw:return this.parseThrowStatement(i);case J._try:return this.parseTryStatement(i);case J._const:case J._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case J._while:return this.parseWhileStatement(i);case J._with:return this.parseWithStatement(i);case J.braceL:return this.parseBlock(!0,i);case J.semi:return this.parseEmptyStatement(i);case J._export:case J._import:if(this.options.ecmaVersion>10&&r===J._import){Bd.lastIndex=this.pos;var o=Bd.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===J._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===J.name&&u.type===`Identifier`&&this.eat(J.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},Y.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(J.semi)||this.insertSemicolon()?e.label=null:this.type===J.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},Y.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},Y.parseDoStatement=function(e){return this.next(),this.labels.push(Tf),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(J._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(J.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},Y.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Tf),this.enterScope(0),this.expect(J.parenL),this.type===J.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===J._var||this.type===J._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===J._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===J._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual(`let`),o=!1,s=new wf,c=this.parseExpression(t>-1?`await`:!0,s);return this.type===J._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(this.options.ecmaVersion>=9&&(this.type===J._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},Y.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Of|(n?0:kf),!1,t)},Y.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(J._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},Y.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(J.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},Y.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(J.braceL),this.labels.push(Ef),this.enterScope(0);for(var t,n=!1;this.type!==J.braceR;)if(this.type===J._case||this.type===J._default){var r=this.type===J._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(J.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},Y.parseThrowStatement=function(e){return this.next(),Fd.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var Df=[];Y.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===J._catch){var t=this.startNode();if(this.next(),this.eat(J.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?cf:0),this.checkLValPattern(t.param,n?vf:gf),this.expect(J.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(J._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},Y.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},Y.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Tf),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},Y.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},Y.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},Y.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===J._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},Y.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},Y.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(J.braceL),e&&this.enterScope(0);this.type!==J.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},Y.parseFor=function(e,t){return e.init=t,this.expect(J.semi),e.test=this.type===J.semi?null:this.parseExpression(),this.expect(J.semi),e.update=this.type===J.parenR?null:this.parseExpression(),this.expect(J.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},Y.parseForIn=function(e,t){var n=this.type===J._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(J.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},Y.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(J.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===J._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&(!t||this.type!==J._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(J.comma))break}return e},Y.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?hf:gf,!1)};var Of=1,kf=2,Af=4;Y.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===J.star&&t&kf&&this.unexpected(),e.generator=this.eat(J.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Of&&(e.id=t&Af&&this.type!==J.name?null:this.parseIdent(),e.id&&!(t&kf)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?hf:gf:_f));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pf(e.async,e.generator)),t&Of||(e.id=this.type===J.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Of?`FunctionDeclaration`:`FunctionExpression`)},Y.parseFunctionParams=function(e){this.expect(J.parenL),e.params=this.parseBindingList(J.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Y.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(J.braceL);this.type!==J.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raise(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&jf(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},Y.parseClassElement=function(e){if(this.eat(J.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(J.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===J.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===J.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(J.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===J.parenL||o!==`method`||i||a){var l=!n.static&&Mf(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},Y.isClassElementNameStart=function(){return this.type===J.name||this.type===J.privateId||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword},Y.parseClassElementName=function(e){this.type===J.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Y.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&Mf(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},Y.parseClassField=function(e){if(Mf(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&Mf(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(J.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,`PropertyDefinition`)},Y.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(df|lf);this.type!==J.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},Y.parseClassId=function(e,t){this.type===J.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,gf,!1)):(t===!0&&this.unexpected(),e.id=null)},Y.parseClassSuper=function(e){e.superClass=this.eat(J._extends)?this.parseExprSubscripts(null,!1):null},Y.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Y.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];Wd(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function jf(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function Mf(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}Y.parseExport=function(e,t){if(this.next(),this.eat(J.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==J.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(J._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===J._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,Of|Af,!1,n)}else if(this.type===J._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==J.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type===`Literal`&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},Y.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),Wd(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},Y.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},Y.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Y.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},Y.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(J.braceL);!this.eat(J.braceR);){if(n)n=!1;else if(this.expect(J.comma),this.afterTrailingComma(J.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual(`as`)?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},Y.parseImport=function(e){return this.next(),this.type===J.string?(e.specifiers=Df,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===J.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},Y.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===J.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,gf),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(J.comma))return e}if(this.type===J.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLValSimple(r.local,gf),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(J.braceL);!this.eat(J.braceR);){if(t)t=!1;else if(this.expect(J.comma),this.afterTrailingComma(J.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,gf),e.push(this.finishNode(i,`ImportSpecifier`))}return e},Y.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===J.string){var e=this.parseLiteral(this.value);return Jd.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},Y.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Y.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Nf=bf.prototype;Nf.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Nf.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Nf.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Nf.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==J.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Nf.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case J.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(J.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case J.braceL:return this.parseObj(!0)}return this.parseIdent()},Nf.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(J.comma),t&&this.type===J.comma)r.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===J.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Nf.parseBindingListItem=function(e){return e},Nf.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(J.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Nf.checkLValSimple=function(e,t,n){t===void 0&&(t=mf);var r=t!==mf;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===gf&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(Wd(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==yf&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Nf.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=mf),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Nf.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=mf),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Pf=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Ff={b_stat:new Pf(`{`,!1),b_expr:new Pf(`{`,!0),b_tmpl:new Pf("${",!1),p_stat:new Pf(`(`,!1),p_expr:new Pf(`(`,!0),q_tmpl:new Pf("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Pf(`function`,!1),f_expr:new Pf(`function`,!0),f_expr_gen:new Pf(`function`,!0,!1,null,!0),f_gen:new Pf(`function`,!1,!1,null,!0)},If=bf.prototype;If.initialContext=function(){return[Ff.b_stat]},If.curContext=function(){return this.context[this.context.length-1]},If.braceIsBlock=function(e){var t=this.curContext();return t===Ff.f_expr||t===Ff.f_stat?!0:e===J.colon&&(t===Ff.b_stat||t===Ff.b_expr)?!t.isExpr:e===J._return||e===J.name&&this.exprAllowed?Fd.test(this.input.slice(this.lastTokEnd,this.start)):e===J._else||e===J.semi||e===J.eof||e===J.parenR||e===J.arrow?!0:e===J.braceL?t===Ff.b_stat:e===J._var||e===J._const||e===J.name?!1:!this.exprAllowed},If.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},If.updateContext=function(e){var t,n=this.type;n.keyword&&e===J.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},If.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},J.parenR.updateContext=J.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===Ff.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},J.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ff.b_stat:Ff.b_expr),this.exprAllowed=!0},J.dollarBraceL.updateContext=function(){this.context.push(Ff.b_tmpl),this.exprAllowed=!0},J.parenL.updateContext=function(e){var t=e===J._if||e===J._for||e===J._with||e===J._while;this.context.push(t?Ff.p_stat:Ff.p_expr),this.exprAllowed=!0},J.incDec.updateContext=function(){},J._function.updateContext=J._class.updateContext=function(e){e.beforeExpr&&e!==J._else&&(e!==J.semi||this.curContext()===Ff.p_stat)&&!(e===J._return&&Fd.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==J.colon&&e!==J.braceL||this.curContext()!==Ff.b_stat)?this.context.push(Ff.f_expr):this.context.push(Ff.f_stat),this.exprAllowed=!1},J.backQuote.updateContext=function(){this.curContext()===Ff.q_tmpl?this.context.pop():this.context.push(Ff.q_tmpl),this.exprAllowed=!1},J.star.updateContext=function(e){if(e===J._function){var t=this.context.length-1;this.context[t]===Ff.f_expr?this.context[t]=Ff.f_expr_gen:this.context[t]=Ff.f_gen}this.exprAllowed=!0},J.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==J.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var X=bf.prototype;X.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},X.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===J.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(J.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},X.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new wf,r=!0);var s=this.start,c=this.startLoc;(this.type===J.parenL||this.type===J.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===J.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===J.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},X.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(J.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(J.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},X.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},X.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==J._in)&&a>r){var o=this.type===J.logicalOR||this.type===J.logicalAND,s=this.type===J.coalesce;s&&(a=J.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===J.coalesce||s&&(this.type===J.logicalOR||this.type===J.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},X.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},X.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===J.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&s.argument.type===`Identifier`?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Lf(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===J.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==J._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(J.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function Lf(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Lf(e.expression)}X.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},X.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},X.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(J.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(J.bracketL);if(l||c&&this.type!==J.parenL&&this.type!==J.backQuote||this.eat(J.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(J.bracketR)):u.property=this.type===J.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(J.parenL)){var d=new wf,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(J.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(J.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseArrowExpression(this.startNodeAt(t,n),h,!0,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===J.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},X.parseExprAtom=function(e,t){this.type===J.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case J._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),n=this.startNode(),this.next(),this.type===J.parenL&&!this.allowDirectSuper&&this.raise(n.start,`super() call outside constructor of a subclass`),this.type!==J.dot&&this.type!==J.bracketL&&this.type!==J.parenL&&this.unexpected(),this.finishNode(n,`Super`);case J._this:return n=this.startNode(),this.next(),this.finishNode(n,`ThisExpression`);case J.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&s.name===`async`&&!this.canInsertSemicolon()&&this.eat(J._function))return this.overrideContext(Ff.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(J.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name===`async`&&this.type===J.name&&!o&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(J.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case J.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case J.num:case J.string:return this.parseLiteral(this.value);case J._null:case J._true:case J._false:return n=this.startNode(),n.value=this.type===J._null?null:this.type===J._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,`Literal`);case J.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case J.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(J.bracketR,!0,!0,e),this.finishNode(n,`ArrayExpression`);case J.braceL:return this.overrideContext(Ff.b_expr),this.parseObj(!1,e);case J._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case J._class:return this.parseClass(this.startNode(),!1);case J._new:return this.parseNew();case J.backQuote:return this.parseTemplate();case J._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},X.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case J.parenL:return this.parseDynamicImport(e);case J.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},X.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(J.parenR)){var t=this.start;this.eat(J.comma)&&this.eat(J.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},X.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},X.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},X.parseParenExpression=function(){this.expect(J.parenL);var e=this.parseExpression();return this.expect(J.parenR),e},X.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new wf,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==J.parenR;){if(l?l=!1:this.expect(J.comma),a&&this.afterTrailingComma(J.parenR,!0)){u=!0;break}if(this.type===J.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(J.parenR),e&&!this.canInsertSemicolon()&&this.eat(J.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},X.parseParenItem=function(e){return e},X.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Rf=[];X.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(J.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===J._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),e.arguments=this.eat(J.parenL)?this.parseExprList(J.parenR,this.options.ecmaVersion>=8,!1):Rf,this.finishNode(e,`NewExpression`)},X.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===J.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
32
32
  `),cooked:this.value},this.next(),n.tail=this.type===J.backQuote,this.finishNode(n,`TemplateElement`)},X.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===J.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(J.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(J.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},X.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===J.name||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===J.star)&&!Fd.test(this.input.slice(this.lastTokEnd,this.start))},X.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(J.braceR);){if(r)r=!1;else if(this.expect(J.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(J.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},X.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(J.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===J.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(J.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(J.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},X.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===J.colon&&this.unexpected(),this.eat(J.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===J.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==J.comma&&this.type!==J.braceR&&this.type!==J.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===J.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},X.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(J.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(J.bracketR),e.key;e.computed=!1}return e.key=this.type===J.num||this.type===J.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},X.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},X.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pf(t,r.generator)|lf|(n?uf:0)),this.expect(J.parenL),r.params=this.parseBindingList(J.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},X.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(pf(n,!1)|sf),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},X.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==J.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,yf),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},X.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},X.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,hf,t?null:n)}},X.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(J.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===J.comma?o=null:this.type===J.ellipsis?(o=this.parseSpread(r),r&&this.type===J.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},X.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},X.parseIdent=function(e){var t=this.startNode();return this.type===J.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!==`class`&&t.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},X.parsePrivateIdent=function(){var e=this.startNode();return this.type===J.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},X.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===J.semi||this.canInsertSemicolon()||this.type!==J.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(J.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},X.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var zf=bf.prototype;zf.raise=function(e,t){var n=Zd(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},zf.raiseRecoverable=zf.raise,zf.curPosition=function(){if(this.options.locations)return new Yd(this.curLine,this.pos-this.lineStart)};var Bf=bf.prototype,Vf=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Bf.enterScope=function(e){this.scopeStack.push(new Vf(e))},Bf.exitScope=function(){this.scopeStack.pop()},Bf.treatFunctionsAsVarInScope=function(e){return e.flags&rf||!this.inModule&&e.flags&nf},Bf.declareName=function(e,t,n){var r=!1;if(t===gf){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&nf&&delete this.undefinedExports[e]}else if(t===vf)this.currentScope().lexical.push(e);else if(t===_f){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&cf&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&nf&&delete this.undefinedExports[e],s.flags&ff)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Bf.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Bf.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Bf.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ff)return t}},Bf.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ff&&!(t.flags&sf))return t}};var Hf=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new Xd(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Uf=bf.prototype;Uf.startNode=function(){return new Hf(this,this.start,this.startLoc)},Uf.startNodeAt=function(e,t){return new Hf(this,e,t)};function Wf(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Uf.finishNode=function(e,t){return Wf.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Uf.finishNodeAt=function(e,t,n,r){return Wf.call(this,e,t,n,r)},Uf.copyNode=function(e){var t=new Hf(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Gf=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,Kf=Gf+` Extended_Pictographic`,qf=Kf,Jf=qf+` EBase EComp EMod EPres ExtPict`,Yf=Jf,Xf={9:Gf,10:Kf,11:qf,12:Jf,13:Yf,14:Yf},Zf=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,Qf=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,$f=Qf+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,ep=$f+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,tp=ep+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,np=tp+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,rp={9:Qf,10:$f,11:ep,12:tp,13:np,14:np+` Kawi Nag_Mundari Nagm`},ip={};function ap(e){var t=ip[e]={binary:Kd(Xf[e]+` `+Zf),nonBinary:{General_Category:Kd(Zf),Script:Kd(rp[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Vu=0,Hu=[9,10,11,12,13,14];Vu<Hu.length;Vu+=1)Bu=Hu[Vu],ap(Bu);var Bu,Vu,Hu,Z=bf.prototype,op=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=ip[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};op.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},op.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},op.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},op.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},op.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},op.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},op.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},op.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Z.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},Z.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Z.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},Z.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},Z.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Z.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},Z.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Z.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},Z.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Z.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},Z.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Z.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Z.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},Z.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},Z.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Z.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},Z.regexp_eatSyntaxCharacter=function(e){var t=e.current();return sp(t)?(e.lastIntValue=t,e.advance(),!0):!1};function sp(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Z.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!sp(n);)e.advance();return e.pos!==t},Z.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},Z.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},Z.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},Z.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=qd(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=qd(e.lastIntValue);return!0}return!1},Z.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),cp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function cp(e){return kd(e,!0)||e===36||e===95}Z.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),lp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function lp(e){return Ad(e,!0)||e===36||e===95||e===8204||e===8205}Z.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},Z.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Z.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},Z.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Z.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Z.regexp_eatZero=function(e){return e.current()===48&&!hp(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Z.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},Z.regexp_eatControlLetter=function(e){var t=e.current();return up(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function up(e){return e>=65&&e<=90||e>=97&&e<=122}Z.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&dp(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function dp(e){return e>=0&&e<=1114111}Z.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},Z.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},Z.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(fp(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function fp(e){return e===100||e===68||e===115||e===83||e===119||e===87}Z.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Z.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Wd(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},Z.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},Z.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;pp(t=e.current());)e.lastStringValue+=qd(t),e.advance();return e.lastStringValue!==``};function pp(e){return up(e)||e===95}Z.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;mp(t=e.current());)e.lastStringValue+=qd(t),e.advance();return e.lastStringValue!==``};function mp(e){return pp(e)||hp(e)}Z.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Z.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},Z.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},Z.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||vp(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},Z.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Z.regexp_eatClassControlLetter=function(e){var t=e.current();return hp(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},Z.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},Z.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;hp(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function hp(e){return e>=48&&e<=57}Z.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;gp(n=e.current());)e.lastIntValue=16*e.lastIntValue+_p(n),e.advance();return e.pos!==t};function gp(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function _p(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Z.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},Z.regexp_eatOctalDigit=function(e){var t=e.current();return vp(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function vp(e){return e>=48&&e<=55}Z.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!gp(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+_p(i),e.advance()}return!0};var yp=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Xd(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Q=bf.prototype;Q.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new yp(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Q.getToken=function(){return this.next(),new yp(this)},typeof Symbol<`u`&&(Q[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===J.eof,value:t}}}}),Q.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(J.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Q.readToken=function(e){return kd(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Q.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Q.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=Rd(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Q.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Ld(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Q.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&zd.test(String.fromCharCode(e)))++this.pos;else break loop}}},Q.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Q.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(J.ellipsis)):(++this.pos,this.finishToken(J.dot))},Q.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(J.assign,2):this.finishOp(J.slash,1)},Q.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?J.star:J.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=J.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(J.assign,n+1):this.finishOp(r,n)},Q.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(e===124?J.logicalOR:J.logicalAND,2):t===61?this.finishOp(J.assign,2):this.finishOp(e===124?J.bitwiseOR:J.bitwiseAND,1)},Q.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(J.assign,2):this.finishOp(J.bitwiseXOR,1)},Q.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Fd.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(J.incDec,2):t===61?this.finishOp(J.assign,2):this.finishOp(J.plusMin,1)},Q.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(J.assign,n+1):this.finishOp(J.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(J.relational,n))},Q.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(J.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(J.arrow)):this.finishOp(e===61?J.eq:J.prefix,1)},Q.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(J.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(J.coalesce,2)}return this.finishOp(J.question,1)},Q.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),kd(t,!0)||t===92))return this.finishToken(J.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+qd(t)+`'`)},Q.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(J.parenL);case 41:return++this.pos,this.finishToken(J.parenR);case 59:return++this.pos,this.finishToken(J.semi);case 44:return++this.pos,this.finishToken(J.comma);case 91:return++this.pos,this.finishToken(J.bracketL);case 93:return++this.pos,this.finishToken(J.bracketR);case 123:return++this.pos,this.finishToken(J.braceL);case 125:return++this.pos,this.finishToken(J.braceR);case 58:return++this.pos,this.finishToken(J.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(J.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(J.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+qd(e)+`'`)},Q.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Q.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(Fd.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new op(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(J.regexp,{pattern:i,flags:o,value:c})},Q.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function bp(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function xp(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Q.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=xp(this.input.slice(t,this.pos)),++this.pos):kd(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,n)},Q.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=xp(this.input.slice(t,this.pos));return++this.pos,kd(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),kd(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=bp(this.input.slice(t,this.pos),n);return this.finishToken(J.num,a)},Q.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},Q.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Ld(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(J.string,t)};var Sp={};Q.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Sp)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Q.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Sp;this.raise(e,t)},Q.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===J.template||this.type===J.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(J.dollarBraceL)):(++this.pos,this.finishToken(J.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(J.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Ld(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
33
33
  `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Q.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(J.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},Q.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
34
- `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return qd(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return Ld(t)?``:String.fromCharCode(t)}},Q.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Q.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ad(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?kd:Ad)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=qd(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},Q.readWord=function(){var e=this.readWord1(),t=J.name;return this.keywords.test(e)&&(t=Pd[e]),this.finishToken(t,e)},bf.acorn={Parser:bf,version:`8.8.2`,defaultOptions:Qd,Position:Yd,SourceLocation:Xd,getLineInfo:Zd,Node:Hf,TokenType:K,tokTypes:J,keywordTypes:Pd,TokContext:Pf,tokContexts:Ff,isIdentifierChar:Ad,isIdentifierStart:kd,Token:yp,isNewLine:Ld,lineBreak:Fd,lineBreakG:Id,nonASCIIwhitespace:zd};var Cp=xt(Ct(),1),wp=bf.extend((0,Cp.default)()),Tp=1024;function Ep(e,t){let n=e.type===`CallExpression`&&`callee`in e&&e.callee instanceof Hf?e.callee:e;return n.type===`ParenthesizedExpression`&&n.start===t?n.end:void 0}function Dp(e){let t,n=``,r=``,i=e.length*2,a=``;return{parse(e,t={}){return wp.parse(e,Object.assign(Object.assign({},t),{ecmaVersion:t.ecmaVersion??`latest`}))},parseExpressionAt(o,s,c={}){let l=Object.assign(Object.assign({},c),{ecmaVersion:c.ecmaVersion??`latest`}),u=JSON.stringify(Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0}));if(u!==a&&(r=``,n=``,a=u),s===0&&r.length>o.length&&r.startsWith(o))throw Object.assign(/* @__PURE__ */ SyntaxError(`Unexpected end of expression`),{pos:o.length,raisedAt:o.length});try{let e=wp.parseExpressionAt(o,s,l);return r=``,n=``,e}catch(a){if(s!==0||o.length<Tp||!o.trimStart().startsWith(`(`)||!(a instanceof SyntaxError)||!(`raisedAt`in a)||typeof a.raisedAt!=`number`||a.raisedAt<o.length||n!==``&&o.startsWith(n))throw a;n=o,r=``,t??=e.replace(/(\r\n|\r|\n) {1,2}/g,`$1`);let c=t.indexOf(o);if(c>=1&&t[c-1]===`{`&&t[c+o.length]===`}`&&t.indexOf(o,c+1)===-1)try{let e=t.slice(c);if(e.length>i)throw a;i-=e.length;let n=Ep(wp.parseExpressionAt(e,s,Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0,preserveParens:!0})),o.search(/\S/));n!==void 0&&n>o.length&&(r=e.slice(0,n))}catch{r=``}throw a}}}}var Op=p().use(re).use(ne).use(v,[`yaml`,`toml`]).freeze(),kp=Op().use(i).freeze();function Ap(e){return e.split(/(```[\s\S]*?```|~~~[\s\S]*?~~~)/).map((e,t)=>t%2==0?e.replace(/<!--([\s\S]*?)-->/g,(e,t)=>`{/* ${t} */}`):e).join(``)}function jp(e,n={}){let r=n.omitHtmlComments??!0?Ap(e):e;return{sanitized:r,preprocessed:t(r,{preserveOriginal:!0})}}var Mp=e=>e.children.length===0||e.name===`video`;function Np(e,t){s(e,e=>{if(!a(e)||!Mp(e))return;let n=e.position?.end.offset;n===void 0||t.endsWith(`/>`,n)||(e.data=Object.assign(Object.assign({},e.data),{closingTag:!0}))})}var Pp=[Gc({singleTilde:!0}),_d({estree:!0}),Wc([`yaml`,`toml`])],Fp=[...Pp,Kc({singleDollarTextMath:!0})];function Ip(e,t){let n=Hc(e,{syntax:t?Fp:Pp});if(n instanceof Error)return;let r=n;return s(r,[`mdxJsxFlowElement`,`mdxJsxTextElement`],e=>{if(`attributes`in e)for(let t of e.attributes)delete t.position}),r}function Lp(e,t=!0){let n={acorn:Dp(e)},r=Ip(e,t)??(t?kp:Op)().use(re,n).parse(e);return Np(r,e),t&&b(r,e),r}function Rp(e,t={omitHtmlComments:!0}){return Lp(jp(e,t).preprocessed,t.math)}var zp=`__expressionAttributes`,Bp=`__namedExpressionAttributes`,Vp=`__mintlifyExtraAttrs`,Hp=Symbol(`unsupported-estree`);function Up(e,t){if(!e)return Hp;switch(e.type){case`Literal`:return e.value;case`TemplateLiteral`:return e.expressions.length===0?e.quasis[0]?.value.cooked??``:Hp;case`Identifier`:return t?Hp:e.name===`undefined`?void 0:e.name;case`UnaryExpression`:{let n=Up(e.argument,t);return typeof n==`number`?e.operator===`-`?-n:e.operator===`+`?n:Hp:Hp}case`ArrayExpression`:{let n=[];for(let r of e.elements){if(!r||r.type===`SpreadElement`)return Hp;let e=Up(r,t);if(e===Hp)return Hp;n.push(e)}return n}case`ObjectExpression`:{let n={};for(let r of e.properties){if(r.type!==`Property`||r.computed||r.method||r.kind!==`init`)return Hp;let e=r,i=e.key.type===`Identifier`?e.key.name:e.key.type===`Literal`&&(typeof e.key.value==`string`||typeof e.key.value==`number`)?String(e.key.value):void 0;if(!i)return Hp;let a=e.shorthand?e.key.type===`Identifier`?Up(e.key,t):Hp:Up(e.value,t);if(a===Hp)return Hp;n[i]=a}return n}default:return Hp}}function Wp(e,t,n){let r=t?.body[0],i=Up(r?.type===`ExpressionStatement`?r.expression:void 0,n);return i===Hp?e.trim()!==``&&!Number.isNaN(Number(e))?Number(e):e:i}function Gp(e=[]){let t=$(e,{staticOnly:!0}).start;return typeof t==`number`?Number.isInteger(t)?t:1:typeof t==`string`&&/^\s*-?\d+\s*$/.test(t)?Number(t):1}function $(e=[],t={}){let n={},r=[],i={};for(let a of e){if(a.type===`mdxJsxExpressionAttribute`){r.push(a.value);continue}let e=a.value;if(typeof e==`object`&&e){let r=e.value;typeof r==`string`?(i[a.name]=r,n[a.name]=Wp(r,`data`in e?e.data?.estree??void 0:void 0,t.staticOnly??!1)):n[a.name]=r}else e==null?n[a.name]=!0:n[a.name]=e}return r.length>0&&(n[zp]=r),Object.keys(i).length>0&&(n[Bp]=i),n}function Kp(e){try{let[t]=Lp(`<X value={${e}} />`,!1).children;return t?.type!==`mdxJsxFlowElement`||t.attributes.length!==1?e:$(t.attributes).value}catch{return e}}var qp=/* @__PURE__ */ new Set([`ref`,`key`,`dangerouslySetInnerHTML`]);function Jp(e){let t=e[Bp],n=t&&typeof t==`object`?t:{},r={};for(let[t,i]of Object.entries(e))t!==zp&&t!==Bp&&t!==Vp&&(qp.has(t)||jt.has(t)||t in n&&i===n[t]||(r[t]=i));return r}function Yp(e,t,n=[]){let r={},i={};for(let[a,o]of Object.entries(e))n.includes(a)||(a===zp||a===Bp||t.some(e=>e.name===a)?r[a]=o:i[a]=o);return Object.keys(i).length>0&&(r[Vp]=i),r}var Xp=Yt.filter(e=>e.name!==`type`);function Zp(e){return typeof e==`string`?wt.find(t=>t.toLowerCase()===e.toLowerCase())??null:null}function Qp(e,t){if(e!==`Callout`)return Object.assign({type:e},Yp(t,Xp));let n=Zp(t.type);return Object.assign({type:n},Yp(t,Xp,n?[`type`]:[]))}function $p(e){let t=e.split(` `).reverse();for(let[e,n]of Object.entries(Pt))if(t.includes(n))return e}function em(e){if(e&&typeof e==`object`&&`width`in e){let t=e.width;if(typeof t==`string`&&t.endsWith(`%`)){let e=parseInt(t.slice(0,-1),10);if(!isNaN(e))return e}}}var tm=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function nm(e,t=!1){let n=$(e.attributes),r=n.className,i;typeof r==`string`&&(i=$p(r));let a=n.style,o;tm(a)&&(o=em(a));let s=Object.assign(Object.assign({},t?Object.assign({},n):n),{[Mt]:!0});return{type:O.image,attrs:{imgAttributes:s,align:i,width:o}}}function rm(e){return(e.type===`mdxJsxTextElement`||e.type===`mdxJsxFlowElement`)&&e.name===`source`}function im(e){if(!e.children.every(e=>rm(e)||e.type===`text`&&e.value.trim()===``))return{type:e.type===`mdxJsxTextElement`?O.inlineUnknownTag:O.unknownTag,attrs:{mdxJsxNode:e}};let t=e.children.filter(rm).map(e=>$(e.attributes)),n=$(e.attributes);return{type:O.video,attrs:{videoAttributes:e.data?.closingTag===!0?Object.assign(Object.assign({},n),{[Nt]:!0}):n,sources:t.length>0?t:null}}}var am=/* @__PURE__ */ new Set([`hidden`,`dark:block`]),om=/* @__PURE__ */ new Set([`dark:hidden`]);function sm(e){let t=e.attrs?.imgAttributes;return tm(t)?t:null}function cm(e){let t=sm(e)?.className;return typeof t==`string`?t:void 0}function lm(e){if(e.type!==O.image)return!1;let t=cm(e);if(!t)return!1;let n=t.split(/\s+/);return n.includes(`hidden`)&&n.includes(`dark:block`)}function um(e){if(e.type!==O.image)return!1;let t=cm(e);return t?t.split(/\s+/).includes(`dark:hidden`):!1}function dm(e,t){if(!e)return;let n=t===`dark`?am:om;return e.split(/\s+/).filter(e=>!n.has(e)).join(` `).trim()||void 0}function fm(e){return Object.entries(e).filter(([e])=>e!==`src`&&e!==`className`).sort(([e],[t])=>e<t?-1:+(e>t))}function pm(e,t,n,r){let i=dm(n,`light`),a=dm(r,`dark`),o=i?.split(/\s+/).filter(e=>e!==`block`).join(` `).trim()||void 0;if(a!==i&&a!==o)return!1;let s=fm(e),c=fm(t);return s.length===c.length&&JSON.stringify(s)===JSON.stringify(c)}function mm(e){let t=[],n=0;for(;n<e.length;){let r=e[n],i=e[n+1];if(r&&i){let e,a;lm(r)&&um(i)?(e=r,a=i):um(r)&&lm(i)&&(a=r,e=i);let o=e?sm(e):null,s=a?sm(a):null,c=o?.src,l=s?.src;if(e&&a&&o&&s&&typeof c==`string`&&typeof l==`string`&&pm(s,o,cm(a),cm(e))){let r=dm(cm(a),`light`),i=Object.assign({},s);delete i.src,r?i.className=r:delete i.className,t.push({type:O.image,attrs:{imgAttributes:i,lightSrc:l,darkSrc:c,align:a.attrs?.align??e.attrs?.align,width:a.attrs?.width??e.attrs?.width}}),n+=2;continue}}r&&t.push(r),n++}return t}function hm(e){if(!e)return null;if(e.type===`image`)return{type:O.inlineImage,attrs:{imgAttributes:{src:e.url,alt:e.alt??void 0,title:e.title??void 0},width:100}};if(e.type===`mdxJsxTextElement`&&e.name===`img`){let t=$(e.attributes),n=100;if(t.width&&typeof t.width==`number`)n=t.width;else if(tm(t.style)){let e=em(t.style);e&&(n=e)}return{type:O.inlineImage,attrs:{imgAttributes:Object.assign(Object.assign({},t),{[Mt]:!0}),width:n}}}return null}function gm(e,t,n){let r=_m(e,`icon`),i=_m(e,`iconType`),a=vm(e),o=_m(e,`description`)??``,s=[{type:`paragraph`}];if(o)try{let e=Rp(o);ym(e);let r=n(e,t),i=!Array.isArray(r)&&r.type===`doc`&&Array.isArray(r.content)?r.content:Array.isArray(r)?r:[r];i.length>0&&(s=i)}catch{s=[{type:`paragraph`,content:[Wn(o)]}]}let c=bm(e,t.source),l=Yp($(e.attributes),ln,[`description`])[Vp];return{type:O.promptBlock,attrs:Object.assign({icon:r,iconType:i,actions:a},l?{[Vp]:l}:{}),content:[{type:O.promptDescription,content:s},{type:O.codeBlock,attrs:{language:`text`,__hasGroupParent:!0,__isPromptChild:!0,wrap:!0},content:c?[Wn(c)]:[]}]}}function _m(e,t){let n=$(e.attributes)[t];if(typeof n!=`string`)return;let r=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);if(r?.type===`mdxJsxAttribute`&&r.value!==null&&typeof r.value==`object`&&n===r.value.value){let e=n.trim();if(e.startsWith("`")&&e.endsWith("`"))return e.slice(1,-1).replace(/\\`/g,"`").replace(/\\\$/g,`$`).replace(/\\\\/g,`\\`)}return n}function vm(e){let t=$(e.attributes,{staticOnly:!0}).actions;return Array.isArray(t)?t.filter(e=>typeof e==`string`):[`copy`]}function ym(e){s(e,`link`,(e,t,n)=>{if(n&&typeof t==`number`&&e.children.length===1&&e.children[0]?.type===`text`&&e.children[0].value===e.url)return n.children[t]={type:`text`,value:e.url},c})}function bm(e,t){if(!e.position||!t)return``;let n=e.position.start.offset,r=e.position.end.offset;if(n===void 0||r===void 0)return``;let i=t.slice(n,r),a=i.match(/<\/\s*Prompt\s*>$/);if(!a)return``;let o=-1,s=0,c=!1,l=!1;for(let e=1;e<i.length;e++){let t=i[e]??``,n=i[e-1]??``;if(l)t==="`"&&n!==`\\`&&(l=!1);else if(c)t===c&&n!==`\\`&&(c=!1);else if(t==="`"&&s>0)l=!0;else if(t===`"`||t===`'`)c=t;else if(t===`{`)s++;else if(t===`}`)s--;else if(t===`>`&&s===0){o=e+1;break}}if(o===-1)return``;let u=i.length-a[0].length;return i.slice(o,u).trim()}var xm={[O.accordion]:Jt,[O.badge]:Qt,[O.card]:Kt,[O.codeBlock]:cn,[O.columns]:qt,[O.expandable]:tn,[O.frame]:en,[O.icon]:sn,[O.mermaidBlock]:un,[O.paramField]:dn,[O.promptBlock]:ln,[O.responseField]:fn,[O.step]:Gt,[O.tab]:Xt,[O.tabs]:Zt,[O.tooltip]:$t,[O.update]:on,[O.visibility]:nn};function Sm(e,t){return Yp(e,xm[t]??[])}var Cm=/* @__PURE__ */ new Map([[O.callout,!0],[O.column,!0],[O.expandable,!0],[O.frame,!0],[O.paramField,!0],[`Prompt`,!1],[O.responseField,!0],[O.tab,!0],[O.update,!0],[O.visibility,!1],[O.accordion,!1],[O.accordionGroup,!1],[O.card,!1],[O.codeGroup,!1],[O.columns,!1],[O.requestExample,!1],[O.responseExample,!1],[O.steps,!1],[O.tabs,!1]]);function wm(e,t){let n=t.nodes[e];return!!n&&!n.isInline&&!(n.spec.group??``).split(` `).includes(`block`)}var Tm=(e,t)=>Cm.get(e)&&t.length===0?[{type:`paragraph`}]:t;function Em(e,t,n,r){if(!e.name)return[];try{return Dm(e,t,n,r)}catch{return[]}}function Dm(e,t,n,r){if(!e.name)return[];if(/^h[1-6]$/.test(e.name)){let r=$(e.attributes),i=Object.keys(r);if(i.length===1&&i[0]===`id`){let i=parseInt(e.name[1]??`1`,10),a=e.children.flatMap(e=>e.type===`paragraph`?e.children:[e]);return{type:`heading`,attrs:{level:i,customId:r.id},content:a.flatMap(e=>n(e,t)).filter(Boolean)}}}if(e.name===`img`)return nm(e);if(e.name===`video`)return im(e);if(e.name===`Frame`){let n=$(e.attributes);return{type:O.frame,attrs:Yp(n,en),content:Tm(O.frame,r(e,t))}}let i=wt.includes(e.name);if(e.name===O.steps)return Nm(e,t,n,r);if(e.name===O.accordion)return Fm(e,t,n,r);if(e.name===O.accordionGroup)return{type:O.accordionGroup,attrs:Object.assign(Object.assign({},Sm($(e.attributes),O.accordionGroup)),t.hasGroupParent&&{__hasGroupParent:!0}),content:r(e,Object.assign(Object.assign({},t),{hasGroupParent:!0}))};if(e.name===O.card)return Im(e,t,n,r);if([O.tabs,O.codeGroup,O.requestExample,O.responseExample].includes(e.name))return Lm(e,t,n,r);if(e.name===O.columns)return Rm(e,t,r);if(e.name===O.color)return Bm(e);if(e.name===O.tree)return Hm(e);if(e.name===O.database)return Wm(e,t);let a=i?O.callout:e.name;if((i||e.name!==O.step&&Object.values(O).includes(e.name))&&(t.hasGroupParent||!wm(a,t.schema??bn))){let n=$(e.attributes);return{type:a,attrs:Object.assign(Object.assign({},i?Qp(e.name,n):Sm(n,a)),t.hasGroupParent&&{__hasGroupParent:!0}),content:Tm(a,r(e,t))}}return e.name===`table`&&!Ym(e)&&!qm(e)&&!Jm(e)?Xm(e,t,n,r):Tt.has(e.name)?{type:O.staticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:Yn(e,t)},content:r(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0}))}:e.name===`Prompt`?gm(e,t,n):Et.has(e.name)?{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:r(e,t)}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}function Om(e){let t=e.children.flatMap(e=>e.type!==`paragraph`||!Am(e.children)?e:e.children.filter(e=>e.type===`mdxJsxTextElement`).map(e=>Object.assign(Object.assign({},e),{type:`mdxJsxFlowElement`})));return Object.assign(Object.assign({},e),{children:t})}function km(e,t){return Om(e).children.filter(e=>e.type===`mdxJsxFlowElement`&&(t===void 0||e.name===t))}function Am(e){return e.every(e=>e.type===`mdxJsxTextElement`&&jm(e.name)||e.type===`text`&&e.value.trim()===``)}function jm(e){return!!e&&!Tt.has(e)&&!Dt.has(e)}function Mm(e,t,n,r){let i=typeof t==`string`&&t?me(t).flatMap(e=>r(e,n)):[];return Object.assign({type:e},i.length>0?{content:i}:{})}function Nm(e,t,n,r){let i=Om(e).children,a=[];for(let t of i)if(t.type!==`text`||t.value.trim()!==``){if(t.type!==`mdxJsxFlowElement`||t.name!==O.step)return{type:O.unknownTag,attrs:{mdxJsxNode:e}};a.push(t)}let o=a.map((e,i)=>Pm(e,t,n,r,{index:i,isLast:i===a.length-1}));return{type:O.steps,attrs:Object.assign(Object.assign({},Yp($(e.attributes),[])),t.hasGroupParent&&{__hasGroupParent:!0}),content:o}}function Pm(e,t,n,r,i){let a=$(e.attributes),o=a.title,s=r(e,t);return{type:O.step,attrs:Object.assign(Object.assign(Object.assign({},Yp(a,Gt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),{__childIndex:i.index,__isLastInGroup:i.isLast}),content:[Mm(O.stepTitle,o,t,n),{type:O.stepBody,content:s.length>0?s:[{type:`paragraph`}]}]}}function Fm(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=Mm(O.accordionTitle,a,t,n),c={type:O.accordionBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.accordion,attrs:Object.assign(Object.assign({},Yp(i,Jt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Im(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=Mm(O.cardTitle,a,t,n),c={type:O.cardBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.card,attrs:Object.assign(Object.assign({},Yp(i,Kt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Lm(e,t,n,r){let i={[O.tabs]:O.tab,[O.codeGroup]:O.codeBlock,[O.requestExample]:O.codeBlock,[O.responseExample]:O.codeBlock},a=e.children.filter(e=>e.type===`code`),o=t=>e.name===O.tabs?Yp(t,Zt):Yp(t,[]);if(a.length>0)return{type:e.name??O.codeGroup,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:a.map((e,r)=>{let i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0,isHidden:r!==0}));return Array.isArray(i)?i[0]??{type:`paragraph`}:i})};let s=km(e);if(s.length>0){let n=i[e.name??``]??O.tab,a=e=>n===O.tab?Yp(e,Xt):e,c=s.map((i,o)=>({type:n,attrs:Object.assign(Object.assign({},a($(i.attributes))),{__isHidden:o!==0,__hasGroupParent:!0}),content:Tm(n,r(i,Object.assign(Object.assign({},t),{hasGroupParent:e.name!==O.tabs,isHidden:e.name!==O.tabs&&o!==0})))}));return{type:e.name??O.tabs,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:c}}return r(e,t).length>0?{type:O.unknownTag,attrs:{mdxJsxNode:e}}:{type:e.name??O.tabs,attrs:o($(e.attributes)),content:[]}}function Rm(e,t,n){let r=Yp($(e.attributes),qt),i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0})).map(e=>e.type===O.column?Object.assign(Object.assign({},e),{content:Tm(O.column,e.content??[])}):e);return{type:O.columns,attrs:Object.assign(Object.assign({},r),t.hasGroupParent&&{__hasGroupParent:!0}),content:i}}function zm(e){let t=$(e.attributes),n=t.__namedExpressionAttributes;return{type:`item`,name:typeof t.name==`string`?t.name:void 0,value:t.value,rawValueExpr:n?.value}}function Bm(e){let t=$(e.attributes),n=typeof t.variant==`string`?t.variant:null,r=Yp(t,[],[`variant`]),i=km(e).map(e=>{if(e.name===`Color.Item`)return zm(e);if(e.name===`Color.Row`){let t=$(e.attributes),n=km(e,`Color.Item`).map(zm);return{type:`row`,title:typeof t.title==`string`?t.title:void 0,items:n}}return null}).filter(e=>e!==null);return{type:O.color,attrs:Object.assign({variant:n,colorData:i},r)}}function Vm(e){return km(e).map(e=>{if(e.name===`Tree.File`){let t=$(e.attributes);return{type:`file`,name:typeof t.name==`string`?t.name:void 0}}if(e.name===`Tree.Folder`){let t=$(e.attributes);return{type:`folder`,name:typeof t.name==`string`?t.name:void 0,defaultOpen:typeof t.defaultOpen==`boolean`?t.defaultOpen:void 0,openable:typeof t.openable==`boolean`?t.openable:void 0,children:Vm(e)}}return null}).filter(e=>e!==null)}function Hm(e){let t=Yp($(e.attributes),[]);return{type:O.tree,attrs:Object.assign({treeData:Vm(e)},t)}}var Um=[`view`,`sort`,`filter`,`groupBy`,`calendarBy`];function Wm(e,t){let n=Fn(e.attributes),r=$(In(e.attributes));return t.databases===!0&&n!==On&&(t.schema??bn).nodes[O.database]&&e.children.length===0&&!(zp in r)&&!(Bp in r)&&wn(r.id)&&Um.every(e=>r[e]===void 0||typeof r[e]==`string`)?{type:O.database,attrs:Object.assign(Object.assign({},Yp(r,an)),{sql:n})}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}var Gm=/* @__PURE__ */ new Set([`colspan`,`colSpan`,`rowspan`,`rowSpan`]),Km=/* @__PURE__ */ new Set([`class`,`className`]);function qm(e){return e.attributes.some(e=>e.type===`mdxJsxAttribute`&&Km.has(e.name))}function Jm(e){return Qm(e.children).some(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`tfoot`||e.name===`caption`||e.name===`thead`&&$m(e.children,`tr`).length>1))}function Ym(e){return oh(e)&&e.attributes.some(e=>e.type===`mdxJsxAttribute`&&Gm.has(e.name))?!0:`children`in e&&e.children.some(e=>Ym(e))}function Xm(e,t,n,r){let i=[];for(let t of Qm(e.children))ih(t)?i.push(t):(Zm(t,`thead`)||Zm(t,`tbody`))&&i.push(...Qm(t.children).filter(ih));if(i.length===0)return{type:`table`,content:[]};let a=nh(e);return{type:`table`,content:i.map((e,i)=>({type:`tableRow`,content:ah(e).map((e,o)=>{let s=e.name===`th`||i===0,c=a[o],l=$(e.attributes).style,u=(typeof l==`string`?l:l&&typeof l==`object`?Object.entries(l).map(([e,t])=>`${e}: ${String(t)}`).join(`; `):``).match(/text(?:-align|Align):\s*(left|center|right)/i),d=sh(e,t,n,r);return{type:s?`tableHeader`:`tableCell`,attrs:{align:u?.[1]??null,colwidth:c?[c]:null},content:d.length>0?d:[{type:`paragraph`}]}})}))}}function Zm(e,t){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===t}function Qm(e){return e.flatMap(e=>e.type===`paragraph`?e.children:[e])}function $m(e,t){return Qm(e).filter(e=>Zm(e,t))}function eh(e){let t=$(e.attributes),n=t.style,r=typeof n==`string`?n.match(/(?:^|;)\s*width:\s*([^;]+)/i)?.[1]:n&&typeof n==`object`?n.width:void 0,i=t.width??r;if(typeof i==`number`)return i>0?i:null;if(typeof i!=`string`)return null;let a=i.trim().match(/^(\d+(?:\.\d+)?)(?:px)?$/),o=a?.[1]?Number(a[1]):NaN;return o>0?o:null}function th(e){let t=Number($(e.attributes).span);return Number.isInteger(t)&&t>0?t:1}function nh(e){let t=$m(e.children,`col`);for(let n of $m(e.children,`colgroup`))t.push(...$m(n.children,`col`));return t.flatMap(e=>Array(th(e)).fill(eh(e)))}function rh(e){return Array.isArray(e)?e.filter(Boolean):[e]}function ih(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`tr`}function ah(e){let t=[];for(let n of e.children)if(oh(n))t.push(n);else if(n.type===`paragraph`)for(let e of n.children)oh(e)&&t.push(e);return t}function oh(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`td`||e.name===`th`)}function sh(e,t,n,r){let i=[];for(let a of e.children)if(a.type!==`mdxJsxFlowElement`&&a.type!==`mdxJsxTextElement`)i.push(...rh(n(a,t)));else if(a.name===`p`)i.push({type:`paragraph`,content:ch(a,t,n,r)});else if(a.name&&/^h[1-6]$/.test(a.name)){let e=parseInt(a.name[1]??`1`,10),o=$(a.attributes);i.push({type:`heading`,attrs:{level:e,id:o.id??null},content:ch(a,t,n,r)})}else if(a.name===`ul`||a.name===`ol`){let e=a.children.filter(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`li`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:ch(e,t,n,r)}]}));e.length>0&&i.push({type:a.name===`ol`?`orderedList`:`bulletList`,attrs:a.name===`ol`?{start:Gp(a.attributes)}:{},content:e})}else i.push(...rh(n(a,t)));return Jn(i,t.schema??bn)}function ch(e,t,n,r){return e.type===`mdxJsxFlowElement`?r(e,t).flatMap(e=>e.type===`paragraph`?e.content??[]:[e]):e.children.flatMap(e=>rh(n(e,t)))}function lh(e,t,n){if(e.name===`Tooltip`){let r=Yp($(e.attributes),$t),i=n(e,t);return{type:O.tooltip,attrs:r,content:i.length>0?i:[]}}if(e.name===`img`)return nm(e,!0);if(e.name===`video`)return im(e);if(e.name===`br`)return{type:`hardBreak`};if(e.name===`kbd`){let{text:t}=Gn(e);return Wn(t,[{type:`kbd`}])}if(e.name===`Icon`)return{type:O.icon,attrs:Yp($(e.attributes),sn)};if(e.name===`Badge`){let t=Yp($(e.attributes),Qt),{text:n}=Gn(e);return{type:O.badge,attrs:t,content:n?[{type:`text`,text:n}]:[]}}if(e.name===`u`||e.name===`sub`||e.name===`sup`){let{text:t}=Gn(e);return{type:`text`,text:t,marks:Kn(e)}}if(e.name&&wt.includes(e.name))return{type:O.callout,attrs:Qp(e.name,$(e.attributes)),content:[{type:`paragraph`,content:n(e,t)}]};if(e.name&&Et.has(e.name))return{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:Jn(n(e,t),t.schema??bn)};if(e.name&&Tt.has(e.name)){let r=t.schema??bn,i=n(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0})),a=i.some(e=>!qn(e,r));return{type:a?O.staticHTML:O.inlineStaticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:Yn(e,t)},content:a?Jn(i,r):i}}return e.name?{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}}:{type:`paragraph`,content:n(e,t)}}var uh=e=>{let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&/\s/.test(e[r]);)r++;if(r>=n)break;let i=``;for(;r<n&&!/\s/.test(e[r]);){let t=e[r];if(t===`"`||t===`'`){let a=t;for(i+=t,r++;r<n&&e[r]!==a;)e[r]===`\\`&&r+1<n?(i+=e[r]+e[r+1],r+=2):(i+=e[r],r++);r<n&&(i+=e[r],r++)}else if(t===`{`){for(;r<n&&e[r]!==`}`;)i+=e[r],r++;r<n&&(i+=e[r],r++)}else i+=t,r++}i&&t.push(i)}return t},dh=e=>{let t=e.match(/^\{(.*)\}$/);return t?t[1]??``:ph(e)},fh=e=>e.replace(/\\(["'\\])/g,`$1`),ph=e=>{let t=e.match(/^(['"])(.*)\1$/);return t?fh(t[2]??``):e.startsWith(`"`)||e.startsWith(`'`)?e.slice(1):e},mh=e=>{if(!e)return{};let t={},n=uh(e.trim()),r=[];for(let e of n){let n=e.match(/^highlight=(.+)$/);if(n){let e=dh(n[1]??``);e&&(t.highlight=e);continue}let i=e.match(/^\{([\d,\-]+)\}$/);if(i){t.highlight=i[1]??``;continue}let a=e.match(/^focus=(.+)$/);if(a){let e=dh(a[1]??``);e&&(t.focus=e);continue}let o=e.match(/^icon=(.+)$/);if(o){t.icon=ph(o[1]??``);continue}let s=e.match(/^title=(.+)$/);if(s){let e=ph(s[1]??``);e&&(t.filename=e,t.filenameSyntax=`title`)}else e===`expandable`||e===`lines`||e===`wrap`||e===`twoslash`||e===`nocopy`?t[e]=!0:e.includes(`=`)||r.push(e)}return t.filename===void 0&&r.length>0&&(t.filename=r.join(` `)),t};function hh(e){let t=e.split(`
34
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return qd(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return Ld(t)?``:String.fromCharCode(t)}},Q.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Q.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ad(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?kd:Ad)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=qd(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},Q.readWord=function(){var e=this.readWord1(),t=J.name;return this.keywords.test(e)&&(t=Pd[e]),this.finishToken(t,e)},bf.acorn={Parser:bf,version:`8.8.2`,defaultOptions:Qd,Position:Yd,SourceLocation:Xd,getLineInfo:Zd,Node:Hf,TokenType:K,tokTypes:J,keywordTypes:Pd,TokContext:Pf,tokContexts:Ff,isIdentifierChar:Ad,isIdentifierStart:kd,Token:yp,isNewLine:Ld,lineBreak:Fd,lineBreakG:Id,nonASCIIwhitespace:zd};var Cp=xt(Ct(),1),wp=bf.extend((0,Cp.default)()),Tp=1024;function Ep(e,t){let n=e.type===`CallExpression`&&`callee`in e&&e.callee instanceof Hf?e.callee:e;return n.type===`ParenthesizedExpression`&&n.start===t?n.end:void 0}function Dp(e){let t,n=``,r=``,i=e.length*2,a=``;return{parse(e,t={}){return wp.parse(e,Object.assign(Object.assign({},t),{ecmaVersion:t.ecmaVersion??`latest`}))},parseExpressionAt(o,s,c={}){let l=Object.assign(Object.assign({},c),{ecmaVersion:c.ecmaVersion??`latest`}),u=JSON.stringify(Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0}));if(u!==a&&(r=``,n=``,a=u),s===0&&r.length>o.length&&r.startsWith(o))throw Object.assign(/* @__PURE__ */ SyntaxError(`Unexpected end of expression`),{pos:o.length,raisedAt:o.length});try{let e=wp.parseExpressionAt(o,s,l);return r=``,n=``,e}catch(a){if(s!==0||o.length<Tp||!o.trimStart().startsWith(`(`)||!(a instanceof SyntaxError)||!(`raisedAt`in a)||typeof a.raisedAt!=`number`||a.raisedAt<o.length||n!==``&&o.startsWith(n))throw a;n=o,r=``,t??=e.replace(/(\r\n|\r|\n) {1,2}/g,`$1`);let c=t.indexOf(o);if(c>=1&&t[c-1]===`{`&&t[c+o.length]===`}`&&t.indexOf(o,c+1)===-1)try{let e=t.slice(c);if(e.length>i)throw a;i-=e.length;let n=Ep(wp.parseExpressionAt(e,s,Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0,preserveParens:!0})),o.search(/\S/));n!==void 0&&n>o.length&&(r=e.slice(0,n))}catch{r=``}throw a}}}}var Op=i().use(x).use(b).use(f,[`yaml`,`toml`]).freeze(),kp=Op().use(a).freeze();function Ap(e){return e.split(/(```[\s\S]*?```|~~~[\s\S]*?~~~)/).map((e,t)=>t%2==0?e.replace(/<!--([\s\S]*?)-->/g,(e,t)=>`{/* ${t} */}`):e).join(``)}function jp(e,t={}){let n=t.omitHtmlComments??!0?Ap(e):e;return{sanitized:n,preprocessed:_(n,{preserveOriginal:!0})}}var Mp=e=>e.children.length===0||e.name===`video`;function Np(e,t){g(e,e=>{if(!p(e)||!Mp(e))return;let n=e.position?.end.offset;n===void 0||t.endsWith(`/>`,n)||(e.data=Object.assign(Object.assign({},e.data),{closingTag:!0}))})}var Pp=[Gc({singleTilde:!0}),_d({estree:!0}),Wc([`yaml`,`toml`])],Fp=[...Pp,Kc({singleDollarTextMath:!0})];function Ip(e,t){let n=Hc(e,{syntax:t?Fp:Pp});if(n instanceof Error)return;let r=n;return g(r,[`mdxJsxFlowElement`,`mdxJsxTextElement`],e=>{if(`attributes`in e)for(let t of e.attributes)delete t.position}),r}function Lp(e,t=!0){let n={acorn:Dp(e)},r=Ip(e,t)??(t?kp:Op)().use(x,n).parse(e);return Np(r,e),t&&y(r,e),r}function Rp(e,t={omitHtmlComments:!0}){return Lp(jp(e,t).preprocessed,t.math)}var zp=`__expressionAttributes`,Bp=`__namedExpressionAttributes`,Vp=`__mintlifyExtraAttrs`,Hp=Symbol(`unsupported-estree`);function Up(e,t){if(!e)return Hp;switch(e.type){case`Literal`:return e.value;case`TemplateLiteral`:return e.expressions.length===0?e.quasis[0]?.value.cooked??``:Hp;case`Identifier`:return t?Hp:e.name===`undefined`?void 0:e.name;case`UnaryExpression`:{let n=Up(e.argument,t);return typeof n==`number`?e.operator===`-`?-n:e.operator===`+`?n:Hp:Hp}case`ArrayExpression`:{let n=[];for(let r of e.elements){if(!r||r.type===`SpreadElement`)return Hp;let e=Up(r,t);if(e===Hp)return Hp;n.push(e)}return n}case`ObjectExpression`:{let n={};for(let r of e.properties){if(r.type!==`Property`||r.computed||r.method||r.kind!==`init`)return Hp;let e=r,i=e.key.type===`Identifier`?e.key.name:e.key.type===`Literal`&&(typeof e.key.value==`string`||typeof e.key.value==`number`)?String(e.key.value):void 0;if(!i)return Hp;let a=e.shorthand?e.key.type===`Identifier`?Up(e.key,t):Hp:Up(e.value,t);if(a===Hp)return Hp;n[i]=a}return n}default:return Hp}}function Wp(e,t,n){let r=t?.body[0],i=Up(r?.type===`ExpressionStatement`?r.expression:void 0,n);return i===Hp?e.trim()!==``&&!Number.isNaN(Number(e))?Number(e):e:i}function Gp(e=[]){let t=$(e,{staticOnly:!0}).start;return typeof t==`number`?Number.isInteger(t)?t:1:typeof t==`string`&&/^\s*-?\d+\s*$/.test(t)?Number(t):1}function $(e=[],t={}){let n={},r=[],i={};for(let a of e){if(a.type===`mdxJsxExpressionAttribute`){r.push(a.value);continue}let e=a.value;if(typeof e==`object`&&e){let r=e.value;typeof r==`string`?(i[a.name]=r,n[a.name]=Wp(r,`data`in e?e.data?.estree??void 0:void 0,t.staticOnly??!1)):n[a.name]=r}else e==null?n[a.name]=!0:n[a.name]=e}return r.length>0&&(n[zp]=r),Object.keys(i).length>0&&(n[Bp]=i),n}function Kp(e){try{let[t]=Lp(`<X value={${e}} />`,!1).children;return t?.type!==`mdxJsxFlowElement`||t.attributes.length!==1?e:$(t.attributes).value}catch{return e}}var qp=/* @__PURE__ */ new Set([`ref`,`key`,`dangerouslySetInnerHTML`]);function Jp(e){let t=e[Bp],n=t&&typeof t==`object`?t:{},r={};for(let[t,i]of Object.entries(e))t!==zp&&t!==Bp&&t!==Vp&&(qp.has(t)||jt.has(t)||t in n&&i===n[t]||(r[t]=i));return r}function Yp(e,t,n=[]){let r={},i={};for(let[a,o]of Object.entries(e))n.includes(a)||(a===zp||a===Bp||t.some(e=>e.name===a)?r[a]=o:i[a]=o);return Object.keys(i).length>0&&(r[Vp]=i),r}var Xp=Yt.filter(e=>e.name!==`type`);function Zp(e){return typeof e==`string`?wt.find(t=>t.toLowerCase()===e.toLowerCase())??null:null}function Qp(e,t){if(e!==`Callout`)return Object.assign({type:e},Yp(t,Xp));let n=Zp(t.type);return Object.assign({type:n},Yp(t,Xp,n?[`type`]:[]))}function $p(e){let t=e.split(` `).reverse();for(let[e,n]of Object.entries(Pt))if(t.includes(n))return e}function em(e){if(e&&typeof e==`object`&&`width`in e){let t=e.width;if(typeof t==`string`&&t.endsWith(`%`)){let e=parseInt(t.slice(0,-1),10);if(!isNaN(e))return e}}}var tm=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function nm(e,t=!1){let n=$(e.attributes),r=n.className,i;typeof r==`string`&&(i=$p(r));let a=n.style,o;tm(a)&&(o=em(a));let s=Object.assign(Object.assign({},t?Object.assign({},n):n),{[Mt]:!0});return{type:O.image,attrs:{imgAttributes:s,align:i,width:o}}}function rm(e){return(e.type===`mdxJsxTextElement`||e.type===`mdxJsxFlowElement`)&&e.name===`source`}function im(e){if(!e.children.every(e=>rm(e)||e.type===`text`&&e.value.trim()===``))return{type:e.type===`mdxJsxTextElement`?O.inlineUnknownTag:O.unknownTag,attrs:{mdxJsxNode:e}};let t=e.children.filter(rm).map(e=>$(e.attributes)),n=$(e.attributes);return{type:O.video,attrs:{videoAttributes:e.data?.closingTag===!0?Object.assign(Object.assign({},n),{[Nt]:!0}):n,sources:t.length>0?t:null}}}var am=/* @__PURE__ */ new Set([`hidden`,`dark:block`]),om=/* @__PURE__ */ new Set([`dark:hidden`]);function sm(e){let t=e.attrs?.imgAttributes;return tm(t)?t:null}function cm(e){let t=sm(e)?.className;return typeof t==`string`?t:void 0}function lm(e){if(e.type!==O.image)return!1;let t=cm(e);if(!t)return!1;let n=t.split(/\s+/);return n.includes(`hidden`)&&n.includes(`dark:block`)}function um(e){if(e.type!==O.image)return!1;let t=cm(e);return t?t.split(/\s+/).includes(`dark:hidden`):!1}function dm(e,t){if(!e)return;let n=t===`dark`?am:om;return e.split(/\s+/).filter(e=>!n.has(e)).join(` `).trim()||void 0}function fm(e){return Object.entries(e).filter(([e])=>e!==`src`&&e!==`className`).sort(([e],[t])=>e<t?-1:+(e>t))}function pm(e,t,n,r){let i=dm(n,`light`),a=dm(r,`dark`),o=i?.split(/\s+/).filter(e=>e!==`block`).join(` `).trim()||void 0;if(a!==i&&a!==o)return!1;let s=fm(e),c=fm(t);return s.length===c.length&&JSON.stringify(s)===JSON.stringify(c)}function mm(e){let t=[],n=0;for(;n<e.length;){let r=e[n],i=e[n+1];if(r&&i){let e,a;lm(r)&&um(i)?(e=r,a=i):um(r)&&lm(i)&&(a=r,e=i);let o=e?sm(e):null,s=a?sm(a):null,c=o?.src,l=s?.src;if(e&&a&&o&&s&&typeof c==`string`&&typeof l==`string`&&pm(s,o,cm(a),cm(e))){let r=dm(cm(a),`light`),i=Object.assign({},s);delete i.src,r?i.className=r:delete i.className,t.push({type:O.image,attrs:{imgAttributes:i,lightSrc:l,darkSrc:c,align:a.attrs?.align??e.attrs?.align,width:a.attrs?.width??e.attrs?.width}}),n+=2;continue}}r&&t.push(r),n++}return t}function hm(e){if(!e)return null;if(e.type===`image`)return{type:O.inlineImage,attrs:{imgAttributes:{src:e.url,alt:e.alt??void 0,title:e.title??void 0},width:100}};if(e.type===`mdxJsxTextElement`&&e.name===`img`){let t=$(e.attributes),n=100;if(t.width&&typeof t.width==`number`)n=t.width;else if(tm(t.style)){let e=em(t.style);e&&(n=e)}return{type:O.inlineImage,attrs:{imgAttributes:Object.assign(Object.assign({},t),{[Mt]:!0}),width:n}}}return null}function gm(e,t,n){let r=_m(e,`icon`),i=_m(e,`iconType`),a=vm(e),o=_m(e,`description`)??``,s=[{type:`paragraph`}];if(o)try{let e=Rp(o);ym(e);let r=n(e,t),i=!Array.isArray(r)&&r.type===`doc`&&Array.isArray(r.content)?r.content:Array.isArray(r)?r:[r];i.length>0&&(s=i)}catch{s=[{type:`paragraph`,content:[Wn(o)]}]}let c=bm(e,t.source),l=Yp($(e.attributes),ln,[`description`])[Vp];return{type:O.promptBlock,attrs:Object.assign({icon:r,iconType:i,actions:a},l?{[Vp]:l}:{}),content:[{type:O.promptDescription,content:s},{type:O.codeBlock,attrs:{language:`text`,__hasGroupParent:!0,__isPromptChild:!0,wrap:!0},content:c?[Wn(c)]:[]}]}}function _m(e,t){let n=$(e.attributes)[t];if(typeof n!=`string`)return;let r=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);if(r?.type===`mdxJsxAttribute`&&r.value!==null&&typeof r.value==`object`&&n===r.value.value){let e=n.trim();if(e.startsWith("`")&&e.endsWith("`"))return e.slice(1,-1).replace(/\\`/g,"`").replace(/\\\$/g,`$`).replace(/\\\\/g,`\\`)}return n}function vm(e){let t=$(e.attributes,{staticOnly:!0}).actions;return Array.isArray(t)?t.filter(e=>typeof e==`string`):[`copy`]}function ym(e){g(e,`link`,(e,t,n)=>{if(n&&typeof t==`number`&&e.children.length===1&&e.children[0]?.type===`text`&&e.children[0].value===e.url)return n.children[t]={type:`text`,value:e.url},h})}function bm(e,t){if(!e.position||!t)return``;let n=e.position.start.offset,r=e.position.end.offset;if(n===void 0||r===void 0)return``;let i=t.slice(n,r),a=i.match(/<\/\s*Prompt\s*>$/);if(!a)return``;let o=-1,s=0,c=!1,l=!1;for(let e=1;e<i.length;e++){let t=i[e]??``,n=i[e-1]??``;if(l)t==="`"&&n!==`\\`&&(l=!1);else if(c)t===c&&n!==`\\`&&(c=!1);else if(t==="`"&&s>0)l=!0;else if(t===`"`||t===`'`)c=t;else if(t===`{`)s++;else if(t===`}`)s--;else if(t===`>`&&s===0){o=e+1;break}}if(o===-1)return``;let u=i.length-a[0].length;return i.slice(o,u).trim()}var xm={[O.accordion]:Jt,[O.badge]:Qt,[O.card]:Kt,[O.codeBlock]:cn,[O.columns]:qt,[O.expandable]:tn,[O.frame]:en,[O.icon]:sn,[O.mermaidBlock]:un,[O.paramField]:dn,[O.promptBlock]:ln,[O.responseField]:fn,[O.step]:Gt,[O.tab]:Xt,[O.tabs]:Zt,[O.tooltip]:$t,[O.update]:on,[O.visibility]:nn};function Sm(e,t){return Yp(e,xm[t]??[])}var Cm=/* @__PURE__ */ new Map([[O.callout,!0],[O.column,!0],[O.expandable,!0],[O.frame,!0],[O.paramField,!0],[`Prompt`,!1],[O.responseField,!0],[O.tab,!0],[O.update,!0],[O.visibility,!1],[O.accordion,!1],[O.accordionGroup,!1],[O.card,!1],[O.codeGroup,!1],[O.columns,!1],[O.requestExample,!1],[O.responseExample,!1],[O.steps,!1],[O.tabs,!1]]);function wm(e,t){let n=t.nodes[e];return!!n&&!n.isInline&&!(n.spec.group??``).split(` `).includes(`block`)}var Tm=(e,t)=>Cm.get(e)&&t.length===0?[{type:`paragraph`}]:t;function Em(e,t,n,r){if(!e.name)return[];try{return Dm(e,t,n,r)}catch{return[]}}function Dm(e,t,n,r){if(!e.name)return[];if(/^h[1-6]$/.test(e.name)){let r=$(e.attributes),i=Object.keys(r);if(i.length===1&&i[0]===`id`){let i=parseInt(e.name[1]??`1`,10),a=e.children.flatMap(e=>e.type===`paragraph`?e.children:[e]);return{type:`heading`,attrs:{level:i,customId:r.id},content:a.flatMap(e=>n(e,t)).filter(Boolean)}}}if(e.name===`img`)return nm(e);if(e.name===`video`)return im(e);if(e.name===`Frame`){let n=$(e.attributes);return{type:O.frame,attrs:Yp(n,en),content:Tm(O.frame,r(e,t))}}let i=wt.includes(e.name);if(e.name===O.steps)return Nm(e,t,n,r);if(e.name===O.accordion)return Fm(e,t,n,r);if(e.name===O.accordionGroup)return{type:O.accordionGroup,attrs:Object.assign(Object.assign({},Sm($(e.attributes),O.accordionGroup)),t.hasGroupParent&&{__hasGroupParent:!0}),content:r(e,Object.assign(Object.assign({},t),{hasGroupParent:!0}))};if(e.name===O.card)return Im(e,t,n,r);if([O.tabs,O.codeGroup,O.requestExample,O.responseExample].includes(e.name))return Lm(e,t,n,r);if(e.name===O.columns)return Rm(e,t,r);if(e.name===O.color)return Bm(e);if(e.name===O.tree)return Hm(e);if(e.name===O.database)return Wm(e,t);let a=i?O.callout:e.name;if((i||e.name!==O.step&&Object.values(O).includes(e.name))&&(t.hasGroupParent||!wm(a,t.schema??bn))){let n=$(e.attributes);return{type:a,attrs:Object.assign(Object.assign({},i?Qp(e.name,n):Sm(n,a)),t.hasGroupParent&&{__hasGroupParent:!0}),content:Tm(a,r(e,t))}}return e.name===`table`&&!Ym(e)&&!qm(e)&&!Jm(e)?Xm(e,t,n,r):Tt.has(e.name)?{type:O.staticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:Yn(e,t)},content:r(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0}))}:e.name===`Prompt`?gm(e,t,n):Et.has(e.name)?{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:r(e,t)}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}function Om(e){let t=e.children.flatMap(e=>e.type!==`paragraph`||!Am(e.children)?e:e.children.filter(e=>e.type===`mdxJsxTextElement`).map(e=>Object.assign(Object.assign({},e),{type:`mdxJsxFlowElement`})));return Object.assign(Object.assign({},e),{children:t})}function km(e,t){return Om(e).children.filter(e=>e.type===`mdxJsxFlowElement`&&(t===void 0||e.name===t))}function Am(e){return e.every(e=>e.type===`mdxJsxTextElement`&&jm(e.name)||e.type===`text`&&e.value.trim()===``)}function jm(e){return!!e&&!Tt.has(e)&&!Dt.has(e)}function Mm(e,t,n,r){let i=typeof t==`string`&&t?pe(t).flatMap(e=>r(e,n)):[];return Object.assign({type:e},i.length>0?{content:i}:{})}function Nm(e,t,n,r){let i=Om(e).children,a=[];for(let t of i)if(t.type!==`text`||t.value.trim()!==``){if(t.type!==`mdxJsxFlowElement`||t.name!==O.step)return{type:O.unknownTag,attrs:{mdxJsxNode:e}};a.push(t)}let o=a.map((e,i)=>Pm(e,t,n,r,{index:i,isLast:i===a.length-1}));return{type:O.steps,attrs:Object.assign(Object.assign({},Yp($(e.attributes),[])),t.hasGroupParent&&{__hasGroupParent:!0}),content:o}}function Pm(e,t,n,r,i){let a=$(e.attributes),o=a.title,s=r(e,t);return{type:O.step,attrs:Object.assign(Object.assign(Object.assign({},Yp(a,Gt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),{__childIndex:i.index,__isLastInGroup:i.isLast}),content:[Mm(O.stepTitle,o,t,n),{type:O.stepBody,content:s.length>0?s:[{type:`paragraph`}]}]}}function Fm(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=Mm(O.accordionTitle,a,t,n),c={type:O.accordionBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.accordion,attrs:Object.assign(Object.assign({},Yp(i,Jt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Im(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=Mm(O.cardTitle,a,t,n),c={type:O.cardBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.card,attrs:Object.assign(Object.assign({},Yp(i,Kt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Lm(e,t,n,r){let i={[O.tabs]:O.tab,[O.codeGroup]:O.codeBlock,[O.requestExample]:O.codeBlock,[O.responseExample]:O.codeBlock},a=e.children.filter(e=>e.type===`code`),o=t=>e.name===O.tabs?Yp(t,Zt):Yp(t,[]);if(a.length>0)return{type:e.name??O.codeGroup,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:a.map((e,r)=>{let i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0,isHidden:r!==0}));return Array.isArray(i)?i[0]??{type:`paragraph`}:i})};let s=km(e);if(s.length>0){let n=i[e.name??``]??O.tab,a=e=>n===O.tab?Yp(e,Xt):e,c=s.map((i,o)=>({type:n,attrs:Object.assign(Object.assign({},a($(i.attributes))),{__isHidden:o!==0,__hasGroupParent:!0}),content:Tm(n,r(i,Object.assign(Object.assign({},t),{hasGroupParent:e.name!==O.tabs,isHidden:e.name!==O.tabs&&o!==0})))}));return{type:e.name??O.tabs,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:c}}return r(e,t).length>0?{type:O.unknownTag,attrs:{mdxJsxNode:e}}:{type:e.name??O.tabs,attrs:o($(e.attributes)),content:[]}}function Rm(e,t,n){let r=Yp($(e.attributes),qt),i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0})).map(e=>e.type===O.column?Object.assign(Object.assign({},e),{content:Tm(O.column,e.content??[])}):e);return{type:O.columns,attrs:Object.assign(Object.assign({},r),t.hasGroupParent&&{__hasGroupParent:!0}),content:i}}function zm(e){let t=$(e.attributes),n=t.__namedExpressionAttributes;return{type:`item`,name:typeof t.name==`string`?t.name:void 0,value:t.value,rawValueExpr:n?.value}}function Bm(e){let t=$(e.attributes),n=typeof t.variant==`string`?t.variant:null,r=Yp(t,[],[`variant`]),i=km(e).map(e=>{if(e.name===`Color.Item`)return zm(e);if(e.name===`Color.Row`){let t=$(e.attributes),n=km(e,`Color.Item`).map(zm);return{type:`row`,title:typeof t.title==`string`?t.title:void 0,items:n}}return null}).filter(e=>e!==null);return{type:O.color,attrs:Object.assign({variant:n,colorData:i},r)}}function Vm(e){return km(e).map(e=>{if(e.name===`Tree.File`){let t=$(e.attributes);return{type:`file`,name:typeof t.name==`string`?t.name:void 0}}if(e.name===`Tree.Folder`){let t=$(e.attributes);return{type:`folder`,name:typeof t.name==`string`?t.name:void 0,defaultOpen:typeof t.defaultOpen==`boolean`?t.defaultOpen:void 0,openable:typeof t.openable==`boolean`?t.openable:void 0,children:Vm(e)}}return null}).filter(e=>e!==null)}function Hm(e){let t=Yp($(e.attributes),[]);return{type:O.tree,attrs:Object.assign({treeData:Vm(e)},t)}}var Um=[`view`,`sort`,`filter`,`groupBy`,`calendarBy`];function Wm(e,t){let n=Fn(e.attributes),r=$(In(e.attributes));return t.databases===!0&&n!==On&&(t.schema??bn).nodes[O.database]&&e.children.length===0&&!(zp in r)&&!(Bp in r)&&wn(r.id)&&Um.every(e=>r[e]===void 0||typeof r[e]==`string`)?{type:O.database,attrs:Object.assign(Object.assign({},Yp(r,an)),{sql:n})}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}var Gm=/* @__PURE__ */ new Set([`colspan`,`colSpan`,`rowspan`,`rowSpan`]),Km=/* @__PURE__ */ new Set([`class`,`className`]);function qm(e){return e.attributes.some(e=>e.type===`mdxJsxAttribute`&&Km.has(e.name))}function Jm(e){return Qm(e.children).some(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`tfoot`||e.name===`caption`||e.name===`thead`&&$m(e.children,`tr`).length>1))}function Ym(e){return oh(e)&&e.attributes.some(e=>e.type===`mdxJsxAttribute`&&Gm.has(e.name))?!0:`children`in e&&e.children.some(e=>Ym(e))}function Xm(e,t,n,r){let i=[];for(let t of Qm(e.children))ih(t)?i.push(t):(Zm(t,`thead`)||Zm(t,`tbody`))&&i.push(...Qm(t.children).filter(ih));if(i.length===0)return{type:`table`,content:[]};let a=nh(e);return{type:`table`,content:i.map((e,i)=>({type:`tableRow`,content:ah(e).map((e,o)=>{let s=e.name===`th`||i===0,c=a[o],l=$(e.attributes).style,u=(typeof l==`string`?l:l&&typeof l==`object`?Object.entries(l).map(([e,t])=>`${e}: ${String(t)}`).join(`; `):``).match(/text(?:-align|Align):\s*(left|center|right)/i),d=sh(e,t,n,r);return{type:s?`tableHeader`:`tableCell`,attrs:{align:u?.[1]??null,colwidth:c?[c]:null},content:d.length>0?d:[{type:`paragraph`}]}})}))}}function Zm(e,t){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===t}function Qm(e){return e.flatMap(e=>e.type===`paragraph`?e.children:[e])}function $m(e,t){return Qm(e).filter(e=>Zm(e,t))}function eh(e){let t=$(e.attributes),n=t.style,r=typeof n==`string`?n.match(/(?:^|;)\s*width:\s*([^;]+)/i)?.[1]:n&&typeof n==`object`?n.width:void 0,i=t.width??r;if(typeof i==`number`)return i>0?i:null;if(typeof i!=`string`)return null;let a=i.trim().match(/^(\d+(?:\.\d+)?)(?:px)?$/),o=a?.[1]?Number(a[1]):NaN;return o>0?o:null}function th(e){let t=Number($(e.attributes).span);return Number.isInteger(t)&&t>0?t:1}function nh(e){let t=$m(e.children,`col`);for(let n of $m(e.children,`colgroup`))t.push(...$m(n.children,`col`));return t.flatMap(e=>Array(th(e)).fill(eh(e)))}function rh(e){return Array.isArray(e)?e.filter(Boolean):[e]}function ih(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`tr`}function ah(e){let t=[];for(let n of e.children)if(oh(n))t.push(n);else if(n.type===`paragraph`)for(let e of n.children)oh(e)&&t.push(e);return t}function oh(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`td`||e.name===`th`)}function sh(e,t,n,r){let i=[];for(let a of e.children)if(a.type!==`mdxJsxFlowElement`&&a.type!==`mdxJsxTextElement`)i.push(...rh(n(a,t)));else if(a.name===`p`)i.push({type:`paragraph`,content:ch(a,t,n,r)});else if(a.name&&/^h[1-6]$/.test(a.name)){let e=parseInt(a.name[1]??`1`,10),o=$(a.attributes);i.push({type:`heading`,attrs:{level:e,id:o.id??null},content:ch(a,t,n,r)})}else if(a.name===`ul`||a.name===`ol`){let e=a.children.filter(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`li`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:ch(e,t,n,r)}]}));e.length>0&&i.push({type:a.name===`ol`?`orderedList`:`bulletList`,attrs:a.name===`ol`?{start:Gp(a.attributes)}:{},content:e})}else i.push(...rh(n(a,t)));return Jn(i,t.schema??bn)}function ch(e,t,n,r){return e.type===`mdxJsxFlowElement`?r(e,t).flatMap(e=>e.type===`paragraph`?e.content??[]:[e]):e.children.flatMap(e=>rh(n(e,t)))}function lh(e,t,n){if(e.name===`Tooltip`){let r=Yp($(e.attributes),$t),i=n(e,t);return{type:O.tooltip,attrs:r,content:i.length>0?i:[]}}if(e.name===`img`)return nm(e,!0);if(e.name===`video`)return im(e);if(e.name===`br`)return{type:`hardBreak`};if(e.name===`kbd`){let{text:t}=Gn(e);return Wn(t,[{type:`kbd`}])}if(e.name===`Icon`)return{type:O.icon,attrs:Yp($(e.attributes),sn)};if(e.name===`Badge`){let t=Yp($(e.attributes),Qt),{text:n}=Gn(e);return{type:O.badge,attrs:t,content:n?[{type:`text`,text:n}]:[]}}if(e.name===`u`||e.name===`sub`||e.name===`sup`){let{text:t}=Gn(e);return{type:`text`,text:t,marks:Kn(e)}}if(e.name&&wt.includes(e.name))return{type:O.callout,attrs:Qp(e.name,$(e.attributes)),content:[{type:`paragraph`,content:n(e,t)}]};if(e.name&&Et.has(e.name))return{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:Jn(n(e,t),t.schema??bn)};if(e.name&&Tt.has(e.name)){let r=t.schema??bn,i=n(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0})),a=i.some(e=>!qn(e,r));return{type:a?O.staticHTML:O.inlineStaticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:Yn(e,t)},content:a?Jn(i,r):i}}return e.name?{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}}:{type:`paragraph`,content:n(e,t)}}var uh=e=>{let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&/\s/.test(e[r]);)r++;if(r>=n)break;let i=``;for(;r<n&&!/\s/.test(e[r]);){let t=e[r];if(t===`"`||t===`'`){let a=t;for(i+=t,r++;r<n&&e[r]!==a;)e[r]===`\\`&&r+1<n?(i+=e[r]+e[r+1],r+=2):(i+=e[r],r++);r<n&&(i+=e[r],r++)}else if(t===`{`){for(;r<n&&e[r]!==`}`;)i+=e[r],r++;r<n&&(i+=e[r],r++)}else i+=t,r++}i&&t.push(i)}return t},dh=e=>{let t=e.match(/^\{(.*)\}$/);return t?t[1]??``:ph(e)},fh=e=>e.replace(/\\(["'\\])/g,`$1`),ph=e=>{let t=e.match(/^(['"])(.*)\1$/);return t?fh(t[2]??``):e.startsWith(`"`)||e.startsWith(`'`)?e.slice(1):e},mh=e=>{if(!e)return{};let t={},n=uh(e.trim()),r=[];for(let e of n){let n=e.match(/^highlight=(.+)$/);if(n){let e=dh(n[1]??``);e&&(t.highlight=e);continue}let i=e.match(/^\{([\d,\-]+)\}$/);if(i){t.highlight=i[1]??``;continue}let a=e.match(/^focus=(.+)$/);if(a){let e=dh(a[1]??``);e&&(t.focus=e);continue}let o=e.match(/^icon=(.+)$/);if(o){t.icon=ph(o[1]??``);continue}let s=e.match(/^title=(.+)$/);if(s){let e=ph(s[1]??``);e&&(t.filename=e,t.filenameSyntax=`title`)}else e===`expandable`||e===`lines`||e===`wrap`||e===`twoslash`||e===`nocopy`?t[e]=!0:e.includes(`=`)||r.push(e)}return t.filename===void 0&&r.length>0&&(t.filename=r.join(` `)),t};function hh(e){let t=e.split(`
35
35
  `),n=[],r=[],i=[];for(let e=0;e<t.length;e++){let a=t[e]??``,o=a.match(/^(.*?)\s*(?:\/\/|\/\*|#|--|<!--)\s*\[!code \+\+\]\s*(?:\*\/|-->)?\s*$/),s=a.match(/^(.*?)\s*(?:\/\/|\/\*|#|--|<!--)\s*\[!code --\]\s*(?:\*\/|-->)?\s*$/);o?(n.push(e+1),i.push(o[1]??``)):s?(r.push(e+1),i.push(s[1]??``)):i.push(a)}return{cleanedCode:i.join(`
36
- `),addLines:n,removeLines:r}}function gh(e){if(!e)return[];let t=[],n=e.replace(/[{}[\]]/g,``).split(`,`);for(let e of n){let n=e.trim(),r=n.match(/^(\d+)-(\d+)$/);if(r){let e=parseInt(r[1]??`0`,10),n=parseInt(r[2]??`0`,10);for(let r=e;r<=n;r++)t.push(r)}else{let e=parseInt(n,10);isNaN(e)||t.push(e)}}return t}function _h(e){if(e.length===0)return``;let t=[...new Set(e)].sort((e,t)=>e-t),n=[],r=t[0]??0,i=r;for(let e=1;e<t.length;e++){let a=t[e]??0;a===i+1||(n.push(r===i?String(r):`${r}-${i}`),r=a),i=a}return n.push(r===i?String(r):`${r}-${i}`),n.join(`,`)}function vh(e){let t=/* @__PURE__ */ new Set([`html`,`xml`,`svg`,`mdx`,`md`,`markdown`]),n=/* @__PURE__ */ new Set([`python`,`ruby`,`bash`,`sh`,`shell`,`zsh`,`yaml`,`yml`,`toml`,`perl`,`r`,`elixir`,`dockerfile`,`makefile`,`cmake`]),r=/* @__PURE__ */ new Set([`sql`,`lua`,`haskell`,`elm`]),i=/* @__PURE__ */ new Set([`css`,`scss`,`sass`,`less`,`stylus`]);return t.has(e)?{open:`<!--`,close:`-->`}:n.has(e)?{open:`#`,close:``}:r.has(e)?{open:`--`,close:``}:i.has(e)?{open:`/*`,close:`*/`}:{open:`//`,close:``}}var yh=/* @__PURE__ */ new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`ul`,`ol`]);function bh(e){return e.type!==`text`||`value`in e&&typeof e.value==`string`&&e.value.trim()!==``}function xh(e){return e?Array.isArray(e)?e.filter(Boolean):[e]:[]}function Sh(e,t,n){return e.flatMap(e=>{if(e.type===`text`){let{text:t,marks:n}=Gn(e);return[Wn(t,n)]}if(e.type===`image`||e.type===`mdxJsxTextElement`&&e.name===`img`){let t=hm(e);return t?[t]:[]}return xh(n(e,t))}).filter(Boolean)}function Ch(e,t,n){let r=e.findIndex(bh);if(r===-1)return null;let i=e.length-1;for(;i>r&&!bh(e[i]);)i--;return{type:`paragraph`,content:Sh(e.slice(r,i+1),t,n)}}function wh(e,t,n){if(e.some(e=>e.type===`mdxJsxTextElement`&&e.name!=null&&yh.has(e.name))){let r=[],i=[],a=()=>{let e=Ch(i,t,n);e&&r.push(e),i=[]};for(let o of e){if(o.type===`mdxJsxTextElement`&&o.name!=null&&yh.has(o.name)){if(a(),/^h[1-6]$/.test(o.name)){let e=parseInt(o.name[1]??`1`,10);r.push({type:`heading`,attrs:{level:e},content:Sh(o.children,t,n)});continue}if(o.name===`ul`||o.name===`ol`){let e=o.children.filter(e=>e.type===`mdxJsxTextElement`&&e.name===`li`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:Sh(e.children,t,n)}]}));e.length>0&&r.push({type:o.name===`ol`?`orderedList`:`bulletList`,attrs:o.name===`ol`?{start:Gp(o.attributes)}:{},content:e});continue}}i.push(o)}return a(),r}if(e.every(e=>e.type===`text`||e.type===`emphasis`||e.type===`strong`||e.type===`link`||e.type===`linkReference`||e.type===`inlineCode`||e.type===`delete`||e.type===`image`||e.type===`break`||e.type===`inlineMath`||e.type===`footnoteReference`||e.type===`mdxTextExpression`||e.type===`mdxJsxTextElement`)){let r=Ch(e,t,n);return r?[r]:[]}return e.flatMap(e=>xh(n(e,t)))}function Th(e,t,n,r){let i=t.schema??bn;if(e.children.some(e=>e.type===`image`||e.type===`mdxJsxTextElement`&&e.name===`img`)){if(e.children.some(e=>e.type===`text`||e.type===`emphasis`||e.type===`strong`||e.type===`link`||e.type===`linkReference`||e.type===`inlineCode`||e.type===`delete`||e.type===`mdxJsxTextElement`&&e.name!==`img`)){let r=[];for(let i of e.children)if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=hm(i);e&&r.push(e)}else{let e=n(i,t);Array.isArray(e)?r.push(...e):r.push(e)}return Eh(r,i)}let r=[];for(let i of e.children)if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=n(i,t);Array.isArray(e)?r.push(...e):r.push(e)}return r.length>0?r:[]}let a=r(e,t);return a.every(e=>qn(e,i))?{type:`paragraph`,content:a}:Eh(a,i)}function Eh(e,t){return Jn(mm(e),t).map(e=>e.type===`paragraph`?Dh(e):e).filter(e=>e.type!==`paragraph`||(e.content?.length??0)>0)}function Dh(e){let t=[...e.content??[]],n=t[0];n?.type===`text`&&n.text&&!n.marks?.some(e=>e.type===`code`)&&(t[0]=Object.assign(Object.assign({},n),{text:n.text.replace(/^\s+/,``)}));let r=t.length-1,i=t[r];return i?.type===`text`&&i.text&&!i.marks?.some(e=>e.type===`code`)&&(t[r]=Object.assign(Object.assign({},i),{text:i.text.replace(/\s+$/,``)})),Object.assign(Object.assign({},e),{content:t.filter(e=>e.type!==`text`||e.text!==``)})}function Oh(e,t,n){let r=e.children,i=e.align||[],a=r[0]?.children.length??0;return{type:`table`,content:r.map((e,r)=>{let o=e.children.reduce((e,t,n)=>t.children.length>0?Math.max(e,n+1):e,a);return{type:`tableRow`,content:e.children.slice(0,o).map((e,a)=>{let o=wh(e.children,t,n),s=i[a];return{type:r===0?`tableHeader`:`tableCell`,attrs:{align:s??null},content:o.length>0?o:[{type:`paragraph`,content:[]}]}})}})}}function kh(e,t){if(e.lang===`mermaid`&&!t.hasGroupParent){if(!e.value)return[];let t=e.meta||``,n=t.match(/placement=["']([^"']+)["']/),r=t.match(/actions=\{(true|false)\}/);return{type:O.mermaidBlock,attrs:{placement:n?.[1]||`bottom-right`,actions:r?r[1]===`true`:null},content:[{type:O.codeBlock,attrs:{language:`text`,__hasGroupParent:!0,__isMermaidChild:!0},content:[Wn(e.value)]}]}}let n=mh(e.meta||``),r=e.lang===`nocopy`;r&&n.nocopy===void 0&&(n.nocopy=!0);let{cleanedCode:i,addLines:a,removeLines:o}=hh(e.value||``),s={};return a.length>0&&(s.add=a),o.length>0&&(s.remove=o),Object.assign({type:O.codeBlock,attrs:Object.assign(Object.assign(Object.assign({language:r?`text`:e.lang||null},n),s),{__isHidden:t.isHidden,__hasGroupParent:t.hasGroupParent})},i?{content:[Wn(i)]}:{})}function Ah(e,t=``,n){let r=n?.schema??bn,i=Un(e),a=/* @__PURE__ */ new Map;s(e,e=>{e.type===`definition`&&!a.has(e.identifier)&&a.set(e.identifier,e);let t=e.type===`mdxJsxTextElement`&&e.name===`Prompt`;e.type!==`list`&&e.type!==`mdxJsxFlowElement`&&!t&&delete e.position});let o=jh(e,{source:t,frontmatter:i,schema:r,definitions:a,databases:n?.databases===!0}),c=Jn(Array.isArray(o)?o:o.content??[],r),l={type:`doc`,content:c.length>0?c:[]};return{doc:He.fromJSON(r,l),frontmatter:i}}function jh(e,t){if(!e)return[];switch(e.type){case`root`:return{type:`doc`,content:Ih(e,t)};case`heading`:return{type:`heading`,attrs:{level:e.depth},content:Ih(e,t)};case`paragraph`:return Th(e,t,jh,Ih);case`text`:return e.value?{type:`text`,text:e.value.replace(/\n/g,` `)}:[];case`blockquote`:{let n=Ih(e,t);return{type:`blockquote`,content:n.length?n:[{type:`paragraph`}]}}case`list`:{let n=e.ordered?{start:e.start??1}:{},r=e.children.map(e=>jh(e,t));return{type:e.ordered?`orderedList`:`bulletList`,attrs:n,content:r.flat()}}case`listItem`:{let n=Ih(e,t);return{type:`listItem`,attrs:{checked:e.checked??null},content:n[0]?.type===`paragraph`?n:[{type:`paragraph`,content:[]},...n]}}case`table`:return Oh(e,t,jh);case`tableRow`:case`tableCell`:return[];case`thematicBreak`:return{type:`horizontalRule`};case`break`:return{type:`hardBreak`};case`image`:return{type:O.image,attrs:{imgAttributes:{src:e.url,alt:e.alt??void 0,title:e.title??void 0}}};case`code`:return kh(e,t);case`emphasis`:case`strong`:case`link`:case`delete`:return Mh(e.children,Kn(e),t);case`linkReference`:{let n=Nh(e,t);return n?Mh(e.children,[n],t):{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}}}case`inlineCode`:{let{text:t,marks:n}=Gn(e);return Wn(t,n)}case`math`:return e.value?{type:O.blockMath,attrs:{expression:e.value}}:[];case`inlineMath`:return e.value?{type:O.inlineMath,attrs:{expression:e.value}}:[];case`yaml`:return[];case`mdxJsxTextElement`:{let n=Ph(e,[],t);if(n)return n;if(!e.name||!Cm.has(e.name)||wm(e.name,t.schema??bn))return lh(e,t,Ih);let r=Em(Object.assign(Object.assign({},e),{type:`mdxJsxFlowElement`,children:e.children.length>0?[{type:`paragraph`,children:e.children}]:[]}),t,jh,Lh);return(Array.isArray(r)?r:[r]).length>0?r:lh(e,t,Ih)}case`mdxJsxFlowElement`:return Em(e,t,jh,Lh);case`mdxjsEsm`:return{type:O.mdxJsEsm,attrs:{mdastNode:e}};case`mdxFlowExpression`:return{type:O.unknownTag,attrs:{mdxJsxNode:e,__isHidden:!0}};case`mdxTextExpression`:case`footnoteReference`:return{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}};case`definition`:return{type:O.unknownTag,attrs:{mdxJsxNode:e,__isHidden:!0}};default:return{type:O.unknownTag,attrs:{mdxJsxNode:e}}}}function Mh(e,t,n){let r=[];for(let i of e)if(i.type===`text`)i.value&&r.push(Wn(i.value.replace(/\n/g,` `),t));else if(i.type===`break`)r.push({type:`hardBreak`});else if(i.type===`inlineCode`)r.push(Wn(i.value||``,[...t,{type:`code`}]));else if(i.type===`linkReference`){let e=Nh(i,n);if(e)r.push(...Mh(i.children,[...t,e],n));else{let e=jh(i,n);r.push(...Array.isArray(e)?e:[e])}}else if(i.type===`emphasis`||i.type===`strong`||i.type===`link`||i.type===`delete`)r.push(...Mh(i.children,[...t,...Kn(i)],n));else if(i.type===`mdxJsxTextElement`&&i.name===`Link`){let e=Ph(i,t,n);if(e)r.push(...e);else{let e=jh(i,n);r.push(...Array.isArray(e)?e:[e])}}else if(i.type===`mdxJsxTextElement`&&(i.name===`u`||i.name===`sub`||i.name===`sup`))r.push(...Mh(i.children,[...t,...Kn(i)],n));else if(i.type===`mdxJsxTextElement`&&i.name===`kbd`){let{text:e}=Gn(i);e&&r.push(Wn(e,[...t,{type:`kbd`}]))}else if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=hm(i);e&&r.push(t.length>0?Object.assign(Object.assign({},e),{marks:t}):e)}else{let e=jh(i,n),a=Array.isArray(e)?e:[e],o=i.type===`mdxTextExpression`&&t.length>0?a.map(e=>Object.assign(Object.assign({},e),{marks:t})):a;r.push(...o)}return r}function Nh(e,t){let n=t.definitions?.get(e.identifier);if(n)return{type:`link`,attrs:{href:n.url,title:n.title??void 0,referenceLabel:e.label??n.label??e.identifier}}}function Ph(e,t,n){let r=Fh(e,n);if(!r)return;let i=Mh(e.children,[...t,r],n),a=n.schema??bn,o=i.every(e=>{if(!qn(e,a)||e.type!==`text`&&e.type!==O.inlineImage&&e.type!==O.inlineUnknownTag)return!1;let t=e.marks?.filter(e=>e.type===`link`)??[];return t.length===1&&t[0]?.attrs?.mdxLinkAttributes!==void 0});return i.length>0&&o?i:void 0}function Fh(e,t){if(e.name!==`Link`||e.attributes.some(e=>e.type===`mdxJsxExpressionAttribute`))return;let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`href`);if(!n||typeof n.value!=`string`)return;let r=$(e.attributes),i=t.nextMdxLinkId??0;return t.nextMdxLinkId=i+1,{type:`link`,attrs:{href:n.value,title:typeof r.title==`string`?r.title:void 0,mdxLinkAttributes:r,mdxLinkId:i}}}function Ih(e,t){return mm(e.children.flatMap(e=>jh(e,t)).filter(Boolean))}function Lh(e,t){return Jn(mm(Om({children:e.children}).children.flatMap(e=>e.type===`mdxJsxFlowElement`?Em(e,t,jh,Lh):jh(e,t)).filter(Boolean)),t.schema??bn)}function Rh(e,t){return Ah(Rp(e,t),e,t)}var zh=p().use(ne).use(v,[`yaml`,`toml`]).use(i).freeze(),Bh=/(<\/?(?:aside|details)\b[^>]*>|<summary\b[^>]*>[\s\S]*?<\/summary>)/i,Vh=/^<summary\b[^>]*>([\s\S]*?)<\/summary>$/i,Hh=/<(area|br|col|embed|hr|img|input|source|track|wbr)\b((?:[^>"']|"[^"]*"|'[^']*')*?)\s*\/?>/gi,Uh=/^<([a-z][\w-]*)\b[^>]*(?<!\/)>$/i,Wh=/<\/?[a-z][^>]*>/gi,Gh=/* @__PURE__ */ new Set([`paragraph`,`heading`,`tableCell`,`emphasis`,`strong`,`delete`,`link`,`linkReference`]),Kh=e=>`open`in e||`close`in e||`summary`in e,qh=e=>(e?.type===`mdxJsxFlowElement`||e?.type===`mdxJsxTextElement`)&&e.name===`summary`,Jh=({tag:e,title:t,children:n})=>({type:`mdxJsxFlowElement`,name:e===`aside`?`Callout`:`Accordion`,attributes:e===`details`?[{type:`mdxJsxAttribute`,name:`title`,value:t??``}]:[],children:n});function Yh(e){let[t]=e;if(qh(t))return e.shift(),Gn(t).text.trim();if(t?.type!==`paragraph`||!qh(t.children[0]))return;let n=t.children.shift();return Gn(t).text.trim()||e.shift(),Gn(n).text.trim()}function Xh(e){s(e,`mdxJsxFlowElement`,(e,t,n)=>{if(!n||t===void 0||e.name!==`aside`&&e.name!==`details`)return;let r=e.children,i=e.name===`details`?Yh(r):void 0;n.children[t]=Jh({tag:e.name,title:i,children:r})})}var Zh=/^\s*\/\*[\s\S]*\*\/\s*$/;function Qh(e){s(e,(e,t,n)=>{if(e.type!==`mdxTextExpression`&&e.type!==`mdxFlowExpression`||!n||t===void 0||Zh.test(e.value))return;let r={type:`text`,value:`{${e.value}}`};n.children[t]=e.type===`mdxFlowExpression`?{type:`paragraph`,children:[r]}:r})}function $h(e){try{return Rp(e.replace(Hh,`<$1$2 />`)).children}catch{let t=e.replace(Wh,``).trim();return t?[{type:`paragraph`,children:[{type:`text`,value:t}]}]:[]}}function eg(e){return $h(e).flatMap(e=>e.type===`paragraph`?e.children:e.type===`mdxJsxFlowElement`?[Object.assign(Object.assign({},e),{type:`mdxJsxTextElement`})]:[])}function tg(e){let t=e.split(Bh);return t.length===1?$h(e):t.flatMap((e,t)=>{if(t%2==0)return e.trim()?ag(e).children:[];let n=Vh.exec(e);return n?[{summary:(n[1]??``).replace(Wh,``).trim()}]:e.startsWith(`</`)?[{close:!0}]:[{open:/^<aside/i.test(e)?`aside`:`details`}]})}function ng(e){let t=[],n=[],r=()=>n.at(-1)?.children??t,i=()=>{let e=n.pop();e&&r().push(Jh(e))};for(let a of e)if(!Kh(a))r().push(a);else if(`open`in a)n.push({tag:a.open,children:[]});else if(`close`in a)i();else{let e=n.at(-1);e?e.title=a.summary:t.push({type:`paragraph`,children:[{type:`text`,value:a.summary}]})}for(;n.length>0;)i();return t}function rg(e,t,n){let r=e[t],i=r?.type===`html`?Uh.exec(r.value)?.[1]:void 0,a=(r?.position)?.start.offset;if(!i||a===void 0)return;let o=e.findIndex((e,n)=>n>t&&e.type===`html`&&e.value.toLowerCase()===`</${i}>`.toLowerCase()),s=(e[o]?.position)?.end.offset;if(o!==-1&&s!==void 0)return{nodes:eg(n.slice(a,s)),skip:o-t}}function ig(e,t){let n=Gh.has(e.type),r=[];for(let i=0;i<e.children.length;i++){let a=e.children[i];if(a.type!==`html`)`children`in a&&ig(a,t),r.push(a);else if(!n)r.push(...tg(a.value));else{let n=rg(e.children,i,t);r.push(...n?.nodes??eg(a.value)),i+=n?.skip??0}}e.children=r.some(Kh)?ng(r):r}function ag(e){let t=zh.parse(e);return b(t,e),ig(t,e),t}function og(e){try{let t=Rp(e);return Xh(t),Qh(t),t}catch{return ag(e)}}function sg(e,t){return Ah(og(e),e,t)}function cg(e){return e!==void 0&&e!==``}function lg(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>cg(t)))}function ug(){let e=/* @__PURE__ */ new Set,t=/* @__PURE__ */ new Set,n=o.shape;for(let[r,i]of Object.entries(n)){let n=i instanceof ee?i.unwrap():i;n instanceof S&&e.add(r),n instanceof te&&t.add(r),n instanceof x&&n.options.every(e=>e instanceof te)&&t.add(r)}return{booleanKeys:e,arrayKeys:t}}var{booleanKeys:dg,arrayKeys:fg}=ug(),pg=Array.from(dg),mg=Array.from(fg);function hg(e){try{return JSON.parse(e)}catch{return e}}var gg=/* @__PURE__ */ new Set([`automerge`]);function _g(e,t){if(dg.has(e)||gg.has(e))return t===`true`;if(fg.has(e)){let e=hg(t);return Array.isArray(e)?e:t}return t}var vg={lineWidth:-1,quotingType:`"`,forceQuotes:!0},yg=/* @__PURE__ */ new Set([`background`,`eyebrow`]);function bg(e,t){return Array.isArray(e)?e.map(e=>bg(e)):typeof e==`object`&&e&&!(e instanceof Date)?Object.fromEntries(Object.entries(e).filter(([e,n])=>cg(n)||n===``&&!!t?.has(e)).map(([e,t])=>[e,bg(t)])):e}function xg(t,n){let r=dg.has(t),i=n;r&&(i===`true`||i===`false`)&&(i=i===`true`),i===void 0&&(i=null);let a=t===`thumbnail`?yg:void 0;return e.dump({[t]:bg(i,a)},vg).trimEnd()}function Sg(e){if(!e||!e.startsWith(`<`)||!e.endsWith(`>`))return!1;try{let t=Dp(e).parseExpressionAt(e,0,{sourceType:`module`});return t.type===`JSXElement`&&t.end===e.length}catch{return!1}}function Cg(e){return e.textContent}var wg=/^[A-Za-z_$][\w$]*$/;function Tg(e){return e==null?null:typeof e==`object`?`{${Array.isArray(e)?Eg(e):Dg(e,!0)}}`:typeof e==`string`?e===``?`""`:Sg(e)?`{${e}}`:e.includes(`&`)||e.includes(`"`)&&e.includes(`'`)?`{${JSON.stringify(e)}}`:e.includes(`"`)?`'${e}'`:`"${e}"`:typeof e==`number`||typeof e==`boolean`?`{${e}}`:`{${JSON.stringify(e)}}`}function Eg(e){return e==null?`null`:typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?String(e):Array.isArray(e)?`[${e.map(Eg).join(`,`)}]`:typeof e==`object`?Dg(e,!1):JSON.stringify(e)??`null`}function Dg(e,t){let n=Object.entries(e).filter(([,e])=>e!==void 0).map(([e,t])=>`${wg.test(e)?e:JSON.stringify(e)}:${Eg(t)}`);return t?`{ ${n.join(`,`)} }`:`{${n.join(`,`)}}`}function Og(e,t,n){let r=Ig(e,t);if(r!==void 0)return`${t}={${r}}`;if(n===!0)return t;let i=Tg(n);return i?`${t}=${i}`:null}var kg={"&":`&amp;`,'"':`&quot;`,"<":`&lt;`,">":`&gt;`,"\n":`&#xA;`,"\r":`&#xD;`,"`":`&#x60;`,"~":`&#x7E;`},Ag=e=>e.replace(/[&"<>\n\r`~]/g,e=>kg[e]??e),jg=Object.assign(Object.assign({},kg),{"'":`&#x27;`,"*":`&#x2A;`,"{":`&#x7B;`,"}":`&#x7D;`}),Mg=/&(?=#?[A-Za-z0-9]+;)|<(?=[A-Za-z/!?])|(?<=\/)\*|\*(?=\/)|[\n\r`~{}]/g;function Ng(e,t){if(typeof t!=`string`)return null;let n=t.includes(`"`)?`'`:`"`;return`${e}=${n}${t.replace(RegExp(`${Mg.source}|${n}`,`g`),e=>jg[e]??e)}${n}`}function Pg(e,t,n){return typeof n==`string`?`${t}="${Ag(n)}"`:Og(e,t,n)}var Fg=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Ig(e,t){let n=e[Bp];if(!Fg(n))return;let r=n[t];return typeof r==`string`?r:void 0}var Lg=/* @__PURE__ */ new Set([`\\`,"`",`*`,`{`,`}`,`<`,`$`]),Rg=/* @__PURE__ */ new Set([`|`,`_`,`[`,`]`,`>`,`+`,`&`]),zg=RegExp(`[${[...Lg,...Rg].map(e=>`\\${e}`).join(``)}]`),Bg=/[\p{L}\p{N}]/u,Vg=/^\[[ xX]\]/,Hg=/\][([]/,Ug=/\]:/,Wg=/^&(?:#[0-9]{1,7}|#x[0-9a-f]{1,6}|[a-z][a-z0-9]{1,31});/i;function Gg(e){return e!==void 0&&Bg.test(e)}var Kg=class{constructor(e={}){this.chunks=[],this.chunkStarts=[],this.outLength=0,this.tail=``,this.trailingSpaces=0,this.topLevelLead=null,this.delim=``,this.closed=!1,this.inTable=!1,this.inHtmlTable=!1,this.inCodeSection=!1,this.keptBlankLines=/* @__PURE__ */ new Set,this.hasReferenceDefinitions=!1,this.indentSize=2,this.sourceMap=null,this.nodePath=[],this.options={tightLists:e.tightLists??!1,indentSize:e.indentSize??2,listIndentSize:e.listIndentSize??0,removeTrailingNewline:e.removeTrailingNewline??!0,hasReferenceDefinitions:e.hasReferenceDefinitions??!1,emphasisMarker:e.emphasisMarker??`_`},this.indentSize=this.options.indentSize,this.hasReferenceDefinitions=this.options.hasReferenceDefinitions}get out(){if(this.chunks.length>1){let e=this.chunks.join(``);this.chunks=[e],this.chunkStarts=[0]}return this.chunks[0]??``}set out(e){this.chunks=[],this.chunkStarts=[],this.outLength=0,this.tail=``,this.trailingSpaces=0,this.append(e)}get length(){return this.outLength}get trailingSpaceCount(){return this.trailingSpaces}sliceFrom(e){let t=0,n=this.chunkStarts.length-1;for(;t<n;){let r=t+n+1>>1;(this.chunkStarts[r]??0)<=e?t=r:n=r-1}let r=this.chunks[t];return r===void 0?``:r.slice(e-(this.chunkStarts[t]??0))+this.chunks.slice(t+1).join(``)}truncate(e){let t=e;for(;t>0&&this.chunks.length>0;){let e=this.chunks[this.chunks.length-1]??``;e.length<=t?(t-=e.length,this.chunks.pop(),this.chunkStarts.pop()):(this.chunks[this.chunks.length-1]=e.slice(0,e.length-t),t=0)}this.outLength-=e-t,this.tail=``,this.trailingSpaces=0;for(let e=this.chunks.length-1;e>=0&&this.tail.length<2;e--)this.tail=((this.chunks[e]??``)+this.tail).slice(-2);for(let e=this.chunks.length-1;e>=0;e--){let t=this.chunks[e]??``,n=t.length;for(;n>0&&t.charCodeAt(n-1)===32;)n--;if(this.trailingSpaces+=t.length-n,n>0)break}}append(e){if(e.length===0)return;this.chunkStarts.push(this.outLength),this.chunks.push(e),this.outLength+=e.length,this.tail=(this.tail+e).slice(-2);let t=e.length;for(;t>0&&e.charCodeAt(t-1)===32;)t--;this.trailingSpaces=t===0?this.trailingSpaces+e.length:e.length-t;let n=this.topLevelLead;if(n&&!n.content){let t=0;for(;t<e.length&&e.charCodeAt(t)===10;)t++;n.lead+=t,t<e.length&&(n.content=!0)}}beginBlock(e){return this.sourceMap?(this.nodePath.push(e),this.nodePath.length===1&&(this.topLevelLead={lead:0,content:!1}),this.outLength):0}endBlock(e){if(this.sourceMap){if(this.nodePath.length===1){let t=this.topLevelLead?.lead??0;this.topLevelLead=null,this.sourceMap.push({path:[...this.nodePath],start:e+t,end:this.outLength,kind:`block`})}this.nodePath.pop()}}recordTextSuffix(e,t,n,r){this.sourceMap&&!this.inTable&&this.sourceMap.push({path:[...this.nodePath,e],start:this.outLength-t,end:this.outLength,kind:`text`,pmStart:n,pmEnd:r})}takeTextSuffix(e){if(!this.sourceMap||e===0)return null;let t=this.sourceMap.at(-1);if(t?.kind!==`text`||t.end!==this.outLength||t.end-t.start<e||t.pmEnd-t.pmStart<e)return null;let n=Object.assign({path:[...t.path],kind:`text`,pmStart:t.pmEnd-e,pmEnd:t.pmEnd},t.offsetEncoding&&{offsetEncoding:t.offsetEncoding});return t.end-=e,t.pmEnd-=e,t.start===t.end&&this.sourceMap.pop(),n}recordTextRange(e,t,n){this.sourceMap&&!this.inTable&&this.sourceMap.push(Object.assign(Object.assign({},e),{start:t,end:n}))}withNodePath(e,t){if(!this.sourceMap)return t();this.nodePath.push(e);try{return t()}finally{this.nodePath.pop()}}recordLiteralTextRange(e,t,n,r=0){this.sourceMap&&!this.inTable&&this.sourceMap.push({path:[...this.nodePath,...e],start:t,end:n,kind:`text`,pmStart:r,pmEnd:r+n-t,offsetEncoding:`identity`})}importTextEntries(e,t,n){if(this.sourceMap)for(let r of e)r.kind===`text`&&this.sourceMap.push(Object.assign({path:[...this.nodePath,...t,...r.path],start:n(r.start),end:n(r.end),kind:`text`,pmStart:r.pmStart,pmEnd:r.pmEnd},r.offsetEncoding&&{offsetEncoding:r.offsetEncoding}))}write(e){this.closed&&=(this.append(`
36
+ `),addLines:n,removeLines:r}}function gh(e){if(!e)return[];let t=[],n=e.replace(/[{}[\]]/g,``).split(`,`);for(let e of n){let n=e.trim(),r=n.match(/^(\d+)-(\d+)$/);if(r){let e=parseInt(r[1]??`0`,10),n=parseInt(r[2]??`0`,10);for(let r=e;r<=n;r++)t.push(r)}else{let e=parseInt(n,10);isNaN(e)||t.push(e)}}return t}function _h(e){if(e.length===0)return``;let t=[...new Set(e)].sort((e,t)=>e-t),n=[],r=t[0]??0,i=r;for(let e=1;e<t.length;e++){let a=t[e]??0;a===i+1||(n.push(r===i?String(r):`${r}-${i}`),r=a),i=a}return n.push(r===i?String(r):`${r}-${i}`),n.join(`,`)}function vh(e){let t=/* @__PURE__ */ new Set([`html`,`xml`,`svg`,`mdx`,`md`,`markdown`]),n=/* @__PURE__ */ new Set([`python`,`ruby`,`bash`,`sh`,`shell`,`zsh`,`yaml`,`yml`,`toml`,`perl`,`r`,`elixir`,`dockerfile`,`makefile`,`cmake`]),r=/* @__PURE__ */ new Set([`sql`,`lua`,`haskell`,`elm`]),i=/* @__PURE__ */ new Set([`css`,`scss`,`sass`,`less`,`stylus`]);return t.has(e)?{open:`<!--`,close:`-->`}:n.has(e)?{open:`#`,close:``}:r.has(e)?{open:`--`,close:``}:i.has(e)?{open:`/*`,close:`*/`}:{open:`//`,close:``}}var yh=/* @__PURE__ */ new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`ul`,`ol`]);function bh(e){return e.type!==`text`||`value`in e&&typeof e.value==`string`&&e.value.trim()!==``}function xh(e){return e?Array.isArray(e)?e.filter(Boolean):[e]:[]}function Sh(e,t,n){return e.flatMap(e=>{if(e.type===`text`){let{text:t,marks:n}=Gn(e);return[Wn(t,n)]}if(e.type===`image`||e.type===`mdxJsxTextElement`&&e.name===`img`){let t=hm(e);return t?[t]:[]}return xh(n(e,t))}).filter(Boolean)}function Ch(e,t,n){let r=e.findIndex(bh);if(r===-1)return null;let i=e.length-1;for(;i>r&&!bh(e[i]);)i--;return{type:`paragraph`,content:Sh(e.slice(r,i+1),t,n)}}function wh(e,t,n){if(e.some(e=>e.type===`mdxJsxTextElement`&&e.name!=null&&yh.has(e.name))){let r=[],i=[],a=()=>{let e=Ch(i,t,n);e&&r.push(e),i=[]};for(let o of e){if(o.type===`mdxJsxTextElement`&&o.name!=null&&yh.has(o.name)){if(a(),/^h[1-6]$/.test(o.name)){let e=parseInt(o.name[1]??`1`,10);r.push({type:`heading`,attrs:{level:e},content:Sh(o.children,t,n)});continue}if(o.name===`ul`||o.name===`ol`){let e=o.children.filter(e=>e.type===`mdxJsxTextElement`&&e.name===`li`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:Sh(e.children,t,n)}]}));e.length>0&&r.push({type:o.name===`ol`?`orderedList`:`bulletList`,attrs:o.name===`ol`?{start:Gp(o.attributes)}:{},content:e});continue}}i.push(o)}return a(),r}if(e.every(e=>e.type===`text`||e.type===`emphasis`||e.type===`strong`||e.type===`link`||e.type===`linkReference`||e.type===`inlineCode`||e.type===`delete`||e.type===`image`||e.type===`break`||e.type===`inlineMath`||e.type===`footnoteReference`||e.type===`mdxTextExpression`||e.type===`mdxJsxTextElement`)){let r=Ch(e,t,n);return r?[r]:[]}return e.flatMap(e=>xh(n(e,t)))}function Th(e,t,n,r){let i=t.schema??bn;if(e.children.some(e=>e.type===`image`||e.type===`mdxJsxTextElement`&&e.name===`img`)){if(e.children.some(e=>e.type===`text`||e.type===`emphasis`||e.type===`strong`||e.type===`link`||e.type===`linkReference`||e.type===`inlineCode`||e.type===`delete`||e.type===`mdxJsxTextElement`&&e.name!==`img`)){let r=[];for(let i of e.children)if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=hm(i);e&&r.push(e)}else{let e=n(i,t);Array.isArray(e)?r.push(...e):r.push(e)}return Eh(r,i)}let r=[];for(let i of e.children)if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=n(i,t);Array.isArray(e)?r.push(...e):r.push(e)}return r.length>0?r:[]}let a=r(e,t);return a.every(e=>qn(e,i))?{type:`paragraph`,content:a}:Eh(a,i)}function Eh(e,t){return Jn(mm(e),t).map(e=>e.type===`paragraph`?Dh(e):e).filter(e=>e.type!==`paragraph`||(e.content?.length??0)>0)}function Dh(e){let t=[...e.content??[]],n=t[0];n?.type===`text`&&n.text&&!n.marks?.some(e=>e.type===`code`)&&(t[0]=Object.assign(Object.assign({},n),{text:n.text.replace(/^\s+/,``)}));let r=t.length-1,i=t[r];return i?.type===`text`&&i.text&&!i.marks?.some(e=>e.type===`code`)&&(t[r]=Object.assign(Object.assign({},i),{text:i.text.replace(/\s+$/,``)})),Object.assign(Object.assign({},e),{content:t.filter(e=>e.type!==`text`||e.text!==``)})}function Oh(e,t,n){let r=e.children,i=e.align||[],a=r[0]?.children.length??0;return{type:`table`,content:r.map((e,r)=>{let o=e.children.reduce((e,t,n)=>t.children.length>0?Math.max(e,n+1):e,a);return{type:`tableRow`,content:e.children.slice(0,o).map((e,a)=>{let o=wh(e.children,t,n),s=i[a];return{type:r===0?`tableHeader`:`tableCell`,attrs:{align:s??null},content:o.length>0?o:[{type:`paragraph`,content:[]}]}})}})}}function kh(e,t){if(e.lang===`mermaid`&&!t.hasGroupParent){if(!e.value)return[];let t=e.meta||``,n=t.match(/placement=["']([^"']+)["']/),r=t.match(/actions=\{(true|false)\}/);return{type:O.mermaidBlock,attrs:{placement:n?.[1]||`bottom-right`,actions:r?r[1]===`true`:null},content:[{type:O.codeBlock,attrs:{language:`text`,__hasGroupParent:!0,__isMermaidChild:!0},content:[Wn(e.value)]}]}}let n=mh(e.meta||``),r=e.lang===`nocopy`;r&&n.nocopy===void 0&&(n.nocopy=!0);let{cleanedCode:i,addLines:a,removeLines:o}=hh(e.value||``),s={};return a.length>0&&(s.add=a),o.length>0&&(s.remove=o),Object.assign({type:O.codeBlock,attrs:Object.assign(Object.assign(Object.assign({language:r?`text`:e.lang||null},n),s),{__isHidden:t.isHidden,__hasGroupParent:t.hasGroupParent})},i?{content:[Wn(i)]}:{})}function Ah(e,t=``,n){let r=n?.schema??bn,i=Un(e),a=/* @__PURE__ */ new Map;g(e,e=>{e.type===`definition`&&!a.has(e.identifier)&&a.set(e.identifier,e);let t=e.type===`mdxJsxTextElement`&&e.name===`Prompt`;e.type!==`list`&&e.type!==`mdxJsxFlowElement`&&!t&&delete e.position});let o=jh(e,{source:t,frontmatter:i,schema:r,definitions:a,databases:n?.databases===!0}),s=Jn(Array.isArray(o)?o:o.content??[],r),c={type:`doc`,content:s.length>0?s:[]};return{doc:He.fromJSON(r,c),frontmatter:i}}function jh(e,t){if(!e)return[];switch(e.type){case`root`:return{type:`doc`,content:Ih(e,t)};case`heading`:return{type:`heading`,attrs:{level:e.depth},content:Ih(e,t)};case`paragraph`:return Th(e,t,jh,Ih);case`text`:return e.value?{type:`text`,text:e.value.replace(/\n/g,` `)}:[];case`blockquote`:{let n=Ih(e,t);return{type:`blockquote`,content:n.length?n:[{type:`paragraph`}]}}case`list`:{let n=e.ordered?{start:e.start??1}:{},r=e.children.map(e=>jh(e,t));return{type:e.ordered?`orderedList`:`bulletList`,attrs:n,content:r.flat()}}case`listItem`:{let n=Ih(e,t);return{type:`listItem`,attrs:{checked:e.checked??null},content:n[0]?.type===`paragraph`?n:[{type:`paragraph`,content:[]},...n]}}case`table`:return Oh(e,t,jh);case`tableRow`:case`tableCell`:return[];case`thematicBreak`:return{type:`horizontalRule`};case`break`:return{type:`hardBreak`};case`image`:return{type:O.image,attrs:{imgAttributes:{src:e.url,alt:e.alt??void 0,title:e.title??void 0}}};case`code`:return kh(e,t);case`emphasis`:case`strong`:case`link`:case`delete`:return Mh(e.children,Kn(e),t);case`linkReference`:{let n=Nh(e,t);return n?Mh(e.children,[n],t):{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}}}case`inlineCode`:{let{text:t,marks:n}=Gn(e);return Wn(t,n)}case`math`:return e.value?{type:O.blockMath,attrs:{expression:e.value}}:[];case`inlineMath`:return e.value?{type:O.inlineMath,attrs:{expression:e.value}}:[];case`yaml`:return[];case`mdxJsxTextElement`:{let n=Ph(e,[],t);if(n)return n;if(!e.name||!Cm.has(e.name)||wm(e.name,t.schema??bn))return lh(e,t,Ih);let r=Em(Object.assign(Object.assign({},e),{type:`mdxJsxFlowElement`,children:e.children.length>0?[{type:`paragraph`,children:e.children}]:[]}),t,jh,Lh);return(Array.isArray(r)?r:[r]).length>0?r:lh(e,t,Ih)}case`mdxJsxFlowElement`:return Em(e,t,jh,Lh);case`mdxjsEsm`:return{type:O.mdxJsEsm,attrs:{mdastNode:e}};case`mdxFlowExpression`:return{type:O.unknownTag,attrs:{mdxJsxNode:e,__isHidden:!0}};case`mdxTextExpression`:case`footnoteReference`:return{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}};case`definition`:return{type:O.unknownTag,attrs:{mdxJsxNode:e,__isHidden:!0}};default:return{type:O.unknownTag,attrs:{mdxJsxNode:e}}}}function Mh(e,t,n){let r=[];for(let i of e)if(i.type===`text`)i.value&&r.push(Wn(i.value.replace(/\n/g,` `),t));else if(i.type===`break`)r.push({type:`hardBreak`});else if(i.type===`inlineCode`)r.push(Wn(i.value||``,[...t,{type:`code`}]));else if(i.type===`linkReference`){let e=Nh(i,n);if(e)r.push(...Mh(i.children,[...t,e],n));else{let e=jh(i,n);r.push(...Array.isArray(e)?e:[e])}}else if(i.type===`emphasis`||i.type===`strong`||i.type===`link`||i.type===`delete`)r.push(...Mh(i.children,[...t,...Kn(i)],n));else if(i.type===`mdxJsxTextElement`&&i.name===`Link`){let e=Ph(i,t,n);if(e)r.push(...e);else{let e=jh(i,n);r.push(...Array.isArray(e)?e:[e])}}else if(i.type===`mdxJsxTextElement`&&(i.name===`u`||i.name===`sub`||i.name===`sup`))r.push(...Mh(i.children,[...t,...Kn(i)],n));else if(i.type===`mdxJsxTextElement`&&i.name===`kbd`){let{text:e}=Gn(i);e&&r.push(Wn(e,[...t,{type:`kbd`}]))}else if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=hm(i);e&&r.push(t.length>0?Object.assign(Object.assign({},e),{marks:t}):e)}else{let e=jh(i,n),a=Array.isArray(e)?e:[e],o=i.type===`mdxTextExpression`&&t.length>0?a.map(e=>Object.assign(Object.assign({},e),{marks:t})):a;r.push(...o)}return r}function Nh(e,t){let n=t.definitions?.get(e.identifier);if(n)return{type:`link`,attrs:{href:n.url,title:n.title??void 0,referenceLabel:e.label??n.label??e.identifier}}}function Ph(e,t,n){let r=Fh(e,n);if(!r)return;let i=Mh(e.children,[...t,r],n),a=n.schema??bn,o=i.every(e=>{if(!qn(e,a)||e.type!==`text`&&e.type!==O.inlineImage&&e.type!==O.inlineUnknownTag)return!1;let t=e.marks?.filter(e=>e.type===`link`)??[];return t.length===1&&t[0]?.attrs?.mdxLinkAttributes!==void 0});return i.length>0&&o?i:void 0}function Fh(e,t){if(e.name!==`Link`||e.attributes.some(e=>e.type===`mdxJsxExpressionAttribute`))return;let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`href`);if(!n||typeof n.value!=`string`)return;let r=$(e.attributes),i=t.nextMdxLinkId??0;return t.nextMdxLinkId=i+1,{type:`link`,attrs:{href:n.value,title:typeof r.title==`string`?r.title:void 0,mdxLinkAttributes:r,mdxLinkId:i}}}function Ih(e,t){return mm(e.children.flatMap(e=>jh(e,t)).filter(Boolean))}function Lh(e,t){return Jn(mm(Om({children:e.children}).children.flatMap(e=>e.type===`mdxJsxFlowElement`?Em(e,t,jh,Lh):jh(e,t)).filter(Boolean)),t.schema??bn)}function Rh(e,t){return Ah(Rp(e,t),e,t)}var zh=i().use(b).use(f,[`yaml`,`toml`]).use(a).freeze(),Bh=/(<\/?(?:aside|details)\b[^>]*>|<summary\b[^>]*>[\s\S]*?<\/summary>)/i,Vh=/^<summary\b[^>]*>([\s\S]*?)<\/summary>$/i,Hh=/<(area|br|col|embed|hr|img|input|source|track|wbr)\b((?:[^>"']|"[^"]*"|'[^']*')*?)\s*\/?>/gi,Uh=/^<([a-z][\w-]*)\b[^>]*(?<!\/)>$/i,Wh=/<\/?[a-z][^>]*>/gi,Gh=/* @__PURE__ */ new Set([`paragraph`,`heading`,`tableCell`,`emphasis`,`strong`,`delete`,`link`,`linkReference`]),Kh=e=>`open`in e||`close`in e||`summary`in e,qh=e=>(e?.type===`mdxJsxFlowElement`||e?.type===`mdxJsxTextElement`)&&e.name===`summary`,Jh=({tag:e,title:t,children:n})=>({type:`mdxJsxFlowElement`,name:e===`aside`?`Callout`:`Accordion`,attributes:e===`details`?[{type:`mdxJsxAttribute`,name:`title`,value:t??``}]:[],children:n});function Yh(e){let[t]=e;if(qh(t))return e.shift(),Gn(t).text.trim();if(t?.type!==`paragraph`||!qh(t.children[0]))return;let n=t.children.shift();return Gn(t).text.trim()||e.shift(),Gn(n).text.trim()}function Xh(e){g(e,`mdxJsxFlowElement`,(e,t,n)=>{if(!n||t===void 0||e.name!==`aside`&&e.name!==`details`)return;let r=e.children,i=e.name===`details`?Yh(r):void 0;n.children[t]=Jh({tag:e.name,title:i,children:r})})}var Zh=/^\s*\/\*[\s\S]*\*\/\s*$/;function Qh(e){g(e,(e,t,n)=>{if(e.type!==`mdxTextExpression`&&e.type!==`mdxFlowExpression`||!n||t===void 0||Zh.test(e.value))return;let r={type:`text`,value:`{${e.value}}`};n.children[t]=e.type===`mdxFlowExpression`?{type:`paragraph`,children:[r]}:r})}function $h(e){try{return Rp(e.replace(Hh,`<$1$2 />`)).children}catch{let t=e.replace(Wh,``).trim();return t?[{type:`paragraph`,children:[{type:`text`,value:t}]}]:[]}}function eg(e){return $h(e).flatMap(e=>e.type===`paragraph`?e.children:e.type===`mdxJsxFlowElement`?[Object.assign(Object.assign({},e),{type:`mdxJsxTextElement`})]:[])}function tg(e){let t=e.split(Bh);return t.length===1?$h(e):t.flatMap((e,t)=>{if(t%2==0)return e.trim()?ag(e).children:[];let n=Vh.exec(e);return n?[{summary:(n[1]??``).replace(Wh,``).trim()}]:e.startsWith(`</`)?[{close:!0}]:[{open:/^<aside/i.test(e)?`aside`:`details`}]})}function ng(e){let t=[],n=[],r=()=>n.at(-1)?.children??t,i=()=>{let e=n.pop();e&&r().push(Jh(e))};for(let a of e)if(!Kh(a))r().push(a);else if(`open`in a)n.push({tag:a.open,children:[]});else if(`close`in a)i();else{let e=n.at(-1);e?e.title=a.summary:t.push({type:`paragraph`,children:[{type:`text`,value:a.summary}]})}for(;n.length>0;)i();return t}function rg(e,t,n){let r=e[t],i=r?.type===`html`?Uh.exec(r.value)?.[1]:void 0,a=(r?.position)?.start.offset;if(!i||a===void 0)return;let o=e.findIndex((e,n)=>n>t&&e.type===`html`&&e.value.toLowerCase()===`</${i}>`.toLowerCase()),s=(e[o]?.position)?.end.offset;if(o!==-1&&s!==void 0)return{nodes:eg(n.slice(a,s)),skip:o-t}}function ig(e,t){let n=Gh.has(e.type),r=[];for(let i=0;i<e.children.length;i++){let a=e.children[i];if(a.type!==`html`)`children`in a&&ig(a,t),r.push(a);else if(!n)r.push(...tg(a.value));else{let n=rg(e.children,i,t);r.push(...n?.nodes??eg(a.value)),i+=n?.skip??0}}e.children=r.some(Kh)?ng(r):r}function ag(e){let t=zh.parse(e);return y(t,e),ig(t,e),t}function og(e){try{let t=Rp(e);return Xh(t),Qh(t),t}catch{return ag(e)}}function sg(e,t){return Ah(og(e),e,t)}function cg(e){return e!==void 0&&e!==``}function lg(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>cg(t)))}function ug(){let e=/* @__PURE__ */ new Set,t=/* @__PURE__ */ new Set,n=d.shape;for(let[r,i]of Object.entries(n)){let n=i instanceof ee?i.unwrap():i;n instanceof C&&e.add(r),n instanceof te&&t.add(r),n instanceof S&&n.options.every(e=>e instanceof te)&&t.add(r)}return{booleanKeys:e,arrayKeys:t}}var{booleanKeys:dg,arrayKeys:fg}=ug(),pg=Array.from(dg),mg=Array.from(fg);function hg(e){try{return JSON.parse(e)}catch{return e}}var gg=/* @__PURE__ */ new Set([`automerge`]);function _g(e,t){if(dg.has(e)||gg.has(e))return t===`true`;if(fg.has(e)){let e=hg(t);return Array.isArray(e)?e:t}return t}var vg={lineWidth:-1,quotingType:`"`,forceQuotes:!0},yg=/* @__PURE__ */ new Set([`background`,`eyebrow`]);function bg(e,t){return Array.isArray(e)?e.map(e=>bg(e)):typeof e==`object`&&e&&!(e instanceof Date)?Object.fromEntries(Object.entries(e).filter(([e,n])=>cg(n)||n===``&&!!t?.has(e)).map(([e,t])=>[e,bg(t)])):e}function xg(e,t){let n=dg.has(e),r=t;n&&(r===`true`||r===`false`)&&(r=r===`true`),r===void 0&&(r=null);let i=e===`thumbnail`?yg:void 0;return u.dump({[e]:bg(r,i)},vg).trimEnd()}function Sg(e){if(!e||!e.startsWith(`<`)||!e.endsWith(`>`))return!1;try{let t=Dp(e).parseExpressionAt(e,0,{sourceType:`module`});return t.type===`JSXElement`&&t.end===e.length}catch{return!1}}function Cg(e){return e.textContent}var wg=/^[A-Za-z_$][\w$]*$/;function Tg(e){return e==null?null:typeof e==`object`?`{${Array.isArray(e)?Eg(e):Dg(e,!0)}}`:typeof e==`string`?e===``?`""`:Sg(e)?`{${e}}`:e.includes(`&`)||e.includes(`"`)&&e.includes(`'`)?`{${JSON.stringify(e)}}`:e.includes(`"`)?`'${e}'`:`"${e}"`:typeof e==`number`||typeof e==`boolean`?`{${e}}`:`{${JSON.stringify(e)}}`}function Eg(e){return e==null?`null`:typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?String(e):Array.isArray(e)?`[${e.map(Eg).join(`,`)}]`:typeof e==`object`?Dg(e,!1):JSON.stringify(e)??`null`}function Dg(e,t){let n=Object.entries(e).filter(([,e])=>e!==void 0).map(([e,t])=>`${wg.test(e)?e:JSON.stringify(e)}:${Eg(t)}`);return t?`{ ${n.join(`,`)} }`:`{${n.join(`,`)}}`}function Og(e,t,n){let r=Ig(e,t);if(r!==void 0)return`${t}={${r}}`;if(n===!0)return t;let i=Tg(n);return i?`${t}=${i}`:null}var kg={"&":`&amp;`,'"':`&quot;`,"<":`&lt;`,">":`&gt;`,"\n":`&#xA;`,"\r":`&#xD;`,"`":`&#x60;`,"~":`&#x7E;`},Ag=e=>e.replace(/[&"<>\n\r`~]/g,e=>kg[e]??e),jg=Object.assign(Object.assign({},kg),{"'":`&#x27;`,"*":`&#x2A;`,"{":`&#x7B;`,"}":`&#x7D;`}),Mg=/&(?=#?[A-Za-z0-9]+;)|<(?=[A-Za-z/!?])|(?<=\/)\*|\*(?=\/)|[\n\r`~{}]/g;function Ng(e,t){if(typeof t!=`string`)return null;let n=t.includes(`"`)?`'`:`"`;return`${e}=${n}${t.replace(RegExp(`${Mg.source}|${n}`,`g`),e=>jg[e]??e)}${n}`}function Pg(e,t,n){return typeof n==`string`?`${t}="${Ag(n)}"`:Og(e,t,n)}var Fg=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Ig(e,t){let n=e[Bp];if(!Fg(n))return;let r=n[t];return typeof r==`string`?r:void 0}var Lg=/* @__PURE__ */ new Set([`\\`,"`",`*`,`{`,`}`,`<`,`$`]),Rg=/* @__PURE__ */ new Set([`|`,`_`,`[`,`]`,`>`,`+`,`&`]),zg=RegExp(`[${[...Lg,...Rg].map(e=>`\\${e}`).join(``)}]`),Bg=/[\p{L}\p{N}]/u,Vg=/^\[[ xX]\]/,Hg=/\][([]/,Ug=/\]:/,Wg=/^&(?:#[0-9]{1,7}|#x[0-9a-f]{1,6}|[a-z][a-z0-9]{1,31});/i;function Gg(e){return e!==void 0&&Bg.test(e)}var Kg=class{constructor(e={}){this.chunks=[],this.chunkStarts=[],this.outLength=0,this.tail=``,this.trailingSpaces=0,this.topLevelLead=null,this.delim=``,this.closed=!1,this.inTable=!1,this.inHtmlTable=!1,this.inCodeSection=!1,this.keptBlankLines=/* @__PURE__ */ new Set,this.hasReferenceDefinitions=!1,this.indentSize=2,this.sourceMap=null,this.nodePath=[],this.options={tightLists:e.tightLists??!1,indentSize:e.indentSize??2,listIndentSize:e.listIndentSize??0,removeTrailingNewline:e.removeTrailingNewline??!0,hasReferenceDefinitions:e.hasReferenceDefinitions??!1,emphasisMarker:e.emphasisMarker??`_`},this.indentSize=this.options.indentSize,this.hasReferenceDefinitions=this.options.hasReferenceDefinitions}get out(){if(this.chunks.length>1){let e=this.chunks.join(``);this.chunks=[e],this.chunkStarts=[0]}return this.chunks[0]??``}set out(e){this.chunks=[],this.chunkStarts=[],this.outLength=0,this.tail=``,this.trailingSpaces=0,this.append(e)}get length(){return this.outLength}get trailingSpaceCount(){return this.trailingSpaces}sliceFrom(e){let t=0,n=this.chunkStarts.length-1;for(;t<n;){let r=t+n+1>>1;(this.chunkStarts[r]??0)<=e?t=r:n=r-1}let r=this.chunks[t];return r===void 0?``:r.slice(e-(this.chunkStarts[t]??0))+this.chunks.slice(t+1).join(``)}truncate(e){let t=e;for(;t>0&&this.chunks.length>0;){let e=this.chunks[this.chunks.length-1]??``;e.length<=t?(t-=e.length,this.chunks.pop(),this.chunkStarts.pop()):(this.chunks[this.chunks.length-1]=e.slice(0,e.length-t),t=0)}this.outLength-=e-t,this.tail=``,this.trailingSpaces=0;for(let e=this.chunks.length-1;e>=0&&this.tail.length<2;e--)this.tail=((this.chunks[e]??``)+this.tail).slice(-2);for(let e=this.chunks.length-1;e>=0;e--){let t=this.chunks[e]??``,n=t.length;for(;n>0&&t.charCodeAt(n-1)===32;)n--;if(this.trailingSpaces+=t.length-n,n>0)break}}append(e){if(e.length===0)return;this.chunkStarts.push(this.outLength),this.chunks.push(e),this.outLength+=e.length,this.tail=(this.tail+e).slice(-2);let t=e.length;for(;t>0&&e.charCodeAt(t-1)===32;)t--;this.trailingSpaces=t===0?this.trailingSpaces+e.length:e.length-t;let n=this.topLevelLead;if(n&&!n.content){let t=0;for(;t<e.length&&e.charCodeAt(t)===10;)t++;n.lead+=t,t<e.length&&(n.content=!0)}}beginBlock(e){return this.sourceMap?(this.nodePath.push(e),this.nodePath.length===1&&(this.topLevelLead={lead:0,content:!1}),this.outLength):0}endBlock(e){if(this.sourceMap){if(this.nodePath.length===1){let t=this.topLevelLead?.lead??0;this.topLevelLead=null,this.sourceMap.push({path:[...this.nodePath],start:e+t,end:this.outLength,kind:`block`})}this.nodePath.pop()}}recordTextSuffix(e,t,n,r){this.sourceMap&&!this.inTable&&this.sourceMap.push({path:[...this.nodePath,e],start:this.outLength-t,end:this.outLength,kind:`text`,pmStart:n,pmEnd:r})}takeTextSuffix(e){if(!this.sourceMap||e===0)return null;let t=this.sourceMap.at(-1);if(t?.kind!==`text`||t.end!==this.outLength||t.end-t.start<e||t.pmEnd-t.pmStart<e)return null;let n=Object.assign({path:[...t.path],kind:`text`,pmStart:t.pmEnd-e,pmEnd:t.pmEnd},t.offsetEncoding&&{offsetEncoding:t.offsetEncoding});return t.end-=e,t.pmEnd-=e,t.start===t.end&&this.sourceMap.pop(),n}recordTextRange(e,t,n){this.sourceMap&&!this.inTable&&this.sourceMap.push(Object.assign(Object.assign({},e),{start:t,end:n}))}withNodePath(e,t){if(!this.sourceMap)return t();this.nodePath.push(e);try{return t()}finally{this.nodePath.pop()}}recordLiteralTextRange(e,t,n,r=0){this.sourceMap&&!this.inTable&&this.sourceMap.push({path:[...this.nodePath,...e],start:t,end:n,kind:`text`,pmStart:r,pmEnd:r+n-t,offsetEncoding:`identity`})}importTextEntries(e,t,n){if(this.sourceMap)for(let r of e)r.kind===`text`&&this.sourceMap.push(Object.assign({path:[...this.nodePath,...t,...r.path],start:n(r.start),end:n(r.end),kind:`text`,pmStart:r.pmStart,pmEnd:r.pmEnd},r.offsetEncoding&&{offsetEncoding:r.offsetEncoding}))}write(e){this.closed&&=(this.append(`
37
37
  `),!1),this.delim&&this.tail.endsWith(`
38
38
  `)&&e.length>0&&e[0]!==`
39
39
  `&&this.append(this.delim),this.append(e)}ensureNewLine(){this.tail.endsWith(`
@@ -53,18 +53,18 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
53
53
  `)}let l=r.match(/`{3,}/g),u=l?Math.max(...l.map(e=>e.length))+1:3,d="`".repeat(u),f=``;if(t.attrs.filename){let e=String(t.attrs.filename);f=t.attrs.filenameSyntax===`title`?` title="${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:` `+e}if(t.attrs.expandable&&(f+=` expandable`),t.attrs.highlight){let e=_h(Array.isArray(t.attrs.highlight)?t.attrs.highlight:gh(String(t.attrs.highlight)));e&&(f+=` highlight={${e}}`)}if(t.attrs.icon&&(f+=` icon=${t.attrs.icon}`),t.attrs.lines&&(f+=` lines`),t.attrs.wrap&&(f+=` wrap`),t.attrs.focus){let e=_h(Array.isArray(t.attrs.focus)?t.attrs.focus:gh(String(t.attrs.focus)));e&&(f+=` focus={${e}}`)}t.attrs.twoslash&&(f+=` twoslash`),t.attrs.nocopy&&(f+=` nocopy`),e.write(d+i+f+`
54
54
  `);let p=e.delim?r.replace(/\n/g,`
55
55
  `+e.delim):r;e.write(p);let m=r.endsWith(`
56
- `);n&&t.childCount===1&&s.length===0&&c.length===0&&!m&&M_(e,n,r,e.length-p.length),e.ensureNewLine(),e.write(d),e.closeBlock(),e.inCodeSection=!1}var P_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},F_=/[\\`*_[\]~&]/g;function I_(e){for(let t=0;t<e.childCount;t+=1)if(e.child(t).marks.length>0)return!0;return!1}var L_=hn(Qt),R_=hn($t);function z_(e,t,n){let r=t.attrs,{type:i}=r,a=P_(r,[`type`]);H_(e,t,wt.find(e=>e===i)??`Callout`,a,n)}function B_(e,t,n,r,i,a=[]){let o=t.childCount>0?t.child(0):null,s=``;if(o){if(I_(o)){let t=new Kg(e.options);i(t,o),s=t.out}else{let e=Cg(o),t=e.replace(F_,`\\$&`);s=t===e||he(e)===e?e:t}}let c=Sg(s)?s.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`):s,l=Object.assign(c?{title:c}:{},t.attrs),u=e.length;H_(e,t,n,l,r,a);let d=o?.firstChild;if(!d?.isText||d.text!==s)return;let f=e.sliceFrom(u),p=f.indexOf(`<${n}`),m=f.indexOf(`
56
+ `);n&&t.childCount===1&&s.length===0&&c.length===0&&!m&&M_(e,n,r,e.length-p.length),e.ensureNewLine(),e.write(d),e.closeBlock(),e.inCodeSection=!1}var P_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},F_=/[\\`*_[\]~&]/g;function I_(e){for(let t=0;t<e.childCount;t+=1)if(e.child(t).marks.length>0)return!0;return!1}var L_=hn(Qt),R_=hn($t);function z_(e,t,n){let r=t.attrs,{type:i}=r,a=P_(r,[`type`]);H_(e,t,wt.find(e=>e===i)??`Callout`,a,n)}function B_(e,t,n,r,i,a=[]){let o=t.childCount>0?t.child(0):null,s=``;if(o){if(I_(o)){let t=new Kg(e.options);i(t,o),s=t.out}else{let e=Cg(o),t=e.replace(F_,`\\$&`);s=t===e||me(e)===e?e:t}}let c=Sg(s)?s.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`):s,l=Object.assign(c?{title:c}:{},t.attrs),u=e.length;H_(e,t,n,l,r,a);let d=o?.firstChild;if(!d?.isText||d.text!==s)return;let f=e.sliceFrom(u),p=f.indexOf(`<${n}`),m=f.indexOf(`
57
57
  `,p),h=f.indexOf(`title=`,p),g=f.indexOf(s,h+6);p<0||m<0||h<0||g<0||h>=m||g+s.length>m||e.recordLiteralTextRange([0,0],u+g,u+g+s.length)}function V_(e,t,n,r,i=[]){H_(e,t,n,t.attrs,r,i)}function H_(e,t,n,r,i,a=[]){let o=wv(r),s=Object.entries(o).map(([e,t])=>jt.has(e)||a.includes(e)?null:Og(o,e,t)).filter(Boolean),c=Cv(o),l=[...s,...c].join(` `);e.write(`<${n}${l?` ${l}`:``}>`),e.ensureNewLine();let u=e.delim;e.delim+=` `.repeat(e.indentSize),i(e,t),e.delim=u,e.closed=!1,e.ensureNewLine(),e.write(`</${n}>`)}function U_(e,t,n){e.write(`<${n}${Tv(t.attrs)}>
58
58
 
59
59
  `);for(let n=0;n<t.childCount;n++){let r=t.child(n);r.type.name===O.codeBlock&&(N_(e,r,[n,0]),n<t.childCount-1&&e.ensureNewLine())}e.ensureNewLine(),e.write(`</${n}>`),e.closeBlock()}function W_(e,t,n){let r=t.attrs.name||`CustomComponent`;r===`CodeBlock`?N_(e,t):H_(e,t,r,t.attrs.attributes??{},n)}function G_(e,t){let n=wv(t.attrs),r=Object.assign({},n);r.icon===!0&&delete r.icon;let i=Object.entries(r).map(([e,t])=>!t||jt.has(e)?null:Og(r,e,t)).filter(Boolean).join(` `);e.write(`<Icon ${i} />`)}function K_(e,t){let n=wv(t.attrs),r=Object.entries(n).filter(([e,t])=>jt.has(e)||t==null?!1:t!==L_[e]).map(([e,t])=>Og(n,e,t)).filter(Boolean).join(` `),i=Cg(t);i?e.write(`<${O.badge}${r?` ${r}`:``}>${e.esc(i)}</${O.badge}>`):e.write(`<${O.badge}${r?` ${r}`:``} />`)}function q_(e,t,n){let r=wv(t.attrs),i=Object.entries(r).filter(([e,t])=>jt.has(e)||e===`isNewlyCreated`||t==null||t===``?!1:t!==R_[e]).map(([e,t])=>Og(r,e,t)).filter(Boolean).join(` `);t.childCount>0?(e.write(`<${O.tooltip}${i?` ${i}`:``}>`),n(e,t),e.write(`</${O.tooltip}>`)):e.write(`<${O.tooltip}${i?` ${i}`:``} />`)}var J_=/* @__PURE__ */ new WeakMap;function Y_(e,t){try{let n;return Rh(t,{schema:e.type.schema}).doc.descendants(e=>(n===void 0&&zn.has(e.type.name)&&(n=e.textContent),n===void 0)),n}catch{return}}function X_(e,t,n){return J_.has(t)||J_.set(t,Y_(e,n)),J_.get(t)}function Z_(e,t,n){if(e.childCount===0&&!e.inlineContent)return!1;let r=X_(e,t,n);return r!==void 0&&r!==e.textContent}function Q_(e){return mv([Object.assign(Object.assign({},e),{children:[],data:void 0})]).trim().replace(/^<|\s*\/>$/g,``)}function $_(e,t,n,r){let i=e.inTable||t.type.name===O.inlineStaticHTML,a=t=>e.escapesPipes?t.replace(/\|/g,`&#124;`):t,o=e=>a(e.replace(/\s*\n\s*/g,` `).trim()),s=t.attrs.mdxJsxNode,c;if(s)try{let n=mv([s]);if(!Z_(t,s,n)){i?e.write(o(n)):(e.write(n),e.closeBlock());return}s.name&&(c=Q_(s),i&&(c=o(c)))}catch{}let l=t.attrs.tagName||`div`,u=t.attrs.attributes??{},d=Object.entries(u).filter(([e,t])=>t!=null).map(([e,t])=>jt.has(e)?null:Og(u,e,t)).filter(Boolean),f=Cv(u),p=[...d,...f].join(` `),m=c??(p?`${l} ${p}`:l);t.childCount>0?(e.write(`<${m}>`),i||e.ensureNewLine(),t.inlineContent?r(e,t):n(e,t),e.write(`</${c?s.name:l}>`)):e.write(`<${m} />`),i||e.closeBlock()}var ev=2,tv=2,nv=(e,t)=>e.split(`
60
60
  `).map((e,n)=>{if(n===0||e===``)return e;if(t>=0)return`${` `.repeat(t)}${e}`;let r=Math.min(-t,e.match(/^ */)?.[0].length??0);return e.slice(r)}).join(`
61
- `),rv=(e,t)=>{if(e.type===`mdxFlowExpression`){e.value=nv(e.value,ev-tv*t);return}if(!(`children`in e))return;let n=e.type===`mdxJsxFlowElement`?t+1:t;for(let t of e.children)rv(t,n)},iv=e=>typeof e==`object`&&!!e&&(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)&&typeof e.value==`string`;function av(e,t){let n=t.attrs.mdxJsxNode;if(iv(n))e.write(`{${nv(n.value,ev)}}`),t.type.name===O.unknownTag&&e.closeBlock();else{if(n)try{let r=mv([n]),i=t.type.name===O.inlineUnknownTag?r.replace(/\n$/,``):r;e.write(i)}catch{e.write(`<!-- unknown tag -->`)}t.type.name===O.unknownTag&&e.closeBlock()}}function ov(e,t){let n=t.attrs.mdastNode;if(n)try{let t=mv([n]);e.write(t)}catch{e.write(`<!-- esm node -->`)}e.closeBlock()}var sv=/[\p{L}\p{N}]/u;function cv(e){return e.replace(/\\_/g,(t,n)=>{let r=e[n-1],i=e[n+2];return r!==void 0&&sv.test(r)&&i!==void 0&&sv.test(i)?`_`:t})}var lv=e=>{for(let t of e){let e=t.handlers?.mdxJsxFlowElement??lv(t.extensions??[]);if(e)return e}},uv=e=>a(e)&&e.name!==null&&e.children.length===0&&e.data?.closingTag===!0,dv=e=>(t,n,r,i)=>{let a=e(t,n,r,i);return uv(t)?a.replace(/ ?\/>$/,`></${t.name}>`):a},fv=lv(g().use(re).freeze().data(`toMarkdownExtensions`)??[]),pv=Object.assign({text:(e,t,n,r)=>cv(n.safe(e.value,r)),inlineMath:e=>`$$${e.value}$$`},fv&&{mdxJsxFlowElement:dv(fv),mdxJsxTextElement:dv(fv)});function mv(e){let t=structuredClone(e).map(e=>e?.type===`mdxJsxTextElement`?{type:`paragraph`,children:[e]}:e);for(let e of t)rv(e,0);let n=g().use(re).use(ne).use(i).use(m,{handlers:pv}).stringify({type:`root`,children:t});return typeof n==`string`?n:String(n)}function hv(e,t){let n=Cg(t),r=n.match(/`{3,}/g),i=r?Math.max(...r.map(e=>e.length))+1:3,a="`".repeat(i),o=``;t.attrs.placement&&t.attrs.placement!==`bottom-right`&&(o+=` placement="${t.attrs.placement}"`),t.attrs.actions===!0?o+=` actions={true}`:t.attrs.actions===!1&&(o+=` actions={false}`),e.write(a+`mermaid`+o+`
61
+ `),rv=(e,t)=>{if(e.type===`mdxFlowExpression`){e.value=nv(e.value,ev-tv*t);return}if(!(`children`in e))return;let n=e.type===`mdxJsxFlowElement`?t+1:t;for(let t of e.children)rv(t,n)},iv=e=>typeof e==`object`&&!!e&&(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)&&typeof e.value==`string`;function av(e,t){let n=t.attrs.mdxJsxNode;if(iv(n))e.write(`{${nv(n.value,ev)}}`),t.type.name===O.unknownTag&&e.closeBlock();else{if(n)try{let r=mv([n]),i=t.type.name===O.inlineUnknownTag?r.replace(/\n$/,``):r;e.write(i)}catch{e.write(`<!-- unknown tag -->`)}t.type.name===O.unknownTag&&e.closeBlock()}}function ov(e,t){let n=t.attrs.mdastNode;if(n)try{let t=mv([n]);e.write(t)}catch{e.write(`<!-- esm node -->`)}e.closeBlock()}var sv=/[\p{L}\p{N}]/u;function cv(e){return e.replace(/\\_/g,(t,n)=>{let r=e[n-1],i=e[n+2];return r!==void 0&&sv.test(r)&&i!==void 0&&sv.test(i)?`_`:t})}var lv=e=>{for(let t of e){let e=t.handlers?.mdxJsxFlowElement??lv(t.extensions??[]);if(e)return e}},uv=e=>p(e)&&e.name!==null&&e.children.length===0&&e.data?.closingTag===!0,dv=e=>(t,n,r,i)=>{let a=e(t,n,r,i);return uv(t)?a.replace(/ ?\/>$/,`></${t.name}>`):a},fv=lv(o().use(x).freeze().data(`toMarkdownExtensions`)??[]),pv=Object.assign({text:(e,t,n,r)=>cv(n.safe(e.value,r)),inlineMath:e=>`$$${e.value}$$`},fv&&{mdxJsxFlowElement:dv(fv),mdxJsxTextElement:dv(fv)});function mv(e){let t=structuredClone(e).map(e=>e?.type===`mdxJsxTextElement`?{type:`paragraph`,children:[e]}:e);for(let e of t)rv(e,0);let n=o().use(x).use(b).use(a).use(r,{handlers:pv}).stringify({type:`root`,children:t});return typeof n==`string`?n:String(n)}function hv(e,t){let n=Cg(t),r=n.match(/`{3,}/g),i=r?Math.max(...r.map(e=>e.length))+1:3,a="`".repeat(i),o=``;t.attrs.placement&&t.attrs.placement!==`bottom-right`&&(o+=` placement="${t.attrs.placement}"`),t.attrs.actions===!0?o+=` actions={true}`:t.attrs.actions===!1&&(o+=` actions={false}`),e.write(a+`mermaid`+o+`
62
62
  `),e.write(n),e.ensureNewLine(),e.write(a),e.closeBlock()}function gv(e,t,n){let r=t.childCount>0?t.child(0):null,i=t.childCount>1?t.child(1):null,a=``;if(r){let t=new Kg(e.options);n(t,r),a=t.out.trim()}let o=i?Cg(i):``,s=[];if(a){if(a.includes(`&`)){let e=Pg(t.attrs,`description`,a);e&&s.push(e)}else if(a.includes(`"`)){let e=a.replace(/\\/g,`\\\\`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${");s.push(`description={\`${e}\`}`)}else s.push(`description="${a}"`)}t.attrs.icon&&s.push(`icon="${t.attrs.icon}"`),t.attrs.iconType&&s.push(`iconType="${t.attrs.iconType}"`);let c=Array.isArray(t.attrs.actions)?t.attrs.actions:[`copy`];s.push(`actions={[${c.map(e=>`"${e}"`).join(`, `)}]}`);let l=s.length>0?` `+s.join(` `):``;e.write(`<Prompt${l}${Tv(t.attrs)}>`),o&&(e.ensureNewLine(),e.write(o)),e.ensureNewLine(),e.write(`</Prompt>`),e.closeBlock()}function _v(e){let t=[];if(e.name){let n=Og({},`name`,e.name);n&&t.push(n)}if(e.rawValueExpr!==void 0)t.push(`value={${e.rawValueExpr}}`);else if(e.value!==void 0&&e.value!==null){let n=Og({},`value`,e.value);n&&t.push(n)}return`<Color.Item${t.length?` `+t.join(` `):``} />`}function vv(e,t){let n=t.attrs.variant,r=t.attrs.colorData??[],i=n?` variant="${n}"`:``;e.write(`<Color${i}${Tv(t.attrs)}>`),e.ensureNewLine();let a=e.delim;e.delim+=` `.repeat(e.indentSize);for(let t of r)if(t.type===`row`){let n=t.title?Og({},`title`,t.title):null;e.write(`<Color.Row${n?` ${n}`:``}>`),e.ensureNewLine();let r=e.delim;e.delim+=` `.repeat(e.indentSize);for(let n of t.items)e.write(_v(n)),e.ensureNewLine();e.delim=r,e.closed=!1,e.ensureNewLine(),e.write(`</Color.Row>`),e.ensureNewLine()}else e.write(_v(t)),e.ensureNewLine();e.delim=a,e.closed=!1,e.ensureNewLine(),e.write(`</Color>`),e.closeBlock()}function yv(e){let t=[];for(let[n,r]of Object.entries(e)){if(r===void 0)continue;let e=Og({},n,r);e&&t.push(e)}return t.length?` `+t.join(` `):``}function bv(e,t){if(t.type===`file`){let n=yv({name:t.name});e.write(`<Tree.File${n} />`),e.ensureNewLine();return}let n=yv({name:t.name,defaultOpen:t.defaultOpen,openable:t.openable});if(t.children.length===0){e.write(`<Tree.Folder${n} />`),e.ensureNewLine();return}e.write(`<Tree.Folder${n}>`),e.ensureNewLine();let r=e.delim;e.delim+=` `.repeat(e.indentSize);for(let n of t.children)bv(e,n);e.delim=r,e.closed=!1,e.ensureNewLine(),e.write(`</Tree.Folder>`),e.ensureNewLine()}function xv(e,t){let n=[Og(t.attrs,`id`,t.attrs.id),...[`view`,`sort`,`filter`,`groupBy`,`calendarBy`].map(e=>Ng(e,t.attrs[e])),typeof t.attrs.sql==`string`?Mn(t.attrs.sql):null].filter(Boolean),r=n.length>0?` ${n.join(` `)}`:``;e.write(`<Database${r}${Tv(t.attrs,Pg)} />`),e.closeBlock()}function Sv(e,t){let n=t.attrs.treeData??[],r=Tv(t.attrs);if(n.length===0){e.write(`<Tree${r} />`),e.closeBlock();return}e.write(`<Tree${r}>`),e.ensureNewLine();let i=e.delim;e.delim+=` `.repeat(e.indentSize);for(let t of n)bv(e,t);e.delim=i,e.closed=!1,e.ensureNewLine(),e.write(`</Tree>`),e.closeBlock()}function Cv(e){let t=e[zp];return Array.isArray(t)?t.map(e=>`{${e}}`):[]}function wv(e){let t=e[Vp];return!t||typeof t!=`object`?e:Object.assign(Object.assign({},e),t)}function Tv(e,t=Og){let n=e[Vp];if(!n||typeof n!=`object`)return``;let r=Object.entries(n);if(r.length===0)return``;let i=r.map(([e,r])=>t(n,e,r)).filter(Boolean);return i.length>0?` `+i.join(` `):``}var Ev=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Dv={tightLists:!0,indentSize:2,removeTrailingNewline:!0},Ov=/* @__PURE__ */ new Set([`paragraph`,`heading`,`blockquote`,`bulletList`,`orderedList`,`table`,`horizontalRule`,O.codeBlock,O.image,O.video,O.callout,O.accordion,O.accordionGroup,O.card,O.steps,O.tabs,O.codeGroup,O.columns,O.frame,O.expandable,O.paramField,O.responseField,O.requestExample,O.responseExample,O.customComponent,O.staticHTML,O.unknownTag,O.mdxJsEsm,O.blockMath,O.mermaidBlock,O.promptBlock,O.color,O.tree,O.visibility,O.database]),kv=/* @__PURE__ */ new Set([`blockquote`,`bulletList`,`orderedList`]),Av=/* @__PURE__ */ new Set([`image`,O.image]),jv=/* @__PURE__ */ new Set([`definition`,`footnoteDefinition`]);function Mv(e){let t=!1;return e.descendants(e=>{if(t)return!1;let n=e.attrs.mdxJsxNode;return n?.type&&jv.has(n.type)&&(t=!0),!t}),t}function Nv(e,t={}){return Fv(Iv(e,t,null)).mdx}function Pv(e,t,n){let r=new Kg(t);return r.delim=n,Jv(r,e,e,0),r.out.replace(/(\n[ \t]*)+$/,``)}function Fv(e){let t=e.next();for(;!t.done;)t=e.next();return t.value}function*Iv(e,t,n){let{frontmatter:r}=t,i=Ev(t,[`frontmatter`]),a=new Kg(Object.assign(Object.assign({},i),{hasReferenceDefinitions:i.hasReferenceDefinitions??Mv(e)}));if(a.sourceMap=n,r&&Object.keys(r).length>0){let e=Object.entries(lg(r));if(e.length>0){a.write(`---
63
63
  `);for(let[t,n]of e)a.write(`${xg(t,n)}
64
64
  `);a.write(`---
65
65
 
66
66
  `)}}for(let t=0;t<e.childCount;t++)Rv(a,e,t),yield t+1;let o=a.out;t.removeTrailingNewline!==!1&&o.endsWith(`
67
- `)&&(o=o.replace(/\n+$/,``));for(let e of n??[])e.end=Math.min(e.end,o.length),e.start=Math.min(e.start,e.end);return{mdx:o,sourceMap:n??[]}}function Lv(e,t,n=0){for(let r=n;r<t.childCount;r++)Rv(e,t,r,n)}function Rv(e,t,n,r=0){let i=t.child(n);if(n>r){e.ensureNewLine();let r=t.child(n-1);Gv(r,i)&&e.ensureNewLine(),zv(r,i)&&e.keptBlankLines.add(e.length)}let a=e.beginBlock(n);Jv(e,i,t,n),e.endBlock(a)}function zv(e,t){return Bv(t)?e.type.name===`paragraph`?Bv(e):Av.has(e.type.name)?o_(e):e.type.name===`table`?C_(e):kv.has(e.type.name):!1}function Bv(e){return e.type.name===`paragraph`&&e.content.size>0}function Vv(e,t){Lv(e,t,+!!Uv(t))}function Hv(e){let t=e.firstChild,n=e.maybeChild(1);return e.type.name===`listItem`&&t?.type.name===`paragraph`&&t.childCount===0&&n!==null&&n.type.name!==`paragraph`}function Uv(e){let t=e.maybeChild(1);return Hv(e)&&t!==null&&Wv(e,t)}var Wv=(e,t)=>e.attrs.checked==null||t.type.name===O.image;function Gv(e,t){return Ov.has(e.type.name)||Ov.has(t.type.name)}var Kv={renderInlineImage:(e,t)=>g_(e,t),renderIcon:(e,t)=>G_(e,t),renderBadge:(e,t)=>K_(e,t),renderTooltip:(e,t)=>q_(e,t,qv),renderUnknownTag:(e,t)=>av(e,t)};function qv(e,t){Qg(e,t,Jv,Kv)}function Jv(e,t,n,r){let i=t.type.name;switch(i){case`doc`:Lv(e,t);break;case`paragraph`:qv(e,t),e.closeBlock();break;case`heading`:{let n=t.attrs.level||1,r=t.attrs.customId;r&&e.delim?(e.write(`<h${n} id="${r}">`),e.ensureNewLine(),qv(e,t),e.ensureNewLine(),e.write(`</h${n}>`)):(e.write(`#`.repeat(n)+` `),qv(e,t),r&&e.write(` {#${r}}`)),e.closeBlock();break}case`blockquote`:b_(e,t,Jv);break;case`bulletList`:x_(e,t,!1,Vv);break;case`orderedList`:x_(e,t,!0,Vv);break;case`horizontalRule`:e.write(`---`),e.closeBlock();break;case`hardBreak`:e.write(`<br />`);break;case`text`:$g(e,t);break;case`table`:S_(e,t,qv,Jv);break;case O.codeBlock:N_(e,t,[0]);break;case`image`:case O.image:s_(e,t);break;case O.inlineImage:g_(e,t);break;case O.video:__(e,t);break;case O.callout:z_(e,t,Lv),e.closeBlock();break;case O.card:B_(e,t,`Card`,Lv,qv),e.closeBlock();break;case O.cardTitle:break;case O.cardBody:Lv(e,t);break;case O.accordion:B_(e,t,`Accordion`,Lv,qv),e.closeBlock();break;case O.accordionTitle:break;case O.accordionBody:Lv(e,t);break;case O.step:B_(e,t,`Step`,Lv,qv,[`isLast`]);break;case O.stepTitle:break;case O.stepBody:Lv(e,t);break;case O.column:case O.tab:V_(e,t,i,Lv);break;case O.columns:case O.accordionGroup:case O.steps:case O.tabs:case O.update:case O.frame:case O.expandable:case O.paramField:case O.responseField:case O.visibility:V_(e,t,i,Lv),e.closeBlock();break;case O.codeGroup:case O.requestExample:case O.responseExample:U_(e,t,i);break;case O.customComponent:W_(e,t,Lv),e.closeBlock();break;case O.icon:G_(e,t);break;case O.badge:K_(e,t);break;case O.tooltip:q_(e,t,qv);break;case O.staticHTML:case O.inlineStaticHTML:$_(e,t,Lv,qv);break;case O.unknownTag:case O.inlineUnknownTag:av(e,t);break;case O.mdxJsEsm:ov(e,t);break;case O.inlineMath:t.attrs.expression&&e.write(`$$${t.attrs.expression}$$`);break;case O.blockMath:t.attrs.expression&&(e.write(`$$`),e.ensureNewLine(),e.write(String(t.attrs.expression)),e.ensureNewLine(),e.write(`$$`),e.closeBlock());break;case O.color:vv(e,t);break;case O.tree:Sv(e,t);break;case O.database:xv(e,t);break;case O.mermaidBlock:hv(e,t);break;case O.promptBlock:gv(e,t,Lv);break;case O.promptDescription:break;case`listItem`:Vv(e,t);break;default:Lv(e,t)}}var Yv=(e,t)=>{if(e===t)return!0;if(e.type!==t.type||e.text!==t.text||!Xv(e.attrs,t.attrs)||!ny(e.marks,t.marks))return!1;let n=e.content,r=t.content;if(!n&&!r)return!0;if(!n||!r||n.length!==r.length)return!1;for(let e=0;e<n.length;e++)if(!Yv(n[e],r[e]))return!1;return!0},Xv=(e,t)=>{if(e===t||!e&&!t)return!0;if(!e||!t)return!1;let n=Object.keys(e).filter(e=>!kt.has(e)),r=Object.keys(t).filter(e=>!kt.has(e));if(n.length!==r.length)return!1;for(let r of n)if(!(r===`mdxJsxNode`&&`tagName`in e&&Qv(e[r],t[r]))&&ty(r,e[r])!==ty(r,t[r]))return!1;return!0},Zv=e=>a(e)&&!!e.name&&Tt.has(e.name),Qv=(e,t)=>e===null&&Zv(t)||t===null&&Zv(e),$v=e=>typeof e==`object`&&!!e&&`start`in e&&`end`in e,ey=e=>typeof e==`object`&&!!e&&`start`in e&&`end`in e,ty=(e,t)=>At.has(e)?JSON.stringify(t,function(e,t){if(!(e===`position`&&$v(t))&&!(e===`loc`&&ey(t))&&(e!==`start`&&e!==`end`||typeof t!=`number`||typeof this.start!=`number`||typeof this.end!=`number`)&&!(e===`range`&&Array.isArray(t)))return t}):JSON.stringify(t),ny=(e,t)=>{if(e===t||!e&&!t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.type!==i.type||!Xv(r.attrs,i.attrs))return!1}return!0},ry=(e,t)=>{if(e.text!=null)return e.text.length;let n=t.nodes[e.type];if(!n)return 1;if(!e.content||e.content.length===0)return n.spec.content&&n.spec.content.length>0?2:1;let r=2;for(let n of e.content)r+=ry(n,t);return r},iy=e=>e.text==null?e.content?e.content.map(iy).join(``):``:e.text,ay=(e,t)=>{if(e===t||e.length===0&&t.length===0)return 1;if(e.length===0||t.length===0)return 0;let n=Math.min(e.length,t.length),r=Math.max(e.length,t.length),i=0;for(;i<n&&e[i]===t[i];)i++;let a=i/r,o=new Set(e.toLowerCase().split(/\s+/)),s=new Set(t.toLowerCase().split(/\s+/)),c=0;for(let e of o)s.has(e)&&c++;let l=(/* @__PURE__ */ new Set([...o,...s])).size,u=l>0?c/l:0;return Math.max(a,u)},oy=(e,t,n)=>{if(e.type!==t.type)return!1;if(e.text!=null)return!0;let r=e.type?n.nodes[e.type]:void 0;if(r?.isLeaf)return!0;if(r?.isTextblock){let n=iy(e),r=iy(t);if(n.length===0||r.length===0)return!0;let i=e.type===`heading`&&e.attrs?.level===t.attrs?.level?.15:.3;return ay(n,r)>i}let i=iy(e),a=iy(t);return i.length===0||a.length===0||ay(i,a)>.15},sy=(e,t)=>t.nodes[e]?.isTextblock??!1,cy=(e,t)=>t.nodes[e]?.isLeaf??!1,ly=(e,t)=>t.nodes[e]?.spec.code??!1,uy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},dy=/^\s*<h[1-6] id="/,fy=/^\s*<\/h[1-6]>$/,py=25e6,my=/^([-*+]|(\d+)([.)]))[ \t]+/,hy=/* @__PURE__ */ new Set([O.card,O.accordion,O.step]),gy=/* @__PURE__ */ new Set([`bulletList`,`orderedList`]),_y=/* @__PURE__ */ new Set([O.callout,O.card,O.accordion,O.accordionGroup,O.step,O.steps,O.tab,O.tabs,O.column,O.columns,O.update,O.frame,O.expandable,O.paramField,O.responseField,O.visibility,O.customComponent,O.codeGroup,O.requestExample,O.responseExample]);function vy(e,t){let{source:n,parseOptions:r,onFallback:i,frontmatter:a}=t,o=uy(t,[`source`,`parseOptions`,`onFallback`,`frontmatter`]),s=Object.assign(Object.assign({},o),{frontmatter:a}),c=(t,n,r)=>(i?.(t,n,r),Nv(e,s));try{let t=xy.create(e,n,r??{},o);if(!t)return c(`unmappable`);let i=t.run(a);return i===null?c(`alignment`):t.roundTrips(i)?i:c(`roundtrip`,i)}catch(e){return c(`error`,void 0,e)}}var yy=class e{constructor(e,t,n){this.source=e,this.lineMap=n,this.lineStarts=Ry(e),this.origLines=e.split(`
67
+ `)&&(o=o.replace(/\n+$/,``));for(let e of n??[])e.end=Math.min(e.end,o.length),e.start=Math.min(e.start,e.end);return{mdx:o,sourceMap:n??[]}}function Lv(e,t,n=0){for(let r=n;r<t.childCount;r++)Rv(e,t,r,n)}function Rv(e,t,n,r=0){let i=t.child(n);if(n>r){e.ensureNewLine();let r=t.child(n-1);Gv(r,i)&&e.ensureNewLine(),zv(r,i)&&e.keptBlankLines.add(e.length)}let a=e.beginBlock(n);Jv(e,i,t,n),e.endBlock(a)}function zv(e,t){return Bv(t)?e.type.name===`paragraph`?Bv(e):Av.has(e.type.name)?o_(e):e.type.name===`table`?C_(e):kv.has(e.type.name):!1}function Bv(e){return e.type.name===`paragraph`&&e.content.size>0}function Vv(e,t){Lv(e,t,+!!Uv(t))}function Hv(e){let t=e.firstChild,n=e.maybeChild(1);return e.type.name===`listItem`&&t?.type.name===`paragraph`&&t.childCount===0&&n!==null&&n.type.name!==`paragraph`}function Uv(e){let t=e.maybeChild(1);return Hv(e)&&t!==null&&Wv(e,t)}var Wv=(e,t)=>e.attrs.checked==null||t.type.name===O.image;function Gv(e,t){return Ov.has(e.type.name)||Ov.has(t.type.name)}var Kv={renderInlineImage:(e,t)=>g_(e,t),renderIcon:(e,t)=>G_(e,t),renderBadge:(e,t)=>K_(e,t),renderTooltip:(e,t)=>q_(e,t,qv),renderUnknownTag:(e,t)=>av(e,t)};function qv(e,t){Qg(e,t,Jv,Kv)}function Jv(e,t,n,r){let i=t.type.name;switch(i){case`doc`:Lv(e,t);break;case`paragraph`:qv(e,t),e.closeBlock();break;case`heading`:{let n=t.attrs.level||1,r=t.attrs.customId;r&&e.delim?(e.write(`<h${n} id="${r}">`),e.ensureNewLine(),qv(e,t),e.ensureNewLine(),e.write(`</h${n}>`)):(e.write(`#`.repeat(n)+` `),qv(e,t),r&&e.write(` {#${r}}`)),e.closeBlock();break}case`blockquote`:b_(e,t,Jv);break;case`bulletList`:x_(e,t,!1,Vv);break;case`orderedList`:x_(e,t,!0,Vv);break;case`horizontalRule`:e.write(`---`),e.closeBlock();break;case`hardBreak`:e.write(`<br />`);break;case`text`:$g(e,t);break;case`table`:S_(e,t,qv,Jv);break;case O.codeBlock:N_(e,t,[0]);break;case`image`:case O.image:s_(e,t);break;case O.inlineImage:g_(e,t);break;case O.video:__(e,t);break;case O.callout:z_(e,t,Lv),e.closeBlock();break;case O.card:B_(e,t,`Card`,Lv,qv),e.closeBlock();break;case O.cardTitle:break;case O.cardBody:Lv(e,t);break;case O.accordion:B_(e,t,`Accordion`,Lv,qv),e.closeBlock();break;case O.accordionTitle:break;case O.accordionBody:Lv(e,t);break;case O.step:B_(e,t,`Step`,Lv,qv,[`isLast`]);break;case O.stepTitle:break;case O.stepBody:Lv(e,t);break;case O.column:case O.tab:V_(e,t,i,Lv);break;case O.columns:case O.accordionGroup:case O.steps:case O.tabs:case O.update:case O.frame:case O.expandable:case O.paramField:case O.responseField:case O.visibility:V_(e,t,i,Lv),e.closeBlock();break;case O.codeGroup:case O.requestExample:case O.responseExample:U_(e,t,i);break;case O.customComponent:W_(e,t,Lv),e.closeBlock();break;case O.icon:G_(e,t);break;case O.badge:K_(e,t);break;case O.tooltip:q_(e,t,qv);break;case O.staticHTML:case O.inlineStaticHTML:$_(e,t,Lv,qv);break;case O.unknownTag:case O.inlineUnknownTag:av(e,t);break;case O.mdxJsEsm:ov(e,t);break;case O.inlineMath:t.attrs.expression&&e.write(`$$${t.attrs.expression}$$`);break;case O.blockMath:t.attrs.expression&&(e.write(`$$`),e.ensureNewLine(),e.write(String(t.attrs.expression)),e.ensureNewLine(),e.write(`$$`),e.closeBlock());break;case O.color:vv(e,t);break;case O.tree:Sv(e,t);break;case O.database:xv(e,t);break;case O.mermaidBlock:hv(e,t);break;case O.promptBlock:gv(e,t,Lv);break;case O.promptDescription:break;case`listItem`:Vv(e,t);break;default:Lv(e,t)}}var Yv=(e,t)=>{if(e===t)return!0;if(e.type!==t.type||e.text!==t.text||!Xv(e.attrs,t.attrs)||!ny(e.marks,t.marks))return!1;let n=e.content,r=t.content;if(!n&&!r)return!0;if(!n||!r||n.length!==r.length)return!1;for(let e=0;e<n.length;e++)if(!Yv(n[e],r[e]))return!1;return!0},Xv=(e,t)=>{if(e===t||!e&&!t)return!0;if(!e||!t)return!1;let n=Object.keys(e).filter(e=>!kt.has(e)),r=Object.keys(t).filter(e=>!kt.has(e));if(n.length!==r.length)return!1;for(let r of n)if(!(r===`mdxJsxNode`&&`tagName`in e&&Qv(e[r],t[r]))&&ty(r,e[r])!==ty(r,t[r]))return!1;return!0},Zv=e=>p(e)&&!!e.name&&Tt.has(e.name),Qv=(e,t)=>e===null&&Zv(t)||t===null&&Zv(e),$v=e=>typeof e==`object`&&!!e&&`start`in e&&`end`in e,ey=e=>typeof e==`object`&&!!e&&`start`in e&&`end`in e,ty=(e,t)=>At.has(e)?JSON.stringify(t,function(e,t){if(!(e===`position`&&$v(t))&&!(e===`loc`&&ey(t))&&(e!==`start`&&e!==`end`||typeof t!=`number`||typeof this.start!=`number`||typeof this.end!=`number`)&&!(e===`range`&&Array.isArray(t)))return t}):JSON.stringify(t),ny=(e,t)=>{if(e===t||!e&&!t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.type!==i.type||!Xv(r.attrs,i.attrs))return!1}return!0},ry=(e,t)=>{if(e.text!=null)return e.text.length;let n=t.nodes[e.type];if(!n)return 1;if(!e.content||e.content.length===0)return n.spec.content&&n.spec.content.length>0?2:1;let r=2;for(let n of e.content)r+=ry(n,t);return r},iy=e=>e.text==null?e.content?e.content.map(iy).join(``):``:e.text,ay=(e,t)=>{if(e===t||e.length===0&&t.length===0)return 1;if(e.length===0||t.length===0)return 0;let n=Math.min(e.length,t.length),r=Math.max(e.length,t.length),i=0;for(;i<n&&e[i]===t[i];)i++;let a=i/r,o=new Set(e.toLowerCase().split(/\s+/)),s=new Set(t.toLowerCase().split(/\s+/)),c=0;for(let e of o)s.has(e)&&c++;let l=(/* @__PURE__ */ new Set([...o,...s])).size,u=l>0?c/l:0;return Math.max(a,u)},oy=(e,t,n)=>{if(e.type!==t.type)return!1;if(e.text!=null)return!0;let r=e.type?n.nodes[e.type]:void 0;if(r?.isLeaf)return!0;if(r?.isTextblock){let n=iy(e),r=iy(t);if(n.length===0||r.length===0)return!0;let i=e.type===`heading`&&e.attrs?.level===t.attrs?.level?.15:.3;return ay(n,r)>i}let i=iy(e),a=iy(t);return i.length===0||a.length===0||ay(i,a)>.15},sy=(e,t)=>t.nodes[e]?.isTextblock??!1,cy=(e,t)=>t.nodes[e]?.isLeaf??!1,ly=(e,t)=>t.nodes[e]?.spec.code??!1,uy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},dy=/^\s*<h[1-6] id="/,fy=/^\s*<\/h[1-6]>$/,py=25e6,my=/^([-*+]|(\d+)([.)]))[ \t]+/,hy=/* @__PURE__ */ new Set([O.card,O.accordion,O.step]),gy=/* @__PURE__ */ new Set([`bulletList`,`orderedList`]),_y=/* @__PURE__ */ new Set([O.callout,O.card,O.accordion,O.accordionGroup,O.step,O.steps,O.tab,O.tabs,O.column,O.columns,O.update,O.frame,O.expandable,O.paramField,O.responseField,O.visibility,O.customComponent,O.codeGroup,O.requestExample,O.responseExample]);function vy(e,t){let{source:n,parseOptions:r,onFallback:i,frontmatter:a}=t,o=uy(t,[`source`,`parseOptions`,`onFallback`,`frontmatter`]),s=Object.assign(Object.assign({},o),{frontmatter:a}),c=(t,n,r)=>(i?.(t,n,r),Nv(e,s));try{let t=xy.create(e,n,r??{},o);if(!t)return c(`unmappable`);let i=t.run(a);return i===null?c(`alignment`):t.roundTrips(i)?i:c(`roundtrip`,i)}catch(e){return c(`error`,void 0,e)}}var yy=class e{constructor(e,t,n){this.source=e,this.lineMap=n,this.lineStarts=Ry(e),this.origLines=e.split(`
68
68
  `),this.preLines=t.split(`
69
69
  `)}static create(t,n,r){let i=zy(n,r);return i?new e(t,r,i):null}lineStart(e){return this.source.lastIndexOf(`
70
70
  `,e-1)+1}lineEnd(e){return e+1<this.lineStarts.length?this.lineStarts[e+1]-1:this.source.length}exact(e,t){return this.preLines[e]===this.origLines[t]}span(e){let t=e.position;if(!t)return null;let n=this.lineMap[t.start.line-1],r=this.lineMap[t.end.line-1];if(n===void 0||r===void 0)return null;let i=this.exact(t.start.line-1,n)?this.lineStarts[n]+t.start.column-1:this.lineStarts[n],a=this.exact(t.end.line-1,r)?this.lineStarts[r]+t.end.column-1:this.lineEnd(r);return i>a||a>this.source.length?null:{start:i,end:a}}},by=class{constructor(e,t,n){this.source=e,this.src=t,this.frame=n,this.out=``,this.first=!0,this.prevSrc=null,this.prevType=null}sep(e,t,n){let{frame:r}=this;if(this.first){this.out+=r.open,n&&r.kind===`jsx`&&!/\n[ \t]*$/.test(r.open)&&(this.out+=`
@@ -95,8 +95,8 @@ ${r}`}parseInContext(e,t,n,r){return this.parseText(e,this.source.slice(t,n),t,r
95
95
  `).slice(0,2).join(`
96
96
  ${d}`)}let g=null;for(let t=1;t<s.length;t++){let n=l.get(t);n!==void 0&&t===1&&n===1?h+=this.source.slice(m,i[1].start):n!==void 0&&g!==null&&n===g+1?h+=this.source.slice(i[g].end,i[n].start):h+=`
97
97
  ${d}`,n===void 0?(h+=Ly(e.type.create(null,[s[t]]),this.ser).split(`
98
- `)[0],g=null):(h+=this.source.slice(i[n].start,i[n].end),g=n)}return i.length>=2&&g===i.length-1&&(h+=this.source.slice(i[g].end,t.end)),h}shellKey(e){let t=e.type.name;return`${t}|${gy.has(t)||t===`listItem`?JSON.stringify(e.attrs):``}|${Ly(this.hollow(e),this.ser)}`}hollow(e){let t=e.type.name;if(hy.has(t)&&e.childCount>=2)return e.copy(ye.from([e.child(0),e.child(1).copy(ye.from(this.emptyParagraph))]));if(gy.has(t)){let t=this.schema.nodes.listItem.create(null,this.emptyParagraph);return e.copy(ye.from(t))}return e.copy(ye.from(this.emptyParagraph))}};function Sy(e){let t=[];return e.forEach(e=>t.push(e)),t}function Cy(e){if(hy.has(e.type.name))return e.childCount>=2?Sy(e.child(1)):[];let t=Sy(e);return Hv(e)?t.slice(1):t}function wy(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function Ty(e){return new Map(Object.entries(lg(e)).map(([e,t])=>[e,xg(e,t)]))}function Ey(e,t){let n=Ty(e),r=Ty(t);for(let[e,t]of n)if(r.get(e)!==t)return{kind:`rewrite`};let i=[...r].filter(([e])=>!n.has(e)).map(([,e])=>e);return i.length===0?{kind:`same`}:{kind:`append`,lines:i.join(`
99
- `)}}function Dy(e,t){let n=/(\r?\n)---[ \t]*$/.exec(e);if(!n)return null;let r=n[1];return`${e.slice(0,n.index)}${r}${t.replace(/\n/g,r)}${e.slice(n.index)}`}function Oy(e,t,n){let r=Dy(e,t);if(r===null||n===void 0)return null;let i=/^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*$/.exec(r)?.[1];if(i===void 0)return null;let a;try{a=(0,ae.parse)(i)}catch{return null}if(!a||typeof a!=`object`||Array.isArray(a))return null;let o=Ty(a),s=Ty(n);if(o.size!==s.size)return null;for(let[e,t]of s)if(o.get(e)!==t)return null;return r}function ky(e,t,n){n.forEach((r,i)=>{if(r===null)return;let a=e[i].nodes;(!a||a.some((e,n)=>!Ay(e,t[r+n])))&&(n[i]=null)})}function Ay(e,t){return e.eq(t)||Yv(e.toJSON(),t.toJSON())}function jy(e){if(e.type!==`paragraph`)return[e];let t=e.children.filter(e=>e.type!==`text`||e.value.trim()!==``);return t.length>0&&t.every(e=>e.type===`mdxJsxTextElement`&&jm(e.name))?t:[e]}var My=/* @__PURE__ */ new Set([`emphasis`,`strong`,`delete`,`link`]),Ny=/* @__PURE__ */ new Set([`u`,`sub`,`sup`]);function Py(e){let t=[];for(let n of e)My.has(n.type)&&`children`in n||n.type===`mdxJsxTextElement`&&n.name!==null&&Ny.has(n.name)?t.push(...Py(n.children)):t.push(n);return t}var Fy=/[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]/;function Iy(e,t,n,r){let i=[],a=t;for(let t=0;t<r.length;t++){if(i.push(a),a>=n)return null;let o=/^[ \t]*\n[ \t\n]*/.exec(e.slice(a,n));if(o){if(r[t]!==` `)return null;a+=o[0].length}else{if(e[a]===`\\`&&a+1<n&&Fy.test(e[a+1])&&a++,e[a]!==r[t])return null;a++}}return i.push(a),/^[ \t]*$/.test(e.slice(a,n))?i:null}function Ly(e,t){try{return Nv(e.type.schema.topNodeType.create(null,[e]),Object.assign(Object.assign({},t),{removeTrailingNewline:!0}))}catch{return JSON.stringify(e.toJSON())}}function Ry(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
98
+ `)[0],g=null):(h+=this.source.slice(i[n].start,i[n].end),g=n)}return i.length>=2&&g===i.length-1&&(h+=this.source.slice(i[g].end,t.end)),h}shellKey(e){let t=e.type.name;return`${t}|${gy.has(t)||t===`listItem`?JSON.stringify(e.attrs):``}|${Ly(this.hollow(e),this.ser)}`}hollow(e){let t=e.type.name;if(hy.has(t)&&e.childCount>=2)return e.copy(ve.from([e.child(0),e.child(1).copy(ve.from(this.emptyParagraph))]));if(gy.has(t)){let t=this.schema.nodes.listItem.create(null,this.emptyParagraph);return e.copy(ve.from(t))}return e.copy(ve.from(this.emptyParagraph))}};function Sy(e){let t=[];return e.forEach(e=>t.push(e)),t}function Cy(e){if(hy.has(e.type.name))return e.childCount>=2?Sy(e.child(1)):[];let t=Sy(e);return Hv(e)?t.slice(1):t}function wy(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function Ty(e){return new Map(Object.entries(lg(e)).map(([e,t])=>[e,xg(e,t)]))}function Ey(e,t){let n=Ty(e),r=Ty(t);for(let[e,t]of n)if(r.get(e)!==t)return{kind:`rewrite`};let i=[...r].filter(([e])=>!n.has(e)).map(([,e])=>e);return i.length===0?{kind:`same`}:{kind:`append`,lines:i.join(`
99
+ `)}}function Dy(e,t){let n=/(\r?\n)---[ \t]*$/.exec(e);if(!n)return null;let r=n[1];return`${e.slice(0,n.index)}${r}${t.replace(/\n/g,r)}${e.slice(n.index)}`}function Oy(e,t,n){let r=Dy(e,t);if(r===null||n===void 0)return null;let i=/^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*$/.exec(r)?.[1];if(i===void 0)return null;let a;try{a=(0,ie.parse)(i)}catch{return null}if(!a||typeof a!=`object`||Array.isArray(a))return null;let o=Ty(a),s=Ty(n);if(o.size!==s.size)return null;for(let[e,t]of s)if(o.get(e)!==t)return null;return r}function ky(e,t,n){n.forEach((r,i)=>{if(r===null)return;let a=e[i].nodes;(!a||a.some((e,n)=>!Ay(e,t[r+n])))&&(n[i]=null)})}function Ay(e,t){return e.eq(t)||Yv(e.toJSON(),t.toJSON())}function jy(e){if(e.type!==`paragraph`)return[e];let t=e.children.filter(e=>e.type!==`text`||e.value.trim()!==``);return t.length>0&&t.every(e=>e.type===`mdxJsxTextElement`&&jm(e.name))?t:[e]}var My=/* @__PURE__ */ new Set([`emphasis`,`strong`,`delete`,`link`]),Ny=/* @__PURE__ */ new Set([`u`,`sub`,`sup`]);function Py(e){let t=[];for(let n of e)My.has(n.type)&&`children`in n||n.type===`mdxJsxTextElement`&&n.name!==null&&Ny.has(n.name)?t.push(...Py(n.children)):t.push(n);return t}var Fy=/[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]/;function Iy(e,t,n,r){let i=[],a=t;for(let t=0;t<r.length;t++){if(i.push(a),a>=n)return null;let o=/^[ \t]*\n[ \t\n]*/.exec(e.slice(a,n));if(o){if(r[t]!==` `)return null;a+=o[0].length}else{if(e[a]===`\\`&&a+1<n&&Fy.test(e[a+1])&&a++,e[a]!==r[t])return null;a++}}return i.push(a),/^[ \t]*$/.test(e.slice(a,n))?i:null}function Ly(e,t){try{return Nv(e.type.schema.topNodeType.create(null,[e]),Object.assign(Object.assign({},t),{removeTrailingNewline:!0}))}catch{return JSON.stringify(e.toJSON())}}function Ry(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
100
100
  `&&t.push(n+1);return t}function zy(e,t){let n=e.split(`
101
101
  `),r=t.split(`
102
- `),i=[],a=0;for(let e=0;e<r.length;)if(r[e]===n[a])i.push(a),a++,e++;else if(dy.test(r[e]??``)&&fy.test(r[e+2]??``))i.push(a,a,a),a++,e+=3;else return null;return a===n.length?i:null}function By(e,t){let n=[];e.forEach((e,t)=>{e.keys&&e.keys.length>0&&n.push(t)});let r=n.length,i=t.length;if((r+1)*(i+1)>py)return null;let a=(e,n)=>{if(n+e.length>i)return!1;for(let r=0;r<e.length;r++)if(t[n+r]!==e[r])return!1;return!0},o=Array.from({length:r+1},()=>new Int32Array(i+1));for(let t=r-1;t>=0;t--){let r=e[n[t]].keys,s=o[t],c=o[t+1];for(let e=i-1;e>=0;e--){let t=Math.max(c[e],s[e+1]);a(r,e)&&(t=Math.max(t,r.length+c[e+r.length])),s[e]=t}}let s=e.map(()=>null),c=0,l=0;for(;c<r&&l<i;){let t=e[n[c]].keys;a(t,l)&&o[c][l]===t.length+o[c+1][l+t.length]?(s[n[c]]=l,c++,l+=t.length):o[c][l]===o[c+1][l]?c++:l++}return s}function Vy(e,t){throw Error(`pmJsonToMdast is not yet implemented — use pmToMdx instead for direct MDX output`)}function Hy(e){let t=g().use(re).use(ne).use(i).use(m).stringify(e);return typeof t==`string`?t:String(t)}var Uy=(e,t,n)=>Yv(e,t)?[]:Jy(Wy(e.content??[],t.content??[],0,n)),Wy=(e,t,n,r)=>{let i=0,a=Math.min(e.length,t.length);for(;i<a&&Yv(e[i],t[i]);)i++;if(i===e.length&&i===t.length)return[];let o=0;for(;o<a-i&&Yv(e[e.length-1-o],t[t.length-1-o]);)o++;let s=e.slice(i,e.length-o),c=t.slice(i,t.length-o),l=0;for(let t=0;t<i;t++)l+=ry(e[t],r);let u=n+l;if(s.length===0&&c.length===0)return[];if(s.length===0)return[{from:u,to:u,insert:c}];if(c.length===0){let e=0;for(let t of s)e+=ry(t,r);return[{from:u,to:u+e,insert:[]}]}return Gy(qy(s,c,r),s,c,u,r)},Gy=(e,t,n,r,i)=>{let a=[],o=[],s=0;for(let e of t)o.push(s),s+=ry(e,i);let c=0;for(;c<e.length;){let s=e[c];if(s.type===`matched`){let e=t[s.oldIdx],l=n[s.newIdx];if(Yv(e,l)){c++;continue}let u=r+o[s.oldIdx],d=Ky(e,l,u,i);if(d)a.push(...d);else{let t=ry(e,i);a.push({from:u,to:u+t,insert:[l]})}c++;continue}let l=c,u=[],d=[];for(;c<e.length&&e[c].type!==`matched`;){let t=e[c];t.type===`deleted`?u.push(t.oldIdx):t.type===`inserted`&&d.push(n[t.newIdx]),c++}if(u.length===0&&d.length===0)continue;let f,p;if(u.length>0){let e=u[0],n=u[u.length-1];f=r+o[e],p=r+o[n]+ry(t[n],i)}else{let n=l>0?e[l-1]:void 0;f=n?.type===`matched`?r+o[n.oldIdx]+ry(t[n.oldIdx],i):r,p=f}a.push({from:f,to:p,insert:d})}return a.sort((e,t)=>t.from-e.from),a},Ky=(e,t,n,r)=>{if(e.type!==t.type||cy(e.type,r)||sy(e.type,r))return null;let i=e.content??[],a=t.content??[];if(!Xv(e.attrs,t.attrs))return null;let o=Wy(i,a,n+1,r);return o.length===0?null:o},qy=(e,t,n)=>{let r=e.length,i=t.length,a=Array.from({length:r+1},()=>Array(i+1).fill(0)),o=(e,t)=>a[e]?.[t]??0;for(let s=1;s<=r;s++){let r=a[s];for(let a=1;a<=i;a++)oy(e[s-1],t[a-1],n)?r[a]=o(s-1,a-1)+1:r[a]=Math.max(o(s-1,a),o(s,a-1))}let s=[],c=r,l=i;for(;c>0||l>0;)c>0&&l>0&&oy(e[c-1],t[l-1],n)&&o(c,l-1)<o(c,l)?(s.push({type:`matched`,oldIdx:c-1,newIdx:l-1}),c--,l--):l>0&&(c===0||o(c,l-1)>=o(c-1,l))?(s.push({type:`inserted`,newIdx:l-1}),l--):(s.push({type:`deleted`,oldIdx:c-1}),c--);return s.reverse(),s},Jy=e=>{if(e.length<=1)return e;e.sort((e,t)=>e.from-t.from);let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n];r.to===i.from?t[t.length-1]={from:r.from,to:i.to,insert:[...r.insert,...i.insert]}:t.push(i)}return t.sort((e,t)=>t.from-e.from),t};function Yy(e){return Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0,marks:e.marks?.map(e=>Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0})),content:e.content?.map(e=>Yy(e))})}function Xy(e){return Object.assign({type:e.type,attrs:e.attrs?Object.assign({},e.attrs):void 0,marks:e.marks?.map(e=>Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0}))},e.text==null?{}:{text:e.text})}function Zy(e,t){return ay(iy(e),iy(t))}function Qy(e,t,n){if(Yv(e,t))return 1e4;if(!oy(e,t,n))return-1/0;let r=100;return Xv(e.attrs,t.attrs)&&(r+=25),r+=Zy(e,t),r}function $y(e,t,n,r){let i=null,a=-1/0;for(let o=n;o<t.length;o+=1){let s=t[o];if(!s)continue;let c=Qy(e,s,r);if(!Number.isFinite(c))continue;let l=c-(o-n)*.1;if(l>a&&(a=l,i=o),c>=1e4)break}return i}function eb(e,t,n){return{node:Yy(e),annotations:[Object.assign({path:[],type:t},n?{hunk:n}:{})]}}function tb(e,t,n){return{baseNode:e?Yy(e):null,localNode:t?Yy(t):null,remoteNode:n?Yy(n):null}}function nb(e){return e.reduce((e,t)=>({appliedCount:e.appliedCount+ +(t.type===`applied`),conflictCount:e.conflictCount+ +(t.type===`conflict`)}),{appliedCount:0,conflictCount:0})}function rb(e,t){return e.map(e=>Object.assign({path:[t,...e.path],type:e.type},e.hunk?{hunk:e.hunk}:{}))}function ib(e,t,n){let r=t.content?.map(e=>Yy(e))??[],i=n.content?.map(e=>Yy(e))??[],a=iy(t),o=iy(n);if(a.length>0&&o.length>0){if(o.length>a.length&&o.includes(a))return{node:Object.assign(Object.assign({},Xy(n)),{content:i}),annotations:[{path:[],type:`applied`}]};if(a.length>o.length&&a.includes(o))return{node:Object.assign(Object.assign({},Xy(t)),{content:r}),annotations:[]}}let s=r.length>0&&i.length>0&&iy(t).length>0&&iy(n).length>0?[...r,{type:`text`,text:` `},...i]:[...r,...i];return{node:Object.assign(Object.assign({},Xy(t)),{content:s}),annotations:[{path:[],type:`conflict`,hunk:tb(e,t,n)}]}}function ab(e,t,n,r){if(!t&&!n)return[];if(!t)return!n||Yv(e,n)?[]:[eb(n,`conflict`,tb(e,null,n))];if(!n)return Yv(e,t)?[]:[eb(t,`conflict`,tb(e,t,null))];let i=!Yv(e,t),a=!Yv(e,n);if(!i&&!a)return[{node:Yy(t),annotations:[]}];if(!i&&a)return[eb(n,`applied`)];if(i&&!a||Yv(t,n))return[{node:Yy(t),annotations:[]}];if(t.type===n.type&&t.type===e.type&&Xv(t.attrs,n.attrs)&&Xv(e.attrs,t.attrs)){if(sy(t.type,r)&&!ly(t.type,r))return[ib(e,t,n)];if(!cy(t.type,r)&&!ly(t.type,r)&&t.content&&n.content&&e.content){let i=fb(e.content,t.content,n.content,r);return[{node:Object.assign(Object.assign({},Xy(t)),{content:i.nodes}),annotations:i.annotations.map(e=>Object.assign({path:e.path,type:e.type},e.hunk?{hunk:e.hunk}:{}))}]}}return[{node:Yy(t),annotations:[]},eb(n,`conflict`,tb(e,t,n))]}function ob(e,t,n){let r=[],i=0;for(let a of e){let e=$y(a,t,i,n);r.push(e),e!=null&&(i=e+1)}return r}function sb(e,t){return Array.from({length:e},()=>Array(t).fill(0))}function cb(e,t,n){let r=n.get(e);if(r!==void 0)return r;let i;try{i=Nv(t.nodeFromJSON({type:`doc`,content:[e]}))}catch{i=JSON.stringify(e)}return n.set(e,i),i}function lb(e,t,n,r){return Yv(e,t)?!0:cb(e,n,r)===cb(t,n,r)}function ub(e,t,n,r){let i=sb(e.length+1,t.length+1);for(let a=e.length-1;a>=0;--a){let o=e[a],s=i[a],c=i[a+1];for(let e=t.length-1;e>=0;--e){let i=t[e],a=c[e],l=s[e+1];if(lb(o,i,n,r)){let t=c[e+1]+1;s[e]=t}else s[e]=Math.max(a,l)}}return i}function db(e,t,n){return(e[t+1]?.[n]??0)>=(e[t]?.[n+1]??0)}function fb(e,t,n,r){let i=[],a=[],o=/* @__PURE__ */ new Map,s=ob(e,t,r),c=ob(e,n,r),l=e=>{let t=i.length;i.push(e.node),a.push(...rb(e.annotations,t))},u=(e,n)=>{for(let r=e;r<n;r+=1){let e=t[r];e&&l({node:Yy(e),annotations:[]})}},d=(e,t,r)=>{for(let i=e;i<t;i+=1){let e=n[i];e&&l(eb(e,r))}},f=(e,i,a,s)=>{let c=t.slice(e,i),f=n.slice(a,s);if(c.length===0){d(a,s,`applied`);return}if(f.length===0){u(e,i);return}let p=ub(c,f,r,o),m=0,h=0;for(;m<c.length&&h<f.length;){let e=c[m],t=f[h];e&&t&&lb(e,t,r,o)?(l({node:Yy(e),annotations:[]}),m+=1,h+=1):db(p,m,h)?(l({node:Yy(e),annotations:[]}),m+=1):(l(eb(t,`applied`)),h+=1)}u(e+m,i),d(a+h,s,`applied`)},p=0,m=0;for(let i=0;i<e.length;i+=1){let a=e[i],o=s[i]??null,u=c[i]??null;f(p,o??p,m,u??m);let d=o==null?void 0:t[o],h=u==null?void 0:n[u];for(let e of ab(a,d,h,r))l(e);o!=null&&(p=o+1),u!=null&&(m=u+1)}return f(p,t.length,m,n.length),{nodes:i,annotations:a}}function pb(e){let{baseDoc:t,localDoc:n,remoteDoc:r,schema:i}=e,a=fb(t.content??[],n.content??[],r.content??[],i),o=!Xv(t.attrs,n.attrs),s=!Xv(t.attrs,r.attrs),c=Object.assign(Object.assign({},Xy(!o&&s?r:n)),{content:a.nodes}),l=[],u=a.annotations.map(e=>(e.type===`conflict`&&e.hunk&&l.push(Object.assign({path:e.path},e.hunk)),{path:e.path,type:e.type}));return{mergedDoc:c,annotations:u,conflicts:l,summary:nb(u)}}export{O as BLOCK_TYPES,wt as CALLOUT_TYPES,Ot as COMMENT_THREAD_IDS_ATTR,k as DEFAULT_CODE_BLOCK_LANGUAGE,Sn as DEFAULT_DATABASE_VIEW,Ft as DEFAULT_MERMAID_PLACEMENT,Et as EDITOR_COMPONENT_NAMES,mg as FRONTMATTER_ATTRIBUTES_WITH_ARRAY_VALUES,pg as FRONTMATTER_ATTRIBUTES_WITH_BOOLEAN_VALUES,jt as HIDDEN_NODE_ATTRS,Tt as HTML_ELEMENTS,Pt as IMAGE_ALIGN_CLASSES,Xv as attrsEqual,Dv as canonicalPmToMdxOptions,xn as createSchema,Yv as deepEqual,Uy as diffDocs,hh as extractDiffMarkers,Un as extractFrontmatter,iy as extractText,lg as filterFrontmatterRecord,Vn as findRedundantStaticHtmlSources,xg as formatFrontmatterValue,_h as formatLineRanges,vh as getDiffMarkerComment,$p as getImageAlignFromClassName,em as getImageWidthFromStyle,wn as isDatabaseId,Tn as isDatabaseView,Sg as isJSXContent,cg as isNonEmptyFrontmatterValue,sg as mdToPm,Hy as mdastToMdx,Ah as mdastToPm,Rp as mdxToMdast,Rh as mdxToPm,pb as mergeRemoteIntoLiveDoc,bn as mintlifySchema,ry as nodeSize,oy as nodesMatch,Ln as parseCommentThreadIds,Kp as parseExpressionAttribute,Hn as parseFrontmatterYaml,gh as parseLineRanges,$ as parseMdxAttributes,mh as parseMetaString,Vy as pmJsonToMdast,Nv as pmToMdx,vy as pmToMdxPreservingSource,Fn as readDatabaseSql,En as resolveDatabaseView,hg as safeJsonParse,Jp as sanitizeDomAttrs,Rn as serializeCommentThreadIds,Mn as serializeDatabaseSql,Tg as serializePropValue,Uv as startsWithPlaceholderParagraph,_g as storedValueToTyped,ay as textSimilarity};
102
+ `),i=[],a=0;for(let e=0;e<r.length;)if(r[e]===n[a])i.push(a),a++,e++;else if(dy.test(r[e]??``)&&fy.test(r[e+2]??``))i.push(a,a,a),a++,e+=3;else return null;return a===n.length?i:null}function By(e,t){let n=[];e.forEach((e,t)=>{e.keys&&e.keys.length>0&&n.push(t)});let r=n.length,i=t.length;if((r+1)*(i+1)>py)return null;let a=(e,n)=>{if(n+e.length>i)return!1;for(let r=0;r<e.length;r++)if(t[n+r]!==e[r])return!1;return!0},o=Array.from({length:r+1},()=>new Int32Array(i+1));for(let t=r-1;t>=0;t--){let r=e[n[t]].keys,s=o[t],c=o[t+1];for(let e=i-1;e>=0;e--){let t=Math.max(c[e],s[e+1]);a(r,e)&&(t=Math.max(t,r.length+c[e+r.length])),s[e]=t}}let s=e.map(()=>null),c=0,l=0;for(;c<r&&l<i;){let t=e[n[c]].keys;a(t,l)&&o[c][l]===t.length+o[c+1][l+t.length]?(s[n[c]]=l,c++,l+=t.length):o[c][l]===o[c+1][l]?c++:l++}return s}function Vy(e,t){throw Error(`pmJsonToMdast is not yet implemented — use pmToMdx instead for direct MDX output`)}function Hy(e){let t=o().use(x).use(b).use(a).use(r).stringify(e);return typeof t==`string`?t:String(t)}var Uy=(e,t,n)=>Yv(e,t)?[]:Jy(Wy(e.content??[],t.content??[],0,n)),Wy=(e,t,n,r)=>{let i=0,a=Math.min(e.length,t.length);for(;i<a&&Yv(e[i],t[i]);)i++;if(i===e.length&&i===t.length)return[];let o=0;for(;o<a-i&&Yv(e[e.length-1-o],t[t.length-1-o]);)o++;let s=e.slice(i,e.length-o),c=t.slice(i,t.length-o),l=0;for(let t=0;t<i;t++)l+=ry(e[t],r);let u=n+l;if(s.length===0&&c.length===0)return[];if(s.length===0)return[{from:u,to:u,insert:c}];if(c.length===0){let e=0;for(let t of s)e+=ry(t,r);return[{from:u,to:u+e,insert:[]}]}return Gy(qy(s,c,r),s,c,u,r)},Gy=(e,t,n,r,i)=>{let a=[],o=[],s=0;for(let e of t)o.push(s),s+=ry(e,i);let c=0;for(;c<e.length;){let s=e[c];if(s.type===`matched`){let e=t[s.oldIdx],l=n[s.newIdx];if(Yv(e,l)){c++;continue}let u=r+o[s.oldIdx],d=Ky(e,l,u,i);if(d)a.push(...d);else{let t=ry(e,i);a.push({from:u,to:u+t,insert:[l]})}c++;continue}let l=c,u=[],d=[];for(;c<e.length&&e[c].type!==`matched`;){let t=e[c];t.type===`deleted`?u.push(t.oldIdx):t.type===`inserted`&&d.push(n[t.newIdx]),c++}if(u.length===0&&d.length===0)continue;let f,p;if(u.length>0){let e=u[0],n=u[u.length-1];f=r+o[e],p=r+o[n]+ry(t[n],i)}else{let n=l>0?e[l-1]:void 0;f=n?.type===`matched`?r+o[n.oldIdx]+ry(t[n.oldIdx],i):r,p=f}a.push({from:f,to:p,insert:d})}return a.sort((e,t)=>t.from-e.from),a},Ky=(e,t,n,r)=>{if(e.type!==t.type||cy(e.type,r)||sy(e.type,r))return null;let i=e.content??[],a=t.content??[];if(!Xv(e.attrs,t.attrs))return null;let o=Wy(i,a,n+1,r);return o.length===0?null:o},qy=(e,t,n)=>{let r=e.length,i=t.length,a=Array.from({length:r+1},()=>Array(i+1).fill(0)),o=(e,t)=>a[e]?.[t]??0;for(let s=1;s<=r;s++){let r=a[s];for(let a=1;a<=i;a++)oy(e[s-1],t[a-1],n)?r[a]=o(s-1,a-1)+1:r[a]=Math.max(o(s-1,a),o(s,a-1))}let s=[],c=r,l=i;for(;c>0||l>0;)c>0&&l>0&&oy(e[c-1],t[l-1],n)&&o(c,l-1)<o(c,l)?(s.push({type:`matched`,oldIdx:c-1,newIdx:l-1}),c--,l--):l>0&&(c===0||o(c,l-1)>=o(c-1,l))?(s.push({type:`inserted`,newIdx:l-1}),l--):(s.push({type:`deleted`,oldIdx:c-1}),c--);return s.reverse(),s},Jy=e=>{if(e.length<=1)return e;e.sort((e,t)=>e.from-t.from);let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n];r.to===i.from?t[t.length-1]={from:r.from,to:i.to,insert:[...r.insert,...i.insert]}:t.push(i)}return t.sort((e,t)=>t.from-e.from),t};function Yy(e){return Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0,marks:e.marks?.map(e=>Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0})),content:e.content?.map(e=>Yy(e))})}function Xy(e){return Object.assign({type:e.type,attrs:e.attrs?Object.assign({},e.attrs):void 0,marks:e.marks?.map(e=>Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0}))},e.text==null?{}:{text:e.text})}function Zy(e,t){return ay(iy(e),iy(t))}function Qy(e,t,n){if(Yv(e,t))return 1e4;if(!oy(e,t,n))return-1/0;let r=100;return Xv(e.attrs,t.attrs)&&(r+=25),r+=Zy(e,t),r}function $y(e,t,n,r){let i=null,a=-1/0;for(let o=n;o<t.length;o+=1){let s=t[o];if(!s)continue;let c=Qy(e,s,r);if(!Number.isFinite(c))continue;let l=c-(o-n)*.1;if(l>a&&(a=l,i=o),c>=1e4)break}return i}function eb(e,t,n){return{node:Yy(e),annotations:[Object.assign({path:[],type:t},n?{hunk:n}:{})]}}function tb(e,t,n){return{baseNode:e?Yy(e):null,localNode:t?Yy(t):null,remoteNode:n?Yy(n):null}}function nb(e){return e.reduce((e,t)=>({appliedCount:e.appliedCount+ +(t.type===`applied`),conflictCount:e.conflictCount+ +(t.type===`conflict`)}),{appliedCount:0,conflictCount:0})}function rb(e,t){return e.map(e=>Object.assign({path:[t,...e.path],type:e.type},e.hunk?{hunk:e.hunk}:{}))}function ib(e,t,n){let r=t.content?.map(e=>Yy(e))??[],i=n.content?.map(e=>Yy(e))??[],a=iy(t),o=iy(n);if(a.length>0&&o.length>0){if(o.length>a.length&&o.includes(a))return{node:Object.assign(Object.assign({},Xy(n)),{content:i}),annotations:[{path:[],type:`applied`}]};if(a.length>o.length&&a.includes(o))return{node:Object.assign(Object.assign({},Xy(t)),{content:r}),annotations:[]}}let s=r.length>0&&i.length>0&&iy(t).length>0&&iy(n).length>0?[...r,{type:`text`,text:` `},...i]:[...r,...i];return{node:Object.assign(Object.assign({},Xy(t)),{content:s}),annotations:[{path:[],type:`conflict`,hunk:tb(e,t,n)}]}}function ab(e,t,n,r){if(!t&&!n)return[];if(!t)return!n||Yv(e,n)?[]:[eb(n,`conflict`,tb(e,null,n))];if(!n)return Yv(e,t)?[]:[eb(t,`conflict`,tb(e,t,null))];let i=!Yv(e,t),a=!Yv(e,n);if(!i&&!a)return[{node:Yy(t),annotations:[]}];if(!i&&a)return[eb(n,`applied`)];if(i&&!a||Yv(t,n))return[{node:Yy(t),annotations:[]}];if(t.type===n.type&&t.type===e.type&&Xv(t.attrs,n.attrs)&&Xv(e.attrs,t.attrs)){if(sy(t.type,r)&&!ly(t.type,r))return[ib(e,t,n)];if(!cy(t.type,r)&&!ly(t.type,r)&&t.content&&n.content&&e.content){let i=fb(e.content,t.content,n.content,r);return[{node:Object.assign(Object.assign({},Xy(t)),{content:i.nodes}),annotations:i.annotations.map(e=>Object.assign({path:e.path,type:e.type},e.hunk?{hunk:e.hunk}:{}))}]}}return[{node:Yy(t),annotations:[]},eb(n,`conflict`,tb(e,t,n))]}function ob(e,t,n){let r=[],i=0;for(let a of e){let e=$y(a,t,i,n);r.push(e),e!=null&&(i=e+1)}return r}function sb(e,t){return Array.from({length:e},()=>Array(t).fill(0))}function cb(e,t,n){let r=n.get(e);if(r!==void 0)return r;let i;try{i=Nv(t.nodeFromJSON({type:`doc`,content:[e]}))}catch{i=JSON.stringify(e)}return n.set(e,i),i}function lb(e,t,n,r){return Yv(e,t)?!0:cb(e,n,r)===cb(t,n,r)}function ub(e,t,n,r){let i=sb(e.length+1,t.length+1);for(let a=e.length-1;a>=0;--a){let o=e[a],s=i[a],c=i[a+1];for(let e=t.length-1;e>=0;--e){let i=t[e],a=c[e],l=s[e+1];if(lb(o,i,n,r)){let t=c[e+1]+1;s[e]=t}else s[e]=Math.max(a,l)}}return i}function db(e,t,n){return(e[t+1]?.[n]??0)>=(e[t]?.[n+1]??0)}function fb(e,t,n,r){let i=[],a=[],o=/* @__PURE__ */ new Map,s=ob(e,t,r),c=ob(e,n,r),l=e=>{let t=i.length;i.push(e.node),a.push(...rb(e.annotations,t))},u=(e,n)=>{for(let r=e;r<n;r+=1){let e=t[r];e&&l({node:Yy(e),annotations:[]})}},d=(e,t,r)=>{for(let i=e;i<t;i+=1){let e=n[i];e&&l(eb(e,r))}},f=(e,i,a,s)=>{let c=t.slice(e,i),f=n.slice(a,s);if(c.length===0){d(a,s,`applied`);return}if(f.length===0){u(e,i);return}let p=ub(c,f,r,o),m=0,h=0;for(;m<c.length&&h<f.length;){let e=c[m],t=f[h];e&&t&&lb(e,t,r,o)?(l({node:Yy(e),annotations:[]}),m+=1,h+=1):db(p,m,h)?(l({node:Yy(e),annotations:[]}),m+=1):(l(eb(t,`applied`)),h+=1)}u(e+m,i),d(a+h,s,`applied`)},p=0,m=0;for(let i=0;i<e.length;i+=1){let a=e[i],o=s[i]??null,u=c[i]??null;f(p,o??p,m,u??m);let d=o==null?void 0:t[o],h=u==null?void 0:n[u];for(let e of ab(a,d,h,r))l(e);o!=null&&(p=o+1),u!=null&&(m=u+1)}return f(p,t.length,m,n.length),{nodes:i,annotations:a}}function pb(e){let{baseDoc:t,localDoc:n,remoteDoc:r,schema:i}=e,a=fb(t.content??[],n.content??[],r.content??[],i),o=!Xv(t.attrs,n.attrs),s=!Xv(t.attrs,r.attrs),c=Object.assign(Object.assign({},Xy(!o&&s?r:n)),{content:a.nodes}),l=[],u=a.annotations.map(e=>(e.type===`conflict`&&e.hunk&&l.push(Object.assign({path:e.path},e.hunk)),{path:e.path,type:e.type}));return{mergedDoc:c,annotations:u,conflicts:l,summary:nb(u)}}export{O as BLOCK_TYPES,wt as CALLOUT_TYPES,Ot as COMMENT_THREAD_IDS_ATTR,k as DEFAULT_CODE_BLOCK_LANGUAGE,Sn as DEFAULT_DATABASE_VIEW,Ft as DEFAULT_MERMAID_PLACEMENT,Et as EDITOR_COMPONENT_NAMES,mg as FRONTMATTER_ATTRIBUTES_WITH_ARRAY_VALUES,pg as FRONTMATTER_ATTRIBUTES_WITH_BOOLEAN_VALUES,jt as HIDDEN_NODE_ATTRS,Tt as HTML_ELEMENTS,Pt as IMAGE_ALIGN_CLASSES,Xv as attrsEqual,Dv as canonicalPmToMdxOptions,xn as createSchema,Yv as deepEqual,Uy as diffDocs,hh as extractDiffMarkers,Un as extractFrontmatter,iy as extractText,lg as filterFrontmatterRecord,Vn as findRedundantStaticHtmlSources,xg as formatFrontmatterValue,_h as formatLineRanges,vh as getDiffMarkerComment,$p as getImageAlignFromClassName,em as getImageWidthFromStyle,wn as isDatabaseId,Tn as isDatabaseView,Sg as isJSXContent,cg as isNonEmptyFrontmatterValue,sg as mdToPm,Hy as mdastToMdx,Ah as mdastToPm,Rp as mdxToMdast,Rh as mdxToPm,pb as mergeRemoteIntoLiveDoc,bn as mintlifySchema,ry as nodeSize,oy as nodesMatch,Ln as parseCommentThreadIds,Kp as parseExpressionAttribute,Hn as parseFrontmatterYaml,gh as parseLineRanges,$ as parseMdxAttributes,mh as parseMetaString,Vy as pmJsonToMdast,Nv as pmToMdx,vy as pmToMdxPreservingSource,Fn as readDatabaseSql,En as resolveDatabaseView,hg as safeJsonParse,Jp as sanitizeDomAttrs,Rn as serializeCommentThreadIds,Mn as serializeDatabaseSql,Tg as serializePropValue,Uv as startsWithPlaceholderParagraph,_g as storedValueToTyped,ay as textSimilarity};