edgeone 1.7.6 → 1.7.7

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.
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  var _a;var __edgeoneImportMetaUrl=require("url").pathToFileURL(__filename).href;
3
- var Bn=Object.create;var jt=Object.defineProperty;var Dn=Object.getOwnPropertyDescriptor;var Mn=Object.getOwnPropertyNames;var jn=Object.getPrototypeOf,Hn=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var kn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mn(e))!Hn.call(t,s)&&s!==r&&jt(t,s,{get:()=>e[s],enumerable:!(n=Dn(e,s))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?Bn(jn(t)):{},kn(e||!t||!t.__esModule?jt(r,"default",{value:t,enumerable:!0}):r,t));var kt=p(Ht=>{var h=Ht,{Buffer:Oe}=require("buffer"),Gn=require("os");h.toBuffer=function(t,e,r){r=~~r;let n;if(this.isV4Format(t))n=e||Oe.alloc(r+4),t.split(/\./g).map(s=>{n[r++]=parseInt(s,10)&255});else if(this.isV6Format(t)){let s=t.split(":",8),o;for(o=0;o<s.length;o++){let i=this.isV4Format(s[o]),u;i&&(u=this.toBuffer(s[o]),s[o]=u.slice(0,2).toString("hex")),u&&++o<8&&s.splice(o,0,u.slice(2,4).toString("hex"))}if(s[0]==="")for(;s.length<8;)s.unshift("0");else if(s[s.length-1]==="")for(;s.length<8;)s.push("0");else if(s.length<8){for(o=0;o<s.length&&s[o]!=="";o++);let i=[o,1];for(o=9-s.length;o>0;o--)i.push("0");s.splice(...i)}for(n=e||Oe.alloc(r+16),o=0;o<s.length;o++){let i=parseInt(s[o],16);n[r++]=i>>8&255,n[r++]=i&255}}if(!n)throw Error(`Invalid ip address: ${t}`);return n};h.toString=function(t,e,r){e=~~e,r=r||t.length-e;let n=[];if(r===4){for(let s=0;s<r;s++)n.push(t[e+s]);n=n.join(".")}else if(r===16){for(let s=0;s<r;s+=2)n.push(t.readUInt16BE(e+s).toString(16));n=n.join(":"),n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),n=n.replace(/:{3,4}/,"::")}return n};var $n=/^(\d{1,3}\.){3,3}\d{1,3}$/,zn=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;h.isV4Format=function(t){return $n.test(t)};h.isV6Format=function(t){return zn.test(t)};function fe(t){return t===4?"ipv4":t===6?"ipv6":t?t.toLowerCase():"ipv4"}h.fromPrefixLen=function(t,e){t>32?e="ipv6":e=fe(e);let r=4;e==="ipv6"&&(r=16);let n=Oe.alloc(r);for(let s=0,o=n.length;s<o;++s){let i=8;t<8&&(i=t),t-=i,n[s]=~(255>>i)&255}return h.toString(n)};h.mask=function(t,e){t=h.toBuffer(t),e=h.toBuffer(e);let r=Oe.alloc(Math.max(t.length,e.length)),n;if(t.length===e.length)for(n=0;n<t.length;n++)r[n]=t[n]&e[n];else if(e.length===4)for(n=0;n<e.length;n++)r[n]=t[t.length-4+n]&e[n];else{for(n=0;n<r.length-6;n++)r[n]=0;for(r[10]=255,r[11]=255,n=0;n<t.length;n++)r[n+12]=t[n]&e[n+12];n+=12}for(;n<r.length;n++)r[n]=0;return h.toString(r)};h.cidr=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=h.fromPrefixLen(parseInt(e[1],10));return h.mask(r,n)};h.subnet=function(t,e){let r=h.toLong(h.mask(t,e)),n=h.toBuffer(e),s=0;for(let i=0;i<n.length;i++)if(n[i]===255)s+=8;else{let u=n[i]&255;for(;u;)u=u<<1&255,s++}let o=2**(32-s);return{networkAddress:h.fromLong(r),firstAddress:o<=2?h.fromLong(r):h.fromLong(r+1),lastAddress:o<=2?h.fromLong(r+o-1):h.fromLong(r+o-2),broadcastAddress:h.fromLong(r+o-1),subnetMask:e,subnetMaskLength:s,numHosts:o<=2?o:o-2,length:o,contains(i){return r===h.toLong(h.mask(i,e))}}};h.cidrSubnet=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=h.fromPrefixLen(parseInt(e[1],10));return h.subnet(r,n)};h.not=function(t){let e=h.toBuffer(t);for(let r=0;r<e.length;r++)e[r]=255^e[r];return h.toString(e)};h.or=function(t,e){if(t=h.toBuffer(t),e=h.toBuffer(e),t.length===e.length){for(let o=0;o<t.length;++o)t[o]|=e[o];return h.toString(t)}let r=t,n=e;e.length>t.length&&(r=e,n=t);let s=r.length-n.length;for(let o=s;o<r.length;++o)r[o]|=n[o-s];return h.toString(r)};h.isEqual=function(t,e){if(t=h.toBuffer(t),e=h.toBuffer(e),t.length===e.length){for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}if(e.length===4){let n=e;e=t,t=n}for(let n=0;n<10;n++)if(e[n]!==0)return!1;let r=e.readUInt16BE(10);if(r!==0&&r!==65535)return!1;for(let n=0;n<4;n++)if(t[n]!==e[n+12])return!1;return!0};h.isPrivate=function(t){if(h.isLoopback(t))return!0;if(!h.isV6Format(t)){let e=h.normalizeToLong(t);if(e<0)throw new Error("invalid ipv4 address");t=h.fromLong(e)}return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^f[cd][0-9a-f]{2}:/i.test(t)||/^fe80:/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};h.isPublic=function(t){return!h.isPrivate(t)};h.isLoopback=function(t){return!/\./.test(t)&&!/:/.test(t)&&(t=h.fromLong(Number(t))),/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(t)||/^0177\./.test(t)||/^0x7f\./i.test(t)||/^fe80::1$/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};h.loopback=function(t){if(t=fe(t),t!=="ipv4"&&t!=="ipv6")throw new Error("family must be ipv4 or ipv6");return t==="ipv4"?"127.0.0.1":"fe80::1"};h.address=function(t,e){let r=Gn.networkInterfaces();if(e=fe(e),t&&t!=="private"&&t!=="public"){let s=r[t].filter(o=>fe(o.family)===e);return s.length===0?void 0:s[0].address}let n=Object.keys(r).map(s=>{let o=r[s].filter(i=>(i.family=fe(i.family),i.family!==e||h.isLoopback(i.address)?!1:t?t==="public"?h.isPrivate(i.address):h.isPublic(i.address):!0));return o.length?o[0].address:void 0}).filter(Boolean);return n.length?n[0]:h.loopback(e)};h.toLong=function(t){let e=0;return t.split(".").forEach(r=>{e<<=8,e+=parseInt(r)}),e>>>0};h.fromLong=function(t){return`${t>>>24}.${t>>16&255}.${t>>8&255}.${t&255}`};h.normalizeToLong=function(t){let e=t.split(".").map(s=>s.startsWith("0x")||s.startsWith("0X")?parseInt(s,16):s.startsWith("0")&&s!=="0"&&/^[0-7]+$/.test(s)?parseInt(s,8):/^[1-9]\d*$/.test(s)||s==="0"?parseInt(s,10):NaN);if(e.some(isNaN))return-1;let r=0;switch(e.length){case 1:r=e[0];break;case 2:if(e[0]>255||e[1]>16777215)return-1;r=e[0]<<24|e[1]&16777215;break;case 3:if(e[0]>255||e[1]>255||e[2]>65535)return-1;r=e[0]<<24|e[1]<<16|e[2]&65535;break;case 4:if(e.some(s=>s>255))return-1;r=e[0]<<24|e[1]<<16|e[2]<<8|e[3];break;default:return-1}return r>>>0}});var Gt=p(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.Request=void 0;var Jn=function(){function t(){this.mParams=new Map}return t.prototype.getParam=function(e){return this.mParams.has(e)&&this.mParams.get(e)||""},t.prototype.setParam=function(e,r){r==null?this.mParams.set(e,""):this.mParams.set(e,r)},t.prototype.getAllParams=function(){return this.mParams},t}();we.Request=Jn});var $t=p(Y=>{"use strict";var Vn=Y&&Y.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Y,"__esModule",{value:!0});Y.PutLogsRequest=void 0;var Wn=Gt(),Xn=function(t){Vn(e,t);function e(r,n){var s=t.call(this)||this;return s.topic=r,s.logItems=n,s}return e.prototype.getFilename=function(){return this.logItems.getFilename()},e.prototype.setFilename=function(r){this.logItems.setFilename(r)},e.prototype.getTopic=function(){return this.topic},e.prototype.setTopic=function(r){this.topic=r},e.prototype.getSource=function(){return this.source},e.prototype.setSource=function(r){this.source=r},e.prototype.getLogItems=function(){return this.logItems},e.prototype.setlogItems=function(r){this.logItems=r},e.prototype.encodeLogItems=function(){return JSON.stringify(this.logItems)},e}(Wn.Request);Y.PutLogsRequest=Xn});var Je=p(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.Response=void 0;var Yn=function(){function t(){this.httpStatusCode=0,this.mHeaders={},this.errorCode="",this.errorMessage=""}return t.prototype.getHeader=function(e){return this.mHeaders[e]?this.mHeaders[e]:[]},t.prototype.setHttpStatusCode=function(e){this.httpStatusCode=e},t.prototype.setErrorCode=function(e){this.errorCode=e},t.prototype.setErrorMessage=function(e){this.errorMessage=e},t.prototype.getHttpStatusCode=function(){return this.httpStatusCode},t.prototype.getErrorCode=function(){return this.errorCode},t.prototype.getErrorMessage=function(){return this.errorMessage},t.prototype.setAllHeaders=function(e){this.mHeaders=e},t.prototype.getAllHeaders=function(){return this.mHeaders},t}();be.Response=Yn});var zt=p(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.LogGroup=Z.Log=void 0;var Zn=function(){function t(e){this.contents={},this.time=e}return t.prototype.setTime=function(e){this.time=e},t.prototype.getTime=function(){return this.time},t.prototype.addContent=function(e,r){this.contents[e]=r},t}();Z.Log=Zn;var Kn=function(){function t(e,r,n){this.logs=[],this.source=e,r!=null&&r!=null&&(this.filename=""),n!=null&&n!=null&&(this.contextflow="")}return t.prototype.setSource=function(e){this.source=e},t.prototype.getSource=function(){return this.source},t.prototype.setContextFlow=function(){this.contextflow=this.contextflow},t.prototype.getContextFlow=function(){return this.contextflow},t.prototype.setFilename=function(e){this.filename=e},t.prototype.getFilename=function(){return this.filename},t.prototype.setLogs=function(e){this.logs=e},t.prototype.getLogs=function(){return this.logs},t.prototype.addLog=function(e){this.logs.push(e)},t}();Z.LogGroup=Kn});var Jt=p(le=>{"use strict";var Qn=le&&le.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});var es=function(t){Qn(e,t);function e(r,n){n===void 0&&(n="");var s=t.call(this,r)||this;return s.requestId=n||"",s}return e.prototype.getMessage=function(){return this.message},e.prototype.getRequestId=function(){return this.requestId},e.prototype.toString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e.prototype.toLocaleString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e}(Error);le.default=es});var Vt=p(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.SORT=d.CONTEXT=d.LIMIT=d.QUERY_STRING=d.END_TIME=d.START_TIME=d.LOGSET_ID=d.TOPIC_IDS=d.CONST_LZ4=d.CONST_X_SLS_COMPRESSTYPE=d.CONST_MAX_PUT_SIZE=d.UPLOAD_LOG_RESOURCE_URI=d.TOPIC_ID=d.HTTP_SEND_TIME_OUT=d.HTTP_CONNECT_TIME_OUT=d.CONST_LOCAL_IP=d.UTF_8_ENCODING=d.CONST_MD5=d.CONST_HOST=d.CONST_X_SLS_REQUESTID=d.CONST_HTTP_METHOD_GET=d.CONST_HTTP_METHOD_POST=d.CONST_GZIP_ENCODING=d.CONST_AUTHORIZATION=d.CONST_CONTENT_LENGTH=d.CONST_JSON=d.CONST_PROTO_BUF=d.CONST_CONTENT_TYPE=void 0;d.CONST_CONTENT_TYPE="Content-Type";d.CONST_PROTO_BUF="application/x-protobuf";d.CONST_JSON="application/json";d.CONST_CONTENT_LENGTH="Content-Length";d.CONST_AUTHORIZATION="Authorization";d.CONST_GZIP_ENCODING="deflate";d.CONST_HTTP_METHOD_POST="POST";d.CONST_HTTP_METHOD_GET="GET";d.CONST_X_SLS_REQUESTID="x-log-requestid";d.CONST_HOST="Host";d.CONST_MD5="MD5";d.UTF_8_ENCODING="UTF-8";d.CONST_LOCAL_IP="127.0.0.1";d.HTTP_CONNECT_TIME_OUT=60*1e3;d.HTTP_SEND_TIME_OUT=60*1e3;d.TOPIC_ID="topic_id";d.UPLOAD_LOG_RESOURCE_URI="/tracklog";d.CONST_MAX_PUT_SIZE=1*1024*1024;d.CONST_X_SLS_COMPRESSTYPE="x-cls-compress-type";d.CONST_LZ4="lz4";d.TOPIC_IDS="topic_ids";d.LOGSET_ID="logset_id";d.START_TIME="start_time";d.END_TIME="end_time";d.QUERY_STRING="query_string";d.LIMIT="limit";d.CONTEXT="context";d.SORT="sort"});var Ve=p((ni,Wt)=>{"use strict";Wt.exports=function(e,r){return function(){for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];return e.apply(r,s)}}});var x=p((si,Zt)=>{"use strict";var ts=Ve(),G=Object.prototype.toString;function Ye(t){return G.call(t)==="[object Array]"}function We(t){return typeof t>"u"}function rs(t){return t!==null&&!We(t)&&t.constructor!==null&&!We(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function ns(t){return G.call(t)==="[object ArrayBuffer]"}function ss(t){return typeof FormData<"u"&&t instanceof FormData}function os(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function is(t){return typeof t=="string"}function as(t){return typeof t=="number"}function Xt(t){return t!==null&&typeof t=="object"}function Re(t){if(G.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function us(t){return G.call(t)==="[object Date]"}function cs(t){return G.call(t)==="[object File]"}function fs(t){return G.call(t)==="[object Blob]"}function Yt(t){return G.call(t)==="[object Function]"}function ls(t){return Xt(t)&&Yt(t.pipe)}function ds(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function hs(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ps(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ze(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Ye(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.call(null,t[s],s,t)}function Xe(){var t={};function e(s,o){Re(t[o])&&Re(s)?t[o]=Xe(t[o],s):Re(s)?t[o]=Xe({},s):Ye(s)?t[o]=s.slice():t[o]=s}for(var r=0,n=arguments.length;r<n;r++)Ze(arguments[r],e);return t}function ms(t,e,r){return Ze(e,function(s,o){r&&typeof s=="function"?t[o]=ts(s,r):t[o]=s}),t}function vs(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}Zt.exports={isArray:Ye,isArrayBuffer:ns,isBuffer:rs,isFormData:ss,isArrayBufferView:os,isString:is,isNumber:as,isObject:Xt,isPlainObject:Re,isUndefined:We,isDate:us,isFile:cs,isBlob:fs,isFunction:Yt,isStream:ls,isURLSearchParams:ds,isStandardBrowserEnv:ps,forEach:Ze,merge:Xe,extend:ms,trim:hs,stripBOM:vs}});var xe=p((oi,Qt)=>{"use strict";var K=x();function Kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Qt.exports=function(e,r,n){if(!r)return e;var s;if(n)s=n(r);else if(K.isURLSearchParams(r))s=r.toString();else{var o=[];K.forEach(r,function(f,c){f===null||typeof f>"u"||(K.isArray(f)?c=c+"[]":f=[f],K.forEach(f,function(l){K.isDate(l)?l=l.toISOString():K.isObject(l)&&(l=JSON.stringify(l)),o.push(Kt(c)+"="+Kt(l))}))}),s=o.join("&")}if(s){var i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}});var tr=p((ii,er)=>{"use strict";var gs=x();function Se(){this.handlers=[]}Se.prototype.use=function(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};Se.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Se.prototype.forEach=function(e){gs.forEach(this.handlers,function(n){n!==null&&e(n)})};er.exports=Se});var nr=p((ai,rr)=>{"use strict";var ys=x();rr.exports=function(e,r){ys.forEach(e,function(s,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(e[r]=s,delete e[o])})}});var qe=p((ui,sr)=>{"use strict";sr.exports=function(e,r,n,s,o){return e.config=r,n&&(e.code=n),e.request=s,e.response=o,e.isAxiosError=!0,e.toJSON=function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}});var Le=p((ci,or)=>{"use strict";var _s=qe();or.exports=function(e,r,n,s,o){var i=new Error(e);return _s(i,r,n,s,o)}});var Ke=p((fi,ir)=>{"use strict";var Cs=Le();ir.exports=function(e,r,n){var s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):r(Cs("Request failed with status code "+n.status,n.config,null,n.request,n))}});var ur=p((li,ar)=>{"use strict";var Ie=x();ar.exports=Ie.isStandardBrowserEnv()?function(){return{write:function(r,n,s,o,i,u){var f=[];f.push(r+"="+encodeURIComponent(n)),Ie.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),Ie.isString(o)&&f.push("path="+o),Ie.isString(i)&&f.push("domain="+i),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var fr=p((di,cr)=>{"use strict";cr.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var dr=p((hi,lr)=>{"use strict";lr.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Qe=p((pi,hr)=>{"use strict";var Ts=fr(),Es=dr();hr.exports=function(e,r){return e&&!Ts(r)?Es(e,r):r}});var mr=p((mi,pr)=>{"use strict";var et=x(),Os=["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"];pr.exports=function(e){var r={},n,s,o;return e&&et.forEach(e.split(`
4
- `),function(u){if(o=u.indexOf(":"),n=et.trim(u.substr(0,o)).toLowerCase(),s=et.trim(u.substr(o+1)),n){if(r[n]&&Os.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([s]):r[n]=r[n]?r[n]+", "+s:s}}),r}});var yr=p((vi,gr)=>{"use strict";var vr=x();gr.exports=vr.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function s(o){var i=o;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(i){var u=vr.isString(i)?s(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Q=p((gi,_r)=>{"use strict";function tt(t){this.message=t}tt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};tt.prototype.__CANCEL__=!0;_r.exports=tt});var Tr=p((yi,Cr)=>{"use strict";var Ne=x(),ws=Ke(),bs=ur(),Rs=xe(),xs=Qe(),Ss=mr(),qs=yr(),rt=Le(),Ls=ee(),Is=Q();Cr.exports=function(e){return new Promise(function(n,s){var o=e.data,i=e.headers,u=e.responseType,f;function c(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}Ne.isFormData(o)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+m)}var y=xs(e.baseURL,e.url);a.open(e.method.toUpperCase(),Rs(y,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function A(){if(a){var v="getAllResponseHeaders"in a?Ss(a.getAllResponseHeaders()):null,C=!u||u==="text"||u==="json"?a.responseText:a.response,b={data:C,status:a.status,statusText:a.statusText,headers:v,config:e,request:a};ws(function(B){n(B),c()},function(B){s(B),c()},b),a=null}}if("onloadend"in a?a.onloadend=A:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(A)},a.onabort=function(){a&&(s(rt("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){s(rt("Network Error",e,null,a)),a=null},a.ontimeout=function(){var C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",b=e.transitional||Ls.transitional;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),s(rt(C,e,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Ne.isStandardBrowserEnv()){var _=(e.withCredentials||qs(y))&&e.xsrfCookieName?bs.read(e.xsrfCookieName):void 0;_&&(i[e.xsrfHeaderName]=_)}"setRequestHeader"in a&&Ne.forEach(i,function(C,b){typeof o>"u"&&b.toLowerCase()==="content-type"?delete i[b]:a.setRequestHeader(b,C)}),Ne.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),u&&u!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(v){a&&(s(!v||v&&v.type?new Is("canceled"):v),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),o||(o=null),a.send(o)})}});var Or=p((_i,Er)=>{var te=1e3,re=te*60,ne=re*60,$=ne*24,Ns=$*7,Ps=$*365.25;Er.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Fs(t);if(r==="number"&&isFinite(t))return e.long?Us(t):As(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Fs(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ps;case"weeks":case"week":case"w":return r*Ns;case"days":case"day":case"d":return r*$;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ne;case"minutes":case"minute":case"mins":case"min":case"m":return r*re;case"seconds":case"second":case"secs":case"sec":case"s":return r*te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function As(t){var e=Math.abs(t);return e>=$?Math.round(t/$)+"d":e>=ne?Math.round(t/ne)+"h":e>=re?Math.round(t/re)+"m":e>=te?Math.round(t/te)+"s":t+"ms"}function Us(t){var e=Math.abs(t);return e>=$?Pe(t,e,$,"day"):e>=ne?Pe(t,e,ne,"hour"):e>=re?Pe(t,e,re,"minute"):e>=te?Pe(t,e,te,"second"):t+" ms"}function Pe(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var nt=p((Ci,wr)=>{function Bs(t){r.debug=r,r.default=r,r.coerce=f,r.disable=i,r.enable=s,r.enabled=u,r.humanize=Or(),r.destroy=c,Object.keys(t).forEach(a=>{r[a]=t[a]}),r.names=[],r.skips=[],r.formatters={};function e(a){let l=0;for(let m=0;m<a.length;m++)l=(l<<5)-l+a.charCodeAt(m),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=e;function r(a){let l,m=null,y,A;function _(...v){if(!_.enabled)return;let C=_,b=Number(new Date),ae=b-(l||b);C.diff=ae,C.prev=l,C.curr=b,l=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let B=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(ue,N)=>{if(ue==="%%")return"%";B++;let U=r.formatters[N];if(typeof U=="function"){let _e=v[B];ue=U.call(C,_e),v.splice(B,1),B--}return ue}),r.formatArgs.call(C,v),(C.log||r.log).apply(C,v)}return _.namespace=a,_.useColors=r.useColors(),_.color=r.selectColor(a),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(y!==r.namespaces&&(y=r.namespaces,A=r.enabled(a)),A),set:v=>{m=v}}),typeof r.init=="function"&&r.init(_),_}function n(a,l){let m=r(this.namespace+(typeof l>"u"?":":l)+a);return m.log=this.log,m}function s(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let l=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of l)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function o(a,l){let m=0,y=0,A=-1,_=0;for(;m<a.length;)if(y<l.length&&(l[y]===a[m]||l[y]==="*"))l[y]==="*"?(A=y,_=m,y++):(m++,y++);else if(A!==-1)y=A+1,_++,m=_;else return!1;for(;y<l.length&&l[y]==="*";)y++;return y===l.length}function i(){let a=[...r.names,...r.skips.map(l=>"-"+l)].join(",");return r.enable(""),a}function u(a){for(let l of r.skips)if(o(a,l))return!1;for(let l of r.names)if(o(a,l))return!0;return!1}function f(a){return a instanceof Error?a.stack||a.message:a}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}wr.exports=Bs});var br=p((S,Fe)=>{S.formatArgs=Ms;S.save=js;S.load=Hs;S.useColors=Ds;S.storage=ks();S.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();S.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ds(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ms(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fe.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}S.log=console.debug||console.log||(()=>{});function js(t){try{t?S.storage.setItem("debug",t):S.storage.removeItem("debug")}catch{}}function Hs(){let t;try{t=S.storage.getItem("debug")||S.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function ks(){try{return localStorage}catch{}}Fe.exports=nt()(S);var{formatters:Gs}=Fe.exports;Gs.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var xr=p((Ti,Rr)=>{"use strict";Rr.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var Lr=p((Ei,qr)=>{"use strict";var $s=require("os"),Sr=require("tty"),P=xr(),{env:T}=process,j;P("no-color")||P("no-colors")||P("color=false")||P("color=never")?j=0:(P("color")||P("colors")||P("color=true")||P("color=always"))&&(j=1);"FORCE_COLOR"in T&&(T.FORCE_COLOR==="true"?j=1:T.FORCE_COLOR==="false"?j=0:j=T.FORCE_COLOR.length===0?1:Math.min(parseInt(T.FORCE_COLOR,10),3));function st(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ot(t,e){if(j===0)return 0;if(P("color=16m")||P("color=full")||P("color=truecolor"))return 3;if(P("color=256"))return 2;if(t&&!e&&j===void 0)return 0;let r=j||0;if(T.TERM==="dumb")return r;if(process.platform==="win32"){let n=$s.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in T)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in T)||T.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in T)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(T.TEAMCITY_VERSION)?1:0;if(T.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in T){let n=parseInt((T.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(T.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(T.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(T.TERM)||"COLORTERM"in T?1:r}function zs(t){let e=ot(t,t&&t.isTTY);return st(e)}qr.exports={supportsColor:zs,stdout:st(ot(!0,Sr.isatty(1))),stderr:st(ot(!0,Sr.isatty(2)))}});var Nr=p((E,Ue)=>{var Js=require("tty"),Ae=require("util");E.init=Qs;E.log=Ys;E.formatArgs=Ws;E.save=Zs;E.load=Ks;E.useColors=Vs;E.destroy=Ae.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");E.colors=[6,2,3,4,5,1];try{let t=Lr();t&&(t.stderr||t).level>=2&&(E.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}E.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Vs(){return"colors"in E.inspectOpts?!!E.inspectOpts.colors:Js.isatty(process.stderr.fd)}function Ws(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
3
+ var Bn=Object.create;var jt=Object.defineProperty;var Dn=Object.getOwnPropertyDescriptor;var Mn=Object.getOwnPropertyNames;var jn=Object.getPrototypeOf,Hn=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var kn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mn(e))!Hn.call(t,s)&&s!==r&&jt(t,s,{get:()=>e[s],enumerable:!(n=Dn(e,s))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?Bn(jn(t)):{},kn(e||!t||!t.__esModule?jt(r,"default",{value:t,enumerable:!0}):r,t));var kt=p(Ht=>{var h=Ht,{Buffer:Oe}=require("buffer"),Gn=require("os");h.toBuffer=function(t,e,r){r=~~r;let n;if(this.isV4Format(t))n=e||Oe.alloc(r+4),t.split(/\./g).map(s=>{n[r++]=parseInt(s,10)&255});else if(this.isV6Format(t)){let s=t.split(":",8),o;for(o=0;o<s.length;o++){let i=this.isV4Format(s[o]),u;i&&(u=this.toBuffer(s[o]),s[o]=u.slice(0,2).toString("hex")),u&&++o<8&&s.splice(o,0,u.slice(2,4).toString("hex"))}if(s[0]==="")for(;s.length<8;)s.unshift("0");else if(s[s.length-1]==="")for(;s.length<8;)s.push("0");else if(s.length<8){for(o=0;o<s.length&&s[o]!=="";o++);let i=[o,1];for(o=9-s.length;o>0;o--)i.push("0");s.splice(...i)}for(n=e||Oe.alloc(r+16),o=0;o<s.length;o++){let i=parseInt(s[o],16);n[r++]=i>>8&255,n[r++]=i&255}}if(!n)throw Error(`Invalid ip address: ${t}`);return n};h.toString=function(t,e,r){e=~~e,r=r||t.length-e;let n=[];if(r===4){for(let s=0;s<r;s++)n.push(t[e+s]);n=n.join(".")}else if(r===16){for(let s=0;s<r;s+=2)n.push(t.readUInt16BE(e+s).toString(16));n=n.join(":"),n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),n=n.replace(/:{3,4}/,"::")}return n};var $n=/^(\d{1,3}\.){3,3}\d{1,3}$/,zn=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;h.isV4Format=function(t){return $n.test(t)};h.isV6Format=function(t){return zn.test(t)};function fe(t){return t===4?"ipv4":t===6?"ipv6":t?t.toLowerCase():"ipv4"}h.fromPrefixLen=function(t,e){t>32?e="ipv6":e=fe(e);let r=4;e==="ipv6"&&(r=16);let n=Oe.alloc(r);for(let s=0,o=n.length;s<o;++s){let i=8;t<8&&(i=t),t-=i,n[s]=~(255>>i)&255}return h.toString(n)};h.mask=function(t,e){t=h.toBuffer(t),e=h.toBuffer(e);let r=Oe.alloc(Math.max(t.length,e.length)),n;if(t.length===e.length)for(n=0;n<t.length;n++)r[n]=t[n]&e[n];else if(e.length===4)for(n=0;n<e.length;n++)r[n]=t[t.length-4+n]&e[n];else{for(n=0;n<r.length-6;n++)r[n]=0;for(r[10]=255,r[11]=255,n=0;n<t.length;n++)r[n+12]=t[n]&e[n+12];n+=12}for(;n<r.length;n++)r[n]=0;return h.toString(r)};h.cidr=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=h.fromPrefixLen(parseInt(e[1],10));return h.mask(r,n)};h.subnet=function(t,e){let r=h.toLong(h.mask(t,e)),n=h.toBuffer(e),s=0;for(let i=0;i<n.length;i++)if(n[i]===255)s+=8;else{let u=n[i]&255;for(;u;)u=u<<1&255,s++}let o=2**(32-s);return{networkAddress:h.fromLong(r),firstAddress:o<=2?h.fromLong(r):h.fromLong(r+1),lastAddress:o<=2?h.fromLong(r+o-1):h.fromLong(r+o-2),broadcastAddress:h.fromLong(r+o-1),subnetMask:e,subnetMaskLength:s,numHosts:o<=2?o:o-2,length:o,contains(i){return r===h.toLong(h.mask(i,e))}}};h.cidrSubnet=function(t){let e=t.split("/"),r=e[0];if(e.length!==2)throw new Error(`invalid CIDR subnet: ${r}`);let n=h.fromPrefixLen(parseInt(e[1],10));return h.subnet(r,n)};h.not=function(t){let e=h.toBuffer(t);for(let r=0;r<e.length;r++)e[r]=255^e[r];return h.toString(e)};h.or=function(t,e){if(t=h.toBuffer(t),e=h.toBuffer(e),t.length===e.length){for(let o=0;o<t.length;++o)t[o]|=e[o];return h.toString(t)}let r=t,n=e;e.length>t.length&&(r=e,n=t);let s=r.length-n.length;for(let o=s;o<r.length;++o)r[o]|=n[o-s];return h.toString(r)};h.isEqual=function(t,e){if(t=h.toBuffer(t),e=h.toBuffer(e),t.length===e.length){for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}if(e.length===4){let n=e;e=t,t=n}for(let n=0;n<10;n++)if(e[n]!==0)return!1;let r=e.readUInt16BE(10);if(r!==0&&r!==65535)return!1;for(let n=0;n<4;n++)if(t[n]!==e[n+12])return!1;return!0};h.isPrivate=function(t){if(h.isLoopback(t))return!0;if(!h.isV6Format(t)){let e=h.normalizeToLong(t);if(e<0)throw new Error("invalid ipv4 address");t=h.fromLong(e)}return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(t)||/^f[cd][0-9a-f]{2}:/i.test(t)||/^fe80:/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};h.isPublic=function(t){return!h.isPrivate(t)};h.isLoopback=function(t){return!/\./.test(t)&&!/:/.test(t)&&(t=h.fromLong(Number(t))),/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(t)||/^0177\./.test(t)||/^0x7f\./i.test(t)||/^fe80::1$/i.test(t)||/^::1$/.test(t)||/^::$/.test(t)};h.loopback=function(t){if(t=fe(t),t!=="ipv4"&&t!=="ipv6")throw new Error("family must be ipv4 or ipv6");return t==="ipv4"?"127.0.0.1":"fe80::1"};h.address=function(t,e){let r=Gn.networkInterfaces();if(e=fe(e),t&&t!=="private"&&t!=="public"){let s=r[t].filter(o=>fe(o.family)===e);return s.length===0?void 0:s[0].address}let n=Object.keys(r).map(s=>{let o=r[s].filter(i=>(i.family=fe(i.family),i.family!==e||h.isLoopback(i.address)?!1:t?t==="public"?h.isPrivate(i.address):h.isPublic(i.address):!0));return o.length?o[0].address:void 0}).filter(Boolean);return n.length?n[0]:h.loopback(e)};h.toLong=function(t){let e=0;return t.split(".").forEach(r=>{e<<=8,e+=parseInt(r)}),e>>>0};h.fromLong=function(t){return`${t>>>24}.${t>>16&255}.${t>>8&255}.${t&255}`};h.normalizeToLong=function(t){let e=t.split(".").map(s=>s.startsWith("0x")||s.startsWith("0X")?parseInt(s,16):s.startsWith("0")&&s!=="0"&&/^[0-7]+$/.test(s)?parseInt(s,8):/^[1-9]\d*$/.test(s)||s==="0"?parseInt(s,10):NaN);if(e.some(isNaN))return-1;let r=0;switch(e.length){case 1:r=e[0];break;case 2:if(e[0]>255||e[1]>16777215)return-1;r=e[0]<<24|e[1]&16777215;break;case 3:if(e[0]>255||e[1]>255||e[2]>65535)return-1;r=e[0]<<24|e[1]<<16|e[2]&65535;break;case 4:if(e.some(s=>s>255))return-1;r=e[0]<<24|e[1]<<16|e[2]<<8|e[3];break;default:return-1}return r>>>0}});var Gt=p(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.Request=void 0;var Jn=function(){function t(){this.mParams=new Map}return t.prototype.getParam=function(e){return this.mParams.has(e)&&this.mParams.get(e)||""},t.prototype.setParam=function(e,r){r==null?this.mParams.set(e,""):this.mParams.set(e,r)},t.prototype.getAllParams=function(){return this.mParams},t}();we.Request=Jn});var $t=p(Y=>{"use strict";var Vn=Y&&Y.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Y,"__esModule",{value:!0});Y.PutLogsRequest=void 0;var Wn=Gt(),Xn=function(t){Vn(e,t);function e(r,n){var s=t.call(this)||this;return s.topic=r,s.logItems=n,s}return e.prototype.getFilename=function(){return this.logItems.getFilename()},e.prototype.setFilename=function(r){this.logItems.setFilename(r)},e.prototype.getTopic=function(){return this.topic},e.prototype.setTopic=function(r){this.topic=r},e.prototype.getSource=function(){return this.source},e.prototype.setSource=function(r){this.source=r},e.prototype.getLogItems=function(){return this.logItems},e.prototype.setlogItems=function(r){this.logItems=r},e.prototype.encodeLogItems=function(){return JSON.stringify(this.logItems)},e}(Wn.Request);Y.PutLogsRequest=Xn});var Je=p(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.Response=void 0;var Yn=function(){function t(){this.httpStatusCode=0,this.mHeaders={},this.errorCode="",this.errorMessage=""}return t.prototype.getHeader=function(e){return this.mHeaders[e]?this.mHeaders[e]:[]},t.prototype.setHttpStatusCode=function(e){this.httpStatusCode=e},t.prototype.setErrorCode=function(e){this.errorCode=e},t.prototype.setErrorMessage=function(e){this.errorMessage=e},t.prototype.getHttpStatusCode=function(){return this.httpStatusCode},t.prototype.getErrorCode=function(){return this.errorCode},t.prototype.getErrorMessage=function(){return this.errorMessage},t.prototype.setAllHeaders=function(e){this.mHeaders=e},t.prototype.getAllHeaders=function(){return this.mHeaders},t}();be.Response=Yn});var zt=p(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.LogGroup=Z.Log=void 0;var Zn=function(){function t(e){this.contents={},this.time=e}return t.prototype.setTime=function(e){this.time=e},t.prototype.getTime=function(){return this.time},t.prototype.addContent=function(e,r){this.contents[e]=r},t}();Z.Log=Zn;var Kn=function(){function t(e,r,n){this.logs=[],this.source=e,r!=null&&r!=null&&(this.filename=""),n!=null&&n!=null&&(this.contextflow="")}return t.prototype.setSource=function(e){this.source=e},t.prototype.getSource=function(){return this.source},t.prototype.setContextFlow=function(){this.contextflow=this.contextflow},t.prototype.getContextFlow=function(){return this.contextflow},t.prototype.setFilename=function(e){this.filename=e},t.prototype.getFilename=function(){return this.filename},t.prototype.setLogs=function(e){this.logs=e},t.prototype.getLogs=function(){return this.logs},t.prototype.addLog=function(e){this.logs.push(e)},t}();Z.LogGroup=Kn});var Jt=p(le=>{"use strict";var Qn=le&&le.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});var es=function(t){Qn(e,t);function e(r,n){n===void 0&&(n="");var s=t.call(this,r)||this;return s.requestId=n||"",s}return e.prototype.getMessage=function(){return this.message},e.prototype.getRequestId=function(){return this.requestId},e.prototype.toString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e.prototype.toLocaleString=function(){return"[TencentCloudSDKException]message:"+this.getMessage()+" requestId:"+this.getRequestId()},e}(Error);le.default=es});var Vt=p(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.SORT=d.CONTEXT=d.LIMIT=d.QUERY_STRING=d.END_TIME=d.START_TIME=d.LOGSET_ID=d.TOPIC_IDS=d.CONST_LZ4=d.CONST_X_SLS_COMPRESSTYPE=d.CONST_MAX_PUT_SIZE=d.UPLOAD_LOG_RESOURCE_URI=d.TOPIC_ID=d.HTTP_SEND_TIME_OUT=d.HTTP_CONNECT_TIME_OUT=d.CONST_LOCAL_IP=d.UTF_8_ENCODING=d.CONST_MD5=d.CONST_HOST=d.CONST_X_SLS_REQUESTID=d.CONST_HTTP_METHOD_GET=d.CONST_HTTP_METHOD_POST=d.CONST_GZIP_ENCODING=d.CONST_AUTHORIZATION=d.CONST_CONTENT_LENGTH=d.CONST_JSON=d.CONST_PROTO_BUF=d.CONST_CONTENT_TYPE=void 0;d.CONST_CONTENT_TYPE="Content-Type";d.CONST_PROTO_BUF="application/x-protobuf";d.CONST_JSON="application/json";d.CONST_CONTENT_LENGTH="Content-Length";d.CONST_AUTHORIZATION="Authorization";d.CONST_GZIP_ENCODING="deflate";d.CONST_HTTP_METHOD_POST="POST";d.CONST_HTTP_METHOD_GET="GET";d.CONST_X_SLS_REQUESTID="x-log-requestid";d.CONST_HOST="Host";d.CONST_MD5="MD5";d.UTF_8_ENCODING="UTF-8";d.CONST_LOCAL_IP="127.0.0.1";d.HTTP_CONNECT_TIME_OUT=60*1e3;d.HTTP_SEND_TIME_OUT=60*1e3;d.TOPIC_ID="topic_id";d.UPLOAD_LOG_RESOURCE_URI="/tracklog";d.CONST_MAX_PUT_SIZE=1*1024*1024;d.CONST_X_SLS_COMPRESSTYPE="x-cls-compress-type";d.CONST_LZ4="lz4";d.TOPIC_IDS="topic_ids";d.LOGSET_ID="logset_id";d.START_TIME="start_time";d.END_TIME="end_time";d.QUERY_STRING="query_string";d.LIMIT="limit";d.CONTEXT="context";d.SORT="sort"});var Ve=p((ni,Wt)=>{"use strict";Wt.exports=function(e,r){return function(){for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];return e.apply(r,s)}}});var R=p((si,Zt)=>{"use strict";var ts=Ve(),G=Object.prototype.toString;function Ye(t){return G.call(t)==="[object Array]"}function We(t){return typeof t>"u"}function rs(t){return t!==null&&!We(t)&&t.constructor!==null&&!We(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function ns(t){return G.call(t)==="[object ArrayBuffer]"}function ss(t){return typeof FormData<"u"&&t instanceof FormData}function os(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function is(t){return typeof t=="string"}function as(t){return typeof t=="number"}function Xt(t){return t!==null&&typeof t=="object"}function xe(t){if(G.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function us(t){return G.call(t)==="[object Date]"}function cs(t){return G.call(t)==="[object File]"}function fs(t){return G.call(t)==="[object Blob]"}function Yt(t){return G.call(t)==="[object Function]"}function ls(t){return Xt(t)&&Yt(t.pipe)}function ds(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function hs(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ps(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ze(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Ye(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.call(null,t[s],s,t)}function Xe(){var t={};function e(s,o){xe(t[o])&&xe(s)?t[o]=Xe(t[o],s):xe(s)?t[o]=Xe({},s):Ye(s)?t[o]=s.slice():t[o]=s}for(var r=0,n=arguments.length;r<n;r++)Ze(arguments[r],e);return t}function ms(t,e,r){return Ze(e,function(s,o){r&&typeof s=="function"?t[o]=ts(s,r):t[o]=s}),t}function vs(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}Zt.exports={isArray:Ye,isArrayBuffer:ns,isBuffer:rs,isFormData:ss,isArrayBufferView:os,isString:is,isNumber:as,isObject:Xt,isPlainObject:xe,isUndefined:We,isDate:us,isFile:cs,isBlob:fs,isFunction:Yt,isStream:ls,isURLSearchParams:ds,isStandardBrowserEnv:ps,forEach:Ze,merge:Xe,extend:ms,trim:hs,stripBOM:vs}});var Re=p((oi,Qt)=>{"use strict";var K=R();function Kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Qt.exports=function(e,r,n){if(!r)return e;var s;if(n)s=n(r);else if(K.isURLSearchParams(r))s=r.toString();else{var o=[];K.forEach(r,function(f,c){f===null||typeof f>"u"||(K.isArray(f)?c=c+"[]":f=[f],K.forEach(f,function(l){K.isDate(l)?l=l.toISOString():K.isObject(l)&&(l=JSON.stringify(l)),o.push(Kt(c)+"="+Kt(l))}))}),s=o.join("&")}if(s){var i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}});var tr=p((ii,er)=>{"use strict";var gs=R();function Se(){this.handlers=[]}Se.prototype.use=function(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};Se.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Se.prototype.forEach=function(e){gs.forEach(this.handlers,function(n){n!==null&&e(n)})};er.exports=Se});var nr=p((ai,rr)=>{"use strict";var ys=R();rr.exports=function(e,r){ys.forEach(e,function(s,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(e[r]=s,delete e[o])})}});var qe=p((ui,sr)=>{"use strict";sr.exports=function(e,r,n,s,o){return e.config=r,n&&(e.code=n),e.request=s,e.response=o,e.isAxiosError=!0,e.toJSON=function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}});var Le=p((ci,or)=>{"use strict";var _s=qe();or.exports=function(e,r,n,s,o){var i=new Error(e);return _s(i,r,n,s,o)}});var Ke=p((fi,ir)=>{"use strict";var Cs=Le();ir.exports=function(e,r,n){var s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):r(Cs("Request failed with status code "+n.status,n.config,null,n.request,n))}});var ur=p((li,ar)=>{"use strict";var Ie=R();ar.exports=Ie.isStandardBrowserEnv()?function(){return{write:function(r,n,s,o,i,u){var f=[];f.push(r+"="+encodeURIComponent(n)),Ie.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),Ie.isString(o)&&f.push("path="+o),Ie.isString(i)&&f.push("domain="+i),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var fr=p((di,cr)=>{"use strict";cr.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var dr=p((hi,lr)=>{"use strict";lr.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Qe=p((pi,hr)=>{"use strict";var Ts=fr(),Es=dr();hr.exports=function(e,r){return e&&!Ts(r)?Es(e,r):r}});var mr=p((mi,pr)=>{"use strict";var et=R(),Os=["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"];pr.exports=function(e){var r={},n,s,o;return e&&et.forEach(e.split(`
4
+ `),function(u){if(o=u.indexOf(":"),n=et.trim(u.substr(0,o)).toLowerCase(),s=et.trim(u.substr(o+1)),n){if(r[n]&&Os.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([s]):r[n]=r[n]?r[n]+", "+s:s}}),r}});var yr=p((vi,gr)=>{"use strict";var vr=R();gr.exports=vr.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function s(o){var i=o;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(i){var u=vr.isString(i)?s(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Q=p((gi,_r)=>{"use strict";function tt(t){this.message=t}tt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};tt.prototype.__CANCEL__=!0;_r.exports=tt});var Tr=p((yi,Cr)=>{"use strict";var Ne=R(),ws=Ke(),bs=ur(),xs=Re(),Rs=Qe(),Ss=mr(),qs=yr(),rt=Le(),Ls=ee(),Is=Q();Cr.exports=function(e){return new Promise(function(n,s){var o=e.data,i=e.headers,u=e.responseType,f;function c(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}Ne.isFormData(o)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+m)}var y=Rs(e.baseURL,e.url);a.open(e.method.toUpperCase(),xs(y,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function A(){if(a){var v="getAllResponseHeaders"in a?Ss(a.getAllResponseHeaders()):null,C=!u||u==="text"||u==="json"?a.responseText:a.response,b={data:C,status:a.status,statusText:a.statusText,headers:v,config:e,request:a};ws(function(B){n(B),c()},function(B){s(B),c()},b),a=null}}if("onloadend"in a?a.onloadend=A:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(A)},a.onabort=function(){a&&(s(rt("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){s(rt("Network Error",e,null,a)),a=null},a.ontimeout=function(){var C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",b=e.transitional||Ls.transitional;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),s(rt(C,e,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Ne.isStandardBrowserEnv()){var _=(e.withCredentials||qs(y))&&e.xsrfCookieName?bs.read(e.xsrfCookieName):void 0;_&&(i[e.xsrfHeaderName]=_)}"setRequestHeader"in a&&Ne.forEach(i,function(C,b){typeof o>"u"&&b.toLowerCase()==="content-type"?delete i[b]:a.setRequestHeader(b,C)}),Ne.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),u&&u!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(v){a&&(s(!v||v&&v.type?new Is("canceled"):v),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),o||(o=null),a.send(o)})}});var Or=p((_i,Er)=>{var te=1e3,re=te*60,ne=re*60,$=ne*24,Ns=$*7,Ps=$*365.25;Er.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Fs(t);if(r==="number"&&isFinite(t))return e.long?Us(t):As(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Fs(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ps;case"weeks":case"week":case"w":return r*Ns;case"days":case"day":case"d":return r*$;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ne;case"minutes":case"minute":case"mins":case"min":case"m":return r*re;case"seconds":case"second":case"secs":case"sec":case"s":return r*te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function As(t){var e=Math.abs(t);return e>=$?Math.round(t/$)+"d":e>=ne?Math.round(t/ne)+"h":e>=re?Math.round(t/re)+"m":e>=te?Math.round(t/te)+"s":t+"ms"}function Us(t){var e=Math.abs(t);return e>=$?Pe(t,e,$,"day"):e>=ne?Pe(t,e,ne,"hour"):e>=re?Pe(t,e,re,"minute"):e>=te?Pe(t,e,te,"second"):t+" ms"}function Pe(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var nt=p((Ci,wr)=>{function Bs(t){r.debug=r,r.default=r,r.coerce=f,r.disable=i,r.enable=s,r.enabled=u,r.humanize=Or(),r.destroy=c,Object.keys(t).forEach(a=>{r[a]=t[a]}),r.names=[],r.skips=[],r.formatters={};function e(a){let l=0;for(let m=0;m<a.length;m++)l=(l<<5)-l+a.charCodeAt(m),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=e;function r(a){let l,m=null,y,A;function _(...v){if(!_.enabled)return;let C=_,b=Number(new Date),ae=b-(l||b);C.diff=ae,C.prev=l,C.curr=b,l=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let B=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(ue,N)=>{if(ue==="%%")return"%";B++;let U=r.formatters[N];if(typeof U=="function"){let _e=v[B];ue=U.call(C,_e),v.splice(B,1),B--}return ue}),r.formatArgs.call(C,v),(C.log||r.log).apply(C,v)}return _.namespace=a,_.useColors=r.useColors(),_.color=r.selectColor(a),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(y!==r.namespaces&&(y=r.namespaces,A=r.enabled(a)),A),set:v=>{m=v}}),typeof r.init=="function"&&r.init(_),_}function n(a,l){let m=r(this.namespace+(typeof l>"u"?":":l)+a);return m.log=this.log,m}function s(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let l=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of l)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function o(a,l){let m=0,y=0,A=-1,_=0;for(;m<a.length;)if(y<l.length&&(l[y]===a[m]||l[y]==="*"))l[y]==="*"?(A=y,_=m,y++):(m++,y++);else if(A!==-1)y=A+1,_++,m=_;else return!1;for(;y<l.length&&l[y]==="*";)y++;return y===l.length}function i(){let a=[...r.names,...r.skips.map(l=>"-"+l)].join(",");return r.enable(""),a}function u(a){for(let l of r.skips)if(o(a,l))return!1;for(let l of r.names)if(o(a,l))return!0;return!1}function f(a){return a instanceof Error?a.stack||a.message:a}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}wr.exports=Bs});var br=p((S,Fe)=>{S.formatArgs=Ms;S.save=js;S.load=Hs;S.useColors=Ds;S.storage=ks();S.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();S.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ds(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ms(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fe.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}S.log=console.debug||console.log||(()=>{});function js(t){try{t?S.storage.setItem("debug",t):S.storage.removeItem("debug")}catch{}}function Hs(){let t;try{t=S.storage.getItem("debug")||S.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function ks(){try{return localStorage}catch{}}Fe.exports=nt()(S);var{formatters:Gs}=Fe.exports;Gs.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Rr=p((Ti,xr)=>{"use strict";xr.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var Lr=p((Ei,qr)=>{"use strict";var $s=require("os"),Sr=require("tty"),P=Rr(),{env:T}=process,j;P("no-color")||P("no-colors")||P("color=false")||P("color=never")?j=0:(P("color")||P("colors")||P("color=true")||P("color=always"))&&(j=1);"FORCE_COLOR"in T&&(T.FORCE_COLOR==="true"?j=1:T.FORCE_COLOR==="false"?j=0:j=T.FORCE_COLOR.length===0?1:Math.min(parseInt(T.FORCE_COLOR,10),3));function st(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ot(t,e){if(j===0)return 0;if(P("color=16m")||P("color=full")||P("color=truecolor"))return 3;if(P("color=256"))return 2;if(t&&!e&&j===void 0)return 0;let r=j||0;if(T.TERM==="dumb")return r;if(process.platform==="win32"){let n=$s.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in T)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in T)||T.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in T)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(T.TEAMCITY_VERSION)?1:0;if(T.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in T){let n=parseInt((T.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(T.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(T.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(T.TERM)||"COLORTERM"in T?1:r}function zs(t){let e=ot(t,t&&t.isTTY);return st(e)}qr.exports={supportsColor:zs,stdout:st(ot(!0,Sr.isatty(1))),stderr:st(ot(!0,Sr.isatty(2)))}});var Nr=p((E,Ue)=>{var Js=require("tty"),Ae=require("util");E.init=Qs;E.log=Ys;E.formatArgs=Ws;E.save=Zs;E.load=Ks;E.useColors=Vs;E.destroy=Ae.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");E.colors=[6,2,3,4,5,1];try{let t=Lr();t&&(t.stderr||t).level>=2&&(E.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}E.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Vs(){return"colors"in E.inspectOpts?!!E.inspectOpts.colors:Js.isatty(process.stderr.fd)}function Ws(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
5
5
  `).join(`
6
6
  `+o),t.push(s+"m+"+Ue.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Xs()+e+" "+t[0]}function Xs(){return E.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ys(...t){return process.stderr.write(Ae.formatWithOptions(E.inspectOpts,...t)+`
7
7
  `)}function Zs(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ks(){return process.env.DEBUG}function Qs(t){t.inspectOpts={};let e=Object.keys(E.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=E.inspectOpts[e[r]]}Ue.exports=nt()(E);var{formatters:Ir}=Ue.exports;Ir.o=function(t){return this.inspectOpts.colors=this.useColors,Ae.inspect(t,this.inspectOpts).split(`
8
- `).map(e=>e.trim()).join(" ")};Ir.O=function(t){return this.inspectOpts.colors=this.useColors,Ae.inspect(t,this.inspectOpts)}});var Pr=p((Oi,it)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?it.exports=br():it.exports=Nr()});var Ar=p((wi,Fr)=>{var de;Fr.exports=function(){if(!de){try{de=Pr()("follow-redirects")}catch{}typeof de!="function"&&(de=function(){})}de.apply(null,arguments)}});var _t=p((bi,yt)=>{var pe=require("url"),he=pe.URL,eo=require("http"),to=require("https"),lt=require("stream").Writable,dt=require("assert"),Ur=Ar();(function(){var e=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=J(Error.captureStackTrace);!e&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var ht=!1;try{dt(new he(""))}catch(t){ht=t.code==="ERR_INVALID_URL"}var ro=["Authorization","Proxy-Authorization","Cookie"],no=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],pt=["abort","aborted","connect","error","socket","timeout"],mt=Object.create(null);pt.forEach(function(t){mt[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var ut=me("ERR_INVALID_URL","Invalid URL",TypeError),ct=me("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),so=me("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ct),oo=me("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),io=me("ERR_STREAM_WRITE_AFTER_END","write after end"),ao=lt.prototype.destroy||Dr;function q(t,e){lt.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(s){r.emit("error",s instanceof ct?s:new ct({cause:s}))}},this._headerFilter=new RegExp("^(?:"+ro.concat(t.sensitiveHeaders).map(po).join("|")+")$","i"),this._performRequest()}q.prototype=Object.create(lt.prototype);q.prototype.abort=function(){gt(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};q.prototype.destroy=function(t){return gt(this._currentRequest,t),ao.call(this,t),this};q.prototype.write=function(t,e,r){if(this._ending)throw new io;if(!z(t)&&!lo(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(J(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new oo),this.abort())};q.prototype.end=function(t,e,r){if(J(t)?(r=t,t=e=null):J(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,s=this._currentRequest;this.write(t,e,function(){n._ended=!0,s.end(null,null,r)}),this._ending=!0}};q.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};q.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};q.prototype.setTimeout=function(t,e){var r=this;function n(i){i.setTimeout(t),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function s(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},t),n(i)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),r.removeListener("close",o),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",s)}return e&&this.on("timeout",e),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){q.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(q.prototype,t,{get:function(){return this._currentRequest[t]}})});q.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),fo(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};q.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var s of pt)n.on(s,mt[s]);if(this._currentUrl=/^\//.test(this._options.path)?pe.format(this._options):this._options.path,this._isRedirect){var o=0,i=this,u=this._requestBodyBuffers;(function f(c){if(n===i._currentRequest)if(c)i.emit("error",c);else if(o<u.length){var a=u[o++];n.finished||n.write(a.data,a.encoding,f)}else i._ended&&n.end()})()}};q.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(gt(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new so;var n,s=this._options.beforeRedirect;s&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var o=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],at(/^content-/i,this._options.headers));var i=at(/^host$/i,this._options.headers),u=vt(this._currentUrl),f=i||u.host,c=/^\w+:/.test(r)?this._currentUrl:pe.format(Object.assign(u,{host:f})),a=uo(r,c);if(Ur("redirecting to",a.href),this._isRedirect=!0,ft(a,this._options),(a.protocol!==u.protocol&&a.protocol!=="https:"||a.host!==f&&!co(a.host,f))&&at(this._headerFilter,this._options.headers),J(s)){var l={headers:t.headers,statusCode:e},m={url:c,method:o,headers:n};s(this._options,l,m),this._sanitizeOptions(this._options)}this._performRequest()};function Br(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var s=n+":",o=r[s]=t[n],i=e[n]=Object.create(o);function u(c,a,l){return ho(c)?c=ft(c):z(c)?c=ft(vt(c)):(l=a,a=Mr(c),c={protocol:s}),J(a)&&(l=a,a=null),a=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},c,a),a.nativeProtocols=r,!z(a.host)&&!z(a.hostname)&&(a.hostname="::1"),dt.equal(a.protocol,s,"protocol mismatch"),Ur("options",a),new q(a,l)}function f(c,a,l){var m=i.request(c,a,l);return m.end(),m}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:f,configurable:!0,enumerable:!0,writable:!0}})}),e}function Dr(){}function vt(t){var e;if(ht)e=new he(t);else if(e=Mr(pe.parse(t)),!z(e.protocol))throw new ut({input:t});return e}function uo(t,e){return ht?new he(t,e):vt(pe.resolve(e,t))}function Mr(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new ut({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new ut({input:t.href||t});return t}function ft(t,e){var r=e||{};for(var n of no)r[n]=t[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function at(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function me(t,e,r){function n(s){J(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,s||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function gt(t,e){for(var r of pt)t.removeListener(r,mt[r]);t.on("error",Dr),t.destroy(e)}function co(t,e){dt(z(t)&&z(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function fo(t){return t instanceof Array}function z(t){return typeof t=="string"||t instanceof String}function J(t){return typeof t=="function"}function lo(t){return typeof t=="object"&&"length"in t}function ho(t){return he&&t instanceof he}function po(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}yt.exports=Br({http:eo,https:to});yt.exports.wrap=Br});var Be=p((Ri,jr)=>{jr.exports={version:"0.24.0"}});var Jr=p((xi,zr)=>{"use strict";var ve=x(),Hr=Ke(),mo=Qe(),vo=xe(),go=require("http"),yo=require("https"),_o=_t().http,Co=_t().https,kr=require("url"),To=require("zlib"),Eo=Be().version,De=Le(),Ct=qe(),Oo=ee(),wo=Q(),Gr=/https:?/;function $r(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(o){o.headers.host=o.host,$r(o,e,o.href)}}zr.exports=function(e){return new Promise(function(n,s){var o;function i(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}var u=function(g){i(),n(g)},f=function(g){i(),s(g)},c=e.data,a=e.headers,l={};if(Object.keys(a).forEach(function(g){l[g.toLowerCase()]=g}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+Eo,c&&!ve.isStream(c)){if(!Buffer.isBuffer(c))if(ve.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else if(ve.isString(c))c=Buffer.from(c,"utf-8");else return f(De("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));l["content-length"]||(a["Content-Length"]=c.length)}var m=void 0;if(e.auth){var y=e.auth.username||"",A=e.auth.password||"";m=y+":"+A}var _=mo(e.baseURL,e.url),v=kr.parse(_),C=v.protocol||"http:";if(!m&&v.auth){var b=v.auth.split(":"),ae=b[0]||"",B=b[1]||"";m=ae+":"+B}m&&l.authorization&&delete a[l.authorization];var $e=Gr.test(C),ue=$e?e.httpsAgent:e.httpAgent,N={path:vo(v.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:a,agent:ue,agents:{http:e.httpAgent,https:e.httpsAgent},auth:m};e.socketPath?N.socketPath=e.socketPath:(N.hostname=v.hostname,N.port=v.port);var U=e.proxy;if(!U&&U!==!1){var _e=C.slice(0,-1)+"_proxy",Nt=process.env[_e]||process.env[_e.toUpperCase()];if(Nt){var ce=kr.parse(Nt),Pt=process.env.no_proxy||process.env.NO_PROXY,Ft=!0;if(Pt){var Un=Pt.split(",").map(function(g){return g.trim()});Ft=!Un.some(function(g){return g?g==="*"||g[0]==="."&&v.hostname.substr(v.hostname.length-g.length)===g?!0:v.hostname===g:!1})}if(Ft&&(U={host:ce.hostname,port:ce.port,protocol:ce.protocol},ce.auth)){var At=ce.auth.split(":");U.auth={username:At[0],password:At[1]}}}}U&&(N.headers.host=v.hostname+(v.port?":"+v.port:""),$r(N,U,C+"//"+v.hostname+(v.port?":"+v.port:"")+N.path));var Ce,Ut=$e&&(U?Gr.test(U.protocol):!0);e.transport?Ce=e.transport:e.maxRedirects===0?Ce=Ut?yo:go:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),Ce=Ut?Co:_o),e.maxBodyLength>-1&&(N.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser);var R=Ce.request(N,function(g){if(!R.aborted){var k=g,Te=g.req||R;if(g.statusCode!==204&&Te.method!=="HEAD"&&e.decompress!==!1)switch(g.headers["content-encoding"]){case"gzip":case"compress":case"deflate":k=k.pipe(To.createUnzip()),delete g.headers["content-encoding"];break}var Ee={status:g.statusCode,statusText:g.statusMessage,headers:g.headers,config:e,request:Te};if(e.responseType==="stream")Ee.data=k,Hr(u,f,Ee);else{var Bt=[],Dt=0;k.on("data",function(D){Bt.push(D),Dt+=D.length,e.maxContentLength>-1&&Dt>e.maxContentLength&&(k.destroy(),f(De("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Te)))}),k.on("error",function(D){R.aborted||f(Ct(D,e,null,Te))}),k.on("end",function(){var D=Buffer.concat(Bt);e.responseType!=="arraybuffer"&&(D=D.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(D=ve.stripBOM(D))),Ee.data=D,Hr(u,f,Ee)})}}});if(R.on("error",function(g){R.aborted&&g.code!=="ERR_FR_TOO_MANY_REDIRECTS"||f(Ct(g,e,null,R))}),e.timeout){var ze=parseInt(e.timeout,10);if(isNaN(ze)){f(De("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",R));return}R.setTimeout(ze,function(){R.abort();var g=e.transitional||Oo.transitional;f(De("timeout of "+ze+"ms exceeded",e,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",R))})}(e.cancelToken||e.signal)&&(o=function(L){R.aborted||(R.abort(),f(!L||L&&L.type?new wo("canceled"):L))},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))),ve.isStream(c)?c.on("error",function(g){f(Ct(g,e,null,R))}).pipe(R):R.end(c)})}});var ee=p((Si,Xr)=>{"use strict";var O=x(),Vr=nr(),bo=qe(),Ro={"Content-Type":"application/x-www-form-urlencoded"};function Wr(t,e){!O.isUndefined(t)&&O.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function xo(){var t;return typeof XMLHttpRequest<"u"?t=Tr():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Jr()),t}function So(t,e,r){if(O.isString(t))try{return(e||JSON.parse)(t),O.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Me={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:xo(),transformRequest:[function(e,r){return Vr(r,"Accept"),Vr(r,"Content-Type"),O.isFormData(e)||O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)?e:O.isArrayBufferView(e)?e.buffer:O.isURLSearchParams(e)?(Wr(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):O.isObject(e)||r&&r["Content-Type"]==="application/json"?(Wr(r,"application/json"),So(e)):e}],transformResponse:[function(e){var r=this.transitional||Me.transitional,n=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||s&&O.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(o)throw i.name==="SyntaxError"?bo(i,this,"E_JSON_PARSE"):i}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};O.forEach(["delete","get","head"],function(e){Me.headers[e]={}});O.forEach(["post","put","patch"],function(e){Me.headers[e]=O.merge(Ro)});Xr.exports=Me});var Zr=p((qi,Yr)=>{"use strict";var qo=x(),Lo=ee();Yr.exports=function(e,r,n){var s=this||Lo;return qo.forEach(n,function(i){e=i.call(s,e,r)}),e}});var Tt=p((Li,Kr)=>{"use strict";Kr.exports=function(e){return!!(e&&e.__CANCEL__)}});var tn=p((Ii,en)=>{"use strict";var Qr=x(),Et=Zr(),Io=Tt(),No=ee(),Po=Q();function Ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Po("canceled")}en.exports=function(e){Ot(e),e.headers=e.headers||{},e.data=Et.call(e,e.data,e.headers,e.transformRequest),e.headers=Qr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Qr.forEach(["delete","get","head","post","put","patch","common"],function(s){delete e.headers[s]});var r=e.adapter||No.adapter;return r(e).then(function(s){return Ot(e),s.data=Et.call(e,s.data,s.headers,e.transformResponse),s},function(s){return Io(s)||(Ot(e),s&&s.response&&(s.response.data=Et.call(e,s.response.data,s.response.headers,e.transformResponse))),Promise.reject(s)})}});var wt=p((Ni,rn)=>{"use strict";var I=x();rn.exports=function(e,r){r=r||{};var n={};function s(a,l){return I.isPlainObject(a)&&I.isPlainObject(l)?I.merge(a,l):I.isPlainObject(l)?I.merge({},l):I.isArray(l)?l.slice():l}function o(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(e[a],r[a])}function i(a){if(!I.isUndefined(r[a]))return s(void 0,r[a])}function u(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(void 0,r[a])}function f(a){if(a in r)return s(e[a],r[a]);if(a in e)return s(void 0,e[a])}var c={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return I.forEach(Object.keys(e).concat(Object.keys(r)),function(l){var m=c[l]||o,y=m(l);I.isUndefined(y)&&m!==f||(n[l]=y)}),n}});var on=p((Pi,sn)=>{"use strict";var Fo=Be().version,bt={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){bt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var nn={};bt.transitional=function(e,r,n){function s(o,i){return"[Axios v"+Fo+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return function(o,i,u){if(e===!1)throw new Error(s(i," has been removed"+(r?" in "+r:"")));return r&&!nn[i]&&(nn[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,i,u):!0}};function Ao(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),s=n.length;s-- >0;){var o=n[s],i=e[o];if(i){var u=t[o],f=u===void 0||i(u,o,t);if(f!==!0)throw new TypeError("option "+o+" must be "+f);continue}if(r!==!0)throw Error("Unknown option "+o)}}sn.exports={assertOptions:Ao,validators:bt}});var dn=p((Fi,ln)=>{"use strict";var cn=x(),Uo=xe(),an=tr(),un=tn(),je=wt(),fn=on(),se=fn.validators;function ge(t){this.defaults=t,this.interceptors={request:new an,response:new an}}ge.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=je(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&fn.assertOptions(r,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(s=s&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var i;if(!s){var u=[un,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var f=e;n.length;){var c=n.shift(),a=n.shift();try{f=c(f)}catch(l){a(l);break}}try{i=un(f)}catch(l){return Promise.reject(l)}for(;o.length;)i=i.then(o.shift(),o.shift());return i};ge.prototype.getUri=function(e){return e=je(this.defaults,e),Uo(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};cn.forEach(["delete","get","head","options"],function(e){ge.prototype[e]=function(r,n){return this.request(je(n||{},{method:e,url:r,data:(n||{}).data}))}});cn.forEach(["post","put","patch"],function(e){ge.prototype[e]=function(r,n,s){return this.request(je(s||{},{method:e,url:r,data:n}))}});ln.exports=ge});var pn=p((Ai,hn)=>{"use strict";var Bo=Q();function oe(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(s){e=s});var r=this;this.promise.then(function(n){if(r._listeners){var s,o=r._listeners.length;for(s=0;s<o;s++)r._listeners[s](n);r._listeners=null}}),this.promise.then=function(n){var s,o=new Promise(function(i){r.subscribe(i),s=i}).then(n);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s){r.reason||(r.reason=new Bo(s),e(r.reason))})}oe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};oe.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};oe.prototype.unsubscribe=function(e){if(this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};oe.source=function(){var e,r=new oe(function(s){e=s});return{token:r,cancel:e}};hn.exports=oe});var vn=p((Ui,mn)=>{"use strict";mn.exports=function(e){return function(n){return e.apply(null,n)}}});var yn=p((Bi,gn)=>{"use strict";gn.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Tn=p((Di,Rt)=>{"use strict";var _n=x(),Do=Ve(),He=dn(),Mo=wt(),jo=ee();function Cn(t){var e=new He(t),r=Do(He.prototype.request,e);return _n.extend(r,He.prototype,e),_n.extend(r,e),r.create=function(s){return Cn(Mo(t,s))},r}var M=Cn(jo);M.Axios=He;M.Cancel=Q();M.CancelToken=pn();M.isCancel=Tt();M.VERSION=Be().version;M.all=function(e){return Promise.all(e)};M.spread=vn();M.isAxiosError=yn();Rt.exports=M;Rt.exports.default=M});var On=p((Mi,En)=>{En.exports=Tn()});var Rn=p(H=>{"use strict";var wn=H&&H.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(a){try{c(n.next(a))}catch(l){i(l)}}function f(a){try{c(n.throw(a))}catch(l){i(l)}}function c(a){a.done?o(a.value):s(a.value).then(u,f)}c((n=n.apply(t,e||[])).next())})},bn=H&&H.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(a){return f([c,a])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(o=c[0]&2?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(a){c=[6,a],s=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(H,"__esModule",{value:!0});H.AsyncClient=void 0;var ye=Jt(),V=Vt(),Ho=On(),xt=Je(),ko=function(){function t(e){if(e==null||e==null)throw new ye.default("AsyncClientOptions invalid");if(e.endpoint==null||e.endpoint==null||e.endpoint.length==0)throw new ye.default("options endpoint can not be empty");for(this.retry_times=e.retry_times,(e.retry_times==0||e.retry_times==null||e.retry_times==null)&&(this.retry_times=5),e.endpoint.startsWith("http://")?(this.hostName=e.endpoint.substring(7),this.httpType="http://"):e.endpoint.startsWith("https://")?(this.hostName=e.endpoint.substring(8),this.httpType="https://"):(this.hostName=e.endpoint,this.httpType="http://");this.hostName.endsWith("/");)this.hostName=this.hostName.substring(0,this.hostName.length-1)}return t.prototype.PutLogs=function(e){return wn(this,void 0,void 0,function(){var r,n,s,o,f,i,u,f,f;return bn(this,function(c){switch(c.label){case 0:if(r=e.encodeLogItems(),r.length>V.CONST_MAX_PUT_SIZE)throw new ye.default("InvalidLogSize. logItems' size exceeds maximum limitation : "+V.CONST_MAX_PUT_SIZE+" bytes, logBytes="+r.length+", topic="+e.getTopic());n=this.getCommonHeadPara(V.CONST_JSON),e.setParam(V.TOPIC_ID,e.getTopic()),s=0,c.label=1;case 1:if(!(s<this.retry_times))return[3,6];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.sendLogs(V.UPLOAD_LOG_RESOURCE_URI,n,r,e.getTopic())];case 3:if(o=c.sent(),f=new xt.Response,f.setAllHeaders(o.headers),f.setHttpStatusCode(o.status),f.getHttpStatusCode()==200)return[2,f];if(s+1>=this.retry_times)throw new ye.default("send log failed and exceed retry times");return[3,5];case 4:if(i=c.sent(),u="",i.response&&i.response.headers&&(u=i.response.headers["x-cls-requestid"]),i.response&&i.response.status==413)return f=new xt.Response,f.setAllHeaders(i.response.headers),f.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&f.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&f.setErrorMessage(i.response.data.errormessage),[2,f];if(s+1>=this.retry_times)throw f=new xt.Response,i.response&&(f.setAllHeaders(i.response.headers),f.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&f.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&f.setErrorMessage(i.response.data.errormessage)),new ye.default("send log failed and exceed retry times. reason: "+JSON.stringify(f)+", error: "+i.message+".",u);return[3,5];case 5:return s++,[3,1];case 6:return[2]}})})},t.prototype.sendLogs=function(e,r,n,s){return wn(this,void 0,void 0,function(){var o,i,u;return bn(this,function(f){return o=this.stringToArrayBuffer(n),i=new Uint8Array(o),u={},r.forEach(function(c,a){u[a]=c}),[2,Ho.default({url:this.httpType+this.hostName+e+"?"+V.TOPIC_ID+"="+s,method:"post",data:i,headers:u})]})})},t.prototype.getCommonHeadPara=function(e){var r=new Map;return r.set(V.CONST_CONTENT_TYPE,e),r},t.prototype.stringToArrayBuffer=function(e){var r=new Array,n,s;n=e.length;for(var o=0;o<n;o++)s=e.charCodeAt(o),s>=65536&&s<=1114111?(r.push(s>>18&7|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)):s>=2048&&s<=65535?(r.push(s>>12&15|224),r.push(s>>6&63|128),r.push(s&63|128)):s>=128&&s<=2047?(r.push(s>>6&31|192),r.push(s&63|128)):r.push(s&255);var i=new Int8Array(r.length);for(var u in r)i[u]=r[u];return i.buffer},t}();H.AsyncClient=ko});var Sn=p(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.AsyncClient=F.Log=F.LogGroup=F.Response=F.PutLogsRequest=void 0;var Go=$t();Object.defineProperty(F,"PutLogsRequest",{enumerable:!0,get:function(){return Go.PutLogsRequest}});var $o=Je();Object.defineProperty(F,"Response",{enumerable:!0,get:function(){return $o.Response}});var xn=zt();Object.defineProperty(F,"LogGroup",{enumerable:!0,get:function(){return xn.LogGroup}});Object.defineProperty(F,"Log",{enumerable:!0,get:function(){return xn.Log}});var zo=Rn();Object.defineProperty(F,"AsyncClient",{enumerable:!0,get:function(){return zo.AsyncClient}})});var Fn=require("child_process"),An=X(require("path"));var Nn=X(kt()),Pn=X(require("https")),ie=X(Sn());var qn=X(require("crypto")),Ge=new Uint8Array(256),ke=Ge.length;function St(){return ke>Ge.length-16&&(qn.default.randomFillSync(Ge),ke=0),Ge.slice(ke,ke+=16)}var w=[];for(let t=0;t<256;++t)w.push((t+256).toString(16).slice(1));function Ln(t,e=0){return w[t[e+0]]+w[t[e+1]]+w[t[e+2]]+w[t[e+3]]+"-"+w[t[e+4]]+w[t[e+5]]+"-"+w[t[e+6]]+w[t[e+7]]+"-"+w[t[e+8]]+w[t[e+9]]+"-"+w[t[e+10]]+w[t[e+11]]+w[t[e+12]]+w[t[e+13]]+w[t[e+14]]+w[t[e+15]]}var In=X(require("crypto")),qt={randomUUID:In.default.randomUUID};function Jo(t,e,r){if(qt.randomUUID&&!e&&!t)return qt.randomUUID();t=t||{};let n=t.random||(t.rng||St)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let s=0;s<16;++s)e[r+s]=n[s];return e}return Ln(n)}var Lt=Jo;var It=class{disabled=/^(1|true)$/i.test(process.env.EDGEONE_CLS_DISABLE||"");localIp;topicId;endpoint;logs=[];runId="";constructor(){this.localIp=Nn.default.address(),this.setRegion(!0)}setRunId(e){this.runId=e}setRegion(e){this.disabled||(e?(this.endpoint="https://ap-nanjing.cls.tencentcs.com",this.topicId="4c6502d3-1134-4f2f-8359-157a8c5184cd"):(this.endpoint="https://ap-singapore.cls.tencentcs.com",this.topicId="589425db-bf02-4810-ae91-fe66daf63dc3"))}add(e,r){if(!this.disabled)try{let n=new ie.Log(Date.now());n.addContent("id",Lt()),n.addContent("source",this.localIp);let s=null;if(typeof r=="string")try{s=JSON.parse(r)}catch{}if(s&&typeof s=="object"){!this.runId&&typeof s.run_id=="string"&&(this.runId=s.run_id),this.runId&&!s.run_id&&(s.run_id=this.runId);for(let[o,i]of Object.entries(s))i!=null&&n.addContent(o,String(i))}else this.runId&&n.addContent("run_id",this.runId),n.addContent(e,String(r));this.logs.push(n)}catch{}}async report(){try{if(this.disabled||this.logs.length===0)return;let e=this.logs.splice(0),r=new ie.LogGroup(this.localIp);for(let i of e)r.addLog(i);let n=new ie.PutLogsRequest(this.topicId,r),s=Buffer.from(n.encodeLogItems(),"utf8");if(s.length>1024*1024)return;let o=new URL("/tracklog",this.endpoint);o.searchParams.set("topic_id",this.topicId),await new Promise((i,u)=>{let f=Pn.default.request(o,{method:"POST",headers:{"Content-Type":"application/json","Content-Length":s.length},rejectUnauthorized:!0,agent:!1},a=>{a.on("error",u),a.on("end",i),a.resume()}),c=setTimeout(()=>{f.destroy(new Error("CLS upload timed out."))},1e3);f.on("error",u),f.on("close",()=>clearTimeout(c)),f.end(s)})}catch{}}},Vo=new It,W=Vo;function Wo(){let t=Date.now(),e=null;process.removeAllListeners("warning"),process.on("warning",n=>{n.name!=="DeprecationWarning"&&console.warn(n.message)});let r=(0,Fn.spawn)(process.execPath,["--no-warnings","--no-deprecation","--experimental-vm-modules",...process.execArgv,An.default.join(__dirname,"../edgeone-dist/cli.js"),...process.argv.slice(2)],{stdio:["inherit","inherit","inherit","ipc"]});process.on("SIGINT",()=>{e="sigint",r.kill("SIGTERM")}),process.on("SIGTERM",()=>{e="sigterm",r.kill("SIGTERM")}),r.on("message",n=>{try{let s=JSON.parse(n),{name:o,value:i,isDomestic:u}=s;o&&i&&W.add(o,i),typeof u<"u"&&W.setRegion(u)}catch{}}),r.on("exit",(n,s)=>{let o=n!=null?n:s?1:0,i=Date.now()-t,u="success";e?u=e:s?u=s.toLowerCase():o!==0&&(u="fail");let f=JSON.stringify({event_name:"CLI:Exit",event_scope:"exit",event_result:o===0?"success":"fail",final_result:o===0?"success":"fail",termination_reason:u,exit_code:o,duration_ms:i});W.add("CLI:Exit",f);let c=!1,a=()=>{c||(c=!0,process.exit(o))},l=setTimeout(a,1500);typeof l.unref=="function"&&l.unref(),W.report().then(()=>{clearTimeout(l),a()}).catch(()=>{clearTimeout(l),a()})}),r.on("error",n=>{let s=JSON.stringify({event_name:"CLI:Process Error",event_scope:"exit",event_result:"fail",termination_reason:"uncaught_exception",error_message:n!=null&&n.message?n.message.slice(0,500):"child process error"});W.add("CLI:Process Error",s),W.report().then(()=>{process.exit(1)}).catch(()=>{process.exit(1)})})}Wo();
8
+ `).map(e=>e.trim()).join(" ")};Ir.O=function(t){return this.inspectOpts.colors=this.useColors,Ae.inspect(t,this.inspectOpts)}});var Pr=p((Oi,it)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?it.exports=br():it.exports=Nr()});var Ar=p((wi,Fr)=>{var de;Fr.exports=function(){if(!de){try{de=Pr()("follow-redirects")}catch{}typeof de!="function"&&(de=function(){})}de.apply(null,arguments)}});var _t=p((bi,yt)=>{var pe=require("url"),he=pe.URL,eo=require("http"),to=require("https"),lt=require("stream").Writable,dt=require("assert"),Ur=Ar();(function(){var e=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=J(Error.captureStackTrace);!e&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var ht=!1;try{dt(new he(""))}catch(t){ht=t.code==="ERR_INVALID_URL"}var ro=["Authorization","Proxy-Authorization","Cookie"],no=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],pt=["abort","aborted","connect","error","socket","timeout"],mt=Object.create(null);pt.forEach(function(t){mt[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var ut=me("ERR_INVALID_URL","Invalid URL",TypeError),ct=me("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),so=me("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ct),oo=me("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),io=me("ERR_STREAM_WRITE_AFTER_END","write after end"),ao=lt.prototype.destroy||Dr;function q(t,e){lt.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(s){r.emit("error",s instanceof ct?s:new ct({cause:s}))}},this._headerFilter=new RegExp("^(?:"+ro.concat(t.sensitiveHeaders).map(po).join("|")+")$","i"),this._performRequest()}q.prototype=Object.create(lt.prototype);q.prototype.abort=function(){gt(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};q.prototype.destroy=function(t){return gt(this._currentRequest,t),ao.call(this,t),this};q.prototype.write=function(t,e,r){if(this._ending)throw new io;if(!z(t)&&!lo(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(J(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new oo),this.abort())};q.prototype.end=function(t,e,r){if(J(t)?(r=t,t=e=null):J(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,s=this._currentRequest;this.write(t,e,function(){n._ended=!0,s.end(null,null,r)}),this._ending=!0}};q.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};q.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};q.prototype.setTimeout=function(t,e){var r=this;function n(i){i.setTimeout(t),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function s(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},t),n(i)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),r.removeListener("close",o),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",s)}return e&&this.on("timeout",e),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){q.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(q.prototype,t,{get:function(){return this._currentRequest[t]}})});q.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),fo(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};q.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var s of pt)n.on(s,mt[s]);if(this._currentUrl=/^\//.test(this._options.path)?pe.format(this._options):this._options.path,this._isRedirect){var o=0,i=this,u=this._requestBodyBuffers;(function f(c){if(n===i._currentRequest)if(c)i.emit("error",c);else if(o<u.length){var a=u[o++];n.finished||n.write(a.data,a.encoding,f)}else i._ended&&n.end()})()}};q.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(gt(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new so;var n,s=this._options.beforeRedirect;s&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var o=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],at(/^content-/i,this._options.headers));var i=at(/^host$/i,this._options.headers),u=vt(this._currentUrl),f=i||u.host,c=/^\w+:/.test(r)?this._currentUrl:pe.format(Object.assign(u,{host:f})),a=uo(r,c);if(Ur("redirecting to",a.href),this._isRedirect=!0,ft(a,this._options),(a.protocol!==u.protocol&&a.protocol!=="https:"||a.host!==f&&!co(a.host,f))&&at(this._headerFilter,this._options.headers),J(s)){var l={headers:t.headers,statusCode:e},m={url:c,method:o,headers:n};s(this._options,l,m),this._sanitizeOptions(this._options)}this._performRequest()};function Br(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var s=n+":",o=r[s]=t[n],i=e[n]=Object.create(o);function u(c,a,l){return ho(c)?c=ft(c):z(c)?c=ft(vt(c)):(l=a,a=Mr(c),c={protocol:s}),J(a)&&(l=a,a=null),a=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},c,a),a.nativeProtocols=r,!z(a.host)&&!z(a.hostname)&&(a.hostname="::1"),dt.equal(a.protocol,s,"protocol mismatch"),Ur("options",a),new q(a,l)}function f(c,a,l){var m=i.request(c,a,l);return m.end(),m}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:f,configurable:!0,enumerable:!0,writable:!0}})}),e}function Dr(){}function vt(t){var e;if(ht)e=new he(t);else if(e=Mr(pe.parse(t)),!z(e.protocol))throw new ut({input:t});return e}function uo(t,e){return ht?new he(t,e):vt(pe.resolve(e,t))}function Mr(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new ut({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new ut({input:t.href||t});return t}function ft(t,e){var r=e||{};for(var n of no)r[n]=t[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function at(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function me(t,e,r){function n(s){J(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,s||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function gt(t,e){for(var r of pt)t.removeListener(r,mt[r]);t.on("error",Dr),t.destroy(e)}function co(t,e){dt(z(t)&&z(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function fo(t){return t instanceof Array}function z(t){return typeof t=="string"||t instanceof String}function J(t){return typeof t=="function"}function lo(t){return typeof t=="object"&&"length"in t}function ho(t){return he&&t instanceof he}function po(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}yt.exports=Br({http:eo,https:to});yt.exports.wrap=Br});var Be=p((xi,jr)=>{jr.exports={version:"0.24.0"}});var Jr=p((Ri,zr)=>{"use strict";var ve=R(),Hr=Ke(),mo=Qe(),vo=Re(),go=require("http"),yo=require("https"),_o=_t().http,Co=_t().https,kr=require("url"),To=require("zlib"),Eo=Be().version,De=Le(),Ct=qe(),Oo=ee(),wo=Q(),Gr=/https:?/;function $r(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(o){o.headers.host=o.host,$r(o,e,o.href)}}zr.exports=function(e){return new Promise(function(n,s){var o;function i(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}var u=function(g){i(),n(g)},f=function(g){i(),s(g)},c=e.data,a=e.headers,l={};if(Object.keys(a).forEach(function(g){l[g.toLowerCase()]=g}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+Eo,c&&!ve.isStream(c)){if(!Buffer.isBuffer(c))if(ve.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else if(ve.isString(c))c=Buffer.from(c,"utf-8");else return f(De("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));l["content-length"]||(a["Content-Length"]=c.length)}var m=void 0;if(e.auth){var y=e.auth.username||"",A=e.auth.password||"";m=y+":"+A}var _=mo(e.baseURL,e.url),v=kr.parse(_),C=v.protocol||"http:";if(!m&&v.auth){var b=v.auth.split(":"),ae=b[0]||"",B=b[1]||"";m=ae+":"+B}m&&l.authorization&&delete a[l.authorization];var $e=Gr.test(C),ue=$e?e.httpsAgent:e.httpAgent,N={path:vo(v.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:a,agent:ue,agents:{http:e.httpAgent,https:e.httpsAgent},auth:m};e.socketPath?N.socketPath=e.socketPath:(N.hostname=v.hostname,N.port=v.port);var U=e.proxy;if(!U&&U!==!1){var _e=C.slice(0,-1)+"_proxy",Nt=process.env[_e]||process.env[_e.toUpperCase()];if(Nt){var ce=kr.parse(Nt),Pt=process.env.no_proxy||process.env.NO_PROXY,Ft=!0;if(Pt){var Un=Pt.split(",").map(function(g){return g.trim()});Ft=!Un.some(function(g){return g?g==="*"||g[0]==="."&&v.hostname.substr(v.hostname.length-g.length)===g?!0:v.hostname===g:!1})}if(Ft&&(U={host:ce.hostname,port:ce.port,protocol:ce.protocol},ce.auth)){var At=ce.auth.split(":");U.auth={username:At[0],password:At[1]}}}}U&&(N.headers.host=v.hostname+(v.port?":"+v.port:""),$r(N,U,C+"//"+v.hostname+(v.port?":"+v.port:"")+N.path));var Ce,Ut=$e&&(U?Gr.test(U.protocol):!0);e.transport?Ce=e.transport:e.maxRedirects===0?Ce=Ut?yo:go:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),Ce=Ut?Co:_o),e.maxBodyLength>-1&&(N.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser);var x=Ce.request(N,function(g){if(!x.aborted){var k=g,Te=g.req||x;if(g.statusCode!==204&&Te.method!=="HEAD"&&e.decompress!==!1)switch(g.headers["content-encoding"]){case"gzip":case"compress":case"deflate":k=k.pipe(To.createUnzip()),delete g.headers["content-encoding"];break}var Ee={status:g.statusCode,statusText:g.statusMessage,headers:g.headers,config:e,request:Te};if(e.responseType==="stream")Ee.data=k,Hr(u,f,Ee);else{var Bt=[],Dt=0;k.on("data",function(D){Bt.push(D),Dt+=D.length,e.maxContentLength>-1&&Dt>e.maxContentLength&&(k.destroy(),f(De("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Te)))}),k.on("error",function(D){x.aborted||f(Ct(D,e,null,Te))}),k.on("end",function(){var D=Buffer.concat(Bt);e.responseType!=="arraybuffer"&&(D=D.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(D=ve.stripBOM(D))),Ee.data=D,Hr(u,f,Ee)})}}});if(x.on("error",function(g){x.aborted&&g.code!=="ERR_FR_TOO_MANY_REDIRECTS"||f(Ct(g,e,null,x))}),e.timeout){var ze=parseInt(e.timeout,10);if(isNaN(ze)){f(De("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",x));return}x.setTimeout(ze,function(){x.abort();var g=e.transitional||Oo.transitional;f(De("timeout of "+ze+"ms exceeded",e,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x))})}(e.cancelToken||e.signal)&&(o=function(L){x.aborted||(x.abort(),f(!L||L&&L.type?new wo("canceled"):L))},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))),ve.isStream(c)?c.on("error",function(g){f(Ct(g,e,null,x))}).pipe(x):x.end(c)})}});var ee=p((Si,Xr)=>{"use strict";var O=R(),Vr=nr(),bo=qe(),xo={"Content-Type":"application/x-www-form-urlencoded"};function Wr(t,e){!O.isUndefined(t)&&O.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Ro(){var t;return typeof XMLHttpRequest<"u"?t=Tr():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Jr()),t}function So(t,e,r){if(O.isString(t))try{return(e||JSON.parse)(t),O.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Me={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Ro(),transformRequest:[function(e,r){return Vr(r,"Accept"),Vr(r,"Content-Type"),O.isFormData(e)||O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)?e:O.isArrayBufferView(e)?e.buffer:O.isURLSearchParams(e)?(Wr(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):O.isObject(e)||r&&r["Content-Type"]==="application/json"?(Wr(r,"application/json"),So(e)):e}],transformResponse:[function(e){var r=this.transitional||Me.transitional,n=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||s&&O.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(o)throw i.name==="SyntaxError"?bo(i,this,"E_JSON_PARSE"):i}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};O.forEach(["delete","get","head"],function(e){Me.headers[e]={}});O.forEach(["post","put","patch"],function(e){Me.headers[e]=O.merge(xo)});Xr.exports=Me});var Zr=p((qi,Yr)=>{"use strict";var qo=R(),Lo=ee();Yr.exports=function(e,r,n){var s=this||Lo;return qo.forEach(n,function(i){e=i.call(s,e,r)}),e}});var Tt=p((Li,Kr)=>{"use strict";Kr.exports=function(e){return!!(e&&e.__CANCEL__)}});var tn=p((Ii,en)=>{"use strict";var Qr=R(),Et=Zr(),Io=Tt(),No=ee(),Po=Q();function Ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Po("canceled")}en.exports=function(e){Ot(e),e.headers=e.headers||{},e.data=Et.call(e,e.data,e.headers,e.transformRequest),e.headers=Qr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Qr.forEach(["delete","get","head","post","put","patch","common"],function(s){delete e.headers[s]});var r=e.adapter||No.adapter;return r(e).then(function(s){return Ot(e),s.data=Et.call(e,s.data,s.headers,e.transformResponse),s},function(s){return Io(s)||(Ot(e),s&&s.response&&(s.response.data=Et.call(e,s.response.data,s.response.headers,e.transformResponse))),Promise.reject(s)})}});var wt=p((Ni,rn)=>{"use strict";var I=R();rn.exports=function(e,r){r=r||{};var n={};function s(a,l){return I.isPlainObject(a)&&I.isPlainObject(l)?I.merge(a,l):I.isPlainObject(l)?I.merge({},l):I.isArray(l)?l.slice():l}function o(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(e[a],r[a])}function i(a){if(!I.isUndefined(r[a]))return s(void 0,r[a])}function u(a){if(I.isUndefined(r[a])){if(!I.isUndefined(e[a]))return s(void 0,e[a])}else return s(void 0,r[a])}function f(a){if(a in r)return s(e[a],r[a]);if(a in e)return s(void 0,e[a])}var c={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return I.forEach(Object.keys(e).concat(Object.keys(r)),function(l){var m=c[l]||o,y=m(l);I.isUndefined(y)&&m!==f||(n[l]=y)}),n}});var on=p((Pi,sn)=>{"use strict";var Fo=Be().version,bt={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){bt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var nn={};bt.transitional=function(e,r,n){function s(o,i){return"[Axios v"+Fo+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return function(o,i,u){if(e===!1)throw new Error(s(i," has been removed"+(r?" in "+r:"")));return r&&!nn[i]&&(nn[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,i,u):!0}};function Ao(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),s=n.length;s-- >0;){var o=n[s],i=e[o];if(i){var u=t[o],f=u===void 0||i(u,o,t);if(f!==!0)throw new TypeError("option "+o+" must be "+f);continue}if(r!==!0)throw Error("Unknown option "+o)}}sn.exports={assertOptions:Ao,validators:bt}});var dn=p((Fi,ln)=>{"use strict";var cn=R(),Uo=Re(),an=tr(),un=tn(),je=wt(),fn=on(),se=fn.validators;function ge(t){this.defaults=t,this.interceptors={request:new an,response:new an}}ge.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=je(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&fn.assertOptions(r,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(s=s&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var i;if(!s){var u=[un,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var f=e;n.length;){var c=n.shift(),a=n.shift();try{f=c(f)}catch(l){a(l);break}}try{i=un(f)}catch(l){return Promise.reject(l)}for(;o.length;)i=i.then(o.shift(),o.shift());return i};ge.prototype.getUri=function(e){return e=je(this.defaults,e),Uo(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};cn.forEach(["delete","get","head","options"],function(e){ge.prototype[e]=function(r,n){return this.request(je(n||{},{method:e,url:r,data:(n||{}).data}))}});cn.forEach(["post","put","patch"],function(e){ge.prototype[e]=function(r,n,s){return this.request(je(s||{},{method:e,url:r,data:n}))}});ln.exports=ge});var pn=p((Ai,hn)=>{"use strict";var Bo=Q();function oe(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(s){e=s});var r=this;this.promise.then(function(n){if(r._listeners){var s,o=r._listeners.length;for(s=0;s<o;s++)r._listeners[s](n);r._listeners=null}}),this.promise.then=function(n){var s,o=new Promise(function(i){r.subscribe(i),s=i}).then(n);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s){r.reason||(r.reason=new Bo(s),e(r.reason))})}oe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};oe.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};oe.prototype.unsubscribe=function(e){if(this._listeners){var r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}};oe.source=function(){var e,r=new oe(function(s){e=s});return{token:r,cancel:e}};hn.exports=oe});var vn=p((Ui,mn)=>{"use strict";mn.exports=function(e){return function(n){return e.apply(null,n)}}});var yn=p((Bi,gn)=>{"use strict";gn.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Tn=p((Di,xt)=>{"use strict";var _n=R(),Do=Ve(),He=dn(),Mo=wt(),jo=ee();function Cn(t){var e=new He(t),r=Do(He.prototype.request,e);return _n.extend(r,He.prototype,e),_n.extend(r,e),r.create=function(s){return Cn(Mo(t,s))},r}var M=Cn(jo);M.Axios=He;M.Cancel=Q();M.CancelToken=pn();M.isCancel=Tt();M.VERSION=Be().version;M.all=function(e){return Promise.all(e)};M.spread=vn();M.isAxiosError=yn();xt.exports=M;xt.exports.default=M});var On=p((Mi,En)=>{En.exports=Tn()});var xn=p(H=>{"use strict";var wn=H&&H.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(a){try{c(n.next(a))}catch(l){i(l)}}function f(a){try{c(n.throw(a))}catch(l){i(l)}}function c(a){a.done?o(a.value):s(a.value).then(u,f)}c((n=n.apply(t,e||[])).next())})},bn=H&&H.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(a){return f([c,a])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(o=c[0]&2?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(a){c=[6,a],s=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(H,"__esModule",{value:!0});H.AsyncClient=void 0;var ye=Jt(),V=Vt(),Ho=On(),Rt=Je(),ko=function(){function t(e){if(e==null||e==null)throw new ye.default("AsyncClientOptions invalid");if(e.endpoint==null||e.endpoint==null||e.endpoint.length==0)throw new ye.default("options endpoint can not be empty");for(this.retry_times=e.retry_times,(e.retry_times==0||e.retry_times==null||e.retry_times==null)&&(this.retry_times=5),e.endpoint.startsWith("http://")?(this.hostName=e.endpoint.substring(7),this.httpType="http://"):e.endpoint.startsWith("https://")?(this.hostName=e.endpoint.substring(8),this.httpType="https://"):(this.hostName=e.endpoint,this.httpType="http://");this.hostName.endsWith("/");)this.hostName=this.hostName.substring(0,this.hostName.length-1)}return t.prototype.PutLogs=function(e){return wn(this,void 0,void 0,function(){var r,n,s,o,f,i,u,f,f;return bn(this,function(c){switch(c.label){case 0:if(r=e.encodeLogItems(),r.length>V.CONST_MAX_PUT_SIZE)throw new ye.default("InvalidLogSize. logItems' size exceeds maximum limitation : "+V.CONST_MAX_PUT_SIZE+" bytes, logBytes="+r.length+", topic="+e.getTopic());n=this.getCommonHeadPara(V.CONST_JSON),e.setParam(V.TOPIC_ID,e.getTopic()),s=0,c.label=1;case 1:if(!(s<this.retry_times))return[3,6];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.sendLogs(V.UPLOAD_LOG_RESOURCE_URI,n,r,e.getTopic())];case 3:if(o=c.sent(),f=new Rt.Response,f.setAllHeaders(o.headers),f.setHttpStatusCode(o.status),f.getHttpStatusCode()==200)return[2,f];if(s+1>=this.retry_times)throw new ye.default("send log failed and exceed retry times");return[3,5];case 4:if(i=c.sent(),u="",i.response&&i.response.headers&&(u=i.response.headers["x-cls-requestid"]),i.response&&i.response.status==413)return f=new Rt.Response,f.setAllHeaders(i.response.headers),f.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&f.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&f.setErrorMessage(i.response.data.errormessage),[2,f];if(s+1>=this.retry_times)throw f=new Rt.Response,i.response&&(f.setAllHeaders(i.response.headers),f.setHttpStatusCode(i.response.status),i.response.data.errorcode!=null&&i.response.data.errorcode!=null&&f.setErrorCode(i.response.data.errorcode),i.response.data.errormessage!=null&&i.response.data.errormessage!=null&&f.setErrorMessage(i.response.data.errormessage)),new ye.default("send log failed and exceed retry times. reason: "+JSON.stringify(f)+", error: "+i.message+".",u);return[3,5];case 5:return s++,[3,1];case 6:return[2]}})})},t.prototype.sendLogs=function(e,r,n,s){return wn(this,void 0,void 0,function(){var o,i,u;return bn(this,function(f){return o=this.stringToArrayBuffer(n),i=new Uint8Array(o),u={},r.forEach(function(c,a){u[a]=c}),[2,Ho.default({url:this.httpType+this.hostName+e+"?"+V.TOPIC_ID+"="+s,method:"post",data:i,headers:u})]})})},t.prototype.getCommonHeadPara=function(e){var r=new Map;return r.set(V.CONST_CONTENT_TYPE,e),r},t.prototype.stringToArrayBuffer=function(e){var r=new Array,n,s;n=e.length;for(var o=0;o<n;o++)s=e.charCodeAt(o),s>=65536&&s<=1114111?(r.push(s>>18&7|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)):s>=2048&&s<=65535?(r.push(s>>12&15|224),r.push(s>>6&63|128),r.push(s&63|128)):s>=128&&s<=2047?(r.push(s>>6&31|192),r.push(s&63|128)):r.push(s&255);var i=new Int8Array(r.length);for(var u in r)i[u]=r[u];return i.buffer},t}();H.AsyncClient=ko});var Sn=p(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.AsyncClient=F.Log=F.LogGroup=F.Response=F.PutLogsRequest=void 0;var Go=$t();Object.defineProperty(F,"PutLogsRequest",{enumerable:!0,get:function(){return Go.PutLogsRequest}});var $o=Je();Object.defineProperty(F,"Response",{enumerable:!0,get:function(){return $o.Response}});var Rn=zt();Object.defineProperty(F,"LogGroup",{enumerable:!0,get:function(){return Rn.LogGroup}});Object.defineProperty(F,"Log",{enumerable:!0,get:function(){return Rn.Log}});var zo=xn();Object.defineProperty(F,"AsyncClient",{enumerable:!0,get:function(){return zo.AsyncClient}})});var Fn=require("child_process"),An=X(require("path"));var Nn=X(kt()),Pn=X(require("https")),ie=X(Sn());var qn=X(require("crypto")),Ge=new Uint8Array(256),ke=Ge.length;function St(){return ke>Ge.length-16&&(qn.default.randomFillSync(Ge),ke=0),Ge.slice(ke,ke+=16)}var w=[];for(let t=0;t<256;++t)w.push((t+256).toString(16).slice(1));function Ln(t,e=0){return w[t[e+0]]+w[t[e+1]]+w[t[e+2]]+w[t[e+3]]+"-"+w[t[e+4]]+w[t[e+5]]+"-"+w[t[e+6]]+w[t[e+7]]+"-"+w[t[e+8]]+w[t[e+9]]+"-"+w[t[e+10]]+w[t[e+11]]+w[t[e+12]]+w[t[e+13]]+w[t[e+14]]+w[t[e+15]]}var In=X(require("crypto")),qt={randomUUID:In.default.randomUUID};function Jo(t,e,r){if(qt.randomUUID&&!e&&!t)return qt.randomUUID();t=t||{};let n=t.random||(t.rng||St)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let s=0;s<16;++s)e[r+s]=n[s];return e}return Ln(n)}var Lt=Jo;var It=class{disabled=/^(1|true)$/i.test(process.env.EDGEONE_CLS_DISABLE||"");localIp;topicId;endpoint;logs=[];runId="";deploymentContext={};constructor(){this.localIp=Nn.default.address(),this.setRegion(!0)}setRunId(e){this.runId=e}setRegion(e){this.disabled||(e?(this.endpoint="https://ap-nanjing.cls.tencentcs.com",this.topicId="4c6502d3-1134-4f2f-8359-157a8c5184cd"):(this.endpoint="https://ap-singapore.cls.tencentcs.com",this.topicId="589425db-bf02-4810-ae91-fe66daf63dc3"))}add(e,r){if(!this.disabled)try{let n=new ie.Log(Date.now());n.addContent("id",Lt()),n.addContent("source",this.localIp);let s=null;if(typeof r=="string")try{s=JSON.parse(r)}catch{}if(s&&typeof s=="object"){!this.runId&&typeof s.run_id=="string"&&(this.runId=s.run_id),this.runId&&!s.run_id&&(s.run_id=this.runId);for(let o of["deployment_source","ai_host"])typeof s[o]=="string"?this.deploymentContext[o]=s[o]:s[o]==null&&this.deploymentContext[o]&&(s[o]=this.deploymentContext[o]);for(let[o,i]of Object.entries(s))i!=null&&n.addContent(o,String(i))}else this.runId&&n.addContent("run_id",this.runId),n.addContent(e,String(r));this.logs.push(n)}catch{}}async report(){try{if(this.disabled||this.logs.length===0)return;let e=this.logs.splice(0),r=new ie.LogGroup(this.localIp);for(let i of e)r.addLog(i);let n=new ie.PutLogsRequest(this.topicId,r),s=Buffer.from(n.encodeLogItems(),"utf8");if(s.length>1024*1024)return;let o=new URL("/tracklog",this.endpoint);o.searchParams.set("topic_id",this.topicId),await new Promise((i,u)=>{let f=Pn.default.request(o,{method:"POST",headers:{"Content-Type":"application/json","Content-Length":s.length},rejectUnauthorized:!0,agent:!1},a=>{a.on("error",u),a.on("end",i),a.resume()}),c=setTimeout(()=>{f.destroy(new Error("CLS upload timed out."))},1e3);f.on("error",u),f.on("close",()=>clearTimeout(c)),f.end(s)})}catch{}}},Vo=new It,W=Vo;function Wo(){let t=Date.now(),e=null;process.removeAllListeners("warning"),process.on("warning",n=>{n.name!=="DeprecationWarning"&&console.warn(n.message)});let r=(0,Fn.spawn)(process.execPath,["--no-warnings","--no-deprecation","--experimental-vm-modules",...process.execArgv,An.default.join(__dirname,"../edgeone-dist/cli.js"),...process.argv.slice(2)],{stdio:["inherit","inherit","inherit","ipc"]});process.on("SIGINT",()=>{e="sigint",r.kill("SIGTERM")}),process.on("SIGTERM",()=>{e="sigterm",r.kill("SIGTERM")}),r.on("message",n=>{try{let s=JSON.parse(n),{name:o,value:i,isDomestic:u}=s;o&&i&&W.add(o,i),typeof u<"u"&&W.setRegion(u)}catch{}}),r.on("exit",(n,s)=>{let o=n!=null?n:s?1:0,i=Date.now()-t,u="success";e?u=e:s?u=s.toLowerCase():o!==0&&(u="fail");let f=JSON.stringify({event_name:"CLI:Exit",event_scope:"exit",event_result:o===0?"success":"fail",final_result:o===0?"success":"fail",termination_reason:u,exit_code:o,duration_ms:i});W.add("CLI:Exit",f);let c=!1,a=()=>{c||(c=!0,process.exit(o))},l=setTimeout(a,1500);typeof l.unref=="function"&&l.unref(),W.report().then(()=>{clearTimeout(l),a()}).catch(()=>{clearTimeout(l),a()})}),r.on("error",n=>{let s=JSON.stringify({event_name:"CLI:Process Error",event_scope:"exit",event_result:"fail",termination_reason:"uncaught_exception",error_message:n!=null&&n.message?n.message.slice(0,500):"child process error"});W.add("CLI:Process Error",s),W.report().then(()=>{process.exit(1)}).catch(()=>{process.exit(1)})})}Wo();