edgeone 1.6.20 → 1.6.21

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.
@@ -566,7 +566,7 @@ ${A.join(`
566
566
  `;y.forEach(A=>{v+=A}),e.fail(v)}};let p={};s.conflicts=function(g,y){si("<string|object> [array|string]",[g,y],arguments.length),typeof g=="object"?Object.keys(g).forEach(v=>{s.conflicts(v,g[v])}):(t.global(g),p[g]||(p[g]=[]),Array.isArray(y)?y.forEach(v=>s.conflicts(g,v)):p[g].push(y))},s.getConflicting=()=>p,s.conflicting=function(g){Object.keys(g).forEach(y=>{p[y]&&p[y].forEach(v=>{v&&g[y]!==void 0&&g[v]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",y,v))})}),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(p).forEach(y=>{p[y].forEach(v=>{v&&g[r.Parser.camelCase(y)]!==void 0&&g[r.Parser.camelCase(v)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",y,v))})})},s.recommendCommands=function(g,y){y=y.sort((E,k)=>k.length-E.length);let A=null,S=1/0;for(let E=0,k;(k=y[E])!==void 0;E++){let P=C3e(g,k);P<=3&&P<S&&(S=P,A=k)}A&&e.fail(n("Did you mean %s?",A))},s.reset=function(g){return c=YI(c,y=>!g[y]),p=YI(p,y=>!g[y]),s};let f=[];return s.freeze=function(){f.push({implied:c,conflicting:p})},s.unfreeze=function(){let g=f.pop();ig(g,void 0,r),{implied:c,conflicting:p}=g},s}var ci=function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},Ve=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Fp,lD,R8,Sv,JA,GV,KI,pD,WV,Cv,YV,Iv,Mw,KA,kv,JV,dF,md,Bi,KV,XV,XA,fD,hF,dD,XI,ZV,xs,hD,mD,gD,Ls,eG,Qw,cp;function W3e(t){return(e=[],r=t.process.cwd(),n)=>{let o=new Mue(e,r,n,t);return Object.defineProperty(o,"argv",{get:()=>o.parse(),enumerable:!0}),o.help(),o.version(),o}}var T3e=Symbol("copyDoubleDash"),B3e=Symbol("copyDoubleDash"),Tue=Symbol("deleteFromParserHintObject"),D3e=Symbol("emitWarning"),P3e=Symbol("freeze"),R3e=Symbol("getDollarZero"),AD=Symbol("getParserConfiguration"),N3e=Symbol("getUsageConfiguration"),Bue=Symbol("guessLocale"),O3e=Symbol("guessVersion"),F3e=Symbol("parsePositionalNumbers"),Due=Symbol("pkgUp"),ZI=Symbol("populateParserHintArray"),mF=Symbol("populateParserHintSingleValueDictionary"),Pue=Symbol("populateParserHintArrayDictionary"),Rue=Symbol("populateParserHintDictionary"),Nue=Symbol("sanitizeKey"),Oue=Symbol("setKey"),Fue=Symbol("unfreeze"),L3e=Symbol("validateAsync"),j3e=Symbol("getCommandInstance"),M3e=Symbol("getContext"),Q3e=Symbol("getHasOutput"),q3e=Symbol("getLoggerInstance"),U3e=Symbol("getParseContext"),$3e=Symbol("getUsageInstance"),z3e=Symbol("getValidationInstance"),tG=Symbol("hasParseCallback"),H3e=Symbol("isGlobalContext"),yD=Symbol("postProcess"),V3e=Symbol("rebase"),Lue=Symbol("reset"),N8=Symbol("runYargsParserAndExecuteCommands"),jue=Symbol("runValidation"),G3e=Symbol("setHasOutput"),vD=Symbol("kTrackManuallySetKeys"),Mue=class{constructor(e=[],r,n,o){this.customScriptName=!1,this.parsed=!1,Fp.set(this,void 0),lD.set(this,void 0),R8.set(this,{commands:[],fullCommands:[]}),Sv.set(this,null),JA.set(this,null),GV.set(this,"show-hidden"),KI.set(this,null),pD.set(this,!0),WV.set(this,{}),Cv.set(this,!0),YV.set(this,[]),Iv.set(this,void 0),Mw.set(this,{}),KA.set(this,!1),kv.set(this,null),JV.set(this,!0),dF.set(this,void 0),md.set(this,""),Bi.set(this,void 0),KV.set(this,void 0),XV.set(this,{}),XA.set(this,null),fD.set(this,null),hF.set(this,{}),dD.set(this,{}),XI.set(this,void 0),ZV.set(this,!1),xs.set(this,void 0),hD.set(this,!1),mD.set(this,!1),gD.set(this,!1),Ls.set(this,void 0),eG.set(this,{}),Qw.set(this,null),cp.set(this,void 0),ci(this,xs,o,"f"),ci(this,XI,e,"f"),ci(this,lD,r,"f"),ci(this,KV,n,"f"),ci(this,Iv,new zV(this),"f"),this.$0=this[R3e](),this[Lue](),ci(this,Fp,Ve(this,Fp,"f"),"f"),ci(this,Ls,Ve(this,Ls,"f"),"f"),ci(this,cp,Ve(this,cp,"f"),"f"),ci(this,Bi,Ve(this,Bi,"f"),"f"),Ve(this,Bi,"f").showHiddenOpt=Ve(this,GV,"f"),ci(this,dF,this[B3e](),"f")}addHelpOpt(e,r){let n="help";return si("[string|boolean] [string]",[e,r],arguments.length),Ve(this,kv,"f")&&(this[Tue](Ve(this,kv,"f")),ci(this,kv,null,"f")),e===!1&&r===void 0?this:(ci(this,kv,typeof e=="string"?e:n,"f"),this.boolean(Ve(this,kv,"f")),this.describe(Ve(this,kv,"f"),r||Ve(this,Ls,"f").deferY18nLookup("Show help")),this)}help(e,r){return this.addHelpOpt(e,r)}addShowHiddenOpt(e,r){if(si("[string|boolean] [string]",[e,r],arguments.length),e===!1&&r===void 0)return this;let n=typeof e=="string"?e:Ve(this,GV,"f");return this.boolean(n),this.describe(n,r||Ve(this,Ls,"f").deferY18nLookup("Show hidden options")),Ve(this,Bi,"f").showHiddenOpt=n,this}showHidden(e,r){return this.addShowHiddenOpt(e,r)}alias(e,r){return si("<object|string|array> [string|array]",[e,r],arguments.length),this[Pue](this.alias.bind(this),"alias",e,r),this}array(e){return si("<array|string>",[e],arguments.length),this[ZI]("array",e),this[vD](e),this}boolean(e){return si("<array|string>",[e],arguments.length),this[ZI]("boolean",e),this[vD](e),this}check(e,r){return si("<function> [boolean]",[e,r],arguments.length),this.middleware((n,o)=>uD(()=>e(n,o.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&Ve(this,Ls,"f").fail(s.toString(),s):Ve(this,Ls,"f").fail(Ve(this,xs,"f").y18n.__("Argument check failed: %s",e.toString())),n),s=>(Ve(this,Ls,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(e,r){return si("<object|string|array> [string|array]",[e,r],arguments.length),this[Pue](this.choices.bind(this),"choices",e,r),this}coerce(e,r){if(si("<object|string|array> [function]",[e,r],arguments.length),Array.isArray(e)){if(!r)throw new ju("coerce callback must be provided");for(let n of e)this.coerce(n,r);return this}else if(typeof e=="object"){for(let n of Object.keys(e))this.coerce(n,e[n]);return this}if(!r)throw new ju("coerce callback must be provided");return Ve(this,Bi,"f").key[e]=!0,Ve(this,Iv,"f").addCoerceMiddleware((n,o)=>{let s;return Object.prototype.hasOwnProperty.call(n,e)?uD(()=>(s=o.getAliases(),r(n[e])),u=>{n[e]=u;let p=o.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[e]&&p!==!0)for(let f of s[e])n[f]=u;return n},u=>{throw new ju(u.message)}):n},e),this}conflicts(e,r){return si("<string|object> [string|array]",[e,r],arguments.length),Ve(this,cp,"f").conflicts(e,r),this}config(e="config",r,n){return si("[object|string] [string|function] [function]",[e,r,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=B8(e,Ve(this,lD,"f"),this[AD]()["deep-merge-config"]||!1,Ve(this,xs,"f")),Ve(this,Bi,"f").configObjects=(Ve(this,Bi,"f").configObjects||[]).concat(e),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(e,r||Ve(this,Ls,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(o=>{Ve(this,Bi,"f").config[o]=n||!0}),this)}completion(e,r,n){return si("[string] [string|boolean|function] [function]",[e,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),ci(this,JA,e||Ve(this,JA,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(Ve(this,JA,"f"),r),n&&Ve(this,Sv,"f").registerFunction(n),this}command(e,r,n,o,s,c){return si("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,r,n,o,s,c],arguments.length),Ve(this,Fp,"f").addHandler(e,r,n,o,s,c),this}commands(e,r,n,o,s,c){return this.command(e,r,n,o,s,c)}commandDir(e,r){si("<string> [object]",[e,r],arguments.length);let n=Ve(this,KV,"f")||Ve(this,xs,"f").require;return Ve(this,Fp,"f").addDirectory(e,n,Ve(this,xs,"f").getCallerFile(),r),this}count(e){return si("<array|string>",[e],arguments.length),this[ZI]("count",e),this[vD](e),this}default(e,r,n){return si("<object|string|array> [*] [string]",[e,r,n],arguments.length),n&&(_ue(e,Ve(this,xs,"f")),Ve(this,Bi,"f").defaultDescription[e]=n),typeof r=="function"&&(_ue(e,Ve(this,xs,"f")),Ve(this,Bi,"f").defaultDescription[e]||(Ve(this,Bi,"f").defaultDescription[e]=Ve(this,Ls,"f").functionDescription(r)),r=r.call()),this[mF](this.default.bind(this),"default",e,r),this}defaults(e,r,n){return this.default(e,r,n)}demandCommand(e=1,r,n,o){return si("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,r,n,o],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),Ve(this,Bi,"f").demandedCommands._={min:e,max:r,minMsg:n,maxMsg:o},this}demand(e,r,n){return Array.isArray(r)?(r.forEach(o=>{ig(n,!0,Ve(this,xs,"f")),this.demandOption(o,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof e=="number"?(ig(n,!0,Ve(this,xs,"f")),this.demandCommand(e,r,n,n)):Array.isArray(e)?e.forEach(o=>{ig(n,!0,Ve(this,xs,"f")),this.demandOption(o,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,r){return si("<object|string|array> [string]",[e,r],arguments.length),this[mF](this.demandOption.bind(this),"demandedOptions",e,r),this}deprecateOption(e,r){return si("<string> [string|boolean]",[e,r],arguments.length),Ve(this,Bi,"f").deprecatedOptions[e]=r,this}describe(e,r){return si("<object|string|array> [string]",[e,r],arguments.length),this[Oue](e,!0),Ve(this,Ls,"f").describe(e,r),this}detectLocale(e){return si("<boolean>",[e],arguments.length),ci(this,pD,e,"f"),this}env(e){return si("[string|boolean]",[e],arguments.length),e===!1?delete Ve(this,Bi,"f").envPrefix:Ve(this,Bi,"f").envPrefix=e||"",this}epilogue(e){return si("<string>",[e],arguments.length),Ve(this,Ls,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,r){return si("<string|array> [string]",[e,r],arguments.length),Array.isArray(e)?e.forEach(n=>this.example(...n)):Ve(this,Ls,"f").example(e,r),this}exit(e,r){ci(this,KA,!0,"f"),ci(this,KI,r,"f"),Ve(this,Cv,"f")&&Ve(this,xs,"f").process.exit(e)}exitProcess(e=!0){return si("[boolean]",[e],arguments.length),ci(this,Cv,e,"f"),this}fail(e){if(si("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new ju("Invalid first argument. Expected function or boolean 'false'");return Ve(this,Ls,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,r){return si("<array> [function]",[e,r],arguments.length),r?Ve(this,Sv,"f").getCompletion(e,r):new Promise((n,o)=>{Ve(this,Sv,"f").getCompletion(e,(s,c)=>{s?o(s):n(c)})})}getDemandedOptions(){return si([],0),Ve(this,Bi,"f").demandedOptions}getDemandedCommands(){return si([],0),Ve(this,Bi,"f").demandedCommands}getDeprecatedOptions(){return si([],0),Ve(this,Bi,"f").deprecatedOptions}getDetectLocale(){return Ve(this,pD,"f")}getExitProcess(){return Ve(this,Cv,"f")}getGroups(){return Object.assign({},Ve(this,Mw,"f"),Ve(this,dD,"f"))}getHelp(){if(ci(this,KA,!0,"f"),!Ve(this,Ls,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[N8](Ve(this,XI,"f"),void 0,void 0,0,!0);if(Mu(r))return r.then(()=>Ve(this,Ls,"f").help())}let e=Ve(this,Fp,"f").runDefaultBuilderOn(this);if(Mu(e))return e.then(()=>Ve(this,Ls,"f").help())}return Promise.resolve(Ve(this,Ls,"f").help())}getOptions(){return Ve(this,Bi,"f")}getStrict(){return Ve(this,hD,"f")}getStrictCommands(){return Ve(this,mD,"f")}getStrictOptions(){return Ve(this,gD,"f")}global(e,r){return si("<string|array> [boolean]",[e,r],arguments.length),e=[].concat(e),r!==!1?Ve(this,Bi,"f").local=Ve(this,Bi,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{Ve(this,Bi,"f").local.includes(n)||Ve(this,Bi,"f").local.push(n)}),this}group(e,r){si("<string|array> <string>",[e,r],arguments.length);let n=Ve(this,dD,"f")[r]||Ve(this,Mw,"f")[r];Ve(this,dD,"f")[r]&&delete Ve(this,dD,"f")[r];let o={};return Ve(this,Mw,"f")[r]=(n||[]).concat(e).filter(s=>o[s]?!1:o[s]=!0),this}hide(e){return si("<string>",[e],arguments.length),Ve(this,Bi,"f").hiddenOptions.push(e),this}implies(e,r){return si("<string|object> [number|string|array]",[e,r],arguments.length),Ve(this,cp,"f").implies(e,r),this}locale(e){return si("[string]",[e],arguments.length),e===void 0?(this[Bue](),Ve(this,xs,"f").y18n.getLocale()):(ci(this,pD,!1,"f"),Ve(this,xs,"f").y18n.setLocale(e),this)}middleware(e,r,n){return Ve(this,Iv,"f").addMiddleware(e,!!r,n)}nargs(e,r){return si("<string|object|array> [number]",[e,r],arguments.length),this[mF](this.nargs.bind(this),"narg",e,r),this}normalize(e){return si("<array|string>",[e],arguments.length),this[ZI]("normalize",e),this}number(e){return si("<array|string>",[e],arguments.length),this[ZI]("number",e),this[vD](e),this}option(e,r){if(si("<string|object> [object]",[e,r],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof r!="object"&&(r={}),this[vD](e),Ve(this,Qw,"f")&&(e==="version"||(r==null?void 0:r.alias)==="version")&&this[D3e](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
567
567
  `),void 0,"versionWarning"),Ve(this,Bi,"f").key[e]=!0,r.alias&&this.alias(e,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(e,n);let o=r.demand||r.required||r.require;o&&this.demand(e,o),r.demandOption&&this.demandOption(e,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(e,r.conflicts),"default"in r&&this.default(e,r.default),r.implies!==void 0&&this.implies(e,r.implies),r.nargs!==void 0&&this.nargs(e,r.nargs),r.config&&this.config(e,r.configParser),r.normalize&&this.normalize(e),r.choices&&this.choices(e,r.choices),r.coerce&&this.coerce(e,r.coerce),r.group&&this.group(e,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(e),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(e),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(e),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(e),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(e),typeof r.global=="boolean"&&this.global(e,r.global),r.defaultDescription&&(Ve(this,Bi,"f").defaultDescription[e]=r.defaultDescription),r.skipValidation&&this.skipValidation(e);let s=r.describe||r.description||r.desc,c=Ve(this,Ls,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(c,e)||typeof s=="string")&&this.describe(e,s),r.hidden&&this.hide(e),r.requiresArg&&this.requiresArg(e)}return this}options(e,r){return this.option(e,r)}parse(e,r,n){si("[string|array] [function|boolean|object] [function]",[e,r,n],arguments.length),this[P3e](),typeof e>"u"&&(e=Ve(this,XI,"f")),typeof r=="object"&&(ci(this,fD,r,"f"),r=n),typeof r=="function"&&(ci(this,XA,r,"f"),r=!1),r||ci(this,XI,e,"f"),Ve(this,XA,"f")&&ci(this,Cv,!1,"f");let o=this[N8](e,!!r),s=this.parsed;return Ve(this,Sv,"f").setParsed(this.parsed),Mu(o)?o.then(c=>(Ve(this,XA,"f")&&Ve(this,XA,"f").call(this,Ve(this,KI,"f"),c,Ve(this,md,"f")),c)).catch(c=>{throw Ve(this,XA,"f")&&Ve(this,XA,"f")(c,this.parsed.argv,Ve(this,md,"f")),c}).finally(()=>{this[Fue](),this.parsed=s}):(Ve(this,XA,"f")&&Ve(this,XA,"f").call(this,Ve(this,KI,"f"),o,Ve(this,md,"f")),this[Fue](),this.parsed=s,o)}parseAsync(e,r,n){let o=this.parse(e,r,n);return Mu(o)?o:Promise.resolve(o)}parseSync(e,r,n){let o=this.parse(e,r,n);if(Mu(o))throw new ju(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return o}parserConfiguration(e){return si("<object>",[e],arguments.length),ci(this,XV,e,"f"),this}pkgConf(e,r){si("<string> [string]",[e,r],arguments.length);let n=null,o=this[Due](r||Ve(this,lD,"f"));return o[e]&&typeof o[e]=="object"&&(n=B8(o[e],r||Ve(this,lD,"f"),this[AD]()["deep-merge-config"]||!1,Ve(this,xs,"f")),Ve(this,Bi,"f").configObjects=(Ve(this,Bi,"f").configObjects||[]).concat(n)),this}positional(e,r){si("<string> <object>",[e,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=YI(r,(c,u)=>c==="type"&&!["string","number","boolean"].includes(u)?!1:n.includes(c));let o=Ve(this,R8,"f").fullCommands[Ve(this,R8,"f").fullCommands.length-1],s=o?Ve(this,Fp,"f").cmdToParseOptions(o):{array:[],alias:{},default:{},demand:{}};return pF(s).forEach(c=>{let u=s[c];Array.isArray(u)?u.indexOf(e)!==-1&&(r[c]=!0):u[e]&&!(c in r)&&(r[c]=u[e])}),this.group(e,Ve(this,Ls,"f").getPositionalGroupName()),this.option(e,r)}recommendCommands(e=!0){return si("[boolean]",[e],arguments.length),ci(this,ZV,e,"f"),this}required(e,r,n){return this.demand(e,r,n)}require(e,r,n){return this.demand(e,r,n)}requiresArg(e){return si("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&Ve(this,Bi,"f").narg[e]?this:(this[mF](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,r){return si("[string] [string]",[e,r],arguments.length),e=e||this.$0,Ve(this,dF,"f").log(Ve(this,Sv,"f").generateCompletionScript(e,r||Ve(this,JA,"f")||"completion")),this}showHelp(e){if(si("[string|function]",[e],arguments.length),ci(this,KA,!0,"f"),!Ve(this,Ls,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[N8](Ve(this,XI,"f"),void 0,void 0,0,!0);if(Mu(n))return n.then(()=>{Ve(this,Ls,"f").showHelp(e)}),this}let r=Ve(this,Fp,"f").runDefaultBuilderOn(this);if(Mu(r))return r.then(()=>{Ve(this,Ls,"f").showHelp(e)}),this}return Ve(this,Ls,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,r){return si("[boolean|string] [string]",[e,r],arguments.length),Ve(this,Ls,"f").showHelpOnFail(e,r),this}showVersion(e){return si("[string|function]",[e],arguments.length),Ve(this,Ls,"f").showVersion(e),this}skipValidation(e){return si("<array|string>",[e],arguments.length),this[ZI]("skipValidation",e),this}strict(e){return si("[boolean]",[e],arguments.length),ci(this,hD,e!==!1,"f"),this}strictCommands(e){return si("[boolean]",[e],arguments.length),ci(this,mD,e!==!1,"f"),this}strictOptions(e){return si("[boolean]",[e],arguments.length),ci(this,gD,e!==!1,"f"),this}string(e){return si("<array|string>",[e],arguments.length),this[ZI]("string",e),this[vD](e),this}terminalWidth(){return si([],0),Ve(this,xs,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return si("<object>",[e],arguments.length),ci(this,pD,!1,"f"),Ve(this,xs,"f").y18n.updateLocale(e),this}usage(e,r,n,o){if(si("<string|null|undefined> [string|boolean] [function|object] [function]",[e,r,n,o],arguments.length),r!==void 0){if(ig(e,null,Ve(this,xs,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,r,n,o);throw new ju(".usage() description must start with $0 if being used as alias for .command()")}else return Ve(this,Ls,"f").usage(e),this}usageConfiguration(e){return si("<object>",[e],arguments.length),ci(this,eG,e,"f"),this}version(e,r,n){let o="version";if(si("[boolean|string] [string] [string]",[e,r,n],arguments.length),Ve(this,Qw,"f")&&(this[Tue](Ve(this,Qw,"f")),Ve(this,Ls,"f").version(void 0),ci(this,Qw,null,"f")),arguments.length===0)n=this[O3e](),e=o;else if(arguments.length===1){if(e===!1)return this;n=e,e=o}else arguments.length===2&&(n=r,r=void 0);return ci(this,Qw,typeof e=="string"?e:o,"f"),r=r||Ve(this,Ls,"f").deferY18nLookup("Show version number"),Ve(this,Ls,"f").version(n||void 0),this.boolean(Ve(this,Qw,"f")),this.describe(Ve(this,Qw,"f"),r),this}wrap(e){return si("<number|null|undefined>",[e],arguments.length),Ve(this,Ls,"f").wrap(e),this}[(Fp=new WeakMap,lD=new WeakMap,R8=new WeakMap,Sv=new WeakMap,JA=new WeakMap,GV=new WeakMap,KI=new WeakMap,pD=new WeakMap,WV=new WeakMap,Cv=new WeakMap,YV=new WeakMap,Iv=new WeakMap,Mw=new WeakMap,KA=new WeakMap,kv=new WeakMap,JV=new WeakMap,dF=new WeakMap,md=new WeakMap,Bi=new WeakMap,KV=new WeakMap,XV=new WeakMap,XA=new WeakMap,fD=new WeakMap,hF=new WeakMap,dD=new WeakMap,XI=new WeakMap,ZV=new WeakMap,xs=new WeakMap,hD=new WeakMap,mD=new WeakMap,gD=new WeakMap,Ls=new WeakMap,eG=new WeakMap,Qw=new WeakMap,cp=new WeakMap,T3e)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[B3e](){return{log:(...e)=>{this[tG]()||console.log(...e),ci(this,KA,!0,"f"),Ve(this,md,"f").length&&ci(this,md,Ve(this,md,"f")+`
568
568
  `,"f"),ci(this,md,Ve(this,md,"f")+e.join(" "),"f")},error:(...e)=>{this[tG]()||console.error(...e),ci(this,KA,!0,"f"),Ve(this,md,"f").length&&ci(this,md,Ve(this,md,"f")+`
569
- `,"f"),ci(this,md,Ve(this,md,"f")+e.join(" "),"f")}}}[Tue](e){pF(Ve(this,Bi,"f")).forEach(r=>{if((o=>o==="configObjects")(r))return;let n=Ve(this,Bi,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete Ve(this,Ls,"f").getDescriptions()[e]}[D3e](e,r,n){Ve(this,WV,"f")[n]||(Ve(this,xs,"f").process.emitWarning(e,r),Ve(this,WV,"f")[n]=!0)}[P3e](){Ve(this,YV,"f").push({options:Ve(this,Bi,"f"),configObjects:Ve(this,Bi,"f").configObjects.slice(0),exitProcess:Ve(this,Cv,"f"),groups:Ve(this,Mw,"f"),strict:Ve(this,hD,"f"),strictCommands:Ve(this,mD,"f"),strictOptions:Ve(this,gD,"f"),completionCommand:Ve(this,JA,"f"),output:Ve(this,md,"f"),exitError:Ve(this,KI,"f"),hasOutput:Ve(this,KA,"f"),parsed:this.parsed,parseFn:Ve(this,XA,"f"),parseContext:Ve(this,fD,"f")}),Ve(this,Ls,"f").freeze(),Ve(this,cp,"f").freeze(),Ve(this,Fp,"f").freeze(),Ve(this,Iv,"f").freeze()}[R3e](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(Ve(this,xs,"f").process.argv()[0])?r=Ve(this,xs,"f").process.argv().slice(1,2):r=Ve(this,xs,"f").process.argv().slice(0,1),e=r.map(n=>{let o=this[V3e](Ve(this,lD,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&o.length<n.length?o:n}).join(" ").trim(),Ve(this,xs,"f").getEnv("_")&&Ve(this,xs,"f").getProcessArgvBin()===Ve(this,xs,"f").getEnv("_")&&(e=Ve(this,xs,"f").getEnv("_").replace(`${Ve(this,xs,"f").path.dirname(Ve(this,xs,"f").process.execPath())}/`,"")),e}[AD](){return Ve(this,XV,"f")}[N3e](){return Ve(this,eG,"f")}[Bue](){if(!Ve(this,pD,"f"))return;let e=Ve(this,xs,"f").getEnv("LC_ALL")||Ve(this,xs,"f").getEnv("LC_MESSAGES")||Ve(this,xs,"f").getEnv("LANG")||Ve(this,xs,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[O3e](){return this[Due]().version||"unknown"}[F3e](e){let r=e["--"]?e["--"]:e._;for(let n=0,o;(o=r[n])!==void 0;n++)Ve(this,xs,"f").Parser.looksLikeNumber(o)&&Number.isSafeInteger(Math.floor(parseFloat(`${o}`)))&&(r[n]=Number(o));return e}[Due](e){let r=e||"*";if(Ve(this,hF,"f")[r])return Ve(this,hF,"f")[r];let n={};try{let o=e||Ve(this,xs,"f").mainFilename;!e&&Ve(this,xs,"f").path.extname(o)&&(o=Ve(this,xs,"f").path.dirname(o));let s=Ve(this,xs,"f").findUp(o,(c,u)=>{if(u.includes("package.json"))return"package.json"});ig(s,void 0,Ve(this,xs,"f")),n=JSON.parse(Ve(this,xs,"f").readFileSync(s,"utf8"))}catch{}return Ve(this,hF,"f")[r]=n||{},Ve(this,hF,"f")[r]}[ZI](e,r){r=[].concat(r),r.forEach(n=>{n=this[Nue](n),Ve(this,Bi,"f")[e].push(n)})}[mF](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=u})}[Pue](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=(Ve(this,Bi,"f")[s][c]||[]).concat(u)})}[Rue](e,r,n,o,s){if(Array.isArray(n))n.forEach(c=>{e(c,o)});else if((c=>typeof c=="object")(n))for(let c of pF(n))e(c,n[c]);else s(r,this[Nue](n),o)}[Nue](e){return e==="__proto__"?"___proto___":e}[Oue](e,r){return this[mF](this[Oue].bind(this),"key",e,r),this}[Fue](){var e,r,n,o,s,c,u,p,f,h,g,y;let v=Ve(this,YV,"f").pop();ig(v,void 0,Ve(this,xs,"f"));let A;e=this,r=this,n=this,o=this,s=this,c=this,u=this,p=this,f=this,h=this,g=this,y=this,{options:{set value(S){ci(e,Bi,S,"f")}}.value,configObjects:A,exitProcess:{set value(S){ci(r,Cv,S,"f")}}.value,groups:{set value(S){ci(n,Mw,S,"f")}}.value,output:{set value(S){ci(o,md,S,"f")}}.value,exitError:{set value(S){ci(s,KI,S,"f")}}.value,hasOutput:{set value(S){ci(c,KA,S,"f")}}.value,parsed:this.parsed,strict:{set value(S){ci(u,hD,S,"f")}}.value,strictCommands:{set value(S){ci(p,mD,S,"f")}}.value,strictOptions:{set value(S){ci(f,gD,S,"f")}}.value,completionCommand:{set value(S){ci(h,JA,S,"f")}}.value,parseFn:{set value(S){ci(g,XA,S,"f")}}.value,parseContext:{set value(S){ci(y,fD,S,"f")}}.value}=v,Ve(this,Bi,"f").configObjects=A,Ve(this,Ls,"f").unfreeze(),Ve(this,cp,"f").unfreeze(),Ve(this,Fp,"f").unfreeze(),Ve(this,Iv,"f").unfreeze()}[L3e](e,r){return uD(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[j3e].bind(this),getContext:this[M3e].bind(this),getHasOutput:this[Q3e].bind(this),getLoggerInstance:this[q3e].bind(this),getParseContext:this[U3e].bind(this),getParserConfiguration:this[AD].bind(this),getUsageConfiguration:this[N3e].bind(this),getUsageInstance:this[$3e].bind(this),getValidationInstance:this[z3e].bind(this),hasParseCallback:this[tG].bind(this),isGlobalContext:this[H3e].bind(this),postProcess:this[yD].bind(this),reset:this[Lue].bind(this),runValidation:this[jue].bind(this),runYargsParserAndExecuteCommands:this[N8].bind(this),setHasOutput:this[G3e].bind(this)}}[j3e](){return Ve(this,Fp,"f")}[M3e](){return Ve(this,R8,"f")}[Q3e](){return Ve(this,KA,"f")}[q3e](){return Ve(this,dF,"f")}[U3e](){return Ve(this,fD,"f")||{}}[$3e](){return Ve(this,Ls,"f")}[z3e](){return Ve(this,cp,"f")}[tG](){return!!Ve(this,XA,"f")}[H3e](){return Ve(this,JV,"f")}[yD](e,r,n,o){return n||Mu(e)||(r||(e=this[T3e](e)),(this[AD]()["parse-positional-numbers"]||this[AD]()["parse-positional-numbers"]===void 0)&&(e=this[F3e](e)),o&&(e=cD(e,this,Ve(this,Iv,"f").getMiddleware(),!1))),e}[Lue](e={}){ci(this,Bi,Ve(this,Bi,"f")||{},"f");let r={};r.local=Ve(this,Bi,"f").local||[],r.configObjects=Ve(this,Bi,"f").configObjects||[];let n={};r.local.forEach(c=>{n[c]=!0,(e[c]||[]).forEach(u=>{n[u]=!0})}),Object.assign(Ve(this,dD,"f"),Object.keys(Ve(this,Mw,"f")).reduce((c,u)=>{let p=Ve(this,Mw,"f")[u].filter(f=>!(f in n));return p.length>0&&(c[u]=p),c},{})),ci(this,Mw,{},"f");let o=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return o.forEach(c=>{r[c]=(Ve(this,Bi,"f")[c]||[]).filter(u=>!n[u])}),s.forEach(c=>{r[c]=YI(Ve(this,Bi,"f")[c],u=>!n[u])}),r.envPrefix=Ve(this,Bi,"f").envPrefix,ci(this,Bi,r,"f"),ci(this,Ls,Ve(this,Ls,"f")?Ve(this,Ls,"f").reset(n):E3e(this,Ve(this,xs,"f")),"f"),ci(this,cp,Ve(this,cp,"f")?Ve(this,cp,"f").reset(n):k3e(this,Ve(this,Ls,"f"),Ve(this,xs,"f")),"f"),ci(this,Fp,Ve(this,Fp,"f")?Ve(this,Fp,"f").reset():v3e(Ve(this,Ls,"f"),Ve(this,cp,"f"),Ve(this,Iv,"f"),Ve(this,xs,"f")),"f"),Ve(this,Sv,"f")||ci(this,Sv,S3e(this,Ve(this,Ls,"f"),Ve(this,Fp,"f"),Ve(this,xs,"f")),"f"),Ve(this,Iv,"f").reset(),ci(this,JA,null,"f"),ci(this,md,"","f"),ci(this,KI,null,"f"),ci(this,KA,!1,"f"),this.parsed=!1,this}[V3e](e,r){return Ve(this,xs,"f").path.relative(e,r)}[N8](e,r,n,o=0,s=!1){let c=!!n||s;e=e||Ve(this,XI,"f"),Ve(this,Bi,"f").__=Ve(this,xs,"f").y18n.__,Ve(this,Bi,"f").configuration=this[AD]();let u=!!Ve(this,Bi,"f").configuration["populate--"],p=Object.assign({},Ve(this,Bi,"f").configuration,{"populate--":!0}),f=Ve(this,xs,"f").Parser.detailed(e,Object.assign({},Ve(this,Bi,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),h=Object.assign(f.argv,Ve(this,fD,"f")),g,y=f.aliases,v=!1,A=!1;Object.keys(h).forEach(S=>{S===Ve(this,kv,"f")&&h[S]?v=!0:S===Ve(this,Qw,"f")&&h[S]&&(A=!0)}),h.$0=this.$0,this.parsed=f,o===0&&Ve(this,Ls,"f").clearCachedHelpMessage();try{if(this[Bue](),r)return this[yD](h,u,!!n,!1);Ve(this,kv,"f")&&[Ve(this,kv,"f")].concat(y[Ve(this,kv,"f")]||[]).filter(j=>j.length>1).includes(""+h._[h._.length-1])&&(h._.pop(),v=!0),ci(this,JV,!1,"f");let S=Ve(this,Fp,"f").getCommands(),E=Ve(this,Sv,"f").completionKey in h,k=v||E||s;if(h._.length){if(S.length){let P;for(let j=o||0,L;h._[j]!==void 0;j++)if(L=String(h._[j]),S.includes(L)&&L!==Ve(this,JA,"f")){let z=Ve(this,Fp,"f").runCommand(L,this,f,j+1,s,v||A||s);return this[yD](z,u,!!n,!1)}else if(!P&&L!==Ve(this,JA,"f")){P=L;break}!Ve(this,Fp,"f").hasDefaultCommand()&&Ve(this,ZV,"f")&&P&&!k&&Ve(this,cp,"f").recommendCommands(P,S)}Ve(this,JA,"f")&&h._.includes(Ve(this,JA,"f"))&&!E&&(Ve(this,Cv,"f")&&JI(!0),this.showCompletionScript(),this.exit(0))}if(Ve(this,Fp,"f").hasDefaultCommand()&&!k){let P=Ve(this,Fp,"f").runCommand(null,this,f,0,s,v||A||s);return this[yD](P,u,!!n,!1)}if(E){Ve(this,Cv,"f")&&JI(!0),e=[].concat(e);let P=e.slice(e.indexOf(`--${Ve(this,Sv,"f").completionKey}`)+1);return Ve(this,Sv,"f").getCompletion(P,(j,L)=>{if(j)throw new ju(j.message);(L||[]).forEach(z=>{Ve(this,dF,"f").log(z)}),this.exit(0)}),this[yD](h,!u,!!n,!1)}if(Ve(this,KA,"f")||(v?(Ve(this,Cv,"f")&&JI(!0),c=!0,this.showHelp("log"),this.exit(0)):A&&(Ve(this,Cv,"f")&&JI(!0),c=!0,Ve(this,Ls,"f").showVersion("log"),this.exit(0))),!c&&Ve(this,Bi,"f").skipValidation.length>0&&(c=Object.keys(h).some(P=>Ve(this,Bi,"f").skipValidation.indexOf(P)>=0&&h[P]===!0)),!c){if(f.error)throw new ju(f.error.message);if(!E){let P=this[jue](y,{},f.error);n||(g=cD(h,this,Ve(this,Iv,"f").getMiddleware(),!0)),g=this[L3e](P,g!=null?g:h),Mu(g)&&!n&&(g=g.then(()=>cD(h,this,Ve(this,Iv,"f").getMiddleware(),!1)))}}}catch(S){if(S instanceof ju)Ve(this,Ls,"f").fail(S.message,S);else throw S}return this[yD](g!=null?g:h,u,!!n,!0)}[jue](e,r,n,o){let s={...this.getDemandedOptions()};return c=>{if(n)throw new ju(n.message);Ve(this,cp,"f").nonOptionCount(c),Ve(this,cp,"f").requiredArguments(c,s);let u=!1;Ve(this,mD,"f")&&(u=Ve(this,cp,"f").unknownCommands(c)),Ve(this,hD,"f")&&!u?Ve(this,cp,"f").unknownArguments(c,e,r,!!o):Ve(this,gD,"f")&&Ve(this,cp,"f").unknownArguments(c,e,{},!1,!1),Ve(this,cp,"f").limitedChoices(c),Ve(this,cp,"f").implications(c),Ve(this,cp,"f").conflicting(c)}}[G3e](){ci(this,KA,!0,"f")}[vD](e){if(typeof e=="string")Ve(this,Bi,"f").key[e]=!0;else for(let r of e)Ve(this,Bi,"f").key[r]=!0}};function x3e(t){return!!t&&typeof t.getInternalMethods=="function"}var Jtr=W3e(wue),Y3e=Jtr;var yb={name:"edgeone",version:"1.6.20",description:"Command-line interface for TencentCloud Pages Functions",bin:{edgeone:"./edgeone-bin/edgeone.js"},files:["./edgeone-bin/edgeone.js","./edgeone-dist/cli.js","./edgeone-dist/pages/templates","./edgeone-dist/pages/dev/runner-worker.js","./edgeone-dist/pages/observability-python/**","./edgeone-dist/libs-pages-blob-python/**","./edgeone-dist/libs-pages-agent-toolkit/**","./edgeone-dist/studio/**","./libs-pages-blob-python/**","./libs-pages-agent-toolkit/**"],author:"",keywords:["tencent","edgeone","edgefunctions","edgeone","cli","typescript"],scripts:{clean:"rimraf ./edgeone-dist ./edgeone-bin ./libs-node-ai ./libs-kv-client",bundle:"node -r esbuild-register ./scripts/bundle.ts",watch:"node -r esbuild-register ./scripts/bundle.ts watch",build:"npm run clean && npm run build:pages-ai && npm run build:kv-client && npm run prepare:blob-wheel && npm run prepare:agent-toolkit-wheel && npm run bundle","build:pages-ai":"node ./scripts/build-pages-ai.js","build:kv-client":"node ./scripts/build-kv-client.js","prepare:blob-wheel":"node ./scripts/prepare-pages-blob-wheel.js","prepare:agent-toolkit-wheel":"node ./scripts/prepare-pages-agent-toolkit-wheel.js","verify:publish-assets":"node ./scripts/verify-publish-assets.js","upload:agent-version-manifest":"node ./scripts/upload-agent-version-manifest.js",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,md}" "scripts/**/*.{ts,js}" "*.{json,md}"',prepack:"npm run build && npm run verify:publish-assets",prepublishOnly:"npm run build && npm run verify:publish-assets",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:observability":"vitest run --config src/agent/observability/node/tests/vitest.config.ts && cd src/agent/observability/python && uv run pytest tests/ -q"},dependencies:{"@edgeone/framework-detect":"^0.0.2","@edgeone/is-spa":"^0.0.3","@edgeone/nuxt-pages":"1.1.0","@edgeone/opennextjs-pages":"0.2.10","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"^0.0.13",archiver:"^7.0.1",chokidar:"^4.0.1","common-path-prefix":"^1.0.0","cos-nodejs-sdk-v5":"^2.14.7","cross-spawn":"^7.0.6",crypto:"^1.0.1","detect-port":"^2.1.0",esbuild:"^0.19.2","esbuild-plugin-polyfill-node":"^0.3.0","esbuild-plugin-vue":"^0.2.4","fast-glob":"^3.3.0","fs-extra":"^11.3.1",giget:"^2.0.0","ink-table":"^3.1.0",inquirer:"^8.2.4",install:"^0.13.0",lodash:"^4.17.21","mime-types":"^3.0.1",minimatch:"^9.0.5","node-persist":"^4.0.3",npm:"^10.9.1",open:"^8.4.2","p-map":"^5.5.0","parse-gitignore":"^2.0.0",portfinder:"^1.0.32",undici:"^5.29.0",vitest:"^4.0.17"},devDependencies:{"@babel/generator":"^7.28.0","@babel/parser":"^7.28.0","@babel/traverse":"^7.28.0","@babel/types":"^7.28.0","@opentelemetry/api":"^1.9.1","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/otlp-transformer":"^0.55.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/sdk-trace-node":"^1.30.1","@opentelemetry/semantic-conventions":"^1.40.0","@tencent/capi-nodejs-sdk":"^2.3.2","@types/http-proxy":"^1.17.12","@types/inquirer":"^9.0.8","@types/ip":"^1.1.0","@types/lodash":"^4.14.198","@types/prompts":"^2.4.4","@types/react":"^17.0.2","@types/uuid":"^9.0.3","@types/ws":"^8.5.7","@types/yargs":"^17.0.24","@vitest/coverage-v8":"^4.0.17",axios:"^1.7.9",chalk:"^5.3.0",cookie:"^1.0.2",dotenv:"^16.3.1","esbuild-register":"^3.6.0",execa:"^7.1.1","http-proxy":"^1.18.1",husky:"^8.0.3",ink:"^3.2.0",ip:"^2.0.1",json5:"^2.2.3","lint-staged":"^15.2.0",lodash:"^4.17.21",moment:"^2.30.1","node-fetch":"^3.3.2",prettier:"^3.1.1",prompts:"^2.4.2",protobufjs:"^8.4.2",react:"^17.0.2",rimraf:"^6.0.1",semiver:"^1.1.0",sirv:"^2.0.3","tencentcloud-cls-sdk-js-web":"^1.0.13","ts-node":"^10.9.2",typescript:"^5.9.3","update-check":"^1.5.4",uuid:"^9.0.0",ws:"^8.14.2",yargs:"^17.6.2",zod:"^3.23.8","zod-to-json-schema":"^3.23.5"},engines:{node:">=12"},"lint-staged":{"*.{ts,tsx,js,jsx,json,md}":["prettier --write"]}};var Fde=Bt(Wc()),Lde=Bt(PF()),jde=Bt(Upe());function Pq(t,e){return function(){return t.apply(e,arguments)}}var{toString:Kor}=Object.prototype,{getPrototypeOf:VG}=Object,{iterator:GG,toStringTag:O6e}=Symbol,WG=(t=>e=>{let r=Kor.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ib=t=>(t=t.toLowerCase(),e=>WG(e)===t),YG=t=>e=>typeof e===t,{isArray:PD}=Array,OF=YG("undefined");function FF(t){return t!==null&&!OF(t)&&t.constructor!==null&&!OF(t.constructor)&&O0(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var F6e=Ib("ArrayBuffer");function Xor(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&F6e(t.buffer),e}var Zor=YG("string"),O0=YG("function"),L6e=YG("number"),Rq=t=>t!==null&&typeof t=="object",ear=t=>t===!0||t===!1,HG=t=>{if(WG(t)!=="object")return!1;let e=VG(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(O6e in t)&&!(GG in t)},tar=t=>{if(!Rq(t)||FF(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},rar=Ib("Date"),nar=Ib("File"),iar=t=>!!(t&&typeof t.uri<"u"),sar=t=>t&&typeof t.getParts<"u",oar=Ib("Blob"),aar=Ib("FileList"),car=t=>Rq(t)&&O0(t.pipe);function uar(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var R6e=uar(),N6e=typeof R6e.FormData<"u"?R6e.FormData:void 0,lar=t=>{if(!t)return!1;if(N6e&&t instanceof N6e)return!0;let e=VG(t);if(!e||e===Object.prototype||!O0(t.append))return!1;let r=WG(t);return r==="formdata"||r==="object"&&O0(t.toString)&&t.toString()==="[object FormData]"},par=Ib("URLSearchParams"),[far,dar,har,mar]=["ReadableStream","Request","Response","Headers"].map(Ib),gar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nq(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),PD(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(FF(t))return;let s=r?Object.getOwnPropertyNames(t):Object.keys(t),c=s.length,u;for(n=0;n<c;n++)u=s[n],e.call(null,t[u],u,t)}}function j6e(t,e){if(FF(t))return null;e=e.toLowerCase();let r=Object.keys(t),n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}var DD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,M6e=t=>!OF(t)&&t!==DD;function $pe(...t){let{caseless:e,skipUndefined:r}=M6e(this)&&this||{},n={},o=(s,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;let u=e&&typeof c=="string"&&j6e(n,c)||c,p=zpe(n,u)?n[u]:void 0;HG(p)&&HG(s)?n[u]=$pe(p,s):HG(s)?n[u]=$pe({},s):PD(s)?n[u]=s.slice():(!r||!OF(s))&&(n[u]=s)};for(let s=0,c=t.length;s<c;s++){let u=t[s];if(!u||FF(u)||(Nq(u,o),typeof u!="object"||PD(u)))continue;let p=Object.getOwnPropertySymbols(u);for(let f=0;f<p.length;f++){let h=p[f];Tar.call(u,h)&&o(u[h],h)}}return n}var Aar=(t,e,r,{allOwnKeys:n}={})=>(Nq(e,(o,s)=>{r&&O0(o)?Object.defineProperty(t,s,{__proto__:null,value:Pq(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),yar=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),xar=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},bar=(t,e,r,n)=>{let o,s,c,u={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)c=o[s],(!n||n(c,t,e))&&!u[c]&&(e[c]=t[c],u[c]=!0);t=r!==!1&&VG(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ear=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},war=t=>{if(!t)return null;if(PD(t))return t;let e=t.length;if(!L6e(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},_ar=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&VG(Uint8Array)),Sar=(t,e)=>{let n=(t&&t[GG]).call(t),o;for(;(o=n.next())&&!o.done;){let s=o.value;e.call(t,s[0],s[1])}},Car=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Iar=Ib("HTMLFormElement"),kar=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),zpe=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),{propertyIsEnumerable:Tar}=Object.prototype,Bar=Ib("RegExp"),Q6e=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Nq(r,(o,s)=>{let c;(c=e(o,s,t))!==!1&&(n[s]=c||o)}),Object.defineProperties(t,n)},Dar=t=>{Q6e(t,(e,r)=>{if(O0(t)&&["arguments","caller","callee"].includes(r))return!1;let n=t[r];if(O0(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Par=(t,e)=>{let r={},n=o=>{o.forEach(s=>{r[s]=!0})};return PD(t)?n(t):n(String(t).split(e)),r},Rar=()=>{},Nar=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Oar(t){return!!(t&&O0(t.append)&&t[O6e]==="FormData"&&t[GG])}var Far=t=>{let e=new WeakSet,r=n=>{if(Rq(n)){if(e.has(n))return;if(FF(n))return n;if(!("toJSON"in n)){e.add(n);let o=PD(n)?[]:{};return Nq(n,(s,c)=>{let u=r(s);!OF(u)&&(o[c]=u)}),e.delete(n),o}}return n};return r(t)},Lar=Ib("AsyncFunction"),jar=t=>t&&(Rq(t)||O0(t))&&O0(t.then)&&O0(t.catch),q6e=((t,e)=>t?setImmediate:e?((r,n)=>(DD.addEventListener("message",({source:o,data:s})=>{o===DD&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),DD.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",O0(DD.postMessage)),Mar=typeof queueMicrotask<"u"?queueMicrotask.bind(DD):typeof process<"u"&&process.nextTick||q6e,Qar=t=>t!=null&&O0(t[GG]),lt={isArray:PD,isArrayBuffer:F6e,isBuffer:FF,isFormData:lar,isArrayBufferView:Xor,isString:Zor,isNumber:L6e,isBoolean:ear,isObject:Rq,isPlainObject:HG,isEmptyObject:tar,isReadableStream:far,isRequest:dar,isResponse:har,isHeaders:mar,isUndefined:OF,isDate:rar,isFile:nar,isReactNativeBlob:iar,isReactNative:sar,isBlob:oar,isRegExp:Bar,isFunction:O0,isStream:car,isURLSearchParams:par,isTypedArray:_ar,isFileList:aar,forEach:Nq,merge:$pe,extend:Aar,trim:gar,stripBOM:yar,inherits:xar,toFlatObject:bar,kindOf:WG,kindOfTest:Ib,endsWith:Ear,toArray:war,forEachEntry:Sar,matchAll:Car,isHTMLForm:Iar,hasOwnProperty:zpe,hasOwnProp:zpe,reduceDescriptors:Q6e,freezeMethods:Dar,toObjectSet:Par,toCamelCase:kar,noop:Rar,toFiniteNumber:Nar,findKey:j6e,global:DD,isContextDefined:M6e,isSpecCompliantForm:Oar,toJSONObject:Far,isAsyncFn:Lar,isThenable:jar,setImmediate:q6e,asap:Mar,isIterable:Qar};var qar=lt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),U6e=t=>{let e={},r,n,o;return t&&t.split(`
569
+ `,"f"),ci(this,md,Ve(this,md,"f")+e.join(" "),"f")}}}[Tue](e){pF(Ve(this,Bi,"f")).forEach(r=>{if((o=>o==="configObjects")(r))return;let n=Ve(this,Bi,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete Ve(this,Ls,"f").getDescriptions()[e]}[D3e](e,r,n){Ve(this,WV,"f")[n]||(Ve(this,xs,"f").process.emitWarning(e,r),Ve(this,WV,"f")[n]=!0)}[P3e](){Ve(this,YV,"f").push({options:Ve(this,Bi,"f"),configObjects:Ve(this,Bi,"f").configObjects.slice(0),exitProcess:Ve(this,Cv,"f"),groups:Ve(this,Mw,"f"),strict:Ve(this,hD,"f"),strictCommands:Ve(this,mD,"f"),strictOptions:Ve(this,gD,"f"),completionCommand:Ve(this,JA,"f"),output:Ve(this,md,"f"),exitError:Ve(this,KI,"f"),hasOutput:Ve(this,KA,"f"),parsed:this.parsed,parseFn:Ve(this,XA,"f"),parseContext:Ve(this,fD,"f")}),Ve(this,Ls,"f").freeze(),Ve(this,cp,"f").freeze(),Ve(this,Fp,"f").freeze(),Ve(this,Iv,"f").freeze()}[R3e](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(Ve(this,xs,"f").process.argv()[0])?r=Ve(this,xs,"f").process.argv().slice(1,2):r=Ve(this,xs,"f").process.argv().slice(0,1),e=r.map(n=>{let o=this[V3e](Ve(this,lD,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&o.length<n.length?o:n}).join(" ").trim(),Ve(this,xs,"f").getEnv("_")&&Ve(this,xs,"f").getProcessArgvBin()===Ve(this,xs,"f").getEnv("_")&&(e=Ve(this,xs,"f").getEnv("_").replace(`${Ve(this,xs,"f").path.dirname(Ve(this,xs,"f").process.execPath())}/`,"")),e}[AD](){return Ve(this,XV,"f")}[N3e](){return Ve(this,eG,"f")}[Bue](){if(!Ve(this,pD,"f"))return;let e=Ve(this,xs,"f").getEnv("LC_ALL")||Ve(this,xs,"f").getEnv("LC_MESSAGES")||Ve(this,xs,"f").getEnv("LANG")||Ve(this,xs,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[O3e](){return this[Due]().version||"unknown"}[F3e](e){let r=e["--"]?e["--"]:e._;for(let n=0,o;(o=r[n])!==void 0;n++)Ve(this,xs,"f").Parser.looksLikeNumber(o)&&Number.isSafeInteger(Math.floor(parseFloat(`${o}`)))&&(r[n]=Number(o));return e}[Due](e){let r=e||"*";if(Ve(this,hF,"f")[r])return Ve(this,hF,"f")[r];let n={};try{let o=e||Ve(this,xs,"f").mainFilename;!e&&Ve(this,xs,"f").path.extname(o)&&(o=Ve(this,xs,"f").path.dirname(o));let s=Ve(this,xs,"f").findUp(o,(c,u)=>{if(u.includes("package.json"))return"package.json"});ig(s,void 0,Ve(this,xs,"f")),n=JSON.parse(Ve(this,xs,"f").readFileSync(s,"utf8"))}catch{}return Ve(this,hF,"f")[r]=n||{},Ve(this,hF,"f")[r]}[ZI](e,r){r=[].concat(r),r.forEach(n=>{n=this[Nue](n),Ve(this,Bi,"f")[e].push(n)})}[mF](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=u})}[Pue](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=(Ve(this,Bi,"f")[s][c]||[]).concat(u)})}[Rue](e,r,n,o,s){if(Array.isArray(n))n.forEach(c=>{e(c,o)});else if((c=>typeof c=="object")(n))for(let c of pF(n))e(c,n[c]);else s(r,this[Nue](n),o)}[Nue](e){return e==="__proto__"?"___proto___":e}[Oue](e,r){return this[mF](this[Oue].bind(this),"key",e,r),this}[Fue](){var e,r,n,o,s,c,u,p,f,h,g,y;let v=Ve(this,YV,"f").pop();ig(v,void 0,Ve(this,xs,"f"));let A;e=this,r=this,n=this,o=this,s=this,c=this,u=this,p=this,f=this,h=this,g=this,y=this,{options:{set value(S){ci(e,Bi,S,"f")}}.value,configObjects:A,exitProcess:{set value(S){ci(r,Cv,S,"f")}}.value,groups:{set value(S){ci(n,Mw,S,"f")}}.value,output:{set value(S){ci(o,md,S,"f")}}.value,exitError:{set value(S){ci(s,KI,S,"f")}}.value,hasOutput:{set value(S){ci(c,KA,S,"f")}}.value,parsed:this.parsed,strict:{set value(S){ci(u,hD,S,"f")}}.value,strictCommands:{set value(S){ci(p,mD,S,"f")}}.value,strictOptions:{set value(S){ci(f,gD,S,"f")}}.value,completionCommand:{set value(S){ci(h,JA,S,"f")}}.value,parseFn:{set value(S){ci(g,XA,S,"f")}}.value,parseContext:{set value(S){ci(y,fD,S,"f")}}.value}=v,Ve(this,Bi,"f").configObjects=A,Ve(this,Ls,"f").unfreeze(),Ve(this,cp,"f").unfreeze(),Ve(this,Fp,"f").unfreeze(),Ve(this,Iv,"f").unfreeze()}[L3e](e,r){return uD(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[j3e].bind(this),getContext:this[M3e].bind(this),getHasOutput:this[Q3e].bind(this),getLoggerInstance:this[q3e].bind(this),getParseContext:this[U3e].bind(this),getParserConfiguration:this[AD].bind(this),getUsageConfiguration:this[N3e].bind(this),getUsageInstance:this[$3e].bind(this),getValidationInstance:this[z3e].bind(this),hasParseCallback:this[tG].bind(this),isGlobalContext:this[H3e].bind(this),postProcess:this[yD].bind(this),reset:this[Lue].bind(this),runValidation:this[jue].bind(this),runYargsParserAndExecuteCommands:this[N8].bind(this),setHasOutput:this[G3e].bind(this)}}[j3e](){return Ve(this,Fp,"f")}[M3e](){return Ve(this,R8,"f")}[Q3e](){return Ve(this,KA,"f")}[q3e](){return Ve(this,dF,"f")}[U3e](){return Ve(this,fD,"f")||{}}[$3e](){return Ve(this,Ls,"f")}[z3e](){return Ve(this,cp,"f")}[tG](){return!!Ve(this,XA,"f")}[H3e](){return Ve(this,JV,"f")}[yD](e,r,n,o){return n||Mu(e)||(r||(e=this[T3e](e)),(this[AD]()["parse-positional-numbers"]||this[AD]()["parse-positional-numbers"]===void 0)&&(e=this[F3e](e)),o&&(e=cD(e,this,Ve(this,Iv,"f").getMiddleware(),!1))),e}[Lue](e={}){ci(this,Bi,Ve(this,Bi,"f")||{},"f");let r={};r.local=Ve(this,Bi,"f").local||[],r.configObjects=Ve(this,Bi,"f").configObjects||[];let n={};r.local.forEach(c=>{n[c]=!0,(e[c]||[]).forEach(u=>{n[u]=!0})}),Object.assign(Ve(this,dD,"f"),Object.keys(Ve(this,Mw,"f")).reduce((c,u)=>{let p=Ve(this,Mw,"f")[u].filter(f=>!(f in n));return p.length>0&&(c[u]=p),c},{})),ci(this,Mw,{},"f");let o=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return o.forEach(c=>{r[c]=(Ve(this,Bi,"f")[c]||[]).filter(u=>!n[u])}),s.forEach(c=>{r[c]=YI(Ve(this,Bi,"f")[c],u=>!n[u])}),r.envPrefix=Ve(this,Bi,"f").envPrefix,ci(this,Bi,r,"f"),ci(this,Ls,Ve(this,Ls,"f")?Ve(this,Ls,"f").reset(n):E3e(this,Ve(this,xs,"f")),"f"),ci(this,cp,Ve(this,cp,"f")?Ve(this,cp,"f").reset(n):k3e(this,Ve(this,Ls,"f"),Ve(this,xs,"f")),"f"),ci(this,Fp,Ve(this,Fp,"f")?Ve(this,Fp,"f").reset():v3e(Ve(this,Ls,"f"),Ve(this,cp,"f"),Ve(this,Iv,"f"),Ve(this,xs,"f")),"f"),Ve(this,Sv,"f")||ci(this,Sv,S3e(this,Ve(this,Ls,"f"),Ve(this,Fp,"f"),Ve(this,xs,"f")),"f"),Ve(this,Iv,"f").reset(),ci(this,JA,null,"f"),ci(this,md,"","f"),ci(this,KI,null,"f"),ci(this,KA,!1,"f"),this.parsed=!1,this}[V3e](e,r){return Ve(this,xs,"f").path.relative(e,r)}[N8](e,r,n,o=0,s=!1){let c=!!n||s;e=e||Ve(this,XI,"f"),Ve(this,Bi,"f").__=Ve(this,xs,"f").y18n.__,Ve(this,Bi,"f").configuration=this[AD]();let u=!!Ve(this,Bi,"f").configuration["populate--"],p=Object.assign({},Ve(this,Bi,"f").configuration,{"populate--":!0}),f=Ve(this,xs,"f").Parser.detailed(e,Object.assign({},Ve(this,Bi,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),h=Object.assign(f.argv,Ve(this,fD,"f")),g,y=f.aliases,v=!1,A=!1;Object.keys(h).forEach(S=>{S===Ve(this,kv,"f")&&h[S]?v=!0:S===Ve(this,Qw,"f")&&h[S]&&(A=!0)}),h.$0=this.$0,this.parsed=f,o===0&&Ve(this,Ls,"f").clearCachedHelpMessage();try{if(this[Bue](),r)return this[yD](h,u,!!n,!1);Ve(this,kv,"f")&&[Ve(this,kv,"f")].concat(y[Ve(this,kv,"f")]||[]).filter(j=>j.length>1).includes(""+h._[h._.length-1])&&(h._.pop(),v=!0),ci(this,JV,!1,"f");let S=Ve(this,Fp,"f").getCommands(),E=Ve(this,Sv,"f").completionKey in h,k=v||E||s;if(h._.length){if(S.length){let P;for(let j=o||0,L;h._[j]!==void 0;j++)if(L=String(h._[j]),S.includes(L)&&L!==Ve(this,JA,"f")){let z=Ve(this,Fp,"f").runCommand(L,this,f,j+1,s,v||A||s);return this[yD](z,u,!!n,!1)}else if(!P&&L!==Ve(this,JA,"f")){P=L;break}!Ve(this,Fp,"f").hasDefaultCommand()&&Ve(this,ZV,"f")&&P&&!k&&Ve(this,cp,"f").recommendCommands(P,S)}Ve(this,JA,"f")&&h._.includes(Ve(this,JA,"f"))&&!E&&(Ve(this,Cv,"f")&&JI(!0),this.showCompletionScript(),this.exit(0))}if(Ve(this,Fp,"f").hasDefaultCommand()&&!k){let P=Ve(this,Fp,"f").runCommand(null,this,f,0,s,v||A||s);return this[yD](P,u,!!n,!1)}if(E){Ve(this,Cv,"f")&&JI(!0),e=[].concat(e);let P=e.slice(e.indexOf(`--${Ve(this,Sv,"f").completionKey}`)+1);return Ve(this,Sv,"f").getCompletion(P,(j,L)=>{if(j)throw new ju(j.message);(L||[]).forEach(z=>{Ve(this,dF,"f").log(z)}),this.exit(0)}),this[yD](h,!u,!!n,!1)}if(Ve(this,KA,"f")||(v?(Ve(this,Cv,"f")&&JI(!0),c=!0,this.showHelp("log"),this.exit(0)):A&&(Ve(this,Cv,"f")&&JI(!0),c=!0,Ve(this,Ls,"f").showVersion("log"),this.exit(0))),!c&&Ve(this,Bi,"f").skipValidation.length>0&&(c=Object.keys(h).some(P=>Ve(this,Bi,"f").skipValidation.indexOf(P)>=0&&h[P]===!0)),!c){if(f.error)throw new ju(f.error.message);if(!E){let P=this[jue](y,{},f.error);n||(g=cD(h,this,Ve(this,Iv,"f").getMiddleware(),!0)),g=this[L3e](P,g!=null?g:h),Mu(g)&&!n&&(g=g.then(()=>cD(h,this,Ve(this,Iv,"f").getMiddleware(),!1)))}}}catch(S){if(S instanceof ju)Ve(this,Ls,"f").fail(S.message,S);else throw S}return this[yD](g!=null?g:h,u,!!n,!0)}[jue](e,r,n,o){let s={...this.getDemandedOptions()};return c=>{if(n)throw new ju(n.message);Ve(this,cp,"f").nonOptionCount(c),Ve(this,cp,"f").requiredArguments(c,s);let u=!1;Ve(this,mD,"f")&&(u=Ve(this,cp,"f").unknownCommands(c)),Ve(this,hD,"f")&&!u?Ve(this,cp,"f").unknownArguments(c,e,r,!!o):Ve(this,gD,"f")&&Ve(this,cp,"f").unknownArguments(c,e,{},!1,!1),Ve(this,cp,"f").limitedChoices(c),Ve(this,cp,"f").implications(c),Ve(this,cp,"f").conflicting(c)}}[G3e](){ci(this,KA,!0,"f")}[vD](e){if(typeof e=="string")Ve(this,Bi,"f").key[e]=!0;else for(let r of e)Ve(this,Bi,"f").key[r]=!0}};function x3e(t){return!!t&&typeof t.getInternalMethods=="function"}var Jtr=W3e(wue),Y3e=Jtr;var yb={name:"edgeone",version:"1.6.21",description:"Command-line interface for TencentCloud Pages Functions",bin:{edgeone:"./edgeone-bin/edgeone.js"},files:["./edgeone-bin/edgeone.js","./edgeone-dist/cli.js","./edgeone-dist/pages/templates","./edgeone-dist/pages/dev/runner-worker.js","./edgeone-dist/pages/observability-python/**","./edgeone-dist/libs-pages-blob-python/**","./edgeone-dist/libs-pages-agent-toolkit/**","./edgeone-dist/studio/**","./libs-pages-blob-python/**","./libs-pages-agent-toolkit/**"],author:"",keywords:["tencent","edgeone","edgefunctions","edgeone","cli","typescript"],scripts:{clean:"rimraf ./edgeone-dist ./edgeone-bin ./libs-node-ai ./libs-kv-client",bundle:"node -r esbuild-register ./scripts/bundle.ts",watch:"node -r esbuild-register ./scripts/bundle.ts watch",build:"npm run clean && npm run build:pages-ai && npm run build:kv-client && npm run prepare:blob-wheel && npm run prepare:agent-toolkit-wheel && npm run bundle","build:pages-ai":"node ./scripts/build-pages-ai.js","build:kv-client":"node ./scripts/build-kv-client.js","prepare:blob-wheel":"node ./scripts/prepare-pages-blob-wheel.js","prepare:agent-toolkit-wheel":"node ./scripts/prepare-pages-agent-toolkit-wheel.js","verify:publish-assets":"node ./scripts/verify-publish-assets.js","upload:agent-version-manifest":"node ./scripts/upload-agent-version-manifest.js",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,md}" "scripts/**/*.{ts,js}" "*.{json,md}"',prepack:"npm run build && npm run verify:publish-assets",prepublishOnly:"npm run build && npm run verify:publish-assets",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:observability":"vitest run --config src/agent/observability/node/tests/vitest.config.ts && cd src/agent/observability/python && uv run pytest tests/ -q"},dependencies:{"@edgeone/framework-detect":"^0.0.2","@edgeone/is-spa":"^0.0.3","@edgeone/nuxt-pages":"1.1.0","@edgeone/opennextjs-pages":"0.2.10","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"^0.0.16",archiver:"^7.0.1",chokidar:"^4.0.1","common-path-prefix":"^1.0.0","cos-nodejs-sdk-v5":"^2.14.7","cross-spawn":"^7.0.6",crypto:"^1.0.1","detect-port":"^2.1.0",esbuild:"^0.19.2","esbuild-plugin-polyfill-node":"^0.3.0","esbuild-plugin-vue":"^0.2.4","fast-glob":"^3.3.0","fs-extra":"^11.3.1",giget:"^2.0.0","ink-table":"^3.1.0",inquirer:"^8.2.4",install:"^0.13.0",lodash:"^4.17.21","mime-types":"^3.0.1",minimatch:"^9.0.5","node-persist":"^4.0.3",npm:"^10.9.1",open:"^8.4.2","p-map":"^5.5.0","parse-gitignore":"^2.0.0",portfinder:"^1.0.32",undici:"^5.29.0",vitest:"^4.0.17"},devDependencies:{"@babel/generator":"^7.28.0","@babel/parser":"^7.28.0","@babel/traverse":"^7.28.0","@babel/types":"^7.28.0","@opentelemetry/api":"^1.9.1","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/otlp-transformer":"^0.55.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/sdk-trace-node":"^1.30.1","@opentelemetry/semantic-conventions":"^1.40.0","@tencent/capi-nodejs-sdk":"^2.3.2","@types/http-proxy":"^1.17.12","@types/inquirer":"^9.0.8","@types/ip":"^1.1.0","@types/lodash":"^4.14.198","@types/prompts":"^2.4.4","@types/react":"^17.0.2","@types/uuid":"^9.0.3","@types/ws":"^8.5.7","@types/yargs":"^17.0.24","@vitest/coverage-v8":"^4.0.17",axios:"^1.7.9",chalk:"^5.3.0",cookie:"^1.0.2",dotenv:"^16.3.1","esbuild-register":"^3.6.0",execa:"^7.1.1","http-proxy":"^1.18.1",husky:"^8.0.3",ink:"^3.2.0",ip:"^2.0.1",json5:"^2.2.3","lint-staged":"^15.2.0",lodash:"^4.17.21",moment:"^2.30.1","node-fetch":"^3.3.2",prettier:"^3.1.1",prompts:"^2.4.2",protobufjs:"^8.4.2",react:"^17.0.2",rimraf:"^6.0.1",semiver:"^1.1.0",sirv:"^2.0.3","tencentcloud-cls-sdk-js-web":"^1.0.13","ts-node":"^10.9.2",typescript:"^5.9.3","update-check":"^1.5.4",uuid:"^9.0.0",ws:"^8.14.2",yargs:"^17.6.2",zod:"^3.23.8","zod-to-json-schema":"^3.23.5"},engines:{node:">=12"},"lint-staged":{"*.{ts,tsx,js,jsx,json,md}":["prettier --write"]}};var Fde=Bt(Wc()),Lde=Bt(PF()),jde=Bt(Upe());function Pq(t,e){return function(){return t.apply(e,arguments)}}var{toString:Kor}=Object.prototype,{getPrototypeOf:VG}=Object,{iterator:GG,toStringTag:O6e}=Symbol,WG=(t=>e=>{let r=Kor.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ib=t=>(t=t.toLowerCase(),e=>WG(e)===t),YG=t=>e=>typeof e===t,{isArray:PD}=Array,OF=YG("undefined");function FF(t){return t!==null&&!OF(t)&&t.constructor!==null&&!OF(t.constructor)&&O0(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var F6e=Ib("ArrayBuffer");function Xor(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&F6e(t.buffer),e}var Zor=YG("string"),O0=YG("function"),L6e=YG("number"),Rq=t=>t!==null&&typeof t=="object",ear=t=>t===!0||t===!1,HG=t=>{if(WG(t)!=="object")return!1;let e=VG(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(O6e in t)&&!(GG in t)},tar=t=>{if(!Rq(t)||FF(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},rar=Ib("Date"),nar=Ib("File"),iar=t=>!!(t&&typeof t.uri<"u"),sar=t=>t&&typeof t.getParts<"u",oar=Ib("Blob"),aar=Ib("FileList"),car=t=>Rq(t)&&O0(t.pipe);function uar(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var R6e=uar(),N6e=typeof R6e.FormData<"u"?R6e.FormData:void 0,lar=t=>{if(!t)return!1;if(N6e&&t instanceof N6e)return!0;let e=VG(t);if(!e||e===Object.prototype||!O0(t.append))return!1;let r=WG(t);return r==="formdata"||r==="object"&&O0(t.toString)&&t.toString()==="[object FormData]"},par=Ib("URLSearchParams"),[far,dar,har,mar]=["ReadableStream","Request","Response","Headers"].map(Ib),gar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nq(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),PD(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(FF(t))return;let s=r?Object.getOwnPropertyNames(t):Object.keys(t),c=s.length,u;for(n=0;n<c;n++)u=s[n],e.call(null,t[u],u,t)}}function j6e(t,e){if(FF(t))return null;e=e.toLowerCase();let r=Object.keys(t),n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}var DD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,M6e=t=>!OF(t)&&t!==DD;function $pe(...t){let{caseless:e,skipUndefined:r}=M6e(this)&&this||{},n={},o=(s,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;let u=e&&typeof c=="string"&&j6e(n,c)||c,p=zpe(n,u)?n[u]:void 0;HG(p)&&HG(s)?n[u]=$pe(p,s):HG(s)?n[u]=$pe({},s):PD(s)?n[u]=s.slice():(!r||!OF(s))&&(n[u]=s)};for(let s=0,c=t.length;s<c;s++){let u=t[s];if(!u||FF(u)||(Nq(u,o),typeof u!="object"||PD(u)))continue;let p=Object.getOwnPropertySymbols(u);for(let f=0;f<p.length;f++){let h=p[f];Tar.call(u,h)&&o(u[h],h)}}return n}var Aar=(t,e,r,{allOwnKeys:n}={})=>(Nq(e,(o,s)=>{r&&O0(o)?Object.defineProperty(t,s,{__proto__:null,value:Pq(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),yar=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),xar=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},bar=(t,e,r,n)=>{let o,s,c,u={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)c=o[s],(!n||n(c,t,e))&&!u[c]&&(e[c]=t[c],u[c]=!0);t=r!==!1&&VG(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ear=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},war=t=>{if(!t)return null;if(PD(t))return t;let e=t.length;if(!L6e(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},_ar=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&VG(Uint8Array)),Sar=(t,e)=>{let n=(t&&t[GG]).call(t),o;for(;(o=n.next())&&!o.done;){let s=o.value;e.call(t,s[0],s[1])}},Car=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Iar=Ib("HTMLFormElement"),kar=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),zpe=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),{propertyIsEnumerable:Tar}=Object.prototype,Bar=Ib("RegExp"),Q6e=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Nq(r,(o,s)=>{let c;(c=e(o,s,t))!==!1&&(n[s]=c||o)}),Object.defineProperties(t,n)},Dar=t=>{Q6e(t,(e,r)=>{if(O0(t)&&["arguments","caller","callee"].includes(r))return!1;let n=t[r];if(O0(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Par=(t,e)=>{let r={},n=o=>{o.forEach(s=>{r[s]=!0})};return PD(t)?n(t):n(String(t).split(e)),r},Rar=()=>{},Nar=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Oar(t){return!!(t&&O0(t.append)&&t[O6e]==="FormData"&&t[GG])}var Far=t=>{let e=new WeakSet,r=n=>{if(Rq(n)){if(e.has(n))return;if(FF(n))return n;if(!("toJSON"in n)){e.add(n);let o=PD(n)?[]:{};return Nq(n,(s,c)=>{let u=r(s);!OF(u)&&(o[c]=u)}),e.delete(n),o}}return n};return r(t)},Lar=Ib("AsyncFunction"),jar=t=>t&&(Rq(t)||O0(t))&&O0(t.then)&&O0(t.catch),q6e=((t,e)=>t?setImmediate:e?((r,n)=>(DD.addEventListener("message",({source:o,data:s})=>{o===DD&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),DD.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",O0(DD.postMessage)),Mar=typeof queueMicrotask<"u"?queueMicrotask.bind(DD):typeof process<"u"&&process.nextTick||q6e,Qar=t=>t!=null&&O0(t[GG]),lt={isArray:PD,isArrayBuffer:F6e,isBuffer:FF,isFormData:lar,isArrayBufferView:Xor,isString:Zor,isNumber:L6e,isBoolean:ear,isObject:Rq,isPlainObject:HG,isEmptyObject:tar,isReadableStream:far,isRequest:dar,isResponse:har,isHeaders:mar,isUndefined:OF,isDate:rar,isFile:nar,isReactNativeBlob:iar,isReactNative:sar,isBlob:oar,isRegExp:Bar,isFunction:O0,isStream:car,isURLSearchParams:par,isTypedArray:_ar,isFileList:aar,forEach:Nq,merge:$pe,extend:Aar,trim:gar,stripBOM:yar,inherits:xar,toFlatObject:bar,kindOf:WG,kindOfTest:Ib,endsWith:Ear,toArray:war,forEachEntry:Sar,matchAll:Car,isHTMLForm:Iar,hasOwnProperty:zpe,hasOwnProp:zpe,reduceDescriptors:Q6e,freezeMethods:Dar,toObjectSet:Par,toCamelCase:kar,noop:Rar,toFiniteNumber:Nar,findKey:j6e,global:DD,isContextDefined:M6e,isSpecCompliantForm:Oar,toJSONObject:Far,isAsyncFn:Lar,isThenable:jar,setImmediate:q6e,asap:Mar,isIterable:Qar};var qar=lt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),U6e=t=>{let e={},r,n,o;return t&&t.split(`
570
570
  `).forEach(function(c){o=c.indexOf(":"),r=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!r||e[r]&&qar[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};function Uar(t){let e=0,r=t.length;for(;e<r;){let n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){let n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}var $ar=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),zar=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Hpe(t,e){return lt.isArray(t)?t.map(r=>Hpe(r,e)):Uar(String(t).replace(e,""))}var $6e=t=>Hpe(t,$ar),Har=t=>Hpe(t,zar);function LF(t){let e=Object.create(null);return lt.forEach(t.toJSON(),(r,n)=>{e[n]=Har(r)}),e}var z6e=Symbol("internals");function Oq(t){return t&&String(t).trim().toLowerCase()}function JG(t){return t===!1||t==null?t:lt.isArray(t)?t.map(JG):$6e(String(t))}function Var(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}var Gar=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Vpe(t,e,r,n,o){if(lt.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!lt.isString(e)){if(lt.isString(n))return e.indexOf(n)!==-1;if(lt.isRegExp(n))return n.test(e)}}function War(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Yar(t,e){let r=lt.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(o,s,c){return this[n].call(this,e,o,s,c)},configurable:!0})})}var jF=class{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function s(u,p,f){let h=Oq(p);if(!h)return;let g=lt.findKey(o,h);(!g||o[g]===void 0||f===!0||f===void 0&&o[g]!==!1)&&(o[g||p]=JG(u))}let c=(u,p)=>lt.forEach(u,(f,h)=>s(f,h,p));if(lt.isPlainObject(e)||e instanceof this.constructor)c(e,r);else if(lt.isString(e)&&(e=e.trim())&&!Gar(e))c(U6e(e),r);else if(lt.isObject(e)&&lt.isIterable(e)){let u={},p,f;for(let h of e){if(!lt.isArray(h))throw new TypeError("Object iterator must return a key-value pair");u[f=h[0]]=(p=u[f])?lt.isArray(p)?[...p,h[1]]:[p,h[1]]:h[1]}c(u,r)}else e!=null&&s(r,e,n);return this}get(e,r){if(e=Oq(e),e){let n=lt.findKey(this,e);if(n){let o=this[n];if(!r)return o;if(r===!0)return Var(o);if(lt.isFunction(r))return r.call(this,o,n);if(lt.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Oq(e),e){let n=lt.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Vpe(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function s(c){if(c=Oq(c),c){let u=lt.findKey(n,c);u&&(!r||Vpe(n,n[u],u,r))&&(delete n[u],o=!0)}}return lt.isArray(e)?e.forEach(s):s(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let s=r[n];(!e||Vpe(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){let r=this,n={};return lt.forEach(this,(o,s)=>{let c=lt.findKey(n,s);if(c){r[c]=JG(o),delete r[s];return}let u=e?War(s):String(s).trim();u!==s&&delete r[s],r[u]=JG(o),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return lt.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&lt.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
571
571
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){let n=(this[z6e]=this[z6e]={accessors:{}}).accessors,o=this.prototype;function s(c){let u=Oq(c);n[u]||(Yar(o,c),n[u]=!0)}return lt.isArray(e)?e.forEach(s):s(e),this}};jF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);lt.reduceDescriptors(jF.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});lt.freezeMethods(jF);var qu=jF;var Jar="[REDACTED ****]";function Kar(t){if(lt.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(lt.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Xar(t,e){let r=new Set(e.map(s=>String(s).toLowerCase())),n=[],o=s=>{if(s===null||typeof s!="object"||lt.isBuffer(s))return s;if(n.indexOf(s)!==-1)return;s instanceof qu&&(s=s.toJSON()),n.push(s);let c;if(lt.isArray(s))c=[],s.forEach((u,p)=>{let f=o(u);lt.isUndefined(f)||(c[p]=f)});else{if(!lt.isPlainObject(s)&&Kar(s))return n.pop(),s;c=Object.create(null);for(let[u,p]of Object.entries(s)){let f=r.has(u.toLowerCase())?Jar:o(p);lt.isUndefined(f)||(c[u]=f)}}return n.pop(),c};return o(t)}var ph=class t extends Error{static from(e,r,n,o,s,c){let u=new t(e.message,r||e.code,n,o,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),c&&Object.assign(u,c),u}constructor(e,r,n,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){let e=this.config,r=e&&lt.hasOwnProp(e,"redact")?e.redact:void 0,n=lt.isArray(r)&&r.length>0?Xar(e,r):lt.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};ph.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ph.ERR_BAD_OPTION="ERR_BAD_OPTION";ph.ECONNABORTED="ECONNABORTED";ph.ETIMEDOUT="ETIMEDOUT";ph.ECONNREFUSED="ECONNREFUSED";ph.ERR_NETWORK="ERR_NETWORK";ph.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ph.ERR_DEPRECATED="ERR_DEPRECATED";ph.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ph.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ph.ERR_CANCELED="ERR_CANCELED";ph.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ph.ERR_INVALID_URL="ERR_INVALID_URL";ph.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Jr=ph;var V5e=Bt(H5e(),1),cW=V5e.default;function hfe(t){return lt.isPlainObject(t)||lt.isArray(t)}function G5e(t){return lt.endsWith(t,"[]")?t.slice(0,-2):t}function dfe(t,e,r){return t?t.concat(e).map(function(o,s){return o=G5e(o),!r&&s?"["+o+"]":o}).join(r?".":""):e}function Lur(t){return lt.isArray(t)&&!t.some(hfe)}var jur=lt.toFlatObject(lt,{},null,function(e){return/^is[A-Z]/.test(e)});function Mur(t,e,r){if(!lt.isObject(t))throw new TypeError("target must be an object");e=e||new(cW||FormData),r=lt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,k){return!lt.isUndefined(k[E])});let n=r.metaTokens,o=r.visitor||g,s=r.dots,c=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,p=r.maxDepth===void 0?100:r.maxDepth,f=u&&lt.isSpecCompliantForm(e);if(!lt.isFunction(o))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(lt.isDate(S))return S.toISOString();if(lt.isBoolean(S))return S.toString();if(!f&&lt.isBlob(S))throw new Jr("Blob is not supported. Use a Buffer instead.");return lt.isArrayBuffer(S)||lt.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,E,k){let P=S;if(lt.isReactNative(e)&&lt.isReactNativeBlob(S))return e.append(dfe(k,E,s),h(S)),!1;if(S&&!k&&typeof S=="object"){if(lt.endsWith(E,"{}"))E=n?E:E.slice(0,-2),S=JSON.stringify(S);else if(lt.isArray(S)&&Lur(S)||(lt.isFileList(S)||lt.endsWith(E,"[]"))&&(P=lt.toArray(S)))return E=G5e(E),P.forEach(function(L,z){!(lt.isUndefined(L)||L===null)&&e.append(c===!0?dfe([E],z,s):c===null?E:E+"[]",h(L))}),!1}return hfe(S)?!0:(e.append(dfe(k,E,s),h(S)),!1)}let y=[],v=Object.assign(jur,{defaultVisitor:g,convertValue:h,isVisitable:hfe});function A(S,E,k=0){if(!lt.isUndefined(S)){if(k>p)throw new Jr("Object is too deeply nested ("+k+" levels). Max depth: "+p,Jr.ERR_FORM_DATA_DEPTH_EXCEEDED);if(y.indexOf(S)!==-1)throw new Error("Circular reference detected in "+E.join("."));y.push(S),lt.forEach(S,function(j,L){(!(lt.isUndefined(j)||j===null)&&o.call(e,j,lt.isString(L)?L.trim():L,E,v))===!0&&A(j,E?E.concat(L):[L],k+1)}),y.pop()}}if(!lt.isObject(t))throw new TypeError("data must be an object");return A(t),e}var ok=Mur;function W5e(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function Y5e(t,e){this._pairs=[],t&&ok(t,this,e)}var J5e=Y5e.prototype;J5e.append=function(e,r){this._pairs.push([e,r])};J5e.toString=function(e){let r=e?function(n){return e.call(this,n,W5e)}:W5e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var K5e=Y5e;function Qur(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ND(t,e,r){if(!e)return t;let n=r&&r.encode||Qur,o=lt.isFunction(r)?{serialize:r}:r,s=o&&o.serialize,c;if(s?c=s(e,o):c=lt.isURLSearchParams(e)?e.toString():new K5e(e,o).toString(n),c){let u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}var mfe=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){lt.forEach(this.handlers,function(n){n!==null&&e(n)})}},gfe=mfe;var ak={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1};var t9e=Bt(require("crypto"),1);var X5e=Bt(require("url"),1),Z5e=X5e.default.URLSearchParams;var Afe="abcdefghijklmnopqrstuvwxyz",e9e="0123456789",r9e={DIGIT:e9e,ALPHA:Afe,ALPHA_DIGIT:Afe+Afe.toUpperCase()+e9e},qur=(t=16,e=r9e.ALPHA_DIGIT)=>{let r="",{length:n}=e,o=new Uint32Array(t);t9e.default.randomFillSync(o);for(let s=0;s<t;s++)r+=e[o[s]%n];return r},n9e={isNode:!0,classes:{URLSearchParams:Z5e,FormData:cW,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:r9e,generateString:qur,protocols:["http","https","file","data"]};var xfe={};lue(xfe,{hasBrowserEnv:()=>vfe,hasStandardBrowserEnv:()=>Uur,hasStandardBrowserWebWorkerEnv:()=>$ur,navigator:()=>yfe,origin:()=>zur});var vfe=typeof window<"u"&&typeof document<"u",yfe=typeof navigator=="object"&&navigator||void 0,Uur=vfe&&(!yfe||["ReactNative","NativeScript","NS"].indexOf(yfe.product)<0),$ur=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zur=vfe&&window.location.href||"http://localhost";var Va={...xfe,...n9e};function bfe(t,e){return ok(t,new Va.classes.URLSearchParams,{visitor:function(r,n,o,s){return Va.isNode&&lt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Hur(t){return lt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Vur(t){let e={},r=Object.keys(t),n,o=r.length,s;for(n=0;n<o;n++)s=r[n],e[s]=t[s];return e}function Gur(t){function e(r,n,o,s){let c=r[s++];if(c==="__proto__")return!0;let u=Number.isFinite(+c),p=s>=r.length;return c=!c&&lt.isArray(o)?o.length:c,p?(lt.hasOwnProp(o,c)?o[c]=lt.isArray(o[c])?o[c].concat(n):[o[c],n]:o[c]=n,!u):((!lt.hasOwnProp(o,c)||!lt.isObject(o[c]))&&(o[c]=[]),e(r,n,o[c],s)&&lt.isArray(o[c])&&(o[c]=Vur(o[c])),!u)}if(lt.isFormData(t)&&lt.isFunction(t.entries)){let r={};return lt.forEachEntry(t,(n,o)=>{e(Hur(n),o,r,0)}),r}return null}var uW=Gur;var $F=(t,e)=>t!=null&&lt.hasOwnProp(t,e)?t[e]:void 0;function Wur(t,e,r){if(lt.isString(t))try{return(e||JSON.parse)(t),lt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Efe={transitional:ak,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=lt.isObject(e);if(s&&lt.isHTMLForm(e)&&(e=new FormData(e)),lt.isFormData(e))return o?JSON.stringify(uW(e)):e;if(lt.isArrayBuffer(e)||lt.isBuffer(e)||lt.isStream(e)||lt.isFile(e)||lt.isBlob(e)||lt.isReadableStream(e))return e;if(lt.isArrayBufferView(e))return e.buffer;if(lt.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){let p=$F(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return bfe(e,p).toString();if((u=lt.isFileList(e))||n.indexOf("multipart/form-data")>-1){let f=$F(this,"env"),h=f&&f.FormData;return ok(u?{"files[]":e}:e,h&&new h,p)}}return s||o?(r.setContentType("application/json",!1),Wur(e)):e}],transformResponse:[function(e){let r=$F(this,"transitional")||Efe.transitional,n=r&&r.forcedJSONParsing,o=$F(this,"responseType"),s=o==="json";if(lt.isResponse(e)||lt.isReadableStream(e))return e;if(e&&lt.isString(e)&&(n&&!o||s)){let u=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(e,$F(this,"parseReviver"))}catch(p){if(u)throw p.name==="SyntaxError"?Jr.from(p,Jr.ERR_BAD_RESPONSE,this,null,$F(this,"response")):p}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Va.classes.FormData,Blob:Va.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};lt.forEach(["delete","get","head","post","put","patch","query"],t=>{Efe.headers[t]={}});var zF=Efe;function Qq(t,e){let r=this||zF,n=e||r,o=qu.from(n.headers),s=n.data;return lt.forEach(t,function(u){s=u.call(r,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function qq(t){return!!(t&&t.__CANCEL__)}var wfe=class extends Jr{constructor(e,r,n){super(e==null?"canceled":e,Jr.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}},ty=wfe;function Hw(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new Jr("Request failed with status code "+r.status,r.status>=400&&r.status<500?Jr.ERR_BAD_REQUEST:Jr.ERR_BAD_RESPONSE,r.config,r.request,r))}function _fe(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Sfe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function OD(t,e,r){let n=!_fe(e);return t&&(n||r===!1)?Sfe(t,e):e}var Yur={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function Jur(t){try{return new URL(t)}catch{return null}}function i9e(t){var e=(typeof t=="string"?Jur(t):t)||{},r=e.protocol,n=e.host,o=e.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||Yur[r]||0,!Kur(n,o)))return"";var s=Cfe(r+"_proxy")||Cfe("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function Kur(t,e){var r=Cfe("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),s=o?o[1]:n,c=o?parseInt(o[2]):0;return c&&c!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!t.endsWith(s)):t!==s}):!0}function Cfe(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var ide=Bt(x9e(),1),J9e=Bt(require("http"),1),K9e=Bt(require("https"),1),X9e=Bt(require("http2"),1),Z9e=Bt(require("util"),1),nde=require("path"),e7e=Bt(Wfe(),1),ry=Bt(require("zlib"),1);var rC="1.17.0";function Jq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var Klr=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function Yfe(t,e,r){let n=r&&r.Blob||Va.classes.Blob,o=Jq(t);if(e===void 0&&n&&(e=!0),o==="data"){t=o.length?t.slice(o.length+1):t;let s=Klr.exec(t);if(!s)throw new Jr("Invalid URL",Jr.ERR_INVALID_URL);let c=s[1],u=s[2],p=s[3]?"base64":"utf8",f=s[4],h;c?h=u?c+u:c:u&&(h="text/plain"+u);let g=Buffer.from(decodeURIComponent(f),p);if(e){if(!n)throw new Jr("Blob is not supported",Jr.ERR_NOT_SUPPORT);return new n([g],{type:h})}return g}throw new Jr("Unsupported protocol "+o,Jr.ERR_NOT_SUPPORT)}var Rv=Bt(require("stream"),1);var I9e=Bt(require("stream"),1);var Jfe=Symbol("internals"),Kfe=class extends I9e.default.Transform{constructor(e){e=lt.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!lt.isUndefined(o[n])),super({readableHighWaterMark:e.chunkSize});let r=this[Jfe]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(e){let r=this[Jfe];return r.onReadCallback&&r.onReadCallback(),super._read(e)}_transform(e,r,n){let o=this[Jfe],s=o.maxRate,c=this.readableHighWaterMark,u=o.timeWindow,p=1e3/u,f=s/p,h=o.minChunkSize!==!1?Math.max(o.minChunkSize,f*.01):0,g=(v,A)=>{let S=Buffer.byteLength(v);o.bytesSeen+=S,o.bytes+=S,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(v)?process.nextTick(A):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(A)}},y=(v,A)=>{let S=Buffer.byteLength(v),E=null,k=c,P,j=0;if(s){let L=Date.now();(!o.ts||(j=L-o.ts)>=u)&&(o.ts=L,P=f-o.bytes,o.bytes=P<0?-P:0,j=0),P=f-o.bytes}if(s){if(P<=0)return setTimeout(()=>{A(null,v)},u-j);P<k&&(k=P)}k&&S>k&&S-k>h&&(E=v.subarray(k),v=v.subarray(0,k)),g(v,E?()=>{process.nextTick(A,null,E)}:A)};y(e,function v(A,S){if(A)return n(A);S?y(S,v):n(null)})}},Xfe=Kfe;var t7e=require("events");var T9e=Bt(require("util"),1),B9e=require("stream");var{asyncIterator:k9e}=Symbol,Xlr=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[k9e]?yield*t[k9e]():yield t},mW=Xlr;var Zlr=Va.ALPHABET.ALPHA_DIGIT+"-_",Kq=typeof TextEncoder=="function"?new TextEncoder:new T9e.default.TextEncoder,qD=`\r
572
572
  `,epr=Kq.encode(qD),tpr=2,Zfe=class{constructor(e,r){let{escapeName:n}=this.constructor,o=lt.isString(r),s=`Content-Disposition: form-data; name="${n(e)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${qD}`;if(o)r=Kq.encode(String(r).replace(/\r?\n|\r\n?/g,qD));else{let c=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");s+=`Content-Type: ${c}${qD}`}this.headers=Kq.encode(s+qD),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+tpr,this.name=e,this.value=r}async*encode(){yield this.headers;let{value:e}=this;lt.isTypedArray(e)?yield e:yield*mW(e),yield epr}static escapeName(e){return String(e).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},rpr=(t,e,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:s=n+"-"+Va.generateString(o,Zlr)}=r||{};if(!lt.isFormData(t))throw new TypeError("FormData instance required");if(s.length<1||s.length>70)throw new Error("boundary must be 1-70 characters long");let c=Kq.encode("--"+s+qD),u=Kq.encode("--"+s+"--"+qD),p=u.byteLength,f=Array.from(t.entries()).map(([g,y])=>{let v=new Zfe(g,y);return p+=v.size,v});p+=c.byteLength*f.length,p=lt.toFiniteNumber(p);let h={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(p)&&(h["Content-Length"]=p),e&&e(h),B9e.Readable.from(async function*(){for(let g of f)yield c,yield*g.encode();yield u}())},D9e=rpr;var P9e=Bt(require("stream"),1),ede=class extends P9e.default.Transform{__transform(e,r,n){this.push(e),n()}_transform(e,r,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(e,r,n)}},R9e=ede;var N9e=Bt(require("http2"),1),O9e=Bt(require("util"),1),tde=class{constructor(){this.sessions=Object.create(null)}getSession(e,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[e];if(n){let g=n.length;for(let y=0;y<g;y++){let[v,A]=n[y];if(!v.destroyed&&!v.closed&&O9e.default.isDeepStrictEqual(A,r))return v}}let o=N9e.default.connect(e,r),s,c,u=()=>{if(s)return;s=!0,c&&(clearTimeout(c),c=null);let g=n,y=g.length,v=y;for(;v--;)if(g[v][0]===o){y===1?delete this.sessions[e]:g.splice(v,1),o.closed||o.close();return}},p=o.request,{sessionTimeout:f}=r;if(f!=null){let g=0;o.request=function(){let y=p.apply(this,arguments);return g++,c&&(clearTimeout(c),c=null),y.once("close",()=>{--g||(c=setTimeout(()=>{c=null,u()},f))}),y}}o.once("close",u);let h=[o,r];return n?n.push(h):n=this.sessions[e]=[h],o}},F9e=tde;var npr=(t,e)=>lt.isAsyncFn(t)?function(...r){let n=r.pop();t.apply(this,r).then(o=>{try{e?n(null,...e(o)):n(null,o)}catch(s){n(s)}},n)}:t,L9e=npr;var ipr=new Set(["localhost"]),Q9e=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},spr=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return Q9e(e[1]);let r=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let o=parseInt(r[1],16);return o>=32512&&o<=32767}let n=t.split(":");if(n.length===8){for(let o=0;o<7;o++)if(!/^0+$/.test(n[o]))return!1;return/^0*1$/.test(n[7])}return!1},j9e=t=>t?ipr.has(t)||Q9e(t)?!0:spr(t):!1,opr={http:80,https:443,ws:80,wss:443,ftp:21},apr=t=>{let e=t,r=0;if(e.charAt(0)==="["){let s=e.indexOf("]");if(s!==-1){let c=e.slice(1,s),u=e.slice(s+1);return u.charAt(0)===":"&&/^\d+$/.test(u.slice(1))&&(r=Number.parseInt(u.slice(1),10)),[c,r]}}let n=e.indexOf(":"),o=e.lastIndexOf(":");return n!==-1&&n===o&&/^\d+$/.test(e.slice(o+1))&&(r=Number.parseInt(e.slice(o+1),10),e=e.slice(0,o)),[e,r]},cpr=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,upr=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,lpr=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(cpr);if(e)return e[1];let r=t.match(upr);if(r){let n=parseInt(r[1],16),o=parseInt(r[2],16);return`${n>>8}.${n&255}.${o>>8}.${o&255}`}return t},M9e=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),lpr(t.replace(/\.+$/,"")));function rde(t){let e;try{e=new URL(t)}catch{return!1}let r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;let n=Number.parseInt(e.port,10)||opr[e.protocol.split(":",1)[0]]||0,o=M9e(e.hostname.toLowerCase());return r.split(/[\s,]+/).some(s=>{if(!s)return!1;let[c,u]=apr(s);return c=M9e(c),!c||u&&u!==n?!1:(c.charAt(0)==="*"&&(c=c.slice(1)),c.charAt(0)==="."?o.endsWith(c):o===c||j9e(o)&&j9e(c))})}function ppr(t,e){t=t||10;let r=new Array(t),n=new Array(t),o=0,s=0,c;return e=e!==void 0?e:1e3,function(p){let f=Date.now(),h=n[s];c||(c=f),r[o]=p,n[o]=f;let g=s,y=0;for(;g!==o;)y+=r[g++],g=g%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),f-c<e)return;let v=h&&f-h;return v?Math.round(y*1e3/v):void 0}}var q9e=ppr;function fpr(t,e){let r=0,n=1e3/e,o,s,c=(f,h=Date.now())=>{r=h,o=null,s&&(clearTimeout(s),s=null),t(...f)};return[(...f)=>{let h=Date.now(),g=h-r;g>=n?c(f,h):(o=f,s||(s=setTimeout(()=>{s=null,c(o)},n-g)))},()=>o&&c(o)]}var U9e=fpr;var nC=(t,e,r=3)=>{let n=0,o=q9e(50,250);return U9e(s=>{if(!s||typeof s.loaded!="number")return;let c=s.loaded,u=s.lengthComputable?s.total:void 0,p=u!=null?Math.min(c,u):c,f=Math.max(0,p-n),h=o(f);n=Math.max(n,p);let g={loaded:p,total:u,progress:u?p/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u?(u-p)/h:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(g)},r)},YF=(t,e)=>{let r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},JF=t=>(...e)=>lt.asap(()=>t(...e));function Xq(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let c=n.length,u=n.length;for(let v=0;v<u;v++)if(n.charCodeAt(v)===37&&v+2<u){let A=n.charCodeAt(v+1),S=n.charCodeAt(v+2);(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102)&&(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102)&&(c-=2,v+=2)}let p=0,f=u-1,h=v=>v>=2&&n.charCodeAt(v-2)===37&&n.charCodeAt(v-1)===51&&(n.charCodeAt(v)===68||n.charCodeAt(v)===100);f>=0&&(n.charCodeAt(f)===61?(p++,f--):h(f)&&(p++,f-=3)),p===1&&f>=0&&(n.charCodeAt(f)===61||h(f))&&p++;let y=Math.floor(c/4)*3-(p||0);return y>0?y:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let s=0;for(let c=0,u=n.length;c<u;c++){let p=n.charCodeAt(c);if(p<128)s+=1;else if(p<2048)s+=2;else if(p>=55296&&p<=56319&&c+1<u){let f=n.charCodeAt(c+1);f>=56320&&f<=57343?(s+=4,c++):s+=3}else s+=3}return s}var $9e={flush:ry.default.constants.Z_SYNC_FLUSH,finishFlush:ry.default.constants.Z_SYNC_FLUSH},dpr={flush:ry.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:ry.default.constants.BROTLI_OPERATION_FLUSH},hpr={flush:ry.default.constants.ZSTD_e_flush,finishFlush:ry.default.constants.ZSTD_e_flush},r7e=lt.isFunction(ry.default.createBrotliDecompress),n7e=lt.isFunction(ry.default.createZstdDecompress),i7e="gzip, compress, deflate"+(r7e?", br":""),mpr=i7e+(n7e?", zstd":""),{http:gpr,https:Apr}=e7e.default,s7e=/https:?/,ypr=["content-type","content-length"];function vpr(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,o])=>{ypr.includes(n.toLowerCase())&&t.set(n,o)})}var z9e=Symbol("axios.http.socketListener"),gW=Symbol("axios.http.currentReq"),o7e=Symbol("axios.http.installedTunnel"),xpr=new Map,H9e=new WeakMap;function bpr(t,e){let r=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?H9e.get(e)||H9e.set(e,new Map).get(e):xpr,o=n.get(r);if(o)return o;let s=e&&e.options?{...e.options,...t}:t;if(o=new ide.default(s),e&&e.options){let c={...e.options},u=o.callback;o.callback=function(f,h){return u.call(this,f,{...c,...h})}}return o[o7e]=!0,n.set(r,o),o}var V9e=Va.protocols.map(t=>t+":"),G9e=t=>{if(!lt.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},W9e=(t,[e,r])=>(t.on("end",r).on("error",r),e),Epr=new F9e;function wpr(t,e,r){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.auth&&t.beforeRedirects.auth(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,r)}function a7e(t,e,r,n,o){let s=e;if(!s&&s!==!1){let c=i9e(r);c&&(rde(r)||(s=new URL(c)))}if(n&&t.headers)for(let c of Object.keys(t.headers))c.toLowerCase()==="proxy-authorization"&&delete t.headers[c];if(n&&t.agent&&t.agent[o7e]&&(t.agent=void 0),s){let c=s instanceof URL,u=y=>c||lt.hasOwnProp(s,y)?s[y]:void 0,p=u("username"),f=u("password"),h=lt.hasOwnProp(s,"auth")?s.auth:void 0;if(p&&(h=(p||"")+":"+(f||"")),h){let y=typeof h=="object",v=y&&lt.hasOwnProp(h,"username")?h.username:void 0,A=y&&lt.hasOwnProp(h,"password")?h.password:void 0;if(!!(v||A))h=(v||"")+":"+(A||"");else if(y)throw new Jr("Invalid proxy authorization",Jr.ERR_BAD_OPTION,{proxy:s})}if(s7e.test(t.protocol)){if(!(o instanceof ide.default)){let y=u("hostname")||u("host"),v=u("port"),A=u("protocol"),S=A?A.includes(":")?A:`${A}:`:"http:",E=y&&y.includes(":")&&!y.startsWith("[")?`[${y}]`:y,k=new URL(`${S}//${E}${v?":"+v:""}`),P={protocol:k.protocol,hostname:k.hostname.replace(/^\[|\]$/g,""),port:k.port,auth:h&&typeof h=="string"?h:void 0};k.protocol==="https:"&&(P.ALPNProtocols=["http/1.1"]);let j=bpr(P,o);t.agent=j,t.agents&&(t.agents.https=j)}}else{if(h){let S=Buffer.from(h,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+S}let y=!1;for(let S of Object.keys(t.headers))if(S.toLowerCase()==="host"){y=!0;break}y||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let v=u("hostname")||u("host");t.hostname=v,t.host=v,t.port=u("port"),t.path=r;let A=u("protocol");A&&(t.protocol=A.includes(":")?A:`${A}:`)}}t.beforeRedirects.proxy=function(u){a7e(u,e,u.href,!0,o)}}var _pr=typeof process<"u"&&lt.kindOf(process)==="process",Spr=t=>new Promise((e,r)=>{let n,o,s=(p,f)=>{o||(o=!0,n&&n(p,f))},c=p=>{s(p),e(p)},u=p=>{s(p,!0),r(p)};t(c,u,p=>n=p).catch(u)}),Cpr=({address:t,family:e})=>{if(!lt.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},Y9e=(t,e)=>Cpr(lt.isObject(t)?t:{address:t,family:e}),Ipr={request(t,e){let r=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:o}=t,s=Epr.getSession(r,n),{HTTP2_HEADER_SCHEME:c,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:p,HTTP2_HEADER_STATUS:f}=X9e.default.constants,h={[c]:t.protocol.replace(":",""),[u]:t.method,[p]:t.path};lt.forEach(o,(y,v)=>{v.charAt(0)!==":"&&(h[v]=y)});let g=s.request(h);return g.once("response",y=>{let v=g;y=Object.assign({},y);let A=y[f];delete y[f],v.headers=y,v.statusCode=+A,e(v)}),g}},c7e=_pr&&function(e){return Spr(async function(n,o,s){let c=Et=>lt.hasOwnProp(e,Et)?e[Et]:void 0,u=c("transitional")||ak,p=c("data"),f=c("lookup"),h=c("family"),g=c("httpVersion");g===void 0&&(g=1);let y=c("http2Options"),v=c("responseType"),A=c("responseEncoding"),S=e.method.toUpperCase(),E,k=!1,P,j;if(g=+g,Number.isNaN(g))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(g!==1&&g!==2)throw TypeError(`Unsupported protocol version '${g}'`);let L=g===2;if(f){let Et=L9e(f,gt=>lt.isArray(gt)?gt:[gt]);f=(gt,ft,B)=>{Et(gt,ft,(Ye,ct,Ce)=>{if(Ye)return B(Ye);let we=lt.isArray(ct)?ct.map(We=>Y9e(We)):[Y9e(ct,Ce)];ft.all?B(Ye,we):B(Ye,we[0].address,we[0].family)})}}let z=new t7e.EventEmitter;function re(Et){try{z.emit("abort",!Et||Et.type?new ty(null,e,P):Et)}catch{}}function Y(){j&&(clearTimeout(j),j=null)}function me(){let Et=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";return e.timeoutErrorMessage&&(Et=e.timeoutErrorMessage),new Jr(Et,u.clarifyTimeoutError?Jr.ETIMEDOUT:Jr.ECONNABORTED,e,P)}z.once("abort",o);let ne=()=>{Y(),e.cancelToken&&e.cancelToken.unsubscribe(re),e.signal&&e.signal.removeEventListener("abort",re),z.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(re),e.signal&&(e.signal.aborted?re():e.signal.addEventListener("abort",re))),s((Et,gt)=>{if(E=!0,Y(),gt){k=!0,ne();return}let{data:ft}=Et;if(ft instanceof Rv.default.Readable||ft instanceof Rv.default.Duplex){let B=Rv.default.finished(ft,()=>{B(),ne()})}else ne()});let ce=OD(e.baseURL,e.url,e.allowAbsoluteUrls),ee=new URL(ce,Va.hasBrowserEnv?Va.origin:void 0),ge=ee.protocol||V9e[0];if(ge==="data:"){if(e.maxContentLength>-1){let gt=String(e.url||ce||"");if(Xq(gt)>e.maxContentLength)return o(new Jr("maxContentLength size of "+e.maxContentLength+" exceeded",Jr.ERR_BAD_RESPONSE,e))}let Et;if(S!=="GET")return Hw(n,o,{status:405,statusText:"method not allowed",headers:{},config:e});try{Et=Yfe(e.url,v==="blob",{Blob:e.env&&e.env.Blob})}catch(gt){throw Jr.from(gt,Jr.ERR_BAD_REQUEST,e)}return v==="text"?(Et=Et.toString(A),(!A||A==="utf8")&&(Et=lt.stripBOM(Et))):v==="stream"&&(Et=Rv.default.Readable.from(Et)),Hw(n,o,{data:Et,status:200,statusText:"OK",headers:new qu,config:e})}if(V9e.indexOf(ge)===-1)return o(new Jr("Unsupported protocol "+ge,Jr.ERR_BAD_REQUEST,e));let J=qu.from(e.headers).normalize();J.set("User-Agent","axios/"+rC,!1);let{onUploadProgress:U,onDownloadProgress:de}=e,Fe=e.maxRate,ye,be;if(lt.isSpecCompliantForm(p)){let Et=J.getContentType(/boundary=([-_\w\d]{10,70})/i);p=D9e(p,gt=>{J.set(gt)},{tag:`axios-${rC}-boundary`,boundary:Et&&Et[1]||void 0})}else if(lt.isFormData(p)&&lt.isFunction(p.getHeaders)&&p.getHeaders!==Object.prototype.getHeaders){if(vpr(J,p.getHeaders(),c("formDataHeaderPolicy")),!J.hasContentLength())try{let Et=await Z9e.default.promisify(p.getLength).call(p);Number.isFinite(Et)&&Et>=0&&J.setContentLength(Et)}catch{}}else if(lt.isBlob(p)||lt.isFile(p))p.size&&J.setContentType(p.type||"application/octet-stream"),J.setContentLength(p.size||0),p=Rv.default.Readable.from(mW(p));else if(p&&!lt.isStream(p)){if(!Buffer.isBuffer(p))if(lt.isArrayBuffer(p))p=Buffer.from(new Uint8Array(p));else if(lt.isString(p))p=Buffer.from(p,"utf-8");else return o(new Jr("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Jr.ERR_BAD_REQUEST,e));if(J.setContentLength(p.length,!1),e.maxBodyLength>-1&&p.length>e.maxBodyLength)return o(new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,e))}let Ne=lt.toFiniteNumber(J.getContentLength());lt.isArray(Fe)?(ye=Fe[0],be=Fe[1]):ye=be=Fe,p&&(U||ye)&&(lt.isStream(p)||(p=Rv.default.Readable.from(p,{objectMode:!1})),p=Rv.default.pipeline([p,new Xfe({maxRate:lt.toFiniteNumber(ye)})],lt.noop),U&&p.on("progress",W9e(p,YF(Ne,nC(JF(U),!1,3)))));let He,St=c("auth");if(St){let Et=St.username||"",gt=St.password||"";He=Et+":"+gt}if(!He&&(ee.username||ee.password)){let Et=G9e(ee.username),gt=G9e(ee.password);He=Et+":"+gt}He&&J.delete("authorization");let It;try{It=ND(ee.pathname+ee.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(Et){let gt=new Error(Et.message);return gt.config=e,gt.url=e.url,gt.exists=!0,o(gt)}J.set("Accept-Encoding",lt.hasOwnProp(u,"advertiseZstdAcceptEncoding")&&u.advertiseZstdAcceptEncoding===!0?mpr:i7e,!1);let Xe=Object.assign(Object.create(null),{path:It,method:S,headers:LF(J),agents:{http:e.httpAgent,https:e.httpsAgent},auth:He,protocol:ge,family:h,beforeRedirect:wpr,beforeRedirects:Object.create(null),http2Options:y});!lt.isUndefined(f)&&(Xe.lookup=f);let Ke=c("socketPath");if(Ke){if(typeof Ke!="string")return o(new Jr("socketPath must be a string",Jr.ERR_BAD_OPTION_VALUE,e));let Et=c("allowedSocketPaths");if(Et!=null){let gt=Array.isArray(Et)?Et:[Et],ft=(0,nde.resolve)(Ke);if(!gt.some(Ye=>typeof Ye=="string"&&(0,nde.resolve)(Ye)===ft))return o(new Jr(`socketPath "${Ke}" is not permitted by allowedSocketPaths`,Jr.ERR_BAD_OPTION_VALUE,e))}Xe.socketPath=Ke}else Xe.hostname=ee.hostname.startsWith("[")?ee.hostname.slice(1,-1):ee.hostname,Xe.port=ee.port,a7e(Xe,e.proxy,ge+"//"+ee.hostname+(ee.port?":"+ee.port:"")+Xe.path,!1,e.httpsAgent);let Me,et=!1,At=s7e.test(Xe.protocol);if(Xe.agent==null&&(Xe.agent=At?e.httpsAgent:e.httpAgent),L)Me=Ipr;else{let Et=c("transport");if(Et)Me=Et;else if(e.maxRedirects===0)Me=At?K9e.default:J9e.default,et=!0;else{e.maxRedirects&&(Xe.maxRedirects=e.maxRedirects);let gt=c("beforeRedirect");if(gt&&(Xe.beforeRedirects.config=gt),He){let ft=ee.origin,B=He;Xe.beforeRedirects.auth=function(ct){try{new URL(ct.href).origin===ft&&(ct.auth=B)}catch{}}}Me=At?Apr:gpr}}e.maxBodyLength>-1?Xe.maxBodyLength=e.maxBodyLength:Xe.maxBodyLength=1/0,Xe.insecureHTTPParser=!!c("insecureHTTPParser"),P=Me.request(Xe,function(gt){if(Y(),P.destroyed)return;let ft=[gt],B=lt.toFiniteNumber(gt.headers["content-length"]);if(de||be){let we=new Xfe({maxRate:lt.toFiniteNumber(be)});de&&we.on("progress",W9e(we,YF(B,nC(JF(de),!0,3)))),ft.push(we)}let Ye=gt,ct=gt.req||P;if(e.decompress!==!1&&gt.headers["content-encoding"])switch((S==="HEAD"||gt.statusCode===204)&&delete gt.headers["content-encoding"],(gt.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ft.push(ry.default.createUnzip($9e)),delete gt.headers["content-encoding"];break;case"deflate":ft.push(new R9e),ft.push(ry.default.createUnzip($9e)),delete gt.headers["content-encoding"];break;case"br":r7e&&(ft.push(ry.default.createBrotliDecompress(dpr)),delete gt.headers["content-encoding"]);break;case"zstd":n7e&&(ft.push(ry.default.createZstdDecompress(hpr)),delete gt.headers["content-encoding"]);break}Ye=ft.length>1?Rv.default.pipeline(ft,lt.noop):ft[0];let Ce={status:gt.statusCode,statusText:gt.statusMessage,headers:new qu(gt.headers),config:e,request:ct};if(v==="stream"){if(e.maxContentLength>-1){let we=e.maxContentLength,We=Ye;async function*rt(){let pe=0;for await(let Je of We){if(pe+=Je.length,pe>we)throw new Jr("maxContentLength size of "+we+" exceeded",Jr.ERR_BAD_RESPONSE,e,ct);yield Je}}Ye=Rv.default.Readable.from(rt(),{objectMode:!1})}Ce.data=Ye,Hw(n,o,Ce)}else{let we=[],We=0;Ye.on("data",function(pe){we.push(pe),We+=pe.length,e.maxContentLength>-1&&We>e.maxContentLength&&(k=!0,Ye.destroy(),re(new Jr("maxContentLength size of "+e.maxContentLength+" exceeded",Jr.ERR_BAD_RESPONSE,e,ct)))}),Ye.on("aborted",function(){if(k)return;let pe=new Jr("stream has been aborted",Jr.ERR_BAD_RESPONSE,e,ct,Ce);Ye.destroy(pe),o(pe)}),Ye.on("error",function(pe){k||o(Jr.from(pe,null,e,ct,Ce))}),Ye.on("end",function(){try{let pe=we.length===1?we[0]:Buffer.concat(we);v!=="arraybuffer"&&(pe=pe.toString(A),(!A||A==="utf8")&&(pe=lt.stripBOM(pe))),Ce.data=pe}catch(pe){return o(Jr.from(pe,null,e,Ce.request,Ce))}Hw(n,o,Ce)})}z.once("abort",we=>{Ye.destroyed||(Ye.emit("error",we),Ye.destroy())})}),z.once("abort",Et=>{P.close?P.close():P.destroy(Et)}),P.on("error",function(gt){o(Jr.from(gt,null,e,P))});let Nt=new Set;if(P.on("socket",function(gt){gt.setKeepAlive(!0,1e3*60),gt[z9e]||(gt.on("error",function(B){let Ye=gt[gW];Ye&&!Ye.destroyed&&Ye.destroy(B)}),gt[z9e]=!0),gt[gW]=P,Nt.add(gt)}),P.once("close",function(){Y();for(let gt of Nt)gt[gW]===P&&(gt[gW]=null);Nt.clear()}),e.timeout){let Et=parseInt(e.timeout,10);if(Number.isNaN(Et)){re(new Jr("error trying to parse `config.timeout` to int",Jr.ERR_BAD_OPTION_VALUE,e,P));return}let gt=function(){E||re(me())};et&&Et>0&&(j=setTimeout(gt,Et)),P.setTimeout(Et,gt)}else P.setTimeout(0);if(lt.isStream(p)){let Et=!1,gt=!1;p.on("end",()=>{Et=!0}),p.once("error",B=>{gt=!0,P.destroy(B)}),p.on("close",()=>{!Et&&!gt&&re(new ty("Request stream has been aborted",e,P))});let ft=p;if(e.maxBodyLength>-1&&e.maxRedirects===0){let B=e.maxBodyLength,Ye=0;ft=Rv.default.pipeline([p,new Rv.default.Transform({transform(ct,Ce,we){if(Ye+=ct.length,Ye>B)return we(new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,e,P));we(null,ct)}})],lt.noop),ft.on("error",ct=>{P.destroyed||P.destroy(ct)})}ft.pipe(P)}else p&&P.write(p),P.end()})};var u7e=Va.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Va.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Va.origin),Va.navigator&&/(msie|trident)/i.test(Va.navigator.userAgent)):()=>!0;var l7e=Va.hasStandardBrowserEnv?{write(t,e,r,n,o,s,c){if(typeof document>"u")return;let u=[`${t}=${encodeURIComponent(e)}`];lt.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),lt.isString(n)&&u.push(`path=${n}`),lt.isString(o)&&u.push(`domain=${o}`),s===!0&&u.push("secure"),lt.isString(c)&&u.push(`SameSite=${c}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;let e=document.cookie.split(";");for(let r=0;r<e.length;r++){let n=e[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===t)return decodeURIComponent(n.slice(o+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var p7e=t=>t instanceof qu?{...t}:t;function Tb(t,e){e=e||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(f,h,g,y){return lt.isPlainObject(f)&&lt.isPlainObject(h)?lt.merge.call({caseless:y},f,h):lt.isPlainObject(h)?lt.merge({},h):lt.isArray(h)?h.slice():h}function o(f,h,g,y){if(lt.isUndefined(h)){if(!lt.isUndefined(f))return n(void 0,f,g,y)}else return n(f,h,g,y)}function s(f,h){if(!lt.isUndefined(h))return n(void 0,h)}function c(f,h){if(lt.isUndefined(h)){if(!lt.isUndefined(f))return n(void 0,f)}else return n(void 0,h)}function u(f,h,g){if(lt.hasOwnProp(e,g))return n(f,h);if(lt.hasOwnProp(t,g))return n(void 0,f)}let p={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:u,headers:(f,h,g)=>o(p7e(f),p7e(h),g,!0)};return lt.forEach(Object.keys({...t,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;let g=lt.hasOwnProp(p,h)?p[h]:o,y=lt.hasOwnProp(t,h)?t[h]:void 0,v=lt.hasOwnProp(e,h)?e[h]:void 0,A=g(y,v,h);lt.isUndefined(A)&&g!==u||(r[h]=A)}),r}var kpr=["content-type","content-length"];function Tpr(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,o])=>{kpr.includes(n.toLowerCase())&&t.set(n,o)})}var Bpr=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16)));function Dpr(t){let e=Tb({},t),r=y=>lt.hasOwnProp(e,y)?e[y]:void 0,n=r("data"),o=r("withXSRFToken"),s=r("xsrfHeaderName"),c=r("xsrfCookieName"),u=r("headers"),p=r("auth"),f=r("baseURL"),h=r("allowAbsoluteUrls"),g=r("url");if(e.headers=u=qu.from(u),e.url=ND(OD(f,g,h),r("params"),r("paramsSerializer")),p&&u.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?Bpr(p.password):""))),lt.isFormData(n)&&(Va.hasStandardBrowserEnv||Va.hasStandardBrowserWebWorkerEnv||lt.isReactNative(n)?u.setContentType(void 0):lt.isFunction(n.getHeaders)&&Tpr(u,n.getHeaders(),r("formDataHeaderPolicy"))),Va.hasStandardBrowserEnv&&(lt.isFunction(o)&&(o=o(e)),o===!0||o==null&&u7e(e.url))){let v=s&&c&&l7e.read(c);v&&u.set(s,v)}return e}var AW=Dpr;var Ppr=typeof XMLHttpRequest<"u",f7e=Ppr&&function(t){return new Promise(function(r,n){let o=AW(t),s=o.data,c=qu.from(o.headers).normalize(),{responseType:u,onUploadProgress:p,onDownloadProgress:f}=o,h,g,y,v,A;function S(){v&&v(),A&&A(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function k(){if(!E)return;let j=qu.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),z={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:j,config:t,request:E};Hw(function(Y){r(Y),S()},function(Y){n(Y),S()},z),E=null}"onloadend"in E?E.onloadend=k:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.startsWith("file:"))||setTimeout(k)},E.onabort=function(){E&&(n(new Jr("Request aborted",Jr.ECONNABORTED,t,E)),S(),E=null)},E.onerror=function(L){let z=L&&L.message?L.message:"Network Error",re=new Jr(z,Jr.ERR_NETWORK,t,E);re.event=L||null,n(re),S(),E=null},E.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",z=o.transitional||ak;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),n(new Jr(L,z.clarifyTimeoutError?Jr.ETIMEDOUT:Jr.ECONNABORTED,t,E)),S(),E=null},s===void 0&&c.setContentType(null),"setRequestHeader"in E&&lt.forEach(LF(c),function(L,z){E.setRequestHeader(z,L)}),lt.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),u&&u!=="json"&&(E.responseType=o.responseType),f&&([y,A]=nC(f,!0),E.addEventListener("progress",y)),p&&E.upload&&([g,v]=nC(p),E.upload.addEventListener("progress",g),E.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(h=j=>{E&&(n(!j||j.type?new ty(null,t,E):j),E.abort(),S(),E=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));let P=Jq(o.url);if(P&&!Va.protocols.includes(P)){n(new Jr("Unsupported protocol "+P+":",Jr.ERR_BAD_REQUEST,t));return}E.send(s||null)})};var Rpr=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let r=new AbortController,n=!1,o=function(p){if(!n){n=!0,c();let f=p instanceof Error?p:this.reason;r.abort(f instanceof Jr?f:new ty(f instanceof Error?f.message:f))}},s=e&&setTimeout(()=>{s=null,o(new Jr(`timeout of ${e}ms exceeded`,Jr.ETIMEDOUT))},e),c=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),t=null)};t.forEach(p=>p.addEventListener("abort",o));let{signal:u}=r;return u.unsubscribe=()=>lt.asap(c),u},d7e=Rpr;var Npr=function*(t,e){let r=t.byteLength;if(!e||r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},Opr=async function*(t,e){for await(let r of Fpr(t))yield*Npr(r,e)},Fpr=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},sde=(t,e,r,n)=>{let o=Opr(t,e),s=0,c,u=p=>{c||(c=!0,n&&n(p))};return new ReadableStream({async pull(p){try{let{done:f,value:h}=await o.next();if(f){u(),p.close();return}let g=h.byteLength;if(r){let y=s+=g;r(y)}p.enqueue(new Uint8Array(h))}catch(f){throw u(f),f}},cancel(p){return u(p),o.return()}},{highWaterMark:2})};var h7e=64*1024,{isFunction:yW}=lt,Lpr=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),m7e=t=>{if(!lt.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},g7e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},jpr=t=>{let e=t.indexOf("://"),r=t;return e!==-1&&(r=r.slice(e+3)),r.includes("@")||r.includes(":")},Mpr=t=>{let e=lt.global!==void 0&&lt.global!==null?lt.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=lt.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:o,Request:s,Response:c}=t,u=o?yW(o):typeof fetch=="function",p=yW(s),f=yW(c);if(!u)return!1;let h=u&&yW(r),g=u&&(typeof n=="function"?(k=>P=>k.encode(P))(new n):async k=>new Uint8Array(await new s(k).arrayBuffer())),y=p&&h&&g7e(()=>{let k=!1,P=new s(Va.origin,{body:new r,method:"POST",get duplex(){return k=!0,"half"}}),j=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),k&&!j}),v=f&&h&&g7e(()=>lt.isReadableStream(new c("").body)),A={stream:v&&(k=>k.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!A[k]&&(A[k]=(P,j)=>{let L=P&&P[k];if(L)return L.call(P);throw new Jr(`Response type '${k}' is not supported`,Jr.ERR_NOT_SUPPORT,j)})});let S=async k=>{if(k==null)return 0;if(lt.isBlob(k))return k.size;if(lt.isSpecCompliantForm(k))return(await new s(Va.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(lt.isArrayBufferView(k)||lt.isArrayBuffer(k))return k.byteLength;if(lt.isURLSearchParams(k)&&(k=k+""),lt.isString(k))return(await g(k)).byteLength},E=async(k,P)=>{let j=lt.toFiniteNumber(k.getContentLength());return j==null?S(P):j};return async k=>{let{url:P,method:j,data:L,signal:z,cancelToken:re,timeout:Y,onDownloadProgress:me,onUploadProgress:ne,responseType:ce,headers:ee,withCredentials:ge="same-origin",fetchOptions:J,maxContentLength:U,maxBodyLength:de}=AW(k),Fe=lt.isNumber(U)&&U>-1,ye=lt.isNumber(de)&&de>-1,be=Ke=>lt.hasOwnProp(k,Ke)?k[Ke]:void 0,Ne=o||fetch;ce=ce?(ce+"").toLowerCase():"text";let He=d7e([z,re&&re.toAbortSignal()],Y),St=null,It=He&&He.unsubscribe&&(()=>{He.unsubscribe()}),Xe;try{let Ke,Me=be("auth");if(Me){let ft=Me.username||"",B=Me.password||"";Ke={username:ft,password:B}}if(jpr(P)){let ft=new URL(P,Va.origin);if(!Ke&&(ft.username||ft.password)){let B=m7e(ft.username),Ye=m7e(ft.password);Ke={username:B,password:Ye}}(ft.username||ft.password)&&(ft.username="",ft.password="",P=ft.href)}if(Ke&&(ee.delete("authorization"),ee.set("Authorization","Basic "+btoa(Lpr((Ke.username||"")+":"+(Ke.password||""))))),Fe&&typeof P=="string"&&P.startsWith("data:")&&Xq(P)>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St);if(ye&&j!=="get"&&j!=="head"){let ft=await E(ee,L);if(typeof ft=="number"&&isFinite(ft)&&ft>de)throw new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,k,St)}if(ne&&y&&j!=="get"&&j!=="head"&&(Xe=await E(ee,L))!==0){let ft=new s(P,{method:"POST",body:L,duplex:"half"}),B;if(lt.isFormData(L)&&(B=ft.headers.get("content-type"))&&ee.setContentType(B),ft.body){let[Ye,ct]=YF(Xe,nC(JF(ne)));L=sde(ft.body,h7e,Ye,ct)}}lt.isString(ge)||(ge=ge?"include":"omit");let et=p&&"credentials"in s.prototype;if(lt.isFormData(L)){let ft=ee.getContentType();ft&&/^multipart\/form-data/i.test(ft)&&!/boundary=/i.test(ft)&&ee.delete("content-type")}ee.set("User-Agent","axios/"+rC,!1);let At={...J,signal:He,method:j.toUpperCase(),headers:LF(ee.normalize()),body:L,duplex:"half",credentials:et?ge:void 0};St=p&&new s(P,At);let Nt=await(p?Ne(St,J):Ne(P,At));if(Fe){let ft=lt.toFiniteNumber(Nt.headers.get("content-length"));if(ft!=null&&ft>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St)}let Et=v&&(ce==="stream"||ce==="response");if(v&&Nt.body&&(me||Fe||Et&&It)){let ft={};["status","statusText","headers"].forEach(We=>{ft[We]=Nt[We]});let B=lt.toFiniteNumber(Nt.headers.get("content-length")),[Ye,ct]=me&&YF(B,nC(JF(me),!0))||[],Ce=0,we=We=>{if(Fe&&(Ce=We,Ce>U))throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St);Ye&&Ye(We)};Nt=new c(sde(Nt.body,h7e,we,()=>{ct&&ct(),It&&It()}),ft)}ce=ce||"text";let gt=await A[lt.findKey(A,ce)||"text"](Nt,k);if(Fe&&!v&&!Et){let ft;if(gt!=null&&(typeof gt.byteLength=="number"?ft=gt.byteLength:typeof gt.size=="number"?ft=gt.size:typeof gt=="string"&&(ft=typeof n=="function"?new n().encode(gt).byteLength:gt.length)),typeof ft=="number"&&ft>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St)}return!Et&&It&&It(),await new Promise((ft,B)=>{Hw(ft,B,{data:gt,headers:qu.from(Nt.headers),status:Nt.status,statusText:Nt.statusText,config:k,request:St})})}catch(Ke){if(It&&It(),He&&He.aborted&&He.reason instanceof Jr){let Me=He.reason;throw Me.config=k,St&&(Me.request=St),Ke!==Me&&(Me.cause=Ke),Me}throw Ke&&Ke.name==="TypeError"&&/Load failed|fetch/i.test(Ke.message)?Object.assign(new Jr("Network Error",Jr.ERR_NETWORK,k,St,Ke&&Ke.response),{cause:Ke.cause||Ke}):Jr.from(Ke,Ke&&Ke.code,k,St,Ke&&Ke.response)}}},Qpr=new Map,ode=t=>{let e=t&&t.env||{},{fetch:r,Request:n,Response:o}=e,s=[n,o,r],c=s.length,u=c,p,f,h=Qpr;for(;u--;)p=s[u],f=h.get(p),f===void 0&&h.set(p,f=u?new Map:Mpr(e)),h=f;return f},cmi=ode();var ade={http:c7e,xhr:f7e,fetch:{get:ode}};lt.forEach(ade,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var A7e=t=>`- ${t}`,Upr=t=>lt.isFunction(t)||t===null||t===!1;function $pr(t,e){t=lt.isArray(t)?t:[t];let{length:r}=t,n,o,s={};for(let c=0;c<r;c++){n=t[c];let u;if(o=n,!Upr(n)&&(o=ade[(u=String(n)).toLowerCase()],o===void 0))throw new Jr(`Unknown adapter '${u}'`);if(o&&(lt.isFunction(o)||(o=o.get(e))))break;s[u||"#"+c]=o}if(!o){let c=Object.entries(s).map(([p,f])=>`adapter ${p} `+(f===!1?"is not supported by the environment":"is not available in the build")),u=r?c.length>1?`since :
@@ -4087,24 +4087,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
4087
4087
  var require_dist = __commonJS({
4088
4088
  "node_modules/@edgeone/pages-blob/dist/index.js"(exports, module) {
4089
4089
  "use strict";
4090
- var N = Object.defineProperty;
4090
+ var U = Object.defineProperty;
4091
4091
  var le = Object.getOwnPropertyDescriptor;
4092
4092
  var ue = Object.getOwnPropertyNames;
4093
4093
  var ge = Object.prototype.hasOwnProperty;
4094
4094
  var fe = (t, e) => {
4095
4095
  for (var r in e)
4096
- N(t, r, { get: e[r], enumerable: true });
4096
+ U(t, r, { get: e[r], enumerable: true });
4097
4097
  };
4098
4098
  var he = (t, e, r, n) => {
4099
4099
  if (e && typeof e == "object" || typeof e == "function")
4100
4100
  for (let s of ue(e))
4101
- !ge.call(t, s) && s !== r && N(t, s, { get: () => e[s], enumerable: !(n = le(e, s)) || n.enumerable });
4101
+ !ge.call(t, s) && s !== r && U(t, s, { get: () => e[s], enumerable: !(n = le(e, s)) || n.enumerable });
4102
4102
  return t;
4103
4103
  };
4104
- var me = (t) => he(N({}, "__esModule", { value: true }), t);
4105
- var De = {};
4106
- fe(De, { InvalidKeyError: () => w, InvalidStoreNameError: () => y, MissingProjectIdError: () => T, PagesBlobError: () => h, PreconditionFailedError: () => x, QuotaExceededError: () => M, RateLimitedError: () => D, Store: () => E, getStore: () => ve, listStores: () => Me });
4107
- module.exports = me(De);
4104
+ var me = (t) => he(U({}, "__esModule", { value: true }), t);
4105
+ var Oe = {};
4106
+ fe(Oe, { InvalidKeyError: () => w, InvalidStoreNameError: () => y, MissingProjectIdError: () => T, PagesBlobError: () => h, PreconditionFailedError: () => x, QuotaExceededError: () => O, RateLimitedError: () => j, Store: () => E, getStore: () => Me, listStores: () => De });
4107
+ module.exports = me(Oe);
4108
4108
  var h = class extends Error {
4109
4109
  code;
4110
4110
  constructor(e, r) {
@@ -4126,12 +4126,12 @@ var require_dist = __commonJS({
4126
4126
  super("MISSING_ENVIRONMENT", \`Environment not configured for Pages Blob. Missing: \${e.join(", ")}. Supply these properties when creating a store, or ensure the function is running in a Pages environment.\`);
4127
4127
  }
4128
4128
  };
4129
- var M = class extends h {
4129
+ var O = class extends h {
4130
4130
  constructor() {
4131
4131
  super("QUOTA_EXCEEDED", "storage quota exceeded");
4132
4132
  }
4133
4133
  };
4134
- var D = class extends h {
4134
+ var j = class extends h {
4135
4135
  constructor() {
4136
4136
  super("RATE_LIMITED", "request rate limited, please retry later");
4137
4137
  }
@@ -4164,7 +4164,7 @@ var require_dist = __commonJS({
4164
4164
  if (new TextEncoder().encode(t).length > 600)
4165
4165
  throw new w("Blob key must be a sequence of Unicode characters whose UTF-8 encoding is at most 600 bytes long.");
4166
4166
  }
4167
- function q(t) {
4167
+ function z(t) {
4168
4168
  if (t === "")
4169
4169
  throw new y("Store name must not be empty.");
4170
4170
  if (t.includes("/") || t.includes(":"))
@@ -4252,45 +4252,48 @@ var require_dist = __commonJS({
4252
4252
  }
4253
4253
  };
4254
4254
  var ye = new TextEncoder();
4255
- function U(t) {
4255
+ function _(t) {
4256
4256
  let e = ye.encode(t), r = new ArrayBuffer(e.byteLength), n = new Uint8Array(r);
4257
4257
  return n.set(e), n;
4258
4258
  }
4259
- function F(t) {
4259
+ function G(t) {
4260
4260
  let e = t instanceof Uint8Array ? t : new Uint8Array(t), r = "";
4261
4261
  for (let n = 0; n < e.length; n++)
4262
4262
  r += e[n].toString(16).padStart(2, "0");
4263
4263
  return r;
4264
4264
  }
4265
- async function z(t, e) {
4266
- let r = await crypto.subtle.importKey("raw", U(t), { name: "HMAC", hash: "SHA-1" }, false, ["sign"]), n = await crypto.subtle.sign("HMAC", r, U(e));
4267
- return F(n);
4265
+ async function H(t, e) {
4266
+ let r = await crypto.subtle.importKey("raw", _(t), { name: "HMAC", hash: "SHA-1" }, false, ["sign"]), n = await crypto.subtle.sign("HMAC", r, _(e));
4267
+ return G(n);
4268
4268
  }
4269
4269
  async function pe(t) {
4270
- let e = await crypto.subtle.digest("SHA-1", U(t));
4271
- return F(e);
4270
+ let e = await crypto.subtle.digest("SHA-1", _(t));
4271
+ return G(e);
4272
4272
  }
4273
- function O(t) {
4273
+ function $(t) {
4274
4274
  return encodeURIComponent(t).replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase());
4275
4275
  }
4276
- function j(t) {
4276
+ function P(t) {
4277
4277
  try {
4278
4278
  return decodeURIComponent(t);
4279
4279
  } catch {
4280
4280
  return t;
4281
4281
  }
4282
4282
  }
4283
- function G(t) {
4284
- return t.split("/").map((e) => j(e)).join("/");
4283
+ function we(t) {
4284
+ return t.split("/").map((e) => P(e)).join("/");
4285
+ }
4286
+ function I(t) {
4287
+ return we(P(t));
4285
4288
  }
4286
4289
  function W(t) {
4287
- return t.split("/").map((e) => O(j(e))).join("/");
4290
+ return t.split("/").map((e) => $(P(e))).join("/");
4288
4291
  }
4289
- var we = /* @__PURE__ */ new Set(["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "content-type", "expect", "expires", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding"]);
4290
- function Ce(t) {
4291
- return t === "host" || t === "x-cos-security-token" ? false : !!(we.has(t) || t.startsWith("x-cos-"));
4292
+ var Ce = /* @__PURE__ */ new Set(["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "content-type", "expect", "expires", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding"]);
4293
+ function xe(t) {
4294
+ return t === "host" || t === "x-cos-security-token" ? false : !!(Ce.has(t) || t.startsWith("x-cos-"));
4292
4295
  }
4293
- function H(t) {
4296
+ function X(t) {
4294
4297
  if (!t)
4295
4298
  return [];
4296
4299
  let e = [];
@@ -4298,27 +4301,27 @@ var require_dist = __commonJS({
4298
4301
  n != null && e.push([r.toLowerCase(), String(n)]);
4299
4302
  return e.sort(([r], [n]) => r < n ? -1 : r > n ? 1 : 0), e;
4300
4303
  }
4301
- function X(t) {
4302
- return t.map(([e, r]) => \`\${O(e)}=\${O(r)}\`).join("&");
4303
- }
4304
4304
  function Y(t) {
4305
- return t.map(([e]) => O(e)).join(";");
4305
+ return t.map(([e, r]) => \`\${$(e)}=\${$(r)}\`).join("&");
4306
+ }
4307
+ function F(t) {
4308
+ return t.map(([e]) => $(e)).join(";");
4306
4309
  }
4307
4310
  async function V(t) {
4308
- let e = t.method.toLowerCase(), r = t.pathname.startsWith("/") ? t.pathname : \`/\${t.pathname}\`, n = Math.floor(Date.now() / 1e3), s = n + (t.expireSeconds ?? 3600), i = \`\${n};\${s}\`, o = H(t.headers).filter(([B]) => Ce(B)), c = Y(o), d = X(o), u = H(t.query), l = Y(u), g = X(u), p = \`\${e}
4311
+ let e = t.method.toLowerCase(), r = t.pathname.startsWith("/") ? t.pathname : \`/\${t.pathname}\`, n = Math.floor(Date.now() / 1e3), s = n + (t.expireSeconds ?? 3600), i = \`\${n};\${s}\`, o = X(t.headers).filter(([N]) => xe(N)), c = F(o), d = Y(o), u = X(t.query), l = F(u), g = Y(u), p = \`\${e}
4309
4312
  \${r}
4310
4313
  \${g}
4311
4314
  \${d}
4312
4315
  \`, oe = \`sha1
4313
4316
  \${i}
4314
4317
  \${await pe(p)}
4315
- \`, ie = await z(t.secretKey, i), ae = await z(ie, oe), ce = ["q-sign-algorithm=sha1", \`q-ak=\${t.secretId}\`, \`q-sign-time=\${i}\`, \`q-key-time=\${i}\`, \`q-header-list=\${c}\`, \`q-url-param-list=\${l}\`, \`q-signature=\${ae}\`].join("&"), K = {};
4316
- for (let [B, de] of o)
4317
- K[B] = de;
4318
- return { authorization: ce, signedHeaders: K };
4318
+ \`, ie = await H(t.secretKey, i), ae = await H(ie, oe), ce = ["q-sign-algorithm=sha1", \`q-ak=\${t.secretId}\`, \`q-sign-time=\${i}\`, \`q-key-time=\${i}\`, \`q-header-list=\${c}\`, \`q-url-param-list=\${l}\`, \`q-signature=\${ae}\`].join("&"), q = {};
4319
+ for (let [N, de] of o)
4320
+ q[N] = de;
4321
+ return { authorization: ce, signedHeaders: q };
4319
4322
  }
4320
4323
  async function J(t) {
4321
- let e = new URL(t.domain), r = j(t.key), n = \`/\${G(r)}\`, s = \`/\${W(r)}\`;
4324
+ let e = new URL(t.domain), r = P(t.key), n = \`/\${I(t.key)}\`, s = \`/\${W(r)}\`;
4322
4325
  e.pathname = s;
4323
4326
  let { authorization: i } = await V({ method: t.method, pathname: n, query: t.query, headers: t.headers, secretId: t.credential.secretId, secretKey: t.credential.secretKey, expireSeconds: t.expireSeconds });
4324
4327
  if (t.query)
@@ -4334,7 +4337,7 @@ var require_dist = __commonJS({
4334
4337
  return t.credential.sessionToken && e.searchParams.set("x-cos-security-token", t.credential.sessionToken), e.toString();
4335
4338
  }
4336
4339
  async function S(t) {
4337
- let e = new URL(t.domain), r = t.key ? j(t.key) : "", n = r ? \`/\${G(r)}\` : "/", s = r ? \`/\${W(r)}\` : "/";
4340
+ let e = new URL(t.domain), r = t.key ? P(t.key) : "", n = t.key ? \`/\${I(t.key)}\` : "/", s = r ? \`/\${W(r)}\` : "/";
4338
4341
  if (e.pathname = s, t.query)
4339
4342
  for (let [l, g] of Object.entries(t.query))
4340
4343
  g != null && e.searchParams.set(l, String(g));
@@ -4354,9 +4357,9 @@ var require_dist = __commonJS({
4354
4357
  }
4355
4358
  throw u;
4356
4359
  }
4357
- var xe = "blob.edgeone.site";
4358
- var be = "blob-nocache.edgeone.site";
4359
- var A = class t {
4360
+ var be = "blob.edgeone.site";
4361
+ var Te = "blob-nocache.edgeone.site";
4362
+ var M = class t {
4360
4363
  credentialManager;
4361
4364
  bucket = "";
4362
4365
  region = "";
@@ -4366,7 +4369,7 @@ var require_dist = __commonJS({
4366
4369
  initialized = false;
4367
4370
  static buildErrorDetail(e, r, n, s, i) {
4368
4371
  let a = n ? \`\${r}/\${n}\` : r, o = i ? \` [request-id: \${i}]\` : "";
4369
- return \`\${e} \${a} - \${Te(s)}\${o}\`;
4372
+ return \`\${e} \${a} - \${Ee(s)}\${o}\`;
4370
4373
  }
4371
4374
  constructor(e) {
4372
4375
  this.credentialManager = e;
@@ -4392,7 +4395,7 @@ var require_dist = __commonJS({
4392
4395
  let a = this.computeSubdomain(e);
4393
4396
  if (!a)
4394
4397
  throw new f(0, "unable to derive tenant subdomain from credential; missing appId/zoneId/projectId or resourcePrefix");
4395
- this.cachedDomain = \`https://\${a}.\${xe}\`, this.uncachedDomain = \`https://\${a}.\${be}\`, this.initialized = true;
4398
+ this.cachedDomain = \`https://\${a}.\${be}\`, this.uncachedDomain = \`https://\${a}.\${Te}\`, this.initialized = true;
4396
4399
  }
4397
4400
  async resolveDomain(e) {
4398
4401
  return await this.ensureInitialized(), e === "strong" ? this.uncachedDomain : this.cachedDomain;
@@ -4416,14 +4419,14 @@ var require_dist = __commonJS({
4416
4419
  return await l.arrayBuffer().catch(() => {
4417
4420
  }), { etag: "", statusCode: 412 };
4418
4421
  if (!l.ok) {
4419
- let p = await P(l);
4420
- throw new f(l.status, t.buildErrorDetail("PUT", i, o, p || \`status \${l.status}\`, I(l)));
4422
+ let p = await k(l);
4423
+ throw new f(l.status, t.buildErrorDetail("PUT", i, o, p || \`status \${l.status}\`, R(l)));
4421
4424
  }
4422
4425
  let g = l.headers.get("etag") || "";
4423
4426
  return await l.arrayBuffer().catch(() => {
4424
4427
  }), { etag: g, statusCode: l.status };
4425
4428
  } catch (l) {
4426
- throw l instanceof f ? l : new f(0, t.buildErrorDetail("PUT", i, o, k(l)));
4429
+ throw l instanceof f ? l : new f(0, t.buildErrorDetail("PUT", i, o, A(l)));
4427
4430
  }
4428
4431
  }
4429
4432
  async createPresignedPutUrl(e, r, n) {
@@ -4440,13 +4443,13 @@ var require_dist = __commonJS({
4440
4443
  return await o.arrayBuffer().catch(() => {
4441
4444
  }), null;
4442
4445
  if (!o.ok) {
4443
- let u = await P(o);
4444
- throw new f(o.status, t.buildErrorDetail("GET", s, a, u || \`status \${o.status}\`, I(o)));
4446
+ let u = await k(o);
4447
+ throw new f(o.status, t.buildErrorDetail("GET", s, a, u || \`status \${o.status}\`, R(o)));
4445
4448
  }
4446
4449
  let c = new Uint8Array(await o.arrayBuffer()), d = Z(o.headers);
4447
4450
  return { body: c, contentType: d["content-type"], headers: d };
4448
4451
  } catch (o) {
4449
- throw o instanceof f ? o : new f(0, t.buildErrorDetail("GET", s, a, k(o)));
4452
+ throw o instanceof f ? o : new f(0, t.buildErrorDetail("GET", s, a, A(o)));
4450
4453
  }
4451
4454
  }
4452
4455
  async headObject(e, r, n) {
@@ -4456,13 +4459,13 @@ var require_dist = __commonJS({
4456
4459
  if (o.status === 404)
4457
4460
  return null;
4458
4461
  if (!o.ok) {
4459
- let d = await P(o);
4460
- throw new f(o.status, t.buildErrorDetail("HEAD", s, a, d || \`status \${o.status}\`, I(o)));
4462
+ let d = await k(o);
4463
+ throw new f(o.status, t.buildErrorDetail("HEAD", s, a, d || \`status \${o.status}\`, R(o)));
4461
4464
  }
4462
4465
  let c = Z(o.headers);
4463
4466
  return { cacheControl: c["cache-control"], contentType: c["content-type"], etag: c.etag, headers: c };
4464
4467
  } catch (o) {
4465
- throw o instanceof f ? o : new f(0, t.buildErrorDetail("HEAD", s, a, k(o)));
4468
+ throw o instanceof f ? o : new f(0, t.buildErrorDetail("HEAD", s, a, A(o)));
4466
4469
  }
4467
4470
  }
4468
4471
  async deleteObject(e, r) {
@@ -4474,10 +4477,10 @@ var require_dist = __commonJS({
4474
4477
  });
4475
4478
  return;
4476
4479
  }
4477
- let o = await P(a);
4478
- throw new f(a.status, t.buildErrorDetail("DELETE", n, i, o || \`status \${a.status}\`, I(a)));
4480
+ let o = await k(a);
4481
+ throw new f(a.status, t.buildErrorDetail("DELETE", n, i, o || \`status \${a.status}\`, R(a)));
4479
4482
  } catch (a) {
4480
- throw a instanceof f ? a : new f(0, t.buildErrorDetail("DELETE", n, i, k(a)));
4483
+ throw a instanceof f ? a : new f(0, t.buildErrorDetail("DELETE", n, i, A(a)));
4481
4484
  }
4482
4485
  }
4483
4486
  async listObjects(e, r) {
@@ -4503,35 +4506,35 @@ var require_dist = __commonJS({
4503
4506
  return r;
4504
4507
  }
4505
4508
  async getBucketRaw(e) {
4506
- let r = await this.resolveDomain(e.consistency), n = await this.resolveCredential(), s = { prefix: e.prefix };
4507
- e.delimiter && (s.delimiter = e.delimiter), e.marker && (s.marker = e.marker), e.maxKeys && (s["max-keys"] = e.maxKeys);
4509
+ let r = await this.resolveDomain(e.consistency), n = await this.resolveCredential(), s = { prefix: I(e.prefix) };
4510
+ e.delimiter && (s.delimiter = e.delimiter), e.marker && (s.marker = I(e.marker)), e.maxKeys && (s["max-keys"] = e.maxKeys);
4508
4511
  try {
4509
4512
  let i = await S({ domain: r, method: "GET", query: s, credential: n });
4510
4513
  if (!i.ok) {
4511
- let o = await P(i);
4512
- throw new f(i.status, t.buildErrorDetail("LIST", r, e.prefix, o || \`status \${i.status}\`, I(i)));
4514
+ let o = await k(i);
4515
+ throw new f(i.status, t.buildErrorDetail("LIST", r, e.prefix, o || \`status \${i.status}\`, R(i)));
4513
4516
  }
4514
4517
  let a = await i.text();
4515
- return Ee(a);
4518
+ return Se(a);
4516
4519
  } catch (i) {
4517
- throw i instanceof f ? i : new f(0, t.buildErrorDetail("LIST", r, e.prefix, k(i)));
4520
+ throw i instanceof f ? i : new f(0, t.buildErrorDetail("LIST", r, e.prefix, A(i)));
4518
4521
  }
4519
4522
  }
4520
4523
  };
4521
- function Te(t) {
4524
+ function Ee(t) {
4522
4525
  return t.replace(/[a-zA-Z0-9\\-]+\\.cos\\.[a-zA-Z0-9\\-.]+\\.myqcloud\\.com/gi, "[cos-origin]").replace(/[a-zA-Z0-9\\-]+\\.cos\\.[a-zA-Z0-9\\-.]+\\.tencentcos\\.cn/gi, "[cos-origin]");
4523
4526
  }
4524
- async function P(t) {
4527
+ async function k(t) {
4525
4528
  try {
4526
4529
  return await t.text();
4527
4530
  } catch {
4528
4531
  return "";
4529
4532
  }
4530
4533
  }
4531
- function I(t) {
4534
+ function R(t) {
4532
4535
  return t.headers.get("x-cos-request-id") || t.headers.get("x-eo-log-id") || void 0;
4533
4536
  }
4534
- function k(t) {
4537
+ function A(t) {
4535
4538
  let e = t, r = e.message || String(t), n = e.cause;
4536
4539
  if (n) {
4537
4540
  let s = n.message || n.code || "";
@@ -4545,43 +4548,43 @@ var require_dist = __commonJS({
4545
4548
  e[n.toLowerCase()] = r;
4546
4549
  }), e;
4547
4550
  }
4548
- function Ee(t) {
4551
+ function Se(t) {
4549
4552
  let e = [], r = /<Contents>([\\s\\S]*?)<\\/Contents>/g, n;
4550
4553
  for (; (n = r.exec(t)) !== null; ) {
4551
- let d = n[1], u = R(d, "Key"), l = R(d, "ETag");
4552
- u !== null && e.push({ key: _(u), etag: l || "" });
4554
+ let d = n[1], u = v(d, "Key"), l = v(d, "ETag");
4555
+ u !== null && e.push({ key: L(u), etag: l || "" });
4553
4556
  }
4554
4557
  let s = [], i = /<CommonPrefixes>([\\s\\S]*?)<\\/CommonPrefixes>/g;
4555
4558
  for (; (n = i.exec(t)) !== null; ) {
4556
- let d = n[1], u = R(d, "Prefix");
4557
- u !== null && s.push(_(u));
4559
+ let d = n[1], u = v(d, "Prefix");
4560
+ u !== null && s.push(L(u));
4558
4561
  }
4559
- let o = R(t, "IsTruncated") === "true", c = R(t, "NextMarker") || "";
4560
- return { contents: e, commonPrefixes: s, isTruncated: o, nextMarker: _(c) };
4562
+ let o = v(t, "IsTruncated") === "true", c = v(t, "NextMarker") || "";
4563
+ return { contents: e, commonPrefixes: s, isTruncated: o, nextMarker: L(c) };
4561
4564
  }
4562
- function R(t, e) {
4565
+ function v(t, e) {
4563
4566
  let n = new RegExp(\`<\${e}>([\\\\s\\\\S]*?)<\\\\/\${e}>\`).exec(t);
4564
4567
  return n ? n[1] : null;
4565
4568
  }
4566
- function _(t) {
4569
+ function L(t) {
4567
4570
  return t.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&amp;/g, "&");
4568
4571
  }
4569
- var Se = "X-RateLimit-Reset";
4570
- async function $(t, e, r = 2) {
4572
+ var Pe = "X-RateLimit-Reset";
4573
+ async function B(t, e, r = 2) {
4571
4574
  var _a, _b;
4572
4575
  (_b = (_a = e.signal) == null ? void 0 : _a.throwIfAborted) == null ? void 0 : _b.call(_a);
4573
4576
  try {
4574
4577
  let n = await fetch(t, e);
4575
4578
  if (r > 0 && (n.status === 429 || n.status >= 500)) {
4576
- let s = Q(n.headers.get(Se));
4577
- return await ee(s, e.signal), $(t, e, r - 1);
4579
+ let s = Q(n.headers.get(Pe));
4580
+ return await ee(s, e.signal), B(t, e, r - 1);
4578
4581
  }
4579
4582
  return n;
4580
4583
  } catch (n) {
4581
4584
  if (r === 0 || n instanceof DOMException && n.name === "AbortError")
4582
4585
  throw n;
4583
4586
  let s = Q();
4584
- return await ee(s, e.signal), $(t, e, r - 1);
4587
+ return await ee(s, e.signal), B(t, e, r - 1);
4585
4588
  }
4586
4589
  }
4587
4590
  function Q(t) {
@@ -4599,14 +4602,14 @@ var require_dist = __commonJS({
4599
4602
  e == null ? void 0 : e.addEventListener("abort", i, { once: true });
4600
4603
  });
4601
4604
  }
4602
- var Pe = "prod";
4605
+ var Ie = "prod";
4603
4606
  function te() {
4604
4607
  let t = typeof process < "u" ? process.env.PAGES_BLOB_STS_ENV : void 0;
4605
- return t === "test" || t === "prod" ? t : Pe;
4608
+ return t === "test" || t === "prod" ? t : Ie;
4606
4609
  }
4607
- var Ie = 300;
4608
- var ke = "https://blob-sts.edgeone.site/";
4609
- var v = class {
4610
+ var ke = 300;
4611
+ var Re = "https://blob-sts.edgeone.site/";
4612
+ var D = class {
4610
4613
  authToken;
4611
4614
  projectId;
4612
4615
  cached = null;
@@ -4624,16 +4627,16 @@ var require_dist = __commonJS({
4624
4627
  }
4625
4628
  isExpired(e) {
4626
4629
  let r = Math.floor(Date.now() / 1e3);
4627
- return e.expiredTime - r < Ie;
4630
+ return e.expiredTime - r < ke;
4628
4631
  }
4629
4632
  async fetchCredential() {
4630
4633
  for (let n = 1; n <= 3; n++) {
4631
4634
  let s = new AbortController(), i = setTimeout(() => s.abort(), 1e4), a;
4632
4635
  try {
4633
- a = await $(ke, { method: "POST", headers: { "Content-Type": "application/json", Authorization: \`Bearer \${this.authToken}\`, "X-Env": te() }, body: JSON.stringify(this.projectId ? { ProjectId: this.projectId } : {}), signal: s.signal });
4636
+ a = await B(Re, { method: "POST", headers: { "Content-Type": "application/json", Authorization: \`Bearer \${this.authToken}\`, "X-Env": te() }, body: JSON.stringify(this.projectId ? { ProjectId: this.projectId } : {}), signal: s.signal });
4634
4637
  } catch (d) {
4635
4638
  if (n < 3) {
4636
- await L(500 * n);
4639
+ await K(500 * n);
4637
4640
  continue;
4638
4641
  }
4639
4642
  throw new m(\`failed to obtain STS credential: \${d.message || "timeout"}\`);
@@ -4646,7 +4649,7 @@ var require_dist = __commonJS({
4646
4649
  throw new m("rate limited, please retry later");
4647
4650
  if (!a.ok) {
4648
4651
  if (a.status >= 500 && n < 3) {
4649
- await L(500 * n);
4652
+ await K(500 * n);
4650
4653
  continue;
4651
4654
  }
4652
4655
  let d = await a.text().catch(() => "unknown error");
@@ -4666,7 +4669,7 @@ var require_dist = __commonJS({
4666
4669
  throw new m(\`credential exchange failed (code=\${o.code}): \${d}\`);
4667
4670
  }
4668
4671
  if (n < 3) {
4669
- await L(500 * n);
4672
+ await K(500 * n);
4670
4673
  continue;
4671
4674
  }
4672
4675
  throw new m("invalid STS credential response");
@@ -4674,12 +4677,12 @@ var require_dist = __commonJS({
4674
4677
  throw new m("invalid STS credential response");
4675
4678
  }
4676
4679
  };
4677
- function L(t) {
4680
+ function K(t) {
4678
4681
  return new Promise((e) => setTimeout(e, t));
4679
4682
  }
4680
- var Re = "{{PAGES_BLOB_DEPLOY_CREDENTIAL}}";
4683
+ var Ae = "{{PAGES_BLOB_DEPLOY_CREDENTIAL}}";
4681
4684
  function re() {
4682
- let t = {}, e = Ae();
4685
+ let t = {}, e = ve();
4683
4686
  if (e)
4684
4687
  t.deployCredential = e;
4685
4688
  else {
@@ -4689,8 +4692,8 @@ var require_dist = __commonJS({
4689
4692
  let r = ne("PAGES_PROJECT_ID");
4690
4693
  return r && (t.projectId = r), t;
4691
4694
  }
4692
- function Ae() {
4693
- let t = Re;
4695
+ function ve() {
4696
+ let t = Ae;
4694
4697
  if (!(t.startsWith("{{") && t.endsWith("}}")))
4695
4698
  return t || void 0;
4696
4699
  }
@@ -4698,15 +4701,15 @@ var require_dist = __commonJS({
4698
4701
  if (typeof process < "u" && process.env)
4699
4702
  return process.env[t];
4700
4703
  }
4701
- function ve(t) {
4704
+ function Me(t) {
4702
4705
  let e = typeof t == "string" ? t : t.name;
4703
- q(e);
4704
- let r = se(typeof t == "string" ? void 0 : t), n = new v(r.authToken, r.projectId), s = new A(n);
4706
+ z(e);
4707
+ let r = se(typeof t == "string" ? void 0 : t), n = new D(r.authToken, r.projectId), s = new M(n);
4705
4708
  return new E(s, e, r.consistency ?? "eventual");
4706
4709
  }
4707
- async function Me(t) {
4708
- let e = se(t ? { name: "__list__", projectId: t.projectId, token: t.token, consistency: t.consistency } : void 0), r = new v(e.authToken, e.projectId);
4709
- return { stores: (await new A(r).listStores(e.consistency)).map((i) => ({ name: i })) };
4710
+ async function De(t) {
4711
+ let e = se(t ? { name: "__list__", projectId: t.projectId, token: t.token, consistency: t.consistency } : void 0), r = new D(e.authToken, e.projectId);
4712
+ return { stores: (await new M(r).listStores(e.consistency)).map((i) => ({ name: i })) };
4710
4713
  }
4711
4714
  function se(t) {
4712
4715
  let e = re(), r = (t == null ? void 0 : t.token) || e.deployCredential, n = (t == null ? void 0 : t.projectId) || e.projectId;
@@ -48080,24 +48083,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
48080
48083
  var require_dist = __commonJS({
48081
48084
  "node_modules/@edgeone/pages-blob/dist/index.js"(exports, module) {
48082
48085
  "use strict";
48083
- var N = Object.defineProperty;
48086
+ var U = Object.defineProperty;
48084
48087
  var le = Object.getOwnPropertyDescriptor;
48085
48088
  var ue = Object.getOwnPropertyNames;
48086
48089
  var ge = Object.prototype.hasOwnProperty;
48087
48090
  var fe = (t, e) => {
48088
48091
  for (var r in e)
48089
- N(t, r, { get: e[r], enumerable: true });
48092
+ U(t, r, { get: e[r], enumerable: true });
48090
48093
  };
48091
48094
  var he = (t, e, r, n) => {
48092
48095
  if (e && typeof e == "object" || typeof e == "function")
48093
48096
  for (let s of ue(e))
48094
- !ge.call(t, s) && s !== r && N(t, s, { get: () => e[s], enumerable: !(n = le(e, s)) || n.enumerable });
48097
+ !ge.call(t, s) && s !== r && U(t, s, { get: () => e[s], enumerable: !(n = le(e, s)) || n.enumerable });
48095
48098
  return t;
48096
48099
  };
48097
- var me = (t) => he(N({}, "__esModule", { value: true }), t);
48098
- var De = {};
48099
- fe(De, { InvalidKeyError: () => w, InvalidStoreNameError: () => y, MissingProjectIdError: () => T, PagesBlobError: () => h, PreconditionFailedError: () => x, QuotaExceededError: () => M, RateLimitedError: () => D, Store: () => E, getStore: () => ve, listStores: () => Me });
48100
- module.exports = me(De);
48100
+ var me = (t) => he(U({}, "__esModule", { value: true }), t);
48101
+ var Oe = {};
48102
+ fe(Oe, { InvalidKeyError: () => w, InvalidStoreNameError: () => y, MissingProjectIdError: () => T, PagesBlobError: () => h, PreconditionFailedError: () => x, QuotaExceededError: () => O, RateLimitedError: () => j, Store: () => E, getStore: () => Me, listStores: () => De });
48103
+ module.exports = me(Oe);
48101
48104
  var h = class extends Error {
48102
48105
  code;
48103
48106
  constructor(e, r) {
@@ -48119,12 +48122,12 @@ var require_dist = __commonJS({
48119
48122
  super("MISSING_ENVIRONMENT", \`Environment not configured for Pages Blob. Missing: \${e.join(", ")}. Supply these properties when creating a store, or ensure the function is running in a Pages environment.\`);
48120
48123
  }
48121
48124
  };
48122
- var M = class extends h {
48125
+ var O = class extends h {
48123
48126
  constructor() {
48124
48127
  super("QUOTA_EXCEEDED", "storage quota exceeded");
48125
48128
  }
48126
48129
  };
48127
- var D = class extends h {
48130
+ var j = class extends h {
48128
48131
  constructor() {
48129
48132
  super("RATE_LIMITED", "request rate limited, please retry later");
48130
48133
  }
@@ -48157,7 +48160,7 @@ var require_dist = __commonJS({
48157
48160
  if (new TextEncoder().encode(t).length > 600)
48158
48161
  throw new w("Blob key must be a sequence of Unicode characters whose UTF-8 encoding is at most 600 bytes long.");
48159
48162
  }
48160
- function q(t) {
48163
+ function z(t) {
48161
48164
  if (t === "")
48162
48165
  throw new y("Store name must not be empty.");
48163
48166
  if (t.includes("/") || t.includes(":"))
@@ -48245,45 +48248,48 @@ var require_dist = __commonJS({
48245
48248
  }
48246
48249
  };
48247
48250
  var ye = new TextEncoder();
48248
- function U(t) {
48251
+ function _(t) {
48249
48252
  let e = ye.encode(t), r = new ArrayBuffer(e.byteLength), n = new Uint8Array(r);
48250
48253
  return n.set(e), n;
48251
48254
  }
48252
- function F(t) {
48255
+ function G(t) {
48253
48256
  let e = t instanceof Uint8Array ? t : new Uint8Array(t), r = "";
48254
48257
  for (let n = 0; n < e.length; n++)
48255
48258
  r += e[n].toString(16).padStart(2, "0");
48256
48259
  return r;
48257
48260
  }
48258
- async function z(t, e) {
48259
- let r = await crypto.subtle.importKey("raw", U(t), { name: "HMAC", hash: "SHA-1" }, false, ["sign"]), n = await crypto.subtle.sign("HMAC", r, U(e));
48260
- return F(n);
48261
+ async function H(t, e) {
48262
+ let r = await crypto.subtle.importKey("raw", _(t), { name: "HMAC", hash: "SHA-1" }, false, ["sign"]), n = await crypto.subtle.sign("HMAC", r, _(e));
48263
+ return G(n);
48261
48264
  }
48262
48265
  async function pe(t) {
48263
- let e = await crypto.subtle.digest("SHA-1", U(t));
48264
- return F(e);
48266
+ let e = await crypto.subtle.digest("SHA-1", _(t));
48267
+ return G(e);
48265
48268
  }
48266
- function O(t) {
48269
+ function $(t) {
48267
48270
  return encodeURIComponent(t).replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase());
48268
48271
  }
48269
- function j(t) {
48272
+ function P(t) {
48270
48273
  try {
48271
48274
  return decodeURIComponent(t);
48272
48275
  } catch {
48273
48276
  return t;
48274
48277
  }
48275
48278
  }
48276
- function G(t) {
48277
- return t.split("/").map((e) => j(e)).join("/");
48279
+ function we(t) {
48280
+ return t.split("/").map((e) => P(e)).join("/");
48281
+ }
48282
+ function I(t) {
48283
+ return we(P(t));
48278
48284
  }
48279
48285
  function W(t) {
48280
- return t.split("/").map((e) => O(j(e))).join("/");
48286
+ return t.split("/").map((e) => $(P(e))).join("/");
48281
48287
  }
48282
- var we = /* @__PURE__ */ new Set(["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "content-type", "expect", "expires", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding"]);
48283
- function Ce(t) {
48284
- return t === "host" || t === "x-cos-security-token" ? false : !!(we.has(t) || t.startsWith("x-cos-"));
48288
+ var Ce = /* @__PURE__ */ new Set(["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "content-type", "expect", "expires", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding"]);
48289
+ function xe(t) {
48290
+ return t === "host" || t === "x-cos-security-token" ? false : !!(Ce.has(t) || t.startsWith("x-cos-"));
48285
48291
  }
48286
- function H(t) {
48292
+ function X(t) {
48287
48293
  if (!t)
48288
48294
  return [];
48289
48295
  let e = [];
@@ -48291,27 +48297,27 @@ var require_dist = __commonJS({
48291
48297
  n != null && e.push([r.toLowerCase(), String(n)]);
48292
48298
  return e.sort(([r], [n]) => r < n ? -1 : r > n ? 1 : 0), e;
48293
48299
  }
48294
- function X(t) {
48295
- return t.map(([e, r]) => \`\${O(e)}=\${O(r)}\`).join("&");
48296
- }
48297
48300
  function Y(t) {
48298
- return t.map(([e]) => O(e)).join(";");
48301
+ return t.map(([e, r]) => \`\${$(e)}=\${$(r)}\`).join("&");
48302
+ }
48303
+ function F(t) {
48304
+ return t.map(([e]) => $(e)).join(";");
48299
48305
  }
48300
48306
  async function V(t) {
48301
- let e = t.method.toLowerCase(), r = t.pathname.startsWith("/") ? t.pathname : \`/\${t.pathname}\`, n = Math.floor(Date.now() / 1e3), s = n + (t.expireSeconds ?? 3600), i = \`\${n};\${s}\`, o = H(t.headers).filter(([B]) => Ce(B)), c = Y(o), d = X(o), u = H(t.query), l = Y(u), g = X(u), p = \`\${e}
48307
+ let e = t.method.toLowerCase(), r = t.pathname.startsWith("/") ? t.pathname : \`/\${t.pathname}\`, n = Math.floor(Date.now() / 1e3), s = n + (t.expireSeconds ?? 3600), i = \`\${n};\${s}\`, o = X(t.headers).filter(([N]) => xe(N)), c = F(o), d = Y(o), u = X(t.query), l = F(u), g = Y(u), p = \`\${e}
48302
48308
  \${r}
48303
48309
  \${g}
48304
48310
  \${d}
48305
48311
  \`, oe = \`sha1
48306
48312
  \${i}
48307
48313
  \${await pe(p)}
48308
- \`, ie = await z(t.secretKey, i), ae = await z(ie, oe), ce = ["q-sign-algorithm=sha1", \`q-ak=\${t.secretId}\`, \`q-sign-time=\${i}\`, \`q-key-time=\${i}\`, \`q-header-list=\${c}\`, \`q-url-param-list=\${l}\`, \`q-signature=\${ae}\`].join("&"), K = {};
48309
- for (let [B, de] of o)
48310
- K[B] = de;
48311
- return { authorization: ce, signedHeaders: K };
48314
+ \`, ie = await H(t.secretKey, i), ae = await H(ie, oe), ce = ["q-sign-algorithm=sha1", \`q-ak=\${t.secretId}\`, \`q-sign-time=\${i}\`, \`q-key-time=\${i}\`, \`q-header-list=\${c}\`, \`q-url-param-list=\${l}\`, \`q-signature=\${ae}\`].join("&"), q = {};
48315
+ for (let [N, de] of o)
48316
+ q[N] = de;
48317
+ return { authorization: ce, signedHeaders: q };
48312
48318
  }
48313
48319
  async function J(t) {
48314
- let e = new URL(t.domain), r = j(t.key), n = \`/\${G(r)}\`, s = \`/\${W(r)}\`;
48320
+ let e = new URL(t.domain), r = P(t.key), n = \`/\${I(t.key)}\`, s = \`/\${W(r)}\`;
48315
48321
  e.pathname = s;
48316
48322
  let { authorization: i } = await V({ method: t.method, pathname: n, query: t.query, headers: t.headers, secretId: t.credential.secretId, secretKey: t.credential.secretKey, expireSeconds: t.expireSeconds });
48317
48323
  if (t.query)
@@ -48327,7 +48333,7 @@ var require_dist = __commonJS({
48327
48333
  return t.credential.sessionToken && e.searchParams.set("x-cos-security-token", t.credential.sessionToken), e.toString();
48328
48334
  }
48329
48335
  async function S(t) {
48330
- let e = new URL(t.domain), r = t.key ? j(t.key) : "", n = r ? \`/\${G(r)}\` : "/", s = r ? \`/\${W(r)}\` : "/";
48336
+ let e = new URL(t.domain), r = t.key ? P(t.key) : "", n = t.key ? \`/\${I(t.key)}\` : "/", s = r ? \`/\${W(r)}\` : "/";
48331
48337
  if (e.pathname = s, t.query)
48332
48338
  for (let [l, g] of Object.entries(t.query))
48333
48339
  g != null && e.searchParams.set(l, String(g));
@@ -48347,9 +48353,9 @@ var require_dist = __commonJS({
48347
48353
  }
48348
48354
  throw u;
48349
48355
  }
48350
- var xe = "blob.edgeone.site";
48351
- var be = "blob-nocache.edgeone.site";
48352
- var A = class t {
48356
+ var be = "blob.edgeone.site";
48357
+ var Te = "blob-nocache.edgeone.site";
48358
+ var M = class t {
48353
48359
  credentialManager;
48354
48360
  bucket = "";
48355
48361
  region = "";
@@ -48359,7 +48365,7 @@ var require_dist = __commonJS({
48359
48365
  initialized = false;
48360
48366
  static buildErrorDetail(e, r, n, s, i) {
48361
48367
  let a = n ? \`\${r}/\${n}\` : r, o = i ? \` [request-id: \${i}]\` : "";
48362
- return \`\${e} \${a} - \${Te(s)}\${o}\`;
48368
+ return \`\${e} \${a} - \${Ee(s)}\${o}\`;
48363
48369
  }
48364
48370
  constructor(e) {
48365
48371
  this.credentialManager = e;
@@ -48385,7 +48391,7 @@ var require_dist = __commonJS({
48385
48391
  let a = this.computeSubdomain(e);
48386
48392
  if (!a)
48387
48393
  throw new f(0, "unable to derive tenant subdomain from credential; missing appId/zoneId/projectId or resourcePrefix");
48388
- this.cachedDomain = \`https://\${a}.\${xe}\`, this.uncachedDomain = \`https://\${a}.\${be}\`, this.initialized = true;
48394
+ this.cachedDomain = \`https://\${a}.\${be}\`, this.uncachedDomain = \`https://\${a}.\${Te}\`, this.initialized = true;
48389
48395
  }
48390
48396
  async resolveDomain(e) {
48391
48397
  return await this.ensureInitialized(), e === "strong" ? this.uncachedDomain : this.cachedDomain;
@@ -48409,14 +48415,14 @@ var require_dist = __commonJS({
48409
48415
  return await l.arrayBuffer().catch(() => {
48410
48416
  }), { etag: "", statusCode: 412 };
48411
48417
  if (!l.ok) {
48412
- let p = await P(l);
48413
- throw new f(l.status, t.buildErrorDetail("PUT", i, o, p || \`status \${l.status}\`, I(l)));
48418
+ let p = await k(l);
48419
+ throw new f(l.status, t.buildErrorDetail("PUT", i, o, p || \`status \${l.status}\`, R(l)));
48414
48420
  }
48415
48421
  let g = l.headers.get("etag") || "";
48416
48422
  return await l.arrayBuffer().catch(() => {
48417
48423
  }), { etag: g, statusCode: l.status };
48418
48424
  } catch (l) {
48419
- throw l instanceof f ? l : new f(0, t.buildErrorDetail("PUT", i, o, k(l)));
48425
+ throw l instanceof f ? l : new f(0, t.buildErrorDetail("PUT", i, o, A(l)));
48420
48426
  }
48421
48427
  }
48422
48428
  async createPresignedPutUrl(e, r, n) {
@@ -48433,13 +48439,13 @@ var require_dist = __commonJS({
48433
48439
  return await o.arrayBuffer().catch(() => {
48434
48440
  }), null;
48435
48441
  if (!o.ok) {
48436
- let u = await P(o);
48437
- throw new f(o.status, t.buildErrorDetail("GET", s, a, u || \`status \${o.status}\`, I(o)));
48442
+ let u = await k(o);
48443
+ throw new f(o.status, t.buildErrorDetail("GET", s, a, u || \`status \${o.status}\`, R(o)));
48438
48444
  }
48439
48445
  let c = new Uint8Array(await o.arrayBuffer()), d = Z(o.headers);
48440
48446
  return { body: c, contentType: d["content-type"], headers: d };
48441
48447
  } catch (o) {
48442
- throw o instanceof f ? o : new f(0, t.buildErrorDetail("GET", s, a, k(o)));
48448
+ throw o instanceof f ? o : new f(0, t.buildErrorDetail("GET", s, a, A(o)));
48443
48449
  }
48444
48450
  }
48445
48451
  async headObject(e, r, n) {
@@ -48449,13 +48455,13 @@ var require_dist = __commonJS({
48449
48455
  if (o.status === 404)
48450
48456
  return null;
48451
48457
  if (!o.ok) {
48452
- let d = await P(o);
48453
- throw new f(o.status, t.buildErrorDetail("HEAD", s, a, d || \`status \${o.status}\`, I(o)));
48458
+ let d = await k(o);
48459
+ throw new f(o.status, t.buildErrorDetail("HEAD", s, a, d || \`status \${o.status}\`, R(o)));
48454
48460
  }
48455
48461
  let c = Z(o.headers);
48456
48462
  return { cacheControl: c["cache-control"], contentType: c["content-type"], etag: c.etag, headers: c };
48457
48463
  } catch (o) {
48458
- throw o instanceof f ? o : new f(0, t.buildErrorDetail("HEAD", s, a, k(o)));
48464
+ throw o instanceof f ? o : new f(0, t.buildErrorDetail("HEAD", s, a, A(o)));
48459
48465
  }
48460
48466
  }
48461
48467
  async deleteObject(e, r) {
@@ -48467,10 +48473,10 @@ var require_dist = __commonJS({
48467
48473
  });
48468
48474
  return;
48469
48475
  }
48470
- let o = await P(a);
48471
- throw new f(a.status, t.buildErrorDetail("DELETE", n, i, o || \`status \${a.status}\`, I(a)));
48476
+ let o = await k(a);
48477
+ throw new f(a.status, t.buildErrorDetail("DELETE", n, i, o || \`status \${a.status}\`, R(a)));
48472
48478
  } catch (a) {
48473
- throw a instanceof f ? a : new f(0, t.buildErrorDetail("DELETE", n, i, k(a)));
48479
+ throw a instanceof f ? a : new f(0, t.buildErrorDetail("DELETE", n, i, A(a)));
48474
48480
  }
48475
48481
  }
48476
48482
  async listObjects(e, r) {
@@ -48496,35 +48502,35 @@ var require_dist = __commonJS({
48496
48502
  return r;
48497
48503
  }
48498
48504
  async getBucketRaw(e) {
48499
- let r = await this.resolveDomain(e.consistency), n = await this.resolveCredential(), s = { prefix: e.prefix };
48500
- e.delimiter && (s.delimiter = e.delimiter), e.marker && (s.marker = e.marker), e.maxKeys && (s["max-keys"] = e.maxKeys);
48505
+ let r = await this.resolveDomain(e.consistency), n = await this.resolveCredential(), s = { prefix: I(e.prefix) };
48506
+ e.delimiter && (s.delimiter = e.delimiter), e.marker && (s.marker = I(e.marker)), e.maxKeys && (s["max-keys"] = e.maxKeys);
48501
48507
  try {
48502
48508
  let i = await S({ domain: r, method: "GET", query: s, credential: n });
48503
48509
  if (!i.ok) {
48504
- let o = await P(i);
48505
- throw new f(i.status, t.buildErrorDetail("LIST", r, e.prefix, o || \`status \${i.status}\`, I(i)));
48510
+ let o = await k(i);
48511
+ throw new f(i.status, t.buildErrorDetail("LIST", r, e.prefix, o || \`status \${i.status}\`, R(i)));
48506
48512
  }
48507
48513
  let a = await i.text();
48508
- return Ee(a);
48514
+ return Se(a);
48509
48515
  } catch (i) {
48510
- throw i instanceof f ? i : new f(0, t.buildErrorDetail("LIST", r, e.prefix, k(i)));
48516
+ throw i instanceof f ? i : new f(0, t.buildErrorDetail("LIST", r, e.prefix, A(i)));
48511
48517
  }
48512
48518
  }
48513
48519
  };
48514
- function Te(t) {
48520
+ function Ee(t) {
48515
48521
  return t.replace(/[a-zA-Z0-9\\-]+\\.cos\\.[a-zA-Z0-9\\-.]+\\.myqcloud\\.com/gi, "[cos-origin]").replace(/[a-zA-Z0-9\\-]+\\.cos\\.[a-zA-Z0-9\\-.]+\\.tencentcos\\.cn/gi, "[cos-origin]");
48516
48522
  }
48517
- async function P(t) {
48523
+ async function k(t) {
48518
48524
  try {
48519
48525
  return await t.text();
48520
48526
  } catch {
48521
48527
  return "";
48522
48528
  }
48523
48529
  }
48524
- function I(t) {
48530
+ function R(t) {
48525
48531
  return t.headers.get("x-cos-request-id") || t.headers.get("x-eo-log-id") || void 0;
48526
48532
  }
48527
- function k(t) {
48533
+ function A(t) {
48528
48534
  let e = t, r = e.message || String(t), n = e.cause;
48529
48535
  if (n) {
48530
48536
  let s = n.message || n.code || "";
@@ -48538,43 +48544,43 @@ var require_dist = __commonJS({
48538
48544
  e[n.toLowerCase()] = r;
48539
48545
  }), e;
48540
48546
  }
48541
- function Ee(t) {
48547
+ function Se(t) {
48542
48548
  let e = [], r = /<Contents>([\\s\\S]*?)<\\/Contents>/g, n;
48543
48549
  for (; (n = r.exec(t)) !== null; ) {
48544
- let d = n[1], u = R(d, "Key"), l = R(d, "ETag");
48545
- u !== null && e.push({ key: _(u), etag: l || "" });
48550
+ let d = n[1], u = v(d, "Key"), l = v(d, "ETag");
48551
+ u !== null && e.push({ key: L(u), etag: l || "" });
48546
48552
  }
48547
48553
  let s = [], i = /<CommonPrefixes>([\\s\\S]*?)<\\/CommonPrefixes>/g;
48548
48554
  for (; (n = i.exec(t)) !== null; ) {
48549
- let d = n[1], u = R(d, "Prefix");
48550
- u !== null && s.push(_(u));
48555
+ let d = n[1], u = v(d, "Prefix");
48556
+ u !== null && s.push(L(u));
48551
48557
  }
48552
- let o = R(t, "IsTruncated") === "true", c = R(t, "NextMarker") || "";
48553
- return { contents: e, commonPrefixes: s, isTruncated: o, nextMarker: _(c) };
48558
+ let o = v(t, "IsTruncated") === "true", c = v(t, "NextMarker") || "";
48559
+ return { contents: e, commonPrefixes: s, isTruncated: o, nextMarker: L(c) };
48554
48560
  }
48555
- function R(t, e) {
48561
+ function v(t, e) {
48556
48562
  let n = new RegExp(\`<\${e}>([\\\\s\\\\S]*?)<\\\\/\${e}>\`).exec(t);
48557
48563
  return n ? n[1] : null;
48558
48564
  }
48559
- function _(t) {
48565
+ function L(t) {
48560
48566
  return t.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&amp;/g, "&");
48561
48567
  }
48562
- var Se = "X-RateLimit-Reset";
48563
- async function $(t, e, r = 2) {
48568
+ var Pe = "X-RateLimit-Reset";
48569
+ async function B(t, e, r = 2) {
48564
48570
  var _a, _b;
48565
48571
  (_b = (_a = e.signal) == null ? void 0 : _a.throwIfAborted) == null ? void 0 : _b.call(_a);
48566
48572
  try {
48567
48573
  let n = await fetch(t, e);
48568
48574
  if (r > 0 && (n.status === 429 || n.status >= 500)) {
48569
- let s = Q(n.headers.get(Se));
48570
- return await ee(s, e.signal), $(t, e, r - 1);
48575
+ let s = Q(n.headers.get(Pe));
48576
+ return await ee(s, e.signal), B(t, e, r - 1);
48571
48577
  }
48572
48578
  return n;
48573
48579
  } catch (n) {
48574
48580
  if (r === 0 || n instanceof DOMException && n.name === "AbortError")
48575
48581
  throw n;
48576
48582
  let s = Q();
48577
- return await ee(s, e.signal), $(t, e, r - 1);
48583
+ return await ee(s, e.signal), B(t, e, r - 1);
48578
48584
  }
48579
48585
  }
48580
48586
  function Q(t) {
@@ -48592,14 +48598,14 @@ var require_dist = __commonJS({
48592
48598
  e == null ? void 0 : e.addEventListener("abort", i, { once: true });
48593
48599
  });
48594
48600
  }
48595
- var Pe = "prod";
48601
+ var Ie = "prod";
48596
48602
  function te() {
48597
48603
  let t = typeof process < "u" ? process.env.PAGES_BLOB_STS_ENV : void 0;
48598
- return t === "test" || t === "prod" ? t : Pe;
48604
+ return t === "test" || t === "prod" ? t : Ie;
48599
48605
  }
48600
- var Ie = 300;
48601
- var ke = "https://blob-sts.edgeone.site/";
48602
- var v = class {
48606
+ var ke = 300;
48607
+ var Re = "https://blob-sts.edgeone.site/";
48608
+ var D = class {
48603
48609
  authToken;
48604
48610
  projectId;
48605
48611
  cached = null;
@@ -48617,16 +48623,16 @@ var require_dist = __commonJS({
48617
48623
  }
48618
48624
  isExpired(e) {
48619
48625
  let r = Math.floor(Date.now() / 1e3);
48620
- return e.expiredTime - r < Ie;
48626
+ return e.expiredTime - r < ke;
48621
48627
  }
48622
48628
  async fetchCredential() {
48623
48629
  for (let n = 1; n <= 3; n++) {
48624
48630
  let s = new AbortController(), i = setTimeout(() => s.abort(), 1e4), a;
48625
48631
  try {
48626
- a = await $(ke, { method: "POST", headers: { "Content-Type": "application/json", Authorization: \`Bearer \${this.authToken}\`, "X-Env": te() }, body: JSON.stringify(this.projectId ? { ProjectId: this.projectId } : {}), signal: s.signal });
48632
+ a = await B(Re, { method: "POST", headers: { "Content-Type": "application/json", Authorization: \`Bearer \${this.authToken}\`, "X-Env": te() }, body: JSON.stringify(this.projectId ? { ProjectId: this.projectId } : {}), signal: s.signal });
48627
48633
  } catch (d) {
48628
48634
  if (n < 3) {
48629
- await L(500 * n);
48635
+ await K(500 * n);
48630
48636
  continue;
48631
48637
  }
48632
48638
  throw new m(\`failed to obtain STS credential: \${d.message || "timeout"}\`);
@@ -48639,7 +48645,7 @@ var require_dist = __commonJS({
48639
48645
  throw new m("rate limited, please retry later");
48640
48646
  if (!a.ok) {
48641
48647
  if (a.status >= 500 && n < 3) {
48642
- await L(500 * n);
48648
+ await K(500 * n);
48643
48649
  continue;
48644
48650
  }
48645
48651
  let d = await a.text().catch(() => "unknown error");
@@ -48659,7 +48665,7 @@ var require_dist = __commonJS({
48659
48665
  throw new m(\`credential exchange failed (code=\${o.code}): \${d}\`);
48660
48666
  }
48661
48667
  if (n < 3) {
48662
- await L(500 * n);
48668
+ await K(500 * n);
48663
48669
  continue;
48664
48670
  }
48665
48671
  throw new m("invalid STS credential response");
@@ -48667,12 +48673,12 @@ var require_dist = __commonJS({
48667
48673
  throw new m("invalid STS credential response");
48668
48674
  }
48669
48675
  };
48670
- function L(t) {
48676
+ function K(t) {
48671
48677
  return new Promise((e) => setTimeout(e, t));
48672
48678
  }
48673
- var Re = "{{PAGES_BLOB_DEPLOY_CREDENTIAL}}";
48679
+ var Ae = "{{PAGES_BLOB_DEPLOY_CREDENTIAL}}";
48674
48680
  function re() {
48675
- let t = {}, e = Ae();
48681
+ let t = {}, e = ve();
48676
48682
  if (e)
48677
48683
  t.deployCredential = e;
48678
48684
  else {
@@ -48682,8 +48688,8 @@ var require_dist = __commonJS({
48682
48688
  let r = ne("PAGES_PROJECT_ID");
48683
48689
  return r && (t.projectId = r), t;
48684
48690
  }
48685
- function Ae() {
48686
- let t = Re;
48691
+ function ve() {
48692
+ let t = Ae;
48687
48693
  if (!(t.startsWith("{{") && t.endsWith("}}")))
48688
48694
  return t || void 0;
48689
48695
  }
@@ -48691,15 +48697,15 @@ var require_dist = __commonJS({
48691
48697
  if (typeof process < "u" && process.env)
48692
48698
  return process.env[t];
48693
48699
  }
48694
- function ve(t) {
48700
+ function Me(t) {
48695
48701
  let e = typeof t == "string" ? t : t.name;
48696
- q(e);
48697
- let r = se(typeof t == "string" ? void 0 : t), n = new v(r.authToken, r.projectId), s = new A(n);
48702
+ z(e);
48703
+ let r = se(typeof t == "string" ? void 0 : t), n = new D(r.authToken, r.projectId), s = new M(n);
48698
48704
  return new E(s, e, r.consistency ?? "eventual");
48699
48705
  }
48700
- async function Me(t) {
48701
- let e = se(t ? { name: "__list__", projectId: t.projectId, token: t.token, consistency: t.consistency } : void 0), r = new v(e.authToken, e.projectId);
48702
- return { stores: (await new A(r).listStores(e.consistency)).map((i) => ({ name: i })) };
48706
+ async function De(t) {
48707
+ let e = se(t ? { name: "__list__", projectId: t.projectId, token: t.token, consistency: t.consistency } : void 0), r = new D(e.authToken, e.projectId);
48708
+ return { stores: (await new M(r).listStores(e.consistency)).map((i) => ({ name: i })) };
48703
48709
  }
48704
48710
  function se(t) {
48705
48711
  let e = re(), r = (t == null ? void 0 : t.token) || e.deployCredential, n = (t == null ? void 0 : t.projectId) || e.projectId;
@@ -51520,24 +51526,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
51520
51526
  var require_dist = __commonJS({
51521
51527
  "node_modules/@edgeone/pages-blob/dist/index.js"(exports, module) {
51522
51528
  "use strict";
51523
- var N = Object.defineProperty;
51529
+ var U = Object.defineProperty;
51524
51530
  var le = Object.getOwnPropertyDescriptor;
51525
51531
  var ue = Object.getOwnPropertyNames;
51526
51532
  var ge = Object.prototype.hasOwnProperty;
51527
51533
  var fe = (t, e) => {
51528
51534
  for (var r in e)
51529
- N(t, r, { get: e[r], enumerable: true });
51535
+ U(t, r, { get: e[r], enumerable: true });
51530
51536
  };
51531
51537
  var he = (t, e, r, n) => {
51532
51538
  if (e && typeof e == "object" || typeof e == "function")
51533
51539
  for (let s of ue(e))
51534
- !ge.call(t, s) && s !== r && N(t, s, { get: () => e[s], enumerable: !(n = le(e, s)) || n.enumerable });
51540
+ !ge.call(t, s) && s !== r && U(t, s, { get: () => e[s], enumerable: !(n = le(e, s)) || n.enumerable });
51535
51541
  return t;
51536
51542
  };
51537
- var me = (t) => he(N({}, "__esModule", { value: true }), t);
51538
- var De = {};
51539
- fe(De, { InvalidKeyError: () => w, InvalidStoreNameError: () => y, MissingProjectIdError: () => T, PagesBlobError: () => h, PreconditionFailedError: () => x, QuotaExceededError: () => M, RateLimitedError: () => D, Store: () => E, getStore: () => ve, listStores: () => Me });
51540
- module.exports = me(De);
51543
+ var me = (t) => he(U({}, "__esModule", { value: true }), t);
51544
+ var Oe = {};
51545
+ fe(Oe, { InvalidKeyError: () => w, InvalidStoreNameError: () => y, MissingProjectIdError: () => T, PagesBlobError: () => h, PreconditionFailedError: () => x, QuotaExceededError: () => O, RateLimitedError: () => j, Store: () => E, getStore: () => Me, listStores: () => De });
51546
+ module.exports = me(Oe);
51541
51547
  var h = class extends Error {
51542
51548
  code;
51543
51549
  constructor(e, r) {
@@ -51559,12 +51565,12 @@ var require_dist = __commonJS({
51559
51565
  super("MISSING_ENVIRONMENT", \`Environment not configured for Pages Blob. Missing: \${e.join(", ")}. Supply these properties when creating a store, or ensure the function is running in a Pages environment.\`);
51560
51566
  }
51561
51567
  };
51562
- var M = class extends h {
51568
+ var O = class extends h {
51563
51569
  constructor() {
51564
51570
  super("QUOTA_EXCEEDED", "storage quota exceeded");
51565
51571
  }
51566
51572
  };
51567
- var D = class extends h {
51573
+ var j = class extends h {
51568
51574
  constructor() {
51569
51575
  super("RATE_LIMITED", "request rate limited, please retry later");
51570
51576
  }
@@ -51597,7 +51603,7 @@ var require_dist = __commonJS({
51597
51603
  if (new TextEncoder().encode(t).length > 600)
51598
51604
  throw new w("Blob key must be a sequence of Unicode characters whose UTF-8 encoding is at most 600 bytes long.");
51599
51605
  }
51600
- function q(t) {
51606
+ function z2(t) {
51601
51607
  if (t === "")
51602
51608
  throw new y("Store name must not be empty.");
51603
51609
  if (t.includes("/") || t.includes(":"))
@@ -51685,45 +51691,48 @@ var require_dist = __commonJS({
51685
51691
  }
51686
51692
  };
51687
51693
  var ye = new TextEncoder();
51688
- function U(t) {
51694
+ function _(t) {
51689
51695
  let e = ye.encode(t), r = new ArrayBuffer(e.byteLength), n = new Uint8Array(r);
51690
51696
  return n.set(e), n;
51691
51697
  }
51692
- function F(t) {
51698
+ function G2(t) {
51693
51699
  let e = t instanceof Uint8Array ? t : new Uint8Array(t), r = "";
51694
51700
  for (let n = 0; n < e.length; n++)
51695
51701
  r += e[n].toString(16).padStart(2, "0");
51696
51702
  return r;
51697
51703
  }
51698
- async function z2(t, e) {
51699
- let r = await crypto.subtle.importKey("raw", U(t), { name: "HMAC", hash: "SHA-1" }, false, ["sign"]), n = await crypto.subtle.sign("HMAC", r, U(e));
51700
- return F(n);
51704
+ async function H(t, e) {
51705
+ let r = await crypto.subtle.importKey("raw", _(t), { name: "HMAC", hash: "SHA-1" }, false, ["sign"]), n = await crypto.subtle.sign("HMAC", r, _(e));
51706
+ return G2(n);
51701
51707
  }
51702
51708
  async function pe(t) {
51703
- let e = await crypto.subtle.digest("SHA-1", U(t));
51704
- return F(e);
51709
+ let e = await crypto.subtle.digest("SHA-1", _(t));
51710
+ return G2(e);
51705
51711
  }
51706
- function O(t) {
51712
+ function $(t) {
51707
51713
  return encodeURIComponent(t).replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase());
51708
51714
  }
51709
- function j(t) {
51715
+ function P(t) {
51710
51716
  try {
51711
51717
  return decodeURIComponent(t);
51712
51718
  } catch {
51713
51719
  return t;
51714
51720
  }
51715
51721
  }
51716
- function G2(t) {
51717
- return t.split("/").map((e) => j(e)).join("/");
51722
+ function we(t) {
51723
+ return t.split("/").map((e) => P(e)).join("/");
51724
+ }
51725
+ function I(t) {
51726
+ return we(P(t));
51718
51727
  }
51719
51728
  function W(t) {
51720
- return t.split("/").map((e) => O(j(e))).join("/");
51729
+ return t.split("/").map((e) => $(P(e))).join("/");
51721
51730
  }
51722
- var we = /* @__PURE__ */ new Set(["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "content-type", "expect", "expires", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding"]);
51723
- function Ce(t) {
51724
- return t === "host" || t === "x-cos-security-token" ? false : !!(we.has(t) || t.startsWith("x-cos-"));
51731
+ var Ce = /* @__PURE__ */ new Set(["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "content-type", "expect", "expires", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding"]);
51732
+ function xe(t) {
51733
+ return t === "host" || t === "x-cos-security-token" ? false : !!(Ce.has(t) || t.startsWith("x-cos-"));
51725
51734
  }
51726
- function H(t) {
51735
+ function X(t) {
51727
51736
  if (!t)
51728
51737
  return [];
51729
51738
  let e = [];
@@ -51731,27 +51740,27 @@ var require_dist = __commonJS({
51731
51740
  n != null && e.push([r.toLowerCase(), String(n)]);
51732
51741
  return e.sort(([r], [n]) => r < n ? -1 : r > n ? 1 : 0), e;
51733
51742
  }
51734
- function X(t) {
51735
- return t.map(([e, r]) => \`\${O(e)}=\${O(r)}\`).join("&");
51736
- }
51737
51743
  function Y(t) {
51738
- return t.map(([e]) => O(e)).join(";");
51744
+ return t.map(([e, r]) => \`\${$(e)}=\${$(r)}\`).join("&");
51745
+ }
51746
+ function F(t) {
51747
+ return t.map(([e]) => $(e)).join(";");
51739
51748
  }
51740
51749
  async function V(t) {
51741
- let e = t.method.toLowerCase(), r = t.pathname.startsWith("/") ? t.pathname : \`/\${t.pathname}\`, n = Math.floor(Date.now() / 1e3), s = n + (t.expireSeconds ?? 3600), i = \`\${n};\${s}\`, o = H(t.headers).filter(([B]) => Ce(B)), c = Y(o), d = X(o), u = H(t.query), l = Y(u), g = X(u), p = \`\${e}
51750
+ let e = t.method.toLowerCase(), r = t.pathname.startsWith("/") ? t.pathname : \`/\${t.pathname}\`, n = Math.floor(Date.now() / 1e3), s = n + (t.expireSeconds ?? 3600), i = \`\${n};\${s}\`, o = X(t.headers).filter(([N]) => xe(N)), c = F(o), d = Y(o), u = X(t.query), l = F(u), g = Y(u), p = \`\${e}
51742
51751
  \${r}
51743
51752
  \${g}
51744
51753
  \${d}
51745
51754
  \`, oe = \`sha1
51746
51755
  \${i}
51747
51756
  \${await pe(p)}
51748
- \`, ie = await z2(t.secretKey, i), ae = await z2(ie, oe), ce = ["q-sign-algorithm=sha1", \`q-ak=\${t.secretId}\`, \`q-sign-time=\${i}\`, \`q-key-time=\${i}\`, \`q-header-list=\${c}\`, \`q-url-param-list=\${l}\`, \`q-signature=\${ae}\`].join("&"), K = {};
51749
- for (let [B, de] of o)
51750
- K[B] = de;
51751
- return { authorization: ce, signedHeaders: K };
51757
+ \`, ie = await H(t.secretKey, i), ae = await H(ie, oe), ce = ["q-sign-algorithm=sha1", \`q-ak=\${t.secretId}\`, \`q-sign-time=\${i}\`, \`q-key-time=\${i}\`, \`q-header-list=\${c}\`, \`q-url-param-list=\${l}\`, \`q-signature=\${ae}\`].join("&"), q = {};
51758
+ for (let [N, de] of o)
51759
+ q[N] = de;
51760
+ return { authorization: ce, signedHeaders: q };
51752
51761
  }
51753
51762
  async function J(t) {
51754
- let e = new URL(t.domain), r = j(t.key), n = \`/\${G2(r)}\`, s = \`/\${W(r)}\`;
51763
+ let e = new URL(t.domain), r = P(t.key), n = \`/\${I(t.key)}\`, s = \`/\${W(r)}\`;
51755
51764
  e.pathname = s;
51756
51765
  let { authorization: i } = await V({ method: t.method, pathname: n, query: t.query, headers: t.headers, secretId: t.credential.secretId, secretKey: t.credential.secretKey, expireSeconds: t.expireSeconds });
51757
51766
  if (t.query)
@@ -51767,7 +51776,7 @@ var require_dist = __commonJS({
51767
51776
  return t.credential.sessionToken && e.searchParams.set("x-cos-security-token", t.credential.sessionToken), e.toString();
51768
51777
  }
51769
51778
  async function S(t) {
51770
- let e = new URL(t.domain), r = t.key ? j(t.key) : "", n = r ? \`/\${G2(r)}\` : "/", s = r ? \`/\${W(r)}\` : "/";
51779
+ let e = new URL(t.domain), r = t.key ? P(t.key) : "", n = t.key ? \`/\${I(t.key)}\` : "/", s = r ? \`/\${W(r)}\` : "/";
51771
51780
  if (e.pathname = s, t.query)
51772
51781
  for (let [l, g] of Object.entries(t.query))
51773
51782
  g != null && e.searchParams.set(l, String(g));
@@ -51787,9 +51796,9 @@ var require_dist = __commonJS({
51787
51796
  }
51788
51797
  throw u;
51789
51798
  }
51790
- var xe = "blob.edgeone.site";
51791
- var be = "blob-nocache.edgeone.site";
51792
- var A = class t {
51799
+ var be = "blob.edgeone.site";
51800
+ var Te = "blob-nocache.edgeone.site";
51801
+ var M = class t {
51793
51802
  credentialManager;
51794
51803
  bucket = "";
51795
51804
  region = "";
@@ -51799,7 +51808,7 @@ var require_dist = __commonJS({
51799
51808
  initialized = false;
51800
51809
  static buildErrorDetail(e, r, n, s, i) {
51801
51810
  let a = n ? \`\${r}/\${n}\` : r, o = i ? \` [request-id: \${i}]\` : "";
51802
- return \`\${e} \${a} - \${Te(s)}\${o}\`;
51811
+ return \`\${e} \${a} - \${Ee(s)}\${o}\`;
51803
51812
  }
51804
51813
  constructor(e) {
51805
51814
  this.credentialManager = e;
@@ -51825,7 +51834,7 @@ var require_dist = __commonJS({
51825
51834
  let a = this.computeSubdomain(e);
51826
51835
  if (!a)
51827
51836
  throw new f(0, "unable to derive tenant subdomain from credential; missing appId/zoneId/projectId or resourcePrefix");
51828
- this.cachedDomain = \`https://\${a}.\${xe}\`, this.uncachedDomain = \`https://\${a}.\${be}\`, this.initialized = true;
51837
+ this.cachedDomain = \`https://\${a}.\${be}\`, this.uncachedDomain = \`https://\${a}.\${Te}\`, this.initialized = true;
51829
51838
  }
51830
51839
  async resolveDomain(e) {
51831
51840
  return await this.ensureInitialized(), e === "strong" ? this.uncachedDomain : this.cachedDomain;
@@ -51849,14 +51858,14 @@ var require_dist = __commonJS({
51849
51858
  return await l.arrayBuffer().catch(() => {
51850
51859
  }), { etag: "", statusCode: 412 };
51851
51860
  if (!l.ok) {
51852
- let p = await P(l);
51853
- throw new f(l.status, t.buildErrorDetail("PUT", i, o, p || \`status \${l.status}\`, I(l)));
51861
+ let p = await k(l);
51862
+ throw new f(l.status, t.buildErrorDetail("PUT", i, o, p || \`status \${l.status}\`, R(l)));
51854
51863
  }
51855
51864
  let g = l.headers.get("etag") || "";
51856
51865
  return await l.arrayBuffer().catch(() => {
51857
51866
  }), { etag: g, statusCode: l.status };
51858
51867
  } catch (l) {
51859
- throw l instanceof f ? l : new f(0, t.buildErrorDetail("PUT", i, o, k(l)));
51868
+ throw l instanceof f ? l : new f(0, t.buildErrorDetail("PUT", i, o, A(l)));
51860
51869
  }
51861
51870
  }
51862
51871
  async createPresignedPutUrl(e, r, n) {
@@ -51873,13 +51882,13 @@ var require_dist = __commonJS({
51873
51882
  return await o.arrayBuffer().catch(() => {
51874
51883
  }), null;
51875
51884
  if (!o.ok) {
51876
- let u = await P(o);
51877
- throw new f(o.status, t.buildErrorDetail("GET", s, a, u || \`status \${o.status}\`, I(o)));
51885
+ let u = await k(o);
51886
+ throw new f(o.status, t.buildErrorDetail("GET", s, a, u || \`status \${o.status}\`, R(o)));
51878
51887
  }
51879
51888
  let c = new Uint8Array(await o.arrayBuffer()), d = Z(o.headers);
51880
51889
  return { body: c, contentType: d["content-type"], headers: d };
51881
51890
  } catch (o) {
51882
- throw o instanceof f ? o : new f(0, t.buildErrorDetail("GET", s, a, k(o)));
51891
+ throw o instanceof f ? o : new f(0, t.buildErrorDetail("GET", s, a, A(o)));
51883
51892
  }
51884
51893
  }
51885
51894
  async headObject(e, r, n) {
@@ -51889,13 +51898,13 @@ var require_dist = __commonJS({
51889
51898
  if (o.status === 404)
51890
51899
  return null;
51891
51900
  if (!o.ok) {
51892
- let d = await P(o);
51893
- throw new f(o.status, t.buildErrorDetail("HEAD", s, a, d || \`status \${o.status}\`, I(o)));
51901
+ let d = await k(o);
51902
+ throw new f(o.status, t.buildErrorDetail("HEAD", s, a, d || \`status \${o.status}\`, R(o)));
51894
51903
  }
51895
51904
  let c = Z(o.headers);
51896
51905
  return { cacheControl: c["cache-control"], contentType: c["content-type"], etag: c.etag, headers: c };
51897
51906
  } catch (o) {
51898
- throw o instanceof f ? o : new f(0, t.buildErrorDetail("HEAD", s, a, k(o)));
51907
+ throw o instanceof f ? o : new f(0, t.buildErrorDetail("HEAD", s, a, A(o)));
51899
51908
  }
51900
51909
  }
51901
51910
  async deleteObject(e, r) {
@@ -51907,10 +51916,10 @@ var require_dist = __commonJS({
51907
51916
  });
51908
51917
  return;
51909
51918
  }
51910
- let o = await P(a);
51911
- throw new f(a.status, t.buildErrorDetail("DELETE", n, i, o || \`status \${a.status}\`, I(a)));
51919
+ let o = await k(a);
51920
+ throw new f(a.status, t.buildErrorDetail("DELETE", n, i, o || \`status \${a.status}\`, R(a)));
51912
51921
  } catch (a) {
51913
- throw a instanceof f ? a : new f(0, t.buildErrorDetail("DELETE", n, i, k(a)));
51922
+ throw a instanceof f ? a : new f(0, t.buildErrorDetail("DELETE", n, i, A(a)));
51914
51923
  }
51915
51924
  }
51916
51925
  async listObjects(e, r) {
@@ -51936,35 +51945,35 @@ var require_dist = __commonJS({
51936
51945
  return r;
51937
51946
  }
51938
51947
  async getBucketRaw(e) {
51939
- let r = await this.resolveDomain(e.consistency), n = await this.resolveCredential(), s = { prefix: e.prefix };
51940
- e.delimiter && (s.delimiter = e.delimiter), e.marker && (s.marker = e.marker), e.maxKeys && (s["max-keys"] = e.maxKeys);
51948
+ let r = await this.resolveDomain(e.consistency), n = await this.resolveCredential(), s = { prefix: I(e.prefix) };
51949
+ e.delimiter && (s.delimiter = e.delimiter), e.marker && (s.marker = I(e.marker)), e.maxKeys && (s["max-keys"] = e.maxKeys);
51941
51950
  try {
51942
51951
  let i = await S({ domain: r, method: "GET", query: s, credential: n });
51943
51952
  if (!i.ok) {
51944
- let o = await P(i);
51945
- throw new f(i.status, t.buildErrorDetail("LIST", r, e.prefix, o || \`status \${i.status}\`, I(i)));
51953
+ let o = await k(i);
51954
+ throw new f(i.status, t.buildErrorDetail("LIST", r, e.prefix, o || \`status \${i.status}\`, R(i)));
51946
51955
  }
51947
51956
  let a = await i.text();
51948
- return Ee(a);
51957
+ return Se(a);
51949
51958
  } catch (i) {
51950
- throw i instanceof f ? i : new f(0, t.buildErrorDetail("LIST", r, e.prefix, k(i)));
51959
+ throw i instanceof f ? i : new f(0, t.buildErrorDetail("LIST", r, e.prefix, A(i)));
51951
51960
  }
51952
51961
  }
51953
51962
  };
51954
- function Te(t) {
51963
+ function Ee(t) {
51955
51964
  return t.replace(/[a-zA-Z0-9\\-]+\\.cos\\.[a-zA-Z0-9\\-.]+\\.myqcloud\\.com/gi, "[cos-origin]").replace(/[a-zA-Z0-9\\-]+\\.cos\\.[a-zA-Z0-9\\-.]+\\.tencentcos\\.cn/gi, "[cos-origin]");
51956
51965
  }
51957
- async function P(t) {
51966
+ async function k(t) {
51958
51967
  try {
51959
51968
  return await t.text();
51960
51969
  } catch {
51961
51970
  return "";
51962
51971
  }
51963
51972
  }
51964
- function I(t) {
51973
+ function R(t) {
51965
51974
  return t.headers.get("x-cos-request-id") || t.headers.get("x-eo-log-id") || void 0;
51966
51975
  }
51967
- function k(t) {
51976
+ function A(t) {
51968
51977
  let e = t, r = e.message || String(t), n = e.cause;
51969
51978
  if (n) {
51970
51979
  let s = n.message || n.code || "";
@@ -51978,43 +51987,43 @@ var require_dist = __commonJS({
51978
51987
  e[n.toLowerCase()] = r;
51979
51988
  }), e;
51980
51989
  }
51981
- function Ee(t) {
51990
+ function Se(t) {
51982
51991
  let e = [], r = /<Contents>([\\s\\S]*?)<\\/Contents>/g, n;
51983
51992
  for (; (n = r.exec(t)) !== null; ) {
51984
- let d = n[1], u = R(d, "Key"), l = R(d, "ETag");
51985
- u !== null && e.push({ key: _(u), etag: l || "" });
51993
+ let d = n[1], u = v(d, "Key"), l = v(d, "ETag");
51994
+ u !== null && e.push({ key: L(u), etag: l || "" });
51986
51995
  }
51987
51996
  let s = [], i = /<CommonPrefixes>([\\s\\S]*?)<\\/CommonPrefixes>/g;
51988
51997
  for (; (n = i.exec(t)) !== null; ) {
51989
- let d = n[1], u = R(d, "Prefix");
51990
- u !== null && s.push(_(u));
51998
+ let d = n[1], u = v(d, "Prefix");
51999
+ u !== null && s.push(L(u));
51991
52000
  }
51992
- let o = R(t, "IsTruncated") === "true", c = R(t, "NextMarker") || "";
51993
- return { contents: e, commonPrefixes: s, isTruncated: o, nextMarker: _(c) };
52001
+ let o = v(t, "IsTruncated") === "true", c = v(t, "NextMarker") || "";
52002
+ return { contents: e, commonPrefixes: s, isTruncated: o, nextMarker: L(c) };
51994
52003
  }
51995
- function R(t, e) {
52004
+ function v(t, e) {
51996
52005
  let n = new RegExp(\`<\${e}>([\\\\s\\\\S]*?)<\\\\/\${e}>\`).exec(t);
51997
52006
  return n ? n[1] : null;
51998
52007
  }
51999
- function _(t) {
52008
+ function L(t) {
52000
52009
  return t.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&amp;/g, "&");
52001
52010
  }
52002
- var Se = "X-RateLimit-Reset";
52003
- async function $(t, e, r = 2) {
52011
+ var Pe = "X-RateLimit-Reset";
52012
+ async function B(t, e, r = 2) {
52004
52013
  var _a3, _b;
52005
52014
  (_b = (_a3 = e.signal) == null ? void 0 : _a3.throwIfAborted) == null ? void 0 : _b.call(_a3);
52006
52015
  try {
52007
52016
  let n = await fetch(t, e);
52008
52017
  if (r > 0 && (n.status === 429 || n.status >= 500)) {
52009
- let s = Q(n.headers.get(Se));
52010
- return await ee(s, e.signal), $(t, e, r - 1);
52018
+ let s = Q(n.headers.get(Pe));
52019
+ return await ee(s, e.signal), B(t, e, r - 1);
52011
52020
  }
52012
52021
  return n;
52013
52022
  } catch (n) {
52014
52023
  if (r === 0 || n instanceof DOMException && n.name === "AbortError")
52015
52024
  throw n;
52016
52025
  let s = Q();
52017
- return await ee(s, e.signal), $(t, e, r - 1);
52026
+ return await ee(s, e.signal), B(t, e, r - 1);
52018
52027
  }
52019
52028
  }
52020
52029
  function Q(t) {
@@ -52032,14 +52041,14 @@ var require_dist = __commonJS({
52032
52041
  e == null ? void 0 : e.addEventListener("abort", i, { once: true });
52033
52042
  });
52034
52043
  }
52035
- var Pe = "prod";
52044
+ var Ie = "prod";
52036
52045
  function te() {
52037
52046
  let t = typeof process < "u" ? process.env.PAGES_BLOB_STS_ENV : void 0;
52038
- return t === "test" || t === "prod" ? t : Pe;
52047
+ return t === "test" || t === "prod" ? t : Ie;
52039
52048
  }
52040
- var Ie = 300;
52041
- var ke = "https://blob-sts.edgeone.site/";
52042
- var v = class {
52049
+ var ke = 300;
52050
+ var Re = "https://blob-sts.edgeone.site/";
52051
+ var D = class {
52043
52052
  authToken;
52044
52053
  projectId;
52045
52054
  cached = null;
@@ -52057,16 +52066,16 @@ var require_dist = __commonJS({
52057
52066
  }
52058
52067
  isExpired(e) {
52059
52068
  let r = Math.floor(Date.now() / 1e3);
52060
- return e.expiredTime - r < Ie;
52069
+ return e.expiredTime - r < ke;
52061
52070
  }
52062
52071
  async fetchCredential() {
52063
52072
  for (let n = 1; n <= 3; n++) {
52064
52073
  let s = new AbortController(), i = setTimeout(() => s.abort(), 1e4), a;
52065
52074
  try {
52066
- a = await $(ke, { method: "POST", headers: { "Content-Type": "application/json", Authorization: \`Bearer \${this.authToken}\`, "X-Env": te() }, body: JSON.stringify(this.projectId ? { ProjectId: this.projectId } : {}), signal: s.signal });
52075
+ a = await B(Re, { method: "POST", headers: { "Content-Type": "application/json", Authorization: \`Bearer \${this.authToken}\`, "X-Env": te() }, body: JSON.stringify(this.projectId ? { ProjectId: this.projectId } : {}), signal: s.signal });
52067
52076
  } catch (d) {
52068
52077
  if (n < 3) {
52069
- await L(500 * n);
52078
+ await K(500 * n);
52070
52079
  continue;
52071
52080
  }
52072
52081
  throw new m(\`failed to obtain STS credential: \${d.message || "timeout"}\`);
@@ -52079,7 +52088,7 @@ var require_dist = __commonJS({
52079
52088
  throw new m("rate limited, please retry later");
52080
52089
  if (!a.ok) {
52081
52090
  if (a.status >= 500 && n < 3) {
52082
- await L(500 * n);
52091
+ await K(500 * n);
52083
52092
  continue;
52084
52093
  }
52085
52094
  let d = await a.text().catch(() => "unknown error");
@@ -52099,7 +52108,7 @@ var require_dist = __commonJS({
52099
52108
  throw new m(\`credential exchange failed (code=\${o.code}): \${d}\`);
52100
52109
  }
52101
52110
  if (n < 3) {
52102
- await L(500 * n);
52111
+ await K(500 * n);
52103
52112
  continue;
52104
52113
  }
52105
52114
  throw new m("invalid STS credential response");
@@ -52107,12 +52116,12 @@ var require_dist = __commonJS({
52107
52116
  throw new m("invalid STS credential response");
52108
52117
  }
52109
52118
  };
52110
- function L(t) {
52119
+ function K(t) {
52111
52120
  return new Promise((e) => setTimeout(e, t));
52112
52121
  }
52113
- var Re = "{{PAGES_BLOB_DEPLOY_CREDENTIAL}}";
52122
+ var Ae = "{{PAGES_BLOB_DEPLOY_CREDENTIAL}}";
52114
52123
  function re() {
52115
- let t = {}, e = Ae();
52124
+ let t = {}, e = ve();
52116
52125
  if (e)
52117
52126
  t.deployCredential = e;
52118
52127
  else {
@@ -52122,8 +52131,8 @@ var require_dist = __commonJS({
52122
52131
  let r = ne("PAGES_PROJECT_ID");
52123
52132
  return r && (t.projectId = r), t;
52124
52133
  }
52125
- function Ae() {
52126
- let t = Re;
52134
+ function ve() {
52135
+ let t = Ae;
52127
52136
  if (!(t.startsWith("{{") && t.endsWith("}}")))
52128
52137
  return t || void 0;
52129
52138
  }
@@ -52131,15 +52140,15 @@ var require_dist = __commonJS({
52131
52140
  if (typeof process < "u" && process.env)
52132
52141
  return process.env[t];
52133
52142
  }
52134
- function ve(t) {
52143
+ function Me(t) {
52135
52144
  let e = typeof t == "string" ? t : t.name;
52136
- q(e);
52137
- let r = se(typeof t == "string" ? void 0 : t), n = new v(r.authToken, r.projectId), s = new A(n);
52145
+ z2(e);
52146
+ let r = se(typeof t == "string" ? void 0 : t), n = new D(r.authToken, r.projectId), s = new M(n);
52138
52147
  return new E(s, e, r.consistency ?? "eventual");
52139
52148
  }
52140
- async function Me(t) {
52141
- let e = se(t ? { name: "__list__", projectId: t.projectId, token: t.token, consistency: t.consistency } : void 0), r = new v(e.authToken, e.projectId);
52142
- return { stores: (await new A(r).listStores(e.consistency)).map((i) => ({ name: i })) };
52149
+ async function De(t) {
52150
+ let e = se(t ? { name: "__list__", projectId: t.projectId, token: t.token, consistency: t.consistency } : void 0), r = new D(e.authToken, e.projectId);
52151
+ return { stores: (await new M(r).listStores(e.consistency)).map((i) => ({ name: i })) };
52143
52152
  }
52144
52153
  function se(t) {
52145
52154
  let e = re(), r = (t == null ? void 0 : t.token) || e.deployCredential, n = (t == null ? void 0 : t.projectId) || e.projectId;