@tachybase/module-pdf 1.3.20 → 1.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +2 -2
- package/dist/externalVersion.js +4 -7
- package/dist/node_modules/@babel/core/lib/index.js +2 -2
- package/dist/node_modules/@babel/core/node_modules/.bin/json5 +2 -2
- package/dist/node_modules/@babel/core/node_modules/.bin/parser +2 -2
- package/dist/node_modules/@babel/core/node_modules/.bin/semver +2 -2
- package/dist/node_modules/@babel/core/package.json +1 -1
- package/dist/node_modules/@babel/preset-env/lib/index.js +3 -3
- package/dist/node_modules/@babel/preset-env/node_modules/.bin/semver +2 -2
- package/dist/node_modules/@babel/preset-env/package.json +1 -1
- package/dist/node_modules/@babel/preset-react/lib/index.js +3 -3
- package/dist/node_modules/@babel/preset-react/package.json +1 -1
- package/dist/node_modules/@babel/preset-typescript/lib/index.js +2 -2
- package/dist/node_modules/@babel/preset-typescript/package.json +1 -1
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.cjs +3 -3
- package/dist/node_modules/@react-pdf/renderer/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/server/plugin.d.ts +1 -1
- package/dist/server/plugin.js +1 -1
- package/dist/server/services/font-manager.js +2 -2
- package/package.json +10 -17
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@6.3.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules"
|
|
13
|
+
export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@6.3.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@6.3.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
15
|
+
export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@6.3.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@babel/preset-env","version":"7.27.2","description":"A Babel preset for each environment.","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-preset-env","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-env"},"main":"./lib/index.js","dependencies":{"@babel/compat-data":"^7.27.2","@babel/helper-compilation-targets":"^7.27.2","@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-bugfix-firefox-class-in-computed-class-key":"^7.27.1","@babel/plugin-bugfix-safari-class-field-initializer-scope":"^7.27.1","@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression":"^7.27.1","@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining":"^7.27.1","@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly":"^7.27.1","@babel/plugin-proposal-private-property-in-object":"7.21.0-placeholder-for-preset-env.2","@babel/plugin-syntax-import-assertions":"^7.27.1","@babel/plugin-syntax-import-attributes":"^7.27.1","@babel/plugin-syntax-unicode-sets-regex":"^7.18.6","@babel/plugin-transform-arrow-functions":"^7.27.1","@babel/plugin-transform-async-generator-functions":"^7.27.1","@babel/plugin-transform-async-to-generator":"^7.27.1","@babel/plugin-transform-block-scoped-functions":"^7.27.1","@babel/plugin-transform-block-scoping":"^7.27.1","@babel/plugin-transform-class-properties":"^7.27.1","@babel/plugin-transform-class-static-block":"^7.27.1","@babel/plugin-transform-classes":"^7.27.1","@babel/plugin-transform-computed-properties":"^7.27.1","@babel/plugin-transform-destructuring":"^7.27.1","@babel/plugin-transform-dotall-regex":"^7.27.1","@babel/plugin-transform-duplicate-keys":"^7.27.1","@babel/plugin-transform-duplicate-named-capturing-groups-regex":"^7.27.1","@babel/plugin-transform-dynamic-import":"^7.27.1","@babel/plugin-transform-exponentiation-operator":"^7.27.1","@babel/plugin-transform-export-namespace-from":"^7.27.1","@babel/plugin-transform-for-of":"^7.27.1","@babel/plugin-transform-function-name":"^7.27.1","@babel/plugin-transform-json-strings":"^7.27.1","@babel/plugin-transform-literals":"^7.27.1","@babel/plugin-transform-logical-assignment-operators":"^7.27.1","@babel/plugin-transform-member-expression-literals":"^7.27.1","@babel/plugin-transform-modules-amd":"^7.27.1","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/plugin-transform-modules-systemjs":"^7.27.1","@babel/plugin-transform-modules-umd":"^7.27.1","@babel/plugin-transform-named-capturing-groups-regex":"^7.27.1","@babel/plugin-transform-new-target":"^7.27.1","@babel/plugin-transform-nullish-coalescing-operator":"^7.27.1","@babel/plugin-transform-numeric-separator":"^7.27.1","@babel/plugin-transform-object-rest-spread":"^7.27.2","@babel/plugin-transform-object-super":"^7.27.1","@babel/plugin-transform-optional-catch-binding":"^7.27.1","@babel/plugin-transform-optional-chaining":"^7.27.1","@babel/plugin-transform-parameters":"^7.27.1","@babel/plugin-transform-private-methods":"^7.27.1","@babel/plugin-transform-private-property-in-object":"^7.27.1","@babel/plugin-transform-property-literals":"^7.27.1","@babel/plugin-transform-regenerator":"^7.27.1","@babel/plugin-transform-regexp-modifiers":"^7.27.1","@babel/plugin-transform-reserved-words":"^7.27.1","@babel/plugin-transform-shorthand-properties":"^7.27.1","@babel/plugin-transform-spread":"^7.27.1","@babel/plugin-transform-sticky-regex":"^7.27.1","@babel/plugin-transform-template-literals":"^7.27.1","@babel/plugin-transform-typeof-symbol":"^7.27.1","@babel/plugin-transform-unicode-escapes":"^7.27.1","@babel/plugin-transform-unicode-property-regex":"^7.27.1","@babel/plugin-transform-unicode-regex":"^7.27.1","@babel/plugin-transform-unicode-sets-regex":"^7.27.1","@babel/preset-modules":"0.1.6-no-external-plugins","babel-plugin-polyfill-corejs2":"^0.4.10","babel-plugin-polyfill-corejs3":"^0.11.0","babel-plugin-polyfill-regenerator":"^0.6.1","core-js-compat":"^3.40.0","semver":"^6.3.1"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.27.1","@babel/core-7.12":"npm:@babel/core@7.12.9","@babel/helper-plugin-test-runner":"^7.27.1","@babel/traverse":"^7.27.1"},"engines":{"node":">=6.9.0"},"type":"commonjs","_lastModified":"2025-07-
|
|
1
|
+
{"name":"@babel/preset-env","version":"7.27.2","description":"A Babel preset for each environment.","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-preset-env","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-env"},"main":"./lib/index.js","dependencies":{"@babel/compat-data":"^7.27.2","@babel/helper-compilation-targets":"^7.27.2","@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-bugfix-firefox-class-in-computed-class-key":"^7.27.1","@babel/plugin-bugfix-safari-class-field-initializer-scope":"^7.27.1","@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression":"^7.27.1","@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining":"^7.27.1","@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly":"^7.27.1","@babel/plugin-proposal-private-property-in-object":"7.21.0-placeholder-for-preset-env.2","@babel/plugin-syntax-import-assertions":"^7.27.1","@babel/plugin-syntax-import-attributes":"^7.27.1","@babel/plugin-syntax-unicode-sets-regex":"^7.18.6","@babel/plugin-transform-arrow-functions":"^7.27.1","@babel/plugin-transform-async-generator-functions":"^7.27.1","@babel/plugin-transform-async-to-generator":"^7.27.1","@babel/plugin-transform-block-scoped-functions":"^7.27.1","@babel/plugin-transform-block-scoping":"^7.27.1","@babel/plugin-transform-class-properties":"^7.27.1","@babel/plugin-transform-class-static-block":"^7.27.1","@babel/plugin-transform-classes":"^7.27.1","@babel/plugin-transform-computed-properties":"^7.27.1","@babel/plugin-transform-destructuring":"^7.27.1","@babel/plugin-transform-dotall-regex":"^7.27.1","@babel/plugin-transform-duplicate-keys":"^7.27.1","@babel/plugin-transform-duplicate-named-capturing-groups-regex":"^7.27.1","@babel/plugin-transform-dynamic-import":"^7.27.1","@babel/plugin-transform-exponentiation-operator":"^7.27.1","@babel/plugin-transform-export-namespace-from":"^7.27.1","@babel/plugin-transform-for-of":"^7.27.1","@babel/plugin-transform-function-name":"^7.27.1","@babel/plugin-transform-json-strings":"^7.27.1","@babel/plugin-transform-literals":"^7.27.1","@babel/plugin-transform-logical-assignment-operators":"^7.27.1","@babel/plugin-transform-member-expression-literals":"^7.27.1","@babel/plugin-transform-modules-amd":"^7.27.1","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/plugin-transform-modules-systemjs":"^7.27.1","@babel/plugin-transform-modules-umd":"^7.27.1","@babel/plugin-transform-named-capturing-groups-regex":"^7.27.1","@babel/plugin-transform-new-target":"^7.27.1","@babel/plugin-transform-nullish-coalescing-operator":"^7.27.1","@babel/plugin-transform-numeric-separator":"^7.27.1","@babel/plugin-transform-object-rest-spread":"^7.27.2","@babel/plugin-transform-object-super":"^7.27.1","@babel/plugin-transform-optional-catch-binding":"^7.27.1","@babel/plugin-transform-optional-chaining":"^7.27.1","@babel/plugin-transform-parameters":"^7.27.1","@babel/plugin-transform-private-methods":"^7.27.1","@babel/plugin-transform-private-property-in-object":"^7.27.1","@babel/plugin-transform-property-literals":"^7.27.1","@babel/plugin-transform-regenerator":"^7.27.1","@babel/plugin-transform-regexp-modifiers":"^7.27.1","@babel/plugin-transform-reserved-words":"^7.27.1","@babel/plugin-transform-shorthand-properties":"^7.27.1","@babel/plugin-transform-spread":"^7.27.1","@babel/plugin-transform-sticky-regex":"^7.27.1","@babel/plugin-transform-template-literals":"^7.27.1","@babel/plugin-transform-typeof-symbol":"^7.27.1","@babel/plugin-transform-unicode-escapes":"^7.27.1","@babel/plugin-transform-unicode-property-regex":"^7.27.1","@babel/plugin-transform-unicode-regex":"^7.27.1","@babel/plugin-transform-unicode-sets-regex":"^7.27.1","@babel/preset-modules":"0.1.6-no-external-plugins","babel-plugin-polyfill-corejs2":"^0.4.10","babel-plugin-polyfill-corejs3":"^0.11.0","babel-plugin-polyfill-regenerator":"^0.6.1","core-js-compat":"^3.40.0","semver":"^6.3.1"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.27.1","@babel/core-7.12":"npm:@babel/core@7.12.9","@babel/helper-plugin-test-runner":"^7.27.1","@babel/traverse":"^7.27.1"},"engines":{"node":">=6.9.0"},"type":"commonjs","_lastModified":"2025-07-29T06:22:31.317Z"}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
// writable is false by default
|
|
112
112
|
value: ${o.name}
|
|
113
113
|
});
|
|
114
|
-
`,t)}function buildPrivateMethodDeclaration(e,t,r,s=false){const i=r.get(t.node.key.id.name);const{id:a,methodId:o,getId:l,setId:c,getterDeclared:u,setterDeclared:p,static:f}=i;const{params:d,body:h,generator:y,async:g}=t.node;const b=l&&d.length===0;const T=c&&d.length>0;if(b&&u||T&&p){r.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));return null}if(newHelpers(e)&&(b||T)&&!s){const e=t.get("body").scope;const r=e.generateUidIdentifier("this");const s={thisRef:r,argumentsPath:[]};t.traverse(m,s);if(s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath){e.replaceWith(n.types.cloneNode(t))}}d.unshift(n.types.cloneNode(r))}let E=o;if(b){r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:true,initAdded:true}));E=l}else if(T){r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:true,initAdded:true}));E=c}else if(f&&!s){E=a}return inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(E),d,h,y,g),t)}const m=s.visitors.environmentVisitor({Identifier(e,t){if(t.argumentsPath&&e.node.name==="arguments"){t.argumentsPath.push(e)}},UnaryExpression(e){const{node:t}=e;if(t.operator==="delete"){const r=(0,c.skipTransparentExprWrapperNodes)(t.argument);if(n.types.isThisExpression(r)){e.replaceWith(n.types.booleanLiteral(true))}}},ThisExpression(e,t){t.needsClassRef=true;e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;if(t.meta.name==="new"&&t.property.name==="target"){e.replaceWith(r.buildUndefinedNode())}}});const y={ReferencedIdentifier(e,t){if(e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)){t.needsClassRef=true;e.node.name=t.thisRef.name}}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:false,innerBinding:r};if(!e.isMethod()){e.traverse(m,s)}if(r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name){e.traverse(y,s)}return s.needsClassRef}function isNameOrLength({key:e,computed:t}){if(e.type==="Identifier"){return!t&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,t){n.types.inheritLeadingComments(e,t.node);n.types.inheritInnerComments(e,t.node);return e}function inheritLoc(e,t){e.start=t.start;e.end=t.end;e.loc=t.loc;return e}function buildFieldsInitNodes(e,t,r,s,a,o,l,c,p,f){let d=0;let h;const m=[];const y=[];let g=false;const b=[];let T=null;const E=n.types.isIdentifier(t)?()=>t:()=>{h!=null?h:h=r[0].scope.generateUidIdentifierBasedOnNode(t);return h};const S=e!=null?e:r[0].scope.generateUidIdentifier((f==null?void 0:f.name)||"Class");e!=null?e:e=n.types.cloneNode(f);for(const t of r){if(t.isClassProperty()){u.assertFieldTransformed(t)}const r=!(n.types.isStaticBlock!=null&&n.types.isStaticBlock(t.node))&&t.node.static;const h=!r;const T=t.isPrivate();const v=!T;const x=t.isProperty();const P=!x;const A=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)d|=1;if(r||P&&T||A){new i.default({methodPath:t,constantSuper:p,file:a,refToPreserve:f,getSuperRef:E,getObjectRef(){d|=2;if(r||A){return S}else{return n.types.memberExpression(S,n.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,S,f);if(e){d|=2}}g=false;switch(true){case A:{const e=t.node.body;if(e.length===1&&n.types.isExpressionStatement(e[0])){m.push(inheritPropComments(e[0],t))}else{m.push(n.types.inheritsComments(n.template.statement.ast`(() => { ${e} })()`,t.node))}break}case r&&T&&x&&l:m.push(buildPrivateFieldInitLoose(n.types.cloneNode(e),t,s));break;case r&&T&&x&&!l:if(!newHelpers(a)){m.push(buildPrivateStaticFieldInitSpecOld(t,s))}else{m.push(buildPrivateStaticFieldInitSpec(t,s,c))}break;case r&&v&&x&&o:if(!isNameOrLength(t.node)){m.push(buildPublicFieldInitLoose(n.types.cloneNode(e),t));break}case r&&v&&x&&!o:m.push(buildPublicFieldInitSpec(n.types.cloneNode(e),t,a));break;case h&&T&&x&&l:y.push(buildPrivateFieldInitLoose(n.types.thisExpression(),t,s));break;case h&&T&&x&&!l:y.push(buildPrivateInstanceFieldInitSpec(n.types.thisExpression(),t,s,a));break;case h&&T&&P&&l:y.unshift(buildPrivateMethodInitLoose(n.types.thisExpression(),t,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&T&&P&&!l:y.unshift(buildPrivateInstanceMethodInitSpec(n.types.thisExpression(),t,s,a));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&!l:if(!newHelpers(a)){m.unshift(buildPrivateStaticFieldInitSpecOld(t,s))}b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&l:m.unshift(buildPrivateStaticMethodInitLoose(n.types.cloneNode(e),t,a,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&v&&x&&o:y.push(buildPublicFieldInitLoose(n.types.thisExpression(),t));break;case h&&v&&x&&!o:g=true;y.push(buildPublicFieldInitSpec(n.types.thisExpression(),t,a));break;default:throw new Error("Unreachable.")}}if(d&2&&f!=null){T=n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(S),n.types.cloneNode(f)))}return{staticNodes:m.filter(Boolean),instanceNodes:y.filter(Boolean),lastInstanceNodeReturnsThis:g,pureStaticNodes:b.filter(Boolean),classBindingNode:T,wrapClass(t){for(const e of r){e.node.leadingComments=null;e.remove()}if(h){t.scope.push({id:n.types.cloneNode(h)});t.set("superClass",n.types.assignmentExpression("=",h,t.node.superClass))}if(d!==0){if(t.isClassExpression()){t.scope.push({id:e});t.replaceWith(n.types.assignmentExpression("=",n.types.cloneNode(e),t.node))}else{if(f==null){t.node.id=e}if(T!=null){t.scope.push({id:S})}}}return t}}}},2061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"FEATURES",{enumerable:true,get:function(){return c.FEATURES}});Object.defineProperty(t,"buildCheckInRHS",{enumerable:true,get:function(){return i.buildCheckInRHS}});t.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(t,"enableFeature",{enumerable:true,get:function(){return c.enableFeature}});Object.defineProperty(t,"injectInitialization",{enumerable:true,get:function(){return l.injectInitialization}});var n=r(1485);var s=r(8804);var i=r(5896);var a=r(4063);var o=r(551);var l=r(7929);var c=r(818);var u=r(849);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:t,loose:f,manipulateOptions:d,api:h,inherits:m,decoratorVersion:y}){var g;if(t&c.FEATURES.decorators){{if(y==="2023-11"||y==="2023-05"||y==="2023-01"||y==="2022-03"||y==="2021-12"){return(0,a.default)(h,{loose:f},y,m)}}}{h!=null?h:h={assumption:()=>void 0}}const b=h.assumption("setPublicClassFields");const T=h.assumption("privateFieldsAsSymbols");const E=h.assumption("privateFieldsAsProperties");const S=(g=h.assumption("noUninitializedPrivateFieldAccess"))!=null?g:false;const v=h.assumption("constantSuper");const x=h.assumption("noDocumentAll");if(E&&T){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const P=E||T;if(f===true){const t=[];if(b!==undefined){t.push(`"setPublicClassFields"`)}if(E!==undefined){t.push(`"privateFieldsAsProperties"`)}if(T!==undefined){t.push(`"privateFieldsAsSymbols"`)}if(t.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${t.join(" and ")}`+` assumption${t.length>1?"s":""}. The "loose" option`+` can cause incompatibilities with the other class features`+` plugins, so it's recommended that you replace it with the`+` following top-level option:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:d,inherits:m,pre(e){(0,c.enableFeature)(e,t,f);{if(typeof e.get(p)==="number"){e.set(p,"7.27.1");return}}if(!e.get(p)||s.lt(e.get(p),"7.27.1")){e.set(p,"7.27.1")}},visitor:{Class(e,{file:s}){if(s.get(p)!=="7.27.1")return;if(!(0,c.shouldTransform)(e,s))return;const f=e.isClassDeclaration();if(f)(0,u.assertFieldTransformed)(e);const d=(0,c.isLoose)(s,t);let h;const m=(0,a.hasDecorators)(e.node);const y=[];const g=[];const A=[];const C=new Set;const w=e.get("body");for(const e of w.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){A.push(e)}if(e.isPrivate()){const{name:t}=e.node.key.id;const r=`get ${t}`;const n=`set ${t}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(C.has(r)||C.has(t)&&!C.has(n)){throw e.buildCodeFrameError("Duplicate private field")}C.add(r).add(t)}else if(e.node.kind==="set"){if(C.has(n)||C.has(t)&&!C.has(r)){throw e.buildCodeFrameError("Duplicate private field")}C.add(n).add(t)}}else{if(C.has(t)&&!C.has(r)&&!C.has(n)||C.has(t)&&(C.has(r)||C.has(n))){throw e.buildCodeFrameError("Duplicate private field")}C.add(t)}}if(e.isClassMethod({kind:"constructor"})){h=e}else{g.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){y.push(e)}}}{if(!y.length&&!m)return}const D=e.node.id;let I;if(!D||!f){{var N;(N=e.ensureFunctionName)!=null?N:e.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e.ensureFunctionName(false);I=e.scope.generateUidIdentifier((D==null?void 0:D.name)||"Class")}const O=I!=null?I:n.types.cloneNode(D);const k=(0,i.buildPrivateNamesMap)(O.name,P!=null?P:d,y,s);const _=(0,i.buildPrivateNamesNodes)(k,E!=null?E:d,T!=null?T:false,s);(0,i.transformPrivateNamesUsage)(O,e,k,{privateFieldsAsProperties:P!=null?P:d,noUninitializedPrivateFieldAccess:S,noDocumentAll:x,innerBinding:D},s);let B,F,L,M,j,R,U;{if(m){F=j=B=[];({instanceNodes:L,wrapClass:U}=(0,o.buildDecoratedClass)(O,e,g,s))}else{B=(0,l.extractComputedKeys)(e,A,s);({staticNodes:F,pureStaticNodes:j,instanceNodes:L,lastInstanceNodeReturnsThis:M,classBindingNode:R,wrapClass:U}=(0,i.buildFieldsInitNodes)(I,e.node.superClass,y,k,s,b!=null?b:d,P!=null?P:d,S,v!=null?v:d,D))}}if(L.length>0){(0,l.injectInitialization)(e,h,L,((e,t)=>{{if(m)return}for(const r of y){if(n.types.isStaticBlock!=null&&n.types.isStaticBlock(r.node)||r.node.static)continue;r.traverse(e,t)}}),M)}const V=U(e);V.insertBefore([..._,...B]);if(F.length>0){V.insertAfter(F)}if(j.length>0){V.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(j)}if(R!=null&&f){V.insertAfter(R)}},ExportDefaultDeclaration(e,{file:t}){{if(t.get(p)!=="7.27.1")return;const s=e.get("declaration");if(s.isClassDeclaration()&&(0,a.hasDecorators)(s.node)){if(s.node.id){{var n;(n=e.splitExportDeclaration)!=null?n:e.splitExportDeclaration=r(8384).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}else{s.node.type="ClassExpression"}}}}}}}},7929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractComputedKeys=extractComputedKeys;t.injectInitialization=injectInitialization;t.memoiseComputedKey=memoiseComputedKey;var n=r(1485);var s=r(8384);const i=s.visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;if(r.isCallExpression({callee:t})){this.push(r)}}});const a={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){if(t.hasOwnBinding(e.node.name)){t.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError");const s=n.types.callExpression(r,[n.types.stringLiteral(e.node.name)]);e.replaceWith(n.types.sequenceExpression([s,e.node]));e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function injectInitialization(e,t,r,s,o){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=n.types.classMethod("constructor",n.types.identifier("constructor"),[],n.types.blockStatement([]));if(l){r.params=[n.types.restElement(n.types.identifier("args"))];r.body.body.push(n.template.statement.ast`super(...args)`)}[t]=e.get("body").unshiftContainer("body",r)}if(s){s(a,{scope:t.scope})}if(l){const e=[];t.traverse(i,e);let s=true;for(const t of e){if(s){s=false}else{r=r.map((e=>n.types.cloneNode(e)))}if(!t.parentPath.isExpressionStatement()){const e=[t.node,...r.map((e=>n.types.toExpression(e)))];if(!o)e.push(n.types.thisExpression());t.replaceWith(n.types.sequenceExpression(e))}else{t.insertAfter(r)}}}else{t.get("body").unshiftContainer("body",r)}}function memoiseComputedKey(e,t,r){const s=n.types.isIdentifier(e)&&t.hasUid(e.name);if(s){return}const i=n.types.isAssignmentExpression(e,{operator:"="})&&n.types.isIdentifier(e.left)&&t.hasUid(e.left.name);if(i){return n.types.cloneNode(e)}else{const s=n.types.identifier(r);t.push({id:s,kind:"let"});return n.types.assignmentExpression("=",n.types.cloneNode(s),e)}}function extractComputedKeys(e,t,r){const{scope:s}=e;const i=[];const a={classBinding:e.node.id&&s.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");if(t.isReferencedIdentifier()){handleClassTDZ(t,a)}else{t.traverse(o,a)}const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,s,s.generateUidBasedOnNode(t.node));if(e){i.push(n.types.expressionStatement(e));r.key=n.types.cloneNode(e.left)}}}return i}},849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(9551);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var s=_interopNamespace(n);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:n}=t;if(n.isLogicalExpression()){const{operator:e,right:t}=n.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(n)}}if(n.isSequenceExpression()){const{expressions:e}=n.node;if(e[e.length-1]===r){return willPathCastToBoolean(n)}else{return true}}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}const{LOGICAL_OPERATORS:i,arrowFunctionExpression:a,assignmentExpression:o,binaryExpression:l,booleanLiteral:c,callExpression:u,cloneNode:p,conditionalExpression:f,identifier:d,isMemberExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isUpdateExpression:g,logicalExpression:b,memberExpression:T,nullLiteral:E,optionalCallExpression:S,optionalMemberExpression:v,sequenceExpression:x,updateExpression:P}=s;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(y(r)){return T(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const n=r.node.object;const s=e.scope.maybeGenerateMemoised(n);r.get("object").replaceWith(o("=",s,n));return u(T(t,d("call")),[s,...e.node.arguments])}return u(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:n}=e;const s=t.node;if(n){if(r!==s[n]){return true}}else{if(r!==s)return true}e=t}return false}const A={memoise(){},handle(e,t){const{node:r,parent:n,parentPath:s,scope:i}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const g=e.find((({node:t,parent:r})=>{if(y(r)){return r.optional||r.object!==t}if(m(r)){return t!==e.node&&r.optional||r.callee!==t}return true}));if(i.path.isPattern()){g.replaceWith(u(a([],g.node),[]));return}const T=willPathCastToBoolean(g);const x=g.parentPath;if(x.isUpdateExpression({argument:r})){throw e.buildCodeFrameError(`can't handle update expression`)}const P=x.isAssignmentExpression({left:g.node});const A=x.isUnaryExpression({operator:"delete"});if(A&&g.isOptionalMemberExpression()&&g.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const w=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=i.maybeGenerateMemoised(w);const I=D!=null?D:w;const N=s.isOptionalCallExpression({callee:r});const isOptionalCall=e=>N;const O=s.isCallExpression({callee:r});C.replaceWith(toNonOptional(C,I));if(isOptionalCall()){if(n.optional){s.replaceWith(this.optionalCall(e,n.arguments))}else{s.replaceWith(this.call(e,n.arguments))}}else if(O){e.replaceWith(this.boundGet(e))}else if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e))}else if(s.isAssignmentExpression()){handleAssignment(this,e,s)}else{e.replaceWith(this.get(e))}let k=e.node;for(let t=e;t!==g;){const e=t.parentPath;if(e===g&&isOptionalCall()&&n.optional){k=e.node;break}k=toNonOptional(e,k);t=e}let _;const B=g.parentPath;if(h(k)&&B.isOptionalCallExpression({callee:g.node,optional:true})){const{object:t}=k;_=e.scope.maybeGenerateMemoised(t);if(_){k.object=o("=",_,t)}}let F=g;if(A||P){F=B;k=B.node}const L=D?o("=",p(I),p(w)):p(I);if(T){let e;if(t){e=l("!=",L,E())}else{e=b("&&",l("!==",L,E()),l("!==",p(I),i.buildUndefinedNode()))}F.replaceWith(b("&&",e,k))}else{let e;if(t){e=l("==",L,E())}else{e=b("||",l("===",L,E()),l("===",p(I),i.buildUndefinedNode()))}F.replaceWith(f(e,A?c(true):i.buildUndefinedNode(),k))}if(_){const e=B.node;B.replaceWith(S(v(e.callee,d("call"),false,true),[p(_),...e.arguments],false))}return}if(g(n,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:a}=n;this.memoise(e,2);const l=i.generateUidIdentifierBasedOnNode(r);i.push({id:l});const c=[o("=",p(l),this.get(e))];if(a){c.push(P(t,p(l),a));const r=x(c);s.replaceWith(this.set(e,r));return}else{const n=i.generateUidIdentifierBasedOnNode(r);i.push({id:n});c.push(o("=",p(n),P(t,p(l),a)),p(l));const u=x(c);s.replaceWith(x([this.set(e,u),p(n)]));return}}if(s.isAssignmentExpression({left:r})){handleAssignment(this,e,s);return}if(s.isCallExpression({callee:r})){s.replaceWith(this.call(e,s.node.arguments));return}if(s.isOptionalCallExpression({callee:r})){if(i.path.isPattern()){s.replaceWith(u(a([],s.node),[]));return}s.replaceWith(this.optionalCall(e,s.node.arguments));return}if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e));return}if(s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(s.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}const{operator:n,right:s}=r.node;if(n==="="){r.replaceWith(e.set(t,s))}else{const a=n.slice(0,-1);if(i.includes(a)){e.memoise(t,1);r.replaceWith(b(a,e.get(t),e.set(t,s)))}else{e.memoise(t,2);r.replaceWith(e.set(t,l(a,e.get(t),s)))}}}function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},A,r,{memoiser:new AssignmentMemoiser}))}t["default"]=memberExpressionToFunctions},3053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);const{callExpression:i,cloneNode:a,expressionStatement:o,identifier:l,importDeclaration:c,importDefaultSpecifier:u,importNamespaceSpecifier:p,importSpecifier:f,memberExpression:d,stringLiteral:h,variableDeclaration:m,variableDeclarator:y}=s;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],h(this._importedSource)));return this}require(){this._statements.push(o(i(l("require"),[h(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=a(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=a(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const s=this._statements[this._statements.length-1];n(s.type==="ImportDeclaration");n(s.specifiers.length===0);s.specifiers=[f(r,l(t))];this._resultName=a(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){n(this._resultName);r=o(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=m("var",[y(t,r.expression)]);this._resultName=a(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=i(e,[t.expression])}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=i(e,[t.declarations[0].init])}else{n.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=d(t.expression,l(e))}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=d(t.declarations[0].init,l(e))}else{n.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=d(this._resultName,l(e))}}t["default"]=ImportBuilder},1776:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);var i=r(3053);var a=r(5759);const{identifier:o,importSpecifier:l,numericLiteral:c,sequenceExpression:u,isImportDeclaration:p}=s;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const n=e.find((e=>e.isProgram()));this._programPath=n;this._programScope=n.scope;this._hub=n.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){n(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let s;if(typeof e==="string"){s=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{n(!t,"Unexpected secondary arguments.");s=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)s.nameHint=t.nameHint;if(t.blockHoist!==undefined)s.blockHoist=t.blockHoist}return s}_generateImport(e,t){const r=t==="default";const n=!!t&&!r;const s=t===null;const{importedSource:o,importedType:l,importedInterop:p,importingInterop:f,ensureLiveReference:d,ensureNoContext:h,nameHint:m,importPosition:y,blockHoist:g}=e;let b=m||t;const T=(0,a.default)(this._programPath);const E=T&&f==="node";const S=T&&f==="babel";if(y==="after"&&!T){throw new Error(`"importPosition": "after" is only supported in modules`)}const v=new i.default(o,this._programScope,this._hub);if(l==="es6"){if(!E&&!S){throw new Error("Cannot import an ES6 module from CommonJS")}v.import();if(s){v.namespace(m||o)}else if(r||n){v.named(b,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(p==="babel"){if(E){b=b!=="default"?b:o;const e=`${o}$es6Default`;v.import();if(s){v.default(e).var(b||o).wildcardInterop()}else if(r){if(d){v.default(e).var(b||o).defaultInterop().read("default")}else{v.default(e).var(b).defaultInterop().prop(t)}}else if(n){v.default(e).read(t)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o).wildcardInterop()}else if((r||n)&&d){if(r){b=b!=="default"?b:o;v.var(b).read(t);v.defaultInterop()}else{v.var(o).read(t)}}else if(r){v.var(b).defaultInterop().prop(t)}else if(n){v.var(b).prop(t)}}}else if(p==="compiled"){if(E){v.import();if(s){v.default(b||o)}else if(r||n){v.default(o).read(b)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r||n){if(d){v.var(o).read(b)}else{v.prop(t).var(b)}}}}else if(p==="uncompiled"){if(r&&d){throw new Error("No live reference for commonjs default")}if(E){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.default(o).read(b)}}else if(S){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r){v.var(b)}else if(n){if(d){v.var(o).read(b)}else{v.var(b).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${p}".`)}const{statements:x,resultName:P}=v.done();this._insertStatements(x,y,g);if((r||n)&&h&&P.type!=="Identifier"){return u([c(0),P])}return P}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&p(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(p(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let n=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){n=e;const s=e.node.source.value;const i=r.get(s);if(!i)continue;for(const r of i){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(n)n.insertAfter(Array.from(t));return!!n}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=l(t.specifiers[0].local,o("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},9696:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return n.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return s.default}});var n=r(1776);var s=r(5759);function addDefault(e,t,r){return new n.default(e).addDefault(t,r)}function addNamed(e,t,r,s){return new n.default(e).addNamed(t,r,s)}function addNamespace(e,t,r){return new n.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new n.default(e).addSideEffect(t,r)}},5759:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},7766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var n=r(1485);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,s){const i=n.types.isCallExpression(e)?e.arguments[0]:e.source;if(n.types.isStringLiteral(i)||n.types.isTemplateLiteral(i)&&i.quasis.length===0){if(t){return n.template.expression.ast`
|
|
114
|
+
`,t)}function buildPrivateMethodDeclaration(e,t,r,s=false){const i=r.get(t.node.key.id.name);const{id:a,methodId:o,getId:l,setId:c,getterDeclared:u,setterDeclared:p,static:f}=i;const{params:d,body:h,generator:y,async:g}=t.node;const b=l&&d.length===0;const T=c&&d.length>0;if(b&&u||T&&p){r.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));return null}if(newHelpers(e)&&(b||T)&&!s){const e=t.get("body").scope;const r=e.generateUidIdentifier("this");const s={thisRef:r,argumentsPath:[]};t.traverse(m,s);if(s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath){e.replaceWith(n.types.cloneNode(t))}}d.unshift(n.types.cloneNode(r))}let E=o;if(b){r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:true,initAdded:true}));E=l}else if(T){r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:true,initAdded:true}));E=c}else if(f&&!s){E=a}return inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(E),d,h,y,g),t)}const m=s.visitors.environmentVisitor({Identifier(e,t){if(t.argumentsPath&&e.node.name==="arguments"){t.argumentsPath.push(e)}},UnaryExpression(e){const{node:t}=e;if(t.operator==="delete"){const r=(0,c.skipTransparentExprWrapperNodes)(t.argument);if(n.types.isThisExpression(r)){e.replaceWith(n.types.booleanLiteral(true))}}},ThisExpression(e,t){t.needsClassRef=true;e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;if(t.meta.name==="new"&&t.property.name==="target"){e.replaceWith(r.buildUndefinedNode())}}});const y={ReferencedIdentifier(e,t){if(e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)){t.needsClassRef=true;e.node.name=t.thisRef.name}}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:false,innerBinding:r};if(!e.isMethod()){e.traverse(m,s)}if(r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name){e.traverse(y,s)}return s.needsClassRef}function isNameOrLength({key:e,computed:t}){if(e.type==="Identifier"){return!t&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,t){n.types.inheritLeadingComments(e,t.node);n.types.inheritInnerComments(e,t.node);return e}function inheritLoc(e,t){e.start=t.start;e.end=t.end;e.loc=t.loc;return e}function buildFieldsInitNodes(e,t,r,s,a,o,l,c,p,f){let d=0;let h;const m=[];const y=[];let g=false;const b=[];let T=null;const E=n.types.isIdentifier(t)?()=>t:()=>{h!=null?h:h=r[0].scope.generateUidIdentifierBasedOnNode(t);return h};const S=e!=null?e:r[0].scope.generateUidIdentifier((f==null?void 0:f.name)||"Class");e!=null?e:e=n.types.cloneNode(f);for(const t of r){if(t.isClassProperty()){u.assertFieldTransformed(t)}const r=!(n.types.isStaticBlock!=null&&n.types.isStaticBlock(t.node))&&t.node.static;const h=!r;const T=t.isPrivate();const v=!T;const x=t.isProperty();const P=!x;const A=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)d|=1;if(r||P&&T||A){new i.default({methodPath:t,constantSuper:p,file:a,refToPreserve:f,getSuperRef:E,getObjectRef(){d|=2;if(r||A){return S}else{return n.types.memberExpression(S,n.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,S,f);if(e){d|=2}}g=false;switch(true){case A:{const e=t.node.body;if(e.length===1&&n.types.isExpressionStatement(e[0])){m.push(inheritPropComments(e[0],t))}else{m.push(n.types.inheritsComments(n.template.statement.ast`(() => { ${e} })()`,t.node))}break}case r&&T&&x&&l:m.push(buildPrivateFieldInitLoose(n.types.cloneNode(e),t,s));break;case r&&T&&x&&!l:if(!newHelpers(a)){m.push(buildPrivateStaticFieldInitSpecOld(t,s))}else{m.push(buildPrivateStaticFieldInitSpec(t,s,c))}break;case r&&v&&x&&o:if(!isNameOrLength(t.node)){m.push(buildPublicFieldInitLoose(n.types.cloneNode(e),t));break}case r&&v&&x&&!o:m.push(buildPublicFieldInitSpec(n.types.cloneNode(e),t,a));break;case h&&T&&x&&l:y.push(buildPrivateFieldInitLoose(n.types.thisExpression(),t,s));break;case h&&T&&x&&!l:y.push(buildPrivateInstanceFieldInitSpec(n.types.thisExpression(),t,s,a));break;case h&&T&&P&&l:y.unshift(buildPrivateMethodInitLoose(n.types.thisExpression(),t,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&T&&P&&!l:y.unshift(buildPrivateInstanceMethodInitSpec(n.types.thisExpression(),t,s,a));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&!l:if(!newHelpers(a)){m.unshift(buildPrivateStaticFieldInitSpecOld(t,s))}b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&l:m.unshift(buildPrivateStaticMethodInitLoose(n.types.cloneNode(e),t,a,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&v&&x&&o:y.push(buildPublicFieldInitLoose(n.types.thisExpression(),t));break;case h&&v&&x&&!o:g=true;y.push(buildPublicFieldInitSpec(n.types.thisExpression(),t,a));break;default:throw new Error("Unreachable.")}}if(d&2&&f!=null){T=n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(S),n.types.cloneNode(f)))}return{staticNodes:m.filter(Boolean),instanceNodes:y.filter(Boolean),lastInstanceNodeReturnsThis:g,pureStaticNodes:b.filter(Boolean),classBindingNode:T,wrapClass(t){for(const e of r){e.node.leadingComments=null;e.remove()}if(h){t.scope.push({id:n.types.cloneNode(h)});t.set("superClass",n.types.assignmentExpression("=",h,t.node.superClass))}if(d!==0){if(t.isClassExpression()){t.scope.push({id:e});t.replaceWith(n.types.assignmentExpression("=",n.types.cloneNode(e),t.node))}else{if(f==null){t.node.id=e}if(T!=null){t.scope.push({id:S})}}}return t}}}},2061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"FEATURES",{enumerable:true,get:function(){return c.FEATURES}});Object.defineProperty(t,"buildCheckInRHS",{enumerable:true,get:function(){return i.buildCheckInRHS}});t.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(t,"enableFeature",{enumerable:true,get:function(){return c.enableFeature}});Object.defineProperty(t,"injectInitialization",{enumerable:true,get:function(){return l.injectInitialization}});var n=r(1485);var s=r(8804);var i=r(5896);var a=r(4063);var o=r(551);var l=r(7929);var c=r(818);var u=r(849);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:t,loose:f,manipulateOptions:d,api:h,inherits:m,decoratorVersion:y}){var g;if(t&c.FEATURES.decorators){{if(y==="2023-11"||y==="2023-05"||y==="2023-01"||y==="2022-03"||y==="2021-12"){return(0,a.default)(h,{loose:f},y,m)}}}{h!=null?h:h={assumption:()=>void 0}}const b=h.assumption("setPublicClassFields");const T=h.assumption("privateFieldsAsSymbols");const E=h.assumption("privateFieldsAsProperties");const S=(g=h.assumption("noUninitializedPrivateFieldAccess"))!=null?g:false;const v=h.assumption("constantSuper");const x=h.assumption("noDocumentAll");if(E&&T){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const P=E||T;if(f===true){const t=[];if(b!==undefined){t.push(`"setPublicClassFields"`)}if(E!==undefined){t.push(`"privateFieldsAsProperties"`)}if(T!==undefined){t.push(`"privateFieldsAsSymbols"`)}if(t.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${t.join(" and ")}`+` assumption${t.length>1?"s":""}. The "loose" option`+` can cause incompatibilities with the other class features`+` plugins, so it's recommended that you replace it with the`+` following top-level option:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:d,inherits:m,pre(e){(0,c.enableFeature)(e,t,f);{if(typeof e.get(p)==="number"){e.set(p,"7.27.1");return}}if(!e.get(p)||s.lt(e.get(p),"7.27.1")){e.set(p,"7.27.1")}},visitor:{Class(e,{file:s}){if(s.get(p)!=="7.27.1")return;if(!(0,c.shouldTransform)(e,s))return;const f=e.isClassDeclaration();if(f)(0,u.assertFieldTransformed)(e);const d=(0,c.isLoose)(s,t);let h;const m=(0,a.hasDecorators)(e.node);const y=[];const g=[];const A=[];const C=new Set;const w=e.get("body");for(const e of w.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){A.push(e)}if(e.isPrivate()){const{name:t}=e.node.key.id;const r=`get ${t}`;const n=`set ${t}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(C.has(r)||C.has(t)&&!C.has(n)){throw e.buildCodeFrameError("Duplicate private field")}C.add(r).add(t)}else if(e.node.kind==="set"){if(C.has(n)||C.has(t)&&!C.has(r)){throw e.buildCodeFrameError("Duplicate private field")}C.add(n).add(t)}}else{if(C.has(t)&&!C.has(r)&&!C.has(n)||C.has(t)&&(C.has(r)||C.has(n))){throw e.buildCodeFrameError("Duplicate private field")}C.add(t)}}if(e.isClassMethod({kind:"constructor"})){h=e}else{g.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){y.push(e)}}}{if(!y.length&&!m)return}const D=e.node.id;let I;if(!D||!f){{var N;(N=e.ensureFunctionName)!=null?N:e.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e.ensureFunctionName(false);I=e.scope.generateUidIdentifier((D==null?void 0:D.name)||"Class")}const O=I!=null?I:n.types.cloneNode(D);const k=(0,i.buildPrivateNamesMap)(O.name,P!=null?P:d,y,s);const _=(0,i.buildPrivateNamesNodes)(k,E!=null?E:d,T!=null?T:false,s);(0,i.transformPrivateNamesUsage)(O,e,k,{privateFieldsAsProperties:P!=null?P:d,noUninitializedPrivateFieldAccess:S,noDocumentAll:x,innerBinding:D},s);let B,F,L,M,j,R,U;{if(m){F=j=B=[];({instanceNodes:L,wrapClass:U}=(0,o.buildDecoratedClass)(O,e,g,s))}else{B=(0,l.extractComputedKeys)(e,A,s);({staticNodes:F,pureStaticNodes:j,instanceNodes:L,lastInstanceNodeReturnsThis:M,classBindingNode:R,wrapClass:U}=(0,i.buildFieldsInitNodes)(I,e.node.superClass,y,k,s,b!=null?b:d,P!=null?P:d,S,v!=null?v:d,D))}}if(L.length>0){(0,l.injectInitialization)(e,h,L,((e,t)=>{{if(m)return}for(const r of y){if(n.types.isStaticBlock!=null&&n.types.isStaticBlock(r.node)||r.node.static)continue;r.traverse(e,t)}}),M)}const V=U(e);V.insertBefore([..._,...B]);if(F.length>0){V.insertAfter(F)}if(j.length>0){V.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(j)}if(R!=null&&f){V.insertAfter(R)}},ExportDefaultDeclaration(e,{file:t}){{if(t.get(p)!=="7.27.1")return;const s=e.get("declaration");if(s.isClassDeclaration()&&(0,a.hasDecorators)(s.node)){if(s.node.id){{var n;(n=e.splitExportDeclaration)!=null?n:e.splitExportDeclaration=r(8384).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}else{s.node.type="ClassExpression"}}}}}}}},7929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractComputedKeys=extractComputedKeys;t.injectInitialization=injectInitialization;t.memoiseComputedKey=memoiseComputedKey;var n=r(1485);var s=r(8384);const i=s.visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;if(r.isCallExpression({callee:t})){this.push(r)}}});const a={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){if(t.hasOwnBinding(e.node.name)){t.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError");const s=n.types.callExpression(r,[n.types.stringLiteral(e.node.name)]);e.replaceWith(n.types.sequenceExpression([s,e.node]));e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function injectInitialization(e,t,r,s,o){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=n.types.classMethod("constructor",n.types.identifier("constructor"),[],n.types.blockStatement([]));if(l){r.params=[n.types.restElement(n.types.identifier("args"))];r.body.body.push(n.template.statement.ast`super(...args)`)}[t]=e.get("body").unshiftContainer("body",r)}if(s){s(a,{scope:t.scope})}if(l){const e=[];t.traverse(i,e);let s=true;for(const t of e){if(s){s=false}else{r=r.map((e=>n.types.cloneNode(e)))}if(!t.parentPath.isExpressionStatement()){const e=[t.node,...r.map((e=>n.types.toExpression(e)))];if(!o)e.push(n.types.thisExpression());t.replaceWith(n.types.sequenceExpression(e))}else{t.insertAfter(r)}}}else{t.get("body").unshiftContainer("body",r)}}function memoiseComputedKey(e,t,r){const s=n.types.isIdentifier(e)&&t.hasUid(e.name);if(s){return}const i=n.types.isAssignmentExpression(e,{operator:"="})&&n.types.isIdentifier(e.left)&&t.hasUid(e.left.name);if(i){return n.types.cloneNode(e)}else{const s=n.types.identifier(r);t.push({id:s,kind:"let"});return n.types.assignmentExpression("=",n.types.cloneNode(s),e)}}function extractComputedKeys(e,t,r){const{scope:s}=e;const i=[];const a={classBinding:e.node.id&&s.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");if(t.isReferencedIdentifier()){handleClassTDZ(t,a)}else{t.traverse(o,a)}const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,s,s.generateUidBasedOnNode(t.node));if(e){i.push(n.types.expressionStatement(e));r.key=n.types.cloneNode(e.left)}}}return i}},849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(9551);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var s=_interopNamespace(n);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:n}=t;if(n.isLogicalExpression()){const{operator:e,right:t}=n.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(n)}}if(n.isSequenceExpression()){const{expressions:e}=n.node;if(e[e.length-1]===r){return willPathCastToBoolean(n)}else{return true}}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}const{LOGICAL_OPERATORS:i,arrowFunctionExpression:a,assignmentExpression:o,binaryExpression:l,booleanLiteral:c,callExpression:u,cloneNode:p,conditionalExpression:f,identifier:d,isMemberExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isUpdateExpression:g,logicalExpression:b,memberExpression:T,nullLiteral:E,optionalCallExpression:S,optionalMemberExpression:v,sequenceExpression:x,updateExpression:P}=s;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(y(r)){return T(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const n=r.node.object;const s=e.scope.maybeGenerateMemoised(n);r.get("object").replaceWith(o("=",s,n));return u(T(t,d("call")),[s,...e.node.arguments])}return u(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:n}=e;const s=t.node;if(n){if(r!==s[n]){return true}}else{if(r!==s)return true}e=t}return false}const A={memoise(){},handle(e,t){const{node:r,parent:n,parentPath:s,scope:i}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const g=e.find((({node:t,parent:r})=>{if(y(r)){return r.optional||r.object!==t}if(m(r)){return t!==e.node&&r.optional||r.callee!==t}return true}));if(i.path.isPattern()){g.replaceWith(u(a([],g.node),[]));return}const T=willPathCastToBoolean(g);const x=g.parentPath;if(x.isUpdateExpression({argument:r})){throw e.buildCodeFrameError(`can't handle update expression`)}const P=x.isAssignmentExpression({left:g.node});const A=x.isUnaryExpression({operator:"delete"});if(A&&g.isOptionalMemberExpression()&&g.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const w=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=i.maybeGenerateMemoised(w);const I=D!=null?D:w;const N=s.isOptionalCallExpression({callee:r});const isOptionalCall=e=>N;const O=s.isCallExpression({callee:r});C.replaceWith(toNonOptional(C,I));if(isOptionalCall()){if(n.optional){s.replaceWith(this.optionalCall(e,n.arguments))}else{s.replaceWith(this.call(e,n.arguments))}}else if(O){e.replaceWith(this.boundGet(e))}else if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e))}else if(s.isAssignmentExpression()){handleAssignment(this,e,s)}else{e.replaceWith(this.get(e))}let k=e.node;for(let t=e;t!==g;){const e=t.parentPath;if(e===g&&isOptionalCall()&&n.optional){k=e.node;break}k=toNonOptional(e,k);t=e}let _;const B=g.parentPath;if(h(k)&&B.isOptionalCallExpression({callee:g.node,optional:true})){const{object:t}=k;_=e.scope.maybeGenerateMemoised(t);if(_){k.object=o("=",_,t)}}let F=g;if(A||P){F=B;k=B.node}const L=D?o("=",p(I),p(w)):p(I);if(T){let e;if(t){e=l("!=",L,E())}else{e=b("&&",l("!==",L,E()),l("!==",p(I),i.buildUndefinedNode()))}F.replaceWith(b("&&",e,k))}else{let e;if(t){e=l("==",L,E())}else{e=b("||",l("===",L,E()),l("===",p(I),i.buildUndefinedNode()))}F.replaceWith(f(e,A?c(true):i.buildUndefinedNode(),k))}if(_){const e=B.node;B.replaceWith(S(v(e.callee,d("call"),false,true),[p(_),...e.arguments],false))}return}if(g(n,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:a}=n;this.memoise(e,2);const l=i.generateUidIdentifierBasedOnNode(r);i.push({id:l});const c=[o("=",p(l),this.get(e))];if(a){c.push(P(t,p(l),a));const r=x(c);s.replaceWith(this.set(e,r));return}else{const n=i.generateUidIdentifierBasedOnNode(r);i.push({id:n});c.push(o("=",p(n),P(t,p(l),a)),p(l));const u=x(c);s.replaceWith(x([this.set(e,u),p(n)]));return}}if(s.isAssignmentExpression({left:r})){handleAssignment(this,e,s);return}if(s.isCallExpression({callee:r})){s.replaceWith(this.call(e,s.node.arguments));return}if(s.isOptionalCallExpression({callee:r})){if(i.path.isPattern()){s.replaceWith(u(a([],s.node),[]));return}s.replaceWith(this.optionalCall(e,s.node.arguments));return}if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e));return}if(s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(s.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}const{operator:n,right:s}=r.node;if(n==="="){r.replaceWith(e.set(t,s))}else{const a=n.slice(0,-1);if(i.includes(a)){e.memoise(t,1);r.replaceWith(b(a,e.get(t),e.set(t,s)))}else{e.memoise(t,2);r.replaceWith(e.set(t,l(a,e.get(t),s)))}}}function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},A,r,{memoiser:new AssignmentMemoiser}))}t["default"]=memberExpressionToFunctions},2466:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);const{callExpression:i,cloneNode:a,expressionStatement:o,identifier:l,importDeclaration:c,importDefaultSpecifier:u,importNamespaceSpecifier:p,importSpecifier:f,memberExpression:d,stringLiteral:h,variableDeclaration:m,variableDeclarator:y}=s;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],h(this._importedSource)));return this}require(){this._statements.push(o(i(l("require"),[h(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=a(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=a(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const s=this._statements[this._statements.length-1];n(s.type==="ImportDeclaration");n(s.specifiers.length===0);s.specifiers=[f(r,l(t))];this._resultName=a(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){n(this._resultName);r=o(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=m("var",[y(t,r.expression)]);this._resultName=a(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=i(e,[t.expression])}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=i(e,[t.declarations[0].init])}else{n.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=d(t.expression,l(e))}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=d(t.declarations[0].init,l(e))}else{n.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=d(this._resultName,l(e))}}t["default"]=ImportBuilder},8781:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);var i=r(2466);var a=r(7986);const{identifier:o,importSpecifier:l,numericLiteral:c,sequenceExpression:u,isImportDeclaration:p}=s;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const n=e.find((e=>e.isProgram()));this._programPath=n;this._programScope=n.scope;this._hub=n.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){n(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let s;if(typeof e==="string"){s=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{n(!t,"Unexpected secondary arguments.");s=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)s.nameHint=t.nameHint;if(t.blockHoist!==undefined)s.blockHoist=t.blockHoist}return s}_generateImport(e,t){const r=t==="default";const n=!!t&&!r;const s=t===null;const{importedSource:o,importedType:l,importedInterop:p,importingInterop:f,ensureLiveReference:d,ensureNoContext:h,nameHint:m,importPosition:y,blockHoist:g}=e;let b=m||t;const T=(0,a.default)(this._programPath);const E=T&&f==="node";const S=T&&f==="babel";if(y==="after"&&!T){throw new Error(`"importPosition": "after" is only supported in modules`)}const v=new i.default(o,this._programScope,this._hub);if(l==="es6"){if(!E&&!S){throw new Error("Cannot import an ES6 module from CommonJS")}v.import();if(s){v.namespace(m||o)}else if(r||n){v.named(b,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(p==="babel"){if(E){b=b!=="default"?b:o;const e=`${o}$es6Default`;v.import();if(s){v.default(e).var(b||o).wildcardInterop()}else if(r){if(d){v.default(e).var(b||o).defaultInterop().read("default")}else{v.default(e).var(b).defaultInterop().prop(t)}}else if(n){v.default(e).read(t)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o).wildcardInterop()}else if((r||n)&&d){if(r){b=b!=="default"?b:o;v.var(b).read(t);v.defaultInterop()}else{v.var(o).read(t)}}else if(r){v.var(b).defaultInterop().prop(t)}else if(n){v.var(b).prop(t)}}}else if(p==="compiled"){if(E){v.import();if(s){v.default(b||o)}else if(r||n){v.default(o).read(b)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r||n){if(d){v.var(o).read(b)}else{v.prop(t).var(b)}}}}else if(p==="uncompiled"){if(r&&d){throw new Error("No live reference for commonjs default")}if(E){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.default(o).read(b)}}else if(S){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r){v.var(b)}else if(n){if(d){v.var(o).read(b)}else{v.var(b).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${p}".`)}const{statements:x,resultName:P}=v.done();this._insertStatements(x,y,g);if((r||n)&&h&&P.type!=="Identifier"){return u([c(0),P])}return P}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&p(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(p(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let n=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){n=e;const s=e.node.source.value;const i=r.get(s);if(!i)continue;for(const r of i){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(n)n.insertAfter(Array.from(t));return!!n}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=l(t.specifiers[0].local,o("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},3521:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return n.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return s.default}});var n=r(8781);var s=r(7986);function addDefault(e,t,r){return new n.default(e).addDefault(t,r)}function addNamed(e,t,r,s){return new n.default(e).addNamed(t,r,s)}function addNamespace(e,t,r){return new n.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new n.default(e).addSideEffect(t,r)}},7986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},7766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var n=r(1485);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,s){const i=n.types.isCallExpression(e)?e.arguments[0]:e.source;if(n.types.isStringLiteral(i)||n.types.isTemplateLiteral(i)&&i.quasis.length===0){if(t){return n.template.expression.ast`
|
|
115
115
|
Promise.resolve().then(() => ${s(i)})
|
|
116
116
|
`}else return s(i)}const a=n.types.isTemplateLiteral(i)?n.types.identifier("specifier"):n.types.templateLiteral([n.types.templateElement({raw:""}),n.types.templateElement({raw:""})],[n.types.identifier("specifier")]);if(t){return n.template.expression.ast`
|
|
117
117
|
(specifier =>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
)(${i})
|
|
125
125
|
`}else{return n.template.expression.ast`
|
|
126
126
|
(specifier => ${s(a)})(${i})
|
|
127
|
-
`}}},4362:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var n,s,i,a;return e(t,{moduleId:(n=r.moduleId)!=null?n:t.moduleId,moduleIds:(s=r.moduleIds)!=null?s:t.moduleIds,getModuleId:(i=r.getModuleId)!=null?i:t.getModuleId,moduleRoot:(a=r.moduleRoot)!=null?a:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e;const{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o){return i}let c=l!=null?l+"/":"";if(n){const e=s!=null?new RegExp("^"+s+"/?"):"";c+=n.replace(e,"").replace(/\.\w*$/,"")}c=c.replace(/\\/g,"/");if(o){return o(c)||c}else{return c}}},3015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return u.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return l.hasExports}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.isModule}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return l.isSideEffectImport}});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return a.default}});t.wrapInterop=wrapInterop;var n=r(2613);var s=r(1485);var i=r(
|
|
127
|
+
`}}},4362:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var n,s,i,a;return e(t,{moduleId:(n=r.moduleId)!=null?n:t.moduleId,moduleIds:(s=r.moduleIds)!=null?s:t.moduleIds,getModuleId:(i=r.getModuleId)!=null?i:t.getModuleId,moduleRoot:(a=r.moduleRoot)!=null?a:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e;const{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o){return i}let c=l!=null?l+"/":"";if(n){const e=s!=null?new RegExp("^"+s+"/?"):"";c+=n.replace(e,"").replace(/\.\w*$/,"")}c=c.replace(/\\/g,"/");if(o){return o(c)||c}else{return c}}},3015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return u.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return l.hasExports}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.isModule}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return l.isSideEffectImport}});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return a.default}});t.wrapInterop=wrapInterop;var n=r(2613);var s=r(1485);var i=r(3521);var a=r(3432);var o=r(1777);var l=r(4667);var c=r(5177);var u=r(7766);var p=r(4362);{t.getDynamicImportSource=r(7766).getDynamicImportSource}function rewriteModuleStatementsAndPrepareHeader(e,{exportName:t,strict:r,allowTopLevelThis:u,strictMode:p,noInterop:f,importInterop:d=(f?"none":"babel"),lazy:h,getWrapperPayload:m=c.toGetWrapperPayload(h!=null?h:false),wrapReference:y=c.wrapReference,esNamespaceOnly:g,filename:b,constantReexports:T=arguments[1].loose,enumerableModuleMeta:E=arguments[1].loose,noIncompleteNsImportDetection:S}){(0,l.validateImportInteropOption)(d);n((0,i.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const v=(0,l.default)(e,t,{importInterop:d,initializeReexports:T,getWrapperPayload:m,esNamespaceOnly:g,filename:b});if(!u){(0,a.default)(e)}(0,o.default)(e,v,y);if(p!==false){const t=e.node.directives.some((e=>e.value.value==="use strict"));if(!t){e.unshiftContainer("directives",s.types.directive(s.types.directiveLiteral("use strict")))}}const x=[];if((0,l.hasExports)(v)&&!r){x.push(buildESModuleHeader(v,E))}const P=buildExportNameListDeclaration(e,v);if(P){v.exportNameListName=P.name;x.push(P.statement)}x.push(...buildExportInitializationStatements(e,v,y,T,S));return{meta:v,headers:x}}function ensureStatementsHoisted(e){e.forEach((e=>{e._blockHoist=3}))}function wrapInterop(e,t,r){if(r==="none"){return null}if(r==="node-namespace"){return s.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,s.types.booleanLiteral(true)])}else if(r==="node-default"){return null}let n;if(r==="default"){n="interopRequireDefault"}else if(r==="namespace"){n="interopRequireWildcard"}else{throw new Error(`Unknown interop: ${r}`)}return s.types.callExpression(e.hub.addHelper(n),[t])}function buildNamespaceInitStatements(e,t,r=false,n=c.wrapReference){var i;const a=[];const o=s.types.identifier(t.name);for(const e of t.importsNamespace){if(e===t.name)continue;a.push(s.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:s.types.cloneNode(o)}))}const l=(i=n(o,t.wrap))!=null?i:o;if(r){a.push(...buildReexportsFromMeta(e,t,true,n))}for(const r of t.reexportNamespace){a.push((!s.types.isIdentifier(l)?s.template.statement`
|
|
128
128
|
Object.defineProperty(EXPORTS, "NAME", {
|
|
129
129
|
enumerable: true,
|
|
130
130
|
get: function() {
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
${e} = function(){ return data; };
|
|
204
204
|
return data;
|
|
205
205
|
}
|
|
206
|
-
`}},wrapReference(e,t){if(t==="lazy/function")return n.types.callExpression(e,[])}});t.lazyImportsHook=lazyImportsHook},5885:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(4320);var s=r(6928);var i=r(1485);var a=t["default"]=(0,n.declare)((e=>{e.assertVersion(7);function addDisplayName(e,t){const r=t.arguments[0].properties;let n=true;for(let e=0;e<r.length;e++){const t=r[e];if(i.types.isSpreadElement(t)){continue}const s=i.types.toComputedKey(t);if(i.types.isStringLiteral(s,{value:"displayName"})){n=false;break}}if(n){r.unshift(i.types.objectProperty(i.types.identifier("displayName"),i.types.stringLiteral(e)))}}const t=i.types.buildMatchMemberExpression("React.createClass");const isCreateClassAddon=e=>i.types.isIdentifier(e,{name:"createReactClass"});function isCreateClass(e){if(!e||!i.types.isCallExpression(e))return false;if(!t(e.callee)&&!isCreateClassAddon(e.callee)){return false}const r=e.arguments;if(r.length!==1)return false;const n=r[0];if(!i.types.isObjectExpression(n))return false;return true}return{name:"transform-react-display-name",visitor:{ExportDefaultDeclaration({node:e},t){if(isCreateClass(e.declaration)){const r=t.filename||"unknown";let n=s.basename(r,s.extname(r));if(n==="index"){n=s.basename(s.dirname(r))}addDisplayName(n,e.declaration)}},CallExpression(e){const{node:t}=e;if(!isCreateClass(t))return;let r;e.find((function(e){if(e.isAssignmentExpression()){r=e.node.left}else if(e.isObjectProperty()){r=e.node.key}else if(e.isVariableDeclarator()){r=e.node.id}else if(e.isStatement()){return true}if(r)return true}));if(!r)return;if(i.types.isMemberExpression(r)){r=r.property}if(i.types.isIdentifier(r)){addDisplayName(r.name,t)}}}}}))},7499:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(4262);var s=t["default"]=n.default},9003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createPlugin;var n=r(8021);var s=r(4320);var i=r(1485);var a=r(9696);var o=r(9508);const l={importSource:"react",runtime:"automatic",pragma:"React.createElement",pragmaFrag:"React.Fragment"};const c=/^\s*(?:\*\s*)?@jsxImportSource\s+(\S+)\s*$/m;const u=/^\s*(?:\*\s*)?@jsxRuntime\s+(\S+)\s*$/m;const p=/^\s*(?:\*\s*)?@jsx\s+(\S+)\s*$/m;const f=/^\s*(?:\*\s*)?@jsxFrag\s+(\S+)\s*$/m;const get=(e,t)=>e.get(`@babel/plugin-react-jsx/${t}`);const set=(e,t,r)=>e.set(`@babel/plugin-react-jsx/${t}`,r);function hasProto(e){return e.properties.some((e=>i.types.isObjectProperty(e,{computed:false,shorthand:false})&&(i.types.isIdentifier(e.key,{name:"__proto__"})||i.types.isStringLiteral(e.key,{value:"__proto__"}))))}function createPlugin({name:e,development:t}){return(0,s.declare)(((r,s)=>{const{pure:a,throwIfNamespace:d=true,filter:h,runtime:m=(t?"automatic":"classic"),importSource:y=l.importSource,pragma:g=l.pragma,pragmaFrag:b=l.pragmaFrag}=s;{var{useSpread:T=false,useBuiltIns:E=false}=s;if(m==="classic"){if(typeof T!=="boolean"){throw new Error("transform-react-jsx currently only accepts a boolean option for "+"useSpread (defaults to false)")}if(typeof E!=="boolean"){throw new Error("transform-react-jsx currently only accepts a boolean option for "+"useBuiltIns (defaults to false)")}if(T&&E){throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread "+"but not both")}}}const S={JSXOpeningElement(e,t){const r=[];if(isThisAllowed(e.scope)){r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression())))}r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(makeSource(e,t))));e.pushContainer("attributes",r)}};return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(d){throw e.buildCodeFrameError(`Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set \`throwIfNamespace: false\` to bypass this warning.`)}},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=m;let o=y;let d=g;let h=b;let T=!!s.importSource;let E=!!s.pragma;let v=!!s.pragmaFrag;if(n.ast.comments){for(const e of n.ast.comments){const t=c.exec(e.value);if(t){o=t[1];T=true}const r=u.exec(e.value);if(r){a=r[1]}const n=p.exec(e.value);if(n){d=n[1];E=true}const s=f.exec(e.value);if(s){h=s[1];v=true}}}set(r,"runtime",a);if(a==="classic"){if(T){throw e.buildCodeFrameError(`importSource cannot be set when runtime is classic.`)}const t=toMemberExpression(d);const n=toMemberExpression(h);set(r,"id/createElement",(()=>i.types.cloneNode(t)));set(r,"id/fragment",(()=>i.types.cloneNode(n)));set(r,"defaultPure",d===l.pragma)}else if(a==="automatic"){if(E||v){throw e.buildCodeFrameError(`pragma and pragmaFrag cannot be set when runtime is automatic.`)}const define=(t,n)=>set(r,t,createImportLazily(r,e,n,o));define("id/jsx",t?"jsxDEV":"jsx");define("id/jsxs",t?"jsxDEV":"jsxs");define("id/createElement","createElement");define("id/fragment","Fragment");set(r,"defaultPure",o===l.importSource)}else{throw e.buildCodeFrameError(`Runtime must be either "classic" or "automatic".`)}if(t){e.traverse(S,r)}}},JSXFragment:{exit(e,t){let r;if(get(t,"runtime")==="classic"){r=buildCreateElementFragmentCall(e,t)}else{r=buildJSXFragmentCall(e,t)}e.replaceWith(i.types.inherits(r,e.node))}},JSXElement:{exit(e,t){let r;if(get(t,"runtime")==="classic"||shouldUseCreateElement(e)){r=buildCreateElementCall(e,t)}else{r=buildJSXElementCall(e,t)}e.replaceWith(i.types.inherits(r,e.node))}},JSXAttribute(e){if(i.types.isJSXElement(e.node.value)){e.node.value=i.types.jsxExpressionContainer(e.node.value)}}}};function isDerivedClass(e){return e.node.superClass!==null}function isThisAllowed(e){do{const{path:t}=e;if(t.isFunctionParent()&&!t.isArrowFunctionExpression()){if(!t.isMethod()){return true}if(t.node.kind!=="constructor"){return true}return!isDerivedClass(t.parentPath.parentPath)}if(t.isTSModuleBlock()){return false}}while(e=e.parent);return true}function call(e,t,r){const n=i.types.callExpression(get(e,`id/${t}`)(),r);if(a!=null?a:get(e,"defaultPure"))(0,o.default)(n);return n}function shouldUseCreateElement(e){const t=e.get("openingElement");const r=t.node.attributes;let n=false;for(let e=0;e<r.length;e++){const t=r[e];if(n&&i.types.isJSXAttribute(t)&&t.name.name==="key"){return true}else if(i.types.isJSXSpreadAttribute(t)){n=true}}return false}function convertJSXIdentifier(e,t){if(i.types.isJSXIdentifier(e)){if(e.name==="this"&&i.types.isReferenced(e,t)){return i.types.thisExpression()}else if(i.types.isValidIdentifier(e.name,false)){e.type="Identifier";return e}else{return i.types.stringLiteral(e.name)}}else if(i.types.isJSXMemberExpression(e)){return i.types.memberExpression(convertJSXIdentifier(e.object,e),convertJSXIdentifier(e.property,e))}else if(i.types.isJSXNamespacedName(e)){return i.types.stringLiteral(`${e.namespace.name}:${e.name.name}`)}return e}function convertAttributeValue(e){if(i.types.isJSXExpressionContainer(e)){return e.expression}else{return e}}function accumulateAttribute(e,t){if(i.types.isJSXSpreadAttribute(t.node)){const r=t.node.argument;if(i.types.isObjectExpression(r)&&!hasProto(r)){e.push(...r.properties)}else{e.push(i.types.spreadElement(r))}return e}const r=convertAttributeValue(t.node.name.name!=="key"?t.node.value||i.types.booleanLiteral(true):t.node.value);if(t.node.name.name==="key"&&r===null){throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.')}if(i.types.isStringLiteral(r)&&!i.types.isJSXExpressionContainer(t.node.value)){var n;r.value=r.value.replace(/\n\s+/g," ");(n=r.extra)==null||delete n.raw}if(i.types.isJSXNamespacedName(t.node.name)){t.node.name=i.types.stringLiteral(t.node.name.namespace.name+":"+t.node.name.name.name)}else if(i.types.isValidIdentifier(t.node.name.name,false)){t.node.name.type="Identifier"}else{t.node.name=i.types.stringLiteral(t.node.name.name)}e.push(i.types.inherits(i.types.objectProperty(t.node.name,r),t.node));return e}function buildChildrenProperty(e){let t;if(e.length===1){t=e[0]}else if(e.length>1){t=i.types.arrayExpression(e)}else{return undefined}return i.types.objectProperty(i.types.identifier("children"),t)}function buildJSXElementCall(e,r){const n=e.get("openingElement");const s=[getTag(n)];const a=[];const o=Object.create(null);for(const t of n.get("attributes")){if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(o[r])throw sourceSelfError(e,r);case"key":{const e=convertAttributeValue(t.node.value);if(e===null){throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.')}o[r]=e;break}default:a.push(t)}}else{a.push(t)}}const l=i.types.react.buildChildren(e.node);let c;if(a.length||l.length){c=buildJSXOpeningElementAttributes(a,l)}else{c=i.types.objectExpression([])}s.push(c);if(t){var u;s.push((u=o.key)!=null?u:e.scope.buildUndefinedNode(),i.types.booleanLiteral(l.length>1));if(o.__source){s.push(o.__source);if(o.__self)s.push(o.__self)}else if(o.__self){s.push(e.scope.buildUndefinedNode(),o.__self)}}else if(o.key!==undefined){s.push(o.key)}return call(r,l.length>1?"jsxs":"jsx",s)}function buildJSXOpeningElementAttributes(e,t){const r=e.reduce(accumulateAttribute,[]);if((t==null?void 0:t.length)>0){r.push(buildChildrenProperty(t))}return i.types.objectExpression(r)}function buildJSXFragmentCall(e,r){const n=[get(r,"id/fragment")()];const s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[buildChildrenProperty(s)]:[]));if(t){n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1))}return call(r,s.length>1?"jsxs":"jsx",n)}function buildCreateElementFragmentCall(e,t){if(h&&!h(e.node,t))return;return call(t,"createElement",[get(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}function buildCreateElementCall(e,t){const r=e.get("openingElement");return call(t,"createElement",[getTag(r),buildCreateElementOpeningElementAttributes(t,e,r.get("attributes")),...i.types.react.buildChildren(e.node)])}function getTag(e){const t=convertJSXIdentifier(e.node.name,e.node);let r;if(i.types.isIdentifier(t)){r=t.name}else if(i.types.isStringLiteral(t)){r=t.value}if(i.types.react.isCompatTag(r)){return i.types.stringLiteral(r)}else{return t}}function buildCreateElementOpeningElementAttributes(e,t,r){const n=get(e,"runtime");{if(n!=="automatic"){const t=[];const n=r.reduce(accumulateAttribute,[]);if(!T){let e=0;n.forEach(((r,s)=>{if(i.types.isSpreadElement(r)){if(s>e){t.push(i.types.objectExpression(n.slice(e,s)))}t.push(r.argument);e=s+1}}));if(n.length>e){t.push(i.types.objectExpression(n.slice(e)))}}else if(n.length){t.push(i.types.objectExpression(n))}if(!t.length){return i.types.nullLiteral()}if(t.length===1){if(!(i.types.isSpreadElement(n[0])&&i.types.isObjectExpression(n[0].argument))){return t[0]}}if(!i.types.isObjectExpression(t[0])){t.unshift(i.types.objectExpression([]))}const s=E?i.types.memberExpression(i.types.identifier("Object"),i.types.identifier("assign")):e.addHelper("extends");return i.types.callExpression(s,t)}}const s=[];const a=Object.create(null);for(const e of r){const{node:r}=e;const o=i.types.isJSXAttribute(r)&&i.types.isJSXIdentifier(r.name)&&r.name.name;if(n==="automatic"&&(o==="__source"||o==="__self")){if(a[o])throw sourceSelfError(t,o);a[o]=true}accumulateAttribute(s,e)}return s.length===1&&i.types.isSpreadElement(s[0])&&!i.types.isObjectExpression(s[0].argument)?s[0].argument:s.length>0?i.types.objectExpression(s):i.types.nullLiteral()}}));function getSource(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return`${e}/jsx-dev-runtime`;case"jsx":case"jsxs":return`${e}/jsx-runtime`;case"createElement":return e}}function createImportLazily(e,t,r,n){return()=>{const s=getSource(n,r);if((0,a.isModule)(t)){let n=get(e,`imports/${r}`);if(n)return i.types.cloneNode(n);n=(0,a.addNamed)(t,r,s,{importedInterop:"uncompiled",importPosition:"after"});set(e,`imports/${r}`,n);return n}else{let n=get(e,`requires/${s}`);if(n){n=i.types.cloneNode(n)}else{n=(0,a.addNamespace)(t,s,{importedInterop:"uncompiled"});set(e,`requires/${s}`,n)}return i.types.memberExpression(n,i.types.identifier(r))}}}}function toMemberExpression(e){return e.split(".").map((e=>i.types.identifier(e))).reduce(((e,t)=>i.types.memberExpression(e,t)))}function makeSource(e,t){const r=e.node.loc;if(!r){return e.scope.buildUndefinedNode()}if(!t.fileNameIdentifier){const{filename:r=""}=t;const n=e.scope.generateUidIdentifier("_jsxFileName");e.scope.getProgramParent().push({id:n,init:i.types.stringLiteral(r)});t.fileNameIdentifier=n}return makeTrace(i.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}function makeTrace(e,t,r){const n=t!=null?i.types.numericLiteral(t):i.types.nullLiteral();const s=r!=null?i.types.numericLiteral(r+1):i.types.nullLiteral();return i.template.expression.ast`{
|
|
206
|
+
`}},wrapReference(e,t){if(t==="lazy/function")return n.types.callExpression(e,[])}});t.lazyImportsHook=lazyImportsHook},5885:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(4320);var s=r(6928);var i=r(1485);var a=t["default"]=(0,n.declare)((e=>{e.assertVersion(7);function addDisplayName(e,t){const r=t.arguments[0].properties;let n=true;for(let e=0;e<r.length;e++){const t=r[e];if(i.types.isSpreadElement(t)){continue}const s=i.types.toComputedKey(t);if(i.types.isStringLiteral(s,{value:"displayName"})){n=false;break}}if(n){r.unshift(i.types.objectProperty(i.types.identifier("displayName"),i.types.stringLiteral(e)))}}const t=i.types.buildMatchMemberExpression("React.createClass");const isCreateClassAddon=e=>i.types.isIdentifier(e,{name:"createReactClass"});function isCreateClass(e){if(!e||!i.types.isCallExpression(e))return false;if(!t(e.callee)&&!isCreateClassAddon(e.callee)){return false}const r=e.arguments;if(r.length!==1)return false;const n=r[0];if(!i.types.isObjectExpression(n))return false;return true}return{name:"transform-react-display-name",visitor:{ExportDefaultDeclaration({node:e},t){if(isCreateClass(e.declaration)){const r=t.filename||"unknown";let n=s.basename(r,s.extname(r));if(n==="index"){n=s.basename(s.dirname(r))}addDisplayName(n,e.declaration)}},CallExpression(e){const{node:t}=e;if(!isCreateClass(t))return;let r;e.find((function(e){if(e.isAssignmentExpression()){r=e.node.left}else if(e.isObjectProperty()){r=e.node.key}else if(e.isVariableDeclarator()){r=e.node.id}else if(e.isStatement()){return true}if(r)return true}));if(!r)return;if(i.types.isMemberExpression(r)){r=r.property}if(i.types.isIdentifier(r)){addDisplayName(r.name,t)}}}}}))},7499:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(4262);var s=t["default"]=n.default},9003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createPlugin;var n=r(8021);var s=r(4320);var i=r(1485);var a=r(3521);var o=r(9508);const l={importSource:"react",runtime:"automatic",pragma:"React.createElement",pragmaFrag:"React.Fragment"};const c=/^\s*(?:\*\s*)?@jsxImportSource\s+(\S+)\s*$/m;const u=/^\s*(?:\*\s*)?@jsxRuntime\s+(\S+)\s*$/m;const p=/^\s*(?:\*\s*)?@jsx\s+(\S+)\s*$/m;const f=/^\s*(?:\*\s*)?@jsxFrag\s+(\S+)\s*$/m;const get=(e,t)=>e.get(`@babel/plugin-react-jsx/${t}`);const set=(e,t,r)=>e.set(`@babel/plugin-react-jsx/${t}`,r);function hasProto(e){return e.properties.some((e=>i.types.isObjectProperty(e,{computed:false,shorthand:false})&&(i.types.isIdentifier(e.key,{name:"__proto__"})||i.types.isStringLiteral(e.key,{value:"__proto__"}))))}function createPlugin({name:e,development:t}){return(0,s.declare)(((r,s)=>{const{pure:a,throwIfNamespace:d=true,filter:h,runtime:m=(t?"automatic":"classic"),importSource:y=l.importSource,pragma:g=l.pragma,pragmaFrag:b=l.pragmaFrag}=s;{var{useSpread:T=false,useBuiltIns:E=false}=s;if(m==="classic"){if(typeof T!=="boolean"){throw new Error("transform-react-jsx currently only accepts a boolean option for "+"useSpread (defaults to false)")}if(typeof E!=="boolean"){throw new Error("transform-react-jsx currently only accepts a boolean option for "+"useBuiltIns (defaults to false)")}if(T&&E){throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread "+"but not both")}}}const S={JSXOpeningElement(e,t){const r=[];if(isThisAllowed(e.scope)){r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression())))}r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(makeSource(e,t))));e.pushContainer("attributes",r)}};return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(d){throw e.buildCodeFrameError(`Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set \`throwIfNamespace: false\` to bypass this warning.`)}},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=m;let o=y;let d=g;let h=b;let T=!!s.importSource;let E=!!s.pragma;let v=!!s.pragmaFrag;if(n.ast.comments){for(const e of n.ast.comments){const t=c.exec(e.value);if(t){o=t[1];T=true}const r=u.exec(e.value);if(r){a=r[1]}const n=p.exec(e.value);if(n){d=n[1];E=true}const s=f.exec(e.value);if(s){h=s[1];v=true}}}set(r,"runtime",a);if(a==="classic"){if(T){throw e.buildCodeFrameError(`importSource cannot be set when runtime is classic.`)}const t=toMemberExpression(d);const n=toMemberExpression(h);set(r,"id/createElement",(()=>i.types.cloneNode(t)));set(r,"id/fragment",(()=>i.types.cloneNode(n)));set(r,"defaultPure",d===l.pragma)}else if(a==="automatic"){if(E||v){throw e.buildCodeFrameError(`pragma and pragmaFrag cannot be set when runtime is automatic.`)}const define=(t,n)=>set(r,t,createImportLazily(r,e,n,o));define("id/jsx",t?"jsxDEV":"jsx");define("id/jsxs",t?"jsxDEV":"jsxs");define("id/createElement","createElement");define("id/fragment","Fragment");set(r,"defaultPure",o===l.importSource)}else{throw e.buildCodeFrameError(`Runtime must be either "classic" or "automatic".`)}if(t){e.traverse(S,r)}}},JSXFragment:{exit(e,t){let r;if(get(t,"runtime")==="classic"){r=buildCreateElementFragmentCall(e,t)}else{r=buildJSXFragmentCall(e,t)}e.replaceWith(i.types.inherits(r,e.node))}},JSXElement:{exit(e,t){let r;if(get(t,"runtime")==="classic"||shouldUseCreateElement(e)){r=buildCreateElementCall(e,t)}else{r=buildJSXElementCall(e,t)}e.replaceWith(i.types.inherits(r,e.node))}},JSXAttribute(e){if(i.types.isJSXElement(e.node.value)){e.node.value=i.types.jsxExpressionContainer(e.node.value)}}}};function isDerivedClass(e){return e.node.superClass!==null}function isThisAllowed(e){do{const{path:t}=e;if(t.isFunctionParent()&&!t.isArrowFunctionExpression()){if(!t.isMethod()){return true}if(t.node.kind!=="constructor"){return true}return!isDerivedClass(t.parentPath.parentPath)}if(t.isTSModuleBlock()){return false}}while(e=e.parent);return true}function call(e,t,r){const n=i.types.callExpression(get(e,`id/${t}`)(),r);if(a!=null?a:get(e,"defaultPure"))(0,o.default)(n);return n}function shouldUseCreateElement(e){const t=e.get("openingElement");const r=t.node.attributes;let n=false;for(let e=0;e<r.length;e++){const t=r[e];if(n&&i.types.isJSXAttribute(t)&&t.name.name==="key"){return true}else if(i.types.isJSXSpreadAttribute(t)){n=true}}return false}function convertJSXIdentifier(e,t){if(i.types.isJSXIdentifier(e)){if(e.name==="this"&&i.types.isReferenced(e,t)){return i.types.thisExpression()}else if(i.types.isValidIdentifier(e.name,false)){e.type="Identifier";return e}else{return i.types.stringLiteral(e.name)}}else if(i.types.isJSXMemberExpression(e)){return i.types.memberExpression(convertJSXIdentifier(e.object,e),convertJSXIdentifier(e.property,e))}else if(i.types.isJSXNamespacedName(e)){return i.types.stringLiteral(`${e.namespace.name}:${e.name.name}`)}return e}function convertAttributeValue(e){if(i.types.isJSXExpressionContainer(e)){return e.expression}else{return e}}function accumulateAttribute(e,t){if(i.types.isJSXSpreadAttribute(t.node)){const r=t.node.argument;if(i.types.isObjectExpression(r)&&!hasProto(r)){e.push(...r.properties)}else{e.push(i.types.spreadElement(r))}return e}const r=convertAttributeValue(t.node.name.name!=="key"?t.node.value||i.types.booleanLiteral(true):t.node.value);if(t.node.name.name==="key"&&r===null){throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.')}if(i.types.isStringLiteral(r)&&!i.types.isJSXExpressionContainer(t.node.value)){var n;r.value=r.value.replace(/\n\s+/g," ");(n=r.extra)==null||delete n.raw}if(i.types.isJSXNamespacedName(t.node.name)){t.node.name=i.types.stringLiteral(t.node.name.namespace.name+":"+t.node.name.name.name)}else if(i.types.isValidIdentifier(t.node.name.name,false)){t.node.name.type="Identifier"}else{t.node.name=i.types.stringLiteral(t.node.name.name)}e.push(i.types.inherits(i.types.objectProperty(t.node.name,r),t.node));return e}function buildChildrenProperty(e){let t;if(e.length===1){t=e[0]}else if(e.length>1){t=i.types.arrayExpression(e)}else{return undefined}return i.types.objectProperty(i.types.identifier("children"),t)}function buildJSXElementCall(e,r){const n=e.get("openingElement");const s=[getTag(n)];const a=[];const o=Object.create(null);for(const t of n.get("attributes")){if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(o[r])throw sourceSelfError(e,r);case"key":{const e=convertAttributeValue(t.node.value);if(e===null){throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.')}o[r]=e;break}default:a.push(t)}}else{a.push(t)}}const l=i.types.react.buildChildren(e.node);let c;if(a.length||l.length){c=buildJSXOpeningElementAttributes(a,l)}else{c=i.types.objectExpression([])}s.push(c);if(t){var u;s.push((u=o.key)!=null?u:e.scope.buildUndefinedNode(),i.types.booleanLiteral(l.length>1));if(o.__source){s.push(o.__source);if(o.__self)s.push(o.__self)}else if(o.__self){s.push(e.scope.buildUndefinedNode(),o.__self)}}else if(o.key!==undefined){s.push(o.key)}return call(r,l.length>1?"jsxs":"jsx",s)}function buildJSXOpeningElementAttributes(e,t){const r=e.reduce(accumulateAttribute,[]);if((t==null?void 0:t.length)>0){r.push(buildChildrenProperty(t))}return i.types.objectExpression(r)}function buildJSXFragmentCall(e,r){const n=[get(r,"id/fragment")()];const s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[buildChildrenProperty(s)]:[]));if(t){n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1))}return call(r,s.length>1?"jsxs":"jsx",n)}function buildCreateElementFragmentCall(e,t){if(h&&!h(e.node,t))return;return call(t,"createElement",[get(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}function buildCreateElementCall(e,t){const r=e.get("openingElement");return call(t,"createElement",[getTag(r),buildCreateElementOpeningElementAttributes(t,e,r.get("attributes")),...i.types.react.buildChildren(e.node)])}function getTag(e){const t=convertJSXIdentifier(e.node.name,e.node);let r;if(i.types.isIdentifier(t)){r=t.name}else if(i.types.isStringLiteral(t)){r=t.value}if(i.types.react.isCompatTag(r)){return i.types.stringLiteral(r)}else{return t}}function buildCreateElementOpeningElementAttributes(e,t,r){const n=get(e,"runtime");{if(n!=="automatic"){const t=[];const n=r.reduce(accumulateAttribute,[]);if(!T){let e=0;n.forEach(((r,s)=>{if(i.types.isSpreadElement(r)){if(s>e){t.push(i.types.objectExpression(n.slice(e,s)))}t.push(r.argument);e=s+1}}));if(n.length>e){t.push(i.types.objectExpression(n.slice(e)))}}else if(n.length){t.push(i.types.objectExpression(n))}if(!t.length){return i.types.nullLiteral()}if(t.length===1){if(!(i.types.isSpreadElement(n[0])&&i.types.isObjectExpression(n[0].argument))){return t[0]}}if(!i.types.isObjectExpression(t[0])){t.unshift(i.types.objectExpression([]))}const s=E?i.types.memberExpression(i.types.identifier("Object"),i.types.identifier("assign")):e.addHelper("extends");return i.types.callExpression(s,t)}}const s=[];const a=Object.create(null);for(const e of r){const{node:r}=e;const o=i.types.isJSXAttribute(r)&&i.types.isJSXIdentifier(r.name)&&r.name.name;if(n==="automatic"&&(o==="__source"||o==="__self")){if(a[o])throw sourceSelfError(t,o);a[o]=true}accumulateAttribute(s,e)}return s.length===1&&i.types.isSpreadElement(s[0])&&!i.types.isObjectExpression(s[0].argument)?s[0].argument:s.length>0?i.types.objectExpression(s):i.types.nullLiteral()}}));function getSource(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return`${e}/jsx-dev-runtime`;case"jsx":case"jsxs":return`${e}/jsx-runtime`;case"createElement":return e}}function createImportLazily(e,t,r,n){return()=>{const s=getSource(n,r);if((0,a.isModule)(t)){let n=get(e,`imports/${r}`);if(n)return i.types.cloneNode(n);n=(0,a.addNamed)(t,r,s,{importedInterop:"uncompiled",importPosition:"after"});set(e,`imports/${r}`,n);return n}else{let n=get(e,`requires/${s}`);if(n){n=i.types.cloneNode(n)}else{n=(0,a.addNamespace)(t,s,{importedInterop:"uncompiled"});set(e,`requires/${s}`,n)}return i.types.memberExpression(n,i.types.identifier(r))}}}}function toMemberExpression(e){return e.split(".").map((e=>i.types.identifier(e))).reduce(((e,t)=>i.types.memberExpression(e,t)))}function makeSource(e,t){const r=e.node.loc;if(!r){return e.scope.buildUndefinedNode()}if(!t.fileNameIdentifier){const{filename:r=""}=t;const n=e.scope.generateUidIdentifier("_jsxFileName");e.scope.getProgramParent().push({id:n,init:i.types.stringLiteral(r)});t.fileNameIdentifier=n}return makeTrace(i.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}function makeTrace(e,t,r){const n=t!=null?i.types.numericLiteral(t):i.types.nullLiteral();const s=r!=null?i.types.numericLiteral(r+1):i.types.nullLiteral();return i.template.expression.ast`{
|
|
207
207
|
fileName: ${e},
|
|
208
208
|
lineNumber: ${n},
|
|
209
209
|
columnNumber: ${s},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@babel/preset-react","version":"7.27.1","description":"Babel preset for all React plugins.","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-preset-react","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20react%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-react"},"main":"./lib/index.js","dependencies":{"@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-transform-react-display-name":"^7.27.1","@babel/plugin-transform-react-jsx":"^7.27.1","@babel/plugin-transform-react-jsx-development":"^7.27.1","@babel/plugin-transform-react-pure-annotations":"^7.27.1"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.27.1","@babel/helper-plugin-test-runner":"^7.27.1"},"engines":{"node":">=6.9.0"},"type":"commonjs","_lastModified":"2025-07-
|
|
1
|
+
{"name":"@babel/preset-react","version":"7.27.1","description":"Babel preset for all React plugins.","author":"The Babel Team (https://babel.dev/team)","homepage":"https://babel.dev/docs/en/next/babel-preset-react","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20react%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-react"},"main":"./lib/index.js","dependencies":{"@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-transform-react-display-name":"^7.27.1","@babel/plugin-transform-react-jsx":"^7.27.1","@babel/plugin-transform-react-jsx-development":"^7.27.1","@babel/plugin-transform-react-pure-annotations":"^7.27.1"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.27.1","@babel/helper-plugin-test-runner":"^7.27.1"},"engines":{"node":">=6.9.0"},"type":"commonjs","_lastModified":"2025-07-29T06:22:34.442Z"}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
// writable is false by default
|
|
112
112
|
value: ${o.name}
|
|
113
113
|
});
|
|
114
|
-
`,t)}function buildPrivateMethodDeclaration(e,t,r,s=false){const i=r.get(t.node.key.id.name);const{id:a,methodId:o,getId:l,setId:c,getterDeclared:u,setterDeclared:p,static:f}=i;const{params:d,body:h,generator:y,async:g}=t.node;const b=l&&d.length===0;const T=c&&d.length>0;if(b&&u||T&&p){r.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));return null}if(newHelpers(e)&&(b||T)&&!s){const e=t.get("body").scope;const r=e.generateUidIdentifier("this");const s={thisRef:r,argumentsPath:[]};t.traverse(m,s);if(s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath){e.replaceWith(n.types.cloneNode(t))}}d.unshift(n.types.cloneNode(r))}let E=o;if(b){r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:true,initAdded:true}));E=l}else if(T){r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:true,initAdded:true}));E=c}else if(f&&!s){E=a}return inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(E),d,h,y,g),t)}const m=s.visitors.environmentVisitor({Identifier(e,t){if(t.argumentsPath&&e.node.name==="arguments"){t.argumentsPath.push(e)}},UnaryExpression(e){const{node:t}=e;if(t.operator==="delete"){const r=(0,c.skipTransparentExprWrapperNodes)(t.argument);if(n.types.isThisExpression(r)){e.replaceWith(n.types.booleanLiteral(true))}}},ThisExpression(e,t){t.needsClassRef=true;e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;if(t.meta.name==="new"&&t.property.name==="target"){e.replaceWith(r.buildUndefinedNode())}}});const y={ReferencedIdentifier(e,t){if(e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)){t.needsClassRef=true;e.node.name=t.thisRef.name}}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:false,innerBinding:r};if(!e.isMethod()){e.traverse(m,s)}if(r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name){e.traverse(y,s)}return s.needsClassRef}function isNameOrLength({key:e,computed:t}){if(e.type==="Identifier"){return!t&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,t){n.types.inheritLeadingComments(e,t.node);n.types.inheritInnerComments(e,t.node);return e}function inheritLoc(e,t){e.start=t.start;e.end=t.end;e.loc=t.loc;return e}function buildFieldsInitNodes(e,t,r,s,a,o,l,c,p,f){let d=0;let h;const m=[];const y=[];let g=false;const b=[];let T=null;const E=n.types.isIdentifier(t)?()=>t:()=>{h!=null?h:h=r[0].scope.generateUidIdentifierBasedOnNode(t);return h};const S=e!=null?e:r[0].scope.generateUidIdentifier((f==null?void 0:f.name)||"Class");e!=null?e:e=n.types.cloneNode(f);for(const t of r){if(t.isClassProperty()){u.assertFieldTransformed(t)}const r=!(n.types.isStaticBlock!=null&&n.types.isStaticBlock(t.node))&&t.node.static;const h=!r;const T=t.isPrivate();const v=!T;const x=t.isProperty();const P=!x;const A=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)d|=1;if(r||P&&T||A){new i.default({methodPath:t,constantSuper:p,file:a,refToPreserve:f,getSuperRef:E,getObjectRef(){d|=2;if(r||A){return S}else{return n.types.memberExpression(S,n.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,S,f);if(e){d|=2}}g=false;switch(true){case A:{const e=t.node.body;if(e.length===1&&n.types.isExpressionStatement(e[0])){m.push(inheritPropComments(e[0],t))}else{m.push(n.types.inheritsComments(n.template.statement.ast`(() => { ${e} })()`,t.node))}break}case r&&T&&x&&l:m.push(buildPrivateFieldInitLoose(n.types.cloneNode(e),t,s));break;case r&&T&&x&&!l:if(!newHelpers(a)){m.push(buildPrivateStaticFieldInitSpecOld(t,s))}else{m.push(buildPrivateStaticFieldInitSpec(t,s,c))}break;case r&&v&&x&&o:if(!isNameOrLength(t.node)){m.push(buildPublicFieldInitLoose(n.types.cloneNode(e),t));break}case r&&v&&x&&!o:m.push(buildPublicFieldInitSpec(n.types.cloneNode(e),t,a));break;case h&&T&&x&&l:y.push(buildPrivateFieldInitLoose(n.types.thisExpression(),t,s));break;case h&&T&&x&&!l:y.push(buildPrivateInstanceFieldInitSpec(n.types.thisExpression(),t,s,a));break;case h&&T&&P&&l:y.unshift(buildPrivateMethodInitLoose(n.types.thisExpression(),t,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&T&&P&&!l:y.unshift(buildPrivateInstanceMethodInitSpec(n.types.thisExpression(),t,s,a));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&!l:if(!newHelpers(a)){m.unshift(buildPrivateStaticFieldInitSpecOld(t,s))}b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&l:m.unshift(buildPrivateStaticMethodInitLoose(n.types.cloneNode(e),t,a,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&v&&x&&o:y.push(buildPublicFieldInitLoose(n.types.thisExpression(),t));break;case h&&v&&x&&!o:g=true;y.push(buildPublicFieldInitSpec(n.types.thisExpression(),t,a));break;default:throw new Error("Unreachable.")}}if(d&2&&f!=null){T=n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(S),n.types.cloneNode(f)))}return{staticNodes:m.filter(Boolean),instanceNodes:y.filter(Boolean),lastInstanceNodeReturnsThis:g,pureStaticNodes:b.filter(Boolean),classBindingNode:T,wrapClass(t){for(const e of r){e.node.leadingComments=null;e.remove()}if(h){t.scope.push({id:n.types.cloneNode(h)});t.set("superClass",n.types.assignmentExpression("=",h,t.node.superClass))}if(d!==0){if(t.isClassExpression()){t.scope.push({id:e});t.replaceWith(n.types.assignmentExpression("=",n.types.cloneNode(e),t.node))}else{if(f==null){t.node.id=e}if(T!=null){t.scope.push({id:S})}}}return t}}}},2061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"FEATURES",{enumerable:true,get:function(){return c.FEATURES}});Object.defineProperty(t,"buildCheckInRHS",{enumerable:true,get:function(){return i.buildCheckInRHS}});t.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(t,"enableFeature",{enumerable:true,get:function(){return c.enableFeature}});Object.defineProperty(t,"injectInitialization",{enumerable:true,get:function(){return l.injectInitialization}});var n=r(1485);var s=r(8804);var i=r(5896);var a=r(4063);var o=r(551);var l=r(7929);var c=r(818);var u=r(849);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:t,loose:f,manipulateOptions:d,api:h,inherits:m,decoratorVersion:y}){var g;if(t&c.FEATURES.decorators){{if(y==="2023-11"||y==="2023-05"||y==="2023-01"||y==="2022-03"||y==="2021-12"){return(0,a.default)(h,{loose:f},y,m)}}}{h!=null?h:h={assumption:()=>void 0}}const b=h.assumption("setPublicClassFields");const T=h.assumption("privateFieldsAsSymbols");const E=h.assumption("privateFieldsAsProperties");const S=(g=h.assumption("noUninitializedPrivateFieldAccess"))!=null?g:false;const v=h.assumption("constantSuper");const x=h.assumption("noDocumentAll");if(E&&T){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const P=E||T;if(f===true){const t=[];if(b!==undefined){t.push(`"setPublicClassFields"`)}if(E!==undefined){t.push(`"privateFieldsAsProperties"`)}if(T!==undefined){t.push(`"privateFieldsAsSymbols"`)}if(t.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${t.join(" and ")}`+` assumption${t.length>1?"s":""}. The "loose" option`+` can cause incompatibilities with the other class features`+` plugins, so it's recommended that you replace it with the`+` following top-level option:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:d,inherits:m,pre(e){(0,c.enableFeature)(e,t,f);{if(typeof e.get(p)==="number"){e.set(p,"7.27.1");return}}if(!e.get(p)||s.lt(e.get(p),"7.27.1")){e.set(p,"7.27.1")}},visitor:{Class(e,{file:s}){if(s.get(p)!=="7.27.1")return;if(!(0,c.shouldTransform)(e,s))return;const f=e.isClassDeclaration();if(f)(0,u.assertFieldTransformed)(e);const d=(0,c.isLoose)(s,t);let h;const m=(0,a.hasDecorators)(e.node);const y=[];const g=[];const A=[];const C=new Set;const w=e.get("body");for(const e of w.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){A.push(e)}if(e.isPrivate()){const{name:t}=e.node.key.id;const r=`get ${t}`;const n=`set ${t}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(C.has(r)||C.has(t)&&!C.has(n)){throw e.buildCodeFrameError("Duplicate private field")}C.add(r).add(t)}else if(e.node.kind==="set"){if(C.has(n)||C.has(t)&&!C.has(r)){throw e.buildCodeFrameError("Duplicate private field")}C.add(n).add(t)}}else{if(C.has(t)&&!C.has(r)&&!C.has(n)||C.has(t)&&(C.has(r)||C.has(n))){throw e.buildCodeFrameError("Duplicate private field")}C.add(t)}}if(e.isClassMethod({kind:"constructor"})){h=e}else{g.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){y.push(e)}}}{if(!y.length&&!m)return}const D=e.node.id;let I;if(!D||!f){{var N;(N=e.ensureFunctionName)!=null?N:e.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e.ensureFunctionName(false);I=e.scope.generateUidIdentifier((D==null?void 0:D.name)||"Class")}const O=I!=null?I:n.types.cloneNode(D);const k=(0,i.buildPrivateNamesMap)(O.name,P!=null?P:d,y,s);const _=(0,i.buildPrivateNamesNodes)(k,E!=null?E:d,T!=null?T:false,s);(0,i.transformPrivateNamesUsage)(O,e,k,{privateFieldsAsProperties:P!=null?P:d,noUninitializedPrivateFieldAccess:S,noDocumentAll:x,innerBinding:D},s);let B,F,L,M,j,R,U;{if(m){F=j=B=[];({instanceNodes:L,wrapClass:U}=(0,o.buildDecoratedClass)(O,e,g,s))}else{B=(0,l.extractComputedKeys)(e,A,s);({staticNodes:F,pureStaticNodes:j,instanceNodes:L,lastInstanceNodeReturnsThis:M,classBindingNode:R,wrapClass:U}=(0,i.buildFieldsInitNodes)(I,e.node.superClass,y,k,s,b!=null?b:d,P!=null?P:d,S,v!=null?v:d,D))}}if(L.length>0){(0,l.injectInitialization)(e,h,L,((e,t)=>{{if(m)return}for(const r of y){if(n.types.isStaticBlock!=null&&n.types.isStaticBlock(r.node)||r.node.static)continue;r.traverse(e,t)}}),M)}const V=U(e);V.insertBefore([..._,...B]);if(F.length>0){V.insertAfter(F)}if(j.length>0){V.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(j)}if(R!=null&&f){V.insertAfter(R)}},ExportDefaultDeclaration(e,{file:t}){{if(t.get(p)!=="7.27.1")return;const s=e.get("declaration");if(s.isClassDeclaration()&&(0,a.hasDecorators)(s.node)){if(s.node.id){{var n;(n=e.splitExportDeclaration)!=null?n:e.splitExportDeclaration=r(8384).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}else{s.node.type="ClassExpression"}}}}}}}},7929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractComputedKeys=extractComputedKeys;t.injectInitialization=injectInitialization;t.memoiseComputedKey=memoiseComputedKey;var n=r(1485);var s=r(8384);const i=s.visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;if(r.isCallExpression({callee:t})){this.push(r)}}});const a={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){if(t.hasOwnBinding(e.node.name)){t.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError");const s=n.types.callExpression(r,[n.types.stringLiteral(e.node.name)]);e.replaceWith(n.types.sequenceExpression([s,e.node]));e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function injectInitialization(e,t,r,s,o){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=n.types.classMethod("constructor",n.types.identifier("constructor"),[],n.types.blockStatement([]));if(l){r.params=[n.types.restElement(n.types.identifier("args"))];r.body.body.push(n.template.statement.ast`super(...args)`)}[t]=e.get("body").unshiftContainer("body",r)}if(s){s(a,{scope:t.scope})}if(l){const e=[];t.traverse(i,e);let s=true;for(const t of e){if(s){s=false}else{r=r.map((e=>n.types.cloneNode(e)))}if(!t.parentPath.isExpressionStatement()){const e=[t.node,...r.map((e=>n.types.toExpression(e)))];if(!o)e.push(n.types.thisExpression());t.replaceWith(n.types.sequenceExpression(e))}else{t.insertAfter(r)}}}else{t.get("body").unshiftContainer("body",r)}}function memoiseComputedKey(e,t,r){const s=n.types.isIdentifier(e)&&t.hasUid(e.name);if(s){return}const i=n.types.isAssignmentExpression(e,{operator:"="})&&n.types.isIdentifier(e.left)&&t.hasUid(e.left.name);if(i){return n.types.cloneNode(e)}else{const s=n.types.identifier(r);t.push({id:s,kind:"let"});return n.types.assignmentExpression("=",n.types.cloneNode(s),e)}}function extractComputedKeys(e,t,r){const{scope:s}=e;const i=[];const a={classBinding:e.node.id&&s.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");if(t.isReferencedIdentifier()){handleClassTDZ(t,a)}else{t.traverse(o,a)}const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,s,s.generateUidBasedOnNode(t.node));if(e){i.push(n.types.expressionStatement(e));r.key=n.types.cloneNode(e.left)}}}return i}},849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(9551);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var s=_interopNamespace(n);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:n}=t;if(n.isLogicalExpression()){const{operator:e,right:t}=n.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(n)}}if(n.isSequenceExpression()){const{expressions:e}=n.node;if(e[e.length-1]===r){return willPathCastToBoolean(n)}else{return true}}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}const{LOGICAL_OPERATORS:i,arrowFunctionExpression:a,assignmentExpression:o,binaryExpression:l,booleanLiteral:c,callExpression:u,cloneNode:p,conditionalExpression:f,identifier:d,isMemberExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isUpdateExpression:g,logicalExpression:b,memberExpression:T,nullLiteral:E,optionalCallExpression:S,optionalMemberExpression:v,sequenceExpression:x,updateExpression:P}=s;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(y(r)){return T(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const n=r.node.object;const s=e.scope.maybeGenerateMemoised(n);r.get("object").replaceWith(o("=",s,n));return u(T(t,d("call")),[s,...e.node.arguments])}return u(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:n}=e;const s=t.node;if(n){if(r!==s[n]){return true}}else{if(r!==s)return true}e=t}return false}const A={memoise(){},handle(e,t){const{node:r,parent:n,parentPath:s,scope:i}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const g=e.find((({node:t,parent:r})=>{if(y(r)){return r.optional||r.object!==t}if(m(r)){return t!==e.node&&r.optional||r.callee!==t}return true}));if(i.path.isPattern()){g.replaceWith(u(a([],g.node),[]));return}const T=willPathCastToBoolean(g);const x=g.parentPath;if(x.isUpdateExpression({argument:r})){throw e.buildCodeFrameError(`can't handle update expression`)}const P=x.isAssignmentExpression({left:g.node});const A=x.isUnaryExpression({operator:"delete"});if(A&&g.isOptionalMemberExpression()&&g.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const w=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=i.maybeGenerateMemoised(w);const I=D!=null?D:w;const N=s.isOptionalCallExpression({callee:r});const isOptionalCall=e=>N;const O=s.isCallExpression({callee:r});C.replaceWith(toNonOptional(C,I));if(isOptionalCall()){if(n.optional){s.replaceWith(this.optionalCall(e,n.arguments))}else{s.replaceWith(this.call(e,n.arguments))}}else if(O){e.replaceWith(this.boundGet(e))}else if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e))}else if(s.isAssignmentExpression()){handleAssignment(this,e,s)}else{e.replaceWith(this.get(e))}let k=e.node;for(let t=e;t!==g;){const e=t.parentPath;if(e===g&&isOptionalCall()&&n.optional){k=e.node;break}k=toNonOptional(e,k);t=e}let _;const B=g.parentPath;if(h(k)&&B.isOptionalCallExpression({callee:g.node,optional:true})){const{object:t}=k;_=e.scope.maybeGenerateMemoised(t);if(_){k.object=o("=",_,t)}}let F=g;if(A||P){F=B;k=B.node}const L=D?o("=",p(I),p(w)):p(I);if(T){let e;if(t){e=l("!=",L,E())}else{e=b("&&",l("!==",L,E()),l("!==",p(I),i.buildUndefinedNode()))}F.replaceWith(b("&&",e,k))}else{let e;if(t){e=l("==",L,E())}else{e=b("||",l("===",L,E()),l("===",p(I),i.buildUndefinedNode()))}F.replaceWith(f(e,A?c(true):i.buildUndefinedNode(),k))}if(_){const e=B.node;B.replaceWith(S(v(e.callee,d("call"),false,true),[p(_),...e.arguments],false))}return}if(g(n,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:a}=n;this.memoise(e,2);const l=i.generateUidIdentifierBasedOnNode(r);i.push({id:l});const c=[o("=",p(l),this.get(e))];if(a){c.push(P(t,p(l),a));const r=x(c);s.replaceWith(this.set(e,r));return}else{const n=i.generateUidIdentifierBasedOnNode(r);i.push({id:n});c.push(o("=",p(n),P(t,p(l),a)),p(l));const u=x(c);s.replaceWith(x([this.set(e,u),p(n)]));return}}if(s.isAssignmentExpression({left:r})){handleAssignment(this,e,s);return}if(s.isCallExpression({callee:r})){s.replaceWith(this.call(e,s.node.arguments));return}if(s.isOptionalCallExpression({callee:r})){if(i.path.isPattern()){s.replaceWith(u(a([],s.node),[]));return}s.replaceWith(this.optionalCall(e,s.node.arguments));return}if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e));return}if(s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(s.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}const{operator:n,right:s}=r.node;if(n==="="){r.replaceWith(e.set(t,s))}else{const a=n.slice(0,-1);if(i.includes(a)){e.memoise(t,1);r.replaceWith(b(a,e.get(t),e.set(t,s)))}else{e.memoise(t,2);r.replaceWith(e.set(t,l(a,e.get(t),s)))}}}function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},A,r,{memoiser:new AssignmentMemoiser}))}t["default"]=memberExpressionToFunctions},3053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);const{callExpression:i,cloneNode:a,expressionStatement:o,identifier:l,importDeclaration:c,importDefaultSpecifier:u,importNamespaceSpecifier:p,importSpecifier:f,memberExpression:d,stringLiteral:h,variableDeclaration:m,variableDeclarator:y}=s;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],h(this._importedSource)));return this}require(){this._statements.push(o(i(l("require"),[h(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=a(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=a(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const s=this._statements[this._statements.length-1];n(s.type==="ImportDeclaration");n(s.specifiers.length===0);s.specifiers=[f(r,l(t))];this._resultName=a(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){n(this._resultName);r=o(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=m("var",[y(t,r.expression)]);this._resultName=a(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=i(e,[t.expression])}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=i(e,[t.declarations[0].init])}else{n.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=d(t.expression,l(e))}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=d(t.declarations[0].init,l(e))}else{n.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=d(this._resultName,l(e))}}t["default"]=ImportBuilder},1776:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);var i=r(3053);var a=r(5759);const{identifier:o,importSpecifier:l,numericLiteral:c,sequenceExpression:u,isImportDeclaration:p}=s;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const n=e.find((e=>e.isProgram()));this._programPath=n;this._programScope=n.scope;this._hub=n.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){n(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let s;if(typeof e==="string"){s=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{n(!t,"Unexpected secondary arguments.");s=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)s.nameHint=t.nameHint;if(t.blockHoist!==undefined)s.blockHoist=t.blockHoist}return s}_generateImport(e,t){const r=t==="default";const n=!!t&&!r;const s=t===null;const{importedSource:o,importedType:l,importedInterop:p,importingInterop:f,ensureLiveReference:d,ensureNoContext:h,nameHint:m,importPosition:y,blockHoist:g}=e;let b=m||t;const T=(0,a.default)(this._programPath);const E=T&&f==="node";const S=T&&f==="babel";if(y==="after"&&!T){throw new Error(`"importPosition": "after" is only supported in modules`)}const v=new i.default(o,this._programScope,this._hub);if(l==="es6"){if(!E&&!S){throw new Error("Cannot import an ES6 module from CommonJS")}v.import();if(s){v.namespace(m||o)}else if(r||n){v.named(b,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(p==="babel"){if(E){b=b!=="default"?b:o;const e=`${o}$es6Default`;v.import();if(s){v.default(e).var(b||o).wildcardInterop()}else if(r){if(d){v.default(e).var(b||o).defaultInterop().read("default")}else{v.default(e).var(b).defaultInterop().prop(t)}}else if(n){v.default(e).read(t)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o).wildcardInterop()}else if((r||n)&&d){if(r){b=b!=="default"?b:o;v.var(b).read(t);v.defaultInterop()}else{v.var(o).read(t)}}else if(r){v.var(b).defaultInterop().prop(t)}else if(n){v.var(b).prop(t)}}}else if(p==="compiled"){if(E){v.import();if(s){v.default(b||o)}else if(r||n){v.default(o).read(b)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r||n){if(d){v.var(o).read(b)}else{v.prop(t).var(b)}}}}else if(p==="uncompiled"){if(r&&d){throw new Error("No live reference for commonjs default")}if(E){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.default(o).read(b)}}else if(S){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r){v.var(b)}else if(n){if(d){v.var(o).read(b)}else{v.var(b).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${p}".`)}const{statements:x,resultName:P}=v.done();this._insertStatements(x,y,g);if((r||n)&&h&&P.type!=="Identifier"){return u([c(0),P])}return P}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&p(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(p(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let n=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){n=e;const s=e.node.source.value;const i=r.get(s);if(!i)continue;for(const r of i){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(n)n.insertAfter(Array.from(t));return!!n}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=l(t.specifiers[0].local,o("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},9696:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return n.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return s.default}});var n=r(1776);var s=r(5759);function addDefault(e,t,r){return new n.default(e).addDefault(t,r)}function addNamed(e,t,r,s){return new n.default(e).addNamed(t,r,s)}function addNamespace(e,t,r){return new n.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new n.default(e).addSideEffect(t,r)}},5759:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},7766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var n=r(1485);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,s){const i=n.types.isCallExpression(e)?e.arguments[0]:e.source;if(n.types.isStringLiteral(i)||n.types.isTemplateLiteral(i)&&i.quasis.length===0){if(t){return n.template.expression.ast`
|
|
114
|
+
`,t)}function buildPrivateMethodDeclaration(e,t,r,s=false){const i=r.get(t.node.key.id.name);const{id:a,methodId:o,getId:l,setId:c,getterDeclared:u,setterDeclared:p,static:f}=i;const{params:d,body:h,generator:y,async:g}=t.node;const b=l&&d.length===0;const T=c&&d.length>0;if(b&&u||T&&p){r.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));return null}if(newHelpers(e)&&(b||T)&&!s){const e=t.get("body").scope;const r=e.generateUidIdentifier("this");const s={thisRef:r,argumentsPath:[]};t.traverse(m,s);if(s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath){e.replaceWith(n.types.cloneNode(t))}}d.unshift(n.types.cloneNode(r))}let E=o;if(b){r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:true,initAdded:true}));E=l}else if(T){r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:true,initAdded:true}));E=c}else if(f&&!s){E=a}return inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(E),d,h,y,g),t)}const m=s.visitors.environmentVisitor({Identifier(e,t){if(t.argumentsPath&&e.node.name==="arguments"){t.argumentsPath.push(e)}},UnaryExpression(e){const{node:t}=e;if(t.operator==="delete"){const r=(0,c.skipTransparentExprWrapperNodes)(t.argument);if(n.types.isThisExpression(r)){e.replaceWith(n.types.booleanLiteral(true))}}},ThisExpression(e,t){t.needsClassRef=true;e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;if(t.meta.name==="new"&&t.property.name==="target"){e.replaceWith(r.buildUndefinedNode())}}});const y={ReferencedIdentifier(e,t){if(e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)){t.needsClassRef=true;e.node.name=t.thisRef.name}}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:false,innerBinding:r};if(!e.isMethod()){e.traverse(m,s)}if(r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name){e.traverse(y,s)}return s.needsClassRef}function isNameOrLength({key:e,computed:t}){if(e.type==="Identifier"){return!t&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,t){n.types.inheritLeadingComments(e,t.node);n.types.inheritInnerComments(e,t.node);return e}function inheritLoc(e,t){e.start=t.start;e.end=t.end;e.loc=t.loc;return e}function buildFieldsInitNodes(e,t,r,s,a,o,l,c,p,f){let d=0;let h;const m=[];const y=[];let g=false;const b=[];let T=null;const E=n.types.isIdentifier(t)?()=>t:()=>{h!=null?h:h=r[0].scope.generateUidIdentifierBasedOnNode(t);return h};const S=e!=null?e:r[0].scope.generateUidIdentifier((f==null?void 0:f.name)||"Class");e!=null?e:e=n.types.cloneNode(f);for(const t of r){if(t.isClassProperty()){u.assertFieldTransformed(t)}const r=!(n.types.isStaticBlock!=null&&n.types.isStaticBlock(t.node))&&t.node.static;const h=!r;const T=t.isPrivate();const v=!T;const x=t.isProperty();const P=!x;const A=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)d|=1;if(r||P&&T||A){new i.default({methodPath:t,constantSuper:p,file:a,refToPreserve:f,getSuperRef:E,getObjectRef(){d|=2;if(r||A){return S}else{return n.types.memberExpression(S,n.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,S,f);if(e){d|=2}}g=false;switch(true){case A:{const e=t.node.body;if(e.length===1&&n.types.isExpressionStatement(e[0])){m.push(inheritPropComments(e[0],t))}else{m.push(n.types.inheritsComments(n.template.statement.ast`(() => { ${e} })()`,t.node))}break}case r&&T&&x&&l:m.push(buildPrivateFieldInitLoose(n.types.cloneNode(e),t,s));break;case r&&T&&x&&!l:if(!newHelpers(a)){m.push(buildPrivateStaticFieldInitSpecOld(t,s))}else{m.push(buildPrivateStaticFieldInitSpec(t,s,c))}break;case r&&v&&x&&o:if(!isNameOrLength(t.node)){m.push(buildPublicFieldInitLoose(n.types.cloneNode(e),t));break}case r&&v&&x&&!o:m.push(buildPublicFieldInitSpec(n.types.cloneNode(e),t,a));break;case h&&T&&x&&l:y.push(buildPrivateFieldInitLoose(n.types.thisExpression(),t,s));break;case h&&T&&x&&!l:y.push(buildPrivateInstanceFieldInitSpec(n.types.thisExpression(),t,s,a));break;case h&&T&&P&&l:y.unshift(buildPrivateMethodInitLoose(n.types.thisExpression(),t,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&T&&P&&!l:y.unshift(buildPrivateInstanceMethodInitSpec(n.types.thisExpression(),t,s,a));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&!l:if(!newHelpers(a)){m.unshift(buildPrivateStaticFieldInitSpecOld(t,s))}b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&P&&l:m.unshift(buildPrivateStaticMethodInitLoose(n.types.cloneNode(e),t,a,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&v&&x&&o:y.push(buildPublicFieldInitLoose(n.types.thisExpression(),t));break;case h&&v&&x&&!o:g=true;y.push(buildPublicFieldInitSpec(n.types.thisExpression(),t,a));break;default:throw new Error("Unreachable.")}}if(d&2&&f!=null){T=n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(S),n.types.cloneNode(f)))}return{staticNodes:m.filter(Boolean),instanceNodes:y.filter(Boolean),lastInstanceNodeReturnsThis:g,pureStaticNodes:b.filter(Boolean),classBindingNode:T,wrapClass(t){for(const e of r){e.node.leadingComments=null;e.remove()}if(h){t.scope.push({id:n.types.cloneNode(h)});t.set("superClass",n.types.assignmentExpression("=",h,t.node.superClass))}if(d!==0){if(t.isClassExpression()){t.scope.push({id:e});t.replaceWith(n.types.assignmentExpression("=",n.types.cloneNode(e),t.node))}else{if(f==null){t.node.id=e}if(T!=null){t.scope.push({id:S})}}}return t}}}},2061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"FEATURES",{enumerable:true,get:function(){return c.FEATURES}});Object.defineProperty(t,"buildCheckInRHS",{enumerable:true,get:function(){return i.buildCheckInRHS}});t.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(t,"enableFeature",{enumerable:true,get:function(){return c.enableFeature}});Object.defineProperty(t,"injectInitialization",{enumerable:true,get:function(){return l.injectInitialization}});var n=r(1485);var s=r(8804);var i=r(5896);var a=r(4063);var o=r(551);var l=r(7929);var c=r(818);var u=r(849);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:t,loose:f,manipulateOptions:d,api:h,inherits:m,decoratorVersion:y}){var g;if(t&c.FEATURES.decorators){{if(y==="2023-11"||y==="2023-05"||y==="2023-01"||y==="2022-03"||y==="2021-12"){return(0,a.default)(h,{loose:f},y,m)}}}{h!=null?h:h={assumption:()=>void 0}}const b=h.assumption("setPublicClassFields");const T=h.assumption("privateFieldsAsSymbols");const E=h.assumption("privateFieldsAsProperties");const S=(g=h.assumption("noUninitializedPrivateFieldAccess"))!=null?g:false;const v=h.assumption("constantSuper");const x=h.assumption("noDocumentAll");if(E&&T){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const P=E||T;if(f===true){const t=[];if(b!==undefined){t.push(`"setPublicClassFields"`)}if(E!==undefined){t.push(`"privateFieldsAsProperties"`)}if(T!==undefined){t.push(`"privateFieldsAsSymbols"`)}if(t.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${t.join(" and ")}`+` assumption${t.length>1?"s":""}. The "loose" option`+` can cause incompatibilities with the other class features`+` plugins, so it's recommended that you replace it with the`+` following top-level option:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:d,inherits:m,pre(e){(0,c.enableFeature)(e,t,f);{if(typeof e.get(p)==="number"){e.set(p,"7.27.1");return}}if(!e.get(p)||s.lt(e.get(p),"7.27.1")){e.set(p,"7.27.1")}},visitor:{Class(e,{file:s}){if(s.get(p)!=="7.27.1")return;if(!(0,c.shouldTransform)(e,s))return;const f=e.isClassDeclaration();if(f)(0,u.assertFieldTransformed)(e);const d=(0,c.isLoose)(s,t);let h;const m=(0,a.hasDecorators)(e.node);const y=[];const g=[];const A=[];const C=new Set;const w=e.get("body");for(const e of w.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){A.push(e)}if(e.isPrivate()){const{name:t}=e.node.key.id;const r=`get ${t}`;const n=`set ${t}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(C.has(r)||C.has(t)&&!C.has(n)){throw e.buildCodeFrameError("Duplicate private field")}C.add(r).add(t)}else if(e.node.kind==="set"){if(C.has(n)||C.has(t)&&!C.has(r)){throw e.buildCodeFrameError("Duplicate private field")}C.add(n).add(t)}}else{if(C.has(t)&&!C.has(r)&&!C.has(n)||C.has(t)&&(C.has(r)||C.has(n))){throw e.buildCodeFrameError("Duplicate private field")}C.add(t)}}if(e.isClassMethod({kind:"constructor"})){h=e}else{g.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){y.push(e)}}}{if(!y.length&&!m)return}const D=e.node.id;let I;if(!D||!f){{var N;(N=e.ensureFunctionName)!=null?N:e.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e.ensureFunctionName(false);I=e.scope.generateUidIdentifier((D==null?void 0:D.name)||"Class")}const O=I!=null?I:n.types.cloneNode(D);const k=(0,i.buildPrivateNamesMap)(O.name,P!=null?P:d,y,s);const _=(0,i.buildPrivateNamesNodes)(k,E!=null?E:d,T!=null?T:false,s);(0,i.transformPrivateNamesUsage)(O,e,k,{privateFieldsAsProperties:P!=null?P:d,noUninitializedPrivateFieldAccess:S,noDocumentAll:x,innerBinding:D},s);let B,F,L,M,j,R,U;{if(m){F=j=B=[];({instanceNodes:L,wrapClass:U}=(0,o.buildDecoratedClass)(O,e,g,s))}else{B=(0,l.extractComputedKeys)(e,A,s);({staticNodes:F,pureStaticNodes:j,instanceNodes:L,lastInstanceNodeReturnsThis:M,classBindingNode:R,wrapClass:U}=(0,i.buildFieldsInitNodes)(I,e.node.superClass,y,k,s,b!=null?b:d,P!=null?P:d,S,v!=null?v:d,D))}}if(L.length>0){(0,l.injectInitialization)(e,h,L,((e,t)=>{{if(m)return}for(const r of y){if(n.types.isStaticBlock!=null&&n.types.isStaticBlock(r.node)||r.node.static)continue;r.traverse(e,t)}}),M)}const V=U(e);V.insertBefore([..._,...B]);if(F.length>0){V.insertAfter(F)}if(j.length>0){V.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(j)}if(R!=null&&f){V.insertAfter(R)}},ExportDefaultDeclaration(e,{file:t}){{if(t.get(p)!=="7.27.1")return;const s=e.get("declaration");if(s.isClassDeclaration()&&(0,a.hasDecorators)(s.node)){if(s.node.id){{var n;(n=e.splitExportDeclaration)!=null?n:e.splitExportDeclaration=r(8384).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}else{s.node.type="ClassExpression"}}}}}}}},7929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractComputedKeys=extractComputedKeys;t.injectInitialization=injectInitialization;t.memoiseComputedKey=memoiseComputedKey;var n=r(1485);var s=r(8384);const i=s.visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;if(r.isCallExpression({callee:t})){this.push(r)}}});const a={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){if(t.hasOwnBinding(e.node.name)){t.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError");const s=n.types.callExpression(r,[n.types.stringLiteral(e.node.name)]);e.replaceWith(n.types.sequenceExpression([s,e.node]));e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function injectInitialization(e,t,r,s,o){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=n.types.classMethod("constructor",n.types.identifier("constructor"),[],n.types.blockStatement([]));if(l){r.params=[n.types.restElement(n.types.identifier("args"))];r.body.body.push(n.template.statement.ast`super(...args)`)}[t]=e.get("body").unshiftContainer("body",r)}if(s){s(a,{scope:t.scope})}if(l){const e=[];t.traverse(i,e);let s=true;for(const t of e){if(s){s=false}else{r=r.map((e=>n.types.cloneNode(e)))}if(!t.parentPath.isExpressionStatement()){const e=[t.node,...r.map((e=>n.types.toExpression(e)))];if(!o)e.push(n.types.thisExpression());t.replaceWith(n.types.sequenceExpression(e))}else{t.insertAfter(r)}}}else{t.get("body").unshiftContainer("body",r)}}function memoiseComputedKey(e,t,r){const s=n.types.isIdentifier(e)&&t.hasUid(e.name);if(s){return}const i=n.types.isAssignmentExpression(e,{operator:"="})&&n.types.isIdentifier(e.left)&&t.hasUid(e.left.name);if(i){return n.types.cloneNode(e)}else{const s=n.types.identifier(r);t.push({id:s,kind:"let"});return n.types.assignmentExpression("=",n.types.cloneNode(s),e)}}function extractComputedKeys(e,t,r){const{scope:s}=e;const i=[];const a={classBinding:e.node.id&&s.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");if(t.isReferencedIdentifier()){handleClassTDZ(t,a)}else{t.traverse(o,a)}const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,s,s.generateUidBasedOnNode(t.node));if(e){i.push(n.types.expressionStatement(e));r.key=n.types.cloneNode(e.left)}}}return i}},849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(9551);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var s=_interopNamespace(n);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:n}=t;if(n.isLogicalExpression()){const{operator:e,right:t}=n.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(n)}}if(n.isSequenceExpression()){const{expressions:e}=n.node;if(e[e.length-1]===r){return willPathCastToBoolean(n)}else{return true}}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}const{LOGICAL_OPERATORS:i,arrowFunctionExpression:a,assignmentExpression:o,binaryExpression:l,booleanLiteral:c,callExpression:u,cloneNode:p,conditionalExpression:f,identifier:d,isMemberExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isUpdateExpression:g,logicalExpression:b,memberExpression:T,nullLiteral:E,optionalCallExpression:S,optionalMemberExpression:v,sequenceExpression:x,updateExpression:P}=s;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(y(r)){return T(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const n=r.node.object;const s=e.scope.maybeGenerateMemoised(n);r.get("object").replaceWith(o("=",s,n));return u(T(t,d("call")),[s,...e.node.arguments])}return u(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:n}=e;const s=t.node;if(n){if(r!==s[n]){return true}}else{if(r!==s)return true}e=t}return false}const A={memoise(){},handle(e,t){const{node:r,parent:n,parentPath:s,scope:i}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const g=e.find((({node:t,parent:r})=>{if(y(r)){return r.optional||r.object!==t}if(m(r)){return t!==e.node&&r.optional||r.callee!==t}return true}));if(i.path.isPattern()){g.replaceWith(u(a([],g.node),[]));return}const T=willPathCastToBoolean(g);const x=g.parentPath;if(x.isUpdateExpression({argument:r})){throw e.buildCodeFrameError(`can't handle update expression`)}const P=x.isAssignmentExpression({left:g.node});const A=x.isUnaryExpression({operator:"delete"});if(A&&g.isOptionalMemberExpression()&&g.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const w=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=i.maybeGenerateMemoised(w);const I=D!=null?D:w;const N=s.isOptionalCallExpression({callee:r});const isOptionalCall=e=>N;const O=s.isCallExpression({callee:r});C.replaceWith(toNonOptional(C,I));if(isOptionalCall()){if(n.optional){s.replaceWith(this.optionalCall(e,n.arguments))}else{s.replaceWith(this.call(e,n.arguments))}}else if(O){e.replaceWith(this.boundGet(e))}else if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e))}else if(s.isAssignmentExpression()){handleAssignment(this,e,s)}else{e.replaceWith(this.get(e))}let k=e.node;for(let t=e;t!==g;){const e=t.parentPath;if(e===g&&isOptionalCall()&&n.optional){k=e.node;break}k=toNonOptional(e,k);t=e}let _;const B=g.parentPath;if(h(k)&&B.isOptionalCallExpression({callee:g.node,optional:true})){const{object:t}=k;_=e.scope.maybeGenerateMemoised(t);if(_){k.object=o("=",_,t)}}let F=g;if(A||P){F=B;k=B.node}const L=D?o("=",p(I),p(w)):p(I);if(T){let e;if(t){e=l("!=",L,E())}else{e=b("&&",l("!==",L,E()),l("!==",p(I),i.buildUndefinedNode()))}F.replaceWith(b("&&",e,k))}else{let e;if(t){e=l("==",L,E())}else{e=b("||",l("===",L,E()),l("===",p(I),i.buildUndefinedNode()))}F.replaceWith(f(e,A?c(true):i.buildUndefinedNode(),k))}if(_){const e=B.node;B.replaceWith(S(v(e.callee,d("call"),false,true),[p(_),...e.arguments],false))}return}if(g(n,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:a}=n;this.memoise(e,2);const l=i.generateUidIdentifierBasedOnNode(r);i.push({id:l});const c=[o("=",p(l),this.get(e))];if(a){c.push(P(t,p(l),a));const r=x(c);s.replaceWith(this.set(e,r));return}else{const n=i.generateUidIdentifierBasedOnNode(r);i.push({id:n});c.push(o("=",p(n),P(t,p(l),a)),p(l));const u=x(c);s.replaceWith(x([this.set(e,u),p(n)]));return}}if(s.isAssignmentExpression({left:r})){handleAssignment(this,e,s);return}if(s.isCallExpression({callee:r})){s.replaceWith(this.call(e,s.node.arguments));return}if(s.isOptionalCallExpression({callee:r})){if(i.path.isPattern()){s.replaceWith(u(a([],s.node),[]));return}s.replaceWith(this.optionalCall(e,s.node.arguments));return}if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e));return}if(s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(s.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}const{operator:n,right:s}=r.node;if(n==="="){r.replaceWith(e.set(t,s))}else{const a=n.slice(0,-1);if(i.includes(a)){e.memoise(t,1);r.replaceWith(b(a,e.get(t),e.set(t,s)))}else{e.memoise(t,2);r.replaceWith(e.set(t,l(a,e.get(t),s)))}}}function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},A,r,{memoiser:new AssignmentMemoiser}))}t["default"]=memberExpressionToFunctions},2466:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);const{callExpression:i,cloneNode:a,expressionStatement:o,identifier:l,importDeclaration:c,importDefaultSpecifier:u,importNamespaceSpecifier:p,importSpecifier:f,memberExpression:d,stringLiteral:h,variableDeclaration:m,variableDeclarator:y}=s;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],h(this._importedSource)));return this}require(){this._statements.push(o(i(l("require"),[h(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=a(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=a(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const s=this._statements[this._statements.length-1];n(s.type==="ImportDeclaration");n(s.specifiers.length===0);s.specifiers=[f(r,l(t))];this._resultName=a(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){n(this._resultName);r=o(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=m("var",[y(t,r.expression)]);this._resultName=a(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=i(e,[t.expression])}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=i(e,[t.declarations[0].init])}else{n.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=d(t.expression,l(e))}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=d(t.declarations[0].init,l(e))}else{n.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=d(this._resultName,l(e))}}t["default"]=ImportBuilder},8781:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2613);var s=r(9551);var i=r(2466);var a=r(7986);const{identifier:o,importSpecifier:l,numericLiteral:c,sequenceExpression:u,isImportDeclaration:p}=s;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const n=e.find((e=>e.isProgram()));this._programPath=n;this._programScope=n.scope;this._hub=n.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){n(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let s;if(typeof e==="string"){s=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{n(!t,"Unexpected secondary arguments.");s=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)s.nameHint=t.nameHint;if(t.blockHoist!==undefined)s.blockHoist=t.blockHoist}return s}_generateImport(e,t){const r=t==="default";const n=!!t&&!r;const s=t===null;const{importedSource:o,importedType:l,importedInterop:p,importingInterop:f,ensureLiveReference:d,ensureNoContext:h,nameHint:m,importPosition:y,blockHoist:g}=e;let b=m||t;const T=(0,a.default)(this._programPath);const E=T&&f==="node";const S=T&&f==="babel";if(y==="after"&&!T){throw new Error(`"importPosition": "after" is only supported in modules`)}const v=new i.default(o,this._programScope,this._hub);if(l==="es6"){if(!E&&!S){throw new Error("Cannot import an ES6 module from CommonJS")}v.import();if(s){v.namespace(m||o)}else if(r||n){v.named(b,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(p==="babel"){if(E){b=b!=="default"?b:o;const e=`${o}$es6Default`;v.import();if(s){v.default(e).var(b||o).wildcardInterop()}else if(r){if(d){v.default(e).var(b||o).defaultInterop().read("default")}else{v.default(e).var(b).defaultInterop().prop(t)}}else if(n){v.default(e).read(t)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o).wildcardInterop()}else if((r||n)&&d){if(r){b=b!=="default"?b:o;v.var(b).read(t);v.defaultInterop()}else{v.var(o).read(t)}}else if(r){v.var(b).defaultInterop().prop(t)}else if(n){v.var(b).prop(t)}}}else if(p==="compiled"){if(E){v.import();if(s){v.default(b||o)}else if(r||n){v.default(o).read(b)}}else if(S){v.import();if(s){v.namespace(b||o)}else if(r||n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r||n){if(d){v.var(o).read(b)}else{v.prop(t).var(b)}}}}else if(p==="uncompiled"){if(r&&d){throw new Error("No live reference for commonjs default")}if(E){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.default(o).read(b)}}else if(S){v.import();if(s){v.default(b||o)}else if(r){v.default(b)}else if(n){v.named(b,t)}}else{v.require();if(s){v.var(b||o)}else if(r){v.var(b)}else if(n){if(d){v.var(o).read(b)}else{v.var(b).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${p}".`)}const{statements:x,resultName:P}=v.done();this._insertStatements(x,y,g);if((r||n)&&h&&P.type!=="Identifier"){return u([c(0),P])}return P}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&p(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(p(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let n=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){n=e;const s=e.node.source.value;const i=r.get(s);if(!i)continue;for(const r of i){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(n)n.insertAfter(Array.from(t));return!!n}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=l(t.specifiers[0].local,o("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},3521:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return n.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return s.default}});var n=r(8781);var s=r(7986);function addDefault(e,t,r){return new n.default(e).addDefault(t,r)}function addNamed(e,t,r,s){return new n.default(e).addNamed(t,r,s)}function addNamespace(e,t,r){return new n.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new n.default(e).addSideEffect(t,r)}},7986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},7766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var n=r(1485);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,s){const i=n.types.isCallExpression(e)?e.arguments[0]:e.source;if(n.types.isStringLiteral(i)||n.types.isTemplateLiteral(i)&&i.quasis.length===0){if(t){return n.template.expression.ast`
|
|
115
115
|
Promise.resolve().then(() => ${s(i)})
|
|
116
116
|
`}else return s(i)}const a=n.types.isTemplateLiteral(i)?n.types.identifier("specifier"):n.types.templateLiteral([n.types.templateElement({raw:""}),n.types.templateElement({raw:""})],[n.types.identifier("specifier")]);if(t){return n.template.expression.ast`
|
|
117
117
|
(specifier =>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
)(${i})
|
|
125
125
|
`}else{return n.template.expression.ast`
|
|
126
126
|
(specifier => ${s(a)})(${i})
|
|
127
|
-
`}}},4362:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var n,s,i,a;return e(t,{moduleId:(n=r.moduleId)!=null?n:t.moduleId,moduleIds:(s=r.moduleIds)!=null?s:t.moduleIds,getModuleId:(i=r.getModuleId)!=null?i:t.getModuleId,moduleRoot:(a=r.moduleRoot)!=null?a:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e;const{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o){return i}let c=l!=null?l+"/":"";if(n){const e=s!=null?new RegExp("^"+s+"/?"):"";c+=n.replace(e,"").replace(/\.\w*$/,"")}c=c.replace(/\\/g,"/");if(o){return o(c)||c}else{return c}}},3015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return u.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return l.hasExports}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.isModule}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return l.isSideEffectImport}});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return a.default}});t.wrapInterop=wrapInterop;var n=r(2613);var s=r(1485);var i=r(
|
|
127
|
+
`}}},4362:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var n,s,i,a;return e(t,{moduleId:(n=r.moduleId)!=null?n:t.moduleId,moduleIds:(s=r.moduleIds)!=null?s:t.moduleIds,getModuleId:(i=r.getModuleId)!=null?i:t.getModuleId,moduleRoot:(a=r.moduleRoot)!=null?a:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e;const{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o){return i}let c=l!=null?l+"/":"";if(n){const e=s!=null?new RegExp("^"+s+"/?"):"";c+=n.replace(e,"").replace(/\.\w*$/,"")}c=c.replace(/\\/g,"/");if(o){return o(c)||c}else{return c}}},3015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return u.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return l.hasExports}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.isModule}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return l.isSideEffectImport}});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return a.default}});t.wrapInterop=wrapInterop;var n=r(2613);var s=r(1485);var i=r(3521);var a=r(3432);var o=r(1777);var l=r(4667);var c=r(5177);var u=r(7766);var p=r(4362);{t.getDynamicImportSource=r(7766).getDynamicImportSource}function rewriteModuleStatementsAndPrepareHeader(e,{exportName:t,strict:r,allowTopLevelThis:u,strictMode:p,noInterop:f,importInterop:d=(f?"none":"babel"),lazy:h,getWrapperPayload:m=c.toGetWrapperPayload(h!=null?h:false),wrapReference:y=c.wrapReference,esNamespaceOnly:g,filename:b,constantReexports:T=arguments[1].loose,enumerableModuleMeta:E=arguments[1].loose,noIncompleteNsImportDetection:S}){(0,l.validateImportInteropOption)(d);n((0,i.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const v=(0,l.default)(e,t,{importInterop:d,initializeReexports:T,getWrapperPayload:m,esNamespaceOnly:g,filename:b});if(!u){(0,a.default)(e)}(0,o.default)(e,v,y);if(p!==false){const t=e.node.directives.some((e=>e.value.value==="use strict"));if(!t){e.unshiftContainer("directives",s.types.directive(s.types.directiveLiteral("use strict")))}}const x=[];if((0,l.hasExports)(v)&&!r){x.push(buildESModuleHeader(v,E))}const P=buildExportNameListDeclaration(e,v);if(P){v.exportNameListName=P.name;x.push(P.statement)}x.push(...buildExportInitializationStatements(e,v,y,T,S));return{meta:v,headers:x}}function ensureStatementsHoisted(e){e.forEach((e=>{e._blockHoist=3}))}function wrapInterop(e,t,r){if(r==="none"){return null}if(r==="node-namespace"){return s.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,s.types.booleanLiteral(true)])}else if(r==="node-default"){return null}let n;if(r==="default"){n="interopRequireDefault"}else if(r==="namespace"){n="interopRequireWildcard"}else{throw new Error(`Unknown interop: ${r}`)}return s.types.callExpression(e.hub.addHelper(n),[t])}function buildNamespaceInitStatements(e,t,r=false,n=c.wrapReference){var i;const a=[];const o=s.types.identifier(t.name);for(const e of t.importsNamespace){if(e===t.name)continue;a.push(s.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:s.types.cloneNode(o)}))}const l=(i=n(o,t.wrap))!=null?i:o;if(r){a.push(...buildReexportsFromMeta(e,t,true,n))}for(const r of t.reexportNamespace){a.push((!s.types.isIdentifier(l)?s.template.statement`
|
|
128
128
|
Object.defineProperty(EXPORTS, "NAME", {
|
|
129
129
|
enumerable: true,
|
|
130
130
|
get: function() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@babel/preset-typescript","version":"7.27.1","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-syntax-jsx":"^7.27.1","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/plugin-transform-typescript":"^7.27.1"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.27.1","@babel/helper-plugin-test-runner":"^7.27.1"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs","_lastModified":"2025-07-
|
|
1
|
+
{"name":"@babel/preset-typescript","version":"7.27.1","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-syntax-jsx":"^7.27.1","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/plugin-transform-typescript":"^7.27.1"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.27.1","@babel/helper-plugin-test-runner":"^7.27.1"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs","_lastModified":"2025-07-29T06:22:37.431Z"}
|