@mintlify/cli 4.1.72 → 4.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cli-Blu5vkOx.js → cli-BLKVRDx9.js} +3 -3
- package/dist/{config-DzDLoppg.js → config-B9UTDqKX.js} +1 -1
- package/dist/{config-B1SsFnRI.js → config-CXPSls8I.js} +1 -1
- package/dist/{converter-js78Fb8_.js → converter-3_OvM8TS.js} +1 -1
- package/dist/{currencyMath-BHNabTeO.js → currencyMath-DcWm_B16.js} +1 -1
- package/dist/{dist-DGS-P0UG.js → dist-BA3H54nL.js} +1 -1
- package/dist/{dist-DYIsiCSX.js → dist-CfnhJnLz.js} +1 -1
- package/dist/{dist-BpdR9SbK.js → dist-DgyavKdR.js} +1 -1
- package/dist/{dist-CMyjEKka.js → dist-wJL5MmMs.js} +1 -1
- package/dist/{lib-BstlxGQb.js → lib-DGY-NrHk.js} +1 -1
- package/dist/{multi-repo-command-Bb-oUtDy.js → multi-repo-command-CtjEOn-c.js} +1 -1
- package/dist/{multi-repo-command-CfGPBp8I.js → multi-repo-command-DvqhX76Z.js} +2 -2
- package/dist/{multi-repo-config-IN7JizKN.js → multi-repo-config-C9dwfzPC.js} +1 -1
- package/dist/{multi-repo-preview-DbB27X4T.js → multi-repo-preview-DG84R2no.js} +1 -1
- package/dist/{multi-repo-setup-DGRjpipy.js → multi-repo-setup-CWCGybny.js} +1 -1
- package/dist/{remark-utils-CLJr2toS.js → remark-utils-heM5aat5.js} +1 -1
- package/dist/start.js +1 -1
- package/dist/{utils-D-zUiakl.js → utils-B7dNmFFf.js} +1 -1
- package/package.json +9 -9
|
@@ -274,4 +274,4 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
|
|
|
274
274
|
case-1:if(r)continue;a=` `;break;default:a=String.fromCharCode(i)}r=i===-2,n.push(a)}return n.join(``)}function fg(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=pg(n.start,r[0]||t.start),a=pg(n.end,r[1]||t.end);if(i&&a)return{start:i,end:a}}function pg(e,t){if(e&&typeof e==`object`){let n=`line`in e?mg(e.line):void 0,r=`column`in e?mg(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:mg(t)}}}function mg(e){return typeof e==`number`&&e>-1?e:void 0}const hg=`https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression`,gg=`#unexpected-type-in-code-expected-an-object-spread-spread`;function _g(e,t,n,r,i,a,o,s,c,l,u){let d=this,f=this.events.length+3,p=0,m,h;return g;function g(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),m=d.now(),_}function _(u){if(u===null){if(h)throw h;let e=new W("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:`unexpected-eof`,source:`micromark-extension-mdx-expression`});throw e.url=hg+`#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-`,e}if(B(u))return e.enter(`lineEnding`),e.consume(u),e.exit(`lineEnding`),y;if(u===125&&p===0){let p=a?vg.call(d,a,o,i,f,m,l||!1,c||!1):{type:`ok`,estree:void 0};if(p.type===`ok`){e.enter(r),e.consume(u),e.exit(r);let i=e.exit(n);return s&&p.estree&&Object.assign(i,{estree:p.estree}),t}return h=p.message,e.enter(i),e.consume(u),v}return e.enter(i),v(u)}function v(t){return t===125&&p===0||t===null||B(t)?(e.exit(i),_(t)):(t===123&&!a?p+=1:t===125&&--p,e.consume(t),v)}function y(t){let n=d.now();if(n.line!==m.line&&!u&&d.parser.lazy[n.line]){let e=new W("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:`unexpected-lazy`,source:`micromark-extension-mdx-expression`});throw e.url=hg+`#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed`,e}return H(t)?U(e,_,`linePrefix`,3)(t):_(t)}}function vg(e,t,n,r,i,a,o){let s=sg(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:o?`({`:``,suffix:o?`})`:``}),c=s.estree;if(o&&c){let e=c.body[0];if(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`){let t=fg(e),n=new W("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=hg+gg,n}if(e.expression.properties[1]){let t=new W(`Unexpected extra content in spread: only a single spread is supported`,{place:fg(e.expression.properties[1]).start,ruleId:`spread-extra`,source:`micromark-extension-mdx-expression`});throw t.url=hg+`#unexpected-extra-content-in-spread-only-a-single-spread-is-supported`,t}if(e.expression.properties[0]&&e.expression.properties[0].type!==`SpreadElement`){let t=fg(e.expression.properties[0]),n=new W("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=hg+gg,n}}if(s.error){let e=new W(`Could not parse expression with acorn`,{cause:s.error,place:{line:s.error.loc.line,column:s.error.loc.column+1,offset:s.error.pos},ruleId:`acorn`,source:`micromark-extension-mdx-expression`});return e.url=hg+`#could-not-parse-expression-with-acorn`,{type:`nok`,message:e}}return{type:`ok`,estree:c}}function yg(e){let t=e||{},n=t.addResult,r=t.acorn,i=t.spread,a=t.allowEmpty,o;if(a??=!0,r){if(!r.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:`module`},t.acornOptions)}else if(t.acornOptions||t.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:`mdxFlowExpression`,tokenize:s,concrete:!0}},text:{123:{name:`mdxTextExpression`,tokenize:c}}};function s(e,t,s){let c=this;return l;function l(e){return u(e)}function u(t){return _g.call(c,e,d,`mdxFlowExpression`,`mdxFlowExpressionMarker`,`mdxFlowExpressionChunk`,r,o,n,i,a)(t)}function d(t){return H(t)?U(e,f,`whitespace`)(t):f(t)}function f(n){let r=c.parser.constructs.flow[60],i=(Array.isArray(r)?r:r?[r]:[]).find(function(e){return e.name===`mdxJsxFlowTag`});return n===60&&i?e.attempt(i,f,s)(n):n===null||B(n)?t(n):s(n)}}function c(e,t){let s=this;return c;function c(c){return _g.call(s,e,t,`mdxTextExpression`,`mdxTextExpressionMarker`,`mdxTextExpressionChunk`,r,o,n,i,a,!0)(c)}}}const bg=/[$_\p{ID_Start}]/u,xg=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Sg=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Cg={};function wg(e){return e?bg.test(String.fromCodePoint(e)):!1}function Tg(e,t){let n=(t||Cg).jsx?Sg:xg;return e?n.test(String.fromCodePoint(e)):!1}const Eg=`https://github.com/micromark/micromark-extension-mdx-jsx`;function Dg(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,ee,D,te,ne,O){let k=this,A,re;return ie;function ie(t){return e.enter(s),e.enter(c),e.consume(t),e.exit(c),ae}function ae(e){return V(e)?n(e):(A=oe,j(e))}function oe(t){if(t===47)return e.enter(l),e.consume(t),e.exit(l),A=se,j;if(t===62)return Oe(t);if(t!==null&&t>=0&&wg(t))return e.enter(d),e.enter(f),e.consume(t),ce;je(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===33?" (note: to create a comment in MDX, use `{/* text */}`)":``))}function se(t){if(t===62)return Oe(t);if(t!==null&&t>=0&&wg(t))return e.enter(d),e.enter(f),e.consume(t),ce;je(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===42||t===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function ce(t){if(t!==null&&t>=0&&Tg(t,{jsx:!0}))return e.consume(t),ce;if(t===46||t===47||t===58||t===62||t===123||V(t)||eo(t))return e.exit(f),A=le,j(t);je(t,`in name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function le(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),A=ue,j;if(t===58)return e.enter(h),e.consume(t),e.exit(h),A=pe,j;if(t===47||t===62||t===123||t!==null&&t>=0&&wg(t))return e.exit(d),ge(t);je(t,`after name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ue(t){if(t!==null&&t>=0&&wg(t))return e.enter(m),e.consume(t),de;je(t,`before member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function de(t){if(t!==null&&t>=0&&Tg(t,{jsx:!0}))return e.consume(t),de;if(t===46||t===47||t===62||t===123||V(t)||eo(t))return e.exit(m),A=fe,j(t);je(t,`in member name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function fe(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),A=ue,j;if(t===47||t===62||t===123||t!==null&&t>=0&&wg(t))return e.exit(d),ge(t);je(t,`after member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function pe(t){if(t!==null&&t>=0&&wg(t))return e.enter(g),e.consume(t),me;je(t,`before local name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===43||t!==null&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":``))}function me(t){if(t!==null&&t>=0&&Tg(t,{jsx:!0}))return e.consume(t),me;if(t===47||t===62||t===123||V(t)||eo(t))return e.exit(g),A=he,j(t);je(t,`in local name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function he(t){if(t===47||t===62||t===123||t!==null&&t>=0&&wg(t))return e.exit(d),ge(t);je(t,`after local name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ge(t){if(t===47)return e.enter(u),e.consume(t),e.exit(u),A=De,j;if(t===62)return Oe(t);if(t===123)return _g.call(k,e,_e,_,v,y,r,i,a,!0,!1,o)(t);if(t!==null&&t>=0&&wg(t))return e.enter(b),e.enter(x),e.enter(S),e.consume(t),ve;je(t,`before attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function _e(e){return A=ge,j(e)}function ve(t){if(t!==null&&t>=0&&Tg(t,{jsx:!0}))return e.consume(t),ve;if(t===47||t===58||t===61||t===62||t===123||V(t)||eo(t))return e.exit(S),A=ye,j(t);je(t,`in attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ye(t){if(t===58)return e.enter(C),e.consume(t),e.exit(C),A=be,j;if(t===61)return e.exit(x),e.enter(T),e.consume(t),e.exit(T),A=Ce,j;if(t===47||t===62||t===123||V(t)||eo(t)||t!==null&&t>=0&&wg(t))return e.exit(x),e.exit(b),A=ge,j(t);je(t,`after attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function be(t){if(t!==null&&t>=0&&wg(t))return e.enter(w),e.consume(t),xe;je(t,`before local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function xe(t){if(t!==null&&t>=0&&Tg(t,{jsx:!0}))return e.consume(t),xe;if(t===47||t===61||t===62||t===123||V(t)||eo(t))return e.exit(w),e.exit(x),A=Se,j(t);je(t,`in local attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Se(t){if(t===61)return e.enter(T),e.consume(t),e.exit(T),A=Ce,j;if(t===47||t===62||t===123||t!==null&&t>=0&&wg(t))return e.exit(b),ge(t);je(t,`after local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Ce(t){if(t===34||t===39)return e.enter(E),e.enter(ee),e.consume(t),e.exit(ee),re=t,Te;if(t===123)return _g.call(k,e,we,te,ne,O,r,i,a,!1,!1,o)(t);je(t,`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 />}`)":``))}function we(t){return e.exit(b),A=ge,j(t)}function Te(t){return t===null&&je(t,`in attribute value`,"a corresponding closing quote `"+String.fromCodePoint(re)+"`"),t===re?(e.enter(ee),e.consume(t),e.exit(ee),e.exit(E),e.exit(b),re=void 0,A=ge,j):B(t)?(A=Te,j(t)):(e.enter(D),Ee(t))}function Ee(t){return t===null||t===re||B(t)?(e.exit(D),Te(t)):(e.consume(t),Ee)}function De(e){if(e===62)return Oe(e);je(e,`after self-closing slash`,"`>` to end the tag"+(e===42||e===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function Oe(n){return e.enter(c),e.consume(n),e.exit(c),e.exit(s),t}function j(t){return B(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ae):H(t)||eo(t)?(e.enter(`esWhitespace`),ke(t)):A(t)}function ke(t){return B(t)?(e.exit(`esWhitespace`),j(t)):H(t)||eo(t)?(e.consume(t),ke):(e.exit(`esWhitespace`),A(t))}function Ae(e){if(!o&&k.parser.lazy[k.now().line]){let e=new W("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",k.now(),`micromark-extension-mdx-jsx:unexpected-lazy`);throw e.url=Eg+`#unexpected-lazy-line-in-container-expected-line-to-be`,e}return j(e)}function je(e,t,n){let r=new W(`Unexpected `+(e===null?`end of file`:"character `"+(e===96?"` ` `":String.fromCodePoint(e))+"` ("+Og(e)+`)`)+` `+t+`, expected `+n,k.now(),`micromark-extension-mdx-jsx:unexpected-`+(e===null?`eof`:`character`));throw r.url=Eg+(e===null?`#unexpected-end-of-file-at-expected-expect`:`#unexpected-character-at-expected-expect`),r}}function Og(e){return`U+`+e.toString(16).toUpperCase().padStart(4,`0`)}function kg(e,t){return{name:`mdxJsxTextTag`,tokenize:n};function n(n,r,i){return Dg.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,`mdxJsxTextTag`,`mdxJsxTextTagMarker`,`mdxJsxTextTagClosingMarker`,`mdxJsxTextTagSelfClosingMarker`,`mdxJsxTextTagName`,`mdxJsxTextTagNamePrimary`,`mdxJsxTextTagNameMemberMarker`,`mdxJsxTextTagNameMember`,`mdxJsxTextTagNamePrefixMarker`,`mdxJsxTextTagNameLocal`,`mdxJsxTextTagExpressionAttribute`,`mdxJsxTextTagExpressionAttributeMarker`,`mdxJsxTextTagExpressionAttributeValue`,`mdxJsxTextTagAttribute`,`mdxJsxTextTagAttributeName`,`mdxJsxTextTagAttributeNamePrimary`,`mdxJsxTextTagAttributeNamePrefixMarker`,`mdxJsxTextTagAttributeNameLocal`,`mdxJsxTextTagAttributeInitializerMarker`,`mdxJsxTextTagAttributeValueLiteral`,`mdxJsxTextTagAttributeValueLiteralMarker`,`mdxJsxTextTagAttributeValueLiteralValue`,`mdxJsxTextTagAttributeValueExpression`,`mdxJsxTextTagAttributeValueExpressionMarker`,`mdxJsxTextTagAttributeValueExpressionValue`)}}function Ag(e,t){return{concrete:!0,name:`mdxJsxFlowTag`,tokenize:n};function n(n,r,i){let a=this;return o;function o(e){return s(e)}function s(r){return Dg.call(a,n,c,i,e,t.acornOptions,t.addResult,!1,`mdxJsxFlowTag`,`mdxJsxFlowTagMarker`,`mdxJsxFlowTagClosingMarker`,`mdxJsxFlowTagSelfClosingMarker`,`mdxJsxFlowTagName`,`mdxJsxFlowTagNamePrimary`,`mdxJsxFlowTagNameMemberMarker`,`mdxJsxFlowTagNameMember`,`mdxJsxFlowTagNamePrefixMarker`,`mdxJsxFlowTagNameLocal`,`mdxJsxFlowTagExpressionAttribute`,`mdxJsxFlowTagExpressionAttributeMarker`,`mdxJsxFlowTagExpressionAttributeValue`,`mdxJsxFlowTagAttribute`,`mdxJsxFlowTagAttributeName`,`mdxJsxFlowTagAttributeNamePrimary`,`mdxJsxFlowTagAttributeNamePrefixMarker`,`mdxJsxFlowTagAttributeNameLocal`,`mdxJsxFlowTagAttributeInitializerMarker`,`mdxJsxFlowTagAttributeValueLiteral`,`mdxJsxFlowTagAttributeValueLiteralMarker`,`mdxJsxFlowTagAttributeValueLiteralValue`,`mdxJsxFlowTagAttributeValueExpression`,`mdxJsxFlowTagAttributeValueExpressionMarker`,`mdxJsxFlowTagAttributeValueExpressionValue`)(r)}function c(e){return H(e)?U(n,l,`whitespace`)(e):l(e)}function l(e){let t=a.parser.constructs.flow[123],s=Array.isArray(t)?t:t?[t]:[],c;for(let e of s)if(e.name===`mdxFlowExpression`){c=e;break}return e===60?o(e):e===123&&c?n.attempt(c,l,i)(e):e===null||B(e)?r(e):i(e)}}}function jg(e){let t=e||{},n=t.acorn,r;if(n){if(!n.parse||!n.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:`module`},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Ag(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:kg(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}var Mg=/* @__PURE__ */ t(ka(),1);function Ng(){return{disable:{null:[`autolink`,`codeIndented`,`htmlFlow`,`htmlText`]}}}const Pg={tokenize:Rg,partial:!0},Fg=`https://github.com/micromark/micromark-extension-mdxjs-esm`,Ig=/* @__PURE__ */ new Set([`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`]);function Lg(e){let t={tokenize:i,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw Error("Expected an `acorn` instance passed in as `options.acorn`");let n=e.acorn,r=Object.assign({ecmaVersion:2024,sourceType:`module`},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function i(t,i,a){let o=this,s=o.parser.definedModuleSpecifiers||(o.parser.definedModuleSpecifiers=[]),c=this.events.length+1,l=``;return o.interrupt?a:u;function u(e){return o.now().column>1?a(e):(t.enter(`mdxjsEsm`),t.enter(`mdxjsEsmData`),t.consume(e),l+=String.fromCharCode(e),d)}function d(e){return Ka(e)?(t.consume(e),l+=String.fromCharCode(e),d):(l===`import`||l===`export`)&&e===32?(t.consume(e),f):a(e)}function f(e){return e===null||B(e)?(t.exit(`mdxjsEsmData`),p(e)):(t.consume(e),f)}function p(e){return e===null?h(e):B(e)?t.check(Pg,h,m)(e):(t.enter(`mdxjsEsmData`),f(e))}function m(e){return t.enter(`lineEnding`),t.consume(e),t.exit(`lineEnding`),p}function h(a){let l=sg(o.events.slice(c),{acorn:n,acornOptions:r,tokenTypes:[`mdxjsEsmData`],prefix:s.length>0?`var `+s.join(`,`)+`
|
|
275
275
|
`:``});if(l.error){if(a!==null&&l.swallow)return m(a);let e=new W(`Could not parse import/exports with acorn`,{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:`acorn`,source:`micromark-extension-mdxjs-esm`});throw e.url=Fg+`#could-not-parse-importexports-with-acorn`,e}s.length>0&&l.estree.body.shift();let u=-1;for(;++u<l.estree.body.length;){let e=l.estree.body[u];if(!Ig.has(e.type)){let t=new W("Unexpected `"+e.type+"` in code: only import/exports are supported",{place:fg(e),ruleId:`non-esm`,source:`micromark-extension-mdxjs-esm`});throw t.url=Fg+`#unexpected-type-in-code-only-importexports-are-supported`,t}if(e.type===`ImportDeclaration`&&!o.interrupt){let t=-1;for(;++t<e.specifiers.length;){let n=e.specifiers[t];s.push(n.local.name)}}}return Object.assign(t.exit(`mdxjsEsm`),e.addResult?{estree:l.estree}:void 0),i(a)}}}function Rg(e,t,n){return r;function r(r){return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),e.attempt(bo,t,n)}}function zg(e){let t=Object.assign({acorn:qm.extend((0,Mg.default)()),acornOptions:{ecmaVersion:2024,sourceType:`module`},addResult:!0},e);return Va([Lg(t),yg(t),jg(t),Ng()])}const Bg=/^( {0,3})(#{1,6})\s+(.+?)\s*\{\s*#([^}]+?)\s*\}\s*$/,Vg=/^(\s*)(#{1,6})\s+(.+?)\s*\{\s*#([^}]+?)\s*\}\s*$/,Hg=/<MDX(?:\s[^>]*[^/>\s])?\s*>/g,Ug=/<\/MDX\s*>/g,Wg=/(`+).*?\1|=\s*'[^'\n]*'|"[^"\n]*"/g,Gg=/[<>"]/g,Kg=/[<>"&?,;:!'()\[\]{}]/g,qg=/\p{Emoji_Modifier}|\p{Emoji_Modifier_Base}|\p{Emoji_Presentation}|\p{Extended_Pictographic}|[\u200D\uFE0E\uFE0F]/gu;function Jg(e){return e.trim().replace(Gg,``)}function Yg(e){return e.trim().replace(Kg,``).replace(qg,``).replace(/\s+/g,`-`)}function Xg(e,t){return Qg(e,t).content}function Zg(e,t){return Qg(e,t).sourceLines}function Qg(e,t){let n=e.split(`
|
|
276
276
|
`),r=[],i=[],a=0,o,s=0,c=0,l=!1;for(let e of n){a+=1;let n=e.trimStart();if(o!==void 0){t_(n,o,s)&&(o=void 0),r.push(e),i.push(a);continue}let u=!l&&e_(n);if(u){o=u.char,s=u.count,r.push(e),i.push(a);continue}let{visible:d,inComment:f}=$g(e,l),p=l||f;l=f;let m=!p&&(c>0?Vg:Bg).exec(e);if(m&&m[2]&&m[3]&&m[4]){let e=m[1]??``,n=m[2].length,o=t?.preserveOriginal?Jg(m[4]):Yg(m[4]);r.push(`${e}<h${n} id="${o}">`,`${e}${m[3]}`,`${e}</h${n}>`),i.push(a,a,a)}else c=Math.max(0,c+(d.match(Hg)?.length??0)-(d.match(Ug)?.length??0)),r.push(e),i.push(a)}return{content:r.join(`
|
|
277
|
-
`),sourceLines:i}}function $g(e,t){let n=e.replace(Wg,e=>` `.repeat(e.length)),r=``,i=0;for(;;){if(t){let n=e.indexOf(`*/`,i);if(n===-1)return{visible:r,inComment:t};i=n+2}let a=n.indexOf(`{/*`,i);if(a===-1)return{visible:r+e.slice(i),inComment:!1};r+=e.slice(i,a),i=a+3,t=!0}}function e_(e){let t=e[0];if(t!=="`"&&t!==`~`)return;let n=1;for(;n<e.length&&e[n]===t;)n++;if(!(n<3))return{char:t,count:n}}function t_(e,t,n){let r=0;for(;r<e.length&&e[r]===t;)r++;if(r<n)return!1;for(;r<e.length;r++)if(e[r]!==` `&&e[r]!==` `&&e[r]!==`\r`)return!1;return!0}const n_=/* @__PURE__ */ new Set([`loc`,`range`,`start`,`end`,`comments`,`leadingComments`,`trailingComments`]),r_=/* @__PURE__ */ new Set([`ArrowFunctionExpression`,`FunctionExpression`,`FunctionDeclaration`]);function i_(e,t){if(!z(e))return;let n=e.type;if(n===`Identifier`)typeof e.name==`string`&&t.add(e.name);else if(n===`AssignmentPattern`)i_(e.left,t);else if(n===`RestElement`)i_(e.argument,t);else if(n===`ObjectPattern`&&Array.isArray(e.properties))for(let n of e.properties)z(n)&&(n.type===`RestElement`?i_(n.argument,t):n.type===`Property`&&i_(n.value,t));else if(n===`ArrayPattern`&&Array.isArray(e.elements))for(let n of e.elements)i_(n,t)}function a_(e,t){for(let[n,r]of Object.entries(e))n_.has(n)||t(r)}function o_(e,t){if(Array.isArray(e))for(let n of e)o_(n,t);else if(z(e)&&typeof e.type==`string`&&!(r_.has(e.type)||e.type===`ClassBody`)){if(e.type===`VariableDeclaration`&&e.kind===`var`){let n=Array.isArray(e.declarations)?e.declarations:[];for(let e of n)z(e)&&i_(e.id,t)}a_(e,e=>o_(e,t))}}function s_(e){let t=/* @__PURE__ */ new Set;for(let n of e)if(z(n)){if(n.type===`VariableDeclaration`&&n.kind!==`var`){let e=Array.isArray(n.declarations)?n.declarations:[];for(let n of e)z(n)&&i_(n.id,t)}else(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&z(n.id)&&typeof n.id.name==`string`&&t.add(n.id.name)}return t}function c_(e,t){let n=new Set(e);for(let e of t)n.add(e);return n}function l_(e){return typeof e==`string`&&!/^[a-z]/.test(e)&&!e.includes(`-`)}const u_=/* @__PURE__ */ new Set([`push`,`pop`,`shift`,`unshift`,`splice`,`sort`,`reverse`,`fill`,`copyWithin`,`set`,`add`,`delete`,`clear`,`__defineGetter__`,`__defineSetter__`]),d_=/* @__PURE__ */ new Set([`assign`,`defineProperty`,`defineProperties`,`setPrototypeOf`]),f_=/* @__PURE__ */ new Map([[`Object`,d_],[`Reflect`,/* @__PURE__ */ new Set([`set`,`defineProperty`,`deleteProperty`,`setPrototypeOf`])]]);function p_(e){return e===`constructor`||d_.has(e)}function m_(e){let t=e.property;if(z(t))return e.computed!==!0&&typeof t.name==`string`?t.name:t.type===`Literal`&&typeof t.value==`string`?t.value:void 0}const h_=/* @__PURE__ */ new Set([`globalThis`,`window`,`self`,`global`]),g_=/* @__PURE__ */ new Set([`Object`,`Reflect`,`Function`,`eval`,...h_]),__=/* @__PURE__ */ new WeakSet;function v_(e,t){let n=z(t)&&t.type===`Literal`&&(typeof t.value==`string`||typeof t.value==`number`);return e.computed===!0&&!n}function y_(e){let t=j_(e);for(;z(t)&&t.type===`MemberExpression`;){if(v_(t,t.property))return!0;t=j_(t.object)}return!1}function b_(e,t){var n;if(z(e))switch(e.type){case`AssignmentPattern`:b_(e.left,t);return;case`RestElement`:b_(e.argument,t);return;case`ArrayPattern`:if(Array.isArray(e.elements))for(let n of e.elements)b_(n,t);return;case`ObjectPattern`:{let r=Array.isArray(e.properties)?e.properties:[];for(let e of r){if(!z(e))continue;if(e.type===`RestElement`){b_(e.argument,t);continue}let r=e.key,i=e.computed!==!0&&z(r)&&typeof r.name==`string`?r.name:z(r)&&r.type===`Literal`?String(r.value):void 0;(v_(e,r)||i!==void 0&&(p_(i)||g_.has(i)))&&((n=t.unknownWrite)==null||n.call(t)),b_(e.value,t)}return}default:return}}const x_=/* @__PURE__ */ new WeakSet;function S_(e){let t=e.callee;if(!z(t)||t.type!==`MemberExpression`)return;let n=t.object;m_(t)!==void 0&&z(n)&&n.type===`Identifier`&&typeof n.name==`string`&&f_.has(n.name)&&x_.add(n)}function C_(e){let t=e.callee;if(!z(t)||t.type!==`MemberExpression`)return;let n=m_(t);if(n===void 0)return;let r=t.object;if(z(r)&&r.type===`Identifier`&&typeof r.name==`string`){let t=f_.get(r.name);if(t!==void 0)return t.has(n)&&Array.isArray(e.arguments)?e.arguments[0]:void 0}return u_.has(n)?r:void 0}function w_(e,t,n){var r;z(e)&&typeof e.name==`string`&&!t.has(e.name)&&((e.name===`eval`||e.name===`Function`||h_.has(e.name)&&!__.has(e)||f_.has(e.name)&&!x_.has(e))&&((r=n.unknownWrite)==null||r.call(n)),n.reference(e))}function T_(e,t,n){if(z(e))switch(e.type){case`AssignmentPattern`:T_(e.left,t,n),Q(e.right,t,n);return;case`RestElement`:T_(e.argument,t,n);return;case`ObjectPattern`:{let r=Array.isArray(e.properties)?e.properties:[];for(let e of r)z(e)&&(e.type===`RestElement`?T_(e.argument,t,n):(e.computed===!0&&Q(e.key,t,n),T_(e.value,t,n)));return}case`ArrayPattern`:{let r=Array.isArray(e.elements)?e.elements:[];for(let e of r)T_(e,t,n);return}case`MemberExpression`:Q(e,t,n);return;default:return}}function Q(e,t,n){var r,i,a,o,s,c,l,u,d,f;if(Array.isArray(e)){for(let r of e)Q(r,t,n);return}if(!z(e)||typeof e.type!=`string`)return;let p=e.type;if(r_.has(p)){if(n.eagerOnly===!0)return;let r=Array.isArray(e.params)?e.params:[],i=/* @__PURE__ */ new Set;for(let e of r)i_(e,i);p===`FunctionExpression`&&z(e.id)&&typeof e.id.name==`string`&&i.add(e.id.name);let a=c_(t,i);for(let e of r)b_(e,n),T_(e,a,n);let o=/* @__PURE__ */ new Set;o_(e.body,o);let s=e.body,c=z(s)&&Array.isArray(s.body)?s.body:void 0;if(c!==void 0)for(let e of s_(c))o.add(e);Q(c??s,c_(a,o),n)}else switch(p){case`Identifier`:w_(e,t,n);return;case`AssignmentExpression`:(r=n.write)==null||r.call(n,e.left,t),b_(e.left,n),Q(e.left,t,n),Q(e.right,t,n);return;case`UpdateExpression`:(i=n.write)==null||i.call(n,e.argument,t),Q(e.argument,t,n);return;case`UnaryExpression`:if(e.operator===`delete`){let r=j_(e.argument);z(r)&&r.type===`MemberExpression`&&((a=n.mutate)==null||a.call(n,r.object,t))}Q(e.argument,t,n);return;case`CallExpression`:{let r=C_(e);r!==void 0&&((o=n.mutate)==null||o.call(n,r,t)),y_(e.callee)&&((s=n.unknownWrite)==null||s.call(n)),S_(e),a_(e,e=>Q(e,t,n));return}case`NewExpression`:case`TaggedTemplateExpression`:y_(p===`NewExpression`?e.callee:e.tag)&&((c=n.unknownWrite)==null||c.call(n)),a_(e,e=>Q(e,t,n));return;case`ClassDeclaration`:case`ClassExpression`:{Q(e.superClass,t,n);let r=p===`ClassExpression`&&z(e.id)&&typeof e.id.name==`string`?[e.id.name]:[];Q(e.body,c_(t,r),n);return}case`BlockStatement`:case`StaticBlock`:{let r=Array.isArray(e.body)?e.body:[];Q(r,c_(t,s_(r)),n);return}case`SwitchStatement`:{Q(e.discriminant,t,n);let r=Array.isArray(e.cases)?e.cases:[];Q(r,c_(t,s_(r.flatMap(e=>z(e)&&Array.isArray(e.consequent)?e.consequent:[]))),n);return}case`ForStatement`:{let r=c_(t,s_([e.init]));a_(e,e=>Q(e,r,n));return}case`ForInStatement`:case`ForOfStatement`:{let r=e.left,i=c_(t,s_([r]));Q(e.right,t,n),z(r)&&r.type===`VariableDeclaration`?Q(r,i,n):((l=n.write)==null||l.call(n,r,t),b_(r,n),Q(r,t,n)),Q(e.body,i,n);return}case`CatchClause`:{let r=/* @__PURE__ */ new Set;i_(e.param,r);let i=c_(t,r);b_(e.param,n),T_(e.param,i,n),Q(e.body,i,n);return}case`VariableDeclarator`:b_(e.id,n),T_(e.id,t,n),Q(e.init,t,n);return;case`MemberExpression`:{let r=m_(e),i=e.object,a=z(i)&&i.type===`Identifier`&&typeof i.name==`string`&&f_.has(i.name);r!==void 0&&p_(r)&&!a&&((u=n.unknownWrite)==null||u.call(n)),r!==void 0&&g_.has(r)&&((d=n.unknownWrite)==null||d.call(n)),r!==void 0&&!p_(r)&&z(i)&&i.type===`Identifier`&&typeof i.name==`string`&&h_.has(i.name)&&__.add(i),Q(e.object,t,n),e.computed===!0&&Q(e.property,t,n);return}case`Property`:case`PropertyDefinition`:case`MethodDefinition`:if(e.computed===!0&&Q(e.key,t,n),n.eagerOnly===!0&&p===`PropertyDefinition`&&e.static!==!0)return;Q(e.value,t,n);return;case`LabeledStatement`:Q(e.body,t,n);return;case`WithStatement`:(f=n.unknownWrite)==null||f.call(n),Q(e.object,t,n),Q(e.body,t,n);return;case`JSXOpeningElement`:case`JSXClosingElement`:{let r=e.name;z(r)&&r.type===`JSXIdentifier`&&l_(r.name)?w_(r,t,n):z(r)&&r.type===`JSXMemberExpression`&&Q(r,t,n),Q(e.attributes,t,n);return}case`JSXMemberExpression`:{let r=e.object;z(r)&&r.type===`JSXIdentifier`?w_(r,t,n):Q(r,t,n);return}case`JSXAttribute`:Q(e.value,t,n);return;case`BreakStatement`:case`ContinueStatement`:case`MetaProperty`:case`JSXIdentifier`:case`JSXNamespacedName`:return;default:a_(e,e=>Q(e,t,n))}}function E_(e,t=!1){let n=/* @__PURE__ */ new Set;return Q(e,/* @__PURE__ */ new Set,{reference:e=>{typeof e.name==`string`&&n.add(e.name)},eagerOnly:t}),n}const D_=/* @__PURE__ */ new Set([`ParenthesizedExpression`,`TSAsExpression`,`TSSatisfiesExpression`,`TSNonNullExpression`,`TSTypeAssertion`,`ChainExpression`]);function O_(e){let t=e.property;if(z(t)){if(e.computed!==!0)return typeof t.name==`string`?t.name:void 0;if(t.type===`Literal`&&(typeof t.value==`string`||typeof t.value==`number`))return String(t.value)}}function k_(e){if(e.computed===!0){let t=e.key;return z(t)&&t.type===`Literal`&&(typeof t.value==`string`||typeof t.value==`number`)?String(t.value):void 0}let t=e.key;if(z(t)&&typeof t.name==`string`)return t.name;if(z(t)&&t.type===`Literal`&&typeof t.value==`string`)return t.value}function A_(e,t){let n=O_(t);if(n===void 0)return`unknown`;let r=j_(e);if(!z(r))return`unknown`;if(r.type===`ObjectExpression`){let e=Array.isArray(r.properties)?r.properties:[],t=`contained`;for(let r of e){if(!z(r))continue;if(r.type===`SpreadElement`){t=`unknown`;continue}if(r.type!==`Property`)continue;let e=k_(r);e===void 0?t=`unknown`:e===n&&(t=r.value)}return t}if(r.type===`ArrayExpression`){if(!/^\d+$/.test(n))return`contained`;let e=Number(n),t=Array.isArray(r.elements)?r.elements:[],i=0;for(let n of t){if(z(n)&&n.type===`SpreadElement`)return`unknown`;if(i===e)return n??`contained`;i+=1}return`contained`}return`unknown`}function j_(e){let t=e;for(;z(t)&&typeof t.type==`string`&&D_.has(t.type);)t=t.expression;return t}function M_(e,t){if(Array.isArray(e))for(let n of e)M_(n,t);else if(z(e)&&typeof e.type==`string`){if(r_.has(e.type)&&Array.isArray(e.params))for(let n of e.params)i_(n,t);if(e.type===`CatchClause`&&i_(e.param,t),e.type===`VariableDeclarator`&&e.init==null&&i_(e.id,t),(e.type===`ForOfStatement`||e.type===`ForInStatement`)&&z(e.left)){let n=e.left;if(n.type===`VariableDeclaration`&&Array.isArray(n.declarations))for(let e of n.declarations)z(e)&&i_(e.id,t)}a_(e,e=>M_(e,t))}}function N_(e,t){if(Array.isArray(e)){for(let n of e)N_(n,t);return}if(!z(e))return;let n=(e,n)=>{let r=/* @__PURE__ */ new Set;i_(e,r);let i=E_(n);for(let e of r){let n=t.get(e)??/* @__PURE__ */ new Set;for(let e of i)n.add(e);t.set(e,n)}};e.type===`VariableDeclarator`&&n(e.id,e.init),e.type===`AssignmentExpression`&&n(j_(e.left),e.right),a_(e,e=>N_(e,t))}const P_=/* @__PURE__ */ new Set([`CallExpression`,`NewExpression`,`TaggedTemplateExpression`]);function F_(e,t){let n=j_(e);if(!z(n))return!1;switch(n.type){case`Identifier`:return typeof n.name==`string`&&t.has(n.name);case`MemberExpression`:return v_(n,n.property)||F_(n.object,t);case`LogicalExpression`:return F_(n.left,t)||F_(n.right,t);case`ConditionalExpression`:return F_(n.consequent,t)||F_(n.alternate,t);case`SequenceExpression`:{let e=Array.isArray(n.expressions)?n.expressions:[];return F_(e[e.length-1],t)}case`AwaitExpression`:case`SpreadElement`:return F_(n.argument,t);case`ArrayExpression`:return Array.isArray(n.elements)?n.elements.some(e=>F_(e,t)):!1;case`ObjectExpression`:return Array.isArray(n.properties)?n.properties.some(e=>z(e)&&F_(e.type===`SpreadElement`?e:e.value,t)):!1;default:return!1}}function I_(e,t){if(Array.isArray(e))for(let n of e)I_(n,t);else z(e)&&(e.type===`VariableDeclarator`&&F_(e.init,t)&&i_(e.id,t),e.type===`AssignmentExpression`&&F_(e.right,t)&&i_(j_(e.left),t),a_(e,e=>I_(e,t)))}const L_=/* @__PURE__ */ new Set([`apply`,`construct`]);function R_(e,t,n){if(Array.isArray(e))return e.some(e=>R_(e,t,n));if(!z(e)||typeof e.type!=`string`||n&&r_.has(e.type))return!1;if(P_.has(e.type)){let n=e.type===`TaggedTemplateExpression`?e.tag:e.callee;if(F_(n,t))return!0;let r=j_(n),i=Array.isArray(e.arguments)?e.arguments:[];if(z(r)&&r.type===`MemberExpression`&&z(r.object)&&r.object.type===`Identifier`&&r.object.name===`Reflect`&&L_.has(m_(r)??``)&&F_(i[0],t))return!0}let r=!1;return a_(e,e=>{r||=R_(e,t,n)}),r}function z_(e){if(Array.isArray(e))return e.some(z_);if(!z(e)||typeof e.type!=`string`||r_.has(e.type))return!1;if(P_.has(e.type))return!0;if(e.type===`PropertyDefinition`&&e.static!==!0)return e.computed===!0&&z_(e.key);let t=!1;return a_(e,e=>{t||=z_(e)}),t}function B_(e,t=!1){let n={reassigned:/* @__PURE__ */ new Set,mutated:/* @__PURE__ */ new Set},r=/* @__PURE__ */ new Map;N_(e,r);let i=/* @__PURE__ */ new Set;M_(e,i);let a=/* @__PURE__ */ new Set,o=-1;for(;a.size!==o;)o=a.size,I_(e,a);R_(e,a,t)&&n.mutated.add(`*`);let s=(e,t,a)=>{if(!t.has(e)){n.mutated.add(e);return}if(a.has(e))return;a.add(e);let o=r.get(e);if(o===void 0||i.has(e))n.mutated.add(`*`);else for(let e of o)s(e,/* @__PURE__ */ new Set,a)},c=(e,t)=>{let r=[],i=j_(e);for(;z(i)&&i.type===`MemberExpression`;)r.push(i),i=j_(i.object);if(z(i)){if(i.type===`ObjectExpression`||i.type===`ArrayExpression`){let e=i;for(let i=r.length-1;i>=0;--i){let a=r[i];if(a===void 0)return;let o=A_(e,a);if(o===`contained`)return;if(o===`unknown`){n.mutated.add(`*`);return}e=o;let s=j_(e);if(!z(s)||s.type!==`ObjectExpression`&&s.type!==`ArrayExpression`){c(e,t);return}e=s}}else switch(i.type){case`Identifier`:typeof i.name==`string`&&s(i.name,t,/* @__PURE__ */ new Set);return;case`ConditionalExpression`:c(i.consequent,t),c(i.alternate,t);return;case`LogicalExpression`:c(i.left,t),c(i.right,t);return;case`SequenceExpression`:{let e=Array.isArray(i.expressions)?i.expressions:[];c(e[e.length-1],t);return}case`ThisExpression`:case`ObjectExpression`:case`ArrayExpression`:case`NewExpression`:case`Literal`:case`TemplateLiteral`:return;default:n.mutated.add(`*`)}}},l=(e,t)=>{let r=j_(e);if(z(r))switch(r.type){case`Identifier`:typeof r.name==`string`&&!t.has(r.name)&&n.reassigned.add(r.name);return;case`MemberExpression`:c(r.object,t);return;case`AssignmentPattern`:l(r.left,t);return;case`RestElement`:l(r.argument,t);return;case`ObjectPattern`:{let e=Array.isArray(r.properties)?r.properties:[];for(let n of e)z(n)&&l(n.type===`RestElement`?n.argument:n.value,t);return}case`ArrayPattern`:{let e=Array.isArray(r.elements)?r.elements:[];for(let n of e)l(n,t);return}default:return}};return Q(e,/* @__PURE__ */ new Set,{reference:()=>void 0,write:l,mutate:c,unknownWrite:()=>{n.mutated.add(`*`)},eagerOnly:t}),n}function V_(e,t=/* @__PURE__ */ new Set){if(Array.isArray(e)){for(let n of e)V_(n,t);return t}if(!z(e))return t;if(e.type===`VariableDeclarator`&&i_(e.id,t),(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`)&&z(e.id)&&typeof e.id.name==`string`&&t.add(e.id.name),Array.isArray(e.params))for(let n of e.params)i_(n,t);return e.type===`CatchClause`&&i_(e.param,t),(e.type===`ImportSpecifier`||e.type===`ImportDefaultSpecifier`||e.type===`ImportNamespaceSpecifier`)&&z(e.local)&&typeof e.local.name==`string`&&t.add(e.local.name),a_(e,e=>V_(e,t)),t}function H_(e){return z(e)&&typeof e.type==`string`?e.type:void 0}function U_(e){return z(e)}const W_=/* @__PURE__ */ new WeakMap;function G_(e){if(typeof e==`string`)return 1+e.length;if(typeof e!=`object`||!e)return 1;let t=W_.get(e);if(t!==void 0)return t;let n=1;if(Array.isArray(e)){for(let t of e)if(n+=G_(t),n>1e5)break}else for(let[t,r]of Object.entries(e))if(n+=t.length+G_(r),n>1e5)break;return W_.set(e,n),n}function K_(e){return G_(e)>1e5?$:{ok:!0,value:e}}function q_(e){return e==null||typeof e==`boolean`||typeof e==`number`}function J_(e){return Object.is(e,-0)?`-0`:Number.isNaN(e)?`0/0`:Number.isFinite(e)?JSON.stringify(e):e>0?`1e999`:`-1e999`}function Y_(e){return e===void 0?`void 0`:e===null?`null`:typeof e==`number`?J_(e):typeof e==`string`||typeof e==`boolean`?JSON.stringify(e):Array.isArray(e)?`[${e.map(e=>Y_(e)).join(`,`)}]`:`{${Object.entries(e).map(([e,t])=>`${e===`__proto__`?`["__proto__"]`:JSON.stringify(e)}:${Y_(t)}`).join(`,`)}}`}function X_(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0,configurable:!0})}function Z_(e){if(H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`)return e.name}function Q_(e){return typeof e!=`object`||!e}const $={ok:!1};function $_(e,t){if(e!==void 0){if(e===t.propsObjectName)return t.failedProps;if(e===t.restName)return t.restFailedProps}}function ev(e){return e==null}function tv(e){return typeof e==`object`&&!!e}function nv(e,t){return e===t?!0:ev(e)||ev(t)?ev(e)&&ev(t):tv(e)||tv(t)?tv(e)&&tv(t)?!1:void 0:typeof e==`boolean`||typeof t==`boolean`?Number(e)===Number(t):typeof e==`number`&&typeof t==`string`?e===Number(t):typeof e==`string`&&typeof t==`number`&&Number(e)===t}function rv(e,t){if(!t.scope.has(e))return $;let n=t.scope.get(e);return{ok:!0,value:n===void 0?void 0:n}}function iv(e,t){if(e.computed===!0){let n=cv(e.key,t);return n.ok&&typeof n.value==`string`?n.value:void 0}let n=Z_(e.key);if(n!==void 0)return n;if(H_(e.key)===`Literal`&&z(e.key)&&typeof e.key.value==`string`)return e.key.value}function av(e,t){return Array.isArray(e)?typeof t!=`number`||!Number.isInteger(t)||t<0?$:t>=e.length?{ok:!0,value:void 0}:{ok:!0,value:e[t]}:!U_(e)||typeof t!=`string`?$:{ok:!0,value:Object.hasOwn(e,t)?e[t]:void 0}}function ov(e,t){let n=/* @__PURE__ */ new Set;i_(e,n);for(let e of n)t.scope.delete(e)}function sv(e,t,n){let r=H_(e);if(r===`Identifier`){let r=Z_(e);r!==void 0&&n.scope.set(r,t)}else if(r===`AssignmentPattern`&&z(e)){let r=t===void 0?cv(e.right,n):{ok:!0,value:t};r.ok?sv(e.left,r.value,n):ov(e.left,n)}else if(r===`ObjectPattern`&&z(e)&&Array.isArray(e.properties)){if(!U_(t)){ov(e,n);return}let r=Object.assign({},t),i=!0;for(let a of e.properties){if(H_(a)===`RestElement`&&z(a)){i?sv(a.argument,r,n):ov(a.argument,n);continue}if(H_(a)!==`Property`||!z(a))continue;let e=iv(a,n);e===void 0?(i=!1,ov(a.value,n)):(delete r[e],sv(a.value,Object.hasOwn(t,e)?t[e]:void 0,n))}}else if(r===`ArrayPattern`&&z(e)&&Array.isArray(e.elements)){if(!Array.isArray(t)){ov(e,n);return}for(let r=0;r<e.elements.length;r++){let i=e.elements[r];if(i!=null){if(H_(i)===`RestElement`&&z(i)){sv(i.argument,t.slice(r),n);break}sv(i,r<t.length?t[r]:void 0,n)}}}}function cv(e,t){if(!z(e))return $;switch(e.type){case`Literal`:{let t=e.value;return typeof t==`string`||typeof t==`number`||typeof t==`boolean`||t===null?{ok:!0,value:t}:$}case`Identifier`:return typeof e.name==`string`?e.name===`undefined`&&!t.scope.has(`undefined`)?{ok:!0,value:void 0}:($_(e.name,t)?.size??0)>0?$:rv(e.name,t):$;case`ParenthesizedExpression`:return cv(e.expression,t);case`MemberExpression`:{if(mv(e.object,t))return $;let n=e.property,r=e.computed===!0?cv(n,t):{ok:!0,value:Z_(n)};if(!r.ok||r.value===void 0)return $;let i=Z_(e.object),a=$_(i,t);if(a!==void 0&&i!==void 0){if(typeof r.value==`string`&&a.has(r.value))return $;let e=rv(i,t);return e.ok?av(e.value,r.value):$}let o=cv(e.object,t);return o.ok?av(o.value,r.value):$}case`ObjectExpression`:{if(!Array.isArray(e.properties))return $;let n={};for(let r of e.properties){if(!z(r))return $;if(r.type===`SpreadElement`){let e=cv(r.argument,t);if(!e.ok)return $;if(q_(e.value))continue;if(!U_(e.value))return $;for(let[t,r]of Object.entries(e.value))X_(n,t,r);continue}if(r.type!==`Property`)return $;let e=iv(r,t);if(e===void 0||e===`__proto__`&&r.computed!==!0&&r.shorthand!==!0)return $;let i=cv(r.value,t);if(!i.ok)return $;X_(n,e,i.value)}return K_(n)}case`ArrayExpression`:{if(!Array.isArray(e.elements))return $;let n=[];for(let r of e.elements){if(r===null)return $;if(z(r)&&r.type===`SpreadElement`){let e=cv(r.argument,t);if(!e.ok||!Array.isArray(e.value)||n.length+e.value.length>1e5)return $;for(let t of e.value)n.push(t);continue}let e=cv(r,t);if(!e.ok)return $;n.push(e.value)}return K_(n)}case`TemplateLiteral`:{let n=Array.isArray(e.quasis)?e.quasis:[],r=Array.isArray(e.expressions)?e.expressions:[],i=``;for(let e=0;e<n.length;e++){let a=n[e],o=z(a)&&z(a.value)&&typeof a.value.cooked==`string`?a.value.cooked:``;if(i+=o,e<r.length){let n=cv(r[e],t);if(!n.ok||typeof n.value==`object`&&n.value!==null)return $;i+=String(n.value)}if(i.length>1e5)return $}return{ok:!0,value:i}}case`BinaryExpression`:{let n=cv(e.left,t),r=cv(e.right,t);if(!n.ok||!r.ok)return $;switch(e.operator){case`+`:if(tv(n.value)||tv(r.value))return $;if(typeof n.value==`string`||typeof r.value==`string`){let e=`${String(n.value)}${String(r.value)}`;return e.length>1e5?$:{ok:!0,value:e}}if(typeof n.value==`number`&&typeof r.value==`number`){let e=n.value+r.value;return Number.isNaN(e)?$:{ok:!0,value:e}}return $;case`===`:return{ok:!0,value:n.value===r.value};case`!==`:return{ok:!0,value:n.value!==r.value};case`==`:case`!=`:{let t=nv(n.value,r.value);return t===void 0?$:{ok:!0,value:e.operator===`==`?t:!t}}default:return $}}case`LogicalExpression`:{let n=cv(e.left,t);if(!n.ok)return $;let r=!!n.value;return e.operator===`&&`?r?cv(e.right,t):n:e.operator===`||`?r?n:cv(e.right,t):e.operator===`??`?n.value===null||n.value===void 0?cv(e.right,t):n:$}case`ConditionalExpression`:{let n=cv(e.test,t);return n.ok?cv(n.value?e.consequent:e.alternate,t):$}case`CallExpression`:return fv(e,t);case`UnaryExpression`:{if(e.operator===`typeof`)return gv(e.argument,t);let n=cv(e.argument,t);if(!n.ok)return $;if(e.operator===`void`)return{ok:!0,value:void 0};if(e.operator===`!`)return{ok:!0,value:!n.value};if(e.operator===`-`||e.operator===`+`){if(typeof n.value==`object`&&n.value!==null)return $;let t=e.operator===`-`?-Number(n.value):Number(n.value);return Number.isNaN(t)?$:{ok:!0,value:t}}return $}default:return $}}function lv(e){return e===void 0||typeof e==`number`&&Number.isFinite(e)}function uv(e,t,n){let[r,i]=n,a=typeof r==`string`?r:void 0;switch(t){case`startsWith`:case`endsWith`:case`includes`:case`indexOf`:case`lastIndexOf`:return a===void 0||!lv(i)?$:{ok:!0,value:e[t](a,i)};case`slice`:case`substring`:return!lv(r)||!lv(i)?$:{ok:!0,value:e[t](r??0,i)};case`at`:case`charAt`:return lv(r)?{ok:!0,value:t===`at`?e.at(r??0):e.charAt(r??0)}:$;case`toLowerCase`:case`toUpperCase`:case`trim`:case`trimStart`:case`trimEnd`:return n.length===0?{ok:!0,value:e[t]()}:$;case`replace`:case`replaceAll`:{if(a===void 0||typeof i!=`string`||i.includes(`$`))return $;let n=a===``?t===`replaceAll`?e.length+1:1:t===`replaceAll`?e.split(a).length-1:Number(e.includes(a));return e.length+n*(i.length-a.length)>1e5?$:{ok:!0,value:e[t](a,i)}}case`split`:return a===void 0||!lv(i)?$:K_(e.split(a,i));case`padStart`:case`padEnd`:return typeof r!=`number`||r>1e5||i!==void 0&&typeof i!=`string`?$:{ok:!0,value:e[t](r,i)};case`repeat`:return typeof r!=`number`||r<0||e.length*r>1e5?$:{ok:!0,value:e.repeat(r)};case`concat`:{if(!n.every(e=>typeof e==`string`||typeof e==`number`))return $;let t=n.map(String);return t.reduce((e,t)=>e+t.length,e.length)>1e5?$:{ok:!0,value:e.concat(...t)}}default:return $}}function dv(e,t,n){let[r,i]=n;switch(t){case`join`:{if(r!==void 0&&typeof r!=`string`||!e.every(e=>typeof e!=`object`||!e))return $;let t=e.map(e=>e==null?``:String(e)),n=r??`,`;return t.reduce((e,t)=>e+t.length,0)+n.length*Math.max(t.length-1,0)>1e5?$:{ok:!0,value:t.join(n)}}case`includes`:case`indexOf`:return typeof r==`object`&&r||!lv(i)?$:{ok:!0,value:e[t](r,i)};case`slice`:return!lv(r)||!lv(i)?$:{ok:!0,value:e.slice(r,i)};case`at`:return lv(r)?{ok:!0,value:e.at(r??0)}:$;default:return $}}function fv(e,t){let n=e.callee;if(H_(n)!==`MemberExpression`||!z(n)||n.optional===!0)return $;let r=n.computed===!0?z(n.property)&&typeof n.property.value==`string`?n.property.value:void 0:Z_(n.property);if(r===void 0||mv(n.object,t))return $;let i=cv(n.object,t);if(!i.ok)return $;let a=Array.isArray(e.arguments)?e.arguments:[],o=[];for(let e of a){if(H_(e)===`SpreadElement`)return $;let n=cv(e,t);if(!n.ok)return $;o.push(n.value)}try{if(typeof i.value==`string`)return uv(i.value,r,o);if(Array.isArray(i.value))return dv(i.value,r,o)}catch{return $}return $}const pv=/* @__PURE__ */ new Set([`window`,`document`,`navigator`,`location`,`history`,`localStorage`,`sessionStorage`,`matchMedia`,`requestAnimationFrame`]);function mv(e,t){if(t.markdownChildren!==!0||!z(e))return!1;if(e.type===`Identifier`)return e.name===t.childrenName&&!(t.failedProps?.has(`children`)??!1);if(e.type!==`MemberExpression`)return!1;let n=Z_(e.object);return hv(e)===`children`&&n!==void 0&&(n===t.propsObjectName||n===t.restName)}function hv(e){if(e.computed!==!0)return Z_(e.property);let t=e.property;return z(t)&&t.type===`Literal`&&typeof t.value==`string`?t.value:void 0}function gv(e,t){if(mv(e,t))return $;if(H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`&&pv.has(e.name)&&!t.scope.has(e.name)&&t.declaredNames!==void 0&&!t.declaredNames.has(e.name))return{ok:!0,value:`undefined`};let n=cv(e,t);if(!n.ok)return $;let r=n.value;return{ok:!0,value:r===null?`object`:typeof r}}function _v(e){let t=H_(e);return t===`ArrowFunctionExpression`||t===`FunctionExpression`||t===`FunctionDeclaration`}function vv(e){if(e.type!==`mdxjsEsm`)return[];let t=e.data?.estree;return!z(t)||!Array.isArray(t.body)?[]:t.body}function yv(e,t){if(Array.isArray(e))for(let n of e)yv(n,t);else if(z(e)){z(e.data)&&e.data.estree!==void 0&&t.push(e.data.estree);for(let[n,r]of Object.entries(e))n!==`data`&&n!==`position`&&yv(r,t)}}function bv(e){for(let[t,n]of e)typeof n==`object`&&n&&e.delete(t)}function xv(e,t){let{reassigned:n,mutated:r}=B_(e,!0);return n.size>0||r.size>0||t&&z_(e)}function Sv(e){let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=[],a=e.children.flatMap(vv),o=(e,n)=>{let r=Array.isArray(n.params)?n.params:[];t.set(e,{params:r,body:n.body})},s=(e,t)=>{if(H_(e)!==`VariableDeclarator`||!z(e))return;xv(e,f)&&bv(n);let i=e.init,a=Z_(e.id);if(a!==void 0&&_v(i)&&z(i)){o(a,i);return}if(t!==`const`)return;let s=cv(i,{scope:r,declaredNames:l});if(s.ok){let t=new Map(r);sv(e.id,s.value,{scope:t});let n=/* @__PURE__ */ new Set;i_(e.id,n);for(let e of n){if(!t.has(e))continue;let n=t.get(e),i=n===void 0?void 0:n;Q_(i)&&r.set(e,i)}}let c=cv(i,{scope:n,declaredNames:l});c.ok&&sv(e.id,c.value,{scope:n})},c=[];yv(e,c);let l=V_(c),{reassigned:u,mutated:d}=B_(c),f=u.size>0||d.size>0;for(let e of a)if(z(e)){if(!(e.type===`VariableDeclaration`||e.type===`ExportNamedDeclaration`&&z(e.declaration)&&e.declaration.type===`VariableDeclaration`)&&xv(e,f)&&bv(n),e.type===`VariableDeclaration`){let t=Array.isArray(e.declarations)?e.declarations:[];for(let n of t)s(n,e.kind)}else if(e.type===`FunctionDeclaration`){let t=e.id;H_(t)===`Identifier`&&z(t)&&typeof t.name==`string`&&o(t.name,e)}else{if(e.type===`ExportNamedDeclaration`){let t=e.declaration;if(H_(t)===`VariableDeclaration`&&z(t)){let e=Array.isArray(t.declarations)?t.declarations:[];for(let n of e)s(n,t.kind)}if(H_(t)===`FunctionDeclaration`&&z(t)){let e=t.id;H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`&&o(e.name,t)}if(e.source!=null)continue;let n=Array.isArray(e.specifiers)?e.specifiers:[];for(let e of n){if(H_(e)!==`ExportSpecifier`||!z(e))continue;let t=e.local,n=e.exported;z(t)&&typeof t.name==`string`&&z(n)&&typeof n.name==`string`&&i.push([t.name,n.name])}}if(e.type===`ExportDefaultDeclaration`){let t=e.declaration;if(_v(t)&&z(t)){let e=t.id;H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`&&o(e.name,t)}}}}for(let e of u)n.delete(e),r.delete(e),t.delete(e);d.size>0&&bv(n);let p=!0;for(;p;){p=!1;for(let[e,a]of i){let i=t.get(e);if(i&&!t.has(a)&&(t.set(a,i),p=!0),n.has(e)&&!n.has(a)){let t=n.get(e);n.set(a,t===void 0?void 0:t),p=!0}if(r.has(e)&&!r.has(a)){let t=r.get(e);r.set(a,t===void 0?void 0:t),p=!0}}}return{defs:t,moduleScope:n,literalScope:r,declaredNames:l}}const Cv=[`animate`,`animateMotion`,`animateTransform`,`mpath`,`set`],wv=e=>e.type===`mdxjsEsm`;function Tv(e){return e.data?.estree!=null}const Ev=e=>e.type===`ImportDeclaration`,Dv=e=>[`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`].includes(e),Ov=e=>e.type===`mdxJsxFlowElement`,kv=e=>e instanceof Object&&`type`in e&&(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`),Av=e=>Ov(e)&&e.name==null,jv=(e,t)=>`${e}_${t}`,Mv=(e,t)=>{if(t&&t.value&&typeof t.value==`object`&&(t.value.data?.estree)?.body.length===1){let n=t.value.data.estree.body[0];if(n?.type===`ExpressionStatement`&&n.expression.type===`ObjectExpression`){let t=n.expression.properties.find(t=>t.type===`Property`&&t.key.type===`Identifier`&&t.key.name===e);if(t&&t.type===`Property`&&t.value.type===`Literal`)return t.value.value?.toString()}}},Nv=e=>{let t=[];if(!e||!e.value||typeof e.value!=`object`)return t;if((e.value.data?.estree)?.body.length===1){let n=e.value.data.estree.body[0];n?.type===`ExpressionStatement`&&n.expression.type===`ArrayExpression`&&n.expression.elements.map(e=>{e?.type===`Literal`&&typeof e.value==`string`&&t.push(e.value)})}return t},Pv=[`ApiPlayground`,`Accordion`,`AccordionGroup`,`Badge`,`Callout`,`CodeGroup`,`CodeBlock`,`Color`,`Color.Row`,`Color.Item`,`CustomCode`,`CustomComponent`,`DynamicCustomComponent`,`Danger`,`Tile`,`Tree`,`Tree.Folder`,`Tree.File`,`Table`,`Table.Header`,`Table.Body`,`Table.Row`,`Table.HeaderCell`,`Table.RowHeader`,`Table.Cell`,`FileTree`,`SnippetGroup`,`Panel`,`RequestExample`,`ResponseExample`,`Param`,`ParamField`,`Prompt`,`Quote`,`Card`,`CardGroup`,`Columns`,`Column`,`Expandable`,`Frame`,`GitHub`,`GitHub.Repo`,`Github`,`Github.Repo`,`Heading`,`Info`,`Icon`,`MDX`,`Link`,`MDXContentController`,`ResponseField`,`Warning`,`Note`,`Tip`,`Check`,`Tabs`,`Tab`,`Tooltip`,`Latex`,`Step`,`Steps`,`Update`,`a`,`b`,`br`,`button`,`clipPath`,`col`,`colgroup`,`defs`,`div`,`form`,`g`,`h1`,`h2`,`h3`,`h4`,`head`,`hr`,`iframe`,`img`,`input`,`label`,`li`,`link`,`ol`,`p`,`path`,`picture`,`rect`,`script`,`section`,`source`,`span`,`sub`,`sup`,`u`,`svg`,...Cv,`table`,`tbody`,`td`,`th`,`thead`,`tr`,`track`,`ul`,`video`,`code`,`kbd`,`pre`,`ZoomImage`,`OptimizedVideo`,`Mermaid`,`Variation`,`Visibility`,`View`,`zapier-zap-templates`];export{ja as $,Zf as A,gt as At,Gd as B,e_ as C,ut as Ct,Gp as D,xt as Dt,Wp as E,bt as Et,ff as F,_ as Ft,nl as G,Ju as H,W as I,g as It,Pc as J,Hc as K,rf as L,p as Lt,Lf as M,F as Mt,kf as N,_t as Nt,lp as O,mt as Ot,yf as P,I as Pt,hc as Q,nf as R,f as Rt,t_ as S,ft as St,zg as T,St as Tt,_u as U,rd as V,_l as W,vc as X,Dc as Y,gc as Z,i_ as _,Tt as _t,Mv as a,la as at,Bg as b,pt as bt,wv as c,z as ct,Av as d,ur as dt,ka as et,Sv as f,Bt as ft,E_ as g,Ot as gt,Y_ as h,At as ht,Nv as i,pa as it,Yf as j,yt as jt,Xf as k,dt as kt,kv as l,Vi as lt,H_ as m,Nt as mt,jv as n,Ca as nt,Dv as o,ma as ot,cv as p,zt as pt,Fc as q,Tv as r,ha as rt,Ev as s,fa as st,Pv as t,Ea as tt,Ov as u,_r as ut,a_ as v,wt as vt,Xg as w,vt as wt,Zg as x,ht as xt,Q as y,Ct as yt,tf as z};
|
|
277
|
+
`),sourceLines:i}}function $g(e,t){let n=e.replace(Wg,e=>` `.repeat(e.length)),r=``,i=0;for(;;){if(t){let n=e.indexOf(`*/`,i);if(n===-1)return{visible:r,inComment:t};i=n+2}let a=n.indexOf(`{/*`,i);if(a===-1)return{visible:r+e.slice(i),inComment:!1};r+=e.slice(i,a),i=a+3,t=!0}}function e_(e){let t=e[0];if(t!=="`"&&t!==`~`)return;let n=1;for(;n<e.length&&e[n]===t;)n++;if(!(n<3))return{char:t,count:n}}function t_(e,t,n){let r=0;for(;r<e.length&&e[r]===t;)r++;if(r<n)return!1;for(;r<e.length;r++)if(e[r]!==` `&&e[r]!==` `&&e[r]!==`\r`)return!1;return!0}const n_=/* @__PURE__ */ new Set([`loc`,`range`,`start`,`end`,`comments`,`leadingComments`,`trailingComments`]),r_=/* @__PURE__ */ new Set([`ArrowFunctionExpression`,`FunctionExpression`,`FunctionDeclaration`]);function i_(e,t){if(!z(e))return;let n=e.type;if(n===`Identifier`)typeof e.name==`string`&&t.add(e.name);else if(n===`AssignmentPattern`)i_(e.left,t);else if(n===`RestElement`)i_(e.argument,t);else if(n===`ObjectPattern`&&Array.isArray(e.properties))for(let n of e.properties)z(n)&&(n.type===`RestElement`?i_(n.argument,t):n.type===`Property`&&i_(n.value,t));else if(n===`ArrayPattern`&&Array.isArray(e.elements))for(let n of e.elements)i_(n,t)}function a_(e,t){for(let[n,r]of Object.entries(e))n_.has(n)||t(r)}function o_(e,t){if(Array.isArray(e))for(let n of e)o_(n,t);else if(z(e)&&typeof e.type==`string`&&!(r_.has(e.type)||e.type===`ClassBody`)){if(e.type===`VariableDeclaration`&&e.kind===`var`){let n=Array.isArray(e.declarations)?e.declarations:[];for(let e of n)z(e)&&i_(e.id,t)}a_(e,e=>o_(e,t))}}function s_(e){let t=/* @__PURE__ */ new Set;for(let n of e)if(z(n)){if(n.type===`VariableDeclaration`&&n.kind!==`var`){let e=Array.isArray(n.declarations)?n.declarations:[];for(let n of e)z(n)&&i_(n.id,t)}else(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&z(n.id)&&typeof n.id.name==`string`&&t.add(n.id.name)}return t}function c_(e,t){let n=new Set(e);for(let e of t)n.add(e);return n}function l_(e){return typeof e==`string`&&!/^[a-z]/.test(e)&&!e.includes(`-`)}const u_=/* @__PURE__ */ new Set([`push`,`pop`,`shift`,`unshift`,`splice`,`sort`,`reverse`,`fill`,`copyWithin`,`set`,`add`,`delete`,`clear`,`__defineGetter__`,`__defineSetter__`]),d_=/* @__PURE__ */ new Set([`assign`,`defineProperty`,`defineProperties`,`setPrototypeOf`]),f_=/* @__PURE__ */ new Map([[`Object`,d_],[`Reflect`,/* @__PURE__ */ new Set([`set`,`defineProperty`,`deleteProperty`,`setPrototypeOf`])]]);function p_(e){return e===`constructor`||d_.has(e)}function m_(e){let t=e.property;if(z(t))return e.computed!==!0&&typeof t.name==`string`?t.name:t.type===`Literal`&&typeof t.value==`string`?t.value:void 0}const h_=/* @__PURE__ */ new Set([`globalThis`,`window`,`self`,`global`]),g_=/* @__PURE__ */ new Set([`Object`,`Reflect`,`Function`,`eval`,...h_]),__=/* @__PURE__ */ new WeakSet;function v_(e,t){let n=z(t)&&t.type===`Literal`&&(typeof t.value==`string`||typeof t.value==`number`);return e.computed===!0&&!n}function y_(e){let t=j_(e);for(;z(t)&&t.type===`MemberExpression`;){if(v_(t,t.property))return!0;t=j_(t.object)}return!1}function b_(e,t){var n;if(z(e))switch(e.type){case`AssignmentPattern`:b_(e.left,t);return;case`RestElement`:b_(e.argument,t);return;case`ArrayPattern`:if(Array.isArray(e.elements))for(let n of e.elements)b_(n,t);return;case`ObjectPattern`:{let r=Array.isArray(e.properties)?e.properties:[];for(let e of r){if(!z(e))continue;if(e.type===`RestElement`){b_(e.argument,t);continue}let r=e.key,i=e.computed!==!0&&z(r)&&typeof r.name==`string`?r.name:z(r)&&r.type===`Literal`?String(r.value):void 0;(v_(e,r)||i!==void 0&&(p_(i)||g_.has(i)))&&((n=t.unknownWrite)==null||n.call(t)),b_(e.value,t)}return}default:return}}const x_=/* @__PURE__ */ new WeakSet;function S_(e){let t=e.callee;if(!z(t)||t.type!==`MemberExpression`)return;let n=t.object;m_(t)!==void 0&&z(n)&&n.type===`Identifier`&&typeof n.name==`string`&&f_.has(n.name)&&x_.add(n)}function C_(e){let t=e.callee;if(!z(t)||t.type!==`MemberExpression`)return;let n=m_(t);if(n===void 0)return;let r=t.object;if(z(r)&&r.type===`Identifier`&&typeof r.name==`string`){let t=f_.get(r.name);if(t!==void 0)return t.has(n)&&Array.isArray(e.arguments)?e.arguments[0]:void 0}return u_.has(n)?r:void 0}function w_(e,t,n){var r;z(e)&&typeof e.name==`string`&&!t.has(e.name)&&((e.name===`eval`||e.name===`Function`||h_.has(e.name)&&!__.has(e)||f_.has(e.name)&&!x_.has(e))&&((r=n.unknownWrite)==null||r.call(n)),n.reference(e))}function T_(e,t,n){if(z(e))switch(e.type){case`AssignmentPattern`:T_(e.left,t,n),Q(e.right,t,n);return;case`RestElement`:T_(e.argument,t,n);return;case`ObjectPattern`:{let r=Array.isArray(e.properties)?e.properties:[];for(let e of r)z(e)&&(e.type===`RestElement`?T_(e.argument,t,n):(e.computed===!0&&Q(e.key,t,n),T_(e.value,t,n)));return}case`ArrayPattern`:{let r=Array.isArray(e.elements)?e.elements:[];for(let e of r)T_(e,t,n);return}case`MemberExpression`:Q(e,t,n);return;default:return}}function Q(e,t,n){var r,i,a,o,s,c,l,u,d,f;if(Array.isArray(e)){for(let r of e)Q(r,t,n);return}if(!z(e)||typeof e.type!=`string`)return;let p=e.type;if(r_.has(p)){if(n.eagerOnly===!0)return;let r=Array.isArray(e.params)?e.params:[],i=/* @__PURE__ */ new Set;for(let e of r)i_(e,i);p===`FunctionExpression`&&z(e.id)&&typeof e.id.name==`string`&&i.add(e.id.name);let a=c_(t,i);for(let e of r)b_(e,n),T_(e,a,n);let o=/* @__PURE__ */ new Set;o_(e.body,o);let s=e.body,c=z(s)&&Array.isArray(s.body)?s.body:void 0;if(c!==void 0)for(let e of s_(c))o.add(e);Q(c??s,c_(a,o),n)}else switch(p){case`Identifier`:w_(e,t,n);return;case`AssignmentExpression`:(r=n.write)==null||r.call(n,e.left,t),b_(e.left,n),Q(e.left,t,n),Q(e.right,t,n);return;case`UpdateExpression`:(i=n.write)==null||i.call(n,e.argument,t),Q(e.argument,t,n);return;case`UnaryExpression`:if(e.operator===`delete`){let r=j_(e.argument);z(r)&&r.type===`MemberExpression`&&((a=n.mutate)==null||a.call(n,r.object,t))}Q(e.argument,t,n);return;case`CallExpression`:{let r=C_(e);r!==void 0&&((o=n.mutate)==null||o.call(n,r,t)),y_(e.callee)&&((s=n.unknownWrite)==null||s.call(n)),S_(e),a_(e,e=>Q(e,t,n));return}case`NewExpression`:case`TaggedTemplateExpression`:y_(p===`NewExpression`?e.callee:e.tag)&&((c=n.unknownWrite)==null||c.call(n)),a_(e,e=>Q(e,t,n));return;case`ClassDeclaration`:case`ClassExpression`:{Q(e.superClass,t,n);let r=p===`ClassExpression`&&z(e.id)&&typeof e.id.name==`string`?[e.id.name]:[];Q(e.body,c_(t,r),n);return}case`BlockStatement`:case`StaticBlock`:{let r=Array.isArray(e.body)?e.body:[];Q(r,c_(t,s_(r)),n);return}case`SwitchStatement`:{Q(e.discriminant,t,n);let r=Array.isArray(e.cases)?e.cases:[];Q(r,c_(t,s_(r.flatMap(e=>z(e)&&Array.isArray(e.consequent)?e.consequent:[]))),n);return}case`ForStatement`:{let r=c_(t,s_([e.init]));a_(e,e=>Q(e,r,n));return}case`ForInStatement`:case`ForOfStatement`:{let r=e.left,i=c_(t,s_([r]));Q(e.right,t,n),z(r)&&r.type===`VariableDeclaration`?Q(r,i,n):((l=n.write)==null||l.call(n,r,t),b_(r,n),Q(r,t,n)),Q(e.body,i,n);return}case`CatchClause`:{let r=/* @__PURE__ */ new Set;i_(e.param,r);let i=c_(t,r);b_(e.param,n),T_(e.param,i,n),Q(e.body,i,n);return}case`VariableDeclarator`:b_(e.id,n),T_(e.id,t,n),Q(e.init,t,n);return;case`MemberExpression`:{let r=m_(e),i=e.object,a=z(i)&&i.type===`Identifier`&&typeof i.name==`string`&&f_.has(i.name);r!==void 0&&p_(r)&&!a&&((u=n.unknownWrite)==null||u.call(n)),r!==void 0&&g_.has(r)&&((d=n.unknownWrite)==null||d.call(n)),r!==void 0&&!p_(r)&&z(i)&&i.type===`Identifier`&&typeof i.name==`string`&&h_.has(i.name)&&__.add(i),Q(e.object,t,n),e.computed===!0&&Q(e.property,t,n);return}case`Property`:case`PropertyDefinition`:case`MethodDefinition`:if(e.computed===!0&&Q(e.key,t,n),n.eagerOnly===!0&&p===`PropertyDefinition`&&e.static!==!0)return;Q(e.value,t,n);return;case`LabeledStatement`:Q(e.body,t,n);return;case`WithStatement`:(f=n.unknownWrite)==null||f.call(n),Q(e.object,t,n),Q(e.body,t,n);return;case`JSXOpeningElement`:case`JSXClosingElement`:{let r=e.name;z(r)&&r.type===`JSXIdentifier`&&l_(r.name)?w_(r,t,n):z(r)&&r.type===`JSXMemberExpression`&&Q(r,t,n),Q(e.attributes,t,n);return}case`JSXMemberExpression`:{let r=e.object;z(r)&&r.type===`JSXIdentifier`?w_(r,t,n):Q(r,t,n);return}case`JSXAttribute`:Q(e.value,t,n);return;case`BreakStatement`:case`ContinueStatement`:case`MetaProperty`:case`JSXIdentifier`:case`JSXNamespacedName`:return;default:a_(e,e=>Q(e,t,n))}}function E_(e,t=!1){let n=/* @__PURE__ */ new Set;return Q(e,/* @__PURE__ */ new Set,{reference:e=>{typeof e.name==`string`&&n.add(e.name)},eagerOnly:t}),n}const D_=/* @__PURE__ */ new Set([`ParenthesizedExpression`,`TSAsExpression`,`TSSatisfiesExpression`,`TSNonNullExpression`,`TSTypeAssertion`,`ChainExpression`]);function O_(e){let t=e.property;if(z(t)){if(e.computed!==!0)return typeof t.name==`string`?t.name:void 0;if(t.type===`Literal`&&(typeof t.value==`string`||typeof t.value==`number`))return String(t.value)}}function k_(e){if(e.computed===!0){let t=e.key;return z(t)&&t.type===`Literal`&&(typeof t.value==`string`||typeof t.value==`number`)?String(t.value):void 0}let t=e.key;if(z(t)&&typeof t.name==`string`)return t.name;if(z(t)&&t.type===`Literal`&&typeof t.value==`string`)return t.value}function A_(e,t){let n=O_(t);if(n===void 0)return`unknown`;let r=j_(e);if(!z(r))return`unknown`;if(r.type===`ObjectExpression`){let e=Array.isArray(r.properties)?r.properties:[],t=`contained`;for(let r of e){if(!z(r))continue;if(r.type===`SpreadElement`){t=`unknown`;continue}if(r.type!==`Property`)continue;let e=k_(r);e===void 0?t=`unknown`:e===n&&(t=r.value)}return t}if(r.type===`ArrayExpression`){if(!/^\d+$/.test(n))return`contained`;let e=Number(n),t=Array.isArray(r.elements)?r.elements:[],i=0;for(let n of t){if(z(n)&&n.type===`SpreadElement`)return`unknown`;if(i===e)return n??`contained`;i+=1}return`contained`}return`unknown`}function j_(e){let t=e;for(;z(t)&&typeof t.type==`string`&&D_.has(t.type);)t=t.expression;return t}function M_(e,t){if(Array.isArray(e))for(let n of e)M_(n,t);else if(z(e)&&typeof e.type==`string`){if(r_.has(e.type)&&Array.isArray(e.params))for(let n of e.params)i_(n,t);if(e.type===`CatchClause`&&i_(e.param,t),e.type===`VariableDeclarator`&&e.init==null&&i_(e.id,t),(e.type===`ForOfStatement`||e.type===`ForInStatement`)&&z(e.left)){let n=e.left;if(n.type===`VariableDeclaration`&&Array.isArray(n.declarations))for(let e of n.declarations)z(e)&&i_(e.id,t)}a_(e,e=>M_(e,t))}}function N_(e,t){if(Array.isArray(e)){for(let n of e)N_(n,t);return}if(!z(e))return;let n=(e,n)=>{let r=/* @__PURE__ */ new Set;i_(e,r);let i=E_(n);for(let e of r){let n=t.get(e)??/* @__PURE__ */ new Set;for(let e of i)n.add(e);t.set(e,n)}};e.type===`VariableDeclarator`&&n(e.id,e.init),e.type===`AssignmentExpression`&&n(j_(e.left),e.right),a_(e,e=>N_(e,t))}const P_=/* @__PURE__ */ new Set([`CallExpression`,`NewExpression`,`TaggedTemplateExpression`]);function F_(e,t){let n=j_(e);if(!z(n))return!1;switch(n.type){case`Identifier`:return typeof n.name==`string`&&t.has(n.name);case`MemberExpression`:return v_(n,n.property)||F_(n.object,t);case`LogicalExpression`:return F_(n.left,t)||F_(n.right,t);case`ConditionalExpression`:return F_(n.consequent,t)||F_(n.alternate,t);case`SequenceExpression`:{let e=Array.isArray(n.expressions)?n.expressions:[];return F_(e[e.length-1],t)}case`AwaitExpression`:case`SpreadElement`:return F_(n.argument,t);case`ArrayExpression`:return Array.isArray(n.elements)?n.elements.some(e=>F_(e,t)):!1;case`ObjectExpression`:return Array.isArray(n.properties)?n.properties.some(e=>z(e)&&F_(e.type===`SpreadElement`?e:e.value,t)):!1;default:return!1}}function I_(e,t){if(Array.isArray(e))for(let n of e)I_(n,t);else z(e)&&(e.type===`VariableDeclarator`&&F_(e.init,t)&&i_(e.id,t),e.type===`AssignmentExpression`&&F_(e.right,t)&&i_(j_(e.left),t),a_(e,e=>I_(e,t)))}const L_=/* @__PURE__ */ new Set([`apply`,`construct`]);function R_(e,t,n){if(Array.isArray(e))return e.some(e=>R_(e,t,n));if(!z(e)||typeof e.type!=`string`||n&&r_.has(e.type))return!1;if(P_.has(e.type)){let n=e.type===`TaggedTemplateExpression`?e.tag:e.callee;if(F_(n,t))return!0;let r=j_(n),i=Array.isArray(e.arguments)?e.arguments:[];if(z(r)&&r.type===`MemberExpression`&&z(r.object)&&r.object.type===`Identifier`&&r.object.name===`Reflect`&&L_.has(m_(r)??``)&&F_(i[0],t))return!0}let r=!1;return a_(e,e=>{r||=R_(e,t,n)}),r}function z_(e){if(Array.isArray(e))return e.some(z_);if(!z(e)||typeof e.type!=`string`||r_.has(e.type))return!1;if(P_.has(e.type))return!0;if(e.type===`PropertyDefinition`&&e.static!==!0)return e.computed===!0&&z_(e.key);let t=!1;return a_(e,e=>{t||=z_(e)}),t}function B_(e,t=!1){let n={reassigned:/* @__PURE__ */ new Set,mutated:/* @__PURE__ */ new Set},r=/* @__PURE__ */ new Map;N_(e,r);let i=/* @__PURE__ */ new Set;M_(e,i);let a=/* @__PURE__ */ new Set,o=-1;for(;a.size!==o;)o=a.size,I_(e,a);R_(e,a,t)&&n.mutated.add(`*`);let s=(e,t,a)=>{if(!t.has(e)){n.mutated.add(e);return}if(a.has(e))return;a.add(e);let o=r.get(e);if(o===void 0||i.has(e))n.mutated.add(`*`);else for(let e of o)s(e,/* @__PURE__ */ new Set,a)},c=(e,t)=>{let r=[],i=j_(e);for(;z(i)&&i.type===`MemberExpression`;)r.push(i),i=j_(i.object);if(z(i)){if(i.type===`ObjectExpression`||i.type===`ArrayExpression`){let e=i;for(let i=r.length-1;i>=0;--i){let a=r[i];if(a===void 0)return;let o=A_(e,a);if(o===`contained`)return;if(o===`unknown`){n.mutated.add(`*`);return}e=o;let s=j_(e);if(!z(s)||s.type!==`ObjectExpression`&&s.type!==`ArrayExpression`){c(e,t);return}e=s}}else switch(i.type){case`Identifier`:typeof i.name==`string`&&s(i.name,t,/* @__PURE__ */ new Set);return;case`ConditionalExpression`:c(i.consequent,t),c(i.alternate,t);return;case`LogicalExpression`:c(i.left,t),c(i.right,t);return;case`SequenceExpression`:{let e=Array.isArray(i.expressions)?i.expressions:[];c(e[e.length-1],t);return}case`ThisExpression`:case`ObjectExpression`:case`ArrayExpression`:case`NewExpression`:case`Literal`:case`TemplateLiteral`:return;default:n.mutated.add(`*`)}}},l=(e,t)=>{let r=j_(e);if(z(r))switch(r.type){case`Identifier`:typeof r.name==`string`&&!t.has(r.name)&&n.reassigned.add(r.name);return;case`MemberExpression`:c(r.object,t);return;case`AssignmentPattern`:l(r.left,t);return;case`RestElement`:l(r.argument,t);return;case`ObjectPattern`:{let e=Array.isArray(r.properties)?r.properties:[];for(let n of e)z(n)&&l(n.type===`RestElement`?n.argument:n.value,t);return}case`ArrayPattern`:{let e=Array.isArray(r.elements)?r.elements:[];for(let n of e)l(n,t);return}default:return}};return Q(e,/* @__PURE__ */ new Set,{reference:()=>void 0,write:l,mutate:c,unknownWrite:()=>{n.mutated.add(`*`)},eagerOnly:t}),n}function V_(e,t=/* @__PURE__ */ new Set){if(Array.isArray(e)){for(let n of e)V_(n,t);return t}if(!z(e))return t;if(e.type===`VariableDeclarator`&&i_(e.id,t),(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`)&&z(e.id)&&typeof e.id.name==`string`&&t.add(e.id.name),Array.isArray(e.params))for(let n of e.params)i_(n,t);return e.type===`CatchClause`&&i_(e.param,t),(e.type===`ImportSpecifier`||e.type===`ImportDefaultSpecifier`||e.type===`ImportNamespaceSpecifier`)&&z(e.local)&&typeof e.local.name==`string`&&t.add(e.local.name),a_(e,e=>V_(e,t)),t}function H_(e){return z(e)&&typeof e.type==`string`?e.type:void 0}function U_(e){return z(e)}const W_=/* @__PURE__ */ new WeakMap;function G_(e){if(typeof e==`string`)return 1+e.length;if(typeof e!=`object`||!e)return 1;let t=W_.get(e);if(t!==void 0)return t;let n=1;if(Array.isArray(e)){for(let t of e)if(n+=G_(t),n>1e5)break}else for(let[t,r]of Object.entries(e))if(n+=t.length+G_(r),n>1e5)break;return W_.set(e,n),n}function K_(e){return G_(e)>1e5?$:{ok:!0,value:e}}function q_(e){return e==null||typeof e==`boolean`||typeof e==`number`}function J_(e){return Object.is(e,-0)?`-0`:Number.isNaN(e)?`0/0`:Number.isFinite(e)?JSON.stringify(e):e>0?`1e999`:`-1e999`}function Y_(e){return e===void 0?`void 0`:e===null?`null`:typeof e==`number`?J_(e):typeof e==`string`||typeof e==`boolean`?JSON.stringify(e):Array.isArray(e)?`[${e.map(e=>Y_(e)).join(`,`)}]`:`{${Object.entries(e).map(([e,t])=>`${e===`__proto__`?`["__proto__"]`:JSON.stringify(e)}:${Y_(t)}`).join(`,`)}}`}function X_(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0,configurable:!0})}function Z_(e){if(H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`)return e.name}function Q_(e){return typeof e!=`object`||!e}const $={ok:!1};function $_(e,t){if(e!==void 0){if(e===t.propsObjectName)return t.failedProps;if(e===t.restName)return t.restFailedProps}}function ev(e){return e==null}function tv(e){return typeof e==`object`&&!!e}function nv(e,t){return e===t?!0:ev(e)||ev(t)?ev(e)&&ev(t):tv(e)||tv(t)?tv(e)&&tv(t)?!1:void 0:typeof e==`boolean`||typeof t==`boolean`?Number(e)===Number(t):typeof e==`number`&&typeof t==`string`?e===Number(t):typeof e==`string`&&typeof t==`number`&&Number(e)===t}function rv(e,t){if(!t.scope.has(e))return $;let n=t.scope.get(e);return{ok:!0,value:n===void 0?void 0:n}}function iv(e,t){if(e.computed===!0){let n=cv(e.key,t);return n.ok&&typeof n.value==`string`?n.value:void 0}let n=Z_(e.key);if(n!==void 0)return n;if(H_(e.key)===`Literal`&&z(e.key)&&typeof e.key.value==`string`)return e.key.value}function av(e,t){return Array.isArray(e)?typeof t!=`number`||!Number.isInteger(t)||t<0?$:t>=e.length?{ok:!0,value:void 0}:{ok:!0,value:e[t]}:!U_(e)||typeof t!=`string`?$:{ok:!0,value:Object.hasOwn(e,t)?e[t]:void 0}}function ov(e,t){let n=/* @__PURE__ */ new Set;i_(e,n);for(let e of n)t.scope.delete(e)}function sv(e,t,n){let r=H_(e);if(r===`Identifier`){let r=Z_(e);r!==void 0&&n.scope.set(r,t)}else if(r===`AssignmentPattern`&&z(e)){let r=t===void 0?cv(e.right,n):{ok:!0,value:t};r.ok?sv(e.left,r.value,n):ov(e.left,n)}else if(r===`ObjectPattern`&&z(e)&&Array.isArray(e.properties)){if(!U_(t)){ov(e,n);return}let r=Object.assign({},t),i=!0;for(let a of e.properties){if(H_(a)===`RestElement`&&z(a)){i?sv(a.argument,r,n):ov(a.argument,n);continue}if(H_(a)!==`Property`||!z(a))continue;let e=iv(a,n);e===void 0?(i=!1,ov(a.value,n)):(delete r[e],sv(a.value,Object.hasOwn(t,e)?t[e]:void 0,n))}}else if(r===`ArrayPattern`&&z(e)&&Array.isArray(e.elements)){if(!Array.isArray(t)){ov(e,n);return}for(let r=0;r<e.elements.length;r++){let i=e.elements[r];if(i!=null){if(H_(i)===`RestElement`&&z(i)){sv(i.argument,t.slice(r),n);break}sv(i,r<t.length?t[r]:void 0,n)}}}}function cv(e,t){if(!z(e))return $;switch(e.type){case`Literal`:{let t=e.value;return typeof t==`string`||typeof t==`number`||typeof t==`boolean`||t===null?{ok:!0,value:t}:$}case`Identifier`:return typeof e.name==`string`?e.name===`undefined`&&!t.scope.has(`undefined`)?{ok:!0,value:void 0}:($_(e.name,t)?.size??0)>0?$:rv(e.name,t):$;case`ParenthesizedExpression`:return cv(e.expression,t);case`MemberExpression`:{if(mv(e.object,t))return $;let n=e.property,r=e.computed===!0?cv(n,t):{ok:!0,value:Z_(n)};if(!r.ok||r.value===void 0)return $;let i=Z_(e.object),a=$_(i,t);if(a!==void 0&&i!==void 0){if(typeof r.value==`string`&&a.has(r.value))return $;let e=rv(i,t);return e.ok?av(e.value,r.value):$}let o=cv(e.object,t);return o.ok?av(o.value,r.value):$}case`ObjectExpression`:{if(!Array.isArray(e.properties))return $;let n={};for(let r of e.properties){if(!z(r))return $;if(r.type===`SpreadElement`){let e=cv(r.argument,t);if(!e.ok)return $;if(q_(e.value))continue;if(!U_(e.value))return $;for(let[t,r]of Object.entries(e.value))X_(n,t,r);continue}if(r.type!==`Property`)return $;let e=iv(r,t);if(e===void 0||e===`__proto__`&&r.computed!==!0&&r.shorthand!==!0)return $;let i=cv(r.value,t);if(!i.ok)return $;X_(n,e,i.value)}return K_(n)}case`ArrayExpression`:{if(!Array.isArray(e.elements))return $;let n=[];for(let r of e.elements){if(r===null)return $;if(z(r)&&r.type===`SpreadElement`){let e=cv(r.argument,t);if(!e.ok||!Array.isArray(e.value)||n.length+e.value.length>1e5)return $;for(let t of e.value)n.push(t);continue}let e=cv(r,t);if(!e.ok)return $;n.push(e.value)}return K_(n)}case`TemplateLiteral`:{let n=Array.isArray(e.quasis)?e.quasis:[],r=Array.isArray(e.expressions)?e.expressions:[],i=``;for(let e=0;e<n.length;e++){let a=n[e],o=z(a)&&z(a.value)&&typeof a.value.cooked==`string`?a.value.cooked:``;if(i+=o,e<r.length){let n=cv(r[e],t);if(!n.ok||typeof n.value==`object`&&n.value!==null)return $;i+=String(n.value)}if(i.length>1e5)return $}return{ok:!0,value:i}}case`BinaryExpression`:{let n=cv(e.left,t),r=cv(e.right,t);if(!n.ok||!r.ok)return $;switch(e.operator){case`+`:if(tv(n.value)||tv(r.value))return $;if(typeof n.value==`string`||typeof r.value==`string`){let e=`${String(n.value)}${String(r.value)}`;return e.length>1e5?$:{ok:!0,value:e}}if(typeof n.value==`number`&&typeof r.value==`number`){let e=n.value+r.value;return Number.isNaN(e)?$:{ok:!0,value:e}}return $;case`===`:return{ok:!0,value:n.value===r.value};case`!==`:return{ok:!0,value:n.value!==r.value};case`==`:case`!=`:{let t=nv(n.value,r.value);return t===void 0?$:{ok:!0,value:e.operator===`==`?t:!t}}default:return $}}case`LogicalExpression`:{let n=cv(e.left,t);if(!n.ok)return $;let r=!!n.value;return e.operator===`&&`?r?cv(e.right,t):n:e.operator===`||`?r?n:cv(e.right,t):e.operator===`??`?n.value===null||n.value===void 0?cv(e.right,t):n:$}case`ConditionalExpression`:{let n=cv(e.test,t);return n.ok?cv(n.value?e.consequent:e.alternate,t):$}case`CallExpression`:return fv(e,t);case`UnaryExpression`:{if(e.operator===`typeof`)return gv(e.argument,t);let n=cv(e.argument,t);if(!n.ok)return $;if(e.operator===`void`)return{ok:!0,value:void 0};if(e.operator===`!`)return{ok:!0,value:!n.value};if(e.operator===`-`||e.operator===`+`){if(typeof n.value==`object`&&n.value!==null)return $;let t=e.operator===`-`?-Number(n.value):Number(n.value);return Number.isNaN(t)?$:{ok:!0,value:t}}return $}default:return $}}function lv(e){return e===void 0||typeof e==`number`&&Number.isFinite(e)}function uv(e,t,n){let[r,i]=n,a=typeof r==`string`?r:void 0;switch(t){case`startsWith`:case`endsWith`:case`includes`:case`indexOf`:case`lastIndexOf`:return a===void 0||!lv(i)?$:{ok:!0,value:e[t](a,i)};case`slice`:case`substring`:return!lv(r)||!lv(i)?$:{ok:!0,value:e[t](r??0,i)};case`at`:case`charAt`:return lv(r)?{ok:!0,value:t===`at`?e.at(r??0):e.charAt(r??0)}:$;case`toLowerCase`:case`toUpperCase`:case`trim`:case`trimStart`:case`trimEnd`:return n.length===0?{ok:!0,value:e[t]()}:$;case`replace`:case`replaceAll`:{if(a===void 0||typeof i!=`string`||i.includes(`$`))return $;let n=a===``?t===`replaceAll`?e.length+1:1:t===`replaceAll`?e.split(a).length-1:Number(e.includes(a));return e.length+n*(i.length-a.length)>1e5?$:{ok:!0,value:e[t](a,i)}}case`split`:return a===void 0||!lv(i)?$:K_(e.split(a,i));case`padStart`:case`padEnd`:return typeof r!=`number`||r>1e5||i!==void 0&&typeof i!=`string`?$:{ok:!0,value:e[t](r,i)};case`repeat`:return typeof r!=`number`||r<0||e.length*r>1e5?$:{ok:!0,value:e.repeat(r)};case`concat`:{if(!n.every(e=>typeof e==`string`||typeof e==`number`))return $;let t=n.map(String);return t.reduce((e,t)=>e+t.length,e.length)>1e5?$:{ok:!0,value:e.concat(...t)}}default:return $}}function dv(e,t,n){let[r,i]=n;switch(t){case`join`:{if(r!==void 0&&typeof r!=`string`||!e.every(e=>typeof e!=`object`||!e))return $;let t=e.map(e=>e==null?``:String(e)),n=r??`,`;return t.reduce((e,t)=>e+t.length,0)+n.length*Math.max(t.length-1,0)>1e5?$:{ok:!0,value:t.join(n)}}case`includes`:case`indexOf`:return typeof r==`object`&&r||!lv(i)?$:{ok:!0,value:e[t](r,i)};case`slice`:return!lv(r)||!lv(i)?$:{ok:!0,value:e.slice(r,i)};case`at`:return lv(r)?{ok:!0,value:e.at(r??0)}:$;default:return $}}function fv(e,t){let n=e.callee;if(H_(n)!==`MemberExpression`||!z(n)||n.optional===!0)return $;let r=n.computed===!0?z(n.property)&&typeof n.property.value==`string`?n.property.value:void 0:Z_(n.property);if(r===void 0||mv(n.object,t))return $;let i=cv(n.object,t);if(!i.ok)return $;let a=Array.isArray(e.arguments)?e.arguments:[],o=[];for(let e of a){if(H_(e)===`SpreadElement`)return $;let n=cv(e,t);if(!n.ok)return $;o.push(n.value)}try{if(typeof i.value==`string`)return uv(i.value,r,o);if(Array.isArray(i.value))return dv(i.value,r,o)}catch{return $}return $}const pv=/* @__PURE__ */ new Set([`window`,`document`,`navigator`,`location`,`history`,`localStorage`,`sessionStorage`,`matchMedia`,`requestAnimationFrame`]);function mv(e,t){if(t.markdownChildren!==!0||!z(e))return!1;if(e.type===`Identifier`)return e.name===t.childrenName&&!(t.failedProps?.has(`children`)??!1);if(e.type!==`MemberExpression`)return!1;let n=Z_(e.object);return hv(e)===`children`&&n!==void 0&&(n===t.propsObjectName||n===t.restName)}function hv(e){if(e.computed!==!0)return Z_(e.property);let t=e.property;return z(t)&&t.type===`Literal`&&typeof t.value==`string`?t.value:void 0}function gv(e,t){if(mv(e,t))return $;if(H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`&&pv.has(e.name)&&!t.scope.has(e.name)&&t.declaredNames!==void 0&&!t.declaredNames.has(e.name))return{ok:!0,value:`undefined`};let n=cv(e,t);if(!n.ok)return $;let r=n.value;return{ok:!0,value:r===null?`object`:typeof r}}function _v(e){let t=H_(e);return t===`ArrowFunctionExpression`||t===`FunctionExpression`||t===`FunctionDeclaration`}function vv(e){if(e.type!==`mdxjsEsm`)return[];let t=e.data?.estree;return!z(t)||!Array.isArray(t.body)?[]:t.body}function yv(e,t){if(Array.isArray(e))for(let n of e)yv(n,t);else if(z(e)){z(e.data)&&e.data.estree!==void 0&&t.push(e.data.estree);for(let[n,r]of Object.entries(e))n!==`data`&&n!==`position`&&yv(r,t)}}function bv(e){for(let[t,n]of e)typeof n==`object`&&n&&e.delete(t)}function xv(e,t){let{reassigned:n,mutated:r}=B_(e,!0);return n.size>0||r.size>0||t&&z_(e)}function Sv(e){let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=[],a=e.children.flatMap(vv),o=(e,n)=>{let r=Array.isArray(n.params)?n.params:[];t.set(e,{params:r,body:n.body})},s=(e,t)=>{if(H_(e)!==`VariableDeclarator`||!z(e))return;xv(e,f)&&bv(n);let i=e.init,a=Z_(e.id);if(a!==void 0&&_v(i)&&z(i)){o(a,i);return}if(t!==`const`)return;let s=cv(i,{scope:r,declaredNames:l});if(s.ok){let t=new Map(r);sv(e.id,s.value,{scope:t});let n=/* @__PURE__ */ new Set;i_(e.id,n);for(let e of n){if(!t.has(e))continue;let n=t.get(e),i=n===void 0?void 0:n;Q_(i)&&r.set(e,i)}}let c=cv(i,{scope:n,declaredNames:l});c.ok&&sv(e.id,c.value,{scope:n})},c=[];yv(e,c);let l=V_(c),{reassigned:u,mutated:d}=B_(c),f=u.size>0||d.size>0;for(let e of a)if(z(e)){if(!(e.type===`VariableDeclaration`||e.type===`ExportNamedDeclaration`&&z(e.declaration)&&e.declaration.type===`VariableDeclaration`)&&xv(e,f)&&bv(n),e.type===`VariableDeclaration`){let t=Array.isArray(e.declarations)?e.declarations:[];for(let n of t)s(n,e.kind)}else if(e.type===`FunctionDeclaration`){let t=e.id;H_(t)===`Identifier`&&z(t)&&typeof t.name==`string`&&o(t.name,e)}else{if(e.type===`ExportNamedDeclaration`){let t=e.declaration;if(H_(t)===`VariableDeclaration`&&z(t)){let e=Array.isArray(t.declarations)?t.declarations:[];for(let n of e)s(n,t.kind)}if(H_(t)===`FunctionDeclaration`&&z(t)){let e=t.id;H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`&&o(e.name,t)}if(e.source!=null)continue;let n=Array.isArray(e.specifiers)?e.specifiers:[];for(let e of n){if(H_(e)!==`ExportSpecifier`||!z(e))continue;let t=e.local,n=e.exported;z(t)&&typeof t.name==`string`&&z(n)&&typeof n.name==`string`&&i.push([t.name,n.name])}}if(e.type===`ExportDefaultDeclaration`){let t=e.declaration;if(_v(t)&&z(t)){let e=t.id;H_(e)===`Identifier`&&z(e)&&typeof e.name==`string`&&o(e.name,t)}}}}for(let e of u)n.delete(e),r.delete(e),t.delete(e);d.size>0&&bv(n);let p=!0;for(;p;){p=!1;for(let[e,a]of i){let i=t.get(e);if(i&&!t.has(a)&&(t.set(a,i),p=!0),n.has(e)&&!n.has(a)){let t=n.get(e);n.set(a,t===void 0?void 0:t),p=!0}if(r.has(e)&&!r.has(a)){let t=r.get(e);r.set(a,t===void 0?void 0:t),p=!0}}}return{defs:t,moduleScope:n,literalScope:r,declaredNames:l}}const Cv=[`animate`,`animateMotion`,`animateTransform`,`mpath`,`set`],wv=e=>e.type===`mdxjsEsm`;function Tv(e){return e.data?.estree!=null}const Ev=e=>e.type===`ImportDeclaration`,Dv=e=>[`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`].includes(e),Ov=e=>e.type===`mdxJsxFlowElement`,kv=e=>e instanceof Object&&`type`in e&&(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`),Av=e=>Ov(e)&&e.name==null,jv=(e,t)=>`${e}_${t}`,Mv=(e,t)=>{if(t&&t.value&&typeof t.value==`object`&&(t.value.data?.estree)?.body.length===1){let n=t.value.data.estree.body[0];if(n?.type===`ExpressionStatement`&&n.expression.type===`ObjectExpression`){let t=n.expression.properties.find(t=>t.type===`Property`&&t.key.type===`Identifier`&&t.key.name===e);if(t&&t.type===`Property`&&t.value.type===`Literal`)return t.value.value?.toString()}}},Nv=e=>{let t=[];if(!e||!e.value||typeof e.value!=`object`)return t;if((e.value.data?.estree)?.body.length===1){let n=e.value.data.estree.body[0];n?.type===`ExpressionStatement`&&n.expression.type===`ArrayExpression`&&n.expression.elements.map(e=>{e?.type===`Literal`&&typeof e.value==`string`&&t.push(e.value)})}return t},Pv=[`ApiPlayground`,`Accordion`,`AccordionGroup`,`Badge`,`Callout`,`CodeGroup`,`CodeBlock`,`Color`,`Color.Row`,`Color.Item`,`CustomCode`,`CustomComponent`,`DynamicCustomComponent`,`Danger`,`Tile`,`Tree`,`Tree.Folder`,`Tree.File`,`Table`,`Table.Header`,`Table.Body`,`Table.Row`,`Table.HeaderCell`,`Table.RowHeader`,`Table.Cell`,`FileTree`,`SnippetGroup`,`Panel`,`RequestExample`,`ResponseExample`,`Param`,`ParamField`,`Prompt`,`List`,`Quote`,`Card`,`CardGroup`,`Columns`,`Column`,`Expandable`,`Frame`,`GitHub`,`GitHub.Repo`,`Github`,`Github.Repo`,`Heading`,`Info`,`Icon`,`MDX`,`Link`,`MDXContentController`,`ResponseField`,`Warning`,`Note`,`Tip`,`Check`,`Tabs`,`Tab`,`Tooltip`,`Latex`,`Step`,`Steps`,`Update`,`a`,`b`,`br`,`button`,`clipPath`,`col`,`colgroup`,`defs`,`div`,`form`,`g`,`h1`,`h2`,`h3`,`h4`,`head`,`hr`,`iframe`,`img`,`input`,`label`,`li`,`link`,`ol`,`p`,`path`,`picture`,`rect`,`script`,`section`,`source`,`span`,`sub`,`sup`,`u`,`svg`,...Cv,`table`,`tbody`,`td`,`th`,`thead`,`tr`,`track`,`ul`,`video`,`code`,`kbd`,`pre`,`ZoomImage`,`OptimizedVideo`,`Mermaid`,`Variation`,`Visibility`,`View`,`zapier-zap-templates`];export{ja as $,Zf as A,gt as At,Gd as B,e_ as C,ut as Ct,Gp as D,xt as Dt,Wp as E,bt as Et,ff as F,_ as Ft,nl as G,Ju as H,W as I,g as It,Pc as J,Hc as K,rf as L,p as Lt,Lf as M,F as Mt,kf as N,_t as Nt,lp as O,mt as Ot,yf as P,I as Pt,hc as Q,nf as R,f as Rt,t_ as S,ft as St,zg as T,St as Tt,_u as U,rd as V,_l as W,vc as X,Dc as Y,gc as Z,i_ as _,Tt as _t,Mv as a,la as at,Bg as b,pt as bt,wv as c,z as ct,Av as d,ur as dt,ka as et,Sv as f,Bt as ft,E_ as g,Ot as gt,Y_ as h,At as ht,Nv as i,pa as it,Yf as j,yt as jt,Xf as k,dt as kt,kv as l,Vi as lt,H_ as m,Nt as mt,jv as n,Ca as nt,Dv as o,ma as ot,cv as p,zt as pt,Fc as q,Tv as r,ha as rt,Ev as s,fa as st,Pv as t,Ea as tt,Ov as u,_r as ut,a_ as v,wt as vt,Xg as w,vt as wt,Zg as x,ht as xt,Q as y,Ct as yt,tf as z};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.73",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"sharp": "0.33.5"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@mintlify/package-builder": "0.0.
|
|
50
|
+
"@mintlify/package-builder": "0.0.186",
|
|
51
51
|
"@parcel/watcher": "2.5.1",
|
|
52
52
|
"fsevents": "2.3.3",
|
|
53
53
|
"keytar": "7.9.0"
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/parser": "7.21.2",
|
|
57
57
|
"@inquirer/prompts": "7.9.0",
|
|
58
|
-
"@mintlify/common": "1.0.
|
|
59
|
-
"@mintlify/editor": "0.0.
|
|
60
|
-
"@mintlify/link-rot": "3.0.
|
|
58
|
+
"@mintlify/common": "1.0.1397",
|
|
59
|
+
"@mintlify/editor": "0.0.677",
|
|
60
|
+
"@mintlify/link-rot": "3.0.1651",
|
|
61
61
|
"@mintlify/models": "0.0.402",
|
|
62
|
-
"@mintlify/og": "0.0.
|
|
63
|
-
"@mintlify/prebuild": "1.0.
|
|
64
|
-
"@mintlify/previewing": "4.0.
|
|
62
|
+
"@mintlify/og": "0.0.196",
|
|
63
|
+
"@mintlify/prebuild": "1.0.1577",
|
|
64
|
+
"@mintlify/previewing": "4.0.1668",
|
|
65
65
|
"@mintlify/ts-config": "2.0.2",
|
|
66
66
|
"@mintlify/validation": "0.1.987",
|
|
67
67
|
"@tsconfig/recommended": "1.0.2",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"yargs": "17.7.1",
|
|
111
111
|
"zod": "4.3.6"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "fdf9f54c1b114d2a83839e90f8a58900221d5c13"
|
|
114
114
|
}
|