@fugood/bricks-cli 2.25.0-beta.63 → 2.25.0-beta.64
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/lib/1010.js +1 -0
- package/lib/1178.js +1 -0
- package/lib/1215.js +1 -0
- package/lib/{708.js → 1708.js} +2 -2
- package/lib/1759.js +1 -0
- package/lib/1936.js +1 -0
- package/lib/2151.js +1 -0
- package/lib/{209.js → 2209.js} +3 -3
- package/lib/2247.js +1 -0
- package/lib/2486.js +1 -0
- package/lib/2557.js +1 -0
- package/lib/{223.js → 3223.js} +1 -1
- package/lib/3332.js +13 -0
- package/lib/3690.js +1 -0
- package/lib/3774.js +44 -0
- package/lib/3976.js +14 -0
- package/lib/4305.js +1 -0
- package/lib/4456.js +3 -0
- package/lib/{192.js → 4479.js} +4 -4
- package/lib/4530.js +22 -0
- package/lib/4642.js +9 -0
- package/lib/4685.js +1202 -0
- package/lib/5212.js +1 -0
- package/lib/{658.js → 5658.js} +1 -1
- package/lib/5785.js +1 -0
- package/lib/6194.js +3 -0
- package/lib/6370.js +1 -0
- package/lib/6645.js +1 -0
- package/lib/6818.js +1 -0
- package/lib/7111.js +2 -0
- package/lib/7456.js +1 -0
- package/lib/7511.js +1 -0
- package/lib/7574.js +1 -0
- package/lib/7648.js +1 -0
- package/lib/8026.js +1 -0
- package/lib/{117.js → 8117.js} +2 -2
- package/lib/8166.js +1 -0
- package/lib/853.js +1 -0
- package/lib/915.js +3 -3
- package/lib/9320.js +3 -0
- package/lib/{387.js → 9387.js} +1 -1
- package/lib/9405.js +1 -0
- package/lib/9430.js +1 -0
- package/lib/{583.js → 9583.js} +1 -1
- package/lib/9663.js +1 -0
- package/lib/{866.js → 9866.js} +1 -1
- package/lib/9940.js +19 -0
- package/lib/index.js +17 -17
- package/package.json +5 -5
- package/lib/10.js +0 -1
- package/lib/111.js +0 -2
- package/lib/166.js +0 -1
- package/lib/178.js +0 -1
- package/lib/212.js +0 -1
- package/lib/215.js +0 -1
- package/lib/247.js +0 -1
- package/lib/274.js +0 -55
- package/lib/305.js +0 -1
- package/lib/306.js +0 -1
- package/lib/320.js +0 -3
- package/lib/332.js +0 -13
- package/lib/358.js +0 -1
- package/lib/370.js +0 -1
- package/lib/405.js +0 -1
- package/lib/430.js +0 -1
- package/lib/456.js +0 -3
- package/lib/479.js +0 -1231
- package/lib/486.js +0 -1
- package/lib/511.js +0 -1
- package/lib/557.js +0 -1
- package/lib/574.js +0 -1
- package/lib/645.js +0 -1
- package/lib/648.js +0 -1
- package/lib/663.js +0 -1
- package/lib/690.js +0 -1
- package/lib/75.js +0 -1
- package/lib/759.js +0 -1
- package/lib/785.js +0 -1
- package/lib/818.js +0 -1
- package/lib/917.js +0 -1
- package/lib/936.js +0 -1
- package/lib/940.js +0 -19
package/lib/4530.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const __rspack_esm_id=4530;export const __rspack_esm_ids=[4530];export const __webpack_modules__={96230(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},92062(e){let t=process||{},n=t.argv||[],i=t.env||{},r=!(i.NO_COLOR||n.includes("--no-color"))&&(!!i.FORCE_COLOR||n.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==i.TERM||!!i.CI),s=(e,t,n=e)=>i=>{let r=""+i,s=r.indexOf(t,e.length);return~s?e+o(r,t,n,s)+t:e+r+t},o=(e,t,n,i)=>{let r="",s=0;do r+=e.substring(s,i)+n,s=i+t.length,i=e.indexOf(t,s);while(~i);return r+e.substring(s)},a=(e=r)=>{let t=e?s:()=>String;return{isColorSupported:e,reset:t("\x1b[0m","\x1b[0m"),bold:t("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:t("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:t("\x1b[3m","\x1b[23m"),underline:t("\x1b[4m","\x1b[24m"),inverse:t("\x1b[7m","\x1b[27m"),hidden:t("\x1b[8m","\x1b[28m"),strikethrough:t("\x1b[9m","\x1b[29m"),black:t("\x1b[30m","\x1b[39m"),red:t("\x1b[31m","\x1b[39m"),green:t("\x1b[32m","\x1b[39m"),yellow:t("\x1b[33m","\x1b[39m"),blue:t("\x1b[34m","\x1b[39m"),magenta:t("\x1b[35m","\x1b[39m"),cyan:t("\x1b[36m","\x1b[39m"),white:t("\x1b[37m","\x1b[39m"),gray:t("\x1b[90m","\x1b[39m"),bgBlack:t("\x1b[40m","\x1b[49m"),bgRed:t("\x1b[41m","\x1b[49m"),bgGreen:t("\x1b[42m","\x1b[49m"),bgYellow:t("\x1b[43m","\x1b[49m"),bgBlue:t("\x1b[44m","\x1b[49m"),bgMagenta:t("\x1b[45m","\x1b[49m"),bgCyan:t("\x1b[46m","\x1b[49m"),bgWhite:t("\x1b[47m","\x1b[49m"),blackBright:t("\x1b[90m","\x1b[39m"),redBright:t("\x1b[91m","\x1b[39m"),greenBright:t("\x1b[92m","\x1b[39m"),yellowBright:t("\x1b[93m","\x1b[39m"),blueBright:t("\x1b[94m","\x1b[39m"),magentaBright:t("\x1b[95m","\x1b[39m"),cyanBright:t("\x1b[96m","\x1b[39m"),whiteBright:t("\x1b[97m","\x1b[39m"),bgBlackBright:t("\x1b[100m","\x1b[49m"),bgRedBright:t("\x1b[101m","\x1b[49m"),bgGreenBright:t("\x1b[102m","\x1b[49m"),bgYellowBright:t("\x1b[103m","\x1b[49m"),bgBlueBright:t("\x1b[104m","\x1b[49m"),bgMagentaBright:t("\x1b[105m","\x1b[49m"),bgCyanBright:t("\x1b[106m","\x1b[49m"),bgWhiteBright:t("\x1b[107m","\x1b[49m")}};e.exports=a(),e.exports.createColors=a},56611(e,t,n){let i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(92062),s=n(96230),o=n(14007);let a=(e,t)=>n=>e(t(n));function l(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:a(a(e.white,e.bgRed),e.bold),gutter:e.gray,marker:a(e.red,e.bold),message:a(e.red,e.bold),reset:e.reset}}let u=l(r.createColors(!0)),c=l(r.createColors(!1)),h=new Set(["as","async","from","get","of","set"]),d=/\r\n|[\n\r\u2028\u2029]/,p=/^[()[\]{}]$/;{let e=/^[a-z][\w-]*$/i,t=function(t,n,i){if("name"===t.type){if(o.isKeyword(t.value)||o.isStrictReservedWord(t.value,!0)||h.has(t.value))return"keyword";if(e.test(t.value)&&("<"===i[n-1]||"</"===i.slice(n-2,n)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&p.test(t.value)?"bracket":"invalid"===t.type&&("@"===t.value||"#"===t.value)?"punctuator":t.type};i=function*(e){let n;for(;n=s.default.exec(e);){let i=s.matchToToken(n);yield{type:t(i,n.index,e),value:i.value}}}}function f(e){if(""===e)return"";let t="";for(let{type:n,value:r}of i(e))n in u?t+=r.split(d).map(e=>u[n](e)).join("\n"):t+=r;return t}let g=!1,m=/\r\n|[\n\r\u2028\u2029]/;function y(e,t,n={}){let i=n.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&r.isColorSupported&&n.highlightCode,s=i?u:c,{start:o,end:a,markerLines:l}=function(e,t,n){let i=Object.assign({column:0,line:-1},e.start),r=Object.assign({},i,e.end),{linesAbove:s=2,linesBelow:o=3}=n||{},a=i.line,l=i.column,u=r.line,c=r.column,h=Math.max(a-(s+1),0),d=Math.min(t.length,u+o);-1===a&&(h=0),-1===u&&(d=t.length);let p=u-a,f={};if(p)for(let e=0;e<=p;e++){let n=e+a;if(l)if(0===e){let e=t[n-1].length;f[n]=[l,e-l+1]}else if(e===p)f[n]=[0,c];else{let i=t[n-e].length;f[n]=[0,i]}else f[n]=!0}else l===c?l?f[a]=[l,0]:f[a]=!0:f[a]=[l,c-l];return{start:h,end:d,markerLines:f}}(t,e.split(m),n),h=t.start&&"number"==typeof t.start.column,d=String(a).length,p=(i?f(e):e).split(m,a).slice(o,a).map((e,t)=>{let i=o+1+t,r=` ${i}`.slice(-d),a=` ${r} |`,u=l[i],c=!l[i+1];if(!u)return` ${s.gutter(a)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(u)){let i=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),r=u[1]||1;t=["\n ",s.gutter(a.replace(/\d/g," "))," ",i,s.marker("^").repeat(r)].join(""),c&&n.message&&(t+=" "+s.message(n.message))}return[s.marker(">"),s.gutter(a),e.length>0?` ${e}`:"",t].join("")}}).join("\n");return(n.message&&!h&&(p=`${" ".repeat(d+1)}${n.message}
|
|
2
|
+
${p}`),i)?s.reset(p):p}t.codeFrameColumns=y,t.default=function(e,t,n,i={}){if(!g){g=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(Error(e).name="DeprecationWarning",console.warn(Error(e)))}return y(e,{start:{column:n=Math.max(n,0),line:t}},i)},t.highlight=f},10215(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){let l=new WeakMap,u=new WeakMap,c=n||(0,i.validate)(null);return Object.assign((n,...o)=>{if("string"==typeof n){if(o.length>1)throw Error("Unexpected extra params.");return a((0,r.default)(t,n,(0,i.merge)(c,(0,i.validate)(o[0]))))}if(Array.isArray(n)){let e=l.get(n);return e||(e=(0,s.default)(t,n,c),l.set(n,e)),a(e(o))}if("object"==typeof n&&n){if(o.length>0)throw Error("Unexpected extra params.");return e(t,(0,i.merge)(c,(0,i.validate)(n)))}throw Error(`Unexpected template param ${typeof n}`)},{ast:(e,...n)=>{if("string"==typeof e){if(n.length>1)throw Error("Unexpected extra params.");return(0,r.default)(t,e,(0,i.merge)((0,i.merge)(c,(0,i.validate)(n[0])),o))()}if(Array.isArray(e)){let r=u.get(e);return r||(r=(0,s.default)(t,e,(0,i.merge)(c,o)),u.set(e,r)),r(n)()}throw Error(`Unexpected template param ${typeof e}`)}})};var i=n(95838),r=n(41199),s=n(17667);let o=(0,i.validate)({placeholderPattern:!1});function a(e){let t="";try{throw Error()}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return n=>{try{return e(n)}catch(e){throw e.stack+=`
|
|
3
|
+
=============
|
|
4
|
+
${t}`,e}}}},39813(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=void 0;let{assertExpressionStatement:i}=n(58135);function r(e){return{code:e=>`/* @babel/template */;
|
|
5
|
+
${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}t.smart=r(e=>e.length>1?e:e[0]),t.statements=r(e=>e),t.statement=r(e=>{if(0===e.length)throw Error("Found nothing to return.");if(e.length>1)throw Error("Found multiple statements but wanted one");return e[0]});let s=t.expression={code:e=>`(
|
|
6
|
+
${e}
|
|
7
|
+
)`,validate:e=>{if(e.program.body.length>1)throw Error("Found multiple statements but wanted one");if(0===s.unwrap(e).start)throw Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return i(t),t.expression}};t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},50240(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var i=n(39813),r=n(10215);let s=t.smart=(0,r.default)(i.smart),o=t.statement=(0,r.default)(i.statement),a=t.statements=(0,r.default)(i.statements),l=t.expression=(0,r.default)(i.expression),u=t.program=(0,r.default)(i.program);t.default=Object.assign(s.bind(void 0),{smart:s,statement:o,statements:a,expression:l,program:u,ast:s.ast})},17667(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let{metadata:o,names:a}=function(e,t,n){let i="BABEL_TPL$",s=t.join("");do i="$$"+i;while(s.includes(i));let{names:o,code:a}=function(e,t){let n=[],i=e[0];for(let r=1;r<e.length;r++){let s=`${t}${r-1}`;n.push(s),i+=s+e[r]}return{names:n,code:i}}(t,i);return{metadata:(0,r.default)(e,e.code(a),{parser:n.parser,placeholderWhitelist:new Set(o.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders}),names:o}}(e,t,n);return t=>{let n={};return t.forEach((e,t)=>{n[a[t]]=e}),t=>{let r=(0,i.normalizeReplacements)(t);return r&&Object.keys(r).forEach(e=>{if(hasOwnProperty.call(n,e))throw Error("Unexpected replacement overlap.")}),e.unwrap((0,s.default)(o,r?Object.assign(r,n):n))}}};var i=n(95838),r=n(4131),s=n(72064)},95838(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){let{placeholderWhitelist:n=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:r=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:i,preserveComments:r,syntacticPlaceholders:s}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce((e,t,n)=>(e["$"+n]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw Error("Template replacements must be an array, object, null, or undefined")},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw Error("Unknown template options.");let t=e||{},{placeholderWhitelist:i,placeholderPattern:r,preserveComments:s,syntacticPlaceholders:o}=t,a=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(t,n);if(null!=i&&!(i instanceof Set))throw Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=r&&!(r instanceof RegExp)&&!1!==r)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=o&&"boolean"!=typeof o)throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===o&&(null!=i||null!=r))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:i||void 0,placeholderPattern:null==r?void 0:r,preserveComments:null==s?void 0:s,syntacticPlaceholders:null==o?void 0:o}};let n=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},4131(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let{placeholderWhitelist:i,placeholderPattern:o,preserveComments:a,syntacticPlaceholders:l}=n,u=function(e,t,n){let i=(t.plugins||[]).slice();!1!==n&&i.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:i});try{return(0,r.parse)(e,t)}catch(n){let t=n.loc;throw t&&(n.message+="\n"+(0,s.codeFrameColumns)(e,{start:t}),n.code="BABEL_TEMPLATE_PARSE_ERROR"),n}}(t,n.parser,l);g(u,{preserveComments:a}),e.validate(u);let c={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:o,syntacticPlaceholders:l};return m(u,b,c),Object.assign({ast:u},c.syntactic.placeholders.length?c.syntactic:c.legacy)};var i=n(58135),r=n(46773),s=n(56611);let{isCallExpression:o,isExpressionStatement:a,isFunction:l,isIdentifier:u,isJSXIdentifier:c,isNewExpression:h,isPlaceholder:d,isStatement:p,isStringLiteral:f,removePropertiesDeep:g,traverse:m}=i,y=/^[_$A-Z0-9]+$/;function b(e,t,n){var i;let r,s,g=n.syntactic.placeholders.length>0;if(d(e)){if(!1===n.syntacticPlaceholders)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");r=e.name.name,g=!0}else if(g||n.syntacticPlaceholders)return;else if(u(e)||c(e))r=e.name;else{if(!f(e))return;r=e.value}if(g&&(null!=n.placeholderPattern||null!=n.placeholderWhitelist))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!g&&(!1===n.placeholderPattern||!(n.placeholderPattern||y).test(r))&&!(null!=(i=n.placeholderWhitelist)&&i.has(r)))return;let{node:m,key:b}=(t=t.slice())[t.length-1];f(e)||d(e,{expectedNode:"StringLiteral"})?s="string":h(m)&&"arguments"===b||o(m)&&"arguments"===b||l(m)&&"params"===b?s="param":a(m)&&!d(e)?(s="statement",t=t.slice(0,-1)):s=p(e)&&d(e)?"statement":"other";let{placeholders:v,placeholderNames:x}=g?n.syntactic:n.legacy;v.push({name:r,type:s,resolve:e=>(function(e,t){let n=e;for(let e=0;e<t.length-1;e++){let{key:i,index:r}=t[e];n=void 0===r?n[i]:n[i][r]}let{key:i,index:r}=t[t.length-1];return{parent:n,key:i,index:r}})(e,t),isDuplicate:x.has(r)}),x.add(r)}},72064(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=r(e.ast);return t&&(e.placeholders.forEach(e=>{if(!hasOwnProperty.call(t,e.name)){let t=e.name;throw Error(`Error: No substitution given for "${t}". If this is not meant to be a
|
|
8
|
+
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
9
|
+
- { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}
|
|
10
|
+
- { placeholderPattern: /^${t}$/ }`)}}),Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t))throw Error(`Unknown substitution "${t}" given`)})),e.placeholders.slice().reverse().forEach(e=>{try{var d;!function(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map(e=>r(e)):"object"==typeof n&&(n=r(n)));let{parent:d,key:p,index:f}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=c(n)),!n||!u(n))throw Error("Expected string substitution")}else if("statement"===e.type)void 0===f?n?Array.isArray(n)?n=i(n):"string"==typeof n?n=o(a(n)):l(n)||(n=o(n)):n=s():n&&!Array.isArray(n)&&("string"==typeof n&&(n=a(n)),l(n)||(n=o(n)));else if("param"===e.type){if("string"==typeof n&&(n=a(n)),void 0===f)throw Error("Assertion failure.")}else if("string"==typeof n&&(n=a(n)),Array.isArray(n))throw Error("Cannot replace single expression with an array.");function g(e,t,n){let i=e[t];e[t]=n,("Identifier"===i.type||"Placeholder"===i.type)&&(i.typeAnnotation&&(n.typeAnnotation=i.typeAnnotation),i.optional&&(n.optional=i.optional),i.decorators&&(n.decorators=i.decorators))}if(void 0===f)h(d,p,n),g(d,p,n);else{let t=d[p].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(f,1):Array.isArray(n)?t.splice(f,1,...n):g(t,f,n):g(t,f,n),h(d,p,t),d[p]=t}}(e,n,null!=(d=t&&t[e.name])?d:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),n};let{blockStatement:i,cloneNode:r,emptyStatement:s,expressionStatement:o,identifier:a,isStatement:l,isStringLiteral:u,stringLiteral:c,validate:h}=n(58135)},41199(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let o;return t=e.code(t),a=>{let l=(0,i.normalizeReplacements)(a);return o||(o=(0,r.default)(e,t,n)),e.unwrap((0,s.default)(o,l))}};var i=n(95838),r=n(4131),s=n(72064)},56266(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),r()},t.clearPath=i,t.clearScope=r,t.getCachedPaths=function(e){let{parent:t,parentPath:i}=e;return n.get(t)},t.getOrCreateCachedPaths=function(e,t){let i=n.get(e);return i||n.set(e,i=new Map),i},t.scope=t.path=void 0;let n=t.path=new WeakMap;function i(){t.path=n=new WeakMap}function r(){t.scope=new WeakMap}t.scope=new WeakMap},96647(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(32670),r=n(58135),s=n(44537);let{VISITOR_KEYS:o}=r;t.default=class{constructor(e,t,n,i){this.queue=null,this.priorityQueue=null,this.parentPath=i,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){let t=this.opts;if(t.enter||t.exit||t[e.type])return!0;let n=o[e.type];if(!(null!=n&&n.length))return!1;for(let t of n)if(e[t])return!0;return!1}create(e,t,n,r){return i.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:r})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;let i=[];for(let r=0;r<e.length;r++){let s=e[r];s&&this.shouldVisit(s)&&i.push(this.create(t,e,r,n))}return this.visitQueue(i)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];let t=new WeakSet,n=!1,i=0;for(;i<e.length;){let r=e[i];if(i++,s.resync.call(r),(0===r.contexts.length||r.contexts[r.contexts.length-1]!==this)&&s.pushContext.call(r,this),null===r.key)continue;let{node:o}=r;if(!t.has(o)){if(o&&t.add(o),r.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<i;t++)s.popContext.call(e[t]);return this.queue=null,n}visit(e,t){let n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},9783(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{getCode(){}getScope(){}addHelper(){throw Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}}},80004(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0,n(44537);var i=n(95957);t.visitors=i;var r=n(58135),s=n(56266),o=n(51597),a=n(32670),l=n(54683),u=n(9783);let{VISITOR_KEYS:c,removeProperties:h,traverseFast:d}=r;function p(e,t={},n,r,s,a){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&a)throw Error("visitSelf can only be used when providing a NodePath.");c[e.type]&&(i.explode(t),(0,o.traverseNode)(e,t,n,r,s,void 0,a))}}t.default=p,p.visitors=i,p.verify=i.verify,p.explode=i.explode,p.cheap=function(e,t){d(e,t)},p.node=function(e,t,n,i,r,s){(0,o.traverseNode)(e,t,n,i,r,s)},p.clearNode=function(e,t){h(e,t)},p.removeProperties=function(e,t){return d(e,p.clearNode,t),e},p.hasType=function(e,t,n){return!(null!=n&&n.includes(e.type))&&(e.type===t||d(e,function(e){return null!=n&&n.includes(e.type)?d.skip:e.type===t?d.stop:void 0}))},p.cache=s},90157(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null},t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.getAncestry=function(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t},t.getDeepestCommonAncestorFrom=function(e,t){let n,i;if(!e.length)return this;if(1===e.length)return e[0];let r=1/0,s=e.map(e=>{let t=[];do t.unshift(e);while((e=e.parentPath)&&e!==this);return t.length<r&&(r=t.length),t}),o=s[0];e:for(let e=0;e<r;e++){let t=o[e];for(let n of s)if(n[e]!==t)break e;n=e,i=t}if(i)if(t)return t(i,n,s);else return i;throw Error("Couldn't find intersection")},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,n){let r,s=i[e.type];for(let e of n){let n=e[t+1];if(!r||n.listKey&&r.listKey===n.listKey&&n.key<r.key){r=n;continue}s.indexOf(r.parentKey)>s.indexOf(n.parentKey)&&(r=n)}return r})},t.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return e},t.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent(t=>t===e)};let{VISITOR_KEYS:i}=n(58135)},68418(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addComment=function(e,t,n){i(this.node,e,t,n)},t.addComments=function(e,t){r(this.node,e,t)},t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;let e=this.node;if(!e)return;let t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;let i=this.getSibling(this.key-1),r=this.getSibling(this.key+1),o=!!i.node,a=!!r.node;o&&(n&&i.addComments("trailing",s(n,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&r.addComments("leading",s(t,r.node.leadingComments)),n&&!o&&r.addComments("leading",n))};let{addComment:i,addComments:r}=n(58135);function s(e,t){if(!(null!=t&&t.length))return e;let n=new Set(t);return e.filter(e=>!n.has(e))}},44537(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._call=l,t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath);)t=e.contexts;return t},t._resyncKey=p,t._resyncList=f,t._resyncParent=d,t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||s._markRemoved.call(this)},t.call=a,t.isDenylisted=u,t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.requeue=function(e=this){if(!e.removed)for(let t of this.contexts)t.maybeQueue(e)},t.requeueComputedKeyAndDecorators=function(){let{context:e,node:t}=this;if(!o.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let t of this.get("decorators"))e.maybeQueue(t)},t.resync=function(){this.removed||(d.call(this),f.call(this),p.call(this))},t.setContext=function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),h.call(this),this},t.setKey=g,t.setScope=h,t.setup=function(e,t,n,i){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,g.call(this,i)},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=r.SHOULD_SKIP|r.SHOULD_STOP},t.visit=function(){var e,t;if(!this.node||this.isDenylisted()||null!=(e=(t=this.opts).shouldSkip)&&e.call(t,this))return!1;let n=this.context;return this.shouldSkip||a.call(this,"enter")?this.debug("Skip..."):(c(this,n),this.debug("Recursing into..."),this.shouldStop=(0,i.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),c(this,n),a.call(this,"exit")),this.shouldStop};var i=n(51597),r=n(32670),s=n(7946),o=n(58135);function a(e){let t=this.opts;if(this.debug(e),this.node&&l.call(this,t[e]))return!0;if(this.node){var n;return l.call(this,null==(n=t[this.node.type])?void 0:n[e])}return!1}function l(e){if(!e)return!1;for(let t of e){if(!t)continue;let e=this.node;if(!e)return!0;let n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e||this._traverseFlags>0)return!0}return!1}function u(){var e;let t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function c(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function h(){var e,t,n;let i;if(null!=(e=this.opts)&&e.noScope)return;let r=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&r.isMethod()||"discriminant"===this.key&&r.isSwitchStatement())&&(r=r.parentPath);r&&!i;){if(null!=(n=r.opts)&&n.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),null==(t=this.scope)||t.init()}function d(){this.parentPath&&(this.parent=this.parentPath.node)}function p(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void g.call(this,e)}else for(let e of Object.keys(this.container))if(this.container[e]===this.node)return void g.call(this,e);this.key=null}}function f(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function g(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}t.isBlacklisted=u},25460(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:n=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!n){var r;i=null!=(r=i.ensureFunctionName(!1))?r:i}let{thisBinding:s,fnPath:o}=V(i,n,e,t);if(o.ensureBlock(),o.node.type="FunctionExpression",!n){let e=s?null:o.scope.generateUidIdentifier("arrowCheckId");return e&&o.parentPath.scope.push({id:e,init:E([])}),o.get("body").unshiftContainer("body",p(h(this.hub.addHelper("newArrowCheck"),[O(),e?f(e.name):f(s)]))),o.replaceWith(h(v(o.node,f("bind")),[e?f(e.name):O()])),o.get("callee.object")}return o},t.ensureBlock=function(){let e,t,n=this.get("body"),i=n.node;if(Array.isArray(n))throw Error("Can't convert array path to a block statement");if(!i)throw Error("Can't convert node without a body");if(n.isBlockStatement())return i;let r=[],s="body";n.isStatement()?(t="body",e=0,r.push(n.node)):(s+=".body.0",this.isFunction()?(e="argument",r.push(w(n.node))):(e="expression",r.push(p(n.node)))),this.node.body=c(r);let a=this.get(s);return o.setup.call(n,a,t?a.node[t]:a.node,t,e),this.node},t.ensureFunctionName=function(e){var t;let n;if(this.node.id)return this;let i=M(this.node,this.parent);if(null==i)return this;let{name:s}=i;if(!e&&/[\uD800-\uDFFF]/.test(s)||s.startsWith("get ")||s.startsWith("set "))return null;let o=f(s=I(s.replace(/[/ ]/g,"_")));K(o,i.originalNode);let a={needsRename:!1,name:s},{scope:l}=this,u=l.getOwnBinding(s);if(u?"param"===u.kind&&(a.needsRename=!0):(l.parent.hasBinding(s)||l.hasGlobal(s))&&this.traverse(J,a),!a.needsRename)return this.node.id=o,l.getProgramParent().references[o.name]=!0,this;if(l.hasBinding(o.name)&&!l.hasGlobal(o.name))return l.rename(o.name),this.node.id=o,l.getProgramParent().references[o.name]=!0,this;if(!D(this.node))return null;let c=l.generateUidIdentifier(o.name),h=[];for(let e=0,i=-1===(n=(t=this.node).params.findIndex(e=>j(e)||T(e)))?t.params.length:n;e<i;e++)h.push(l.generateUidIdentifier("x"));let d=r.default.expression.ast`
|
|
11
|
+
(function (${c}) {
|
|
12
|
+
function ${o}(${h}) {
|
|
13
|
+
return ${R(c)}.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
${R(o)}.toString = function () {
|
|
17
|
+
return ${R(c)}.toString();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return ${R(o)};
|
|
21
|
+
})(${_(this.node)})
|
|
22
|
+
`;return this.replaceWith(d)[0].get("arguments.0")},t.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let t=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),i=e.isScope()?e.scope.parent:e.scope,r=e.node.id,s=!1;r?n&&i.hasBinding(r.name)&&(s=!0,r=i.generateUidIdentifier(r.name)):(s=!0,r=i.generateUidIdentifier("default"),(t||n)&&(e.node.id=R(r)));let o=t?e.node:W("var",[N(R(r),e.node)]),a=U(null,[L(R(r),f("default"))]);return this.insertAfter(a),this.replaceWith(o),s&&i.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let t=U(null,Object.keys(e.getOuterBindingIdentifiers()).map(e=>L(f(e),f(e))));return this.insertAfter(t),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw ReferenceError("todo");return!this.node.computed&&g(e)&&(e=B(e.name)),e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");V(this)};var i=n(58135),r=n(50240),s=n(95957),o=n(44537);let{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:u,blockStatement:c,callExpression:h,conditionalExpression:d,expressionStatement:p,identifier:f,isIdentifier:g,jsxIdentifier:m,logicalExpression:y,LOGICAL_OPERATORS:b,memberExpression:v,metaProperty:x,numericLiteral:P,objectExpression:E,restElement:S,returnStatement:w,sequenceExpression:k,spreadElement:A,stringLiteral:B,super:C,thisExpression:O,toExpression:_,unaryExpression:F,toBindingIdentifierName:I,isFunction:D,isAssignmentPattern:j,isRestElement:T,getFunctionName:M,cloneNode:R,variableDeclaration:W,variableDeclarator:N,exportNamedDeclaration:U,exportSpecifier:L,inherits:K}=i;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};let $=(0,s.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function V(e,t=!0,n=!0,i=!0){var r,s,o;let c,p,g,E,w,I,D,j=e.findParent(e=>e.isArrowFunctionExpression()?(null!=I||(I=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1})),T=j.isClassMethod({kind:"constructor"});if(j.isClassProperty()||j.isClassPrivateProperty())if(I)j=I;else if(n)e.replaceWith(h(a([],_(e.node)),[])),e=(j=e.get("callee")).get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:M,argumentsPaths:R,newTargetPaths:W,superProps:N,superCalls:U}=(c=[],p=[],g=[],E=[],w=[],e.traverse(X,{thisPaths:c,argumentsPaths:p,newTargetPaths:g,superProps:E,superCalls:w}),{thisPaths:c,argumentsPaths:p,newTargetPaths:g,superProps:E,superCalls:w});if(T&&U.length>0){if(!n)throw U[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw U[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let e=[];j.traverse($,{allSuperCalls:e});let t=G(r=j,"supercall",()=>{let e=r.scope.generateUidIdentifier("args");return a([S(e)],h(C(),[A(f(e.name))]))});e.forEach(e=>{let n=f(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)})}if(R.length>0){let e=G(j,"arguments",()=>j.scope.path.isProgram()?d(u("===",F("typeof",f("arguments")),B("undefined")),j.scope.buildUndefinedNode(),f("arguments")):f("arguments"));R.forEach(t=>{let n=f(e);n.loc=t.node.loc,t.replaceWith(n)})}if(W.length>0){let e=G(j,"newtarget",()=>x(f("new"),f("target")));W.forEach(t=>{let n=f(e);n.loc=t.node.loc,t.replaceWith(n)})}if(N.length>0){if(!n)throw N[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");N.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){let n=e.parentPath,i=n.node.operator.slice(0,-1),r=n.node.right,s=b.includes(i);if(e.node.computed){let o=e.scope.generateDeclaredUidIdentifier("tmp"),{object:a,property:u}=e.node;n.get("left").replaceWith(v(a,l("=",o,u),!0)),n.get("right").replaceWith(t(s?"=":i,v(a,f(o.name),!0),r))}else{let o=e.node.object,a=e.node.property;n.get("left").replaceWith(v(o,a)),n.get("right").replaceWith(t(s?"=":i,v(o,f(a.name)),r))}return s?n.replaceWith(y(i,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){let t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),i=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,r=[l("=",n,v(e.node.object,i?l("=",i,e.node.property):e.node.property,e.node.computed)),l("=",v(e.node.object,i?f(i.name):e.node.property,e.node.computed),u(e.parentPath.node.operator[0],f(n.name),P(1)))];return e.parentPath.node.prefix||r.push(f(n.name)),t.replaceWith(k(r)),[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function t(e,t,n){return"="===e?l("=",t,n):u(e,t,n)}}(t)),[]).forEach(e=>{var t,n,i;let r=e.node.computed?"":e.get("property").node.name,s=e.parentPath,o=s.isAssignmentExpression({left:e.node}),u=s.isCallExpression({callee:e.node}),c=s.isTaggedTemplateExpression({tag:e.node}),d=(t=j,n=o,i=r,G(t,`superprop_${n?"set":"get"}:${i||""}`,()=>{let e,r=[];if(i)e=v(C(),f(i));else{let n=t.scope.generateUidIdentifier("prop");r.unshift(n),e=v(C(),f(n.name),!0)}if(n){let n=t.scope.generateUidIdentifier("value");r.push(n),e=l("=",e,f(n.name))}return a(r,e)})),p=[];if(e.node.computed&&p.push(e.get("property").node),o){let e=s.node.right;p.push(e)}let g=h(f(d),p);u?(s.unshiftContainer("arguments",O()),e.replaceWith(v(g,f("call"))),M.push(s.get("arguments.0"))):o?s.replaceWith(g):c?(e.replaceWith(h(v(g,f("bind"),!1),[O()])),M.push(e.get("arguments.0"))):e.replaceWith(g)})}return(M.length>0||!t)&&(s=j,o=T,D=G(s,"this",e=>{if(!o||!q(s))return O();s.traverse(H,{supers:new WeakSet,thisBinding:e})}),(t||T&&q(j))&&(M.forEach(e=>{let t=e.isJSX()?m(D):f(D);t.loc=e.node.loc,e.replaceWith(t)}),t||(D=null))),{thisBinding:D,fnPath:e}}function q(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}let H=(0,s.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:n}){!e.get("callee").isSuper()||t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,l("=",f(n),f("this"))]))}});function G(e,t,n){let i="binding:"+t,r=e.getData(i);if(!r){let s=e.scope.generateUidIdentifier(t);r=s.name,e.setData(i,r),e.scope.push({id:s,init:n(r)})}return r}let X=(0,s.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"!==e.node.name||(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){!e.get("meta").isIdentifier({name:"new"})||e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),J={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}},80366(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=function(){let e={confident:!0,deoptPath:null,seen:new Map},t=l(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},t.evaluateTruthy=function(){let e=this.evaluate();if(e.confident)return!!e.value};let n=["Number","String","Math"],i=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],r=["random"];function s(e){return n.includes(e)}function o(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}let a=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function l(e,t){let{node:n}=e,{seen:c}=t;if(c.has(n)){let i=c.get(n);return i.resolved?i.value:void o(e,t)}{let h={resolved:!1};c.set(n,h);let d=function(e,t){if(t.confident){var n,c,h;if(e.isSequenceExpression()){let n=e.get("expressions");return l(n[n.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return u(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let n=e.get("tag.object"),{node:{name:i}}=n,r=e.get("tag.property");if(n.isIdentifier()&&"String"===i&&!e.scope.getBinding(i)&&r.isIdentifier()&&"raw"===r.node.name)return u(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let n=l(e.get("test"),t);return t.confident?n?l(e.get("consequent"),t):l(e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return l(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let n=e.get("property"),i=e.get("object");if(i.isLiteral()){let r=i.node.value,s=typeof r,o=null;if(e.node.computed){if(o=l(n,t),!t.confident)return}else n.isIdentifier()&&(o=n.node.name);if(("number"===s||"string"===s)&&null!=o&&("number"==typeof o||"string"==typeof o))return r[o]}}if(e.isReferencedIdentifier()){let i=e.scope.getBinding(e.node.name);if(i){if(i.constantViolations.length>0||e.node.start<i.path.node.end)return void o(i.path,t);let r=i.path.scope;if("var"===i.kind&&r!==i.scope){let s=!r.path.parentPath.isBlockStatement();for(let a=r.parent;a;a=a.parent){if(a===e.scope){if(s)return void o(i.path,t);break}null!=(n=a.path.parentPath)&&n.isBlockStatement()&&(s=!0)}}if(i.hasValue)return i.value}let r=e.node.name;if(a.has(r))return i?void o(i.path,t):a.get(r);let s=e.resolve();if(s===e)return void o(e,t);let u=l(s,t);return"object"==typeof u&&null!==u&&i.references>1?void o(s,t):u}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;let n=e.get("argument");if("typeof"===e.node.operator&&(n.isFunction()||n.isClass()))return"function";let i=l(n,t);if(!t.confident)return;switch(e.node.operator){case"!":return!i;case"+":return+i;case"-":return-i;case"~":return~i;case"typeof":return typeof i}}if(e.isArrayExpression()){let n=[];for(let i of e.get("elements")){let e=i.evaluate();if(!e.confident)return void o(e.deopt,t);n.push(e.value)}return n}if(e.isObjectExpression()){let n={};for(let i of e.get("properties")){let e;if(i.isObjectMethod()||i.isSpreadElement())return void o(i,t);let r=i.get("key");if(i.node.computed){if(!(e=r.evaluate()).confident)return void o(e.deopt,t);e=e.value}else e=r.isIdentifier()?r.node.name:r.node.value;let s=i.get("value").evaluate();if(!s.confident)return void o(s.deopt,t);s=s.value,n[e]=s}return n}if(e.isLogicalExpression()){let n=t.confident,i=l(e.get("left"),t),r=t.confident;t.confident=n;let s=l(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":if(t.confident=r&&(!!i||o),!t.confident)return;return i||s;case"&&":if(t.confident=r&&(!i||o),!t.confident)return;return i&&s;case"??":if(t.confident=r&&(null!=i||o),!t.confident)return;return null!=i?i:s}}if(e.isBinaryExpression()){let n=l(e.get("left"),t);if(!t.confident)return;let i=l(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return n-i;case"+":return n+i;case"/":return n/i;case"*":return n*i;case"%":return n%i;case"**":return Math.pow(n,i);case"<":return n<i;case">":return n>i;case"<=":return n<=i;case">=":return n>=i;case"==":return n==i;case"!=":return n!=i;case"===":return n===i;case"!==":return n!==i;case"|":return n|i;case"&":return n&i;case"^":return n^i;case"<<":return n<<i;case">>":return n>>i;case">>>":return n>>>i}}if(e.isCallExpression()){let n,o,a=e.get("callee");if(a.isIdentifier()&&!e.scope.getBinding(a.node.name)&&(s(a.node.name)||(c=a.node.name,i.includes(c)))&&(o=global[a.node.name]),a.isMemberExpression()){let e=a.get("object"),t=a.get("property");if(e.isIdentifier()&&t.isIdentifier()&&s(e.node.name)&&(h=t.node.name,!r.includes(h))){n=global[e.node.name];let i=t.node.name;hasOwnProperty.call(n,i)&&(o=n[i])}if(e.isLiteral()&&t.isIdentifier()){let i=typeof e.node.value;("string"===i||"number"===i)&&(o=(n=e.node.value)[t.node.name])}}if(o){let i=e.get("arguments").map(e=>l(e,t));if(!t.confident)return;return o.apply(n,i)}}o(e,t)}}(e,t);return t.confident&&(h.resolved=!0,h.value=d),d}}function u(e,t,n,i=!1){let r="",s=0,o=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let e of t){if(!n.confident)break;r+=i?e.value.raw:e.value.cooked;let t=o[s++];t&&(r+=String(l(t,n)))}if(n.confident)return r}},53476(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._getKey=p,t._getPattern=f,t.get=function(e,t=!0){!0===t&&(t=this.context);let n=e.split(".");return 1===n.length?p.call(this,e,t):f.call(this,n,t)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e),n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e),n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.getAssignmentIdentifiers=function(){return r(this.node)},t.getBindingIdentifierPaths=function(e=!1,t=!1){let n=[this],i=Object.create(null);for(;n.length;){let r=n.shift();if(!r||!r.node)continue;let o=s.keys[r.node.type];if(r.isIdentifier()){e?(i[r.node.name]=i[r.node.name]||[]).push(r):i[r.node.name]=r;continue}if(r.isExportDeclaration()){let e=r.get("declaration");e.isDeclaration()&&n.push(e);continue}if(t){if(r.isFunctionDeclaration()){n.push(r.get("id"));continue}if(r.isFunctionExpression())continue}if(o)for(let e=0;e<o.length;e++){let t=o[e],i=r.get(t);Array.isArray(i)?n.push(...i):i.node&&n.push(i)}}return i},t.getBindingIdentifiers=function(e){return s(this.node,e)},t.getCompletionRecords=function(e=!1){return d(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},t.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},t.getOuterBindingIdentifiers=function(e){return o(this.node,e)},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getSibling=function(e){return i.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)};var i=n(32670);let{getAssignmentIdentifiers:r,getBindingIdentifiers:s,getOuterBindingIdentifiers:o,numericLiteral:a,unaryExpression:l}=n(58135);function u(e,t,n){return e&&t.push(...d(e,n)),t}function c(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(l("void",a(0))):e.path.remove())})}function h(e,t){let n=[];if(t.canHaveBreak){let i=[];for(let r=0;r<e.length;r++){let s=e[r],o=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?o.shouldPopulateBreak=!0:o.shouldPopulateBreak=!1;let a=d(s,o);if(a.length>0&&a.every(e=>1===e.type)){i.length>0&&a.every(e=>e.path.isBreakStatement({label:null}))?(i.forEach(e=>{e.type=1}),n.push(...i),i.some(e=>e.path.isDeclaration())&&(n.push(...a),t.shouldPreserveBreak||c(a,!0)),t.shouldPreserveBreak||c(a,!1)):(n.push(...a),t.shouldPopulateBreak||t.shouldPreserveBreak||c(a,!0));break}if(r===e.length-1)n.push(...a);else{i=[];for(let e=0;e<a.length;e++){let t=a[e];1===t.type&&n.push(t),0===t.type&&i.push(t)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let r=d(e[i],t);if(r.length>1||1===r.length&&!r[0].path.isVariableDeclaration()&&!r[0].path.isEmptyStatement()){n.push(...r);break}}return n}function d(e,t){let n=[];if(e.isIfStatement())n=u(e.get("consequent"),n,t),n=u(e.get("alternate"),n,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return u(e.get("body"),n,t);else if(e.isProgram()||e.isBlockStatement())return h(e.get("body"),t);else if(e.isFunction())return d(e.get("body"),t);else if(e.isTryStatement())n=u(e.get("block"),n,t),n=u(e.get("handler"),n,t);else{if(e.isCatchClause())return u(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let i=[];for(let r=0;r<e.length;r++){let s=d(e[r],n),o=[],a=[];for(let e of s)0===e.type&&o.push(e),1===e.type&&a.push(e);o.length&&(i=o),t.push(...a)}return t.push(...i),t}(e.get("cases"),n,t);if(e.isSwitchCase())return h(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?n.push({type:1,path:e}):n.push({type:0,path:e})}return n}function p(e,t){let n=this.node,r=n[e];return Array.isArray(r)?r.map((s,o)=>i.default.get({listKey:e,parentPath:this,parent:n,container:r,key:o}).setContext(t)):i.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)}function f(e,t){let n=this;for(let i of e)n="."===i?n.parentPath:Array.isArray(n)?n[i]:n.get(i,t);return n}},32670(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var i=n(44057),r=n(3680),s=n(80004),o=n(54683),a=n(58135),l=n(56266),u=n(2235),c=n(90157),h=n(83810),d=n(94834),p=n(80366),f=n(25460),g=n(74145),m=n(44537),y=n(7946),b=n(11064),v=n(53476),x=n(68418),P=n(37494);let{validate:E}=a,S=r("babel");t.REMOVED=1,t.SHOULD_STOP=2,t.SHOULD_SKIP=4;let w=t.default=class e{constructor(e,t){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:n,parent:i,container:r,listKey:s,key:o}){if(!t&&n&&(t=n.hub),!i)throw Error("To get a node path the parent needs to exist");let a=r[o],u=l.getOrCreateCachedPaths(i,n),c=u.get(a);return!c&&(c=new e(t,i),a&&u.set(a,c)),m.setup.call(c,n,r,s,o),c}getScope(e){return this.isScope()?new o.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}set(e,t){E(this.node,e,t),this.node[e]=t}getPathLocation(){let e=[],t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){S.enabled&&S(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},k={findParent:c.findParent,find:c.find,getFunctionParent:c.getFunctionParent,getStatementParent:c.getStatementParent,getEarliestCommonAncestorFrom:c.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:c.getDeepestCommonAncestorFrom,getAncestry:c.getAncestry,isAncestor:c.isAncestor,isDescendant:c.isDescendant,inType:c.inType,getTypeAnnotation:h.getTypeAnnotation,isBaseType:h.isBaseType,couldBeBaseType:h.couldBeBaseType,baseTypeStrictlyMatches:h.baseTypeStrictlyMatches,isGenericType:h.isGenericType,replaceWithMultiple:d.replaceWithMultiple,replaceWithSourceString:d.replaceWithSourceString,replaceWith:d.replaceWith,replaceExpressionWithStatements:d.replaceExpressionWithStatements,replaceInline:d.replaceInline,evaluateTruthy:p.evaluateTruthy,evaluate:p.evaluate,toComputedKey:f.toComputedKey,ensureBlock:f.ensureBlock,unwrapFunctionEnvironment:f.unwrapFunctionEnvironment,arrowFunctionToExpression:f.arrowFunctionToExpression,splitExportDeclaration:f.splitExportDeclaration,ensureFunctionName:f.ensureFunctionName,matchesPattern:g.matchesPattern,isStatic:g.isStatic,isNodeType:g.isNodeType,canHaveVariableDeclarationOrExpression:g.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:g.canSwapBetweenExpressionAndStatement,isCompletionRecord:g.isCompletionRecord,isStatementOrBlock:g.isStatementOrBlock,referencesImport:g.referencesImport,getSource:g.getSource,willIMaybeExecuteBefore:g.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:g._guessExecutionStatusRelativeTo,resolve:g.resolve,isConstantExpression:g.isConstantExpression,isInStrictMode:g.isInStrictMode,isDenylisted:m.isDenylisted,visit:m.visit,skip:m.skip,skipKey:m.skipKey,stop:m.stop,setContext:m.setContext,requeue:m.requeue,requeueComputedKeyAndDecorators:m.requeueComputedKeyAndDecorators,remove:y.remove,insertBefore:b.insertBefore,insertAfter:b.insertAfter,unshiftContainer:b.unshiftContainer,pushContainer:b.pushContainer,getOpposite:v.getOpposite,getCompletionRecords:v.getCompletionRecords,getSibling:v.getSibling,getPrevSibling:v.getPrevSibling,getNextSibling:v.getNextSibling,getAllNextSiblings:v.getAllNextSiblings,getAllPrevSiblings:v.getAllPrevSiblings,get:v.get,getAssignmentIdentifiers:v.getAssignmentIdentifiers,getBindingIdentifiers:v.getBindingIdentifiers,getOuterBindingIdentifiers:v.getOuterBindingIdentifiers,getBindingIdentifierPaths:v.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:v.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:x.shareCommentsWithSiblings,addComment:x.addComment,addComments:x.addComments};for(let e of(Object.assign(w.prototype,k),w.prototype.arrowFunctionToShadowed=f[String("arrowFunctionToShadowed")],Object.assign(w.prototype,{has:g[String("has")],is:g[String("is")],isnt:g[String("isnt")],equals:g[String("equals")],hoist:b[String("hoist")],updateSiblingKeys:b.updateSiblingKeys,call:m.call,isBlacklisted:m[String("isBlacklisted")],setScope:m.setScope,resync:m.resync,popContext:m.popContext,pushContext:m.pushContext,setup:m.setup,setKey:m.setKey}),w.prototype._guessExecutionStatusRelativeToDifferentFunctions=g._guessExecutionStatusRelativeTo,w.prototype._guessExecutionStatusRelativeToDifferentFunctions=g._guessExecutionStatusRelativeTo,Object.assign(w.prototype,{_getTypeAnnotation:h._getTypeAnnotation,_replaceWith:d._replaceWith,_resolve:g._resolve,_call:m._call,_resyncParent:m._resyncParent,_resyncKey:m._resyncKey,_resyncList:m._resyncList,_resyncRemoved:m._resyncRemoved,_getQueueContexts:m._getQueueContexts,_removeFromScope:y._removeFromScope,_callRemovalHooks:y._callRemovalHooks,_remove:y._remove,_markRemoved:y._markRemoved,_assertUnremoved:y._assertUnremoved,_containerInsert:b._containerInsert,_containerInsertBefore:b._containerInsertBefore,_containerInsertAfter:b._containerInsertAfter,_verifyNodeList:b._verifyNodeList,_getKey:v._getKey,_getPattern:v._getPattern}),a.TYPES)){let t=`is${e}`,n=a[t];w.prototype[t]=function(e){return n(this.node,e)},w.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw TypeError(`Expected node path of type ${e}`)}}for(let e of(Object.assign(w.prototype,P),Object.keys(i)))"_"!==e[0]&&(a.TYPES.includes(e)||a.TYPES.push(e))},83810(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._getTypeAnnotation=k,t.baseTypeStrictlyMatches=function(e){let t=this.getTypeAnnotation(),n=e.getTypeAnnotation();return!!(!s(t)&&u(t))&&n.type===t.type},t.couldBeBaseType=function(e){let t=this.getTypeAnnotation();if(s(t))return!0;if(!x(t))return A(e,t,!0);for(let n of t.types)if(s(n)||A(e,n,!0))return!0;return!1},t.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");return null!=e||((v(e=k.call(this)||r())||m(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},t.isBaseType=function(e,t){return A(e,this.getTypeAnnotation(),t)},t.isGenericType=function(e){let t=this.getTypeAnnotation();return!!("Array"===e&&(g(t)||o(t)||b(t)))||c(t)&&h(t.id,{name:e})||y(t)&&h(t.typeName,{name:e})};var i=n(19724);let{anyTypeAnnotation:r,isAnyTypeAnnotation:s,isArrayTypeAnnotation:o,isBooleanTypeAnnotation:a,isEmptyTypeAnnotation:l,isFlowBaseAnnotation:u,isGenericTypeAnnotation:c,isIdentifier:h,isMixedTypeAnnotation:d,isNumberTypeAnnotation:p,isStringTypeAnnotation:f,isTSArrayType:g,isTSTypeAnnotation:m,isTSTypeReference:y,isTupleTypeAnnotation:b,isTypeAnnotation:v,isUnionTypeAnnotation:x,isVoidTypeAnnotation:P,stringTypeAnnotation:E,voidTypeAnnotation:S}=n(58135),w=new WeakSet;function k(){let e=this.node;if(!e)if(!("init"===this.key&&this.parentPath.isVariableDeclarator()))return;else{let e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?E():"left"===e.key&&t.isForOfStatement()?r():S()}if(e.typeAnnotation)return e.typeAnnotation;if(!w.has(e)){w.add(e);try{var t;let n=i[e.type];if(n)return n.call(this,e);if(n=i[this.parentPath.type],null!=(t=n)&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{w.delete(e)}}}function A(e,t,n){if("string"===e)return f(t);if("number"===e)return p(t);if("boolean"===e)return a(t);if("any"===e)return s(t);if("mixed"===e)return d(t);else if("empty"===e)return l(t);else if("void"===e)return P(t);else if(n)return!1;else throw Error(`Unknown base type ${e}`)}},61593(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)if(t.identifier.typeAnnotation)return t.identifier.typeAnnotation;else return function(e,t,n){let i=[],l=[],c=u(e,t,l),h=function e(t,n,i){let l=function(e,t,n){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression()){if("test"===t.key)return;return i}if(i.isFunction()&&(null==n||i.parentPath.scope.getBinding(n)!==e))return;t=i}}(t,n,i);if(!l)return;let u=[l.get("test")],c=[];for(let e=0;e<u.length;e++){let t=u[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(u.push(t.get("left")),u.push(t.get("right")));else if(t.isBinaryExpression()){let e=function(e,t){let n,i,r,l=t.node.operator,u=t.get("right").resolve(),c=t.get("left").resolve();if(c.isIdentifier({name:e})?n=u:u.isIdentifier({name:e})&&(n=c),n)return"==="===l?n.getTypeAnnotation():s.includes(l)?a():void 0;if("==="!==l&&"=="!==l||(c.isUnaryExpression({operator:"typeof"})?(i=c,r=u):u.isUnaryExpression({operator:"typeof"})&&(i=u,r=c),!i||!i.get("argument").isIdentifier({name:e})||!(r=r.resolve()).isLiteral()))return;let h=r.node.value;if("string"==typeof h)return o(h)}(i,t);e&&c.push(e)}}return c.length?{typeAnnotation:(0,r.createUnionType)(c),ifStatement:l}:e(t,l,i)}(e,t,n);if(h){let t=u(e,h.ifStatement);c=c.filter(e=>!t.includes(e)),i.push(h.typeAnnotation)}if(c.length)for(let e of(c.push(...l),c))i.push(e.getTypeAnnotation());if(i.length)return(0,r.createUnionType)(i)}(t,this,e.name);return"undefined"===e.name?l():"NaN"===e.name||"Infinity"===e.name?a():void e.name};var i=n(58135),r=n(58252);let{BOOLEAN_NUMBER_BINARY_OPERATORS:s,createTypeAnnotationBasedOnTypeof:o,numberTypeAnnotation:a,voidTypeAnnotation:l}=i;function u(e,t,n){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(e=>{let i=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===i&&n.push(e),"before"===i})}},19724(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=A,t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.BinaryExpression=function(e){let t=e.operator;if(l.includes(t))return b();if(o.includes(t))return p();if("+"===t){let e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?b():t.isBaseType("string")||e.isBaseType("string")?v():P([v(),b()])}},t.BooleanLiteral=function(){return p()},t.CallExpression=function(){let{callee:e}=this.node;return O(e)?d(v()):C(e)||_(e)||S(e,{name:"Array"})?d(h()):F(e)?d(x([v(),h()])):I(this.get("callee"))},t.ConditionalExpression=function(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,s.createUnionType)(e)},t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return g(m("Function"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return r.default}}),t.LogicalExpression=function(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,s.createUnionType)(e)},t.NewExpression=function(e){if("Identifier"===e.callee.type)return g(e.callee)},t.NullLiteral=function(){return y()},t.NumericLiteral=function(){return b()},t.ObjectExpression=function(){return g(m("Object"))},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.RegExpLiteral=function(){return g(m("RegExp"))},t.RestElement=B,t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.StringLiteral=function(){return v()},t.TSAsExpression=k,t.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},t.TaggedTemplateExpression=function(){return I(this.get("tag"))},t.TemplateLiteral=function(){return v()},t.TypeCastExpression=w,t.UnaryExpression=function(e){let t=e.operator;return"void"===t?E():u.includes(t)?b():c.includes(t)?v():a.includes(t)?p():void 0},t.UpdateExpression=function(e){let t=e.operator;if("++"===t||"--"===t)return b()},t.VariableDeclarator=function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()};var i=n(58135),r=n(61593),s=n(58252);let{BOOLEAN_BINARY_OPERATORS:o,BOOLEAN_UNARY_OPERATORS:a,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:u,STRING_UNARY_OPERATORS:c,anyTypeAnnotation:h,arrayTypeAnnotation:d,booleanTypeAnnotation:p,buildMatchMemberExpression:f,genericTypeAnnotation:g,identifier:m,nullLiteralTypeAnnotation:y,numberTypeAnnotation:b,stringTypeAnnotation:v,tupleTypeAnnotation:x,unionTypeAnnotation:P,voidTypeAnnotation:E,isIdentifier:S}=i;function w(e){return e.typeAnnotation}function k(e){return e.typeAnnotation}function A(){return g(m("Array"))}function B(){return A()}w.validParent=!0,k.validParent=!0,B.validParent=!0;let C=f("Array.from"),O=f("Object.keys"),_=f("Object.values"),F=f("Object.entries");function I(e){if((e=e.resolve()).isFunction()){let{node:t}=e;if(t.async)if(t.generator)return g(m("AsyncIterator"));else return g(m("Promise"));if(t.generator)return g(m("Iterator"));if(e.node.returnType)return e.node.returnType}}},58252(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createUnionType=function(e){return e.every(e=>o(e))?i?i(e):s(e):e.every(e=>a(e))&&r?r(e):void 0};let{createFlowUnionType:i,createTSUnionType:r,createUnionTypeAnnotation:s,isFlowType:o,isTSType:a}=n(58135)},74145(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=function(e){return function e(t,n,i){let s,o={this:d(t),target:d(n)};if(o.target.node!==o.this.node)return function(t,n,i){let r,s=i.get(t.node);if(s){if(r=s.get(n.node))return r===f?"unknown":r}else i.set(t.node,s=new Map);s.set(n.node,f);let o=function(t,n,i){let r;if(!n.isFunctionDeclaration())return"before"===e(t,n,i)?"before":"unknown";if(n.parentPath.isExportDeclaration())return"unknown";let s=n.scope.getBinding(n.node.id.name);if(!s.references)return"before";for(let o of s.referencePaths){if(o.find(e=>e.node===n.node))continue;if("callee"!==o.key||!o.parentPath.isCallExpression())return"unknown";let s=e(t,o,i);if(r&&r!==s)return"unknown";r=s}return r}(t,n,i);return s.set(n.node,o),o}(t,o.target,i);let a={target:n.getAncestry(),this:t.getAncestry()};if(a.target.includes(t))return"after";if(a.this.includes(n))return"before";let l={target:0,this:0};for(;!s&&l.this<a.this.length;){let e=a.this[l.this];l.target=a.target.indexOf(e),l.target>=0?s=e:l.this++}if(!s)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(p(a.this,l.this-1)||p(a.target,l.target-1))return"unknown";let u={this:a.this[l.this-1],target:a.target[l.target-1]};if(u.target.listKey&&u.this.listKey&&u.target.container===u.this.container)return u.target.key>u.this.key?"before":"after";let c=r[s.type],h={this:c.indexOf(u.this.parentKey),target:c.indexOf(u.target.parentKey)};return h.target>h.this?"before":"after"}(this,e,new Map)},t._resolve=g,t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return"body"===this.key&&!!this.parentPath.isArrowFunctionExpression()&&(this.isExpression()?s(e):!!this.isBlockStatement()&&o(e))},t.getSource=function(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.isCompletionRecord=function(e){let t=this,n=!0;do{let{type:i,container:r}=t;if(!n&&(t.isFunction()||"StaticBlock"===i))return!!e;if(n=!1,Array.isArray(r)&&t.key!==r.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},t.isConstantExpression=function(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral()},t.isInStrictMode=function(){return!!(this.isProgram()?this:this.parentPath).find(e=>{let t;if(e.isProgram({sourceType:"module"})||e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(let e of t.directives)if("use strict"===e.value.value)return!0;return!1})},t.isNodeType=function(e){return c(this.type,e)},t.isStatementOrBlock=function(){return!(this.parentPath.isLabeledStatement()||s(this.container))&&i.includes(this.key)},t.isStatic=function(){return this.scope.isStatic(this.node)},t.matchesPattern=function(e,t){return h(this.node,e,t)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?u(this.node.property,{value:t}):this.node.property.name===t)){let t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}let n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;let i=n.path,r=i.parentPath;return!!r.isImportDeclaration()&&r.node.source.value===e&&(!t||!!(i.isImportDefaultSpecifier()&&"default"===t||i.isImportNamespaceSpecifier()&&"*"===t||i.isImportSpecifier()&&a(i.node.imported,{name:t})))},t.resolve=function(e,t){return g.call(this,e,t)||this},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};let{STATEMENT_OR_BLOCK_KEYS:i,VISITOR_KEYS:r,isBlockStatement:s,isExpression:o,isIdentifier:a,isLiteral:l,isStringLiteral:u,isType:c,matchesPattern:h}=n(58135);function d(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function p(e,t){for(let n=0;n<t;n++){let t=e[n];if(function(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}(t.parent.type,t.parentKey))return!0}return!1}t.has=function(e){var t;let n=null==(t=this.node)?void 0:t[e];return n&&Array.isArray(n)?!!n.length:!!n},t.is=t.has,t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t};let f=Symbol();function g(e,t){var n;if(!(null!=(n=t)&&n.includes(this))){if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let n=this.scope.getBinding(this.node.name);if(!n||!n.constant||"module"===n.kind)return;if(n.path!==this){let i=n.path.resolve(e,t);if(this.find(e=>e.node===i.node))return;return i}}else if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);else if(e&&this.isMemberExpression()){let n=this.toComputedKey();if(!l(n))return;let i=n.value,r=this.get("object").resolve(e,t);if(r.isObjectExpression())for(let n of r.get("properties")){if(!n.isProperty())continue;let r=n.get("key"),s=n.isnt("computed")&&r.isIdentifier({name:i});if(s=s||r.isLiteral({value:i}))return n.get("value").resolve(e,t)}else if(r.isArrayExpression()&&!isNaN(+i)){let n=r.get("elements")[i];if(n)return n.resolve(e,t)}}}}},82738(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(58135);let{react:r}=i,{cloneNode:s,jsxExpressionContainer:o,variableDeclaration:a,variableDeclarator:l}=i,u={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&r.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}let n=e.scope.getBinding(e.node.name);if(n){for(let i of n.constantViolations)if(i.scope!==n.path.scope){t.mutableBinding=!0,e.stop();return}n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(let t of Object.keys(this.bindings)){let n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(this.isCompatibleScope(e))this.scopes.push(e);else break;if(this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(let n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;let i=this.bindings[n];if("param"!==i.kind&&"params"!==i.path.parentKey&&this.getAttachmentParentForPath(i.path).key>=e.key)for(let t of(this.attachAfter=!0,e=i.path,i.constantViolations))this.getAttachmentParentForPath(t).key>e.key&&(e=t)}return e}_getAttachmentPath(){let e=this.scopes.pop();if(e){if(e.path.isFunction())if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();else{if(this.scope===e)return;let t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;while(e=e.parentPath);return e}hasOwnParamBindings(e){for(let t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;let n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(u,this),this.mutableBinding)return;this.getCompatibleScopes();let e=this.getAttachmentPath();if(!e||e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref"),n=l(t,this.path.node),[i]=e[this.attachAfter?"insertAfter":"insertBefore"]([e.isVariableDeclarator()?n:a("var",[n])]),r=this.path.parentPath;return r.isJSXElement()&&this.path.container===r.node.children&&(t=o(t)),this.path.replaceWith(s(t)),i.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}},16643(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0,t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]},37494(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isBindingIdentifier=function(){let{node:e,parent:t}=this,n=this.parentPath.parent;return c(e)&&i(e,t,n)},t.isBlockScoped=function(){return r(this.node)},t.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():o(this.node)},t.isFlow=function(){let{node:e}=this;return!!a(e)||(h(e)?"type"===e.importKind||"typeof"===e.importKind:s(e)?"type"===e.exportKind:!!d(e)&&("type"===e.importKind||"typeof"===e.importKind))},t.isForAwaitStatement=function(){return S(this.node,{await:!0})},t.isGenerated=function(){return!this.isUser()},t.isPure=function(e){return this.scope.isPure(this.node,e)},t.isReferenced=function(){return y(this.node,this.parent)},t.isReferencedIdentifier=function(e){let{node:t,parent:n}=this;return c(t,e)?y(t,n,this.parentPath.parent):!!p(t,e)&&!(!f(n)&&w(t.name))&&y(t,n,this.parentPath.parent)},t.isReferencedMemberExpression=function(){let{node:e,parent:t}=this;return g(e)&&y(e,t)},t.isRestProperty=function(){var e;return m(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},t.isScope=function(){return b(this.node,this.parent)},t.isSpreadProperty=function(){var e;return m(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},t.isStatement=function(){let{node:e,parent:t}=this;return!(!v(e)||P(e)&&(u(t,{left:e})||l(t,{init:e})))&&!0},t.isUser=function(){var e;return!!(null!=(e=this.node)&&e.loc)},t.isVar=function(){return x(this.node)};let{isBinding:i,isBlockScoped:r,isExportDeclaration:s,isExpression:o,isFlow:a,isForStatement:l,isForXStatement:u,isIdentifier:c,isImportDeclaration:h,isImportSpecifier:d,isJSXIdentifier:p,isJSXMemberExpression:f,isMemberExpression:g,isRestElement:m,isReferenced:y,isScope:b,isStatement:v,isVar:x,isVariableDeclaration:P,react:E,isForOfStatement:S}=n(58135),{isCompatTag:w}=E;t.isExistentialTypeParam=function(){throw Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},t.isNumericLiteralTypeAnnotation=function(){throw Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}},44057(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Var=t.User=t.Statement=t.SpreadProperty=t.Scope=t.RestProperty=t.ReferencedMemberExpression=t.ReferencedIdentifier=t.Referenced=t.Pure=t.NumericLiteralTypeAnnotation=t.Generated=t.ForAwaitStatement=t.Flow=t.Expression=t.ExistentialTypeParam=t.BlockScoped=t.BindingIdentifier=void 0,t.ReferencedIdentifier=["Identifier","JSXIdentifier"],t.ReferencedMemberExpression=["MemberExpression"],t.BindingIdentifier=["Identifier"],t.Statement=["Statement"],t.Expression=["Expression"],t.Scope=["Scopable","Pattern"],t.Referenced=null,t.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],t.Var=["VariableDeclaration"],t.User=null,t.Generated=null,t.Pure=null,t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],t.RestProperty=["RestElement"],t.SpreadProperty=["RestElement"],t.ExistentialTypeParam=["ExistsTypeAnnotation"],t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],t.ForAwaitStatement=["ForOfStatement"]},11064(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._containerInsert=w,t._containerInsertAfter=A,t._containerInsertBefore=k,t._verifyNodeList=O,t.insertAfter=function(e){if(o._assertUnremoved.call(this),this.isSequenceExpression())return B(this.get("expressions")).insertAfter(e);let t=O.call(this,e),{parentPath:n,parent:i}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||b(i)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>v(e)?g(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){if(this.node){let e=this.node,{scope:i}=this;if(i.path.isPattern())return c(e),this.replaceWith(p(u([],e),[])),this.get("callee.body").insertAfter(t),[this];if(function e(t){return P(t.parent)&&(B(t.parent.expressions)!==t.node||e(t.parentPath))}(this))t.unshift(e);else if(y(e)&&E(e.callee))t.unshift(e),t.push(S());else if(function(e,t){if(!m(e)||!x(e.left))return!1;let n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(e,i))t.unshift(e),t.push(f(e.left));else if(i.isPure(e,!0))t.push(e);else{n.isMethod({computed:!0,key:e})&&(i=i.parent);let r=i.generateDeclaredUidIdentifier();t.unshift(g(h("=",f(r),e))),t.push(g(f(r)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return A.call(this,t);if(this.isStatementOrBlock()){let e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[i]=this.replaceWith(d(n?[e]:[]));return i.pushContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.insertBefore=function(e){o._assertUnremoved.call(this);let t=O.call(this,e),{parentPath:n,parent:i}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||b(i)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return k.call(this,t);if(this.isStatementOrBlock()){let e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[i]=this.replaceWith(d(n?[e]:[]));return i.unshiftContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},t.pushContainer=function(e,t){o._assertUnremoved.call(this);let n=O.call(this,t),i=this.node[e];return r.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(n)},t.unshiftContainer=function(e,t){o._assertUnremoved.call(this);let n=O.call(this,t),i=this.node[e],s=r.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return k.call(s,n)},t.updateSiblingKeys=C;var i=n(56266),r=n(32670),s=n(44537),o=n(7946),a=n(58135),l=n(82738);let{arrowFunctionExpression:u,assertExpression:c,assignmentExpression:h,blockStatement:d,callExpression:p,cloneNode:f,expressionStatement:g,isAssignmentExpression:m,isCallExpression:y,isExportNamedDeclaration:b,isExpression:v,isIdentifier:x,isSequenceExpression:P,isSuper:E,thisExpression:S}=a;function w(e,t){C.call(this,e,t.length);let n=[];this.container.splice(e,0,...t);for(let r=0;r<t.length;r++){var i;let t=e+r,o=this.getSibling(t);n.push(o),null!=(i=this.context)&&i.queue&&s.pushContext.call(o,this.context)}let r=s._getQueueContexts.call(this);for(let e of n)for(let t of(s.setScope.call(e),e.debug("Inserted."),r))t.maybeQueue(e,!0);return n}function k(e){return w.call(this,this.key,e)}function A(e){return w.call(this,this.key+1,e)}let B=e=>e[e.length-1];function C(e,t){if(!this.parent)return;let n=(0,i.getCachedPaths)(this);if(n)for(let[,i]of n)"number"==typeof i.key&&i.container===this.container&&i.key>=e&&(i.key+=t)}function O(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let n,i=e[t];if(i?"object"!=typeof i?n="contains a non-object node":i.type?i instanceof r.default&&(n="has a NodePath when it expected a raw object"):n="without a type":n="has falsy node",n){let e=Array.isArray(i)?"array":typeof i;throw Error(`Node list ${n} with the index of ${t} and type of ${e}`)}}return e}t.hoist=function(e=this.scope){return new l.default(this,e).run()}},7946(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._assertUnremoved=f,t._callRemovalHooks=h,t._markRemoved=p,t._remove=d,t._removeFromScope=c,t.remove=function(){var e;f.call(this),u.resync.call(this),h.call(this)||(null!=(e=this.opts)&&e.noScope||c.call(this),this.shareCommentsWithSiblings(),d.call(this)),p.call(this)};var i=n(16643),r=n(56266),s=n(94834),o=n(32670),a=n(58135),l=n(11064),u=n(44537);function c(){Object.keys(a.getBindingIdentifiers(this.node,!1,!1,!0)).forEach(e=>this.scope.removeBinding(e))}function h(){if(this.parentPath){for(let e of i.hooks)if(e(this,this.parentPath))return!0}}function d(){Array.isArray(this.container)?(this.container.splice(this.key,1),l.updateSiblingKeys.call(this,this.key,-1)):s._replaceWith.call(this,null)}function p(){if(this._traverseFlags|=o.SHOULD_SKIP|o.REMOVED,this.parent){var e;null==(e=(0,r.getCachedPaths)(this))||e.delete(this.node)}this.node=null}function f(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}},94834(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t._replaceWith=N,t.replaceExpressionWithStatements=function(e){c.resync.call(this);let t=[],n=function e(t,n){let i=[],r=!0;for(let s of t)if(B(s)||(r=!1),C(s))i.push(s);else if(O(s))i.push(s.expression);else if(D(s)){if("var"!==s.kind)return;for(let e of s.declarations){let t=P(e);for(let e of Object.keys(t))n.push(b(t[e]));e.init&&i.push(p("=",e.id,e.init))}r=!0}else if(_(s)){let t=s.consequent?e([s.consequent],n):m(),r=s.alternate?e([s.alternate],n):m();if(!t||!r)return;i.push(v(s.test,t,r))}else if(A(s)){let t=e(s.body,n);if(!t)return;i.push(t)}else{if(!B(s))return;0===t.indexOf(s)&&(r=!0)}return(r&&i.push(m()),1===i.length)?i[0]:M(i)}(e,t);if(n){for(let e of t)this.scope.push({id:e});return this.replaceWith(n)[0].get("expressions")}let i=this.getFunctionParent(),s=null==i?void 0:i.node.async,o=null==i?void 0:i.node.generator,a=d([],g(e));this.replaceWith(y(a,[]));let l=this.get("callee");for(let e of(l.get("body").scope.hoistVariables(e=>this.scope.push({id:e})),l.getCompletionRecords())){if(!e.isExpressionStatement())continue;let t=e.findParent(e=>e.isLoop());if(t){let n=t.getData("expressionReplacementReturnUid");n?n=E(n.name):(n=l.scope.generateDeclaredUidIdentifier("ret"),l.get("body").pushContainer("body",T(b(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(p("=",b(n),e.node.expression))}else e.replaceWith(T(e.node.expression))}l.arrowFunctionToExpression();let u=s&&r.default.hasType(this.get("callee.body").node,"AwaitExpression",h),x=o&&r.default.hasType(this.get("callee.body").node,"YieldExpression",h);return u&&(l.set("async",!0),x||this.replaceWith(f(this.node))),x&&(l.set("generator",!0),this.replaceWith(W(this.node,!0))),l.get("body.body")},t.replaceInline=function(e){if(c.resync.call(this),!Array.isArray(e))return this.replaceWith(e);if(!Array.isArray(this.container))return this.replaceWithMultiple(e);{e=a._verifyNodeList.call(this,e);let t=a._containerInsertAfter.call(this,e);return this.remove(),t}},t.replaceWith=function(e){if(c.resync.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");let t=e instanceof s.default?e.node:e;if(!t)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!F(t))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let n="";if(this.isNodeType("Statement")&&C(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=x(t),n="expression"),this.isNodeType("Expression")&&I(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(k(t,i),j(i)),N.call(this,t),this.type=t.type,c.setScope.call(this),this.requeue(),[n?this.get(n):this]},t.replaceWithMultiple=function(e){var t;c.resync.call(this);let n=a._verifyNodeList.call(this,e);S(n[0],this.node),w(n[n.length-1],this.node),null==(t=(0,o.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;let i=this.insertAfter(e);return this.node?this.requeue():this.remove(),i},t.replaceWithSourceString=function(e){let t;c.resync.call(this);try{e=`(${e})`,t=(0,l.parse)(e)}catch(n){let t=n.loc;throw t&&(n.message+=" - make sure this is an expression.\n"+(0,i.codeFrameColumns)(e,{start:{line:t.line,column:t.column+1}}),n.code="BABEL_REPLACE_SOURCE_ERROR"),n}let n=t.program.body[0].expression;return r.default.removeProperties(n),this.replaceWith(n)};var i=n(56611),r=n(80004),s=n(32670),o=n(56266),a=n(11064),l=n(46773),u=n(58135),c=n(44537);let{FUNCTION_TYPES:h,arrowFunctionExpression:d,assignmentExpression:p,awaitExpression:f,blockStatement:g,buildUndefinedNode:m,callExpression:y,cloneNode:b,conditionalExpression:v,expressionStatement:x,getBindingIdentifiers:P,identifier:E,inheritLeadingComments:S,inheritTrailingComments:w,inheritsComments:k,isBlockStatement:A,isEmptyStatement:B,isExpression:C,isExpressionStatement:O,isIfStatement:_,isProgram:F,isStatement:I,isVariableDeclaration:D,removeComments:j,returnStatement:T,sequenceExpression:M,validate:R,yieldExpression:W}=u;function N(e){var t;if(!this.container)throw ReferenceError("Container is falsy");this.inList?R(this.parent,this.key,[e]):R(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,o.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}},46026(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor({identifier:e,scope:t,path:n,kind:i}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=n,this.kind=i,("var"===i||"hoisted"===i)&&function(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:n,key:i}=e;n&&!n.isFunctionParent();{parentPath:n,key:i}=n)if("left"===i&&n.isForXStatement()||t&&"body"===i&&n.isLoop())return!0;return!1}(n)&&this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},54683(e,t,n){let i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(58431),s=n(80004);n(68536);var o=n(46026),a=n(58135),l=n(56266);let u=n(1243),c=n(70270),{assignmentExpression:h,callExpression:d,cloneNode:p,getBindingIdentifiers:f,identifier:g,isArrayExpression:m,isBinary:y,isCallExpression:b,isClass:v,isClassBody:x,isClassDeclaration:P,isExportAllDeclaration:E,isExportDefaultDeclaration:S,isExportNamedDeclaration:w,isFunctionDeclaration:k,isIdentifier:A,isImportDeclaration:B,isLiteral:C,isMemberExpression:O,isMethod:_,isModuleSpecifier:F,isNullLiteral:I,isObjectExpression:D,isProperty:j,isPureish:T,isRegExpLiteral:M,isSuper:R,isTaggedTemplateExpression:W,isTemplateLiteral:N,isThisExpression:U,isUnaryExpression:L,isVariableDeclaration:K,expressionStatement:$,matchesPattern:V,memberExpression:q,numericLiteral:H,toIdentifier:G,variableDeclaration:X,variableDeclarator:J,isRecordExpression:Q,isTupleExpression:Y,isObjectProperty:z,isTopicReference:Z,isMetaProperty:ee,isPrivateName:et,isExportDeclaration:en,buildUndefinedNode:ei,sequenceExpression:er}=a;function es(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var eo=Symbol.for("should not be considered a local binding");let ea={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){a.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let n=e.get("left");if(n.isPattern()||n.isIdentifier())t.constantViolations.push(e);else if(n.isVar()){let{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",n)}},ExportDeclaration:{exit(e){let{node:t,scope:n}=e;if(E(t))return;let i=t.declaration;if(P(i)||k(i)){let t=i.id;if(!t)return;let r=n.getBinding(t.name);null==r||r.reference(e)}else if(K(i))for(let t of i.declarations)for(let i of Object.keys(f(t))){let t=n.getBinding(i);null==t||t.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){for(let t of e.get("params"))e.scope.registerBinding("param",t);e.isFunctionExpression()&&e.node.id&&!e.node.id[eo]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[eo]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},el=0;class eu{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:t}=e,n=l.scope.get(t);if((null==n?void 0:n.path)===e)return n;l.scope.set(t,this),this.uid=el++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e,t;let n,i=this.path;do{let e="key"===i.key||"decorators"===i.listKey;i=i.parentPath,e&&i.isMethod()&&(i=i.parentPath),null!=(t=i)&&t.isScope()&&(n=i)}while(i&&!n);return null==(e=n)?void 0:e.scope}get references(){throw Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let t=this.generateUidIdentifier(e);return this.push({id:t}),p(t)}generateUidIdentifier(e){return g(this.generateUid(e))}generateUid(e="temp"){let t;e=G(e).replace(/^_+/,"").replace(/\d+$/g,"");let n=0;do t=`_${e}`,n>=11?t+=n-1:n>=9?t+=n-9:n>=1&&(t+=n+1),n++;while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));let i=this.getProgramParent();return i.references[t]=!0,i.uids[t]=!0,t}generateUidBasedOnNode(e,t){let n=[];!function e(t,n){switch(null==t?void 0:t.type){default:if(B(t)||en(t)){var i;if((E(t)||w(t)||B(t))&&t.source)e(t.source,n);else if((w(t)||B(t))&&null!=(i=t.specifiers)&&i.length)for(let i of t.specifiers)e(i,n);else(S(t)||w(t))&&t.declaration&&e(t.declaration,n)}else F(t)?e(t.local,n):!C(t)||I(t)||M(t)||N(t)||n.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":e(t.object,n),e(t.property,n);break;case"Identifier":case"JSXIdentifier":n.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":e(t.callee,n);break;case"ObjectExpression":case"ObjectPattern":for(let i of t.properties)e(i,n);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":e(t.argument,n);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":e(t.key,n);break;case"ThisExpression":n.push("this");break;case"Super":n.push("super");break;case"Import":case"ImportExpression":n.push("import");break;case"DoExpression":n.push("do");break;case"YieldExpression":n.push("yield"),e(t.argument,n);break;case"AwaitExpression":n.push("await"),e(t.argument,n);break;case"AssignmentExpression":e(t.left,n);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":e(t.id,n);break;case"ParenthesizedExpression":e(t.expression,n);break;case"MetaProperty":e(t.meta,n),e(t.property,n);break;case"JSXElement":e(t.openingElement,n);break;case"JSXOpeningElement":e(t.name,n);break;case"JSXFragment":e(t.openingFragment,n);break;case"JSXOpeningFragment":n.push("Fragment");break;case"JSXNamespacedName":e(t.namespace,n),e(t.name,n)}}(e,n);let i=n.join("$");return i=i.replace(/^_/,"")||t||"ref",this.generateUid(i.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return g(this.generateUidBasedOnNode(e,t))}isStatic(e){if(U(e)||R(e)||Z(e))return!0;if(A(e)){let t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{let n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),p(n))}}checkBlockScopedCollisions(e,t,n,i){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(i,`Duplicate declaration "${n}"`,TypeError)}rename(e,t){let n=this.getBinding(e);n&&(t||(t=this.generateUidIdentifier(e).name),new r.default(n,e,t).rename(arguments[2]))}dump(){let e="-".repeat(60);console.log(e);let t=this;do for(let e of(console.log("#",t.block.type),Object.keys(t.bindings))){let n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let t=e.get("declarations"),{kind:n}=e.node;for(let e of t)this.registerBinding("using"===n||"await using"===n?"const":n,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let t="type"===e.node.importKind||"typeof"===e.node.importKind;for(let n of e.get("specifiers")){let e=t||n.isImportSpecifier()&&("type"===n.node.importKind||"typeof"===n.node.importKind);this.registerBinding(e?"unknown":"module",n)}}else if(e.isExportDeclaration()){let t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return ei()}registerConstantViolation(e){for(let n of Object.keys(e.getAssignmentIdentifiers())){var t;null==(t=this.getBinding(n))||t.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw ReferenceError("no `kind`");if(t.isVariableDeclaration()){for(let n of t.get("declarations"))this.registerBinding(e,n);return}let i=this.getProgramParent(),r=t.getOuterBindingIdentifiers(!0);for(let t of Object.keys(r))for(let s of(i.references[t]=!0,r[t])){let i=this.getOwnBinding(t);if(i){if(i.identifier===s)continue;this.checkBlockScopedCollisions(i,e,t,s)}i?i.reassign(n):this.bindings[t]=new o.default({identifier:s,scope:this,path:n,kind:e})}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let t=this;do if(t.uids[e])return!0;while(t=t.parent);return!1}}hasGlobal(e){let t=this;do if(t.globals[e])return!0;while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){var n,i,r;if(A(e)){let n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(U(e)||ee(e)||Z(e)||et(e))return!0;if(v(e))return(!e.superClass||!!this.isPure(e.superClass,t))&&!((null==(n=e.decorators)?void 0:n.length)>0)&&this.isPure(e.body,t);if(x(e)){for(let n of e.body)if(!this.isPure(n,t))return!1;return!0}if(y(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);else if(m(e)||Y(e)){for(let n of e.elements)if(null!==n&&!this.isPure(n,t))return!1;return!0}else if(D(e)||Q(e)){for(let n of e.properties)if(!this.isPure(n,t))return!1;return!0}else if(_(e))return(!e.computed||!!this.isPure(e.key,t))&&!((null==(i=e.decorators)?void 0:i.length)>0);else if(j(e))return!(e.computed&&!this.isPure(e.key,t)||(null==(r=e.decorators)?void 0:r.length)>0||(z(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));else if(L(e))return this.isPure(e.argument,t);else if(N(e)){for(let n of e.expressions)if(!this.isPure(n,t))return!1;return!0}else if(W(e))return V(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t);else if(O(e))return!e.computed&&A(e.object)&&"Symbol"===e.object.name&&A(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0});else if(b(e))return V(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&a.isStringLiteral(e.arguments[0]);else return T(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{let n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do null!=t.data[e]&&(t.data[e]=null);while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;es(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);let n=t,r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,i||(i=s.default.visitors.merge([{Scope(e){es(e.scope)}},ea])),"Program"!==e.type){let t=i[e.type];if(t)for(let n of t.enter)n.call(r,e,r)}for(let t of(e.traverse(i,r),this.crawling=!1,r.assignments)){let e=t.getAssignmentIdentifiers();for(let i of Object.keys(e))t.scope.getBinding(i)||n.addGlobal(e[i]);t.scope.registerConstantViolation(t)}for(let e of r.references){let t=e.scope.getBinding(e.node.name);t?t.reference(e):n.addGlobal(e.node)}for(let e of r.constantViolations)e.scope.registerConstantViolation(e)}push(e){var t;let n=this.path;n.isPattern()?n=this.getPatternParent().path:n.isBlockStatement()||n.isProgram()||(n=this.getBlockParent().path),n.isSwitchStatement()&&(n=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:r,kind:s="var",id:o}=e;if(!i&&!r&&("var"===s||"let"===s)&&((t=n).isFunctionExpression()&&!t.node.id||t.isArrowFunctionExpression())&&b(n.parent,{callee:n.node})&&n.parent.arguments.length<=n.node.params.length&&A(o)){n.pushContainer("params",o),n.scope.registerBinding("param",n.get("params")[n.node.params.length-1]);return}(n.isLoop()||n.isCatchClause()||n.isFunction())&&(n.ensureBlock(),n=n.get("body"));let a=null==e._blockHoist?2:e._blockHoist,l=`declaration:${s}:${a}`,u=!r&&n.getData(l);if(!u){let e=X(s,[]);e._blockHoist=a,[u]=n.unshiftContainer("body",[e]),r||n.setData(l,u)}let c=J(o,i),h=u.node.declarations.push(c);n.scope.registerBinding(s,u.get("declarations")[h-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),t=this;do{for(let n of Object.keys(t.bindings))n in e==!1&&(e[n]=t.bindings[n]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,n=this;do{let r=n.getOwnBinding(e);if(r){var i;if(!(null!=(i=t)&&i.isPattern())||"param"===r.kind||"local"===r.kind)return r}else if(!r&&"arguments"===e&&n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;t=n.path}while(n=n.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){let t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){let n,i,r;if(!e)return!1;"object"==typeof t?(n=t.noGlobals,i=t.noUids,r=t.upToScope):"boolean"==typeof t&&(n=t);let s=this;do{if(r===s)break;if(s.hasOwnBinding(e))return!0}while(s=s.parent);return!!(!i&&this.hasUid(e)||!n&&eu.globals.includes(e)||!n&&eu.contextVariables.includes(e))}parentHasBinding(e,t){var n;return null==(n=this.parent)?void 0:n.hasBinding(e,t)}moveBindingTo(e,t){let n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);{let t=this;do t.uids[e]&&(t.uids[e]=!1);while(t=t.parent)}}hoistVariables(e=e=>this.push({id:e})){this.crawl();let t=new Set;for(let n of Object.keys(this.bindings)){let i,r=this.bindings[n];if(!r)continue;let{path:s}=r;if(!s.isVariableDeclarator())continue;let{parent:o,parentPath:a}=s;if("var"!==o.kind||t.has(o))continue;t.add(s.parent);let l=[];for(let t of o.declarations)for(let n of(null!=i||(i=t.id),t.init&&l.push(h("=",t.id,t.init)),Object.keys(f(t,!1,!0,!0))))e(g(n),null!=t.init);if(a.parentPath.isForXStatement({left:o}))a.replaceWith(i);else if(0===l.length)a.remove();else{let e=1===l.length?l[0]:er(l);a.parentPath.isForStatement({init:o})?a.replaceWith(e):a.replaceWith($(e))}}}}t.default=eu,eu.globals=[...u,...c],eu.contextVariables=["arguments","undefined","Infinity","NaN"],eu.prototype._renameFromMap=function(e,t,n,i){e[t]&&(e[n]=i,e[t]=null)},eu.prototype.traverse=function(e,t,n){(0,s.default)(e,t,this,n,this.path)},eu.prototype._generateUid=function(e,t){let n=e;return t>1&&(n+=t),`_${n}`},eu.prototype.toArray=function(e,t,n){let i;if(A(e)){let t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(m(e))return e;if(A(e,{name:"arguments"}))return d(q(q(q(g("Array"),g("prototype")),g("slice")),g("call")),[e]);let r=[e];return!0===t?i="toConsumableArray":"number"==typeof t?(r.push(H(t)),i="slicedToArray"):i="toArray",n&&(r.unshift(this.path.hub.addHelper(i)),i="maybeArrayLike"),d(this.path.hub.addHelper(i),r)},eu.prototype.getAllBindingsOfKind=function(...e){let t=Object.create(null);for(let n of e){let e=this;do{for(let i of Object.keys(e.bindings)){let r=e.bindings[i];r.kind===n&&(t[i]=r)}e=e.parent}while(e)}return t},Object.defineProperties(eu.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})},58431(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(58135),r=n(51597),s=n(95957),o=n(44537);let{getAssignmentIdentifiers:a}=i,l={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)&&(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},n){let{name:i}=e.key;if(e.shorthand&&(i===n.oldName||i===n.newName)&&t.getBindingIdentifier(i)===n.binding.identifier){var r;e.shorthand=!1,null!=(r=e.extra)&&r.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let n=e.isAssignmentExpression()?a(e.node):e.getOuterBindingIdentifiers();for(let e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){let t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){let{declaration:e}=t.node;if(i.isDeclaration(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:t,newName:n}=this,{scope:o,path:a}=e,u=a.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());u&&u.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(u);let c=arguments[0]||o.block,h={discriminant:!0};i.isMethod(c)&&(c.computed&&(h.key=!0),i.isObjectMethod(c)||(h.decorators=!0)),(0,r.traverseNode)(c,(0,s.explode)(l),o,this,o.path,h),arguments[0]||(o.removeOwnBinding(t),o.bindings[n]=e,this.binding.identifier.name=n),u&&(this.maybeConvertFromClassFunctionDeclaration(a),this.maybeConvertFromClassFunctionExpression(a))}}},68536(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let i=(0,s.explode)(t);if(i.enter||i.exit)throw Error("Should not be used with enter/exit visitors.");!function e(t,s,l,u,c,h,d,p){if(!l)return;let f=p||r.NodePath.get({hub:d,parentPath:t,parent:s,container:u,listKey:h,key:c});o.setScope.call(f);let g=i[l.type];if(g){if(g.enter)for(let e of g.enter)e.call(n,f,n);if(g.exit)for(let e of g.exit)e.call(n,f,n)}if(f.shouldSkip)return;let m=a[l.type];if(null!=m&&m.length)for(let t of m){let n=l[t];if(n)if(Array.isArray(n))for(let i=0;i<n.length;i++)e(f,l,n[i],n,i,t);else e(f,l,n,l,t,null)}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e)};var i=n(58135),r=n(80004),s=n(95957),o=n(44537);let{VISITOR_KEYS:a}=i},51597(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseNode=function(e,t,n,r,o,a,l){let u=s[e.type];if(!u)return!1;let c=new i.default(n,t,r,o);if(l)return(null==a||!a[o.parentKey])&&c.visitQueue([o]);for(let t of u)if((null==a||!a[t])&&c.visit(e,t))return!0;return!1};var i=n(96647);n(32670);var r=n(58135);n(44537);let{VISITOR_KEYS:s}=r},95957(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.environmentVisitor=function(e){return m([P,e])},t.explode=p,t.isExplodedVisitor=d,t.merge=m,t.verify=f;var i=n(44057),r=n(37494),s=n(58135),o=n(44537);let{DEPRECATED_KEYS:a,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:u,TYPES:c,__internal__deprecationWarning:h}=s;function d(e){return null==e?void 0:e._exploded}function p(e){if(d(e))return e;for(let t of(e._exploded=!0,Object.keys(e))){if(v(t))continue;let n=t.split("|");if(1===n.length)continue;let i=e[t];for(let r of(delete e[t],n))e[r]=i}for(let t of(f(e),delete e.__esModule,function(e){for(let t of Object.keys(e)){if(v(t))continue;let n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),b(e),Object.keys(e))){if(v(t)||!(t in i))continue;let n=e[t];for(let e of Object.keys(n))n[e]=function(e,t){let n=r[`is${e}`],i=function(e){if(n.call(e))return t.apply(this,arguments)};return i.toString=()=>t.toString(),i}(t,n[e]);delete e[t];let s=i[t];if(null!==s)for(let t of s)null!=e[t]||(e[t]={}),x(e[t],n);else x(e,n)}for(let t of Object.keys(e)){if(v(t))continue;let n=u[t];if(t in a){let e=a[t];h(t,e,"Visitor "),n=[e]}else if(t in l){let e=l[t];h(t,e,"Visitor "),n=u[e]}if(!n)continue;let i=e[t];for(let r of(delete e[t],n)){let t=e[r];t?x(t,i):e[r]=Object.assign({},i)}}for(let t of Object.keys(e))v(t)||b(e[t]);return e}function f(e){if(!e._verified){if("function"==typeof e)throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if(("enter"===t||"exit"===t)&&g(t,e[t]),v(t))continue;if(!c.includes(t))throw Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.28.5`);let n=e[t];if("object"==typeof n)for(let e of Object.keys(n))if("enter"===e||"exit"===e)g(`${t}.${e}`,n[e]);else throw Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`)}e._verified=!0}}function g(e,t){for(let n of[].concat(t))if("function"!=typeof n)throw TypeError(`Non-function found defined in ${e} with type ${typeof n}`)}function m(e,t=[],n){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let r=0;r<e.length;r++){let s=p(e[r]),o=t[r],a=s;for(let e of((o||n)&&(a=y(a,o,n)),x(i,a),Object.keys(s))){if(v(e))continue;let t=s[e];(o||n)&&(t=y(t,o,n)),x(i[e]||(i[e]={}),t)}}return i}function y(e,t,n){let i={};for(let r of["enter","exit"]){let s=e[r];Array.isArray(s)&&(s=s.map(function(e){let i=e;return t&&(i=function(n){e.call(t,n,t)}),n&&(i=n(null==t?void 0:t.key,r,i)),i!==e&&(i.toString=()=>e.toString()),i}),i[r]=s)}return i}function b(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function v(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e||!1}function x(e,t){for(let n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}let P={FunctionParent(e){!e.isArrowFunctionExpression()&&(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():o.requeueComputedKeyAndDecorators.call(e))}}},1243(e){e.exports=JSON.parse('["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]')},70270(e){e.exports=JSON.parse('["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]')}};
|