@cloudbase/cloudbase-mcp
Version:
CloudBase MCP Server — operate Tencent CloudBase (database, auth, functions, storage, hosting) from AI coding tools via the Model Context Protocol. Part of CloudBase AI Toolkit.
2 lines • 5.05 MB
JavaScript
#!/usr/bin/env node
(()=>{var e={33:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,i)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ZodMiniOptional=t.ZodMiniTransform=t.ZodMiniFile=t.ZodMiniLiteral=t.ZodMiniEnum=t.ZodMiniSet=t.ZodMiniMap=t.ZodMiniRecord=t.ZodMiniTuple=t.ZodMiniIntersection=t.ZodMiniDiscriminatedUnion=t.ZodMiniUnion=t.ZodMiniObject=t.ZodMiniArray=t.ZodMiniDate=t.ZodMiniVoid=t.ZodMiniNever=t.ZodMiniUnknown=t.ZodMiniAny=t.ZodMiniNull=t.ZodMiniUndefined=t.ZodMiniSymbol=t.ZodMiniBigIntFormat=t.ZodMiniBigInt=t.ZodMiniBoolean=t.ZodMiniNumberFormat=t.ZodMiniNumber=t.ZodMiniCustomStringFormat=t.ZodMiniJWT=t.ZodMiniE164=t.ZodMiniBase64URL=t.ZodMiniBase64=t.ZodMiniCIDRv6=t.ZodMiniCIDRv4=t.ZodMiniIPv6=t.ZodMiniIPv4=t.ZodMiniKSUID=t.ZodMiniXID=t.ZodMiniULID=t.ZodMiniCUID2=t.ZodMiniCUID=t.ZodMiniNanoID=t.ZodMiniEmoji=t.ZodMiniURL=t.ZodMiniUUID=t.ZodMiniGUID=t.ZodMiniEmail=t.ZodMiniStringFormat=t.ZodMiniString=t.ZodMiniType=void 0,t.stringbool=t.ZodMiniCustom=t.ZodMiniPromise=t.ZodMiniLazy=t.ZodMiniTemplateLiteral=t.ZodMiniReadonly=t.ZodMiniPipe=t.ZodMiniNaN=t.ZodMiniCatch=t.ZodMiniSuccess=t.ZodMiniNonOptional=t.ZodMiniPrefault=t.ZodMiniDefault=t.ZodMiniNullable=void 0,t.string=u,t.email=function(e){return o._email(t.ZodMiniEmail,e)},t.guid=function(e){return o._guid(t.ZodMiniGUID,e)},t.uuid=function(e){return o._uuid(t.ZodMiniUUID,e)},t.uuidv4=function(e){return o._uuidv4(t.ZodMiniUUID,e)},t.uuidv6=function(e){return o._uuidv6(t.ZodMiniUUID,e)},t.uuidv7=function(e){return o._uuidv7(t.ZodMiniUUID,e)},t.url=function(e){return o._url(t.ZodMiniURL,e)},t.emoji=function(e){return o._emoji(t.ZodMiniEmoji,e)},t.nanoid=function(e){return o._nanoid(t.ZodMiniNanoID,e)},t.cuid=function(e){return o._cuid(t.ZodMiniCUID,e)},t.cuid2=function(e){return o._cuid2(t.ZodMiniCUID2,e)},t.ulid=function(e){return o._ulid(t.ZodMiniULID,e)},t.xid=function(e){return o._xid(t.ZodMiniXID,e)},t.ksuid=function(e){return o._ksuid(t.ZodMiniKSUID,e)},t.ipv4=function(e){return o._ipv4(t.ZodMiniIPv4,e)},t.ipv6=function(e){return o._ipv6(t.ZodMiniIPv6,e)},t.cidrv4=function(e){return o._cidrv4(t.ZodMiniCIDRv4,e)},t.cidrv6=function(e){return o._cidrv6(t.ZodMiniCIDRv6,e)},t.base64=function(e){return o._base64(t.ZodMiniBase64,e)},t.base64url=function(e){return o._base64url(t.ZodMiniBase64URL,e)},t.e164=function(e){return o._e164(t.ZodMiniE164,e)},t.jwt=function(e){return o._jwt(t.ZodMiniJWT,e)},t.stringFormat=function(e,n,a={}){return o._stringFormat(t.ZodMiniCustomStringFormat,e,n,a)},t.number=l,t.int=function(e){return o._int(t.ZodMiniNumberFormat,e)},t.float32=function(e){return o._float32(t.ZodMiniNumberFormat,e)},t.float64=function(e){return o._float64(t.ZodMiniNumberFormat,e)},t.int32=function(e){return o._int32(t.ZodMiniNumberFormat,e)},t.uint32=function(e){return o._uint32(t.ZodMiniNumberFormat,e)},t.boolean=p,t.bigint=function(e){return o._bigint(t.ZodMiniBigInt,e)},t.int64=function(e){return o._int64(t.ZodMiniBigIntFormat,e)},t.uint64=function(e){return o._uint64(t.ZodMiniBigIntFormat,e)},t.symbol=function(e){return o._symbol(t.ZodMiniSymbol,e)},t.undefined=function(e){return o._undefined(t.ZodMiniUndefined,e)},t.null=d,t.any=function(){return o._any(t.ZodMiniAny)},t.unknown=m,t.never=f,t.void=function(e){return o._void(t.ZodMiniVoid,e)},t.date=function(e){return o._date(t.ZodMiniDate,e)},t.array=h,t.keyof=function(e){const t=e._zod.def.shape;return y(Object.keys(t))},t.object=function(e,n){const a={type:"object",get shape(){return s.util.assignProp(this,"shape",{...e}),this.shape},...s.util.normalizeParams(n)};return new t.ZodMiniObject(a)},t.strictObject=function(e,n){return new t.ZodMiniObject({type:"object",get shape(){return s.util.assignProp(this,"shape",{...e}),this.shape},catchall:f(),...s.util.normalizeParams(n)})},t.looseObject=function(e,n){return new t.ZodMiniObject({type:"object",get shape(){return s.util.assignProp(this,"shape",{...e}),this.shape},catchall:m(),...s.util.normalizeParams(n)})},t.extend=function(e,t){return s.util.extend(e,t)},t.merge=function(e,t){return s.util.extend(e,t)},t.pick=function(e,t){return s.util.pick(e,t)},t.omit=function(e,t){return s.util.omit(e,t)},t.partial=function(e,n){return s.util.partial(t.ZodMiniOptional,e,n)},t.required=function(e,n){return s.util.required(t.ZodMiniNonOptional,e,n)},t.catchall=function(e,t){return e.clone({...e._zod.def,catchall:t})},t.union=g,t.discriminatedUnion=function(e,n,a){return new t.ZodMiniDiscriminatedUnion({type:"union",options:n,discriminator:e,...s.util.normalizeParams(a)})},t.intersection=function(e,n){return new t.ZodMiniIntersection({type:"intersection",left:e,right:n})},t.tuple=function(e,n,a){const i=n instanceof o.$ZodType,r=i?a:n,c=i?n:null;return new t.ZodMiniTuple({type:"tuple",items:e,rest:c,...s.util.normalizeParams(r)})},t.record=v,t.partialRecord=function(e,n,a){return new t.ZodMiniRecord({type:"record",keyType:g([e,f()]),valueType:n,...s.util.normalizeParams(a)})},t.map=function(e,n,a){return new t.ZodMiniMap({type:"map",keyType:e,valueType:n,...s.util.normalizeParams(a)})},t.set=function(e,n){return new t.ZodMiniSet({type:"set",valueType:e,...s.util.normalizeParams(n)})},t.enum=function(e,n){const a=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new t.ZodMiniEnum({type:"enum",entries:a,...s.util.normalizeParams(n)})},t.nativeEnum=function(e,n){return new t.ZodMiniEnum({type:"enum",entries:e,...s.util.normalizeParams(n)})},t.literal=y,t.file=function(e){return o._file(t.ZodMiniFile,e)},t.transform=function(e){return new t.ZodMiniTransform({type:"transform",transform:e})},t.optional=b,t.nullable=_,t.nullish=function(e){return b(_(e))},t._default=function(e,n){return new t.ZodMiniDefault({type:"default",innerType:e,get defaultValue(){return"function"==typeof n?n():n}})},t.prefault=function(e,n){return new t.ZodMiniPrefault({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof n?n():n}})},t.nonoptional=function(e,n){return new t.ZodMiniNonOptional({type:"nonoptional",innerType:e,...s.util.normalizeParams(n)})},t.success=function(e){return new t.ZodMiniSuccess({type:"success",innerType:e})},t.catch=function(e,n){return new t.ZodMiniCatch({type:"catch",innerType:e,catchValue:"function"==typeof n?n:()=>n})},t.nan=function(e){return o._nan(t.ZodMiniNaN,e)},t.pipe=function(e,n){return new t.ZodMiniPipe({type:"pipe",in:e,out:n})},t.readonly=function(e){return new t.ZodMiniReadonly({type:"readonly",innerType:e})},t.templateLiteral=function(e,n){return new t.ZodMiniTemplateLiteral({type:"template_literal",parts:e,...s.util.normalizeParams(n)})},t.lazy=w,t.promise=function(e){return new t.ZodMiniPromise({type:"promise",innerType:e})},t.check=function(e,t){const n=new o.$ZodCheck({check:"custom",...s.util.normalizeParams(t)});return n._zod.check=e,n},t.custom=x,t.refine=function(e,n={}){return o._refine(t.ZodMiniCustom,e,n)},t.instanceof=function(e,t={error:`Input not instance of ${e.name}`}){const n=x(t=>t instanceof e,t);return n._zod.bag.Class=e,n},t.json=function(){const e=w(()=>g([u(),l(),p(),d(),h(e),v(u(),e)]));return e};const o=r(n(76601)),s=n(76601),c=r(n(83168));function u(e){return o._string(t.ZodMiniString,e)}function l(e){return o._number(t.ZodMiniNumber,e)}function p(e){return o._boolean(t.ZodMiniBoolean,e)}function d(e){return o._null(t.ZodMiniNull,e)}function m(){return o._unknown(t.ZodMiniUnknown)}function f(e){return o._never(t.ZodMiniNever,e)}function h(e,n){return new t.ZodMiniArray({type:"array",element:e,...s.util.normalizeParams(n)})}function g(e,n){return new t.ZodMiniUnion({type:"union",options:e,...s.util.normalizeParams(n)})}function v(e,n,a){return new t.ZodMiniRecord({type:"record",keyType:e,valueType:n,...s.util.normalizeParams(a)})}function y(e,n){return new t.ZodMiniLiteral({type:"literal",values:Array.isArray(e)?e:[e],...s.util.normalizeParams(n)})}function b(e){return new t.ZodMiniOptional({type:"optional",innerType:e})}function _(e){return new t.ZodMiniNullable({type:"nullable",innerType:e})}function w(e){return new t.ZodMiniLazy({type:"lazy",getter:e})}function x(e,n){return o._custom(t.ZodMiniCustom,e??(()=>!0),n)}t.ZodMiniType=o.$constructor("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");o.$ZodType.init(e,t),e.def=t,e.parse=(t,n)=>c.parse(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>c.safeParse(e,t,n),e.parseAsync=async(t,n)=>c.parseAsync(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>c.safeParseAsync(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>o.clone(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e)}),t.ZodMiniString=o.$constructor("ZodMiniString",(e,n)=>{o.$ZodString.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniStringFormat=o.$constructor("ZodMiniStringFormat",(e,n)=>{o.$ZodStringFormat.init(e,n),t.ZodMiniString.init(e,n)}),t.ZodMiniEmail=o.$constructor("ZodMiniEmail",(e,n)=>{o.$ZodEmail.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniGUID=o.$constructor("ZodMiniGUID",(e,n)=>{o.$ZodGUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniUUID=o.$constructor("ZodMiniUUID",(e,n)=>{o.$ZodUUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniURL=o.$constructor("ZodMiniURL",(e,n)=>{o.$ZodURL.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniEmoji=o.$constructor("ZodMiniEmoji",(e,n)=>{o.$ZodEmoji.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniNanoID=o.$constructor("ZodMiniNanoID",(e,n)=>{o.$ZodNanoID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCUID=o.$constructor("ZodMiniCUID",(e,n)=>{o.$ZodCUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCUID2=o.$constructor("ZodMiniCUID2",(e,n)=>{o.$ZodCUID2.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniULID=o.$constructor("ZodMiniULID",(e,n)=>{o.$ZodULID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniXID=o.$constructor("ZodMiniXID",(e,n)=>{o.$ZodXID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniKSUID=o.$constructor("ZodMiniKSUID",(e,n)=>{o.$ZodKSUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniIPv4=o.$constructor("ZodMiniIPv4",(e,n)=>{o.$ZodIPv4.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniIPv6=o.$constructor("ZodMiniIPv6",(e,n)=>{o.$ZodIPv6.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCIDRv4=o.$constructor("ZodMiniCIDRv4",(e,n)=>{o.$ZodCIDRv4.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCIDRv6=o.$constructor("ZodMiniCIDRv6",(e,n)=>{o.$ZodCIDRv6.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniBase64=o.$constructor("ZodMiniBase64",(e,n)=>{o.$ZodBase64.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniBase64URL=o.$constructor("ZodMiniBase64URL",(e,n)=>{o.$ZodBase64URL.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniE164=o.$constructor("ZodMiniE164",(e,n)=>{o.$ZodE164.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniJWT=o.$constructor("ZodMiniJWT",(e,n)=>{o.$ZodJWT.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCustomStringFormat=o.$constructor("ZodMiniCustomStringFormat",(e,n)=>{o.$ZodCustomStringFormat.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniNumber=o.$constructor("ZodMiniNumber",(e,n)=>{o.$ZodNumber.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNumberFormat=o.$constructor("ZodMiniNumberFormat",(e,n)=>{o.$ZodNumberFormat.init(e,n),t.ZodMiniNumber.init(e,n)}),t.ZodMiniBoolean=o.$constructor("ZodMiniBoolean",(e,n)=>{o.$ZodBoolean.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniBigInt=o.$constructor("ZodMiniBigInt",(e,n)=>{o.$ZodBigInt.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniBigIntFormat=o.$constructor("ZodMiniBigIntFormat",(e,n)=>{o.$ZodBigIntFormat.init(e,n),t.ZodMiniBigInt.init(e,n)}),t.ZodMiniSymbol=o.$constructor("ZodMiniSymbol",(e,n)=>{o.$ZodSymbol.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniUndefined=o.$constructor("ZodMiniUndefined",(e,n)=>{o.$ZodUndefined.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNull=o.$constructor("ZodMiniNull",(e,n)=>{o.$ZodNull.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniAny=o.$constructor("ZodMiniAny",(e,n)=>{o.$ZodAny.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniUnknown=o.$constructor("ZodMiniUnknown",(e,n)=>{o.$ZodUnknown.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNever=o.$constructor("ZodMiniNever",(e,n)=>{o.$ZodNever.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniVoid=o.$constructor("ZodMiniVoid",(e,n)=>{o.$ZodVoid.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniDate=o.$constructor("ZodMiniDate",(e,n)=>{o.$ZodDate.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniArray=o.$constructor("ZodMiniArray",(e,n)=>{o.$ZodArray.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniObject=o.$constructor("ZodMiniObject",(e,n)=>{o.$ZodObject.init(e,n),t.ZodMiniType.init(e,n),s.util.defineLazy(e,"shape",()=>n.shape)}),t.ZodMiniUnion=o.$constructor("ZodMiniUnion",(e,n)=>{o.$ZodUnion.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniDiscriminatedUnion=o.$constructor("ZodMiniDiscriminatedUnion",(e,n)=>{o.$ZodDiscriminatedUnion.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniIntersection=o.$constructor("ZodMiniIntersection",(e,n)=>{o.$ZodIntersection.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniTuple=o.$constructor("ZodMiniTuple",(e,n)=>{o.$ZodTuple.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniRecord=o.$constructor("ZodMiniRecord",(e,n)=>{o.$ZodRecord.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniMap=o.$constructor("ZodMiniMap",(e,n)=>{o.$ZodMap.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniSet=o.$constructor("ZodMiniSet",(e,n)=>{o.$ZodSet.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniEnum=o.$constructor("ZodMiniEnum",(e,n)=>{o.$ZodEnum.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniLiteral=o.$constructor("ZodMiniLiteral",(e,n)=>{o.$ZodLiteral.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniFile=o.$constructor("ZodMiniFile",(e,n)=>{o.$ZodFile.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniTransform=o.$constructor("ZodMiniTransform",(e,n)=>{o.$ZodTransform.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniOptional=o.$constructor("ZodMiniOptional",(e,n)=>{o.$ZodOptional.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNullable=o.$constructor("ZodMiniNullable",(e,n)=>{o.$ZodNullable.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniDefault=o.$constructor("ZodMiniDefault",(e,n)=>{o.$ZodDefault.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniPrefault=o.$constructor("ZodMiniPrefault",(e,n)=>{o.$ZodPrefault.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNonOptional=o.$constructor("ZodMiniNonOptional",(e,n)=>{o.$ZodNonOptional.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniSuccess=o.$constructor("ZodMiniSuccess",(e,n)=>{o.$ZodSuccess.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniCatch=o.$constructor("ZodMiniCatch",(e,n)=>{o.$ZodCatch.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNaN=o.$constructor("ZodMiniNaN",(e,n)=>{o.$ZodNaN.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniPipe=o.$constructor("ZodMiniPipe",(e,n)=>{o.$ZodPipe.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniReadonly=o.$constructor("ZodMiniReadonly",(e,n)=>{o.$ZodReadonly.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniTemplateLiteral=o.$constructor("ZodMiniTemplateLiteral",(e,n)=>{o.$ZodTemplateLiteral.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniLazy=o.$constructor("ZodMiniLazy",(e,n)=>{o.$ZodLazy.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniPromise=o.$constructor("ZodMiniPromise",(e,n)=>{o.$ZodPromise.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniCustom=o.$constructor("ZodMiniCustom",(e,n)=>{o.$ZodCustom.init(e,n),t.ZodMiniType.init(e,n)}),t.stringbool=(...e)=>o._stringbool({Pipe:t.ZodMiniPipe,Boolean:t.ZodMiniBoolean,String:t.ZodMiniString,Transform:t.ZodMiniTransform},...e)},71:(e,t,n)=>{"use strict";e.exports={CRC32Stream:n(35485),DeflateCRC32Stream:n(40951)}},85:(e,t,n)=>{var a=n(28354),i=n(28768);function r(e,t,n){e[t]=function(){return delete e[t],n.apply(this,arguments),this[t].apply(this,arguments)}}function o(e,t){if(!(this instanceof o))return new o(e,t);i.call(this,t),r(this,"_read",function(){var n=e.call(this,t),a=this.emit.bind(this,"error");n.on("error",a),n.pipe(this)}),this.emit("readable")}function s(e,t){if(!(this instanceof s))return new s(e,t);i.call(this,t),r(this,"_write",function(){var n=e.call(this,t),a=this.emit.bind(this,"error");n.on("error",a),this.pipe(n)}),this.emit("writable")}e.exports={Readable:o,Writable:s},a.inherits(o,i),a.inherits(s,i)},92:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,i)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:s()}};const o=r(n(90523)),s=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}const n={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return e=>{switch(e.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${e.expected} ប៉ុន្តែទទួលបាន ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":if(Array.isArray(e))return"អារេ (Array)";if(null===e)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o.stringifyPrimitive(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${o.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",a=t(e.origin);return a?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",a=t(e.origin);return a?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${o.joinValues(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}}},95:function(e,t,n){"use strict";var a=this&&this.__decorate||function(e,t,n,a){var i,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,a);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(r<3?i(o):r>3?i(t,n,o):i(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudRunService=void 0,t.codeToZip=p,t.parseObjectToDiffConfigItem=m;const r=i(n(99133)),o=n(21605),s=i(n(33873)),c=n(62358),u=n(59411);class l{constructor(e){this.environment=e,this.tcbrService=new c.CloudService(e.cloudBaseContext,"tcbr","2022-02-17"),this.tcbService=new c.CloudService(e.cloudBaseContext,"tcb","2018-06-08")}async init(e){const{serverName:t,template:n="helloworld",targetPath:a="."}=e||{},i=(await this.getTemplates()).find(e=>e.identifier===n);if(!i||!i.zipFileStore)throw new Error(`未找到匹配的模板: ${n}`);const r=i.zipFileStore,o=s.default.resolve(a,t);return await(0,c.downloadAndExtractRemoteZip)(r,o),{projectDir:o}}async download(e){var t,n;const a=this.environment.lazyEnvironmentConfig,{serverName:i,targetPath:r}=e,o=null===(n=null===(t=(await this.detail({serverName:i})).OnlineVersionInfos)||void 0===t?void 0:t[0])||void 0===n?void 0:n.VersionName;if(!o)throw new Error("未找到云托管服务版本");const u=await this.tcbService.request("DescribeCloudBaseBuildService",{EnvId:a.EnvId,ServiceName:i,ServiceVersion:o});if(!(null==u?void 0:u.DownloadUrl))throw new Error(`云托管代码下载地址为空(请求ID: ${u.RequestId})`);await(0,c.downloadAndExtractRemoteZip)(null==u?void 0:u.DownloadUrl,s.default.resolve(r))}async list(e){const t=this.environment.lazyEnvironmentConfig;return this.tcbrService.request("DescribeCloudRunServers",Object.assign({EnvId:t.EnvId},{PageSize:(null==e?void 0:e.pageSize)||10,PageNum:(null==e?void 0:e.pageNum)||1,ServerName:null==e?void 0:e.serverName,ServerType:null==e?void 0:e.serverType}))}async setTraffic(e,t,n){if(t+n!==100)throw new Error("稳定版本流量比例和灰度版本流量比例之和必须等于 100");const a=this.environment.lazyEnvironmentConfig,{Task:i}=await this.tcbrService.request("DescribeServerManageTask",{EnvId:a.EnvId,ServerName:e,TaskId:0});if((null==i?void 0:i.ReleaseType)!==u.ReleaseTypeEnum.GRAY||"running"!==(null==i?void 0:i.Status))throw new Error("不存在灰度中的版本或灰度版本部署未完成");const{ReleaseOrderInfo:r}=await this.tcbrService.request("DescribeReleaseOrder",{EnvId:a.EnvId,ServerName:e}),{CurrentVersion:o,ReleaseVersion:s}=r;return await this.tcbrService.request("ReleaseGray",{EnvId:a.EnvId,ServerName:e,GrayType:"gray",TrafficType:"FLOW",GrayFlowRatio:n,VersionFlowItems:[{VersionName:o.VersionName,FlowRatio:t,IsDefaultPriority:!0,Priority:1},{VersionName:s.VersionName,FlowRatio:n,IsDefaultPriority:!1,Priority:2}]})}async promote(e){const t=this.environment.lazyEnvironmentConfig,{ReleaseOrderInfo:n}=await this.tcbrService.request("DescribeReleaseOrder",{EnvId:t.EnvId,ServerName:e}),{ReleaseVersion:a}=n;return await this.tcbrService.request("ReleaseGray",{EnvId:t.EnvId,ServerName:e,GrayType:"gray",TrafficType:"FLOW",GrayFlowRatio:100,VersionFlowItems:[{VersionName:a.VersionName,FlowRatio:100,Priority:0,IsDefaultPriority:!0}],CloseGrayRelease:!0})}async rollback(e){const t=this.environment.lazyEnvironmentConfig,{Task:n}=await this.tcbrService.request("DescribeServerManageTask",{EnvId:t.EnvId,ServerName:e,TaskId:0});return await this.tcbrService.request("OperateServerManage",{EnvId:t.EnvId,ServerName:e,TaskId:n.Id,OperateType:"go_back"})}async detail(e){const t=this.environment.lazyEnvironmentConfig;return await this.tcbrService.request("DescribeCloudRunServerDetail",{EnvId:t.EnvId,ServerName:e.serverName})}async delete(e){const t=this.environment.lazyEnvironmentConfig;return this.tcbrService.request("DeleteCloudRunServer",{EnvId:t.EnvId,ServerName:e.serverName})}async deploy(e){var t;const{serverName:n,targetPath:a=process.cwd(),serverConfig:i,vpcInfo:r,imageUrl:u}=e;if(!n)throw new Error("Missing required parameters: serviceName");const l=this.environment.lazyEnvironmentConfig;let d;if(u)d={DeployType:"image",ImageUrl:u};else{const{UploadUrl:e,UploadHeaders:t,PackageName:r,PackageVersion:o}=await this.tcbService.request("DescribeCloudBaseBuildService",{EnvId:l.EnvId,ServiceName:n});d={DeployType:"package",PackageName:r,PackageVersion:o};const s=await p(a,{installDependency:void 0===(null==i?void 0:i.InstallDependency)||i.InstallDependency});await(0,c.upload)({url:e,file:s,headers:(t||[]).reduce((e,t)=>(e[t.Key]=t.Value,e),{})||{},method:"PUT"})}if(await this._checkFunctionExist(n)){const a=await this.detail({serverName:n}),r=Object.assign(Object.assign(Object.assign({},i),{OpenAccessTypes:["OA","PUBLIC","MINIAPP"]}),"function:"===(null==a?void 0:a.ServerConfig.Tag)?{Port:3e3}:{});return"function:"===(null==a?void 0:a.ServerConfig.Tag)&&(d.BuildPacks={LanguageVersion:"20.18",RepoLanguage:"Node.js"}),d.ReleaseType=(null===(t=e.deployInfo)||void 0===t?void 0:t.ReleaseType)||"FULL",this._upsertFunction(!1,{name:n,deployInfo:d,serverConfig:r})}{let e=u?"container":"function";!u&&(null==i?void 0:i.Dockerfile)?e="container":u||await(0,o.pathExists)(s.default.join(a,"Dockerfile"))&&(e="container"),"function"!==e||u||(d.BuildPacks={LanguageVersion:"20.18",RepoLanguage:"Node.js"});const t=Object.assign(Object.assign(Object.assign({OpenAccessTypes:["OA","PUBLIC","MINIAPP"],MinNum:0,EnvParams:JSON.stringify({}),InitialDelaySeconds:0,CustomLogs:"",HasDockerfile:!0,CreateTime:"",EnvId:l.EnvId,ServerName:n,Port:"container"===e?80:3e3,Dockerfile:"Dockerfile",BuildDir:""},i),"function"===e?{Port:3e3}:{}),{Tag:"container"===e?"":"function:"});return this._upsertFunction(!0,{name:n,deployInfo:d,serverConfig:t,vpcInfo:r})}}async getTemplates(){return(0,c.fetchTemplates)(["tcbrFunc","tcbrContainer"])}async getDeployRecords(e){const t=this.environment.lazyEnvironmentConfig,n=await this.tcbrService.request("DescribeCloudRunDeployRecord",{EnvId:t.EnvId,ServerName:e.serverName});return n.DeployRecords.sort((e,t)=>new Date(t.DeployTime).getTime()-new Date(e.DeployTime).getTime()),n}async getBuildLog(e){const t=this.environment.lazyEnvironmentConfig;let n=e.buildId;return n||(n=(await this.getDeployRecords({serverName:e.serverName})).DeployRecords[0].BuildId),this.tcbrService.request("DescribeCloudRunBuildLog",{EnvId:t.EnvId,ServerName:e.serverName,ServerVersion:"",BuildId:n,Offset:0})}async getProcessLog(e){const t=this.environment.lazyEnvironmentConfig;return this.tcbrService.request("DescribeCloudRunProcessLog",{EnvId:t.EnvId,RunId:e.RunId})}async _checkFunctionExist(e){try{return await this.detail({serverName:e}),!0}catch(e){if("ResourceNotFound"===e.code||"ResourceNotFound.ServerNotFound"===e.code||"InvalidParameter"===e.code&&"service data illegal"===e.original.Message)return!1;throw e}}_upsertFunction(e,t){const{name:n,deployInfo:a,serverConfig:i,vpcInfo:r}=t,o=this.environment.lazyEnvironmentConfig,s=m(i),c={EnvId:o.EnvId,ServerName:n,DeployInfo:a,Items:s};return e&&r&&(c.VpcInfo=r),this.tcbrService.request(e?"CreateCloudRunServer":"UpdateCloudRunServer",c)}}async function p(e,t){const n=(0,r.default)("zip",{zlib:{level:1}}),a=[],i=new Promise((e,t)=>{n.on("data",e=>{a.push(e)}),n.on("end",()=>{e(Buffer.concat(a))}),n.on("error",e=>{t(e)})});return await async function e(a,i=!1,r=""){const c=await(0,o.readdir)(a,{withFileTypes:!0});for(let o of c){const c=s.default.join(a,o.name),u=s.default.join(r,o.name);if(o.isDirectory()){if(["logs",".git"].includes(o.name))continue;if((null==t?void 0:t.installDependency)&&["node_modules"].includes(o.name))continue;await e(c,!1,u)}else{if(i&&[""].includes(o.name))continue;n.file(c,{name:u})}}}(s.default.resolve(e),!0),await n.finalize(),i}t.CloudRunService=l,a([(0,c.preLazy)()],l.prototype,"init",null),a([(0,c.preLazy)()],l.prototype,"download",null),a([(0,c.preLazy)()],l.prototype,"list",null),a([(0,c.preLazy)()],l.prototype,"setTraffic",null),a([(0,c.preLazy)()],l.prototype,"promote",null),a([(0,c.preLazy)()],l.prototype,"rollback",null),a([(0,c.preLazy)()],l.prototype,"detail",null),a([(0,c.preLazy)()],l.prototype,"delete",null),a([(0,c.preLazy)()],l.prototype,"deploy",null),a([(0,c.preLazy)()],l.prototype,"getDeployRecords",null),a([(0,c.preLazy)()],l.prototype,"getBuildLog",null),a([(0,c.preLazy)()],l.prototype,"getProcessLog",null);const d={Cpu:"CpuSpecs",Mem:"MemSpecs",OpenAccessTypes:"AccessTypes",EnvParams:"EnvParam",CustomLogs:"LogPath"};function m(e){const t=Object.entries(e),n=[];return t.forEach(([e,t])=>{const a=d[e]||e;["CustomLogs","EnvParams","CreateTime","Dockerfile","BuildDir","LogType","LogSetId","LogTopicId","LogParseType","Tag","InternalAccess","InternalDomain","OperationMode","SessionAffinity"].includes(e)?t&&n.push({Key:a,Value:t}):["MinNum","MaxNum","InitialDelaySeconds","Port"].includes(e)?n.push({Key:a,IntValue:t}):["HasDockerfile"].includes(e)?n.push({Key:a,BoolValue:t}):["Cpu","Mem"].includes(e)?n.push({Key:a,FloatValue:t}):["OpenAccessTypes","EntryPoint","Cmd"].includes(e)?n.push({Key:a,ArrayValue:t}):["PolicyDetails"].includes(e)?n.push({Key:a,PolicyDetails:t}):["TimerScale"].includes(e)?n.push({Key:a,TimerScale:t}):["VpcConf"].includes(e)?n.push({Key:a,VpcConf:t}):["VolumesConf"].includes(e)?n.push({Key:a,VolumesConf:t}):["PublicNetConf"].includes(e)&&n.push({Key:a,PublicNetConf:t})}),n}},119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(33873),i=n(98631),r=n(57705);t.default=class{constructor(e){this._settings=e,this._fsStatSettings=new i.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return a.resolve(this._settings.cwd,e)}_makeEntry(e,t){const n={name:t,path:t,dirent:r.fs.createDirentFromStats(t,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!r.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}},199:(e,t,n)=>{const a=n(28354),i=n(74075),r=n(27910),o=n(17437),s=n(12994),c=n(51324),u=n(58189),l=n(3214),p=r.pipeline,d=n(8325),m=Buffer.alloc(4);function f(e){if(!(this instanceof f))return new f(e);const t=this;t._opts=e||{verbose:!1},o.call(t,t._opts),t.on("finish",function(){t.emit("end"),t.emit("close")}),t._readRecord().catch(function(e){t.__emittedError&&t.__emittedError===e||t.emit("error",e)})}m.writeUInt32LE(101010256,0),a.inherits(f,o),f.prototype._readRecord=function(){const e=this;return e.pull(4).then(function(t){if(0===t.length)return;const n=t.readUInt32LE(0);if(875721283===n)return e._readCrxHeader();if(67324752===n)return e._readFile();if(33639248===n)return e.reachedCD=!0,e._readCentralDirectoryFileHeader();if(101010256===n)return e._readEndOfCentralDirectoryRecord();if(e.reachedCD){const t=!0;return e.pull(m,t).then(function(){return e._readEndOfCentralDirectoryRecord()})}e.emit("error",new Error("invalid signature: 0x"+n.toString(16)))}).then(function(t){if(t)return e._readRecord()})},f.prototype._readCrxHeader=function(){const e=this;return e.pull(12).then(function(t){return e.crxHeader=d.parse(t,[["version",4],["pubKeyLength",4],["signatureLength",4]]),e.pull(e.crxHeader.pubKeyLength+e.crxHeader.signatureLength)}).then(function(t){return e.crxHeader.publicKey=t.slice(0,e.crxHeader.pubKeyLength),e.crxHeader.signature=t.slice(e.crxHeader.pubKeyLength),e.emit("crx-header",e.crxHeader),!0})},f.prototype._readFile=function(){const e=this;return e.pull(26).then(function(t){const n=d.parse(t,[["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2]]);return n.lastModifiedDateTime=l(n.lastModifiedDate,n.lastModifiedTime),e.crxHeader&&(n.crxHeader=e.crxHeader),e.pull(n.fileNameLength).then(function(t){const a=t.toString("utf8"),o=r.PassThrough();let l=!1;return o.autodrain=function(){l=!0;const e=o.pipe(s());return e.promise=function(){return new Promise(function(t,n){e.on("finish",t),e.on("error",n)})},e},o.buffer=function(){return c(o)},o.path=a,o.props={},o.props.path=a,o.props.pathBuffer=t,o.props.flags={isUnicode:!!(2048&n.flags)},o.type=0===n.uncompressedSize&&/[/\\]$/.test(a)?"Directory":"File",e._opts.verbose&&("Directory"===o.type?console.log(" creating:",a):"File"===o.type&&(0===n.compressionMethod?console.log(" extracting:",a):console.log(" inflating:",a))),e.pull(n.extraFieldLength).then(function(t){const s=u(t,n);o.vars=n,o.extra=s,e._opts.forceStream?e.push(o):(e.emit("entry",o),(e._readableState.pipesCount||e._readableState.pipes&&e._readableState.pipes.length)&&e.push(o)),e._opts.verbose&&console.log({filename:a,vars:n,extra:s});const c=!(8&n.flags)||n.compressedSize>0;let d;o.__autodraining=l;const m=n.compressionMethod&&!l?i.createInflateRaw():r.PassThrough();return c?(o.size=n.uncompressedSize,d=n.compressedSize):(d=Buffer.alloc(4),d.writeUInt32LE(134695760,0)),new Promise(function(t,n){p(e.stream(d),m,o,function(a){return a?n(a):c?t(c):e._processDataDescriptor(o).then(t).catch(n)})})})})})},f.prototype._processDataDescriptor=function(e){return this.pull(16).then(function(t){const n=d.parse(t,[["dataDescriptorSignature",4],["crc32",4],["compressedSize",4],["uncompressedSize",4]]);return e.size=n.uncompressedSize,!0})},f.prototype._readCentralDirectoryFileHeader=function(){const e=this;return e.pull(42).then(function(t){const n=d.parse(t,[["versionMadeBy",2],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2],["fileCommentLength",2],["diskNumber",2],["internalFileAttributes",2],["externalFileAttributes",4],["offsetToLocalFileHeader",4]]);return e.pull(n.fileNameLength).then(function(t){return n.fileName=t.toString("utf8"),e.pull(n.extraFieldLength)}).then(function(){return e.pull(n.fileCommentLength)}).then(function(){return!0})})},f.prototype._readEndOfCentralDirectoryRecord=function(){const e=this;return e.pull(18).then(function(t){const n=d.parse(t,[["diskNumber",2],["diskStart",2],["numberOfRecordsOnDisk",2],["numberOfRecords",2],["sizeOfCentralDirectory",4],["offsetToStartOfCentralDirectory",4],["commentLength",2]]);return e.pull(n.commentLength).then(function(){e.end(),e.push(null)})})},f.prototype.promise=function(){const e=this;return new Promise(function(t,n){e.on("finish",t),e.on("error",n)})},e.exports=f},247:e=>{"use strict";e.exports=JSON.parse('{"$id":"query.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},251:(e,t)=>{t.L=function(e,t,n,a,i){var r,o,s=8*i-a-1,c=(1<<s)-1,u=c>>1,l=-7,p=n?i-1:0,d=n?-1:1,m=e[t+p];for(p+=d,r=m&(1<<-l)-1,m>>=-l,l+=s;l>0;r=256*r+e[t+p],p+=d,l-=8);for(o=r&(1<<-l)-1,r>>=-l,l+=a;l>0;o=256*o+e[t+p],p+=d,l-=8);if(0===r)r=1-u;else{if(r===c)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,a),r-=u}return(m?-1:1)*o*Math.pow(2,r-a)},t.M=function(e,t,n,a,i,r){var o,s,c,u=8*r-i-1,l=(1<<u)-1,p=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=a?0:r-1,f=a?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(o++,c/=2),o+p>=l?(s=0,o=l):o+p>=1?(s=(t*c-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[n+m]=255&s,m+=f,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+m]=255&o,m+=f,o/=256,u-=8);e[n+m-f]|=128*h}},259:e=>{function t(e){this.name="Bzip2Error",this.message=e,this.stack=(new Error).stack}t.prototype=new Error;var n=function(e){throw new t(e)},a={};a.Bzip2Error=t,a.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],a.array=function(e){var t=0,n=0,a=[0,1,3,7,15,31,63,127,255];return function(i){for(var r=0;i>0;){var o=8-t;i>=o?(r<<=o,r|=a[o]&e[n++],t=0,i-=o):(r<<=i,r|=(e[n]&a[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return r}},a.simple=function(e,t){var n=a.array(e),i=!1,r=1e5*a.header(n),o=new Int32Array(r);do{i=a.decompress(n,t,o,r)}while(!i)},a.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=e(24)&&n("No magic number found");var t=e(8)-48;return(t<1||t>9)&&n("Not a BZIP archive"),t},a.decompress=function(e,t,a,i,r){for(var o=-1,s="",c=0;c<6;c++)s+=e(8).toString(16);if("177245385090"==s)return(0|e(32))!==r&&n("Error in bzip2: crc32 do not match"),e(null),null;"314159265359"!=s&&n("eek not valid bzip data");var u=0|e(32);e(1)&&n("unsupported obsolete version");var l=e(24);l>i&&n("Initial position larger than buffer size");var p=e(16),d=0;for(c=0;c<16;c++)if(p&1<<15-c){var m=e(16);for(g=0;g<16;g++)m&1<<15-g&&(this.symToByte[d++]=16*c+g)}var f=e(3);(f<2||f>6)&&n("another error");var h=e(15);for(0==h&&n("meh"),c=0;c<f;c++)this.mtfSymbol[c]=c;for(c=0;c<h;c++){for(var g=0;e(1);g++)g>=f&&n("whoops another error");var v=this.mtfSymbol[g];for(m=g-1;m>=0;m--)this.mtfSymbol[m+1]=this.mtfSymbol[m];this.mtfSymbol[0]=v,this.selectors[c]=v}var y,b,_,w,x=d+2,k=[],S=new Uint8Array(258),E=new Uint16Array(21);for(g=0;g<f;g++){for(p=e(5),c=0;c<x;c++){for(;(p<1||p>20)&&n("I gave up a while ago on writing error messages"),e(1);)e(1)?p--:p++;S[c]=p}var T,D;for(T=D=S[0],c=1;c<x;c++)S[c]>D?D=S[c]:S[c]<T&&(T=S[c]);(y=k[g]={}).permute=new Int32Array(258),y.limit=new Int32Array(21),y.base=new Int32Array(21),y.minLen=T,y.maxLen=D;var j=y.base,C=y.limit,I=0;for(c=T;c<=D;c++)for(p=0;p<x;p++)S[p]==c&&(y.permute[I++]=p);for(c=T;c<=D;c++)E[c]=C[c]=0;for(c=0;c<x;c++)E[S[c]]++;for(I=p=0,c=T;c<D;c++)I+=E[c],C[c]=I-1,I<<=1,j[c+1]=I-(p+=E[c]);C[D]=I+E[D]-1,j[T]=0}for(c=0;c<256;c++)this.mtfSymbol[c]=c,this.byteCount[c]=0;for(b=_=x=w=0;;){for(x--||(x=49,w>=h&&n("meow i'm a kitty, that's an error"),j=(y=k[this.selectors[w++]]).base,C=y.limit),g=e(c=y.minLen);c>y.maxLen&&n("rawr i'm a dinosaur"),!(g<=C[c]);)c++,g=g<<1|e(1);((g-=j[c])<0||g>=258)&&n("moo i'm a cow");var P=y.permute[g];if(0!=P&&1!=P){if(b)for(b=0,_+p>i&&n("Boom."),v=this.symToByte[this.mtfSymbol[0]],this.byteCount[v]+=p;p--;)a[_++]=v;if(P>d)break;for(_>=i&&n("I can't think of anything. Error"),c=P-1,v=this.mtfSymbol[c],m=c-1;m>=0;m--)this.mtfSymbol[m+1]=this.mtfSymbol[m];this.mtfSymbol[0]=v,v=this.symToByte[v],this.byteCount[v]++,a[_++]=v}else b||(b=1,p=0),p+=0==P?b:2*b,b<<=1}for((l<0||l>=_)&&n("I'm a monkey and I'm throwing something at someone, namely you"),g=0,c=0;c<256;c++)m=g+this.byteCount[c],this.byteCount[c]=g,g=m;for(c=0;c<_;c++)v=255&a[c],a[this.byteCount[v]]|=c<<8,this.byteCount[v]++;var O,M,A,L=0,R=0,N=0;for(_&&(R=255&(L=a[l]),L>>=8,N=-1);_;){for(_--,M=R,R=255&(L=a[L]),L>>=8,3==N++?(O=R,A=M,R=-1):(O=1,A=R);O--;)o=4294967295&(o<<8^this.crcTable[255&(o>>24^A)]),t(A);R!=M&&(N=0)}return(0|(o=(-1^o)>>>0))!=(0|u)&&n("Error in bzip2: crc32 do not match"),4294967295&(o^(r<<1|r>>>31))},e.exports=a},270:(e,t,n)=>{"use strict";const a=n(53908),i=n(78311);e.exports=(e,t,n)=>{let r=null,o=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new a(r,n)))}),r}},301:(e,t,n)=>{e.exports=n(94735)},343:(e,t,n)=>{"use strict";const{isUUID:a}=n(34834),i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function o(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function s(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function c(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const u={scheme:"http",domainHost:!0,parse:s,serialize:c},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=o(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(o(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},p={http:u,https:{scheme:"https",domainHost:u.domainHost,parse:s,serialize:c},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(i);if(n){const a=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=d(`${a}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const n=t.scheme||e.scheme||"urn",a=e.nid.toLowerCase(),i=d(`${n}:${t.nid||a}`);i&&(e=i.serialize(e,t));const r=e,o=e.nss;return r.path=`${a||t.nid}:${o}`,t.skipEscape=!0,r},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&a(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function d(e){return e&&(p[e]||p[e.toLowerCase()])||void 0}Object.setPrototypeOf(p,null),e.exports={wsIsSecure:o,SCHEMES:p,isValidSchemeName:function(e){return-1!==r.indexOf(e)},getSchemeHandler:d}},513:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,i)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:s()}};const o=r(n(90523)),s=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}const n={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return e=>{switch(e.code){case"invalid_type":return`Tipo inválido: esperado ${e.expected}, recebido ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"array";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrada inválida: esperado ${o.stringifyPrimitive(e.values[0])}`:`Opção inválida: esperada uma das ${o.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",a=t(e.origin);return a?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${n}${e.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",a=t(e.origin);return a?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${o.joinValues(e.keys,", ")}`;case"invalid_key":return`Chave inválida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${e.origin}`;default:return"Campo inválido"}}}},528:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},555:(e,t,n)=>{"use strict";const a=n(62711),{warn:i}=n(92159);t.version=n(6256).version,t.transports=n(23475),t.config=n(4575),t.addColors=a.levels,t.format=a.format,t.createLogger=n(2751),t.Logger=n(68010),t.ExceptionHandler=n(70504),t.RejectionHandler=n(42134),t.Container=n(47083),t.Transport=n(83623),t.loggers=new