| 3114 | See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usage.md`);var q;if(A==="usage-global")q="usageGlobal";else if(A==="entry-global")q="entryGlobal";else if(A==="usage-pure")q="usagePure";else throw typeof A!="string"?new Error(".method must be a string"):new Error('.method must be one of "entry-global", "usage-global"'+(' or "usage-pure" (received '+JSON.stringify(A)+")"));if(typeof S=="function"){if(h.include||h.exclude)throw new Error(".include and .exclude are not supported when using the .shouldInjectPolyfill function.")}else if(S!=null)throw new Error(".shouldInjectPolyfill must be a function, or undefined"+(" (received "+JSON.stringify(S)+")"));if(T!=null&&typeof T!="boolean"&&typeof T!="string")throw new Error(".absoluteImports must be a boolean, a string, or undefined"+(" (received "+JSON.stringify(T)+")"));var U;if(C||B||w){var k=typeof C=="string"||Array.isArray(C)?{browsers:C}:C;U=D(k,{ignoreBrowserslistConfig:w,configPath:B})}else U=v.targets();return{method:A,methodName:q,targets:U,absoluteImports:T??!1,shouldInjectPolyfill:S,debug:!!j,providerOptions:N}}function p(h,v,A,C,w,B){var j=g(v,B),S=j.method,T=j.methodName,N=j.targets,q=j.debug,U=j.shouldInjectPolyfill,k=j.providerOptions,O=j.absoluteImports,P,V,$,ae,se,z=(0,t.createUtilsGetter)(new n.default(function(Ie){return o.resolve(C,Ie,O)},function(Ie){var pe,Oe;return(pe=(Oe=ae)==null?void 0:Oe.get(Ie))!=null?pe:1/0})),Q=new Map,te={babel:B,getUtils:z,method:v.method,targets:N,createMetaResolver:u.default,shouldInjectPolyfill:function(pe){if(ae===void 0)throw new Error("Internal error in the "+h.name+" provider: shouldInjectPolyfill() can't be called during initialization.");if(ae.has(pe)||console.warn("Internal error in the "+fe+" provider: "+('unknown polyfill "'+pe+'".')),se&&!se(pe))return!1;var Oe=(0,r.isRequired)(pe,N,{compatData:$,includes:P,excludes:V});if(U&&(Oe=U(pe,Oe),typeof Oe!="boolean"))throw new Error(".shouldInjectPolyfill must return a boolean.");return Oe},debug:function(pe){var Oe,Ze;w().found=!0,!(!q||!pe)&&(w().polyfills.has(fe)||(w().polyfills.add(pe),(Ze=(Oe=w()).polyfillsSupport)!=null||(Oe.polyfillsSupport=$)))},assertDependency:function(pe,Oe){if(Oe===void 0&&(Oe="*"),A!==!1&&!O){var Ze=Oe==="*"?pe:pe+"@^"+Oe,_e=A.all?!1:m(Q,pe+" :: "+C,function(){return o.has(C,pe)});_e||w().missingDeps.add(Ze)}}},ce=h(te,k,C),fe=ce.name||h.name;if(typeof ce[T]!="function")throw new Error('The "'+fe+`" provider doesn't support the "`+S+'" polyfilling method.');Array.isArray(ce.polyfills)?(ae=new Map(ce.polyfills.map(function(Ie,pe){return[Ie,pe]})),se=ce.filterPolyfills):ce.polyfills?(ae=new Map(Object.keys(ce.polyfills).map(function(Ie,pe){return[Ie,pe]})),$=ce.polyfills,se=ce.filterPolyfills):ae=new Map;var ge=(0,a.validateIncludeExclude)(fe,ae,k.include||[],k.exclude||[]);P=ge.include,V=ge.exclude;var Ce;return T==="usageGlobal"?Ce=function(pe,Oe){var Ze,_e=z(Oe);return(Ze=ce[T](pe,_e,Oe))!=null?Ze:!1}:Ce=function(pe,Oe){var Ze=z(Oe);return ce[T](pe,Ze,Oe),!1},{debug:q,method:S,targets:N,provider:ce,providerName:fe,callProvider:Ce}}function F(h){return(0,e.declare)(function(v,A,C){v.assertVersion("^7.0.0 || ^8.0.0-alpha.0");var w=v.traverse,B,j=(0,a.applyMissingDependenciesDefaults)(A,v),S=p(h,A,j,C,function(){return B},v),T=S.debug,N=S.method,q=S.targets,U=S.provider,k=S.providerName,O=S.callProvider,P=N==="entry-global"?i.entry:i.usage,V=U.visitor?w.visitors.merge([P(O),U.visitor]):P(O);T&&T!==s.presetEnvSilentDebugHeader&&(console.log(k+": `DEBUG` option"),console.log(` |
| 3116 | [`+this.filename+"]"),B.polyfills.size===0){console.log(N==="entry-global"?B.found?"Based on your targets, the "+k+" polyfill did not add any polyfill.":"The entry point for the "+k+" polyfill has not been found.":"Based on your code and targets, the "+k+" polyfill did not add any polyfill.");return}console.log(N==="entry-global"?"The "+k+" polyfill entry has been replaced with the following polyfills:":"The "+k+" polyfill added the following polyfills:");for(var z=J(B.polyfills),Q;!(Q=z()).done;){var te=Q.value,ce;if((ce=B.polyfillsSupport)!=null&&ce[te]){var fe=(0,r.getInclusionReasons)(te,q,B.polyfillsSupport),ge=JSON.stringify(fe).replace(/,/g,", ").replace(/^\{"/,'{ "').replace(/"\}$/,'" }');console.log(" "+te+" "+ge)}else console.log(" "+te)}}}}})}function m(h,v,A){var C=h.get(v);return C===void 0&&(C=A(),h.set(v,C)),C}function E(h){return Object.keys(h).length===0}return ux}var CK;function uke(){if(CK)return m0;CK=1,m0.__esModule=!0,m0.default=void 0;var e=u(s0()),r=XIe(),t=u(JIe()),n=ZIe(),s=u(EK()),a=o(vn);function i(p){if(typeof WeakMap!="function")return null;var F=new WeakMap,m=new WeakMap;return(i=function(h){return h?m:F})(p)}function o(p,F){if(!F&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var m=i(F);if(m&&m.has(p))return m.get(p);var E={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in p)if(v!=="default"&&Object.prototype.hasOwnProperty.call(p,v)){var A=h?Object.getOwnPropertyDescriptor(p,v):null;A&&(A.get||A.set)?Object.defineProperty(E,v,A):E[v]=p[v]}return E.default=p,m&&m.set(p,E),E}function u(p){return p&&p.__esModule?p:{default:p}}var d=a.default||a,l=d.types,c="@babel/runtime-corejs2",x="#__secret_key__@babel/preset-env__compatibility",f="#__secret_key__@babel/runtime__compatibility",D=Function.call.bind(Object.hasOwnProperty),g=(0,s.default)(function(p,F){var m=F[x],E=m===void 0?{}:m,h=E.entryInjectRegenerator,v=h===void 0?!1:h,A=E.noRuntimeName,C=A===void 0?!1:A,w=F[f],B=w===void 0?{}:w,j=B.useBabelRuntime,S=j===void 0?!1:j,T=B.runtimeVersion,N=T===void 0?"":T,q=B.ext,U=q===void 0?".js":q,k=p.createMetaResolver({global:r.BuiltIns,static:r.StaticProperties,instance:r.InstanceProperties}),O=p.debug,P=p.shouldInjectPolyfill,V=p.method,$=(0,t.default)(p.targets,V,e.default),ae=S?c+"/core-js":V==="usage-pure"?"core-js/library/fn":"core-js/modules";function se(Q,te){if(typeof Q=="string"){D($,Q)&&P(Q)&&(O(Q),te.injectGlobalImport(ae+"/"+Q+".js"));return}Q.forEach(function(ce){return se(ce,te)})}function z(Q,te,ce){var fe=Q.pure,ge=Q.meta,Ce=Q.name;if(!(!fe||!P(Ce))&&!(N&&ge&&ge.minRuntimeVersion&&!(0,n.hasMinVersion)(ge&&ge.minRuntimeVersion,N)))return S&&fe==="symbol/index"&&(fe="symbol"),ce.injectDefaultImport(ae+"/"+fe+U,te)}return{name:"corejs2",runtimeName:C?null:c,polyfills:$,entryGlobal:function(te,ce,fe){te.kind==="import"&&te.source==="core-js"&&(O(null),se(Object.keys($),ce),v&&ce.injectGlobalImport("regenerator-runtime/runtime.js"),fe.remove())},usageGlobal:function(te,ce){var fe=k(te);if(fe){var ge=fe.desc.global;if(fe.kind!=="global"&&"object"in te&&te.object&&te.placement==="prototype"){var Ce=te.object.toLowerCase();ge=ge.filter(function(Ie){return Ie.includes(Ce)})}se(ge,ce)}},usagePure:function(te,ce,fe){if(te.kind==="in"){te.key==="Symbol.iterator"&&fe.replaceWith(l.callExpression(ce.injectDefaultImport(ae+"/is-iterable"+U,"isIterable"),[fe.node.right]));return}if(!fe.parentPath.isUnaryExpression({operator:"delete"})){if(te.kind==="property"){if(!fe.isMemberExpression()||!fe.isReferenced())return;if(te.key==="Symbol.iterator"&&P("es6.symbol")&&fe.parentPath.isCallExpression({callee:fe.node})&&fe.parentPath.node.arguments.length===0){fe.parentPath.replaceWith(l.callExpression(ce.injectDefaultImport(ae+"/get-iterator"+U,"getIterator"),[fe.node.object])),fe.skip();return}}var ge=k(te);if(ge){var Ce=z(ge.desc,ge.name,ce);Ce&&fe.replaceWith(Ce)}}},visitor:V==="usage-global"&&{YieldExpression:function(te){te.node.delegate&&se("web.dom.iterable",p.getUtils(te))},"ForOfStatement|ArrayPattern":function(te){r.CommonIterators.forEach(function(ce){return se(ce,p.getUtils(te))})}}}});return m0.default=g,m0}var _A,vK;function dke(){if(vK)return _A;vK=1;function e(r){return r==null?!1:r&&r!=="false"&&r!=="0"}return _A=e(He.env.BABEL_8_BREAKING)?null:uke(),_A}var A0={},AK;function lke(){if(AK)return A0;AK=1,A0.__esModule=!0,A0.default=void 0;var e=r(EK());function r(i){return i&&i.__esModule?i:{default:i}}var t="#__secret_key__@babel/runtime__compatibility",n=(0,e.default)(function(i,o){var u=i.debug,d=i.targets,l=i.babel;if(!a(d,l.targets()))throw new Error("This plugin does not use the targets option. Only preset-env's targets or top-level targets need to be configured for this plugin to work. See https://github.com/babel/babel-polyfills/issues/36 for more details.");var c=o[t],x=c===void 0?{}:c,f=x.moduleName,D=f===void 0?null:f,g=x.useBabelRuntime,p=g===void 0?!1:g;return{name:"regenerator",polyfills:["regenerator-runtime"],usageGlobal:function(m,E){s(m)&&(u("regenerator-runtime"),E.injectGlobalImport("regenerator-runtime/runtime.js"))},usagePure:function(m,E,h){if(s(m)){var v="regenerator-runtime";if(p){var A,C=(A=D??h.hub.file.get("runtimeHelpersModuleName"))!=null?A:"@babel/runtime";v=C+"/regenerator"}h.replaceWith(E.injectDefaultImport(v,"regenerator-runtime"))}}}});A0.default=n;var s=function(o){return o.kind==="global"&&o.name==="regeneratorRuntime"};function a(i,o){return JSON.stringify(i)===JSON.stringify(o)}return A0}var NA,bK;function cke(){if(bK)return NA;bK=1;function e(r){return r==null?!1:r&&r!=="false"&&r!=="0"}return NA=e(He.env.BABEL_8_BREAKING)?null:lke(),NA}var b0={},RK;function BK(){return RK||(RK=1,b0.getImportSource=function(e){var r=e.node;if(r.specifiers.length===0)return r.source.value},b0.getRequireSource=function(e){var r=e.node;if(r.type==="ExpressionStatement"){var t=r.expression;if(t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="require"&&t.arguments.length===1&&t.arguments[0].type==="StringLiteral")return t.arguments[0].value}},b0.isPolyfillSource=function(e){return e==="@babel/polyfill"||e==="core-js"}),b0}var wK,SK,jK,TK,MA,PK;function xke(){if(PK)return MA;PK=1;var e=BK(),r=e.getImportSource,t=e.getRequireSource,n=e.isPolyfillSource,s="\n `@babel/polyfill` is deprecated. Please, use required parts of `core-js`\n and `regenerator-runtime/runtime` separately",a="\n When setting `useBuiltIns: 'usage'`, polyfills are automatically imported when needed.\n Please remove the direct import of `SPECIFIER` or use `useBuiltIns: 'entry'` instead.";return MA=function(o,u){var d=o.template,l=u.regenerator,c=u.deprecated,x=u.usage;return{name:"preset-env/replace-babel-polyfill",visitor:{ImportDeclaration:function(D){var g=r(D);x&&n(g)?(console.warn(a.replace("SPECIFIER",g)),c||D.remove()):g==="@babel/polyfill"&&(c?console.warn(s):l?D.replaceWithMultiple(d.ast(wK||(wK=le([` |