227 lines
1.3 MiB
JavaScript
227 lines
1.3 MiB
JavaScript
|
|
(()=>{var e={5565:e=>{function webpackEmptyAsyncContext(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}))}webpackEmptyAsyncContext.keys=()=>[];webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext;webpackEmptyAsyncContext.id=5565;e.exports=webpackEmptyAsyncContext},3914:function(e,t,r){(function(t,n){true?e.exports=n(r(8536),r(2987)):0})(this,(function(e,t){"use strict";const r=SegmentObject("",-1,-1,"",null);const n=[];function SegmentObject(e,t,r,n,s){return{source:e,line:t,column:r,name:n,content:s}}function Source(e,t,r,n){return{map:e,sources:t,source:r,content:n}}function MapSource(e,t){return Source(e,t,"",null)}function OriginalSource(e,t){return Source(null,n,e,t)}function traceMappings(n){const s=new t.GenMapping({file:n.map.file});const{sources:i,map:a}=n;const o=a.names;const l=e.decodedMappings(a);for(let e=0;e<l.length;e++){const n=l[e];for(let a=0;a<n.length;a++){const l=n[a];const c=l[0];let p=r;if(l.length!==1){const e=i[l[1]];p=originalPositionFor(e,l[2],l[3],l.length===5?o[l[4]]:"");if(p==null)continue}const{column:u,line:d,name:f,content:h,source:m}=p;t.maybeAddSegment(s,e,c,m,d,u,f);if(m&&h!=null)t.setSourceContent(s,m,h)}}return s}function originalPositionFor(t,n,s,i){if(!t.map){return SegmentObject(t.source,n,s,i,t.content)}const a=e.traceSegment(t.map,n,s);if(a==null)return null;if(a.length===1)return r;return originalPositionFor(t.sources[a[1]],a[2],a[3],a.length===5?t.map.names[a[4]]:i)}function asArray(e){if(Array.isArray(e))return e;return[e]}function buildSourceMapTree(t,r){const n=asArray(t).map((t=>new e.TraceMap(t,"")));const s=n.pop();for(let e=0;e<n.length;e++){if(n[e].sources.length>1){throw new Error(`Transformation map ${e} must have exactly one source file.\n`+"Did you specify these with the most recent transformation maps first?")}}let i=build(s,r,"",0);for(let e=n.length-1;e>=0;e--){i=MapSource(n[e],[i])}return i}function build(t,r,n,s){const{resolvedSources:i,sourcesContent:a}=t;const o=s+1;const l=i.map(((t,s)=>{const i={importer:n,depth:o,source:t||"",content:undefined};const l=r(i.source,i);const{source:c,content:p}=i;if(l)return build(new e.TraceMap(l,c),r,c,o);const u=p!==undefined?p:a?a[s]:null;return OriginalSource(c,u)}));return MapSource(t,l)}class SourceMap{constructor(e,r){const n=r.decodedMappings?t.toDecodedMap(e):t.toEncodedMap(e);this.version=n.version;this.file=n.file;this.mappings=n.mappings;this.names=n.names;this.sourceRoot=n.sourceRoot;this.sources=n.sources;if(!r.excludeContent){this.sourcesContent=n.sourcesContent}}toString(){return JSON.stringify(this)}}function remapping(e,t,r){const n=typeof r==="object"?r:{excludeContent:!!r,decodedMappings:false};const s=buildSourceMapTree(e,t);return new SourceMap(traceMappings(s),n)}return remapping}))},2987:function(e,t,r){(function(e,n){true?n(t,r(7168),r(3649),r(8536)):0})(this,(function(e,t,r,n){"use strict";const s=0;const i=1;const a=2;const o=3;const l=4;const c=-1;e.addSegment=void 0;e.addMapping=void 0;e.maybeAddSegment=void 0;e.maybeAddMapping=void 0;e.setSourceContent=void 0;e.toDecodedMap=void 0;e.toEncodedMap=void 0;e.fromMap=void 0;e.allMappings=void 0;let p;class GenMapping{constructor({file:e,sourceRoot:r}={}){this._names=new t.SetArray;this._sources=new t.SetArray;this._sourcesContent=[];this._mappings=[];this.file=e;this.sourceRoot=r}}(()=>{e.addSegment=(e,t,r,n,s,i,a,o)=>p(false,e,t,r,n,s,i,a,o);e.maybeAddSegment=(e,t,r,n,s,i,a,o)=>p(true,e,t,r,n,s,i,a,o);e.addMapping=(e,t)=>addMappingInternal(false,e,t);e.maybeAddMapping=(e,t)=>addMappingInternal(true,e,t);e.setSourceContent=(e,r,n)=>{const{_sources:s,_sourcesContent:i}=e;i[t.put(s,r)]=n};e.toDecodedMap=e=>{const{file:t,sourceRoot:r,_mappings:n,_sources:s,_sourcesContent:i,_names:a}=e;removeEmptyFinalLines(n);return{version:3,file:t||undefined,names:a.array,sourceRoot:r||undefined,sources:s.array,sourcesContent:i,mappings:n}};e.toEncodedMap=t=>{const n=e.toDecodedMap(t);return Object.assign(Object.assign({},n),{mappings:r.encode(n.mappings)})};e.allMappings=e=>{const t=[];c
|
||
|
|
(function (root, factory) {
|
||
|
|
if (typeof define === "function" && define.amd) {
|
||
|
|
define(AMD_ARGUMENTS, factory);
|
||
|
|
} else if (typeof exports === "object") {
|
||
|
|
factory(COMMON_ARGUMENTS);
|
||
|
|
} else {
|
||
|
|
factory(BROWSER_ARGUMENTS);
|
||
|
|
}
|
||
|
|
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
|
||
|
|
FACTORY_BODY
|
||
|
|
});
|
||
|
|
`(e);function buildGlobal(e){const t=h("babelHelpers");const r=[];const n=f(null,[h("global")],a(r));const l=g([d(o(n,[c(i("===",T("typeof",h("global")),b("undefined")),h("self"),h("global"))]))]);r.push(S("var",[x(t,s("=",m(h("global"),t),y([])))]));buildHelpers(r,t,e);return l}function buildModule(e){const t=[];const r=buildHelpers(t,null,e);t.unshift(p(null,Object.keys(r).map((e=>u(l(r[e]),h(e))))));return g(t,[],"module")}function buildUmd(e){const t=h("babelHelpers");const r=[];r.push(S("var",[x(t,h("global"))]));buildHelpers(r,t,e);return g([buildUmdWrapper({FACTORY_PARAMETERS:h("global"),BROWSER_ARGUMENTS:s("=",m(h("root"),t),y([])),COMMON_ARGUMENTS:h("exports"),AMD_ARGUMENTS:n([b("exports")]),FACTORY_BODY:r,UMD_ROOT:h("this")})])}function buildVar(e){const t=h("babelHelpers");const r=[];r.push(S("var",[x(t,y([]))]));const n=g(r);buildHelpers(r,t,e);r.push(d(t));return n}function buildHelpers(e,t,r){const getHelperReference=e=>t?m(t,h(e)):h(`_${e}`);const n={};helpers().list.forEach((function(i){if(r&&!r.includes(i))return;const a=n[i]=getHelperReference(i);const{nodes:o}=helpers().get(i,getHelperReference,t?null:`_${i}`,[],t?(e,t,r)=>{r((e=>s("=",a,e)));e.body.push(d(s("=",a,h(t))))}:null);e.push(...o)}));return n}function _default(e,t="global"){let r;const n={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[t];if(n){r=n(e)}else{throw new Error(`Unsupported output type ${t}`)}return(0,_generator().default)(r).code}0&&0},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFromAst=void 0;t.transformFromAstAsync=transformFromAstAsync;t.transformFromAstSync=transformFromAstSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(8502);const a=_gensync()((function*(e,t,r){const i=yield*(0,n.default)(r);if(i===null)return null;if(!e)throw new Error("No AST given");return yield*(0,s.run)(i,t,e)}));const o=t.transformFromAst=function transformFromAst(e,t,r,n){let s;let o;if(typeof r==="function"){o=r;s=undefined}else{s=r;o=n}if(o===undefined){{return(0,i.beginHiddenCallStack)(a.sync)(e,t,s)}}(0,i.beginHiddenCallStack)(a.errback)(e,t,s,o)};function transformFromAstSync(...e){return(0,i.beginHiddenCallStack)(a.sync)(...e)}function transformFromAstAsync(...e){return(0,i.beginHiddenCallStack)(a.async)(...e)}0&&0},7111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFile=transformFile;t.transformFileAsync=transformFileAsync;t.transformFileSync=transformFileSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(409);({});const a=_gensync()((function*(e,t){const r=Object.assign({},t,{filename:e});const a=yield*(0,n.default)(r);if(a===null)return null;const o=yield*i.readFile(e,"utf8");return yield*(0,s.run)(a,o)}));function transformFile(...e){a.errback(...e)}function transformFileSync(...e){return a.sync(...e)}function transformFileAsync(...e){return a.async(...e)}0&&0},2175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transform=void 0;t.transformAsync=transformAsync;t.transformSync=transformSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(8502);const a=_gensync()((function*transform(e,t){const r=yield*(0,n.default)(t);if(r===null)return null;return yield*(0,s.run)(r,e)}));const o=t.transform=function transform(e,t,r){let n;let s;if(typeof t==="function"){s=t;n=undefined}else{n=t;s=r}if(s===undefined){{return(0,i.beginHiddenCallStack)(a.sync)(e,n)}}(0,i.beginHiddenCallStack)(a.errback)(e,n,s)};function transformSync(...e){return(0,i.beginHiddenCallStack)(a.sync)(...e)}function transformAsync(...e){return(0,i.beginHiddenCallStack)(a.async)(...e)}0&&0},9273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadBlockHoistPlugin;function _traverse(){const e=r(8026);_traverse=function(){return e};return e}var n=r(2406);let s;const i={name:"internal.blockHoist",visitor:{Block:{exit({node:e}
|
||
|
|
${addDecorateHelper(s)}(
|
||
|
|
${d||n.types.nullLiteral()},
|
||
|
|
function (${o}, ${p?n.types.cloneNode(u):null}) {
|
||
|
|
${i}
|
||
|
|
return { F: ${n.types.cloneNode(i.id)}, d: ${f} };
|
||
|
|
},
|
||
|
|
${p}
|
||
|
|
)
|
||
|
|
`;if(!c){h.arguments[1].body.directives.push(n.types.directive(n.types.directiveLiteral("use strict")))}let m=h;let y="arguments.1.body.body.0";if(l){m=n.template.statement.ast`let ${e} = ${h}`;y="declarations.0.init."+y}return{instanceNodes:[n.template.statement.ast`
|
||
|
|
${n.types.cloneNode(o)}(this)
|
||
|
|
`],wrapClass(e){e.replaceWith(m);return e.get(y)}}}},7009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.hasDecorators=hasDecorators;t.hasOwnDecorators=hasOwnDecorators;var n=r(2358);var s=r(6721);var i=r(9102);var a=r(4697);var o=r(5040);function hasOwnDecorators(e){var t;return!!((t=e.decorators)!=null&&t.length)}function hasDecorators(e){return hasOwnDecorators(e)||e.body.body.some(hasOwnDecorators)}function incrementId(e,t=e.length-1){if(t===-1){e.unshift(65);return}const r=e[t];if(r===90){e[t]=97}else if(r===122){e[t]=65;incrementId(e,t-1)}else{e[t]=r+1}}function createPrivateUidGeneratorForClass(e){const t=[];const r=new Set;e.traverse({PrivateName(e){r.add(e.node.id.name)}});return()=>{let e;do{incrementId(t);e=String.fromCharCode(...t)}while(r.has(e));return n.types.privateName(n.types.identifier(e))}}function createLazyPrivateUidGeneratorForClass(e){let t;return()=>{if(!t){t=createPrivateUidGeneratorForClass(e)}return t()}}function replaceClassWithVar(e,t){const r=e.node.id;const s=e.scope;if(e.type==="ClassDeclaration"){const t=r.name;const i=s.generateUidIdentifierBasedOnNode(r);const a=n.types.identifier(t);s.rename(t,i.name);e.get("id").replaceWith(a);return{id:n.types.cloneNode(i),path:e}}else{let i;if(r){t=r.name;i=generateLetUidIdentifier(s.parent,t);s.rename(t,i.name)}else{i=generateLetUidIdentifier(s.parent,typeof t==="string"?t:"decorated_class")}const a=n.types.classExpression(typeof t==="string"?n.types.identifier(t):null,e.node.superClass,e.node.body);const[o]=e.replaceWith(n.types.sequenceExpression([a,i]));return{id:n.types.cloneNode(i),path:o.get("expressions.0")}}}function generateClassProperty(e,t,r){if(e.type==="PrivateName"){return n.types.classPrivateProperty(e,t,undefined,r)}else{return n.types.classProperty(e,t,undefined,undefined,r)}}function assignIdForAnonymousClass(e,t){if(!e.node.id){e.node.id=typeof t==="string"?n.types.identifier(t):e.scope.generateUidIdentifier("Class")}}function addProxyAccessorsFor(e,t,r,s,i,a,o,l){const c=(l==="2023-11"||l==="2023-05")&&o?e:n.types.thisExpression();const p=n.types.blockStatement([n.types.returnStatement(n.types.memberExpression(n.types.cloneNode(c),n.types.cloneNode(i)))]);const u=n.types.blockStatement([n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(n.types.cloneNode(c),n.types.cloneNode(i)),n.types.identifier("v")))]);let d,f;if(r.type==="PrivateName"){d=n.types.classPrivateMethod("get",r,[],p,o);f=n.types.classPrivateMethod("set",s,[n.types.identifier("v")],u,o)}else{d=n.types.classMethod("get",r,[],p,a,o);f=n.types.classMethod("set",s,[n.types.identifier("v")],u,a,o)}t.insertAfter(f);t.insertAfter(d)}function extractProxyAccessorsFor(e,t){if(t!=="2023-11"&&t!=="2023-05"&&t!=="2023-01"){return[n.template.expression.ast`
|
||
|
|
function () {
|
||
|
|
return this.${n.types.cloneNode(e)};
|
||
|
|
}
|
||
|
|
`,n.template.expression.ast`
|
||
|
|
function (value) {
|
||
|
|
this.${n.types.cloneNode(e)} = value;
|
||
|
|
}
|
||
|
|
`]}return[n.template.expression.ast`
|
||
|
|
o => o.${n.types.cloneNode(e)}
|
||
|
|
`,n.template.expression.ast`
|
||
|
|
(o, v) => o.${n.types.cloneNode(e)} = v
|
||
|
|
`]}function getComputedKeyLastElement(e){e=(0,i.skipTransparentExprWrappers)(e);if(e.isSequenceExpression()){const t=e.get("expressions");return getComputedKeyLastElement(t[t.length-1])}return e}function getComputedKeyMemoiser(e){const t=getComputedKeyLastElement(e);if(t.isConstantExpression()){return n.types.cloneNode(e.node)}else if(t.isIdentifier()&&e.scope.hasUid(t.node.name)){return n.types.cloneNode(e.node)}else if(t.isAssignmentExpression()&&t.get("left").isIdentifier()){return n.types.cloneNode(t.node.left)}else{throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}}function prependExpressionsToComputedKey(e,t){const r=t.get("key");if(r.isSequenceExpression()){e.push(...r.node.expressions)}else{e.push(r.node)}r.replaceWith(maybeSequenceExpression(e))}function appendExpressionsToComputedKey(e,t){const r=t.get("key");const s=getComputedKeyLastElement(r);if(s.isConstantExpression()){prependExpressionsToComputedKey(e,t)}else{const i=r.scope.parent;const a=(0,o.memoiseComputedKey)(s.node,i,i.generateUid("computedKey"));if(!a){prependExpressionsToComputedKey(e,t)}else{const t=[...e,n.types.cloneNode(a.left)];const r=s.parentPath;if(r.isSequenceExpression()){r.pushContainer("expressions",t)}else{s.replaceWith(maybeSequenceExpression([n.types.cloneNode(a),...t]))}}}}function prependExpressionsToFieldInitializer(e,t){const r=t.get("value");if(r.node){e.push(r.node)}else if(e.length>0){e[e.length-1]=n.types.unaryExpression("void",e[e.length-1])}r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToStaticBlock(e,t){t.unshiftContainer("body",n.types.expressionStatement(maybeSequenceExpression(e)))}function prependExpressionsToConstructor(e,t){t.node.body.body.unshift(n.types.expressionStatement(maybeSequenceExpression(e)))}function isProtoInitCallExpression(e,t){return n.types.isCallExpression(e)&&n.types.isIdentifier(e.callee,{name:t.name})}function optimizeSuperCallAndExpressions(e,t){if(t){if(e.length>=2&&isProtoInitCallExpression(e[1],t)){const r=n.types.callExpression(n.types.cloneNode(t),[e[0]]);e.splice(0,2,r)}if(e.length>=2&&n.types.isThisExpression(e[e.length-1])&&isProtoInitCallExpression(e[e.length-2],t)){e.splice(e.length-1,1)}}return maybeSequenceExpression(e)}function insertExpressionsAfterSuperCallAndOptimize(e,t,r){t.traverse({CallExpression:{exit(t){if(!t.get("callee").isSuper())return;const s=[t.node,...e.map((e=>n.types.cloneNode(e)))];if(t.isCompletionRecord()){s.push(n.types.thisExpression())}t.replaceWith(optimizeSuperCallAndExpressions(s,r));t.skip()}},ClassMethod(e){if(e.node.kind==="constructor"){e.skip()}}})}function createConstructorFromExpressions(e,t){const r=[n.types.expressionStatement(maybeSequenceExpression(e))];if(t){r.unshift(n.types.expressionStatement(n.types.callExpression(n.types.super(),[n.types.spreadElement(n.types.identifier("args"))])))}return n.types.classMethod("constructor",n.types.identifier("constructor"),t?[n.types.restElement(n.types.identifier("args"))]:[],n.types.blockStatement(r))}function createStaticBlockFromExpressions(e){return n.types.staticBlock([n.types.expressionStatement(maybeSequenceExpression(e))])}const l=0;const c=1;const p=2;const u=3;const d=4;const f=5;const h=8;const m=16;function getElementKind(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return l;case"ClassAccessorProperty":return c;case"ClassMethod":case"ClassPrivateMethod":if(e.node.kind==="get"){return u}else if(e.node.kind==="set"){return d}else{return p}}}function toSortedDecoratorInfo(e){return[...e.filter((e=>e.isStatic&&e.kind>=c&&e.kind<=d)),...e.filter((e=>!e.isStatic&&e.kind>=c&&e.kind<=d)),...e.filter((e=>e.isStatic&&e.kind===l)),...e.filter((e=>!e.isStatic&&e.kind===l))]}function generateDecorationList(e,t,r){const s=e.length;const i=t.some(Boolean);const a=[];for(let o=0;o<s;o++){if((r==="2023-11"||r==="2023-05")&&i){a.push(t[o]||n.types.unaryExpression("void",n.types.numericLiteral(0)))}a.push(e[o].expression)}return{haveThis:i,decs:a}}function generateDecorationExprs(e,t){return n.types.arrayExpressio
|
||
|
|
class extends ${t.addHelper("identity")} {}
|
||
|
|
`;r.body.body=[n.types.classProperty(n.types.toExpression(Y),undefined,undefined,undefined,true,true),...a];const s=[];const i=n.types.newExpression(r,[]);if(W.length>0){s.push(...W)}if(z){J=true;s.push(z)}if(s.length>0){s.unshift(n.types.callExpression(n.types.super(),[n.types.cloneNode(_)]));r.body.body.push(createConstructorFromExpressions(s,false))}else{i.arguments.push(n.types.cloneNode(_))}const[o]=e.replaceWith(i);X=o.get("callee").get("body").get("body.0.key")}}if(!J&&z){e.node.body.body.push(n.types.staticBlock([n.types.expressionStatement(z)]))}let{superClass:Z}=Y;if(Z&&(f==="2023-11"||f==="2023-05")){const t=e.scope.maybeGenerateMemoised(Z);if(t){Y.superClass=n.types.assignmentExpression("=",t,Z);Z=t}}const ee=n.types.staticBlock([]);Y.body.body.unshift(ee);const te=ee.body;if(R.length>0){const e=X.get("body.body");let t;for(const r of e){if((r.isClassProperty()||r.isClassMethod())&&r.node.kind!=="constructor"){t=r;break}}if(t!=null){convertToComputedKey(t);prependExpressionsToComputedKey(R,t)}else{Y.body.body.unshift(n.types.classProperty(n.types.sequenceExpression([...R,n.types.stringLiteral("_")]),undefined,undefined,undefined,true,true));te.push(n.types.expressionStatement(n.types.unaryExpression("delete",n.types.memberExpression(n.types.thisExpression(),n.types.identifier("_")))))}R=[]}te.push(n.types.expressionStatement(createLocalsAssignment(H,G,q,B!=null?B:n.types.arrayExpression(F),n.types.numericLiteral(j),K?U:null,w,n.types.cloneNode(Z),t,f)));if(v){te.push(n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(v),[n.types.thisExpression()])))}if(Q.length>0){te.push(...Q.map((e=>n.types.expressionStatement(e))))}e.insertBefore(x.map((e=>n.types.expressionStatement(e))));if(L){const t=E.getBinding(_.name);if(!t.constantViolations.length){e.insertBefore(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(_))]))}else{const t=E.generateUidIdentifier("t"+_.name);const r=_;e.replaceWithMultiple([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(r)),n.types.variableDeclarator(t)]),n.types.blockStatement([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(_))]),e.node,n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(t),n.types.cloneNode(_)))]),n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(r),n.types.cloneNode(t)))])}}if(N.size>0){checkPrivateMethodUpdateError(e,N)}e.scope.crawl();return e}function createLocalsAssignment(e,t,r,s,i,a,o,l,c,p){let u,d;const f=[o?createSetFunctionNameCall(c,o):n.types.thisExpression(),s,r];{if(p!=="2023-11"){f.splice(1,2,r,s)}if(p==="2021-12"||p==="2022-03"&&!c.availableHelper("applyDecs2203R")){u=n.types.arrayPattern([...e,...t]);d=n.types.callExpression(c.addHelper(p==="2021-12"?"applyDecs":"applyDecs2203"),f);return n.types.assignmentExpression("=",u,d)}else if(p==="2022-03"){d=n.types.callExpression(c.addHelper("applyDecs2203R"),f)}else if(p==="2023-01"){if(a){f.push(createPrivateBrandCheckClosure(a))}d=n.types.callExpression(c.addHelper("applyDecs2301"),f)}else if(p==="2023-05"){if(a||l||i.value!==0){f.push(i)}if(a){f.push(createPrivateBrandCheckClosure(a))}else if(l){f.push(n.types.unaryExpression("void",n.types.numericLiteral(0)))}if(l)f.push(l);d=n.types.callExpression(c.addHelper("applyDecs2305"),f)}}if(p==="2023-11"){if(a||l||i.value!==0){f.push(i)}if(a){f.push(createPrivateBrandCheckClosure(a))}else if(l){f.push(n.types.unaryExpression("void",n.types.numericLiteral(0)))}if(l)f.push(l);d=n.types.callExpression(c.addHelper("applyDecs2311"),f)}if(e.length>0){if(t.length>0){u=n.types.objectPattern([n.types.objectProperty(n.types.identifier("e"),n.types.arrayPattern(e)),n.types.objectProperty(n.types.identifier("c"),n.types.arrayPattern(t))])}else{u=n.types.arrayPattern(e);d=n.types.memberExpression(d,n.types.identifier("e"),false,false)}}else{u=n.types.arrayPattern(t);d=n.types.memberExpression(d,n.types.identifier("c"),false,false)}return n.types.assignmentExpression("=",u,d)}function isProtoKey(e){ret
|
||
|
|
Object.prototype.hasOwnProperty.call(${buildCheckInRHS(i,t)}, ${n.types.cloneNode(r)})
|
||
|
|
`);return}const{id:p,static:u}=o.get(c);if(u){e.replaceWith(n.template.expression.ast`${buildCheckInRHS(i,t)} === ${n.types.cloneNode(this.classRef)}`);return}e.replaceWith(n.template.expression.ast`${n.types.cloneNode(p)}.has(${buildCheckInRHS(i,t)})`)}});function readOnlyError(e,t){return n.types.callExpression(e.addHelper("readOnlyError"),[n.types.stringLiteral(`#${t}`)])}function writeOnlyError(e,t){if(!e.availableHelper("writeOnlyError")){console.warn(`@babel/helpers is outdated, update it to silence this warning.`);return n.types.buildUndefinedNode()}return n.types.callExpression(e.addHelper("writeOnlyError"),[n.types.stringLiteral(`#${t}`)])}function buildStaticPrivateFieldAccess(e,t){if(t)return e;return n.types.memberExpression(e,n.types.identifier("_"))}function autoInherits(e){return function(t){return n.types.inherits(e.apply(this,arguments),t.node)}}const f={memoise(e,t){const{scope:r}=e;const{object:n}=e.node;const s=r.maybeGenerateMemoised(n);if(!s){return}this.memoiser.set(n,s,t)},receiver(e){const{object:t}=e.node;if(this.memoiser.has(t)){return n.types.cloneNode(this.memoiser.get(t))}return n.types.cloneNode(t)},get:autoInherits((function(e){const{classRef:t,privateNamesMap:r,file:s,innerBinding:i,noUninitializedPrivateFieldAccess:a}=this;const o=e.node.property;const{name:l}=o.id;const{id:c,static:p,method:u,methodId:d,getId:f,setId:h}=r.get(l);const m=f||h;const cloneId=e=>n.types.inherits(n.types.cloneNode(e),o);if(p){unshadow(t.name,e.scope,i);if(!newHelpers(s)){const r=u&&!m?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return n.types.callExpression(s.addHelper(r),[this.receiver(e),n.types.cloneNode(t),cloneId(c)])}const r=this.receiver(e);const o=n.types.isIdentifier(r)&&r.name===t.name;if(!u){if(o){return buildStaticPrivateFieldAccess(cloneId(c),a)}return buildStaticPrivateFieldAccess(n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(c)]),a)}if(f){if(o){return n.types.callExpression(cloneId(f),[r])}return n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(t),r,cloneId(f)])}if(h){const e=n.types.buildUndefinedNode();if(o)return e;return n.types.sequenceExpression([n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r]),e])}if(o)return cloneId(c);return n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(c)])}if(u){if(m){if(!f){return n.types.sequenceExpression([this.receiver(e),writeOnlyError(s,l)])}if(!newHelpers(s)){return n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(c)])}return n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(c),this.receiver(e),cloneId(f)])}if(!newHelpers(s)){return n.types.callExpression(s.addHelper("classPrivateMethodGet"),[this.receiver(e),n.types.cloneNode(c),cloneId(d)])}return n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(c),this.receiver(e),cloneId(d)])}if(newHelpers(s)){return n.types.callExpression(s.addHelper("classPrivateFieldGet2"),[cloneId(c),this.receiver(e)])}return n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(c)])})),boundGet(e){this.memoise(e,1);return n.types.callExpression(n.types.memberExpression(this.get(e),n.types.identifier("bind")),[this.receiver(e)])},set:autoInherits((function(e,t){const{classRef:r,privateNamesMap:s,file:i,noUninitializedPrivateFieldAccess:a}=this;const o=e.node.property;const{name:l}=o.id;const{id:c,static:p,method:u,setId:d,getId:f}=s.get(l);const h=f||d;const cloneId=e=>n.types.inherits(n.types.cloneNode(e),o);if(p){if(!newHelpers(i)){const s=u&&!h?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return n.types.callExpression(i.addHelper(s),[this.receiver(e),n.types.cloneNode(r),cloneId(c),t])}const s=this.receiver(e);const o=n.types.isIdentifier(s)&&s.name===r.name;if(u&&!d){const e=readOnlyError(i,l);if(o)return n.types.sequenceExpression([t,e]);return n.types.sequenceExpression([t,n.types.callExpression(i.addHelper("assertClassBrand"),[n.t
|
||
|
|
Object.defineProperty(${e}, ${n.types.cloneNode(s)}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
writable: true,
|
||
|
|
value: ${i}
|
||
|
|
});
|
||
|
|
`,t)}function buildPrivateInstanceFieldInitSpec(e,t,r,s){const{id:i}=r.get(t.node.key.id.name);const a=t.node.value||t.scope.buildUndefinedNode();{if(!s.availableHelper("classPrivateFieldInitSpec")){return inheritPropComments(n.template.statement.ast`${n.types.cloneNode(i)}.set(${e}, {
|
||
|
|
// configurable is always false for private elements
|
||
|
|
// enumerable is always false for private elements
|
||
|
|
writable: true,
|
||
|
|
value: ${a},
|
||
|
|
})`,t)}}const o=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.types.expressionStatement(n.types.callExpression(o,[n.types.thisExpression(),inheritLoc(n.types.cloneNode(i),t.node.key),newHelpers(s)?a:n.template.expression.ast`{ writable: true, value: ${a} }`])),t),t.node)}function buildPrivateStaticFieldInitSpec(e,t,r){const s=t.get(e.node.key.id.name);const i=r?e.node.value:n.template.expression.ast`{
|
||
|
|
_: ${e.node.value||n.types.buildUndefinedNode()}
|
||
|
|
}`;return inheritPropComments(n.types.variableDeclaration("var",[n.types.variableDeclarator(n.types.cloneNode(s.id),i)]),e)}{var buildPrivateStaticFieldInitSpecOld=function(e,t){const r=t.get(e.node.key.id.name);const{id:s,getId:i,setId:a,initAdded:o}=r;const l=i||a;if(!e.isProperty()&&(o||!l))return;if(l){t.set(e.node.key.id.name,Object.assign({},r,{initAdded:true}));return inheritPropComments(n.template.statement.ast`
|
||
|
|
var ${n.types.cloneNode(s)} = {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${i?i.name:e.scope.buildUndefinedNode()},
|
||
|
|
set: ${a?a.name:e.scope.buildUndefinedNode()}
|
||
|
|
}
|
||
|
|
`,e)}const c=e.node.value||e.scope.buildUndefinedNode();return inheritPropComments(n.template.statement.ast`
|
||
|
|
var ${n.types.cloneNode(s)} = {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
writable: true,
|
||
|
|
value: ${c}
|
||
|
|
};
|
||
|
|
`,e)}}function buildPrivateMethodInitLoose(e,t,r){const s=r.get(t.node.key.id.name);const{methodId:i,id:a,getId:o,setId:l,initAdded:c}=s;if(c)return;if(i){return inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${a}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
value: ${i.name}
|
||
|
|
});
|
||
|
|
`,t)}const p=o||l;if(p){r.set(t.node.key.id.name,Object.assign({},s,{initAdded:true}));return inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${a}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${o?o.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
|
|
});
|
||
|
|
`,t)}}function buildPrivateInstanceMethodInitSpec(e,t,r,n){const s=r.get(t.node.key.id.name);if(s.initAdded)return;if(!newHelpers(n)){const i=s.getId||s.setId;if(i){return buildPrivateAccessorInitialization(e,t,r,n)}}return buildPrivateInstanceMethodInitialization(e,t,r,n)}function buildPrivateAccessorInitialization(e,t,r,s){const i=r.get(t.node.key.id.name);const{id:a,getId:o,setId:l}=i;r.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));{if(!s.availableHelper("classPrivateFieldInitSpec")){return inheritPropComments(n.template.statement.ast`
|
||
|
|
${a}.set(${e}, {
|
||
|
|
get: ${o?o.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
|
|
});
|
||
|
|
`,t)}}const c=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.template.statement.ast`${c}(
|
||
|
|
${n.types.thisExpression()},
|
||
|
|
${n.types.cloneNode(a)},
|
||
|
|
{
|
||
|
|
get: ${o?o.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
|
|
},
|
||
|
|
)`,t),t.node)}function buildPrivateInstanceMethodInitialization(e,t,r,s){const i=r.get(t.node.key.id.name);const{id:a}=i;{if(!s.availableHelper("classPrivateMethodInitSpec")){return inheritPropComments(n.template.statement.ast`${a}.add(${e})`,t)}}const o=s.addHelper("classPrivateMethodInitSpec");return inheritPropComments(n.template.statement.ast`${o}(
|
||
|
|
${n.types.thisExpression()},
|
||
|
|
${n.types.cloneNode(a)}
|
||
|
|
)`,t)}function buildPublicFieldInitLoose(e,t){const{key:r,computed:s}=t.node;const i=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(e,r,s||n.types.isLiteral(r)),i)),t)}function buildPublicFieldInitSpec(e,t,r){const{key:s,computed:i}=t.node;const a=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.callExpression(r.addHelper("defineProperty"),[e,i||n.types.isLiteral(s)?s:n.types.stringLiteral(s.name),a])),t)}function buildPrivateStaticMethodInitLoose(e,t,r,s){const i=s.get(t.node.key.id.name);const{id:a,methodId:o,getId:l,setId:c,initAdded:p}=i;if(p)return;const u=l||c;if(u){s.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));return inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${a}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${l?l.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${c?c.name:t.scope.buildUndefinedNode()}
|
||
|
|
})
|
||
|
|
`,t)}return inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${a}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
value: ${o.name}
|
||
|
|
});
|
||
|
|
`,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:p,setterDeclared:u,static:d}=i;const{params:f,body:h,generator:y,async:g}=t.node;const b=l&&f.length===0;const T=c&&f.length>0;if(b&&p||T&&u){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))}}f.unshift(n.types.cloneNode(r))}let S=o;if(b){r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:true,initAdded:true}));S=l}else if(T){r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:true,initAdded:true}));S=c}else if(d&&!s){S=a}return inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(S),f,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,u,d){let f=0;let h;const m=[];const y=[];let g=false;const b=[];let T=null;const S=n.types.isIdentifier(t)?()=>t:()=>{h!=null?h:h=r[0].scope.generateUidIdentifierBasedOnNode(t);return h};const x=e!=null?e:r[0].scope.generateUidIdentifier((d==null?void 0:d.name)||"Class");e!=null?e:e=n.types.cloneNode(d);for(const t of r){if(t.isClassProperty()){p.assertFieldTransformed(t)}const r=!(n.types.isStaticBlock!=null&&n.types.isStaticBlock(t.node))&&t.node.static;const h=!r;const T=t.isPrivate();const E=!T;const P=t.isProperty();const v=!P;const A=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)f|=1;if(r||v&&T||A){new i.default({methodPath:t,constantSuper:u,file:a,refToPreserve:d,getSuperRef:S,getObjectRef(){f|=2;if(r||A){return x}else{return n.types.memberExpression(x,n.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,x,d);if(e){f|=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&&P&&l:m.push(buildPrivateFieldInitLoose(n.types.cloneNode(e),t,s));break;case r&&T&&P&&!l:if(!newHelpers(a)){m.push(buildPrivateStaticFieldInitSpecOld(t,s))}else{m.push(buildPrivateStaticFieldInitSpec(t,s,c))}break;case r&&E&&P&&o:if(!isNameOrLength(t.node)){m.push(buildPublicFieldInitLoose(n.types.cloneNode(e),t));break}case r&&E&&P&&!o:m.push(buildPublicFieldInitSpec(n.types.cloneNode(e),t,a));break;case h&&T&&P&&l:y.push(buildPrivateFieldInitLoose(n.types.thisExpression(),t,s));break;case h&&T&&P&&!l:y.push(buildPrivateIns
|
||
|
|
Promise.resolve().then(() => ${s(i)})
|
||
|
|
`}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`
|
||
|
|
(specifier =>
|
||
|
|
new Promise(r => r(${a}))
|
||
|
|
.then(s => ${s(n.types.identifier("s"))})
|
||
|
|
)(${i})
|
||
|
|
`}else if(r){return n.template.expression.ast`
|
||
|
|
(specifier =>
|
||
|
|
new Promise(r => r(${s(a)}))
|
||
|
|
)(${i})
|
||
|
|
`}else{return n.template.expression.ast`
|
||
|
|
(specifier => ${s(a)})(${i})
|
||
|
|
`}}},7857:(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}}},9460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return p.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return u.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(9491);var s=r(2358);var i=r(6912);var a=r(5002);var o=r(2984);var l=r(8800);var c=r(1219);var p=r(3747);var u=r(7857);{t.getDynamicImportSource=r(3747).getDynamicImportSource}function rewriteModuleStatementsAndPrepareHeader(e,{exportName:t,strict:r,allowTopLevelThis:p,strictMode:u,noInterop:d,importInterop:f=(d?"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:S=arguments[1].loose,noIncompleteNsImportDetection:x}){(0,l.validateImportInteropOption)(f);n((0,i.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const E=(0,l.default)(e,t,{importInterop:f,initializeReexports:T,getWrapperPayload:m,esNamespaceOnly:g,filename:b});if(!p){(0,a.default)(e)}(0,o.default)(e,E,y);if(u!==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 P=[];if((0,l.hasExports)(E)&&!r){P.push(buildESModuleHeader(E,S))}const v=buildExportNameListDeclaration(e,E);if(v){E.exportNameListName=v.name;P.push(v.statement)}P.push(...buildExportInitializationStatements(e,E,y,T,x));return{meta:E,headers:P}}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`
|
||
|
|
Object.defineProperty(EXPORTS, "NAME", {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return NAMESPACE;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
`:s.template.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:e.exportName,NAME:r,NAMESPACE:s.types.cloneNode(l)}))}if(t.reexportAll){const n=buildNamespaceReexport(e,s.types.cloneNode(l),r);n.loc=t.reexportAll.loc;a.push(n)}return a}const d={constant:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
|
|
${e}.${t} = ${r};
|
||
|
|
`,constantComputed:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
|
|
${e}["${t}"] = ${r};
|
||
|
|
`,spec:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, "${t}", {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return ${r};
|
||
|
|
},
|
||
|
|
});
|
||
|
|
`};function buildReexportsFromMeta(e,t,r,n){var i;let a=s.types.identifier(t.name);a=(i=n(a,t.wrap))!=null?i:a;const{stringSpecifiers:o}=e;return Array.from(t.reexports,(([n,i])=>{let l=s.types.cloneNode(a);if(i==="default"&&t.interop==="node-default"){}else if(o.has(i)){l=s.types.memberExpression(l,s.types.stringLiteral(i),true)}else{l=s.types.memberExpression(l,s.types.identifier(i))}const c={exports:e.exportName,exportName:n,namespaceImport:l};if(r||s.types.isIdentifier(l)){if(o.has(n)){return d.constantComputed(c)}else{return d.constant(c)}}else{return d.spec(c)}}))}function buildESModuleHeader(e,t=false){return(t?s.template.statement`
|
||
|
|
EXPORTS.__esModule = true;
|
||
|
|
`:s.template.statement`
|
||
|
|
Object.defineProperty(EXPORTS, "__esModule", {
|
||
|
|
value: true,
|
||
|
|
});
|
||
|
|
`)({EXPORTS:e.exportName})}function buildNamespaceReexport(e,t,r){return(r?s.template.statement`
|
||
|
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
|
if (key === "default" || key === "__esModule") return;
|
||
|
|
VERIFY_NAME_LIST;
|
||
|
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
|
||
|
|
EXPORTS[key] = NAMESPACE[key];
|
||
|
|
});
|
||
|
|
`:s.template.statement`
|
||
|
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
|
if (key === "default" || key === "__esModule") return;
|
||
|
|
VERIFY_NAME_LIST;
|
||
|
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
|
||
|
|
Object.defineProperty(EXPORTS, key, {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return NAMESPACE[key];
|
||
|
|
},
|
||
|
|
});
|
||
|
|
});
|
||
|
|
`)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?(0,s.template)`
|
||
|
|
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
|
||
|
|
`({EXPORTS_LIST:e.exportNameListName}):null})}function buildExportNameListDeclaration(e,t){const r=Object.create(null);for(const e of t.local.values()){for(const t of e.names){r[t]=true}}let n=false;for(const e of t.source.values()){for(const t of e.reexports.keys()){r[t]=true}for(const t of e.reexportNamespace){r[t]=true}n=n||!!e.reexportAll}if(!n||Object.keys(r).length===0)return null;const i=e.scope.generateUidIdentifier("exportNames");delete r.default;return{name:i.name,statement:s.types.variableDeclaration("var",[s.types.variableDeclarator(i,s.types.valueToNode(r))])}}function buildExportInitializationStatements(e,t,r,n=false,i=false){const a=[];for(const[e,r]of t.local){if(r.kind==="import"){}else if(r.kind==="hoisted"){a.push([r.names[0],buildInitStatement(t,r.names,s.types.identifier(e))])}else if(!i){for(const e of r.names){a.push([e,null])}}}for(const e of t.source.values()){if(!n){const n=buildReexportsFromMeta(t,e,false,r);const s=[...e.reexports.keys()];for(let e=0;e<n.length;e++){a.push([s[e],n[e]])}}if(!i){for(const t of e.reexportNamespace){a.push([t,null])}}}a.sort((([e],[t])=>{if(e<t)return-1;if(t<e)return 1;return 0}));const o=[];if(i){for(const[,e]of a){o.push(e)}}else{const r=100;for(let n=0;n<a.length;n+=r){let s=[];for(let i=0;i<r&&n+i<a.length;i++){const[r,l]=a[n+i];if(l!==null){if(s.length>0){o.push(buildInitStatement(t,s,e.scope.buildUndefinedNode()));s=[]}o.push(l)}else{s.push(r)}}if(s.length>0){o.push(buildInitStatement(t,s,e.scope.buildUndefinedNode()))}}}return o}const f={computed:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}["${t}"] = ${r}`,default:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}.${t} = ${r}`,define:({exports:e,name:t,value:r})=>s.template.expression.ast`
|
||
|
|
Object.defineProperty(${e}, "${t}", {
|
||
|
|
enumerable: true,
|
||
|
|
value: void 0,
|
||
|
|
writable: true
|
||
|
|
})["${t}"] = ${r}`};function buildInitStatement(e,t,r){const{stringSpecifiers:n,exportName:i}=e;return s.types.expressionStatement(t.reduce(((e,t)=>{const r={exports:i,name:t,value:e};if(t==="__proto__"){return f.define(r)}if(n.has(t)){return f.computed(r)}return f.default(r)}),r))}},1219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toGetWrapperPayload=toGetWrapperPayload;t.wrapReference=wrapReference;var n=r(2358);var s=r(8800);function toGetWrapperPayload(e){return(t,r)=>{if(e===false)return null;if((0,s.isSideEffectImport)(r)||r.reexportAll)return null;if(e===true){return t.includes(".")?null:"lazy"}if(Array.isArray(e)){return!e.includes(t)?null:"lazy"}if(typeof e==="function"){return e(t)?"lazy":null}throw new Error(`.lazy must be a boolean, string array, or function`)}}function wrapReference(e,t){if(t==="lazy")return n.types.callExpression(e,[]);return null}},8800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeModuleAndLoadMetadata;t.hasExports=hasExports;t.isSideEffectImport=isSideEffectImport;t.validateImportInteropOption=validateImportInteropOption;var n=r(1017);var s=r(974);function hasExports(e){return e.hasExports}function isSideEffectImport(e){return e.imports.size===0&&e.importsNamespace.size===0&&e.reexports.size===0&&e.reexportNamespace.size===0&&!e.reexportAll}function validateImportInteropOption(e){if(typeof e!=="function"&&e!=="none"&&e!=="babel"&&e!=="node"){throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${e}).`)}return e}function resolveImportInterop(e,t,r){if(typeof e==="function"){return validateImportInteropOption(e(t,r))}return e}function normalizeModuleAndLoadMetadata(e,t,{importInterop:r,initializeReexports:n=false,getWrapperPayload:s,esNamespaceOnly:i=false,filename:a}){if(!t){t=e.scope.generateUidIdentifier("exports").name}const o=new Set;nameAnonymousExports(e);const{local:l,sources:c,hasExports:p}=getModuleMetadata(e,{initializeReexports:n,getWrapperPayload:s},o);removeImportExportDeclarations(e);for(const[e,t]of c){const{importsNamespace:n,imports:s}=t;if(n.size>0&&s.size===0){const[e]=n;t.name=e}const o=resolveImportInterop(r,e,a);if(o==="none"){t.interop="none"}else if(o==="node"&&t.interop==="namespace"){t.interop="node-namespace"}else if(o==="node"&&t.interop==="default"){t.interop="node-default"}else if(i&&t.interop==="namespace"){t.interop="default"}}return{exportName:t,exportNameListName:null,hasExports:p,local:l,source:c,stringSpecifiers:o}}function getExportSpecifierName(e,t){if(e.isIdentifier()){return e.node.name}else if(e.isStringLiteral()){const r=e.node.value;if(!(0,s.isIdentifierName)(r)){t.add(r)}return r}else{throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${e.node.type}`)}}function assertExportSpecifier(e){if(e.isExportSpecifier()){return}else if(e.isExportNamespaceSpecifier()){throw e.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`.")}else{throw e.buildCodeFrameError("Unexpected export specifier type")}}function getModuleMetadata(e,{getWrapperPayload:t,initializeReexports:r},s){const i=getLocalExportMetadata(e,r,s);const a=new Map;const o=new Map;const getData=(t,r)=>{const s=t.value;let i=o.get(s);if(!i){i={name:e.scope.generateUidIdentifier((0,n.basename)(s,(0,n.extname)(s))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,wrap:null,get lazy(){return this.wrap==="lazy"},referenced:false};o.set(s,i);a.set(s,[r])}else{a.get(s).push(r)}return i};let l=false;e.get("body").forEach((e=>{if(e.isImportDeclaration()){const t=getData(e.node.source,e.node);if(!t.loc)t.loc=e.node.loc;e.get("specifiers").forEach((e=>{if(e.isImportDefaultSpecifier()){const r=e.get("local").node.name;t.imports.set(r,"default");const n=i.get(r);if(n){i.delete(r);n.names.forEach((e=>{t.reexports.set(e,"default")}));t.referenced=true}}else if(e.isImpor
|
||
|
|
(function() {
|
||
|
|
throw new Error('"' + '${e}' + '" is read-only.');
|
||
|
|
})()
|
||
|
|
`;const i={ReferencedIdentifier(e){const{seen:t,buildImportReference:r,scope:s,imported:i,requeueInParent:a}=this;if(t.has(e.node))return;t.add(e.node);const o=e.node.name;const l=i.get(o);if(l){if(isInType(e)){throw e.buildCodeFrameError(`Cannot transform the imported binding "${o}" since it's also used in a type annotation. `+`Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`)}const t=e.scope.getBinding(o);const i=s.getBinding(o);if(i!==t)return;const c=r(l,e.node);c.loc=e.node.loc;if((e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&n.types.isMemberExpression(c)){e.replaceWith(n.types.sequenceExpression([n.types.numericLiteral(0),c]))}else if(e.isJSXIdentifier()&&n.types.isMemberExpression(c)){const{object:t,property:r}=c;e.replaceWith(n.types.jsxMemberExpression(n.types.jsxIdentifier(t.name),n.types.jsxIdentifier(r.name)))}else{e.replaceWith(c)}a(e);e.skip()}},UpdateExpression(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:a,buildImportReference:o}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("argument");if(l.isMemberExpression())return;const c=e.node;if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r)){return}const a=i.get(r);const p=s.get(r);if((a==null?void 0:a.length)>0||p){if(p){e.replaceWith(n.types.assignmentExpression(c.operator[0]+"=",o(p,l.node),buildImportThrow(r)))}else if(c.prefix){e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,a,n.types.cloneNode(c),e.scope))}else{const s=t.generateDeclaredUidIdentifier(r);e.replaceWith(n.types.sequenceExpression([n.types.assignmentExpression("=",n.types.cloneNode(s),n.types.cloneNode(c)),buildBindingExportAssignmentExpression(this.metadata,a,n.types.identifier(r),e.scope),n.types.cloneNode(s)]))}}}a(e);e.skip()},AssignmentExpression:{exit(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:a,buildImportReference:o}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(l.isMemberExpression())return;if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r)){return}const c=i.get(r);const p=s.get(r);if((c==null?void 0:c.length)>0||p){const t=e.node;if(p){t.left=o(p,l.node);t.right=n.types.sequenceExpression([t.right,buildImportThrow(r)])}const{operator:s}=t;let i;if(s==="="){i=t}else if(s==="&&="||s==="||="||s==="??="){i=n.types.assignmentExpression("=",t.left,n.types.logicalExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right))}else{i=n.types.assignmentExpression("=",t.left,n.types.binaryExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right))}e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,c,i,e.scope));a(e);e.skip()}}else{const r=l.getOuterBindingIdentifiers();const o=Object.keys(r).filter((r=>t.getBinding(r)===e.scope.getBinding(r)));const c=o.find((e=>s.has(e)));if(c){e.node.right=n.types.sequenceExpression([e.node.right,buildImportThrow(c)])}const p=[];o.forEach((t=>{const r=i.get(t)||[];if(r.length>0){p.push(buildBindingExportAssignmentExpression(this.metadata,r,n.types.identifier(t),e.scope))}}));if(p.length>0){let t=n.types.sequenceExpression(p);if(e.parentPath.isExpressionStatement()){t=n.types.expressionStatement(t);t._blockHoist=e.parentPath.node._blockHoist}const r=e.insertAfter(t)[0];a(r)}}}},ForXStatement(e){const{scope:t,node:r}=e;const{left:s}=r;const{exported:i,imported:a,scope:o}=this;if(!n.types.isVariableDeclaration(s)){let r=false,l;const c=e.get("body").scope;for(const e of Object.keys(n.types.getOuterBindingIdentifiers(s))){if(o.getBinding(e)===t.getBinding(e)){if(i.has(e)){r=true;if(c.hasOwnBinding(e)){c.rename(e)}}if(a.has(e)&&!l){l=e}}}if(!r&&!l){return}e.ensureBlock();const p=e.get("body");const u=t.generateUidIdentifierBasedOnNode(s);e.get("left").replaceWith(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(u))]));t.registerDeclaration(e.get("left"));if(r){p.unshiftContainer("body",n.types.expressionStatement(n.t
|
||
|
|
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
|
|
`])}else{return i.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
|
|
`}}};const b={memoise(e,t){const{scope:r,node:n}=e;const{computed:s,property:i}=n;if(!s){return}const a=r.maybeGenerateMemoised(i);if(!a){return}this.memoiser.set(i,a,t)},prop(e){const{computed:t,property:r}=e.node;if(this.memoiser.has(r)){return c(this.memoiser.get(r))}if(t){return c(r)}return f(r.name)},_getPrototypeOfExpression(){const e=c(this.getObjectRef());const t=this.isStatic||this.isPrivateMethod?e:u(e,p("prototype"));return l(this.file.addHelper("getPrototypeOf"),[t])},get(e){return this._get(e)},_get(e){const t=this._getPrototypeOfExpression();return l(this.file.addHelper("get"),[this.isDerivedConstructor?d([h(),t]):t,this.prop(e),h()])},set(e,t){const r=this._getPrototypeOfExpression();return l(this.file.addHelper("set"),[this.isDerivedConstructor?d([h(),r]):r,this.prop(e),t,h(),i.types.booleanLiteral(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError(`Destructuring to a super field is not supported yet.`)},call(e,t){return(0,s.default)(this._get(e),h(),t,false)},optionalCall(e,t){return(0,s.default)(this._get(e),c(h()),t,true)},delete(e){if(e.node.computed){return d([l(this.file.addHelper("toPropertyKey"),[c(e.node.property)]),i.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
|
|
`])}else{return i.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
|
|
`}}};const T=Object.assign({},g,{prop(e){const{property:t}=e.node;if(this.memoiser.has(t)){return c(this.memoiser.get(t))}return c(t)},get(e){const{isStatic:t,getSuperRef:r}=this;const{computed:n}=e.node;const s=this.prop(e);let i;if(t){var a;i=(a=r())!=null?a:u(p("Function"),p("prototype"))}else{var o;i=u((o=r())!=null?o:p("Object"),p("prototype"))}return u(i,s,n)},set(e,t){const{computed:r}=e.node;const n=this.prop(e);return o("=",u(h(),n,r),t)},destructureSet(e){const{computed:t}=e.node;const r=this.prop(e);return u(h(),r,t)},call(e,t){return(0,s.default)(this.get(e),h(),t,false)},optionalCall(e,t){return(0,s.default)(this.get(e),h(),t,true)}});class ReplaceSupers{constructor(e){var t;const r=e.methodPath;this.methodPath=r;this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef;this.isStatic=r.isObjectMethod()||r.node.static||(r.isStaticBlock==null?void 0:r.isStaticBlock());this.isPrivateMethod=r.isPrivate()&&r.isMethod();this.file=e.file;this.constantSuper=(t=e.constantSuper)!=null?t:e.isLoose;this.opts=e}getObjectRef(){return c(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return c(this.opts.superRef);if(this.opts.getSuperRef){return c(this.opts.getSuperRef())}}replace(){const{methodPath:e}=this;if(this.opts.refToPreserve){e.traverse(y,{refName:this.opts.refToPreserve.name})}const t=this.constantSuper?T:this.file.availableHelper("superPropSet")?g:b;m.shouldSkip=t=>{if(t.parentPath===e){if(t.parentKey==="decorators"||t.parentKey==="key"){return true}}};(0,n.default)(e,m,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:t.get},t))}}t["default"]=ReplaceSupers},9102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransparentExprWrapper=isTransparentExprWrapper;t.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;t.skipTransparentExprWrappers=skipTransparentExprWrappers;var n=r(3061);const{isParenthesizedExpression:s,isTSAsExpression:i,isTSNonNullExpression:a,isTSSatisfiesExpression:o,isTSTypeAssertion:l,isTypeCastExpression:c}=n;function isTransparentExprWrapper(e){return i(e)||o(e)||l(e)||a(e)||c(e)||s(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},5241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readCodePoint=readCodePoint;t.readInt=readInt;t.readStringContents=readStringContents;var r=function isDigit(e){return e>=48&&e<=57};const n={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const s={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,n,s,i){const a=r;const o=n;const l=s;let c="";let p=null;let u=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(a,o,l);c+=t.slice(u,r);break}const f=t.charCodeAt(r);if(isStringEnd(e,f,t,r)){c+=t.slice(u,r);break}if(f===92){c+=t.slice(u,r);const a=readEscapedChar(t,r,n,s,e==="template",i);if(a.ch===null&&!p){p={pos:r,lineStart:n,curLine:s}}else{c+=a.ch}({pos:r,lineStart:n,curLine:s}=a);u=r}else if(f===8232||f===8233){++r;++s;n=r}else if(f===10||f===13){if(e==="template"){c+=t.slice(u,r)+"\n";++r;if(f===13&&t.charCodeAt(r)===10){++r}++s;u=n=r}else{i.unterminated(a,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:p,lineStart:n,curLine:s,containsInvalid:!!p}}function isStringEnd(e,t,r,n){if(e==="template"){return t===96||t===36&&r.charCodeAt(n+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,n,s,i){const a=!s;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:n});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let s;({code:s,pos:t}=readHexChar(e,t,r,n,2,false,a,i));return res(s===nu
|
||
|
|
(function(){
|
||
|
|
throw new Error(
|
||
|
|
"The CommonJS '" + "${e}" + "' variable is not available in ES6 modules." +
|
||
|
|
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
||
|
|
"Babel config for this file.");
|
||
|
|
})()
|
||
|
|
`;const P={ReferencedIdentifier(e){const t=e.node.name;if(t!=="module"&&t!=="exports")return;const r=e.scope.getBinding(t);const n=this.scope.getBinding(t);if(n!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})){return}e.replaceWith(getAssertion(t))},UpdateExpression(e){const t=e.get("argument");if(!t.isIdentifier())return;const r=t.node.name;if(r!=="module"&&r!=="exports")return;const n=e.scope.getBinding(r);const s=this.scope.getBinding(r);if(s!==n)return;e.replaceWith(i.types.assignmentExpression(e.node.operator[0]+"=",t.node,getAssertion(r)))},AssignmentExpression(e){const t=e.get("left");if(t.isIdentifier()){const r=t.node.name;if(r!=="module"&&r!=="exports")return;const n=e.scope.getBinding(r);const s=this.scope.getBinding(r);if(s!==n)return;const a=e.get("right");a.replaceWith(i.types.sequenceExpression([a.node,getAssertion(r)]))}else if(t.isPattern()){const r=t.getOuterBindingIdentifiers();const n=Object.keys(r).find((t=>{if(t!=="module"&&t!=="exports")return false;return this.scope.getBinding(t)===e.scope.getBinding(t)}));if(n){const t=e.get("right");t.replaceWith(i.types.sequenceExpression([t.node,getAssertion(n)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs");if(g)(0,l.defineCommonJSHook)(this.file,(0,o.lazyImportsHook)(g))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](e){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(e.isCallExpression()&&!i.types.isImport(e.node.callee))return;let{scope:t}=e;do{t.rename("require")}while(t=t.parent);(0,a.transformDynamicImport)(e,m,this.file)},Program:{exit(e,r){if(!(0,s.isModule)(e))return;e.scope.rename("exports");e.scope.rename("module");e.scope.rename("require");e.scope.rename("__filename");e.scope.rename("__dirname");if(!b){e.traverse(P,{scope:e.scope})}let n=(0,s.getModuleName)(this.file.opts,t);if(n)n=i.types.stringLiteral(n);const a=(0,l.makeInvokers)(this.file);const{meta:o,headers:c}=(0,s.rewriteModuleStatementsAndPrepareHeader)(e,{exportName:"exports",constantReexports:S,enumerableModuleMeta:x,strict:f,strictMode:h,allowTopLevelThis:d,noInterop:m,importInterop:y,wrapReference:a.wrapReference,getWrapperPayload:a.getWrapperPayload,esNamespaceOnly:typeof r.filename==="string"&&/\.mjs$/.test(r.filename)?u:p,noIncompleteNsImportDetection:E,filename:this.file.opts.filename});for(const[t,r]of o.source){const n=i.types.callExpression(i.types.identifier("require"),[i.types.stringLiteral(t)]);let l;if((0,s.isSideEffectImport)(r)){if(g&&r.wrap==="function"){throw new Error("Assertion failure")}l=i.types.expressionStatement(n)}else{var T;const t=(0,s.wrapInterop)(e,n,r.interop)||n;if(r.wrap){const e=a.buildRequireWrapper(r.name,t,r.wrap,r.referenced);if(e===false)continue;else l=e}(T=l)!=null?T:l=i.template.statement.ast`
|
||
|
|
var ${r.name} = ${t};
|
||
|
|
`}l.loc=r.loc;c.push(l);c.push(...(0,s.buildNamespaceInitStatements)(o,r,S,a.wrapReference))}(0,s.ensureStatementsHoisted)(c);e.unshiftContainer("body",c);e.get("body").forEach((e=>{if(!c.includes(e.node))return;if(e.isVariableDeclaration()){e.scope.registerDeclaration(e)}}))}}}}}))},2461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lazyImportsHook=void 0;var n=r(2358);var s=r(9460);const lazyImportsHook=e=>({name:`${"@babel/plugin-transform-modules-commonjs"}/lazy`,version:"7.26.3",getWrapperPayload(t,r){if((0,s.isSideEffectImport)(r)||r.reexportAll){return null}if(e===true){return t.includes(".")?null:"lazy/function"}if(Array.isArray(e)){return!e.includes(t)?null:"lazy/function"}if(typeof e==="function"){return e(t)?"lazy/function":null}},buildRequireWrapper(e,t,r,s){if(r==="lazy/function"){if(!s)return false;return n.template.statement.ast`
|
||
|
|
function ${e}() {
|
||
|
|
const data = ${t};
|
||
|
|
${e} = function(){ return data; };
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
`}},wrapReference(e,t){if(t==="lazy/function")return n.types.callExpression(e,[])}});t.lazyImportsHook=lazyImportsHook},7077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EXPORTED_CONST_ENUMS_IN_NAMESPACE=void 0;t["default"]=transpileConstEnum;var n=r(5886);const s=t.EXPORTED_CONST_ENUMS_IN_NAMESPACE=new WeakSet;function transpileConstEnum(e,t){const{name:r}=e.node.id;const i=e.parentPath.isExportNamedDeclaration();let a=i;if(!a&&t.isProgram(e.parent)){a=e.parent.body.some((e=>t.isExportNamedDeclaration(e)&&e.exportKind!=="type"&&!e.source&&e.specifiers.some((e=>t.isExportSpecifier(e)&&e.exportKind!=="type"&&e.local.name===r))))}const{enumValues:o}=(0,n.translateEnumValues)(e,t);if(a||s.has(e.node)){const n=t.objectExpression(o.map((([e,r])=>t.objectProperty(t.isValidIdentifier(e)?t.identifier(e):t.stringLiteral(e),r))));if(e.scope.hasOwnBinding(r)){(i?e.parentPath:e).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[e.node.id,n])))}else{e.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(e.node.id,n)]));e.scope.registerDeclaration(e)}return}const l=new Map(o);e.scope.path.traverse({Scope(e){if(e.scope.hasOwnBinding(r))e.skip()},MemberExpression(e){if(!t.isIdentifier(e.node.object,{name:r}))return;let n;if(e.node.computed){if(t.isStringLiteral(e.node.property)){n=e.node.property.value}else{return}}else if(t.isIdentifier(e.node.property)){n=e.node.property.name}else{return}if(!l.has(n))return;e.replaceWith(t.cloneNode(l.get(n)))}});e.remove()}},5886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=transpileEnum;t.isSyntacticallyString=isSyntacticallyString;t.translateEnumValues=translateEnumValues;var n=r(2358);var s=r(9491);var i=r(344);var a=r(9102);const o=new WeakMap;const l=n.template.expression(`\n (function (ID) {\n ASSIGNMENTS;\n return ID;\n })(INIT)\n `);function transpileEnum(e,t){const{node:r,parentPath:n}=e;if(r.declare){e.remove();return}const s=r.id.name;const{fill:a,data:c,isPure:p}=enumFill(e,t,r.id);switch(n.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":{const u=t.isProgram(e.parent);const d=seen(n);let f=t.objectExpression([]);if(d||u){f=t.logicalExpression("||",t.cloneNode(a.ID),f)}const h=l(Object.assign({},a,{INIT:f}));if(p)(0,i.default)(h);if(d){const s=n.isExportDeclaration()?n:e;s.replaceWith(t.expressionStatement(t.assignmentExpression("=",t.cloneNode(r.id),h)))}else{e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(u?"var":"let",[t.variableDeclarator(r.id,h)]))[0])}o.set(e.scope.getBindingIdentifier(s),c);break}default:throw new Error(`Unexpected enum parent '${e.parent.type}`)}function seen(e){if(e.isExportDeclaration()){return seen(e.parentPath)}if(e.getData(s)){return true}else{e.setData(s,true);return false}}}const c=n.template.statement(`\n ENUM["NAME"] = VALUE;\n`);const p=n.template.statement(`\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n`);const buildEnumMember=(e,t)=>(e?c:p)(t);function enumFill(e,t,r){const{enumValues:n,data:s,isPure:i}=translateEnumValues(e,t);const a=e.get("members");const o=[];for(let e=0;e<a.length;e++){const[s,i]=n[e];o.push(t.inheritsComments(buildEnumMember(isSyntacticallyString(i),{ENUM:t.cloneNode(r),NAME:s,VALUE:i}),a[e].node))}return{fill:{ID:t.cloneNode(r),ASSIGNMENTS:o},data:s,isPure:i}}function isSyntacticallyString(e){e=(0,a.skipTransparentExprWrapperNodes)(e);switch(e.type){case"BinaryExpression":{const t=e.left;const r=e.right;return e.operator==="+"&&(isSyntacticallyString(t)||isSyntacticallyString(r))}case"TemplateLiteral":case"StringLiteral":return true}return false}function ReferencedIdentifier(e,t){const{seen:r,path:n,t:s}=t;const i=e.node.name;if(r.has(i)){{for(let t=e.scope;t!==n.scope;t=t.parent){if(t.hasOwnBinding(i)){return}}}e.replaceWith(s.memberExpression(s.cloneNode(n.node.id),s.cloneNode(e.node)));e.skip()}}const u={ReferencedIdentifier:ReferencedIdentifier};function translateEnumValues(e,t){var r;const n=e.scope.getBindingIdentifier
|
||
|
|
this.${r.cloneNode(o)} = ${r.cloneNode(o)}
|
||
|
|
`);t.replaceWith(t.get("parameter"));a.registerBinding("param",t)}}(0,i.injectInitialization)(t,e,s)}};return{name:"transform-typescript",inherits:s.default,visitor:{Pattern:visitPattern,Identifier:visitPattern,RestElement:visitPattern,Program:{enter(e,t){const{file:r}=t;let n=null;let s=null;const i=e.scope;if(!l.GLOBAL_TYPES.has(i)){l.GLOBAL_TYPES.set(i,new Set)}if(r.ast.comments){for(const e of r.ast.comments){const t=d.exec(e.value);if(t){if(t[1]){s=t[2]}else{n=t[2]}}}}let a=n||h;if(a){[a]=a.split(".")}let o=s||m;if(o){[o]=o.split(".")}for(let r of e.get("body")){if(r.isImportDeclaration()){if(!p.has(t.file.ast.program)){p.set(t.file.ast.program,true)}if(r.node.importKind==="type"){for(const e of r.node.specifiers){(0,l.registerGlobalType)(i,e.local.name)}r.remove();continue}const n=new Set;const s=r.node.specifiers.length;const isAllSpecifiersElided=()=>s>0&&s===n.size;for(const e of r.node.specifiers){if(e.type==="ImportSpecifier"&&e.importKind==="type"){(0,l.registerGlobalType)(i,e.local.name);const t=r.scope.getBinding(e.local.name);if(t){n.add(t.path)}}}if(y){p.set(e.node,false)}else{if(r.node.specifiers.length===0){p.set(e.node,false);continue}for(const t of r.node.specifiers){const s=r.scope.getBinding(t.local.name);if(s&&!n.has(s.path)){if(isImportTypeOnly({binding:s,programPath:e,pragmaImportName:a,pragmaFragImportName:o})){n.add(s.path)}else{p.set(e.node,false)}}}}if(isAllSpecifiersElided()&&!y){r.remove()}else{for(const e of n){e.remove()}}continue}if(!y&&r.isTSImportEqualsDeclaration()){const{id:t}=r.node;const n=r.scope.getBinding(t.name);if(n&&!r.node.isExport&&isImportTypeOnly({binding:n,programPath:e,pragmaImportName:a,pragmaFragImportName:o})){r.remove();continue}}if(r.isExportDeclaration()){r=r.get("declaration")}if(r.isVariableDeclaration({declare:true})){for(const e of Object.keys(r.getBindingIdentifiers())){(0,l.registerGlobalType)(i,e)}}else if(r.isTSTypeAliasDeclaration()||r.isTSDeclareFunction()&&r.get("id").isIdentifier()||r.isTSInterfaceDeclaration()||r.isClassDeclaration({declare:true})||r.isTSEnumDeclaration({declare:true})||r.isTSModuleDeclaration({declare:true})&&r.get("id").isIdentifier()){(0,l.registerGlobalType)(i,r.node.id.name)}}},exit(e){if(e.node.sourceType==="module"&&p.get(e.node)){e.pushContainer("body",r.exportNamedDeclaration())}}},ExportNamedDeclaration(e,t){if(!p.has(t.file.ast.program)){p.set(t.file.ast.program,true)}if(e.node.exportKind==="type"){e.remove();return}if(e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every((e=>e.type==="ExportSpecifier"&&e.exportKind==="type"))){e.remove();return}if(!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every((t=>r.isExportSpecifier(t)&&(0,l.isGlobalType)(e,t.local.name)))){e.remove();return}if(r.isTSModuleDeclaration(e.node.declaration)){const t=e.node.declaration;if(!r.isStringLiteral(t.id)){const n=(0,c.getFirstIdentifier)(t.id);if(e.scope.hasOwnBinding(n.name)){e.replaceWith(t)}else{const[s]=e.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(n))])),t]);e.scope.registerDeclaration(s)}}}p.set(t.file.ast.program,false)},ExportAllDeclaration(e){if(e.node.exportKind==="type")e.remove()},ExportSpecifier(e){const t=e.parent;if(!t.source&&(0,l.isGlobalType)(e,e.node.local.name)||e.node.exportKind==="type"){e.remove()}},ExportDefaultDeclaration(e,t){if(!p.has(t.file.ast.program)){p.set(t.file.ast.program,true)}if(r.isIdentifier(e.node.declaration)&&(0,l.isGlobalType)(e,e.node.declaration.name)){e.remove();return}p.set(t.file.ast.program,false)},TSDeclareFunction(e){safeRemove(e)},TSDeclareMethod(e){safeRemove(e)},VariableDeclaration(e){if(e.node.declare){safeRemove(e)}},VariableDeclarator({node:e}){if(e.definite)e.definite=null},TSIndexSignature(e){e.remove()},ClassDeclaration(e){const{node:t}=e;if(t.declare){safeRemove(e)}},Class(e){const{node:t}=e;if(t.typeParameters)t.typeParameters=null;{if(t.superTypeParameters)t.superTypeParameters=null}if(t.implements)t.implements=null;if(t.abstract)t.abstract=null;e.get("body.body").forEach((t=>{if
|
||
|
|
${n.types.cloneNode(e)} ||
|
||
|
|
(${n.types.cloneNode(e)} = ${d})
|
||
|
|
`}return n.template.statement.ast`
|
||
|
|
(function (${n.types.identifier(o)}) {
|
||
|
|
${p}
|
||
|
|
})(${a} || (${n.types.cloneNode(a)} = ${d}));
|
||
|
|
`}},8782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(9045);var s=r(7687);r(2698);var i=r(7179);var a=r(3146);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var o=_interopDefault(s);var l=_interopDefault(i);const c=new a.OptionValidator("@babel/preset-typescript");function normalizeOptions(e={}){let{allowNamespaces:t=true,jsxPragma:r,onlyRemoveTypeImports:n}=e;const s={ignoreExtensions:"ignoreExtensions",allowNamespaces:"allowNamespaces",disallowAmbiguousJSXLike:"disallowAmbiguousJSXLike",jsxPragma:"jsxPragma",jsxPragmaFrag:"jsxPragmaFrag",onlyRemoveTypeImports:"onlyRemoveTypeImports",optimizeConstEnums:"optimizeConstEnums",rewriteImportExtensions:"rewriteImportExtensions",allExtensions:"allExtensions",isTSX:"isTSX"};const i=c.validateStringOption(s.jsxPragmaFrag,e.jsxPragmaFrag,"React.Fragment");{var a=c.validateBooleanOption(s.allExtensions,e.allExtensions,false);var o=c.validateBooleanOption(s.isTSX,e.isTSX,false);if(o){c.invariant(a,"isTSX:true requires allExtensions:true")}}const l=c.validateBooleanOption(s.ignoreExtensions,e.ignoreExtensions,false);const p=c.validateBooleanOption(s.disallowAmbiguousJSXLike,e.disallowAmbiguousJSXLike,false);if(p){{c.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true")}}const u=c.validateBooleanOption(s.optimizeConstEnums,e.optimizeConstEnums,false);const d=c.validateBooleanOption(s.rewriteImportExtensions,e.rewriteImportExtensions,false);const f={ignoreExtensions:l,allowNamespaces:t,disallowAmbiguousJSXLike:p,jsxPragma:r,jsxPragmaFrag:i,onlyRemoveTypeImports:n,optimizeConstEnums:u,rewriteImportExtensions:d};{f.allExtensions=a;f.isTSX=o}return f}var p=n.declare((function({types:e,template:t}){function maybeReplace(r,n,s){if(!r)return;if(e.isStringLiteral(r)){if(/^\.\.?\//.test(r.value)){r.value=r.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,(function(e,t,r,n,s){return t?".js":r&&(!n||!s)?e:r+n+"."+s.toLowerCase()+"js"}))}return}if(s.availableHelper("tsRewriteRelativeImportExtensions")){n.replaceWith(e.callExpression(s.addHelper("tsRewriteRelativeImportExtensions"),[r]))}else{n.replaceWith(t.expression.ast`(${r} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`)}}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(t,r){const n=t.node;const s=e.isImportDeclaration(n)?n.importKind:n.exportKind;if(s==="value"){maybeReplace(n.source,t.get("source"),r)}},CallExpression(t,r){if(e.isImport(t.node.callee)){maybeReplace(t.node.arguments[0],t.get("arguments.0"),r)}},ImportExpression(e,t){maybeReplace(e.node.source,e.get("source"),t)}}}}));var u=n.declarePreset(((e,t)=>{e.assertVersion(7);const{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:a,jsxPragma:c,jsxPragmaFrag:u,onlyRemoveTypeImports:d,optimizeConstEnums:f,rewriteImportExtensions:h}=normalizeOptions(t);const pluginOptions=e=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:e,jsxPragma:c,jsxPragmaFrag:u,onlyRemoveTypeImports:d,optimizeConstEnums:f});const getPlugins=(e,t)=>{{return[[o.default,Object.assign({isTSX:e},pluginOptions(t))]]}};const m=r||n;return{plugins:h?[p]:[],overrides:m?[{plugins:getPlugins(a,i)}]:[{test:/\.ts$/,plugins:getPlugins(false,false)},{test:/\.mts$/,sourceType:"module",plugins:getPlugins(false,true)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[l.default,{allowTopLevelThis:true}],[o.default,pluginOptions(true)]]},{test:/\.tsx$/,plugins:getPlugins(true,false)}]}}));t["default"]=u},3725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createTemplateBuilder;var n=r(6657);var s=r(1510);var i=r(8671);const a=(0,n.validate)({placeholderPattern:false});function createTemplateBuilder(e,t){const r=new WeakMap;const o=new WeakMap;const l=t||(0,n.validate)(null);return Object.assign(((t,...a)=>{if(typeof t==="string"){if(a.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,s.default)(e,t,(0,n.merge)(l,(0,n.valid
|
||
|
|
(function (${l}) {
|
||
|
|
function ${n}(${c}) {
|
||
|
|
return ${F(l)}.apply(this, arguments);
|
||
|
|
}
|
||
|
|
|
||
|
|
${F(n)}.toString = function () {
|
||
|
|
return ${F(l)}.toString();
|
||
|
|
}
|
||
|
|
|
||
|
|
return ${F(n)};
|
||
|
|
})(${N(this.node)})
|
||
|
|
`;return this.replaceWith(p)[0].get("arguments.0")}function getFunctionArity(e){const t=e.params.findIndex((e=>M(e)||L(e)));return t===-1?e.params.length:t}},9119:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluate=evaluate;t.evaluateTruthy=evaluateTruthy;const r=["Number","String","Math"];const n=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null];const s=["random"];function isValidObjectCallee(e){return r.includes(e)}function isValidIdentifierCallee(e){return n.includes(e)}function isInvalidMethod(e){return s.includes(e)}function evaluateTruthy(){const e=this.evaluate();if(e.confident)return!!e.value}function deopt(e,t){if(!t.confident)return;t.deoptPath=e;t.confident=false}const i=new Map([["undefined",undefined],["Infinity",Infinity],["NaN",NaN]]);function evaluateCached(e,t){const{node:r}=e;const{seen:n}=t;if(n.has(r)){const s=n.get(r);if(s.resolved){return s.value}else{deopt(e,t);return}}else{const s={resolved:false};n.set(r,s);const i=_evaluate(e,t);if(t.confident){s.resolved=true;s.value=i}return i}}function _evaluate(e,t){if(!t.confident)return;if(e.isSequenceExpression()){const r=e.get("expressions");return evaluateCached(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral()){return e.node.value}if(e.isNullLiteral()){return null}if(e.isTemplateLiteral()){return evaluateQuasis(e,e.node.quasis,t)}if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object");const{node:{name:n}}=r;const s=e.get("tag.property");if(r.isIdentifier()&&n==="String"&&!e.scope.getBinding(n)&&s.isIdentifier()&&s.node.name==="raw"){return evaluateQuasis(e,e.node.quasi.quasis,t,true)}}if(e.isConditionalExpression()){const r=evaluateCached(e.get("test"),t);if(!t.confident)return;if(r){return evaluateCached(e.get("consequent"),t)}else{return evaluateCached(e.get("alternate"),t)}}if(e.isExpressionWrapper()){return evaluateCached(e.get("expression"),t)}if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const r=e.get("property");const n=e.get("object");if(n.isLiteral()){const s=n.node.value;const i=typeof s;let a=null;if(e.node.computed){a=evaluateCached(r,t);if(!t.confident)return}else if(r.isIdentifier()){a=r.node.name}if((i==="number"||i==="string")&&a!=null&&(typeof a==="number"||typeof a==="string")){return s[a]}}}if(e.isReferencedIdentifier()){const n=e.scope.getBinding(e.node.name);if(n){if(n.constantViolations.length>0||e.node.start<n.path.node.end){deopt(n.path,t);return}const s=n.path.scope;if(n.kind==="var"&&s!==n.scope){let i=!s.path.parentPath.isBlockStatement();for(let a=s.parent;a;a=a.parent){var r;if(a===e.scope){if(i){deopt(n.path,t);return}break}if((r=a.path.parentPath)!=null&&r.isBlockStatement()){i=true}}}if(n.hasValue){return n.value}}const s=e.node.name;if(i.has(s)){if(!n){return i.get(s)}deopt(n.path,t);return}const a=e.resolve();if(a===e){deopt(e,t);return}else{return evaluateCached(a,t)}}if(e.isUnaryExpression({prefix:true})){if(e.node.operator==="void"){return undefined}const r=e.get("argument");if(e.node.operator==="typeof"&&(r.isFunction()||r.isClass())){return"function"}const n=evaluateCached(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(e.isArrayExpression()){const r=[];const n=e.get("elements");for(const e of n){const n=e.evaluate();if(n.confident){r.push(n.value)}else{deopt(n.deopt,t);return}}return r}if(e.isObjectExpression()){const r={};const n=e.get("properties");for(const e of n){if(e.isObjectMethod()||e.isSpreadElement()){deopt(e,t);return}const n=e.get("key");let s;if(e.node.computed){s=n.evaluate();if(!s.confident){deopt(s.deopt,t);return}s=s.value}else if(n.isIdentifier()){s=n.node.name}else{s=n.node.value}const i=e.get("value");let a=i.evaluate();if(!a.confident){deopt(a.deopt,t);return}a=a.value;r[s]=a}return r}if(e.isLogicalExpression()){const r=t.confident;const n=evaluateCached(e.get("left"),t);const s=t.c
|