@northflank/js-client 0.8.2 → 0.8.3
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.
- package/dist/cjs/api-client.d.ts +1373 -1050
- package/dist/cjs/api-client.js +1 -1
- package/dist/esm/api-client.d.ts +1373 -1050
- package/dist/esm/api-client.js +1 -1
- package/package.json +1 -1
package/dist/esm/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{EventEmitter as t}from"events";import{execSync as n,spawn as r}from"child_process";import*as i from"stream";import o,{Transform as u}from"stream";import s from"http";import a,{fileURLToPath as c}from"url";import d from"https";import*as l from"zlib";import h from"zlib";import p from"os";import*as f from"net";import m,{Socket as v}from"net";import E,{mkdir as A,stat as b,statSync as y,mkdirSync as g}from"fs";import C,{parse as w,dirname as F,resolve as D}from"path";import B from"tls";import I from"crypto";import R,{Buffer as j}from"buffer";import S from"dgram";import{EventEmitter as _}from"node:events";import U from"node:stream";import{StringDecoder as P}from"node:string_decoder";import O,{posix as k,basename as x,win32 as T,join as L}from"node:path";import N from"node:fs";import q from"assert";import M from"node:assert";import{randomBytes as G}from"node:crypto";var z=function(e,t){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},z(e,t)};function $(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W.apply(this,arguments)};function J(e,t,n,r){return new(n||(n=Promise))((function(i,o){function u(e){try{a(r.next(e))}catch(e){o(e)}}function s(e){try{a(r.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}a((r=r.apply(e,t||[])).next())}))}function V(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=s(0),u.throw=s(1),u.return=s(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function H(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Z="object"==typeof global&&global&&global.Object===Object&&global,Y="object"==typeof self&&self&&self.Object===Object&&self,K=Z||Y||Function("return this")(),X=K.Symbol,Q=Object.prototype,ee=Q.hasOwnProperty,te=Q.toString,ne=X?X.toStringTag:void 0;var re=Object.prototype.toString;var ie=X?X.toStringTag:void 0;function oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ie&&ie in Object(e)?function(e){var t=ee.call(e,ne),n=e[ne];try{e[ne]=void 0;var r=!0}catch(e){}var i=te.call(e);return r&&(t?e[ne]=n:delete e[ne]),i}(e):function(e){return re.call(e)}(e)}function ue(e){return null!=e&&"object"==typeof e}function se(e){return"symbol"==typeof e||ue(e)&&"[object Symbol]"==oe(e)}function ae(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ce=Array.isArray,de=X?X.prototype:void 0,le=de?de.toString:void 0;function he(e){if("string"==typeof e)return e;if(ce(e))return ae(e,he)+"";if(se(e))return le?le.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function pe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fe(e){return e}function me(e){if(!pe(e))return!1;var t=oe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var ve,Ee=K["__core-js_shared__"],Ae=(ve=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"";var be=Function.prototype.toString;function ye(e){if(null!=e){try{return be.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ge=/^\[object .+?Constructor\]$/,Ce=Function.prototype,we=Object.prototype,Fe=Ce.toString,De=we.hasOwnProperty,Be=RegExp("^"+Fe.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(e){return!(!pe(e)||(t=e,Ae&&Ae in t))&&(me(e)?Be:ge).test(ye(e));var t}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}var je=Re(K,"WeakMap"),Se=Object.create,_e=function(){function e(){}return function(t){if(!pe(t))return{};if(Se)return Se(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Ue=Date.now;var Pe,Oe,ke,xe=function(){try{var e=Re(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Te=xe,Le=Te?function(e,t){return Te(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:fe,Ne=(Pe=Le,Oe=0,ke=0,function(){var e=Ue(),t=16-(e-ke);if(ke=e,t>0){if(++Oe>=800)return arguments[0]}else Oe=0;return Pe.apply(void 0,arguments)}),qe=/^(?:0|[1-9]\d*)$/;function Me(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&qe.test(e))&&e>-1&&e%1==0&&e<t}function Ge(e,t,n){"__proto__"==t&&Te?Te(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ze(e,t){return e===t||e!=e&&t!=t}var $e=Object.prototype.hasOwnProperty;function We(e,t,n){var r=e[t];$e.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||Ge(e,t,n)}var Je=Math.max;function Ve(e,t){return Ne(function(e,t,n){return t=Je(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Je(r.length-t,0),u=Array(o);++i<o;)u[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(u),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,fe),e+"")}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ze(e){return null!=e&&He(e.length)&&!me(e)}var Ye=Object.prototype;function Ke(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ye)}function Xe(e){return ue(e)&&"[object Arguments]"==oe(e)}var Qe=Object.prototype,et=Qe.hasOwnProperty,tt=Qe.propertyIsEnumerable,nt=Xe(function(){return arguments}())?Xe:function(e){return ue(e)&&et.call(e,"callee")&&!tt.call(e,"callee")};var rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,it=rt&&"object"==typeof module&&module&&!module.nodeType&&module,ot=it&&it.exports===rt?K.Buffer:void 0,ut=(ot?ot.isBuffer:void 0)||function(){return!1},st={};st["[object Float32Array]"]=st["[object Float64Array]"]=st["[object Int8Array]"]=st["[object Int16Array]"]=st["[object Int32Array]"]=st["[object Uint8Array]"]=st["[object Uint8ClampedArray]"]=st["[object Uint16Array]"]=st["[object Uint32Array]"]=!0,st["[object Arguments]"]=st["[object Array]"]=st["[object ArrayBuffer]"]=st["[object Boolean]"]=st["[object DataView]"]=st["[object Date]"]=st["[object Error]"]=st["[object Function]"]=st["[object Map]"]=st["[object Number]"]=st["[object Object]"]=st["[object RegExp]"]=st["[object Set]"]=st["[object String]"]=st["[object WeakMap]"]=!1;var at="object"==typeof exports&&exports&&!exports.nodeType&&exports,ct=at&&"object"==typeof module&&module&&!module.nodeType&&module,dt=ct&&ct.exports===at&&Z.process,lt=function(){try{var e=ct&&ct.require&&ct.require("util").types;return e||dt&&dt.binding&&dt.binding("util")}catch(e){}}(),ht=lt&<.isTypedArray,pt=ht?function(e){return function(t){return e(t)}}(ht):function(e){return ue(e)&&He(e.length)&&!!st[oe(e)]},ft=pt,mt=Object.prototype.hasOwnProperty;function vt(e,t){var n=ce(e),r=!n&&nt(e),i=!n&&!r&&ut(e),o=!n&&!r&&!i&&ft(e),u=n||r||i||o,s=u?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=s.length;for(var c in e)!t&&!mt.call(e,c)||u&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Me(c,a))||s.push(c);return s}function Et(e,t){return function(n){return e(t(n))}}var At=Et(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function yt(e){return Ze(e)?vt(e):function(e){if(!Ke(e))return At(e);var t=[];for(var n in Object(e))bt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var gt=Object.prototype.hasOwnProperty;function Ct(e){if(!pe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ke(e),n=[];for(var r in e)("constructor"!=r||!t&>.call(e,r))&&n.push(r);return n}function wt(e){return Ze(e)?vt(e,!0):Ct(e)}var Ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/;function Bt(e,t){if(ce(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!se(e))||(Dt.test(e)||!Ft.test(e)||null!=t&&e in Object(t))}var It=Re(Object,"create");var Rt=Object.prototype.hasOwnProperty;var jt=Object.prototype.hasOwnProperty;function St(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _t(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}St.prototype.clear=function(){this.__data__=It?It(null):{},this.size=0},St.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},St.prototype.get=function(e){var t=this.__data__;if(It){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Rt.call(t,e)?t[e]:void 0},St.prototype.has=function(e){var t=this.__data__;return It?void 0!==t[e]:jt.call(t,e)},St.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=It&&void 0===t?"__lodash_hash_undefined__":t,this};var Ut=Array.prototype.splice;function Pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pt.prototype.clear=function(){this.__data__=[],this.size=0},Pt.prototype.delete=function(e){var t=this.__data__,n=_t(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ut.call(t,n,1),--this.size,!0)},Pt.prototype.get=function(e){var t=this.__data__,n=_t(t,e);return n<0?void 0:t[n][1]},Pt.prototype.has=function(e){return _t(this.__data__,e)>-1},Pt.prototype.set=function(e,t){var n=this.__data__,r=_t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Ot=Re(K,"Map");function kt(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function xt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||Pt),string:new St}},xt.prototype.delete=function(e){var t=kt(this,e).delete(e);return this.size-=t?1:0,t},xt.prototype.get=function(e){return kt(this,e).get(e)},xt.prototype.has=function(e){return kt(this,e).has(e)},xt.prototype.set=function(e,t){var n=kt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Tt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=e.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(Tt.Cache||xt),n}Tt.Cache=xt;var Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/\\(\\)?/g,qt=function(e){var t=Tt(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Lt,(function(e,n,r,i){t.push(r?i.replace(Nt,"$1"):n||e)})),t})),Mt=qt;function Gt(e){return null==e?"":he(e)}function zt(e,t){return ce(e)?e:Bt(e,t)?[e]:Mt(Gt(e))}function $t(e){if("string"==typeof e||se(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wt(e,t){for(var n=0,r=(t=zt(t,e)).length;null!=e&&n<r;)e=e[$t(t[n++])];return n&&n==r?e:void 0}function Jt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Vt=X?X.isConcatSpreadable:void 0;function Ht(e){return ce(e)||nt(e)||!!(Vt&&e&&e[Vt])}function Zt(e,t,n,r,i){var o=-1,u=e.length;for(n||(n=Ht),i||(i=[]);++o<u;){var s=e[o];t>0&&n(s)?t>1?Zt(s,t-1,n,r,i):Jt(i,s):r||(i[i.length]=s)}return i}var Yt=Et(Object.getPrototypeOf,Object),Kt=Function.prototype,Xt=Object.prototype,Qt=Kt.toString,en=Xt.hasOwnProperty,tn=Qt.call(Object);function nn(e){var t=this.__data__=new Pt(e);this.size=t.size}nn.prototype.clear=function(){this.__data__=new Pt,this.size=0},nn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},nn.prototype.get=function(e){return this.__data__.get(e)},nn.prototype.has=function(e){return this.__data__.has(e)},nn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Pt){var r=n.__data__;if(!Ot||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xt(r)}return n.set(e,t),this.size=n.size,this};var rn="object"==typeof exports&&exports&&!exports.nodeType&&exports,on=rn&&"object"==typeof module&&module&&!module.nodeType&&module,un=on&&on.exports===rn?K.Buffer:void 0,sn=un?un.allocUnsafe:void 0;var an=Object.prototype.propertyIsEnumerable,cn=Object.getOwnPropertySymbols,dn=cn?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o}(cn(e),(function(t){return an.call(e,t)})))}:function(){return[]};function ln(e){return function(e,t,n){var r=t(e);return ce(e)?r:Jt(r,n(e))}(e,yt,dn)}var hn=Re(K,"DataView"),pn=Re(K,"Promise"),fn=Re(K,"Set"),mn="[object Map]",vn="[object Promise]",En="[object Set]",An="[object WeakMap]",bn="[object DataView]",yn=ye(hn),gn=ye(Ot),Cn=ye(pn),wn=ye(fn),Fn=ye(je),Dn=oe;(hn&&Dn(new hn(new ArrayBuffer(1)))!=bn||Ot&&Dn(new Ot)!=mn||pn&&Dn(pn.resolve())!=vn||fn&&Dn(new fn)!=En||je&&Dn(new je)!=An)&&(Dn=function(e){var t=oe(e),n="[object Object]"==t?e.constructor:void 0,r=n?ye(n):"";if(r)switch(r){case yn:return bn;case gn:return mn;case Cn:return vn;case wn:return En;case Fn:return An}return t});var Bn=Dn,In=K.Uint8Array;function Rn(e,t){var n,r,i=t?(n=e.buffer,r=new n.constructor(n.byteLength),new In(r).set(new In(n)),r):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function jn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new xt;++t<n;)this.add(e[t])}function Sn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}jn.prototype.add=jn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jn.prototype.has=function(e){return this.__data__.has(e)};function _n(e,t,n,r,i,o){var u=1&n,s=e.length,a=t.length;if(s!=a&&!(u&&a>s))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var l=-1,h=!0,p=2&n?new jn:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var f=e[l],m=t[l];if(r)var v=u?r(m,f,l,t,e,o):r(f,m,l,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!Sn(t,(function(e,t){if(u=t,!p.has(u)&&(f===e||i(f,e,n,r,o)))return p.push(t);var u}))){h=!1;break}}else if(f!==m&&!i(f,m,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var On=X?X.prototype:void 0,kn=On?On.valueOf:void 0;var xn=Object.prototype.hasOwnProperty;var Tn="[object Arguments]",Ln="[object Array]",Nn="[object Object]",qn=Object.prototype.hasOwnProperty;function Mn(e,t,n,r,i,o){var u=ce(e),s=ce(t),a=u?Ln:Bn(e),c=s?Ln:Bn(t),d=(a=a==Tn?Nn:a)==Nn,l=(c=c==Tn?Nn:c)==Nn,h=a==c;if(h&&ut(e)){if(!ut(t))return!1;u=!0,d=!1}if(h&&!d)return o||(o=new nn),u||ft(e)?_n(e,t,n,r,i,o):function(e,t,n,r,i,o,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new In(e),new In(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ze(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Un;case"[object Set]":var a=1&r;if(s||(s=Pn),e.size!=t.size&&!a)return!1;var c=u.get(e);if(c)return c==t;r|=2,u.set(e,t);var d=_n(s(e),s(t),r,i,o,u);return u.delete(e),d;case"[object Symbol]":if(kn)return kn.call(e)==kn.call(t)}return!1}(e,t,a,n,r,i,o);if(!(1&n)){var p=d&&qn.call(e,"__wrapped__"),f=l&&qn.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return o||(o=new nn),i(m,v,n,r,o)}}return!!h&&(o||(o=new nn),function(e,t,n,r,i,o){var u=1&n,s=ln(e),a=s.length;if(a!=ln(t).length&&!u)return!1;for(var c=a;c--;){var d=s[c];if(!(u?d in t:xn.call(t,d)))return!1}var l=o.get(e),h=o.get(t);if(l&&h)return l==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=u;++c<a;){var m=e[d=s[c]],v=t[d];if(r)var E=u?r(v,m,d,t,e,o):r(m,v,d,e,t,o);if(!(void 0===E?m===v||i(m,v,n,r,o):E)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var A=e.constructor,b=t.constructor;A==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))}function Gn(e,t,n,r,i){return e===t||(null==e||null==t||!ue(e)&&!ue(t)?e!=e&&t!=t:Mn(e,t,n,r,Gn,i))}function zn(e){return e==e&&!pe(e)}function $n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Wn(e){var t=function(e){for(var t=yt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,zn(i)]}return t}(e);return 1==t.length&&t[0][2]?$n(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,u=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var a=(s=n[i])[0],c=e[a],d=s[1];if(u&&s[2]){if(void 0===c&&!(a in e))return!1}else{var l=new nn;if(r)var h=r(c,d,a,e,t,l);if(!(void 0===h?Gn(d,c,3,r,l):h))return!1}}return!0}(n,e,t)}}function Jn(e,t){return null!=e&&t in Object(e)}function Vn(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=zt(t,e)).length,o=!1;++r<i;){var u=$t(t[r]);if(!(o=null!=e&&n(e,u)))break;e=e[u]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&He(i)&&Me(u,i)&&(ce(e)||nt(e))}(e,t,Jn)}function Hn(e,t){return Bt(e)&&zn(t)?$n($t(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Wt(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Vn(n,e):Gn(t,r,3)}}function Zn(e){return Bt(e)?(t=$t(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Wt(t,e)}}(e);var t}function Yn(e){return"function"==typeof e?e:null==e?fe:"object"==typeof e?ce(e)?Hn(e[0],e[1]):Wn(e):Zn(e)}var Kn,Xn=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),u=o.length;u--;){var s=o[Kn?u:++r];if(!1===t(i[s],s,i))break}return e};var Qn=function(e,t){return function(n,r){if(null==n)return n;if(!Ze(n))return e(n,r);for(var i=n.length,o=t?i:-1,u=Object(n);(t?o--:++o<i)&&!1!==r(u[o],o,u););return n}}((function(e,t){return e&&Xn(e,t,yt)})),er=Qn;function tr(e,t,n){(void 0!==n&&!ze(e[t],n)||void 0===n&&!(t in e))&&Ge(e,t,n)}function nr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function rr(e){return function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,u=t.length;++o<u;){var s=t[o],a=r?r(n[s],e[s],s,n,e):void 0;void 0===a&&(a=e[s]),i?Ge(n,s,a):We(n,s,a)}return n}(e,wt(e))}function ir(e,t,n,r,i,o,u){var s=nr(e,n),a=nr(t,n),c=u.get(a);if(c)tr(e,n,c);else{var d,l=o?o(s,a,n+"",e,t,u):void 0,h=void 0===l;if(h){var p=ce(a),f=!p&&ut(a),m=!p&&!f&&ft(a);l=a,p||f||m?ce(s)?l=s:ue(d=s)&&Ze(d)?l=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):f?(h=!1,l=function(e,t){if(t)return e.slice();var n=e.length,r=sn?sn(n):new e.constructor(n);return e.copy(r),r}(a,!0)):m?(h=!1,l=Rn(a,!0)):l=[]:function(e){if(!ue(e)||"[object Object]"!=oe(e))return!1;var t=Yt(e);if(null===t)return!0;var n=en.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Qt.call(n)==tn}(a)||nt(a)?(l=s,nt(s)?l=rr(s):pe(s)&&!me(s)||(l=function(e){return"function"!=typeof e.constructor||Ke(e)?{}:_e(Yt(e))}(a))):h=!1}h&&(u.set(a,l),i(l,a,r,o,u),u.delete(a)),tr(e,n,l)}}function or(e,t,n,r,i){e!==t&&Xn(t,(function(o,u){if(i||(i=new nn),pe(o))ir(e,t,u,n,or,r,i);else{var s=r?r(nr(e,u),o,u+"",e,t,i):void 0;void 0===s&&(s=o),tr(e,u,s)}}),wt)}var ur=/[\\^$.*+?()[\]{}|]/g,sr=RegExp(ur.source);function ar(e,t){var n=-1,r=Ze(e)?Array(e.length):[];return er(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function cr(e,t){return Zt(function(e,t){return(ce(e)?ae:ar)(e,Yn(t))}(e,t),1)}var dr=1/0;function lr(e,t){return e>t}function hr(e){return"string"==typeof e||!ce(e)&&ue(e)&&"[object String]"==oe(e)}function pr(e,t){return e&&e.length?function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=t(o);if(null!=u&&(void 0===s?u==u&&!se(u):n(u,s)))var s=u,a=o}return a}(e,Yn(t),lr):void 0}var fr,mr=(fr=function(e,t,n){or(e,t,n)},Ve((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=fr.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!pe(n))return!1;var r=typeof t;return!!("number"==r?Ze(n)&&Me(t,n.length):"string"==r&&t in n)&&ze(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var u=t[n];u&&fr(e,u,n,i)}return e})));function vr(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Er(e,t){return e(t={exports:{}},t.exports),t.exports}var Ar=Er((function(e,t){function n(e,t,n){return n.globals&&(e=n.globals[e.name]),new e(`${n.context?n.context:"Value"} ${t}.`)}function r(e,t){if("bigint"==typeof e)throw n(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function i(e){return s(e>0&&e%1==.5&&!(1&e)||e<0&&e%1==-.5&&!(1&~e)?Math.floor(e):Math.round(e))}function o(e){return s(Math.trunc(e))}function u(e){return e<0?-1:1}function s(e){return 0===e?0:e}function a(e,{unsigned:t}){let a,c;t?(a=0,c=2**e-1):(a=-(2**(e-1)),c=2**(e-1)-1);const d=2**e,l=2**(e-1);return(e,h={})=>{let p=r(e,h);if(p=s(p),h.enforceRange){if(!Number.isFinite(p))throw n(TypeError,"is not a finite number",h);if(p=o(p),p<a||p>c)throw n(TypeError,`is outside the accepted range of ${a} to ${c}, inclusive`,h);return p}return!Number.isNaN(p)&&h.clamp?(p=Math.min(Math.max(p,a),c),p=i(p),p):Number.isFinite(p)&&0!==p?(p=o(p),p>=a&&p<=c?p:(p=function(e,t){const n=e%t;return u(t)!==u(n)?n+t:n}(p,d),!t&&p>=l?p-d:p)):0}}function c(e,{unsigned:t}){const u=Number.MAX_SAFE_INTEGER,a=t?0:Number.MIN_SAFE_INTEGER,c=t?BigInt.asUintN:BigInt.asIntN;return(t,d={})=>{let l=r(t,d);if(l=s(l),d.enforceRange){if(!Number.isFinite(l))throw n(TypeError,"is not a finite number",d);if(l=o(l),l<a||l>u)throw n(TypeError,`is outside the accepted range of ${a} to ${u}, inclusive`,d);return l}if(!Number.isNaN(l)&&d.clamp)return l=Math.min(Math.max(l,a),u),l=i(l),l;if(!Number.isFinite(l)||0===l)return 0;let h=BigInt(o(l));return h=c(e,h),Number(h)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=a(8,{unsigned:!1}),t.octet=a(8,{unsigned:!0}),t.short=a(16,{unsigned:!1}),t["unsigned short"]=a(16,{unsigned:!0}),t.long=a(32,{unsigned:!1}),t["unsigned long"]=a(32,{unsigned:!0}),t["long long"]=c(64,{unsigned:!1}),t["unsigned long long"]=c(64,{unsigned:!0}),t.double=(e,t={})=>{const i=r(e,t);if(!Number.isFinite(i))throw n(TypeError,"is not a finite floating-point value",t);return i},t["unrestricted double"]=(e,t={})=>r(e,t),t.float=(e,t={})=>{const i=r(e,t);if(!Number.isFinite(i))throw n(TypeError,"is not a finite floating-point value",t);if(Object.is(i,-0))return i;const o=Math.fround(i);if(!Number.isFinite(o))throw n(TypeError,"is outside the range of a single-precision floating-point value",t);return o},t["unrestricted float"]=(e,t={})=>{const n=r(e,t);return isNaN(n)||Object.is(n,-0)?n:Math.fround(n)},t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"==typeof e)throw n(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=(e,r={})=>{const i=t.DOMString(e,r);let o;for(let e=0;void 0!==(o=i.codePointAt(e));++e)if(o>255)throw n(TypeError,"is not a valid ByteString",r);return i},t.USVString=(e,n={})=>{const r=t.DOMString(e,n),i=r.length,o=[];for(let e=0;e<i;++e){const t=r.charCodeAt(e);if(t<55296||t>57343)o.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)o.push(String.fromCodePoint(65533));else if(e===i-1)o.push(String.fromCodePoint(65533));else{const n=r.charCodeAt(e+1);if(56320<=n&&n<=57343){const r=1023&t,i=1023&n;o.push(String.fromCodePoint(65536+1024*r+i)),++e}else o.push(String.fromCodePoint(65533))}}return o.join("")},t.object=(e,t={})=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)throw n(TypeError,"is not an object",t);return e};const d=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,l="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(e){try{return d.call(e),!0}catch{return!1}}function p(e){try{return l.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=(e,t={})=>{if(!h(e)){if(t.allowShared&&!p(e))throw n(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw n(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{m.call(e)}catch(e){throw n(TypeError,"is not a DataView",t)}if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is backed by a detached ArrayBuffer",t);return e};const v=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:r}=e,i=/^[AEIOU]/u.test(r)?"an":"a";t[r]=(e,t={})=>{if(!ArrayBuffer.isView(e)||v.call(e)!==r)throw n(TypeError,`is not ${i} ${r} object`,t);if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}})),t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e))throw n(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&p(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!h(e))throw n(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!p(e)&&!h(e))throw n(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]}));Ar.any,Ar.undefined,Ar.octet,Ar.DOMString,Ar.ByteString,Ar.USVString,Ar.object,Ar.ArrayBuffer,Ar.DataView,Ar.ArrayBufferView,Ar.BufferSource,Ar.DOMTimeStamp;var br=Er((function(e,t){const n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);const r=Symbol("wrapper"),i=Symbol("impl"),o=Symbol("SameObject caches"),u=Symbol.for("[webidl2js] constructor registry"),s=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function a(e){if(n(e,u))return e[u];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=s}return e[u]=t,t}function c(e){return e?e[r]:null}function d(e){return e?e[i]:null}const l=Symbol("internal");const h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;const p=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),v=Symbol("supported property names"),E=Symbol("indexed property get"),A=Symbol("indexed property set new"),b=Symbol("indexed property set existing"),y=Symbol("named property get"),g=Symbol("named property set new"),C=Symbol("named property set existing"),w=Symbol("named property delete"),F=Symbol("async iterator get the next iteration result"),D=Symbol("async iterator return steps"),B=Symbol("async iterator initialization steps"),I=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:n,define:function(e,t){for(const n of Reflect.ownKeys(t)){const r=Reflect.getOwnPropertyDescriptor(t,n);if(r&&!Reflect.defineProperty(e,n,r))throw new TypeError(`Cannot redefine property: ${String(n)}`)}},newObjectInRealm:function(e,t){const n=a(e);return Object.defineProperties(Object.create(n["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:r,implSymbol:i,getSameObject:function(e,t,n){return e[o]||(e[o]=Object.create(null)),t in e[o]||(e[o][t]=n()),e[o][t]},ctorRegistrySymbol:u,initCtorRegistry:a,wrapperForImpl:c,implForWrapper:d,tryWrapperForImpl:function(e){const t=c(e);return t||e},tryImplForWrapper:function(e){const t=d(e);return t||e},iterInternalSymbol:l,isArrayBuffer:function(e){try{return h.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e===`${t}`},supportsPropertyIndex:p,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:v,indexedGet:E,indexedSetNew:A,indexedSetExisting:b,namedGet:y,namedSetNew:g,namedSetExisting:C,namedDelete:w,asyncIteratorNext:F,asyncIteratorReturn:D,asyncIteratorInit:B,asyncIteratorEOI:I,iteratorResult:function([e,t],n){let r;switch(n){case"key":r=e;break;case"value":r=t;break;case"key+value":r=[e,t]}return{value:r,done:!1}}}}));const yr=2147483647,gr=36,Cr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wr=Math.floor,Fr=String.fromCharCode;function Dr(e){throw new RangeError(Cr[e])}function Br(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const Ir=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Rr=function(e,t,n){let r=0;for(e=n?wr(e/700):e>>1,e+=wr(e/t);e>455;r+=gr)e=wr(e/35);return wr(r+36*e/(e+38))},jr=function(e){const t=[],n=e.length;let r=0,i=128,o=72,u=e.lastIndexOf("-");u<0&&(u=0);for(let n=0;n<u;++n)e.charCodeAt(n)>=128&&Dr("not-basic"),t.push(e.charCodeAt(n));for(let a=u>0?u+1:0;a<n;){const u=r;for(let t=1,i=gr;;i+=gr){a>=n&&Dr("invalid-input");const u=(s=e.charCodeAt(a++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:gr;u>=gr&&Dr("invalid-input"),u>wr((yr-r)/t)&&Dr("overflow"),r+=u*t;const c=i<=o?1:i>=o+26?26:i-o;if(u<c)break;const d=gr-c;t>wr(yr/d)&&Dr("overflow"),t*=d}const c=t.length+1;o=Rr(r-u,c,0==u),wr(r/c)>yr-i&&Dr("overflow"),i+=wr(r/c),r%=c,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},Sr=function(e){const t=[],n=(e=Br(e)).length;let r=128,i=0,o=72;for(const n of e)n<128&&t.push(Fr(n));const u=t.length;let s=u;for(u&&t.push("-");s<n;){let n=yr;for(const t of e)t>=r&&t<n&&(n=t);const a=s+1;n-r>wr((yr-i)/a)&&Dr("overflow"),i+=(n-r)*a,r=n;for(const n of e)if(n<r&&++i>yr&&Dr("overflow"),n===r){let e=i;for(let n=gr;;n+=gr){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,u=gr-r;t.push(Fr(Ir(r+i%u,0))),e=wr(i/u)}t.push(Fr(Ir(e,0))),o=Rr(i,a,s===u),i=0,++s}++i,++r}return t.join("")},_r=jr,Ur=Sr;var Pr,Or={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1715\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA82C\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{113CE}-\u{113D0}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}\u{11F41}\u{11F42}\u{1612F}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u0886\u0889-\u088D\u08A0-\u08A9\u08AF\u08B0\u08B3-\u08B8\u08BA-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10EC3}\u{10EC4}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}\u{10FB3}\u{10FB8}\u{10FBB}\u{10FBC}\u{10FBE}\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}\u{10FCB}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0858\u0860\u0862-\u0865\u0867-\u086A\u0870-\u0882\u0886\u0889-\u088E\u08A0-\u08AC\u08AE-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10EC2}-\u{10EC4}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}\u{10FCA}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCEF}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0897-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2429\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E5\u31EF\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CC00}-\u{1CCD5}\u{1CCF0}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B4E-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2429\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E5\u31EF-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6E}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D5}\u{113D7}\u{113D8}\u{113E1}\u{113E2}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F5A}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CC00}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCF9}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u},kr={STATUS_MAPPING:{mapped:1,valid:2,disallowed:3,deviation:6,ignored:7}},xr=(Pr=Object.freeze({__proto__:null}))&&Pr.default||Pr;const{STATUS_MAPPING:Tr}=kr;function Lr(e){return/[^\x00-\x7F]/u.test(e)}function Nr(e){let t=0,n=xr.length-1;for(;t<=n;){const r=Math.floor((t+n)/2),i=xr[r],o=Array.isArray(i[0])?i[0][0]:i[0],u=Array.isArray(i[0])?i[0][1]:i[0];if(o<=e&&u>=e)return i.slice(1);o>e?n=r-1:t=r+1}return null}function qr(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,transitionalProcessing:i,useSTD3ASCIIRules:o,isBidi:u}){if(0===e.length)return!0;if(e.normalize("NFC")!==e)return!1;const s=Array.from(e);if(t&&("-"===s[2]&&"-"===s[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(!t&&e.startsWith("xn--"))return!1;if(e.includes("."))return!1;if(Or.combiningMarks.test(s[0]))return!1;for(const e of s){const t=e.codePointAt(0),[n]=Nr(t);if(i){if(n!==Tr.valid)return!1}else if(n!==Tr.valid&&n!==Tr.deviation)return!1;if(o&&t<=127&&!/^(?:[a-z]|[0-9]|-)$/u.test(e))return!1}if(r){let e=0;for(const[t,n]of s.entries())if(""===n||""===n){if(t>0){if(Or.combiningClassVirama.test(s[t-1]))continue;if(""===n){const n=s.indexOf("",t+1),r=n<0?s.slice(e):s.slice(e,n);if(Or.validZWNJ.test(r.join(""))){e=t+1;continue}}}return!1}}if(n&&u){let t;if(Or.bidiS1LTR.test(s[0]))t=!1;else{if(!Or.bidiS1RTL.test(s[0]))return!1;t=!0}if(t){if(!Or.bidiS2.test(e)||!Or.bidiS3.test(e)||Or.bidiS4EN.test(e)&&Or.bidiS4AN.test(e))return!1}else if(!Or.bidiS5.test(e)||!Or.bidiS6.test(e))return!1}return!0}function Mr(e,t){let n=function(e,{transitionalProcessing:t}){let n="";for(const r of e){const[e,i]=Nr(r.codePointAt(0));switch(e){case Tr.disallowed:n+=r;break;case Tr.ignored:break;case Tr.mapped:n+=t&&"ẞ"===r?"ss":i;break;case Tr.deviation:n+=t?i:r;break;case Tr.valid:n+=r}}return n}(e,t);n=n.normalize("NFC");const r=n.split("."),i=function(e){const t=e.map((e=>{if(e.startsWith("xn--"))try{return _r(e.substring(4))}catch{return""}return e})).join(".");return Or.bidiDomain.test(t)}(r);let o=!1;for(const[e,n]of r.entries()){let u=n,s=t.transitionalProcessing;if(u.startsWith("xn--")){if(Lr(u)){o=!0;continue}try{u=_r(u.substring(4))}catch{if(!t.ignoreInvalidPunycode){o=!0;continue}}r[e]=u,""!==u&&Lr(u)||(o=!0),s=!1}if(o)continue;qr(u,{...t,transitionalProcessing:s,isBidi:i})||(o=!0)}return{string:r.join("."),error:o}}var Gr={toASCII:function(e,{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:i=!1,verifyDNSLength:o=!1,transitionalProcessing:u=!1,ignoreInvalidPunycode:s=!1}={}){const a=Mr(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:i,transitionalProcessing:u,ignoreInvalidPunycode:s});let c=a.string.split(".");if(c=c.map((e=>{if(Lr(e))try{return`xn--${Ur(e)}`}catch{a.error=!0}return e})),o){const e=c.join(".").length;(e>253||0===e)&&(a.error=!0);for(let e=0;e<c.length;++e)if(c[e].length>63||0===c[e].length){a.error=!0;break}}return a.error?null:c.join(".")},toUnicode:function(e,{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:i=!1,transitionalProcessing:o=!1,ignoreInvalidPunycode:u=!1}={}){const s=Mr(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:i,transitionalProcessing:o,ignoreInvalidPunycode:u});return{domain:s.string,error:s.error}}};function zr(e){return e>=48&&e<=57}function $r(e){return e>=65&&e<=90||e>=97&&e<=122}var Wr={isASCIIDigit:zr,isASCIIAlpha:$r,isASCIIAlphanumeric:function(e){return $r(e)||zr(e)},isASCIIHex:function(e){return zr(e)||e>=65&&e<=70||e>=97&&e<=102}};const Jr=new TextEncoder,Vr=new TextDecoder("utf-8",{ignoreBOM:!0});var Hr={utf8Encode:function(e){return Jr.encode(e)},utf8DecodeWithoutBOM:function(e){return Vr.decode(e)}};const{isASCIIHex:Zr}=Wr,{utf8Encode:Yr}=Hr;function Kr(e){return e.codePointAt(0)}function Xr(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),`%${t}`}function Qr(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;++r){const i=e[r];if(37!==i)t[n++]=i;else if(37!==i||Zr(e[r+1])&&Zr(e[r+2])){const i=parseInt(String.fromCodePoint(e[r+1],e[r+2]),16);t[n++]=i,r+=2}else t[n++]=i}return t.slice(0,n)}function ei(e){return e<=31||e>126}const ti=new Set([Kr(" "),Kr('"'),Kr("<"),Kr(">"),Kr("`")]);const ni=new Set([Kr(" "),Kr('"'),Kr("#"),Kr("<"),Kr(">")]);function ri(e){return ei(e)||ni.has(e)}const ii=new Set([Kr("?"),Kr("`"),Kr("{"),Kr("}"),Kr("^")]);function oi(e){return ri(e)||ii.has(e)}const ui=new Set([Kr("/"),Kr(":"),Kr(";"),Kr("="),Kr("@"),Kr("["),Kr("\\"),Kr("]"),Kr("|")]);function si(e){return oi(e)||ui.has(e)}const ai=new Set([Kr("$"),Kr("%"),Kr("&"),Kr("+"),Kr(",")]);const ci=new Set([Kr("!"),Kr("'"),Kr("("),Kr(")"),Kr("~")]);function di(e,t){const n=Yr(e);let r="";for(const e of n)t(e)?r+=Xr(e):r+=String.fromCharCode(e);return r}var li={isC0ControlPercentEncode:ei,isFragmentPercentEncode:function(e){return ei(e)||ti.has(e)},isQueryPercentEncode:ri,isSpecialQueryPercentEncode:function(e){return ri(e)||e===Kr("'")},isPathPercentEncode:oi,isUserinfoPercentEncode:si,isURLEncodedPercentEncode:function(e){return function(e){return si(e)||ai.has(e)}(e)||ci.has(e)},percentDecodeString:function(e){return Qr(Yr(e))},percentDecodeBytes:Qr,utf8PercentEncodeString:function(e,t,n=!1){let r="";for(const i of e)r+=n&&" "===i?"+":di(i,t);return r},utf8PercentEncodeCodePoint:function(e,t){return di(String.fromCodePoint(e),t)}},hi=Er((function(e){const{utf8DecodeWithoutBOM:t}=Hr,{percentDecodeString:n,utf8PercentEncodeCodePoint:r,utf8PercentEncodeString:i,isC0ControlPercentEncode:o,isFragmentPercentEncode:u,isQueryPercentEncode:s,isSpecialQueryPercentEncode:a,isPathPercentEncode:c,isUserinfoPercentEncode:d}=li;function l(e){return e.codePointAt(0)}const h={ftp:21,file:null,http:80,https:443,ws:80,wss:443},p=Symbol("failure");function f(e){return[...e].length}function m(e,t){const n=e[t];return isNaN(n)?void 0:String.fromCodePoint(n)}function v(e){return"."===e||"%2e"===e.toLowerCase()}function E(e){return 2===e.length&&Wr.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function A(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)}function b(e){return void 0!==h[e]}function y(e){return b(e.scheme)}function g(e){return!b(e.scheme)}function C(e){return h[e]}function w(e){if(""===e)return p;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let n=/[^0-7]/u;return 10===t&&(n=/[^0-9]/u),16===t&&(n=/[^0-9A-Fa-f]/u),n.test(e)?p:parseInt(e,t)}function F(e,r=!1){if("["===e[0])return"]"!==e[e.length-1]?p:function(e){const t=[0,0,0,0,0,0,0,0];let n=0,r=null,i=0;if((e=Array.from(e,(e=>e.codePointAt(0))))[i]===l(":")){if(e[i+1]!==l(":"))return p;i+=2,++n,r=n}for(;i<e.length;){if(8===n)return p;if(e[i]===l(":")){if(null!==r)return p;++i,++n,r=n;continue}let o=0,u=0;for(;u<4&&Wr.isASCIIHex(e[i]);)o=16*o+parseInt(m(e,i),16),++i,++u;if(e[i]===l(".")){if(0===u)return p;if(i-=u,n>6)return p;let r=0;for(;void 0!==e[i];){let o=null;if(r>0){if(!(e[i]===l(".")&&r<4))return p;++i}if(!Wr.isASCIIDigit(e[i]))return p;for(;Wr.isASCIIDigit(e[i]);){const t=parseInt(m(e,i));if(null===o)o=t;else{if(0===o)return p;o=10*o+t}if(o>255)return p;++i}t[n]=256*t[n]+o,++r,2!==r&&4!==r||++n}if(4!==r)return p;break}if(e[i]===l(":")){if(++i,void 0===e[i])return p}else if(void 0!==e[i])return p;t[n]=o,++n}if(null!==r){let e=n-r;for(n=7;0!==n&&e>0;){const i=t[r+e-1];t[r+e-1]=t[n],t[n]=i,--n,--e}}else if(null===r&&8!==n)return p;return t}(e.substring(1,e.length-1));if(r)return function(e){if(A(e))return p;return i(e,o)}(e);const u=function(e,t=!1){const n=Gr.toASCII(e,{checkHyphens:t,checkBidi:!0,checkJoiners:!0,useSTD3ASCIIRules:t,transitionalProcessing:!1,verifyDNSLength:t,ignoreInvalidPunycode:!1});if(null===n)return p;if(!t){if(""===n)return p;if(A(r=n)||-1!==r.search(/[\u0000-\u001F]|%|\u007F/u))return p}var r;return n}(t(n(e)));return u===p?p:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const n=t[t.length-1];if(w(n)!==p)return!0;if(/^[0-9]+$/u.test(n))return!0;return!1}(u)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return p;const n=[];for(const e of t){const t=w(e);if(t===p)return p;n.push(t)}for(let e=0;e<n.length-1;++e)if(n[e]>255)return p;if(n[n.length-1]>=256**(5-n.length))return p;let r=n.pop(),i=0;for(const e of n)r+=e*256**(3-i),++i;return r}(u):u}function D(e){return"number"==typeof e?function(e){let t="",n=e;for(let e=1;e<=4;++e)t=String(n%256)+t,4!==e&&(t=`.${t}`),n=Math.floor(n/256);return t}(e):e instanceof Array?`[${function(e){let t="";const n=function(e){let t=null,n=1,r=null,i=0;for(let o=0;o<e.length;++o)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t}(e);let r=!1;for(let i=0;i<=7;++i)r&&0===e[i]||(r&&(r=!1),n!==i?(t+=e[i].toString(16),7!==i&&(t+=":")):(t+=0===i?"::":":",r=!0));return t}(e)}]`:e}function B(e){const{path:t}=e;var n;0!==t.length&&("file"===e.scheme&&1===t.length&&(n=t[0],/^[A-Za-z]:$/u.test(n))||t.pop())}function I(e){return""!==e.username||""!==e.password}function R(e){return"string"==typeof e.path}function j(e,t,n,r,i){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=n||"utf-8",this.stateOverride=i,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){let t=0,n=e.length;for(;t<n&&!(e.charCodeAt(t)>32);++t);for(;n>t&&!(e.charCodeAt(n-1)>32);--n);return e.substring(t,n)}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const o=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(e=>e.codePointAt(0)));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),n=this[`parse ${this.state}`](e,t);if(!n)break;if(n===p){this.failure=!0;break}}}j.prototype["parse scheme start"]=function(e,t){if(Wr.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,p;this.state="no scheme",--this.pointer}return!0},j.prototype["parse scheme"]=function(e,t){if(Wr.isASCIIAlphanumeric(e)||e===l("+")||e===l("-")||e===l("."))this.buffer+=t.toLowerCase();else if(e===l(":")){if(this.stateOverride){if(y(this.url)&&!b(this.buffer))return!1;if(!y(this.url)&&b(this.buffer))return!1;if((I(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===C(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===l("/")&&this.input[this.pointer+2]===l("/")||(this.parseError=!0),this.state="file"):y(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":y(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===l("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,p;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},j.prototype["parse no scheme"]=function(e){return null===this.base||R(this.base)&&e!==l("#")?p:(R(this.base)&&e===l("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},j.prototype["parse special relative or authority"]=function(e){return e===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},j.prototype["parse path or authority"]=function(e){return e===l("/")?this.state="authority":(this.state="path",--this.pointer),!0},j.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===l("/")?this.state="relative slash":y(this.url)&&e===l("\\")?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===l("?")?(this.url.query="",this.state="query"):e===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},j.prototype["parse relative slash"]=function(e){return!y(this.url)||e!==l("/")&&e!==l("\\")?e===l("/")?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(e===l("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},j.prototype["parse special authority slashes"]=function(e){return e===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},j.prototype["parse special authority ignore slashes"]=function(e){return e!==l("/")&&e!==l("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},j.prototype["parse authority"]=function(e,t){if(e===l("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const e=f(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===l(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const n=r(e,d);this.passwordTokenSeenFlag?this.url.password+=n:this.url.username+=n}this.buffer=""}else if(isNaN(e)||e===l("/")||e===l("?")||e===l("#")||y(this.url)&&e===l("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,p;this.pointer-=f(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},j.prototype["parse hostname"]=j.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==l(":")||this.arrFlag)if(isNaN(e)||e===l("/")||e===l("?")||e===l("#")||y(this.url)&&e===l("\\")){if(--this.pointer,y(this.url)&&""===this.buffer)return this.parseError=!0,p;if(this.stateOverride&&""===this.buffer&&(I(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=F(this.buffer,g(this.url));if(e===p)return p;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===l("[")?this.arrFlag=!0:e===l("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,p;if("hostname"===this.stateOverride)return!1;const e=F(this.buffer,g(this.url));if(e===p)return p;this.url.host=e,this.buffer="",this.state="port"}return!0},j.prototype["parse port"]=function(e,t){if(Wr.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===l("/")||e===l("?")||e===l("#")||y(this.url)&&e===l("\\")||this.stateOverride))return this.parseError=!0,p;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,p;this.url.port=e===C(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const S=new Set([l("/"),l("\\"),l("?"),l("#")]);function _(e,t){const n=e.length-t;return n>=2&&(r=e[t],i=e[t+1],Wr.isASCIIAlpha(r)&&(i===l(":")||i===l("|")))&&(2===n||S.has(e[t+2]));var r,i}function U(e){if(R(e))return e.path;let t="";for(const n of e.path)t+=`/${n}`;return t}j.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===l("/")||e===l("\\")?(e===l("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===l("?")?(this.url.query="",this.state="query"):e===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,_(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):B(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},j.prototype["parse file slash"]=function(e){var t;return e===l("/")||e===l("\\")?(e===l("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!_(this.input,this.pointer)&&(2===(t=this.base.path[0]).length&&Wr.isASCIIAlpha(t.codePointAt(0))&&":"===t[1])&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},j.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===l("/")||e===l("\\")||e===l("?")||e===l("#"))if(--this.pointer,!this.stateOverride&&E(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=F(this.buffer,g(this.url));if(e===p)return p;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},j.prototype["parse path start"]=function(e){return y(this.url)?(e===l("\\")&&(this.parseError=!0),this.state="path",e!==l("/")&&e!==l("\\")&&--this.pointer):this.stateOverride||e!==l("?")?this.stateOverride||e!==l("#")?void 0!==e?(this.state="path",e!==l("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},j.prototype["parse path"]=function(e){return isNaN(e)||e===l("/")||y(this.url)&&e===l("\\")||!this.stateOverride&&(e===l("?")||e===l("#"))?(y(this.url)&&e===l("\\")&&(this.parseError=!0),!function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e}(this.buffer)?!v(this.buffer)||e===l("/")||y(this.url)&&e===l("\\")?v(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&E(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""):(B(this.url),e===l("/")||y(this.url)&&e===l("\\")||this.url.path.push("")),this.buffer="",e===l("?")&&(this.url.query="",this.state="query"),e===l("#")&&(this.url.fragment="",this.state="fragment")):(e!==l("%")||Wr.isASCIIHex(this.input[this.pointer+1])&&Wr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=r(e,c)),!0},j.prototype["parse opaque path"]=function(e){if(e===l("?"))this.url.query="",this.state="query";else if(e===l("#"))this.url.fragment="",this.state="fragment";else if(e===l(" ")){const e=this.input[this.pointer+1];e===l("?")||e===l("#")?this.url.path+="%20":this.url.path+=" "}else isNaN(e)||e===l("%")||(this.parseError=!0),e!==l("%")||Wr.isASCIIHex(this.input[this.pointer+1])&&Wr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=r(e,o));return!0},j.prototype["parse query"]=function(e,t){if(y(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===l("#")||isNaN(e)){const t=y(this.url)?a:s;this.url.query+=i(this.buffer,t),this.buffer="",e===l("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==l("%")||Wr.isASCIIHex(this.input[this.pointer+1])&&Wr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},j.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==l("%")||Wr.isASCIIHex(this.input[this.pointer+1])&&Wr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=r(e,u)),!0},e.exports.serializeURL=function(e,t){let n=`${e.scheme}:`;return null!==e.host&&(n+="//",""===e.username&&""===e.password||(n+=e.username,""!==e.password&&(n+=`:${e.password}`),n+="@"),n+=D(e.host),null!==e.port&&(n+=`:${e.port}`)),null===e.host&&!R(e)&&e.path.length>1&&""===e.path[0]&&(n+="/."),n+=U(e),null!==e.query&&(n+=`?${e.query}`),t||null===e.fragment||(n+=`#${e.fragment}`),n},e.exports.serializePath=U,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":{const n=e.exports.parseURL(U(t));return null===n||"http"!==n.scheme&&"https"!==n.scheme?"null":e.exports.serializeURLOrigin(n)}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t=`${e.scheme}://`;return t+=D(e.host),null!==e.port&&(t+=`:${e.port}`),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const n=new j(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return n.failure?null:n.url},e.exports.setTheUsername=function(e,t){e.username=i(t,d)},e.exports.setThePassword=function(e,t){e.password=i(t,d)},e.exports.serializeHost=D,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||"file"===e.scheme},e.exports.hasAnOpaquePath=R,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,n){return void 0===n&&(n={}),e.exports.basicURLParse(t,{baseURL:n.baseURL,encodingOverride:n.encodingOverride})}}));hi.serializeURL,hi.serializePath,hi.serializeURLOrigin,hi.basicURLParse,hi.setTheUsername,hi.setThePassword,hi.serializeHost,hi.cannotHaveAUsernamePasswordPort,hi.hasAnOpaquePath,hi.serializeInteger,hi.parseURL;const{utf8Encode:pi,utf8DecodeWithoutBOM:fi}=Hr,{percentDecodeBytes:mi,utf8PercentEncodeString:vi,isURLEncodedPercentEncode:Ei}=li;function Ai(e){return e.codePointAt(0)}function bi(e,t,n){let r=e.indexOf(t);for(;r>=0;)e[r]=n,r=e.indexOf(t,r+1);return e}var yi={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const n=[];let r=0,i=e.indexOf(t);for(;i>=0;)n.push(e.slice(r,i)),r=i+1,i=e.indexOf(t,r);return r!==e.length&&n.push(e.slice(r)),n}(e,Ai("&")),n=[];for(const e of t){if(0===e.length)continue;let t,r;const i=e.indexOf(Ai("="));i>=0?(t=e.slice(0,i),r=e.slice(i+1)):(t=e,r=new Uint8Array(0)),t=bi(t,43,32),r=bi(r,43,32);const o=fi(mi(t)),u=fi(mi(r));n.push([o,u])}return n}(pi(e))},serializeUrlencoded:function(e){let t="";for(const[n,r]of e.entries()){0!==n&&(t+="&"),t+=`${vi(r[0],Ei,!0)}=${vi(r[1],Ei,!0)}`}return t}},gi=(e,t,{context:n="The provided value"}={})=>{if("function"!=typeof t)throw new e.TypeError(n+" is not a function");function r(...r){const i=br.tryWrapperForImpl(this);let o;for(let e=0;e<r.length;e++)r[e]=br.tryWrapperForImpl(r[e]);return o=Reflect.apply(t,i,r),o=Ar.any(o,{context:n,globals:e}),o}return r.construct=(...r)=>{for(let e=0;e<r.length;e++)r[e]=br.tryWrapperForImpl(r[e]);let i=Reflect.construct(t,r);return i=Ar.any(i,{context:n,globals:e}),i},r[br.wrapperSymbol]=t,r.objectReference=t,r},Ci=class{constructor(e,t,{doNotStripQMark:n=!1}){let r=t[0];if(this._list=[],this._url=null,n||"string"!=typeof r||"?"!==r[0]||(r=r.slice(1)),Array.isArray(r))for(const e of r){if(2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([e[0],e[1]])}else if("object"==typeof r&&null===Object.getPrototypeOf(r))for(const e of Object.keys(r)){const t=r[e];this._list.push([e,t])}else this._list=yi.parseUrlencodedString(r)}_updateSteps(){if(null!==this._url){let e=yi.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e}}get size(){return this._list.length}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e,t){let n=0;for(;n<this._list.length;)this._list[n][0]!==e||void 0!==t&&this._list[n][1]!==t?n++:this._list.splice(n,1);this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const n of this._list)n[0]===e&&t.push(n[1]);return t}has(e,t){for(const n of this._list)if(n[0]===e&&(void 0===t||n[1]===t))return!0;return!1}set(e,t){let n=!1,r=0;for(;r<this._list.length;)this._list[r][0]===e?n?this._list.splice(r,1):(n=!0,this._list[r][1]=t,r++):r++;n||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return yi.serializeUrlencoded(this._list)}},wi={implementation:Ci},Fi=Er((function(e,t){const n=br.newObjectInRealm,r=br.implSymbol,i=br.ctorRegistrySymbol,o="URLSearchParams";function u(e,t){let n;return void 0!==t&&(n=t.prototype),br.isObject(n)||(n=e[i].URLSearchParams.prototype),Object.create(n)}t.is=e=>br.isObject(e)&&br.hasOwn(e,r)&&e[r]instanceof wi.implementation,t.isImpl=e=>br.isObject(e)&&e instanceof wi.implementation,t.convert=(e,n,{context:r="The provided value"}={})=>{if(t.is(n))return br.implForWrapper(n);throw new e.TypeError(`${r} is not of type 'URLSearchParams'.`)},t.createDefaultIterator=(e,t,n)=>{const r=e[i]["URLSearchParams Iterator"],o=Object.create(r);return Object.defineProperty(o,br.iterInternalSymbol,{value:{target:t,kind:n,index:0},configurable:!0}),o},t.create=(e,n,r)=>{const i=u(e);return t.setup(i,e,n,r)},t.createImpl=(e,n,r)=>{const i=t.create(e,n,r);return br.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,n,i=[],o={})=>(o.wrapper=e,t._internalSetup(e,n),Object.defineProperty(e,r,{value:new wi.implementation(n,i,o),configurable:!0}),e[r][br.wrapperSymbol]=e,wi.init&&wi.init(e[r]),e),t.new=(e,n)=>{const i=u(e,n);return t._internalSetup(i,e),Object.defineProperty(i,r,{value:Object.create(wi.implementation.prototype),configurable:!0}),i[r][br.wrapperSymbol]=i,wi.init&&wi.init(i[r]),i[r]};const s=new Set(["Window","Worker"]);t.install=(e,i)=>{if(!i.some((e=>s.has(e))))return;const u=br.initCtorRegistry(e);class a{constructor(){const n=[];{let t=arguments[0];if(void 0!==t)if(br.isObject(t))if(void 0!==t[Symbol.iterator]){if(!br.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const n=[],r=t;for(let t of r){if(!br.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const n=[],r=t;for(let t of r)t=Ar.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),n.push(t);t=n}n.push(t)}t=n}}else{if(!br.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const n=Object.create(null);for(const r of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,r);if(i&&i.enumerable){let i=r;i=Ar.USVString(i,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let o=t[r];o=Ar.USVString(o,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),n[i]=o}}t=n}}else t=Ar.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";n.push(t)}return t.setup(Object.create(new.target.prototype),e,n)}append(n,i){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=Ar.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return br.tryWrapperForImpl(o[r].append(...u))}delete(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}{let t=arguments[1];void 0!==t&&(t=Ar.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:e})),o.push(t)}return br.tryWrapperForImpl(i[r].delete(...o))}get(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}return i[r].get(...o)}getAll(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}return br.tryWrapperForImpl(i[r].getAll(...o))}has(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}{let t=arguments[1];void 0!==t&&(t=Ar.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:e})),o.push(t)}return i[r].has(...o)}set(n,i){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=Ar.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return br.tryWrapperForImpl(o[r].set(...u))}sort(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return br.tryWrapperForImpl(n[r].sort())}toString(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return n[r].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(n){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");n=gi(e,n,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const i=arguments[1];let o=Array.from(this[r]),u=0;for(;u<o.length;){const[e,t]=o[u].map(br.tryWrapperForImpl);n.call(i,t,e,this),o=Array.from(this[r]),u++}}get size(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return n[r].size}}Object.defineProperties(a.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},size:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:a.prototype.entries,configurable:!0,writable:!0}}),u[o]=a,u["URLSearchParams Iterator"]=Object.create(u["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),br.define(u["URLSearchParams Iterator"],{next(){const t=this&&this[br.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:i,kind:o,index:u}=t,s=Array.from(i[r]);if(u>=s.length)return n(e,{value:void 0,done:!0});const a=s[u];return t.index=u+1,n(e,br.iteratorResult(a.map(br.tryWrapperForImpl),o))}}),Object.defineProperty(e,o,{configurable:!0,writable:!0,value:a})}}));Fi.is,Fi.isImpl,Fi.convert,Fi.createDefaultIterator,Fi.create,Fi.createImpl,Fi._internalSetup,Fi.setup,Fi.install;var Di={implementation:class e{constructor(e,[t,n]){let r=null;if(void 0!==n&&(r=hi.basicURLParse(n),null===r))throw new TypeError(`Invalid base URL: ${n}`);const i=hi.basicURLParse(t,{baseURL:r});if(null===i)throw new TypeError(`Invalid URL: ${t}`);const o=null!==i.query?i.query:"";this._url=i,this._query=Fi.createImpl(e,[o],{doNotStripQMark:!0}),this._query._url=this}static parse(t,n,r){try{return new e(t,[n,r])}catch{return null}}static canParse(e,t){let n=null;if(void 0!==t&&(n=hi.basicURLParse(t),null===n))return!1;return null!==hi.basicURLParse(e,{baseURL:n})}get href(){return hi.serializeURL(this._url)}set href(e){const t=hi.basicURLParse(e);if(null===t)throw new TypeError(`Invalid URL: ${e}`);this._url=t,this._query._list.splice(0);const{query:n}=t;null!==n&&(this._query._list=yi.parseUrlencodedString(n))}get origin(){return hi.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){hi.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){hi.cannotHaveAUsernamePasswordPort(this._url)||hi.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){hi.cannotHaveAUsernamePasswordPort(this._url)||hi.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?hi.serializeHost(e.host):`${hi.serializeHost(e.host)}:${hi.serializeInteger(e.port)}`}set host(e){hi.hasAnOpaquePath(this._url)||hi.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":hi.serializeHost(this._url.host)}set hostname(e){hi.hasAnOpaquePath(this._url)||hi.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":hi.serializeInteger(this._url.port)}set port(e){hi.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:hi.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return hi.serializePath(this._url)}set pathname(e){hi.hasAnOpaquePath(this._url)||(this._url.path=[],hi.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(e){const t=this._url;if(""===e)return t.query=null,void(this._query._list=[]);const n="?"===e[0]?e.substring(1):e;t.query="",hi.basicURLParse(n,{url:t,stateOverride:"query"}),this._query._list=yi.parseUrlencodedString(n)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",hi.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},Bi=Er((function(e,t){const n=br.implSymbol,r=br.ctorRegistrySymbol;function i(e,t){let n;return void 0!==t&&(n=t.prototype),br.isObject(n)||(n=e[r].URL.prototype),Object.create(n)}t.is=e=>br.isObject(e)&&br.hasOwn(e,n)&&e[n]instanceof Di.implementation,t.isImpl=e=>br.isObject(e)&&e instanceof Di.implementation,t.convert=(e,n,{context:r="The provided value"}={})=>{if(t.is(n))return br.implForWrapper(n);throw new e.TypeError(`${r} is not of type 'URL'.`)},t.create=(e,n,r)=>{const o=i(e);return t.setup(o,e,n,r)},t.createImpl=(e,n,r)=>{const i=t.create(e,n,r);return br.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,r,i=[],o={})=>(o.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,n,{value:new Di.implementation(r,i,o),configurable:!0}),e[n][br.wrapperSymbol]=e,Di.init&&Di.init(e[n]),e),t.new=(e,r)=>{const o=i(e,r);return t._internalSetup(o,e),Object.defineProperty(o,n,{value:Object.create(Di.implementation.prototype),configurable:!0}),o[n][br.wrapperSymbol]=o,Di.init&&Di.init(o[n]),o[n]};const o=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>o.has(e))))return;const i=br.initCtorRegistry(e);class u{constructor(n){if(arguments.length<1)throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const r=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),r.push(t)}{let t=arguments[1];void 0!==t&&(t=Ar.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),r.push(t)}return t.setup(Object.create(new.target.prototype),e,r)}toJSON(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[n].toJSON()}get href(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[n].href}set href(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),i[n].href=r}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[n].href}get origin(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[n].origin}get protocol(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[n].protocol}set protocol(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),i[n].protocol=r}get username(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[n].username}set username(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),i[n].username=r}get password(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[n].password}set password(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),i[n].password=r}get host(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[n].host}set host(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),i[n].host=r}get hostname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[n].hostname}set hostname(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),i[n].hostname=r}get port(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[n].port}set port(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),i[n].port=r}get pathname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[n].pathname}set pathname(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),i[n].pathname=r}get search(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[n].search}set search(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),i[n].search=r}get searchParams(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return br.getSameObject(this,"searchParams",(()=>br.tryWrapperForImpl(r[n].searchParams)))}get hash(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[n].hash}set hash(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=Ar.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),i[n].hash=r}static parse(t){if(arguments.length<1)throw new e.TypeError(`Failed to execute 'parse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'parse' on 'URL': parameter 1",globals:e}),n.push(t)}{let t=arguments[1];void 0!==t&&(t=Ar.USVString(t,{context:"Failed to execute 'parse' on 'URL': parameter 2",globals:e})),n.push(t)}return br.tryWrapperForImpl(Di.implementation.parse(e,...n))}static canParse(t){if(arguments.length<1)throw new e.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let t=arguments[0];t=Ar.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:e}),n.push(t)}{let t=arguments[1];void 0!==t&&(t=Ar.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:e})),n.push(t)}return Di.implementation.canParse(...n)}}Object.defineProperties(u.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),Object.defineProperties(u,{parse:{enumerable:!0},canParse:{enumerable:!0}}),i.URL=u,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:u}),r.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:u})}}));Bi.is,Bi.isImpl,Bi.convert,Bi.create,Bi.createImpl,Bi._internalSetup,Bi.setup,Bi.install;var Ii={URL:Bi,URLSearchParams:Fi};const{URL:Ri,URLSearchParams:ji}=Ii,Si={Array:Array,Object:Object,Promise:Promise,String:String,TypeError:TypeError};Ri.install(Si,["Window"]),ji.install(Si,["Window"]);var _i={URL:Si.URL,URLSearchParams:Si.URLSearchParams,parseURL:hi.parseURL,basicURLParse:hi.basicURLParse,serializeURL:hi.serializeURL,serializePath:hi.serializePath,serializeHost:hi.serializeHost,serializeInteger:hi.serializeInteger,serializeURLOrigin:hi.serializeURLOrigin,setTheUsername:hi.setTheUsername,setThePassword:hi.setThePassword,cannotHaveAUsernamePasswordPort:hi.cannotHaveAUsernamePasswordPort,hasAnOpaquePath:hi.hasAnOpaquePath,percentDecodeString:li.percentDecodeString,percentDecodeBytes:li.percentDecodeBytes};const Ui=o.Readable,Pi=Symbol("buffer"),Oi=Symbol("type");class ki{constructor(){this[Oi]="";const e=arguments[0],t=arguments[1],n=[];let r=0;if(e){const t=e,i=Number(t.length);for(let e=0;e<i;e++){const i=t[e];let o;o=i instanceof Buffer?i:ArrayBuffer.isView(i)?Buffer.from(i.buffer,i.byteOffset,i.byteLength):i instanceof ArrayBuffer?Buffer.from(i):i instanceof ki?i[Pi]:Buffer.from("string"==typeof i?i:String(i)),r+=o.length,n.push(o)}}this[Pi]=Buffer.concat(n);let i=t&&void 0!==t.type&&String(t.type).toLowerCase();i&&!/[^\u0020-\u007E]/.test(i)&&(this[Oi]=i)}get size(){return this[Pi].length}get type(){return this[Oi]}text(){return Promise.resolve(this[Pi].toString())}arrayBuffer(){const e=this[Pi],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new Ui;return e._read=function(){},e.push(this[Pi]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],n=arguments[1];let r,i;r=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),i=void 0===n?e:n<0?Math.max(e+n,0):Math.min(n,e);const o=Math.max(i-r,0),u=this[Pi].slice(r,r+o),s=new ki([],{type:arguments[2]});return s[Pi]=u,s}}function xi(e,t,n){Error.call(this,e),this.message=e,this.type=t,n&&(this.code=this.errno=n.code),Error.captureStackTrace(this,this.constructor)}let Ti;Object.defineProperties(ki.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(ki.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),xi.prototype=Object.create(Error.prototype),xi.prototype.constructor=xi,xi.prototype.name="FetchError";try{Ti=require("encoding").convert}catch(e){}const Li=Symbol("Body internals"),Ni=o.PassThrough;function qi(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.size;let i=void 0===r?0:r;var u=n.timeout;let s=void 0===u?0:u;null==e?e=null:Gi(e)?e=Buffer.from(e.toString()):zi(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof o||(e=Buffer.from(String(e)))),this[Li]={body:e,disturbed:!1,error:null},this.size=i,this.timeout=s,e instanceof o&&e.on("error",(function(e){const n="AbortError"===e.name?e:new xi(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[Li].error=n}))}function Mi(){var e=this;if(this[Li].disturbed)return qi.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Li].disturbed=!0,this[Li].error)return qi.Promise.reject(this[Li].error);let t=this.body;if(null===t)return qi.Promise.resolve(Buffer.alloc(0));if(zi(t)&&(t=t.stream()),Buffer.isBuffer(t))return qi.Promise.resolve(t);if(!(t instanceof o))return qi.Promise.resolve(Buffer.alloc(0));let n=[],r=0,i=!1;return new qi.Promise((function(o,u){let s;e.timeout&&(s=setTimeout((function(){i=!0,u(new xi(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(i=!0,u(t)):u(new xi(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!i&&null!==t){if(e.size&&r+t.length>e.size)return i=!0,void u(new xi(`content size at ${e.url} over limit: ${e.size}`,"max-size"));r+=t.length,n.push(t)}})),t.on("end",(function(){if(!i){clearTimeout(s);try{o(Buffer.concat(n,r))}catch(t){u(new xi(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function Gi(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function zi(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function $i(e){let t,n,r=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return r instanceof o&&"function"!=typeof r.getBoundary&&(t=new Ni,n=new Ni,r.pipe(t),r.pipe(n),e[Li].body=t,r=n),r}function Wi(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":Gi(e)?"application/x-www-form-urlencoded;charset=UTF-8":zi(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof o?null:"text/plain;charset=UTF-8"}function Ji(e){const t=e.body;return null===t?0:zi(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}qi.prototype={get body(){return this[Li].body},get bodyUsed(){return this[Li].disturbed},arrayBuffer(){return Mi.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return Mi.call(this).then((function(t){return Object.assign(new ki([],{type:e.toLowerCase()}),{[Pi]:t})}))},json(){var e=this;return Mi.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return qi.Promise.reject(new xi(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return Mi.call(this).then((function(e){return e.toString()}))},buffer(){return Mi.call(this)},textConverted(){var e=this;return Mi.call(this).then((function(t){return function(e,t){if("function"!=typeof Ti)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=t.get("content-type");let r,i,o="utf-8";n&&(r=/charset=([^;]*)/i.exec(n));i=e.slice(0,1024).toString(),!r&&i&&(r=/<meta.+?charset=(['"])(.+?)\1/i.exec(i));!r&&i&&(r=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(i),r||(r=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(i),r&&r.pop()),r&&(r=/charset=(.*)/i.exec(r.pop())));!r&&i&&(r=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(i));r&&(o=r.pop(),"gb2312"!==o&&"gbk"!==o||(o="gb18030"));return Ti(e,"UTF-8",o).toString()}(t,e.headers)}))}},Object.defineProperties(qi.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),qi.mixIn=function(e){for(const t of Object.getOwnPropertyNames(qi.prototype))if(!(t in e)){const n=Object.getOwnPropertyDescriptor(qi.prototype,t);Object.defineProperty(e,t,n)}},qi.Promise=global.Promise;const Vi=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,Hi=/[^\t\x20-\x7e\x80-\xff]/;function Zi(e){if(e=`${e}`,Vi.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function Yi(e){if(e=`${e}`,Hi.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function Ki(e,t){t=t.toLowerCase();for(const n in e)if(n.toLowerCase()===t)return n}const Xi=Symbol("map");class Qi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[Xi]=Object.create(null),e instanceof Qi){const t=e.raw(),n=Object.keys(t);for(const e of n)for(const n of t[e])this.append(e,n)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const n=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(t))}for(const e of n){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const n=e[t];this.append(t,n)}}}}get(e){Zi(e=`${e}`);const t=Ki(this[Xi],e);return void 0===t?null:this[Xi][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=eo(this),r=0;for(;r<n.length;){var i=n[r];const o=i[0],u=i[1];e.call(t,u,o,this),n=eo(this),r++}}set(e,t){t=`${t}`,Zi(e=`${e}`),Yi(t);const n=Ki(this[Xi],e);this[Xi][void 0!==n?n:e]=[t]}append(e,t){t=`${t}`,Zi(e=`${e}`),Yi(t);const n=Ki(this[Xi],e);void 0!==n?this[Xi][n].push(t):this[Xi][e]=[t]}has(e){return Zi(e=`${e}`),void 0!==Ki(this[Xi],e)}delete(e){Zi(e=`${e}`);const t=Ki(this[Xi],e);void 0!==t&&delete this[Xi][t]}raw(){return this[Xi]}keys(){return no(this,"key")}values(){return no(this,"value")}[Symbol.iterator](){return no(this,"key+value")}}function eo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[Xi]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[Xi][t].join(", ")}:function(t){return[t.toLowerCase(),e[Xi][t].join(", ")]})}Qi.prototype.entries=Qi.prototype[Symbol.iterator],Object.defineProperty(Qi.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Qi.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const to=Symbol("internal");function no(e,t){const n=Object.create(ro);return n[to]={target:e,kind:t,index:0},n}const ro=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==ro)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[to];const t=e.target,n=e.kind,r=e.index,i=eo(t,n);return r>=i.length?{value:void 0,done:!0}:(this[to].index=r+1,{value:i[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function io(e){const t=Object.assign({__proto__:null},e[Xi]),n=Ki(e[Xi],"Host");return void 0!==n&&(t[n]=t[n][0]),t}Object.defineProperty(ro,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const oo=Symbol("Response internals"),uo=s.STATUS_CODES;class so{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qi.call(this,e,t);const n=t.status||200,r=new Qi(t.headers);if(null!=e&&!r.has("Content-Type")){const t=Wi(e);t&&r.append("Content-Type",t)}this[oo]={url:t.url,status:n,statusText:t.statusText||uo[n],headers:r,counter:t.counter}}get url(){return this[oo].url||""}get status(){return this[oo].status}get ok(){return this[oo].status>=200&&this[oo].status<300}get redirected(){return this[oo].counter>0}get statusText(){return this[oo].statusText}get headers(){return this[oo].headers}clone(){return new so($i(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}qi.mixIn(so.prototype),Object.defineProperties(so.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(so.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const ao=Symbol("Request internals"),co=a.URL||_i.URL,lo=a.parse,ho=a.format;function po(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new co(e).toString()),lo(e)}const fo="destroy"in o.Readable.prototype;function mo(e){return"object"==typeof e&&"object"==typeof e[ao]}class vo{constructor(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};mo(e)?t=po(e.url):(t=e&&e.href?po(e.href):po(`${e}`),e={});let r=n.method||e.method||"GET";if(r=r.toUpperCase(),(null!=n.body||mo(e)&&null!==e.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=n.body?n.body:mo(e)&&null!==e.body?$i(e):null;qi.call(this,i,{timeout:n.timeout||e.timeout||0,size:n.size||e.size||0});const o=new Qi(n.headers||e.headers||{});if(null!=i&&!o.has("Content-Type")){const e=Wi(i);e&&o.append("Content-Type",e)}let u=mo(e)?e.signal:null;if("signal"in n&&(u=n.signal),null!=u&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(u))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[ao]={method:r,redirect:n.redirect||e.redirect||"follow",headers:o,parsedURL:t,signal:u},this.follow=void 0!==n.follow?n.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===e.compress||e.compress,this.counter=n.counter||e.counter||0,this.agent=n.agent||e.agent}get method(){return this[ao].method}get url(){return ho(this[ao].parsedURL)}get headers(){return this[ao].headers}get redirect(){return this[ao].redirect}get signal(){return this[ao].signal}clone(){return new vo(this)}}function Eo(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}qi.mixIn(vo.prototype),Object.defineProperty(vo.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(vo.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Eo.prototype=Object.create(Error.prototype),Eo.prototype.constructor=Eo,Eo.prototype.name="AbortError";const Ao=a.URL||_i.URL,bo=o.PassThrough;function yo(e,t){if(!yo.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return qi.Promise=yo.Promise,new yo.Promise((function(n,r){const i=new vo(e,t),u=function(e){const t=e[ao].parsedURL,n=new Qi(e[ao].headers);if(n.has("Accept")||n.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof o.Readable&&!fo)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let r=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(r="0"),null!=e.body){const t=Ji(e);"number"==typeof t&&(r=String(t))}r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let i=e.agent;return"function"==typeof i&&(i=i(t)),n.has("Connection")||i||n.set("Connection","close"),Object.assign({},t,{method:e.method,headers:io(n),agent:i})}(i),a=("https:"===u.protocol?d:s).request,c=i.signal;let l=null;const p=function(){let e=new Eo("The user aborted a request.");r(e),i.body&&i.body instanceof o.Readable&&i.body.destroy(e),l&&l.body&&l.body.emit("error",e)};if(c&&c.aborted)return void p();const f=function(){p(),E()},m=a(u);let v;function E(){m.abort(),c&&c.removeEventListener("abort",f),clearTimeout(v)}c&&c.addEventListener("abort",f),i.timeout&&m.once("socket",(function(e){v=setTimeout((function(){r(new xi(`network timeout at: ${i.url}`,"request-timeout")),E()}),i.timeout)})),m.on("error",(function(e){r(new xi(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),E()})),m.on("response",(function(e){clearTimeout(v);const t=function(e){const t=new Qi;for(const n of Object.keys(e))if(!Vi.test(n))if(Array.isArray(e[n]))for(const r of e[n])Hi.test(r)||(void 0===t[Xi][n]?t[Xi][n]=[r]:t[Xi][n].push(r));else Hi.test(e[n])||(t[Xi][n]=[e[n]]);return t}(e.headers);if(yo.isRedirect(e.statusCode)){const o=t.get("Location");let u=null;try{u=null===o?null:new Ao(o,i.url).toString()}catch(e){if("manual"!==i.redirect)return r(new xi(`uri requested responds with an invalid redirect URL: ${o}`,"invalid-redirect")),void E()}switch(i.redirect){case"error":return r(new xi(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void E();case"manual":if(null!==u)try{t.set("Location",u)}catch(e){r(e)}break;case"follow":if(null===u)break;if(i.counter>=i.follow)return r(new xi(`maximum redirect reached at: ${i.url}`,"max-redirect")),void E();const o={headers:new Qi(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!function(e,t){const n=new Ao(t).hostname,r=new Ao(e).hostname;return n===r||"."===n[n.length-r.length-1]&&n.endsWith(r)}(i.url,u))for(const e of["authorization","www-authenticate","cookie","cookie2"])o.headers.delete(e);return 303!==e.statusCode&&i.body&&null===Ji(i)?(r(new xi("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void E()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(o.method="GET",o.body=void 0,o.headers.delete("content-length")),n(yo(new vo(u,o))),void E())}}e.once("end",(function(){c&&c.removeEventListener("abort",f)}));let o=e.pipe(new bo);const u={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:i.size,timeout:i.timeout,counter:i.counter},s=t.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===s||204===e.statusCode||304===e.statusCode)return l=new so(o,u),void n(l);const a={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};if("gzip"==s||"x-gzip"==s)return o=o.pipe(h.createGunzip(a)),l=new so(o,u),void n(l);if("deflate"!=s&&"x-deflate"!=s){if("br"==s&&"function"==typeof h.createBrotliDecompress)return o=o.pipe(h.createBrotliDecompress()),l=new so(o,u),void n(l);l=new so(o,u),n(l)}else{e.pipe(new bo).once("data",(function(e){o=8==(15&e[0])?o.pipe(h.createInflate()):o.pipe(h.createInflateRaw()),l=new so(o,u),n(l)}))}})),function(e,t){const n=t.body;null===n?e.end():zi(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(m,i)}))}yo.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},yo.Promise=global.Promise;var go="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,Co=go?yo:window.fetch;var wo=function(e){return Array.isArray(e)?e:[e]},Fo=function(e,t){return J(void 0,void 0,void 0,(function(){var n;return V(this,(function(r){return n=Promise.resolve([]),[2,e.reduce((function(e,n){return e.then((function(e){return t(n).then((function(t){return e.push(t),e}))}))}),n)]}))}))},Do=function(e){function t(t){void 0===t&&(t=8192);var n=e.call(this)||this;return n.bufferDefaultSize=t,n._size=0,n.buffer=Buffer.alloc(n.bufferDefaultSize),n}return $(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.getContentsAsString=function(e,t){void 0===e&&(e="utf8");var n=this.buffer.toString(e,0,Math.min(t||this.size,this.size)),r=Buffer.byteLength(n);return r<this.size&&this.buffer.copy(this.buffer,0,r),this._size-=r,n},t.prototype.adaptBuffer=function(e){if(this.buffer.length-this.size<e){var t=Math.ceil((e-(this.buffer.length-this.size))/this.bufferDefaultSize),n=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*t);this.buffer.copy(n,0,0,this.size),this.buffer=n}},t.prototype._write=function(e,t,n){this.adaptBuffer(e.length),e.copy(this.buffer,this.size,0),this._size+=e.length,n()},t}(o.Writable),Bo=function(){function e(e,t){this.contextProvider=e,this.agent=t}return e.prototype.getServiceDetails=function(e,t){return J(this,void 0,void 0,(function(){return V(this,(function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(e,"/services/").concat(t))]}))}))},e.prototype.getAddonDetails=function(e,t){return J(this,void 0,void 0,(function(){return V(this,(function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(e,"/addons/").concat(t))]}))}))},e.prototype.fetch=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i,o,u,s=this;return V(this,(function(a){switch(a.label){case 0:return n="Error while trying to connect, please try again.",r=mr({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},W(W({},t),{agent:this.agent})),[4,Za(2)((function(){return J(s,void 0,void 0,(function(){return V(this,(function(t){return[2,Co(e,r)]}))}))})).catch((function(){throw new Error(n)}))];case 1:return(i=a.sent()).ok?[3,3]:[4,i.text()];case 2:o=a.sent(),u=n;try{u=JSON.parse(o)}catch(e){u=null!=o?o:n}finally{throw new Error(JSON.stringify(u))}case 3:return[4,i.json()];case 4:return[2,a.sent()]}}))}))},e}(),Io=function(e,t,n){return J(void 0,void 0,void 0,(function(){var r,i,o,u,s;return V(this,(function(a){switch(a.label){case 0:if(r=So(t||"127.0.0.1"),(i=So(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===p.platform()&&(o=function(e){return J(void 0,void 0,void 0,(function(){var t;return V(this,(function(n){switch(n.label){case 0:return t="lo0 alias ".concat(e," up"),[4,jo.apply(void 0,t.split(" "))];case 1:return n.sent(),[2]}}))}))}),u=r,a.label=1;case 1:return u<=i?(s=_o(u),[4,Ro(e,s)]):[3,6];case 2:return a.sent()?o?[4,o(s)]:[3,4]:[3,5];case 3:a.sent(),a.label=4;case 4:return[2,s];case 5:return u+=1,[3,1];case 6:throw new Error("Not possible to assign port '".concat(e,"' to an IP address on this machine. Please check if there is already a service running with this port which binds to the wildcard host address (0.0.0.0) and stop this service."))}}))}))},Ro=function(e,t){return new Promise((function(n){var r=new v,i=!1;r.on("connect",(function(){i=!0,r.destroy()})),r.setTimeout(400),r.on("timeout",(function(){i=!1,r.destroy()})),r.on("error",(function(){i=!1})),r.on("close",(function(){n(!i)})),t?r.connect(e,t):r.connect(e)}))},jo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return J(void 0,void 0,void 0,(function(){return V(this,(function(t){switch(t.label){case 0:return[4,Uo("/sbin/ifconfig",e).resultPromise];case 1:return[2,t.sent()]}}))}))},So=function(e){var t=e.split(".").reverse();if(4!==t.length)throw new Error("Invalid ip address: ".concat(e));for(var n=0,r=0;r<4;r+=1){var i=Number.parseInt(t[r],10);if(i<0||i>255)throw new Error("Invalid ip address: ".concat(e));n+=i<<8*r}return n},_o=function(e){if(!Number.isSafeInteger(e))throw new Error("Number is not an integer");if(e<0||e>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");for(var t=[],n=0;n<4;n+=1)t.push(e>>8*n&255);return t.reverse().join(".")},Uo=function(e,t,n){var i=r(e,t,W({windowsHide:!0},n)),o=new Promise((function(r,o){var u="",s="";(null===(null==n?void 0:n.stdio)||void 0===(null==n?void 0:n.stdio))&&(i.stdout&&i.stdout.on("data",(function(e){u+=e})),i.stderr&&i.stderr.on("data",(function(e){s+=e}))),i.on("close",(function(n){var i={code:n,stdout:u,stderr:s};if(0!==n){var a="Error during execution of command '".concat(e," ").concat(t.join(" "),"': ").concat(s);o({message:a,result:i})}else r(i)}))}));return{process:i,resultPromise:o}},Po=function(e,t,n){return J(void 0,void 0,void 0,(function(){var r,i;return V(this,(function(o){switch(o.label){case 0:return r=Oo(e,10),[4,E.promises.writeFile(r,t,n)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,4,,6]),[4,E.promises.rename(r,e)];case 3:return o.sent(),[3,6];case 4:return i=o.sent(),[4,E.promises.unlink(r).catch((function(){}))];case 5:throw o.sent(),i;case 6:return[2]}}))}))},Oo=function(e,t){for(var n,r=C.dirname(e),i=C.basename(e),o=0;null===(n=o<t)||void 0===n||n;o+=1){var u=H([],Array(16),!0).map((function(){return Math.floor(16*Math.random()).toString(16)})).join(""),s=".".concat(u,".").concat(i),a=C.join(r,s);if(!E.existsSync(a))return a}throw new Error("Could not write file to file '".concat(e,"'."))},ko="win32"===process.platform?"\r\n":"\n",xo=function(){function e(e,t){this.nodes=e,this.config=t}return e.prototype.add=function(e,t,n){var r=this;if(0===t.length)return this;var i=this.findOrCreateEntry(e,n);return t.forEach((function(e){if(!i.hosts.find((function(t){return t.host===e}))){var t=1;0===i.hosts.length&&(t=r.config.indent-"".concat(i.ipPrefixWhitespace).concat(i.ip).length),i.hosts.push({whitespace:" ".repeat(t<1?1:t),host:e})}})),this},e.prototype.remove=function(e,t){var n=this;return this.findEntries(e).forEach((function(e){t.forEach((function(t){var r=e.hosts.findIndex((function(e){return e.host===t}));r<0||(0===r&&void 0!==e.hosts[1]&&(e.hosts[1].whitespace=e.hosts[0].whitespace),e.hosts.splice(r,1),0===e.hosts.length&&n.removeEntry(e))}))})),this},e.prototype.removeHosts=function(e){var t=this;zo(this.nodes,"entry").forEach((function(n){t.remove(n.ip,e)}))},e.prototype.removeIps=function(e){var t=this;return e.forEach((function(e){t.findEntries(e).forEach((function(e){return t.removeEntry(e)}))})),this},e.prototype.resolveHosts=function(e){return cr(this.findEntries(e),(function(e){return e.hosts.map((function(e){return e.host}))}))},e.prototype.resolveIps=function(e){return zo(this.nodes,"entry").filter((function(t){return t.hosts.some((function(t){return t.host===e}))})).map((function(e){return e.ip}))},e.prototype.toString=function(){return qo(this.nodes,this.config.eol)},e.prototype.removeEntry=function(e){var t,n="number"==typeof(t=e)||ue(t)&&"[object Number]"==oe(t)?e:this.nodes.findIndex((function(t){return t===e}));n<0||this.nodes.splice(n,1)},e.prototype.findEntries=function(e){return zo(this.nodes,"entry").filter((function(t){return t.ip===e}))},e.prototype.findOrCreateEntry=function(e,t){var n=this.findEntries(e)[0];if(n)return n;var r=this.makeEntry(e);if(t){var i=No(t),o=this.nodes.findIndex((function(e){return"comment"===e.type&&e.line===i}));if(o>=0)this.insertAt(o+1,r);else{var u="blank"!==this.nodes[this.nodes.length-1].type?[To(),Lo(i),r]:[Lo(i),r];this.insertAt.apply(this,H([this.nodes.length],u,!1))}}else this.insertAt(this.nodes.length,r);return r},e.prototype.insertAt=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.nodes).splice.apply(t,H([e,0],n,!1))},e.prototype.makeEntry=function(e,t){var n=this.config.ipPrefixWhitespace;return W({type:"entry",ip:e,ipPrefixWhitespace:n,hosts:[]},t)},e.fromNodes=function(t,n){var r,i;return new e(t.filter((function(e){return"eol"!==e.type})),{eol:null!==(r=null==n?void 0:n.eol)&&void 0!==r?r:function(){var e,n=zo(t,"eol").map((function(e){return e.line}));return null!==(e=$o(n))&&void 0!==e?e:ko}(),indent:null!==(i=null==n?void 0:n.indent)&&void 0!==i?i:function(){var e,n=cr(zo(t,"entry"),(function(e){var t=e.ipPrefixWhitespace,n=e.ip,r=e.hosts[0];return r?["".concat(t).concat(n).concat(r.whitespace).length]:[]}));return null!==(e=$o(n))&&void 0!==e?e:17}(),ipPrefixWhitespace:""})},e.parse=function(e,t){return this.fromNodes(Mo(e),t)},e}(),To=function(){return{type:"blank",line:""}},Lo=function(e){return{type:"comment",line:No(e)}},No=function(e){return e.startsWith("#")?e:"# ".concat(e)},qo=function(e,t){var n=e.map((function(e){switch(e.type){case"entry":var t=e.hosts.map((function(e){var t=e.whitespace,n=e.host;return"".concat(t).concat(n)})).join("");return"".concat(e.ipPrefixWhitespace).concat(e.ip).concat(t);case"blank":case"comment":case"invalid":return e.line;default:return""}}));return n.join(null!=t?t:ko)},Mo=function(e){return e.split(/(\r?\n)/).map((function(e){return function(e){return e.match(/^\s*#.*$/)}(e)?{type:"comment",line:e}:function(e){return e.match(/^(\r?\n)$/)}(e)?{type:"eol",line:e}:function(e){return e.match(/^\s*$/)}(e)?{type:"blank",line:e}:Go(e)}))},Go=function(e){var t=e.match(/^(\s*)(\S+)(.+)?$/);if(!t)return{type:"invalid",line:e};var n=t[1],r=t[2],i=t.slice(3),o=!1,u=cr(i.filter((function(e){return void 0!==e})),(function(e){var t=e.match(/(\s+)(\S+)/g);return t?t.map((function(e){var t=e.match(/^(\s+)(\S+)$/);t||(o=!0);var n=null!=t?t:[];return{whitespace:n[1],host:n[2]}})):(o=!0,[])}));return o?{type:"invalid",line:e}:{type:"entry",ipPrefixWhitespace:n,ip:r,hosts:u}},zo=function(e,t){return e.filter((function(e){return e.type===t}))},$o=function(e){var t=new Map;e.forEach((function(e){var n;t.set(e,(null!==(n=t.get(e))&&void 0!==n?n:0)+1)}));var n=pr(Array.from(t.entries()),(function(e){return e[1]}));if(n)return n[0]},Wo="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",Jo=function(){function e(e){this.ast=xo.fromNodes([]);var t={writeMode:"atomic",hostsFile:Wo};this.config=W(W({},t),e)}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!hr(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach((function(e){if(!hr(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))})),this.ast.add(e,t,this.config.header),this},e.prototype.remove=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!hr(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach((function(e){if(!hr(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))})),this.ast.remove(e,t),this},e.prototype.removeHosts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach((function(e){if(!hr(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))})),this.ast.removeHosts(e),this},e.prototype.removeIps=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach((function(e){if(!hr(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."))})),this.ast.removeIps(e),this},e.prototype.read=function(){return J(this,void 0,void 0,(function(){var e;return V(this,(function(t){switch(t.label){case 0:return[4,E.promises.readFile(this.config.hostsFile)];case 1:return e=t.sent(),this.ast=xo.parse(e.toString(),this.config),[2,this]}}))}))},e.prototype.write=function(e){return J(this,void 0,void 0,(function(){var t,n,r,i;return V(this,(function(o){switch(o.label){case 0:switch(t=W(W({},this.config),e),n=t.hostsFile,r=t.writeMode,i=this.ast.toString(),r){case void 0:case"atomic":return[3,1];case"standard":return[3,3];case"disabled":return[3,5]}return[3,5];case 1:return[4,Po(n,i)];case 2:case 4:return o.sent(),[3,6];case 3:return[4,E.promises.writeFile(n,i)];case 5:return[3,6];case 6:return[2,this]}}))}))},e.prototype.backup=function(e){return J(this,void 0,void 0,(function(){var t,n,r,i;return V(this,(function(o){switch(o.label){case 0:return E.existsSync(this.config.hostsFile)?(t=C.dirname(this.config.hostsFile),n=C.basename(this.config.hostsFile),r="".concat(n).concat(e.suffix),i=C.resolve(t,r),E.existsSync(i)&&!e.rewrite?[3,2]:[4,E.promises.copyFile(this.config.hostsFile,i)]):[2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},e.load=function(t){return J(this,void 0,void 0,(function(){return V(this,(function(n){switch(n.label){case 0:return[4,new e(t).read()];case 1:return[2,n.sent()]}}))}))},e}(),Vo=function(){function e(){this.previousPromise=Promise.resolve(),this._queueLength=0}return Object.defineProperty(e.prototype,"queueLength",{get:function(){return this._queueLength},enumerable:!1,configurable:!0}),e.prototype.enter=function(e){return J(this,void 0,void 0,(function(){var t,n=this;return V(this,(function(r){return this._queueLength+=1,t=this.previousPromise.then((function(){return n._queueLength-=1,e()}),(function(){return n._queueLength-=1,e()})),this.previousPromise=t,[2,t]}))}))},e}(),Ho=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}};var Zo=Ho(Ko),Yo=Ho(Xo);function Ko(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Xo(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}Ko.proto=Ko((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Ko(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Xo(this)},configurable:!0})})),Zo.strict=Yo;var Qo,eu=function(){},tu=function(e,t,n){if("function"==typeof t)return tu(e,null,t);t||(t={}),n=Zo(n||eu);var r=e._writableState,i=e._readableState,o=t.readable||!1!==t.readable&&e.readable,u=t.writable||!1!==t.writable&&e.writable,s=!1,a=function(){e.writable||c()},c=function(){u=!1,o||n.call(e)},d=function(){o=!1,u||n.call(e)},l=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},h=function(t){n.call(e,t)},p=function(){process.nextTick(f)},f=function(){if(!s)return(!o||i&&i.ended&&!i.destroyed)&&(!u||r&&r.ended&&!r.destroyed)?void 0:n.call(e,new Error("premature close"))},m=function(){e.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?u&&!r&&(e.on("end",a),e.on("close",a)):(e.on("complete",c),e.on("abort",p),e.req?m():e.on("request",m)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",l),e.on("end",d),e.on("finish",c),!1!==t.error&&e.on("error",h),e.on("close",p),function(){s=!0,e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",c),e.removeListener("exit",l),e.removeListener("end",d),e.removeListener("error",h),e.removeListener("close",p)}},nu=tu;try{Qo=E}catch(e){}var ru=function(){},iu=/^v?\.0/.test(process.version),ou=function(e){return"function"==typeof e},uu=function(e,t,n,r){r=Zo(r);var i=!1;e.on("close",(function(){i=!0})),nu(e,{readable:t,writable:n},(function(e){if(e)return r(e);i=!0,r()}));var o=!1;return function(t){if(!i&&!o)return o=!0,function(e){return!!iu&&!!Qo&&(e instanceof(Qo.ReadStream||ru)||e instanceof(Qo.WriteStream||ru))&&ou(e.close)}(e)?e.close(ru):function(e){return e.setHeader&&ou(e.abort)}(e)?e.abort():ou(e.destroy)?e.destroy():void r(t||new Error("stream was destroyed"))}},su=function(e){e()},au=function(e,t){return e.pipe(t)},cu=function(){var e,t=Array.prototype.slice.call(arguments),n=ou(t[t.length-1]||ru)&&t.pop()||ru;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(i,o){var u=o<t.length-1;return uu(i,u,o>0,(function(t){e||(e=t),t&&r.forEach(su),u||(r.forEach(su),n(e))}))}));return t.reduce(au)};const du=["nodebuffer","arraybuffer","fragments"],lu="undefined"!=typeof Blob;lu&&du.push("blob");var hu={BINARY_TYPES:du,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:lu,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}},pu="function"==typeof __webpack_require__?__non_webpack_require__:vr,fu=process.config&&process.config.variables||{},mu=!!process.env.PREBUILDS_ONLY,vu=process.versions.modules,Eu=!(!process.versions||!process.versions.electron)||!!process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",Au=process.env.npm_config_arch||p.arch(),bu=process.env.npm_config_platform||p.platform(),yu=process.env.LIBC||(function(e){return"linux"===e&&E.existsSync("/etc/alpine-release")}(bu)?"musl":"glibc"),gu=process.env.ARM_VERSION||("arm64"===Au?"8":fu.arm_version)||"",Cu=(process.versions.uv||"").split(".")[0],wu=Fu;function Fu(e){return pu(Fu.resolve(e))}function Du(e){try{return E.readdirSync(e)}catch(e){return[]}}function Bu(e,t){var n=Du(e).filter(t);return n[0]&&C.join(e,n[0])}function Iu(e){return/\.node$/.test(e)}function Ru(e){var t=e.split("-");if(2===t.length){var n=t[0],r=t[1].split("+");if(n&&r.length&&r.every(Boolean))return{name:e,platform:n,architectures:r}}}function ju(e,t){return function(n){return null!=n&&(n.platform===e&&n.architectures.includes(t))}}function Su(e,t){return e.architectures.length-t.architectures.length}function _u(e){var t=e.split("."),n={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var i=t[r];if("node"===i||"electron"===i||"node-webkit"===i)n.runtime=i;else if("napi"===i)n.napi=!0;else if("abi"===i.slice(0,3))n.abi=i.slice(3);else if("uv"===i.slice(0,2))n.uv=i.slice(2);else if("armv"===i.slice(0,4))n.armv=i.slice(4);else{if("glibc"!==i&&"musl"!==i)continue;n.libc=i}n.specificity++}return n}}function Uu(e,t){return function(n){return null!=n&&(!(n.runtime&&n.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(n))&&(!(n.abi&&n.abi!==t&&!n.napi)&&((!n.uv||n.uv===Cu)&&((!n.armv||n.armv===gu)&&(!n.libc||n.libc===yu)))))}}function Pu(e){return function(t,n){return t.runtime!==n.runtime?t.runtime===e?-1:1:t.abi!==n.abi?t.abi?-1:1:t.specificity!==n.specificity?t.specificity>n.specificity?-1:1:0}}Fu.resolve=Fu.path=function(e){e=C.resolve(e||".");try{var t=pu(C.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch(e){}if(!mu){var n=Bu(C.join(e,"build/Release"),Iu);if(n)return n;var r=Bu(C.join(e,"build/Debug"),Iu);if(r)return r}var i=s(e);if(i)return i;var o=s(C.dirname(process.execPath));if(o)return o;var u=["platform="+bu,"arch="+Au,"runtime="+Eu,"abi="+vu,"uv="+Cu,gu?"armv="+gu:"","libc="+yu,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+u+"\n loaded from: "+e+"\n");function s(e){var t=Du(C.join(e,"prebuilds")).map(Ru).filter(ju(bu,Au)).sort(Su)[0];if(t){var n=C.join(e,"prebuilds",t.name),r=Du(n).map(_u).filter(Uu(Eu,vu)).sort(Pu(Eu))[0];return r?C.join(n,r.file):void 0}}},Fu.parseTags=_u,Fu.matchTags=Uu,Fu.compareTags=Pu,Fu.parseTuple=Ru,Fu.matchTuple=ju,Fu.compareTuples=Su;var Ou=Er((function(e){const t="function"==typeof __webpack_require__?__non_webpack_require__:vr;"function"==typeof t.addon?e.exports=t.addon.bind(t):e.exports=wu}));var ku={mask:(e,t,n,r,i)=>{for(var o=0;o<i;o++)n[r+o]=e[o]^t[3&o]},unmask:(e,t)=>{const n=e.length;for(var r=0;r<n;r++)e[r]^=t[3&r]}},xu=Er((function(e){try{e.exports=Ou(__dirname)}catch(t){e.exports=ku}})),Tu=Er((function(e){const{EMPTY_BUFFER:t}=hu,n=Buffer[Symbol.species];function r(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[o]^t[3&o]}function i(e,t){for(let n=0;n<e.length;n++)e[n]^=t[3&n]}if(e.exports={concat:function(e,r){if(0===e.length)return t;if(1===e.length)return e[0];const i=Buffer.allocUnsafe(r);let o=0;for(let t=0;t<e.length;t++){const n=e[t];i.set(n,o),o+=n.length}return o<r?new n(i.buffer,i.byteOffset,o):i},mask:r,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(t){if(e.readOnly=!0,Buffer.isBuffer(t))return t;let r;return t instanceof ArrayBuffer?r=new n(t):ArrayBuffer.isView(t)?r=new n(t.buffer,t.byteOffset,t.byteLength):(r=Buffer.from(t),e.readOnly=!1),r},unmask:i},!process.env.WS_NO_BUFFER_UTIL)try{const t=xu;e.exports.mask=function(e,n,i,o,u){u<48?r(e,n,i,o,u):t.mask(e,n,i,o,u)},e.exports.unmask=function(e,n){e.length<32?i(e,n):t.unmask(e,n)}}catch(e){}}));Tu.concat,Tu.mask,Tu.toArrayBuffer,Tu.toBuffer,Tu.unmask;const Lu=Symbol("kDone"),Nu=Symbol("kRun");var qu=class{constructor(e){this[Lu]=()=>{this.pending--,this[Nu]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Nu]()}[Nu](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[Lu])}}};const{kStatusCode:Mu}=hu,Gu=Buffer[Symbol.species],zu=Buffer.from([0,0,255,255]),$u=Symbol("permessage-deflate"),Wu=Symbol("total-length"),Ju=Symbol("callback"),Vu=Symbol("buffers"),Hu=Symbol("error");let Zu;var Yu=class{constructor(e,t,n){if(this._maxPayload=0|n,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!Zu){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;Zu=new qu(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[Ju];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,n=e.find((e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits)));if(!n)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(n.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?n.client_max_window_bits=t.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach((e=>{Object.keys(e).forEach((t=>{let n=e[t];if(n.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(n=n[0],"client_max_window_bits"===t){if(!0!==n){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}else if("server_max_window_bits"===t){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n}))})),e}decompress(e,t,n){Zu.add((r=>{this._decompress(e,t,((e,t)=>{r(),n(e,t)}))}))}compress(e,t,n){Zu.add((r=>{this._compress(e,t,((e,t)=>{r(),n(e,t)}))}))}_decompress(e,t,n){const r=this._isServer?"client":"server";if(!this._inflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?h.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=h.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[$u]=this,this._inflate[Wu]=0,this._inflate[Vu]=[],this._inflate.on("error",Qu),this._inflate.on("data",Xu)}this._inflate[Ju]=n,this._inflate.write(e),t&&this._inflate.write(zu),this._inflate.flush((()=>{const e=this._inflate[Hu];if(e)return this._inflate.close(),this._inflate=null,void n(e);const i=Tu.concat(this._inflate[Vu],this._inflate[Wu]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Wu]=0,this._inflate[Vu]=[],t&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),n(null,i)}))}_compress(e,t,n){const r=this._isServer?"server":"client";if(!this._deflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?h.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=h.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[Wu]=0,this._deflate[Vu]=[],this._deflate.on("data",Ku)}this._deflate[Ju]=n,this._deflate.write(e),this._deflate.flush(h.Z_SYNC_FLUSH,(()=>{if(!this._deflate)return;let e=Tu.concat(this._deflate[Vu],this._deflate[Wu]);t&&(e=new Gu(e.buffer,e.byteOffset,e.length-4)),this._deflate[Ju]=null,this._deflate[Wu]=0,this._deflate[Vu]=[],t&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),n(null,e)}))}};function Ku(e){this[Vu].push(e),this[Wu]+=e.length}function Xu(e){this[Wu]+=e.length,this[$u]._maxPayload<1||this[Wu]<=this[$u]._maxPayload?this[Vu].push(e):(this[Hu]=new RangeError("Max payload size exceeded"),this[Hu].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Hu][Mu]=1009,this.removeListener("data",Xu),this.reset())}function Qu(e){this[$u]._inflate=null,this[Hu]?this[Ju](this[Hu]):(e[Mu]=1007,this[Ju](e))}var es=function(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0},ts=Er((function(e){try{e.exports=Ou(__dirname)}catch(t){e.exports=es}})),ns=Er((function(e){const{isUtf8:t}=R,{hasBlob:n}=hu;function r(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}if(e.exports={isBlob:function(e){return n&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:r,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},t)e.exports.isValidUTF8=function(e){return e.length<24?r(e):t(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const t=ts;e.exports.isValidUTF8=function(e){return e.length<32?r(e):t(e)}}catch(e){}}));ns.isBlob,ns.isValidStatusCode,ns.isValidUTF8,ns.tokenChars;const{Writable:rs}=o,{BINARY_TYPES:is,EMPTY_BUFFER:os,kStatusCode:us,kWebSocket:ss}=hu,{concat:as,toArrayBuffer:cs,unmask:ds}=Tu,{isValidStatusCode:ls,isValidUTF8:hs}=ns,ps=Buffer[Symbol.species];var fs=class extends rs{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||is[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[ss]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new ps(t.buffer,t.byteOffset+e,t.length-e),new ps(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new ps(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const t=this.consume(2);if(48&t[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const n=!(64&~t[0]);if(!n||this._extensions[Yu.extensionName]){if(this._fin=!(128&~t[0]),this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(n){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=n}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(n){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~t[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}else{e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),n=t.readUInt32BE(0);if(n>Math.pow(2,21)-1){e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}else this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}else this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=os;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&ds(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,t){this._extensions[Yu.extensionName].decompress(e,this._fin,((e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void t(e)}this._fragments.push(n)}this.dataMessage(t),0===this._state&&this.startLoop(t)}))}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?as(n,t):"arraybuffer"===this._binaryType?cs(as(n,t)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)})))}else{const r=as(n,t);if(!this._skipUTF8Validation&&!hs(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)})))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate((()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)})));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,os),this.end();else{const n=e.readUInt16BE(0);if(!ls(n)){const e=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new ps(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!hs(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;const o=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=i,o[us]=r,o}};const{randomFillSync:ms}=I,{EMPTY_BUFFER:vs,kWebSocket:Es,NOOP:As}=hu,{isBlob:bs,isValidStatusCode:ys}=ns,{mask:gs,toBuffer:Cs}=Tu,ws=Symbol("kByteLength"),Fs=Buffer.alloc(4),Ds=8192;let Bs,Is=Ds;class Rs{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=As,this[Es]=void 0}static frame(e,t){let n,r,i=!1,o=2,u=!1;t.mask&&(n=t.maskBuffer||Fs,t.generateMask?t.generateMask(n):(Is===Ds&&(void 0===Bs&&(Bs=Buffer.alloc(Ds)),ms(Bs,0,Ds),Is=0),n[0]=Bs[Is++],n[1]=Bs[Is++],n[2]=Bs[Is++],n[3]=Bs[Is++]),u=0===(n[0]|n[1]|n[2]|n[3]),o=6),"string"==typeof e?r=t.mask&&!u||void 0===t[ws]?(e=Buffer.from(e)).length:t[ws]:(r=e.length,i=t.mask&&t.readOnly&&!u);let s=r;r>=65536?(o+=8,s=127):r>125&&(o+=2,s=126);const a=Buffer.allocUnsafe(i?r+o:o);return a[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(a[0]|=64),a[1]=s,126===s?a.writeUInt16BE(r,2):127===s&&(a[2]=a[3]=0,a.writeUIntBE(r,4,6)),t.mask?(a[1]|=128,a[o-4]=n[0],a[o-3]=n[1],a[o-2]=n[2],a[o-1]=n[3],u?[a,e]:i?(gs(e,n,a,o,r),[a]):(gs(e,n,e,0,r),[a,e])):[a,e]}close(e,t,n,r){let i;if(void 0===e)i=vs;else{if("number"!=typeof e||!ys(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const n=Buffer.byteLength(t);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+n),i.writeUInt16BE(e,0),"string"==typeof t?i.write(t,2):i.set(t,2)}else i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0)}const o={[ws]:i.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,i,!1,o,r]):this.sendFrame(Rs.frame(i,o),r)}ping(e,t,n){let r,i;if("string"==typeof e?(r=Buffer.byteLength(e),i=!1):bs(e)?(r=e.size,i=!1):(r=(e=Cs(e)).length,i=Cs.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[ws]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};bs(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,o,n]):this.getBlobData(e,!1,o,n):0!==this._state?this.enqueue([this.dispatch,e,!1,o,n]):this.sendFrame(Rs.frame(e,o),n)}pong(e,t,n){let r,i;if("string"==typeof e?(r=Buffer.byteLength(e),i=!1):bs(e)?(r=e.size,i=!1):(r=(e=Cs(e)).length,i=Cs.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[ws]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};bs(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,o,n]):this.getBlobData(e,!1,o,n):0!==this._state?this.enqueue([this.dispatch,e,!1,o,n]):this.sendFrame(Rs.frame(e,o),n)}send(e,t,n){const r=this._extensions[Yu.extensionName];let i,o,u=t.binary?2:1,s=t.compress;"string"==typeof e?(i=Buffer.byteLength(e),o=!1):bs(e)?(i=e.size,o=!1):(i=(e=Cs(e)).length,o=Cs.readOnly),this._firstFragment?(this._firstFragment=!1,s&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(s=i>=r._threshold),this._compress=s):(s=!1,u=0),t.fin&&(this._firstFragment=!0);const a={[ws]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:u,readOnly:o,rsv1:s};bs(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,a,n]):this.getBlobData(e,this._compress,a,n):0!==this._state?this.enqueue([this.dispatch,e,this._compress,a,n]):this.dispatch(e,this._compress,a,n)}getBlobData(e,t,n,r){this._bufferedBytes+=n[ws],this._state=2,e.arrayBuffer().then((e=>{if(this._socket.destroyed){const e=new Error("The socket was closed while the blob was being read");return void process.nextTick(Ss,this,e,r)}this._bufferedBytes-=n[ws];const i=Cs(e);t?this.dispatch(i,t,n,r):(this._state=0,this.sendFrame(Rs.frame(i,n),r),this.dequeue())})).catch((e=>{process.nextTick(_s,this,e,r)}))}dispatch(e,t,n,r){if(!t)return void this.sendFrame(Rs.frame(e,n),r);const i=this._extensions[Yu.extensionName];this._bufferedBytes+=n[ws],this._state=1,i.compress(e,n.fin,((e,t)=>{if(this._socket.destroyed){Ss(this,new Error("The socket was closed while data was being compressed"),r)}else this._bufferedBytes-=n[ws],this._state=0,n.readOnly=!1,this.sendFrame(Rs.frame(t,n),r),this.dequeue()}))}dequeue(){for(;0===this._state&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][ws],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][ws],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}var js=Rs;function Ss(e,t,n){"function"==typeof n&&n(t);for(let n=0;n<e._queue.length;n++){const r=e._queue[n],i=r[r.length-1];"function"==typeof i&&i(t)}}function _s(e,t,n){Ss(e,t,n),e.onerror(t)}const{kForOnEventAttribute:Us,kListener:Ps}=hu,Os=Symbol("kCode"),ks=Symbol("kData"),xs=Symbol("kError"),Ts=Symbol("kMessage"),Ls=Symbol("kReason"),Ns=Symbol("kTarget"),qs=Symbol("kType"),Ms=Symbol("kWasClean");class Gs{constructor(e){this[Ns]=null,this[qs]=e}get target(){return this[Ns]}get type(){return this[qs]}}Object.defineProperty(Gs.prototype,"target",{enumerable:!0}),Object.defineProperty(Gs.prototype,"type",{enumerable:!0});class zs extends Gs{constructor(e,t={}){super(e),this[Os]=void 0===t.code?0:t.code,this[Ls]=void 0===t.reason?"":t.reason,this[Ms]=void 0!==t.wasClean&&t.wasClean}get code(){return this[Os]}get reason(){return this[Ls]}get wasClean(){return this[Ms]}}Object.defineProperty(zs.prototype,"code",{enumerable:!0}),Object.defineProperty(zs.prototype,"reason",{enumerable:!0}),Object.defineProperty(zs.prototype,"wasClean",{enumerable:!0});class $s extends Gs{constructor(e,t={}){super(e),this[xs]=void 0===t.error?null:t.error,this[Ts]=void 0===t.message?"":t.message}get error(){return this[xs]}get message(){return this[Ts]}}Object.defineProperty($s.prototype,"error",{enumerable:!0}),Object.defineProperty($s.prototype,"message",{enumerable:!0});class Ws extends Gs{constructor(e,t={}){super(e),this[ks]=void 0===t.data?null:t.data}get data(){return this[ks]}}Object.defineProperty(Ws.prototype,"data",{enumerable:!0});const Js={addEventListener(e,t,n={}){for(const r of this.listeners(e))if(!n[Us]&&r[Ps]===t&&!r[Us])return;let r;if("message"===e)r=function(e,n){const r=new Ws("message",{data:n?e:e.toString()});r[Ns]=this,Hs(t,this,r)};else if("close"===e)r=function(e,n){const r=new zs("close",{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[Ns]=this,Hs(t,this,r)};else if("error"===e)r=function(e){const n=new $s("error",{error:e,message:e.message});n[Ns]=this,Hs(t,this,n)};else{if("open"!==e)return;r=function(){const e=new Gs("open");e[Ns]=this,Hs(t,this,e)}}r[Us]=!!n[Us],r[Ps]=t,n.once?this.once(e,r):this.on(e,r)},removeEventListener(e,t){for(const n of this.listeners(e))if(n[Ps]===t&&!n[Us]){this.removeListener(e,n);break}}};var Vs={CloseEvent:zs,ErrorEvent:$s,Event:Gs,EventTarget:Js,MessageEvent:Ws};function Hs(e,t,n){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}const{tokenChars:Zs}=ns;function Ys(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}var Ks={format:function(e){return Object.keys(e).map((t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map((e=>[t].concat(Object.keys(e).map((t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map((e=>!0===e?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")},parse:function(e){const t=Object.create(null);let n,r,i=Object.create(null),o=!1,u=!1,s=!1,a=-1,c=-1,d=-1,l=0;for(;l<e.length;l++)if(c=e.charCodeAt(l),void 0===n)if(-1===d&&1===Zs[c])-1===a&&(a=l);else if(0===l||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);const r=e.slice(a,d);44===c?(Ys(t,r,i),i=Object.create(null)):n=r,a=d=-1}}else-1===d&&-1!==a&&(d=l);else if(void 0===r)if(-1===d&&1===Zs[c])-1===a&&(a=l);else if(32===c||9===c)-1===d&&-1!==a&&(d=l);else if(59===c||44===c){if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l),Ys(i,e.slice(a,d),!0),44===c&&(Ys(t,n,i),i=Object.create(null),n=void 0),a=d=-1}else{if(61!==c||-1===a||-1!==d)throw new SyntaxError(`Unexpected character at index ${l}`);r=e.slice(a,l),a=d=-1}else if(u){if(1!==Zs[c])throw new SyntaxError(`Unexpected character at index ${l}`);-1===a?a=l:o||(o=!0),u=!1}else if(s)if(1===Zs[c])-1===a&&(a=l);else if(34===c&&-1!==a)s=!1,d=l;else{if(92!==c)throw new SyntaxError(`Unexpected character at index ${l}`);u=!0}else if(34===c&&61===e.charCodeAt(l-1))s=!0;else if(-1===d&&1===Zs[c])-1===a&&(a=l);else if(-1===a||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);let u=e.slice(a,d);o&&(u=u.replace(/\\/g,""),o=!1),Ys(i,r,u),44===c&&(Ys(t,n,i),i=Object.create(null),n=void 0),r=void 0,a=d=-1}}else-1===d&&(d=l);if(-1===a||s||32===c||9===c)throw new SyntaxError("Unexpected end of input");-1===d&&(d=l);const h=e.slice(a,d);return void 0===n?Ys(t,h,i):(void 0===r?Ys(i,h,!0):Ys(i,r,o?h.replace(/\\/g,""):h),Ys(t,n,i)),t}};const{randomBytes:Xs,createHash:Qs}=I,{URL:ea}=a,{isBlob:ta}=ns,{BINARY_TYPES:na,EMPTY_BUFFER:ra,GUID:ia,kForOnEventAttribute:oa,kListener:ua,kStatusCode:sa,kWebSocket:aa,NOOP:ca}=hu,{EventTarget:{addEventListener:da,removeEventListener:la}}=Vs,{format:ha,parse:pa}=Ks,{toBuffer:fa}=Tu,ma=Symbol("kAborted"),va=[8,13],Ea=["CONNECTING","OPEN","CLOSING","CLOSED"],Aa=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class ba extends e{constructor(e,t,n){super(),this._binaryType=na[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=ra,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=ba.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(n=t,t=[]):t=[t]),ga(this,e,t,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){na.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new fs({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),i=new js(e,this._extensions,n.generateMask);this._receiver=r,this._sender=i,this._socket=e,r[aa]=this,i[aa]=this,e[aa]=this,r.on("conclude",Ia),r.on("drain",Ra),r.on("error",ja),r.on("message",_a),r.on("ping",Ua),r.on("pong",Pa),i.onerror=ka,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Ta),e.on("data",La),e.on("end",Na),e.on("error",qa),this._readyState=ba.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=ba.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[Yu.extensionName]&&this._extensions[Yu.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=ba.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==ba.CLOSED)if(this.readyState!==ba.CONNECTING)this.readyState!==ba.CLOSING?(this._readyState=ba.CLOSING,this._sender.close(e,t,!this._isServer,(e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())})),xa(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();else{const e="WebSocket was closed before the connection was established";Da(this,this._req,e)}}pause(){this.readyState!==ba.CONNECTING&&this.readyState!==ba.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,n){if(this.readyState===ba.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===ba.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||ra,t,n)):Ba(this,e,n)}pong(e,t,n){if(this.readyState===ba.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===ba.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||ra,t,n)):Ba(this,e,n)}resume(){this.readyState!==ba.CONNECTING&&this.readyState!==ba.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===ba.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==ba.OPEN)return void Ba(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[Yu.extensionName]||(r.compress=!1),this._sender.send(e||ra,r,n)}terminate(){if(this.readyState!==ba.CLOSED)if(this.readyState!==ba.CONNECTING)this._socket&&(this._readyState=ba.CLOSING,this._socket.destroy());else{const e="WebSocket was closed before the connection was established";Da(this,this._req,e)}}}Object.defineProperty(ba,"CONNECTING",{enumerable:!0,value:Ea.indexOf("CONNECTING")}),Object.defineProperty(ba.prototype,"CONNECTING",{enumerable:!0,value:Ea.indexOf("CONNECTING")}),Object.defineProperty(ba,"OPEN",{enumerable:!0,value:Ea.indexOf("OPEN")}),Object.defineProperty(ba.prototype,"OPEN",{enumerable:!0,value:Ea.indexOf("OPEN")}),Object.defineProperty(ba,"CLOSING",{enumerable:!0,value:Ea.indexOf("CLOSING")}),Object.defineProperty(ba.prototype,"CLOSING",{enumerable:!0,value:Ea.indexOf("CLOSING")}),Object.defineProperty(ba,"CLOSED",{enumerable:!0,value:Ea.indexOf("CLOSED")}),Object.defineProperty(ba.prototype,"CLOSED",{enumerable:!0,value:Ea.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(ba.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(ba.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[oa])return t[ua];return null},set(t){for(const t of this.listeners(e))if(t[oa]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[oa]:!0})}})})),ba.prototype.addEventListener=da,ba.prototype.removeEventListener=la;var ya=ba;function ga(e,t,n,r){const i={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:va[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,!va.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${va.join(", ")})`);let o;if(t instanceof ea)o=t;else try{o=new ea(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===o.protocol?o.protocol="ws:":"https:"===o.protocol&&(o.protocol="wss:"),e._url=o.href;const u="wss:"===o.protocol,a="ws+unix:"===o.protocol;let c;if("ws:"===o.protocol||u||a?a&&!o.pathname?c="The URL's pathname is empty":o.hash&&(c="The URL contains a fragment identifier"):c='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',c){const t=new SyntaxError(c);if(0===e._redirects)throw t;return void Ca(e,t)}const l=u?443:80,h=Xs(16).toString("base64"),p=u?d.request:s.request,f=new Set;let m,v;if(i.createConnection=i.createConnection||(u?Fa:wa),i.defaultPort=i.defaultPort||l,i.port=o.port||l,i.host=o.hostname.startsWith("[")?o.hostname.slice(1,-1):o.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":h,Connection:"Upgrade",Upgrade:"websocket"},i.path=o.pathname+o.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(m=new Yu(!0!==i.perMessageDeflate?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=ha({[Yu.extensionName]:m.offer()})),n.length){for(const e of n){if("string"!=typeof e||!Aa.test(e)||f.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(e)}i.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(o.username||o.password)&&(i.auth=`${o.username}:${o.password}`),a){const e=i.path.split(":");i.socketPath=e[0],i.path=e[1]}if(i.followRedirects){if(0===e._redirects){e._originalIpc=a,e._originalSecure=u,e._originalHostOrSocketPath=a?i.socketPath:o.host;const t=r&&r.headers;if(r={...r,headers:{}},t)for(const[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(0===e.listenerCount("redirect")){const t=a?!!e._originalIpc&&i.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&o.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!u)&&(delete i.headers.authorization,delete i.headers.cookie,t||delete i.headers.host,i.auth=void 0)}i.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),v=e._req=p(i),e._redirects&&e.emit("redirect",e.url,v)}else v=e._req=p(i);i.timeout&&v.on("timeout",(()=>{Da(e,v,"Opening handshake has timed out")})),v.on("error",(t=>{null===v||v[ma]||(v=e._req=null,Ca(e,t))})),v.on("response",(o=>{const u=o.headers.location,s=o.statusCode;if(u&&i.followRedirects&&s>=300&&s<400){if(++e._redirects>i.maxRedirects)return void Da(e,v,"Maximum redirects exceeded");let o;v.abort();try{o=new ea(u,t)}catch(t){const n=new SyntaxError(`Invalid URL: ${u}`);return void Ca(e,n)}ga(e,o,n,r)}else e.emit("unexpected-response",v,o)||Da(e,v,`Unexpected server response: ${o.statusCode}`)})),v.on("upgrade",((t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==ba.CONNECTING)return;v=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void Da(e,n,"Invalid Upgrade header");const u=Qs("sha1").update(h+ia).digest("base64");if(t.headers["sec-websocket-accept"]!==u)return void Da(e,n,"Invalid Sec-WebSocket-Accept header");const s=t.headers["sec-websocket-protocol"];let a;if(void 0!==s?f.size?f.has(s)||(a="Server sent an invalid subprotocol"):a="Server sent a subprotocol but none was requested":f.size&&(a="Server sent no subprotocol"),a)return void Da(e,n,a);s&&(e._protocol=s);const c=t.headers["sec-websocket-extensions"];if(void 0!==c){if(!m){return void Da(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=pa(c)}catch(t){return void Da(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t);if(1!==r.length||r[0]!==Yu.extensionName){return void Da(e,n,"Server indicated an extension that was not requested")}try{m.accept(t[Yu.extensionName])}catch(t){return void Da(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[Yu.extensionName]=m}e.setSocket(n,r,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})})),i.finishRequest?i.finishRequest(v,e):v.end()}function Ca(e,t){e._readyState=ba.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function wa(e){return e.path=e.socketPath,m.connect(e)}function Fa(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=m.isIP(e.host)?"":e.host),B.connect(e)}function Da(e,t,n){e._readyState=ba.CLOSING;const r=new Error(n);Error.captureStackTrace(r,Da),t.setHeader?(t[ma]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(Ca,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function Ba(e,t,n){if(t){const n=ta(t)?t.size:fa(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${Ea[e.readyState]})`);process.nextTick(n,t)}}function Ia(e,t){const n=this[aa];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[aa]&&(n._socket.removeListener("data",La),process.nextTick(Oa,n._socket),1005===e?n.close():n.close(e,t))}function Ra(){const e=this[aa];e.isPaused||e._socket.resume()}function ja(e){const t=this[aa];void 0!==t._socket[aa]&&(t._socket.removeListener("data",La),process.nextTick(Oa,t._socket),t.close(e[sa])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function Sa(){this[aa].emitClose()}function _a(e,t){this[aa].emit("message",e,t)}function Ua(e){const t=this[aa];t._autoPong&&t.pong(e,!this._isServer,ca),t.emit("ping",e)}function Pa(e){this[aa].emit("pong",e)}function Oa(e){e.resume()}function ka(e){const t=this[aa];t.readyState!==ba.CLOSED&&(t.readyState===ba.OPEN&&(t._readyState=ba.CLOSING,xa(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)))}function xa(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),3e4)}function Ta(){const e=this[aa];let t;this.removeListener("close",Ta),this.removeListener("data",La),this.removeListener("end",Na),e._readyState=ba.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[aa]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",Sa),e._receiver.on("finish",Sa))}function La(e){this[aa]._receiver.write(e)||this.pause()}function Na(){const e=this[aa];e._readyState=ba.CLOSING,e._receiver.end(),this.end()}function qa(){const e=this[aa];this.removeListener("error",qa),this.on("error",ca),e&&(e._readyState=ba.CLOSING,this.destroy())}const{Duplex:Ma}=o;function Ga(e){e.emit("close")}function za(){!this.destroyed&&this._writableState.finished&&this.destroy()}function $a(e){this.removeListener("error",$a),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}var Wa=function(e,t){let n=!0;const r=new Ma({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",(function(t,n){const i=!n&&r._readableState.objectMode?t.toString():t;r.push(i)||e.pause()})),e.once("error",(function(e){r.destroyed||(n=!1,r.destroy(e))})),e.once("close",(function(){r.destroyed||r.push(null)})),r._destroy=function(t,i){if(e.readyState===e.CLOSED)return i(t),void process.nextTick(Ga,r);let o=!1;e.once("error",(function(e){o=!0,i(e)})),e.once("close",(function(){o||i(t),process.nextTick(Ga,r)})),n&&e.terminate()},r._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),r._readableState.endEmitted&&r.destroy()):(e._socket.once("finish",(function(){t()})),e.close())):e.once("open",(function(){r._final(t)}))},r._read=function(){e.isPaused&&e.resume()},r._write=function(t,n,i){e.readyState!==e.CONNECTING?e.send(t,i):e.once("open",(function(){r._write(t,n,i)}))},r.on("end",za),r.on("error",$a),r},Ja=function(e){function t(t,n,r,i,o,u){void 0===u&&(u=5e3);var s=e.call(this)||this;s.endpoint=t,s.headers=n,s.rewriteHostHeader=r,s.bindToAssign=i,s.agent=o,s.closeTimeout=u,s.protocol="TCP",s.openConnections=new Set,s.tcpServer=f.createServer(s.handleConnection.bind(s));var a=null==r?void 0:r.altHostnames.map((function(e){return(t=Gt(t=e))&&sr.test(t)?t.replace(ur,"\\$&"):t;var t})).join("|");return s.hostRegex=new RegExp("Host: (?:".concat(a,")(:.*$|$)"),"im"),s}return $(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,void 0,void 0,(function(){var e=this;return V(this,(function(t){return[2,new Promise((function(t){if(e.bindToAssign){var n=e.bindToAssign,r=n.port,i=n.address;e.tcpServer.listen(r,i,(function(){e.emit("tunnel-open",{address:i,port:r}),t({address:i,port:r})}))}else e.tcpServer.listen(0,(function(){var n=e.tcpServer.address(),r=n.address,i=n.port,o="0.0.0.0"===r||"::"===r?"127.0.0.1":r;e.boundTo={address:o,port:i},e.emit("tunnel-open",e.boundTo),t(e.boundTo)}))}))]}))}))},t.prototype.close=function(){return J(this,void 0,void 0,(function(){var e,t=this;return V(this,(function(n){switch(n.label){case 0:return e=!1,[4,Promise.race([new Promise((function(n){t.tcpServer.close((function(){e=!0,t.emit("tunnel-close"),n()}))})),new Promise((function(n){new Promise((function(e){return setTimeout(e,t.closeTimeout)})).then((function(){e||(t.openConnections.forEach((function(e){e.destroy(),t.openConnections.delete(e)})),n())}))}))])];case 1:return n.sent(),[2]}}))}))},t.prototype.handleConnection=function(e){var t=this;this.openConnections.add(e);var n=this.endpoint.replace("https:","wss:"),r=new ya(n,{headers:this.headers,agent:this.agent}),i=Wa(r),o=this.getHeaderTransform();this.rewriteHostHeader&&o?cu(e,o,i):cu(e,i),cu(i,e),r.on("close",(function(e,n,r){t.emit("connection-close",e,n,r)})),i.on("error",(function(e){t.emit("connection-error",e)})),e.on("error",(function(e){t.emit("connection-error",e)})),this.emit("connection-accept")},t.prototype.getHeaderTransform=function(){var e=function(e,t,n){var r=Buffer.from(n),i=Buffer.from(e);return t.forEach((function(e){i=function(e,t,n){var r=Buffer.from(t),i=e.indexOf(r);if(-1===i)return e;var o=e.subarray(0,i),u=e.subarray(i+r.length);return Buffer.concat([o,n,u])}(i,e,r)})),i};if(this.rewriteHostHeader){var t=this.rewriteHostHeader,n=t.targetHostname,r=t.altHostnames,i=this.hostRegex;return new u({transform:function(t,o,u){var s=t.toString();if(s.split("\n",1)[0].includes("HTTP")&&i.test(s)){var a=r.map((function(e){return"Host: ".concat(e)}));u(null,e(t,a,"Host: ".concat(n)))}else u(null,t)}})}},t}(t),Va=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.endpoint=t,o.headers=n,o.bindToAssign=r,o.agent=i,o.protocol="UDP",o.udpSocket=S.createSocket("udp4"),o.handleConnection(),o}return $(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,void 0,void 0,(function(){var e=this;return V(this,(function(t){return[2,new Promise((function(t){if(e.bindToAssign){var n=e.bindToAssign,r=n.port,i=n.address;e.udpSocket.bind(r,i,(function(){e.emit("tunnel-open",{address:i,port:r}),t({address:i,port:r})}))}else e.udpSocket.bind(0,(function(){var n=e.udpSocket.address(),r=n.address,i=n.port,o="0.0.0.0"===r||"::"===r?"127.0.0.1":r;e.boundTo={address:o,port:i},e.emit("tunnel-open",e.boundTo),t(e.boundTo)}))}))]}))}))},t.prototype.close=function(){return J(this,void 0,void 0,(function(){var e=this;return V(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){e.udpSocket.close((function(){e.emit("tunnel-close"),t()}))}))];case 1:return t.sent(),[2]}}))}))},t.prototype.handleConnection=function(){var e,t=this,n=this.endpoint.replace("https:","wss:"),r=new ya(n,{headers:this.headers,agent:this.agent}),i=Wa(r);this.udpSocket.on("message",(function(t,n){e=n,i.write(t)})),i.on("data",(function(n){e&&t.udpSocket.send(n,e.port,e.address,(function(e){e&&t.emit("connection-error",e)}))})),this.udpSocket.on("error",(function(e){t.emit("connection-error",e)})),i.on("error",(function(e){t.emit("connection-error",e)})),r.on("connection-close",(function(e,n,r){t.emit("connection-close",e,n,r)})),r.on("connection-error",(function(e){t.emit("connection-error",e)})),this.emit("connection-accept")},t}(t),Ha=function(e){function t(t,r,i,o){var u=e.call(this)||this;return u.contextProvider=t,u.listServices=r,u.listAddons=i,u.agent=o,u.connections=[],u.hostsFileMutex=new Vo,u.ipAllocationMutex=new Vo,u.stopForwarding=function(e){return J(u,void 0,void 0,(function(){var t,n,r,i,o,u,s;return V(this,(function(a){switch(a.label){case 0:return[4,e.tunnel.close()];case 1:return a.sent(),t=e.forwardingContext,n=t.projectId,r=t.type,i=t.id,o=t.hostnames,u=t.ipOnly,o.length>0&&!u?[4,this.unregisterHostnames(null===(s=e.tunnel.bindTo)||void 0===s?void 0:s.address,o)]:[3,3];case 2:a.sent(),a.label=3;case 3:return this.connections.splice(this.connections.findIndex((function(e){var t=e.forwardingContext,o=t.type,u=t.id,s=t.projectId;return u===i&&s===n&&o===r})),1),[2]}}))}))},u.canExecuteWithHostnames=function(){return"win32"!==process.platform?process.getuid&&0!==process.getuid()?{error:!0,message:"You are not running this command with sufficient privileges (uid=".concat(null===(e=null===process||void 0===process?void 0:process.getuid)||void 0===e?void 0:e.call(process),"). Try running with 'sudo -E'.")}:{error:!1,type:"unix-admin"}:function(){try{return n("fsutil dirty query %systemdrive%"),!0}catch(e){if("ENOENT"===e.code)try{return n("fltmc"),!0}catch(e){return!1}return!1}}()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."};var e},u.assertStartedWithNodejs=function(){if(!go)throw new Error("Port forwarding only possible when started with nodejs")},u.proxyApiClient=new Bo(t,o),u}return $(t,e),t.prototype.withProjectForwarding=function(e,t,n){return void 0===n&&(n=!0),J(this,void 0,void 0,(function(){var r;return V(this,(function(i){switch(i.label){case 0:return[4,this.forwardProject(e,n)];case 1:r=i.sent(),i.label=2;case 2:return i.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,i.sent()];case 4:return[4,this.stopProjectForwarding(e)];case 5:return i.sent(),[7];case 6:return[2]}}))}))},t.prototype.forwardProject=function(e,t){return void 0===t&&(t=!0),J(this,void 0,void 0,(function(){var n,r,i,o,u,s=this;return V(this,(function(a){switch(a.label){case 0:return this.assertStartedWithNodejs(),n=e.projectId,[4,this.listServices.all({parameters:{projectId:n}})];case 1:return r=a.sent(),[4,this.listAddons.all({parameters:{projectId:n}})];case 2:return i=a.sent(),[4,Promise.all(r.data.services.map((function(e){return J(s,void 0,void 0,(function(){return V(this,(function(r){return[2,this.forwardService({projectId:n,serviceId:e.id},t)]}))}))})))];case 3:return o=a.sent(),[4,Promise.all(i.data.addons.map((function(e){return J(s,void 0,void 0,(function(){return V(this,(function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:e.id},t)];case 1:return[2,r.sent()]}}))}))})))];case 4:return u=a.sent(),[2,{services:o,addons:u}]}}))}))},t.prototype.withServiceForwarding=function(e,t,n){return void 0===n&&(n=!0),J(this,void 0,void 0,(function(){var r;return V(this,(function(i){switch(i.label){case 0:return[4,this.forwardService(e,n)];case 1:r=i.sent(),i.label=2;case 2:return i.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,i.sent()];case 4:return[4,this.stopServiceForwarding(e)];case 5:return i.sent(),[7];case 6:return[2]}}))}))},t.prototype.forwardService=function(e,t){return void 0===t&&(t=!0),J(this,void 0,void 0,(function(){var n,r,i,o,u,s,a,c=this;return V(this,(function(d){switch(d.label){case 0:return this.assertStartedWithNodejs(),n=e.projectId,r=e.serviceId,[4,this.proxyApiClient.getServiceDetails(n,r)];case 1:return i=d.sent(),o=i.namespace,u=i.targetDomain,s=i.instances,a=i.ports,0===s.length?[2,[]]:[4,Fo(a,(function(e){var i,a="https://".concat(u,"/tunnel/projects/").concat(n,"/services/").concat(r,"/instance/").concat(s[0].podName,"/port/").concat(e.internalPort),d="".concat(r,".").concat(o,".svc.cluster.local"),l=["".concat(r)];e.name&&l.push("".concat(e.name,".").concat(r)),"HTTP"===e.protocol&&(i={altHostnames:l,targetHostname:d});var h=H([d],l,!0);return c.forwardPort(a,e,h,"service",r,n,t,i)}))];case 2:return[2,d.sent()]}}))}))},t.prototype.withAddonForwarding=function(e,t,n){return void 0===n&&(n=!0),J(this,void 0,void 0,(function(){var r;return V(this,(function(i){switch(i.label){case 0:return[4,this.forwardAddon(e,n)];case 1:r=i.sent(),i.label=2;case 2:return i.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,i.sent()];case 4:return[4,this.stopAddonForwarding(e)];case 5:return i.sent(),[7];case 6:return[2]}}))}))},t.prototype.forwardAddon=function(e,t){return void 0===t&&(t=!0),J(this,void 0,void 0,(function(){var n,r,i,o,u=this;return V(this,(function(s){switch(s.label){case 0:return this.assertStartedWithNodejs(),n=e.addonId,r=e.projectId,[4,this.proxyApiClient.getAddonDetails(r,n)];case 1:return i=s.sent(),o=i.instances.map((function(e){var t=e.podName,n=e.internalHostname;return e.ports.map((function(e){return{podName:t,internalHostname:n,port:e}}))})),[4,Fo((a=o,null!=a&&a.length?Zt(a,dr):[]),(function(e){var o=e.podName,s=e.internalHostname,a=e.port;return J(u,void 0,void 0,(function(){var e;return V(this,(function(u){return e="https://".concat(i.targetDomain,"/tunnel/projects/").concat(r,"/addons/").concat(n,"/instance/").concat(o,"/port/").concat(a.internalPort),[2,this.forwardPort(e,a,[s],"addon",n,r,t)]}))}))}))];case 2:return[2,s.sent()]}var a}))}))},t.prototype.allocateIpAddress=function(e){return J(this,void 0,void 0,(function(){var t=this;return V(this,(function(n){return[2,this.ipAllocationMutex.enter((function(){return J(t,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){switch(u.label){case 0:return t="127.24.1.1",n="127.24.255.255",r=null!==(o=this.nextIpAddress)&&void 0!==o?o:t,[4,Io(e,r,n)];case 1:return i=u.sent(),this.nextIpAddress=_o(So(i)+1),So(this.nextIpAddress)>So(n)&&(this.nextIpAddress=t),[2,i]}}))}))}))]}))}))},t.prototype.forwardPort=function(e,t,n,r,i,o,u,s){var a;return void 0===u&&(u=!0),J(this,void 0,void 0,(function(){var c,d,l,h,p,f,m=this;return V(this,(function(v){switch(v.label){case 0:if(c={Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken())},!u&&(d=this.canExecuteWithHostnames()).error)throw new Error("".concat(d.message," Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))"));return[4,this.determineSocketAddress(o,i,n,r,t,u)];case 1:return l=v.sent(),h="UDP"===t.protocol?new Va(e,c,l,this.agent):new Ja(e,c,s,l,this.agent),u?[3,3]:[4,this.registerHostnames(null===(a=h.bindTo)||void 0===a?void 0:a.address,n)];case 2:v.sent(),v.label=3;case 3:return h.on("connection-accept",(function(){return m.emit("connection-accept",h)})),h.on("connection-close",(function(){return J(m,void 0,void 0,(function(){return V(this,(function(e){return[2,this.emit("connection-close",h)]}))}))})),[4,h.open()];case 4:return p=v.sent(),f={projectId:o,id:i,type:r,hostnames:n,ipOnly:u,port:p.port,address:p.address,protocol:t.protocol,portName:t.name},this.emit("tunnel-open",h,f),h.on("connection-error",(function(e){return m.emit("connection-error",h,f,e)})),h.on("tunnel-close",(function(){return m.emit("tunnel-close",h,f)})),this.connections.push({tunnel:h,forwardingContext:f}),[2,{data:f}]}}))}))},t.prototype.determineSocketAddress=function(e,t,n,r,i,o){return J(this,void 0,void 0,(function(){var u,s,a;return V(this,(function(c){switch(c.label){case 0:return o&&"darwin"===p.platform()?[2,void 0]:(u=this.connections.filter((function(n){return n.forwardingContext.projectId===e&&n.forwardingContext.id===t&&n.forwardingContext.type===r})),(s=null==u?void 0:u.find((function(e){return n.find((function(t){return e.forwardingContext.hostnames.includes(t)}))})))?[2,{address:null==s?void 0:s.forwardingContext.address,port:i.internalPort}]:(a={},[4,this.allocateIpAddress(i.internalPort)]));case 1:return[2,(a.address=c.sent(),a.port=i.internalPort,a)]}}))}))},t.prototype.registerHostnames=function(e,t){return J(this,void 0,void 0,(function(){return V(this,(function(n){switch(n.label){case 0:return[4,this.modifyHostsFile((function(n){n.removeHosts.apply(n,t),n.add.apply(n,H([e],t,!1))}))];case 1:return n.sent(),[2]}}))}))},t.prototype.unregisterHostnames=function(e,t){return J(this,void 0,void 0,(function(){return V(this,(function(n){switch(n.label){case 0:return[4,this.modifyHostsFile((function(n){n.remove.apply(n,H([e],t,!1))}))];case 1:return n.sent(),[2]}}))}))},t.prototype.modifyHostsFile=function(e){return J(this,void 0,void 0,(function(){var t=this;return V(this,(function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter((function(){return J(t,void 0,void 0,(function(){var t,n=this;return V(this,(function(r){switch(r.label){case 0:return[4,Jo.load({header:"Northflank Proxy"})];case 1:return t=r.sent(),e(t),[4,t.backup({suffix:".backup-pre-northflank"})];case 2:r.sent(),r.label=3;case 3:return r.trys.push([3,5,,7]),[4,Za(5)((function(){return J(n,void 0,void 0,(function(){return V(this,(function(e){switch(e.label){case 0:return[4,t.write({writeMode:"atomic"})];case 1:return e.sent(),[2]}}))}))}))];case 4:return r.sent(),[3,7];case 5:return r.sent(),[4,Za(5)((function(){return J(n,void 0,void 0,(function(){return V(this,(function(e){switch(e.label){case 0:return[4,t.write({writeMode:"standard"})];case 1:return e.sent(),[2]}}))}))}))];case 6:return r.sent(),[3,7];case 7:return[2]}}))}))}))];case 1:return n.sent(),[2]}}))}))},t.prototype.stopProjectForwarding=function(e){return J(this,void 0,void 0,(function(){var t=this;return V(this,(function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter((function(t){return t.forwardingContext.projectId===e.projectId})).map((function(e){return t.stopForwarding(e)})))];case 1:return n.sent(),[2]}}))}))},t.prototype.stopServiceForwarding=function(e){return J(this,void 0,void 0,(function(){var t=this;return V(this,(function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter((function(t){return"service"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.serviceId})).map((function(e){return t.stopForwarding(e)})))];case 1:return n.sent(),[2]}}))}))},t.prototype.stopAddonForwarding=function(e){return J(this,void 0,void 0,(function(){var t=this;return V(this,(function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter((function(t){return"addon"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.addonId})).map((function(e){return t.stopForwarding(e)})))];case 1:return n.sent(),[2]}}))}))},t.prototype.stop=function(){return J(this,void 0,void 0,(function(){var e=this;return V(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.connections.map((function(t){return J(e,void 0,void 0,(function(){return V(this,(function(e){return[2,this.stopForwarding(t)]}))}))})))];case 1:return t.sent(),[2]}}))}))},t}(t),Za=function(e,t){return void 0===t&&(t=50),function(n){var r=e,i=function(){return J(void 0,void 0,void 0,(function(){var e;return V(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,4]),[4,n()];case 1:return[2,o.sent()];case 2:if(e=o.sent(),r<=0)throw e;return r-=1,[4,new Promise((function(e){return setTimeout((function(){return e()}),t)}))];case 3:return o.sent(),[2,i()];case 4:return[2]}}))}))};return i()}},Ya=function(e){function t(t,n,r,o,u,s,a){void 0===u&&(u=new i.PassThrough),void 0===s&&(s=new i.PassThrough),void 0===a&&(a=new i.PassThrough);var c=e.call(this)||this;return c.baseUrl=t,c.execConfig=n,c.token=r,c.agent=o,c.stdOut=u,c.stdErr=s,c.stdIn=a,c.waitForCommandResult=function(){return J(c,void 0,void 0,(function(){return V(this,(function(e){switch(e.label){case 0:if(void 0===this.currentCommand)throw new Error("No command is running");return[4,this.currentCommand];case 1:return[2,e.sent()]}}))}))},c.sendInputToCurrentCommand=function(e){return J(c,void 0,void 0,(function(){var t;return V(this,(function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running");return null===(t=this.duplex)||void 0===t||t.write(this.constructPayloadPacket(e)),[2]}))}))},c.resizeTerminal=function(e){return J(c,void 0,void 0,(function(){var t;return V(this,(function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running, can't resize terminal");return null===(t=this.duplex)||void 0===t||t.write(JSON.stringify({type:"resize",data:{ttyRows:null==e?void 0:e.rows,ttyColumns:null==e?void 0:e.columns}})),[2]}))}))},c.constructPayloadPacket=function(e){return JSON.stringify({type:"payload",data:e.toString()})},c.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),c}return $(t,e),Object.defineProperty(t.prototype,"execEndpoint",{get:function(){var e=this.execConfig,t=e.entityId,n=e.entityType,r=e.projectId,i="".concat(this.baseUrl,"/v1/command-exec/projects/").concat(r,"/");return"".concat(i).concat(function(){switch(n){case"service":return"services/".concat(t);case"job":return"jobs/".concat(t);case"addon":return"addons/".concat(t);case"build":return"builds/".concat(t);default:throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}}())},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,(function(){var e=this;return V(this,(function(t){if(void 0!==this.currentCommand)throw new Error("Command is already running");return this.currentCommand=new Promise((function(t,n){var r,i,o;void 0!==e.remote&&n(Error("Command is already running"));var u,s=e.execEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new ya(s,{agent:e.agent});try{e.duplex=Wa(e.remote)}catch(e){throw new Error("Failed to establish connection to command execution proxy: ".concat(e.message))}e.initialAuth(),e.stdIn.on("data",(function(t){var n,r;(null===(n=e.duplex)||void 0===n?void 0:n.writable)&&(null===(r=e.duplex)||void 0===r||r.write(e.constructPayloadPacket(t)))})),e.stdIn.on("end",(function(){var t,n;(null===(t=e.duplex)||void 0===t?void 0:t.writable)&&(null===(n=e.duplex)||void 0===n||n.write(e.stdInEndPacket))})),null===(r=e.duplex)||void 0===r||r.on("data",(function(t){var n,r,i,o,s,c=JSON.parse(t.toString());switch(null==c?void 0:c.type){case"init":var d=c.data;"successful"!==d.auth?a("Command initialization failed: ".concat(null!==(n=null==d?void 0:d.message)&&void 0!==n?n:"Reason unknown")):e.emit("auth-success",u);break;case"completion":u=c.data,e.emit("command-result",u),null===(r=e.duplex)||void 0===r||r.end();break;case"stdOut":e.emit("std-out-data",c.data),e.stdOut.write(c.data,null===(i=e.execConfig)||void 0===i?void 0:i.encoding);break;case"stdErr":e.emit("std-err-data",c.data),e.stdErr.write(c.data,null===(o=e.execConfig)||void 0===o?void 0:o.encoding);break;case"error":a(null===(s=c.data)||void 0===s?void 0:s.message);break;default:var l="unable to parse message: ".concat(JSON.stringify(c));a(l)}})),null===(i=e.duplex)||void 0===i||i.on("end",(function(){e.emit("command-completed"),e.reset(),t(u)})),null===(o=e.duplex)||void 0===o||o.on("error",(function(n){e.emit("error",n),e.emit("command-completed"),e.reset(),t(u)}));var a=function(t){e.emit("error",t),e.reset(),n(new Error(t))};e.emit("command-started")})),[2,this.currentCommand]}))}))},t.prototype.initialAuth=function(){var e,t=this.execConfig,n=t.command,r=t.containerName,i=t.shell,o=t.user,u=t.group,s=t.encoding,a=t.tty,c=t.ttyColumns,d=t.ttyRows,l={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{containerId:r,command:n,shell:i,user:o,group:u,encoding:s,tty:a,ttyColumns:c,ttyRows:d}}};null===(e=this.duplex)||void 0===e||e.write(JSON.stringify(l))},t.prototype.reset=function(){var e;this.remote=void 0,this.currentCommand=void 0,null===(e=this.duplex)||void 0===e||e.destroy(),this.duplex=void 0},t}(t),Ka=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.assertStartedWithNodejs=function(){if(!go)throw new Error("Command exec only possible when started with nodejs")}}return e.prototype.execServiceCommand=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){return n=e.serviceId,r=e.projectId,i=W({projectId:r,entityId:n,entityType:"service"},t),[2,this.execCommand(i)]}))}))},e.prototype.execServiceSession=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){switch(o.label){case 0:return n=e.serviceId,r=e.projectId,i=W({projectId:r,entityId:n,entityType:"service"},t),[4,this.shellSession(i)];case 1:return[2,o.sent()]}}))}))},e.prototype.execJobCommand=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){return n=e.jobId,r=e.projectId,i=W({projectId:r,entityId:n,entityType:"job"},t),[2,this.execCommand(i)]}))}))},e.prototype.execJobSession=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){switch(o.label){case 0:return n=e.jobId,r=e.projectId,i=W({projectId:r,entityId:n,entityType:"job"},t),[4,this.shellSession(i)];case 1:return[2,o.sent()]}}))}))},e.prototype.execCommand=function(e){return J(this,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){switch(i.label){case 0:return this.assertStartedWithNodejs(),t=this.getCommandRunner(W({shell:"none"},e)),n=new Do,r=new Do,t.stdOut.pipe(n),t.stdErr.pipe(r),t.on("error",(function(e){throw new Error(e)})),[4,t.start()];case 1:return[2,{commandResult:i.sent(),stdOut:n.getContentsAsString(),stdErr:r.getContentsAsString()}]}}))}))},e.prototype.shellSession=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:return this.assertStartedWithNodejs(),t=this.getCommandRunner(e),n=new Promise((function(e){t.on("auth-success",(function(){e()}))})),t.start(),[4,n];case 1:return r.sent(),[2,t]}}))}))},e.prototype.getCommandRunner=function(e){var t=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new Ya(t,e,n,this.agent)},e}();const Xa="object"==typeof process&&process?process:{stdout:null,stderr:null},Qa=e=>!!e&&"object"==typeof e&&(e instanceof Tc||e instanceof U||ec(e)||tc(e)),ec=e=>!!e&&"object"==typeof e&&e instanceof _&&"function"==typeof e.pipe&&e.pipe!==U.Writable.prototype.pipe,tc=e=>!!e&&"object"==typeof e&&e instanceof _&&"function"==typeof e.write&&"function"==typeof e.end,nc=Symbol("EOF"),rc=Symbol("maybeEmitEnd"),ic=Symbol("emittedEnd"),oc=Symbol("emittingEnd"),uc=Symbol("emittedError"),sc=Symbol("closed"),ac=Symbol("read"),cc=Symbol("flush"),dc=Symbol("flushChunk"),lc=Symbol("encoding"),hc=Symbol("decoder"),pc=Symbol("flowing"),fc=Symbol("paused"),mc=Symbol("resume"),vc=Symbol("buffer"),Ec=Symbol("pipes"),Ac=Symbol("bufferLength"),bc=Symbol("bufferPush"),yc=Symbol("bufferShift"),gc=Symbol("objectMode"),Cc=Symbol("destroyed"),wc=Symbol("error"),Fc=Symbol("emitData"),Dc=Symbol("emitEnd"),Bc=Symbol("emitEnd2"),Ic=Symbol("async"),Rc=Symbol("abort"),jc=Symbol("aborted"),Sc=Symbol("signal"),_c=Symbol("dataListeners"),Uc=Symbol("discarded"),Pc=e=>Promise.resolve().then(e),Oc=e=>e();class kc{src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[mc](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class xc extends kc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>t.emit("error",e),e.on("error",this.proxyErrors)}}class Tc extends _{[pc]=!1;[fc]=!1;[Ec]=[];[vc]=[];[gc];[lc];[Ic];[hc];[nc]=!1;[ic]=!1;[oc]=!1;[sc]=!1;[uc]=null;[Ac]=0;[Cc]=!1;[Sc];[jc]=!1;[_c]=0;[Uc]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[gc]=!0,this[lc]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[lc]=t.encoding,this[gc]=!1):(this[gc]=!1,this[lc]=null),this[Ic]=!!t.async,this[hc]=this[lc]?new P(this[lc]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[vc]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Ec]});const{signal:n}=t;n&&(this[Sc]=n,n.aborted?this[Rc]():n.addEventListener("abort",(()=>this[Rc]())))}get bufferLength(){return this[Ac]}get encoding(){return this[lc]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[gc]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ic]}set async(e){this[Ic]=this[Ic]||!!e}[Rc](){this[jc]=!0,this.emit("abort",this[Sc]?.reason),this.destroy(this[Sc]?.reason)}get aborted(){return this[jc]}set aborted(e){}write(e,t,n){if(this[jc])return!1;if(this[nc])throw new Error("write after end");if(this[Cc])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");const r=this[Ic]?Pc:Oc;if(!this[gc]&&!Buffer.isBuffer(e))if(i=e,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[gc]?(this[pc]&&0!==this[Ac]&&this[cc](!0),this[pc]?this.emit("data",e):this[bc](e),0!==this[Ac]&&this.emit("readable"),n&&r(n),this[pc]):e.length?("string"!=typeof e||t===this[lc]&&!this[hc]?.lastNeed||(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[lc]&&(e=this[hc].write(e)),this[pc]&&0!==this[Ac]&&this[cc](!0),this[pc]?this.emit("data",e):this[bc](e),0!==this[Ac]&&this.emit("readable"),n&&r(n),this[pc]):(0!==this[Ac]&&this.emit("readable"),n&&r(n),this[pc])}read(e){if(this[Cc])return null;if(this[Uc]=!1,0===this[Ac]||0===e||e&&e>this[Ac])return this[rc](),null;this[gc]&&(e=null),this[vc].length>1&&!this[gc]&&(this[vc]=[this[lc]?this[vc].join(""):Buffer.concat(this[vc],this[Ac])]);const t=this[ac](e||null,this[vc][0]);return this[rc](),t}[ac](e,t){if(this[gc])this[yc]();else{const n=t;e===n.length||null===e?this[yc]():"string"==typeof n?(this[vc][0]=n.slice(e),t=n.slice(0,e),this[Ac]-=e):(this[vc][0]=n.subarray(e),t=n.subarray(0,e),this[Ac]-=e)}return this.emit("data",t),this[vc].length||this[nc]||this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[nc]=!0,this.writable=!1,!this[pc]&&this[fc]||this[rc](),this}[mc](){this[Cc]||(this[_c]||this[Ec].length||(this[Uc]=!0),this[fc]=!1,this[pc]=!0,this.emit("resume"),this[vc].length?this[cc]():this[nc]?this[rc]():this.emit("drain"))}resume(){return this[mc]()}pause(){this[pc]=!1,this[fc]=!0,this[Uc]=!1}get destroyed(){return this[Cc]}get flowing(){return this[pc]}get paused(){return this[fc]}[bc](e){this[gc]?this[Ac]+=1:this[Ac]+=e.length,this[vc].push(e)}[yc](){return this[gc]?this[Ac]-=1:this[Ac]-=this[vc][0].length,this[vc].shift()}[cc](e=!1){do{}while(this[dc](this[yc]())&&this[vc].length);e||this[vc].length||this[nc]||this.emit("drain")}[dc](e){return this.emit("data",e),this[pc]}pipe(e,t){if(this[Cc])return e;this[Uc]=!1;const n=this[ic];return t=t||{},e===Xa.stdout||e===Xa.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[Ec].push(t.proxyErrors?new xc(this,e,t):new kc(this,e,t)),this[Ic]?Pc((()=>this[mc]())):this[mc]()),e}unpipe(e){const t=this[Ec].find((t=>t.dest===e));t&&(1===this[Ec].length?(this[pc]&&0===this[_c]&&(this[pc]=!1),this[Ec]=[]):this[Ec].splice(this[Ec].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const n=super.on(e,t);if("data"===e)this[Uc]=!1,this[_c]++,this[Ec].length||this[pc]||this[mc]();else if("readable"===e&&0!==this[Ac])super.emit("readable");else if((e=>"end"===e||"finish"===e||"prefinish"===e)(e)&&this[ic])super.emit(e),this.removeAllListeners(e);else if("error"===e&&this[uc]){const e=t;this[Ic]?Pc((()=>e.call(this,this[uc]))):e.call(this,this[uc])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){const n=super.off(e,t);return"data"===e&&(this[_c]=this.listeners("data").length,0!==this[_c]||this[Uc]||this[Ec].length||(this[pc]=!1)),n}removeAllListeners(e){const t=super.removeAllListeners(e);return"data"!==e&&void 0!==e||(this[_c]=0,this[Uc]||this[Ec].length||(this[pc]=!1)),t}get emittedEnd(){return this[ic]}[rc](){this[oc]||this[ic]||this[Cc]||0!==this[vc].length||!this[nc]||(this[oc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[sc]&&this.emit("close"),this[oc]=!1)}emit(e,...t){const n=t[0];if("error"!==e&&"close"!==e&&e!==Cc&&this[Cc])return!1;if("data"===e)return!(!this[gc]&&!n)&&(this[Ic]?(Pc((()=>this[Fc](n))),!0):this[Fc](n));if("end"===e)return this[Dc]();if("close"===e){if(this[sc]=!0,!this[ic]&&!this[Cc])return!1;const e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[uc]=n,super.emit(wc,n);const e=!(this[Sc]&&!this.listeners("error").length)&&super.emit("error",n);return this[rc](),e}if("resume"===e){const e=super.emit("resume");return this[rc](),e}if("finish"===e||"prefinish"===e){const t=super.emit(e);return this.removeAllListeners(e),t}const r=super.emit(e,...t);return this[rc](),r}[Fc](e){for(const t of this[Ec])!1===t.dest.write(e)&&this.pause();const t=!this[Uc]&&super.emit("data",e);return this[rc](),t}[Dc](){return!this[ic]&&(this[ic]=!0,this.readable=!1,this[Ic]?(Pc((()=>this[Bc]())),!0):this[Bc]())}[Bc](){if(this[hc]){const e=this[hc].end();if(e){for(const t of this[Ec])t.dest.write(e);this[Uc]||super.emit("data",e)}}for(const e of this[Ec])e.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[gc]||(e.dataLength=0);const t=this.promise();return this.on("data",(t=>{e.push(t),this[gc]||(e.dataLength+=t.length)})),await t,e}async concat(){if(this[gc])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[lc]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise(((e,t)=>{this.on(Cc,(()=>t(new Error("stream destroyed")))),this.on("error",(e=>t(e))),this.on("end",(()=>e()))}))}[Symbol.asyncIterator](){this[Uc]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[nc])return t();let r,i;const o=e=>{this.off("data",u),this.off("end",s),this.off(Cc,a),t(),i(e)},u=e=>{this.off("error",o),this.off("end",s),this.off(Cc,a),this.pause(),r({value:e,done:!!this[nc]})},s=()=>{this.off("error",o),this.off("data",u),this.off(Cc,a),t(),r({done:!0,value:void 0})},a=()=>o(new Error("stream destroyed"));return new Promise(((e,t)=>{i=t,r=e,this.once(Cc,a),this.once("error",o),this.once("end",s),this.once("data",u)}))},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Uc]=!1;let e=!1;const t=()=>(this.pause(),this.off(wc,t),this.off(Cc,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(wc,t),this.once(Cc,t),{next:()=>{if(e)return t();const n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[Cc])return e?this.emit("error",e):this.emit(Cc),this;this[Cc]=!0,this[Uc]=!0,this[vc].length=0,this[Ac]=0;return"function"!=typeof this.close||this[sc]||this.close(),e?this.emit("error",e):this.emit(Cc),this}static get isStream(){return Qa}}const Lc=E.writev,Nc=Symbol("_autoClose"),qc=Symbol("_close"),Mc=Symbol("_ended"),Gc=Symbol("_fd"),zc=Symbol("_finished"),$c=Symbol("_flags"),Wc=Symbol("_flush"),Jc=Symbol("_handleChunk"),Vc=Symbol("_makeBuf"),Hc=Symbol("_mode"),Zc=Symbol("_needDrain"),Yc=Symbol("_onerror"),Kc=Symbol("_onopen"),Xc=Symbol("_onread"),Qc=Symbol("_onwrite"),ed=Symbol("_open"),td=Symbol("_path"),nd=Symbol("_pos"),rd=Symbol("_queue"),id=Symbol("_read"),od=Symbol("_readSize"),ud=Symbol("_reading"),sd=Symbol("_remain"),ad=Symbol("_size"),cd=Symbol("_write"),dd=Symbol("_writing"),ld=Symbol("_defaultFlag"),hd=Symbol("_errored");class pd extends Tc{[hd]=!1;[Gc];[td];[od];[ud]=!1;[ad];[sd];[Nc];constructor(e,t){if(super(t=t||{}),this.readable=!0,this.writable=!1,"string"!=typeof e)throw new TypeError("path must be a string");this[hd]=!1,this[Gc]="number"==typeof t.fd?t.fd:void 0,this[td]=e,this[od]=t.readSize||16777216,this[ud]=!1,this[ad]="number"==typeof t.size?t.size:1/0,this[sd]=this[ad],this[Nc]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[Gc]?this[id]():this[ed]()}get fd(){return this[Gc]}get path(){return this[td]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ed](){E.open(this[td],"r",((e,t)=>this[Kc](e,t)))}[Kc](e,t){e?this[Yc](e):(this[Gc]=t,this.emit("open",t),this[id]())}[Vc](){return Buffer.allocUnsafe(Math.min(this[od],this[sd]))}[id](){if(!this[ud]){this[ud]=!0;const e=this[Vc]();if(0===e.length)return process.nextTick((()=>this[Xc](null,0,e)));E.read(this[Gc],e,0,e.length,null,((e,t,n)=>this[Xc](e,t,n)))}}[Xc](e,t,n){this[ud]=!1,e?this[Yc](e):this[Jc](t,n)&&this[id]()}[qc](){if(this[Nc]&&"number"==typeof this[Gc]){const e=this[Gc];this[Gc]=void 0,E.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}[Yc](e){this[ud]=!0,this[qc](),this.emit("error",e)}[Jc](e,t){let n=!1;return this[sd]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[sd]<=0)&&(n=!1,this[qc](),super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[Gc]&&this[id](),!1;case"error":return!this[hd]&&(this[hd]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}}class fd extends pd{[ed](){let e=!0;try{this[Kc](null,E.openSync(this[td],"r")),e=!1}finally{e&&this[qc]()}}[id](){let e=!0;try{if(!this[ud]){for(this[ud]=!0;;){const e=this[Vc](),t=0===e.length?0:E.readSync(this[Gc],e,0,e.length,null);if(!this[Jc](t,e))break}this[ud]=!1}e=!1}finally{e&&this[qc]()}}[qc](){if(this[Nc]&&"number"==typeof this[Gc]){const e=this[Gc];this[Gc]=void 0,E.closeSync(e),this.emit("close")}}}class md extends e{readable=!1;writable=!0;[hd]=!1;[dd]=!1;[Mc]=!1;[rd]=[];[Zc]=!1;[td];[Hc];[Nc];[Gc];[ld];[$c];[zc]=!1;[nd];constructor(e,t){super(t=t||{}),this[td]=e,this[Gc]="number"==typeof t.fd?t.fd:void 0,this[Hc]=void 0===t.mode?438:t.mode,this[nd]="number"==typeof t.start?t.start:void 0,this[Nc]="boolean"!=typeof t.autoClose||t.autoClose;const n=void 0!==this[nd]?"r+":"w";this[ld]=void 0===t.flags,this[$c]=void 0===t.flags?n:t.flags,void 0===this[Gc]&&this[ed]()}emit(e,...t){if("error"===e){if(this[hd])return!1;this[hd]=!0}return super.emit(e,...t)}get fd(){return this[Gc]}get path(){return this[td]}[Yc](e){this[qc](),this[dd]=!0,this.emit("error",e)}[ed](){E.open(this[td],this[$c],this[Hc],((e,t)=>this[Kc](e,t)))}[Kc](e,t){this[ld]&&"r+"===this[$c]&&e&&"ENOENT"===e.code?(this[$c]="w",this[ed]()):e?this[Yc](e):(this[Gc]=t,this.emit("open",t),this[dd]||this[Wc]())}end(e,t){return e&&this.write(e,t),this[Mc]=!0,this[dd]||this[rd].length||"number"!=typeof this[Gc]||this[Qc](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[Mc]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[Gc]||this[dd]||this[rd].length?(this[rd].push(e),this[Zc]=!0,!1):(this[dd]=!0,this[cd](e),!0)}[cd](e){E.write(this[Gc],e,0,e.length,this[nd],((e,t)=>this[Qc](e,t)))}[Qc](e,t){e?this[Yc](e):(void 0!==this[nd]&&"number"==typeof t&&(this[nd]+=t),this[rd].length?this[Wc]():(this[dd]=!1,this[Mc]&&!this[zc]?(this[zc]=!0,this[qc](),this.emit("finish")):this[Zc]&&(this[Zc]=!1,this.emit("drain"))))}[Wc](){if(0===this[rd].length)this[Mc]&&this[Qc](null,0);else if(1===this[rd].length)this[cd](this[rd].pop());else{const e=this[rd];this[rd]=[],Lc(this[Gc],e,this[nd],((e,t)=>this[Qc](e,t)))}}[qc](){if(this[Nc]&&"number"==typeof this[Gc]){const e=this[Gc];this[Gc]=void 0,E.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}}class vd extends md{[ed](){let e;if(this[ld]&&"r+"===this[$c])try{e=E.openSync(this[td],this[$c],this[Hc])}catch(e){if("ENOENT"===e?.code)return this[$c]="w",this[ed]();throw e}else e=E.openSync(this[td],this[$c],this[Hc]);this[Kc](null,e)}[qc](){if(this[Nc]&&"number"==typeof this[Gc]){const e=this[Gc];this[Gc]=void 0,E.closeSync(e),this.emit("close")}}[cd](e){let t=!0;try{this[Qc](null,E.writeSync(this[Gc],e,0,e.length,this[nd])),t=!1}finally{if(t)try{this[qc]()}catch{}}}}const Ed=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),Ad=e=>{const t=Ed.get(e);return t||e},bd=(e={})=>{if(!e)return{};const t={};for(const[n,r]of Object.entries(e)){t[Ad(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},yd=(e,t,n,r,i)=>Object.assign(((o=[],u,s)=>{Array.isArray(o)&&(u=o,o={}),"function"==typeof u&&(s=u,u=void 0),u=u?Array.from(u):[];const a=bd(o);if(i?.(a,u),(c=a).sync&&c.file){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return e(a,u)}if((e=>!e.sync&&!!e.file)(a)){const e=t(a,u),n=s||void 0;return n?e.then((()=>n()),n):e}if((e=>!!e.sync&&!e.file)(a)){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return n(a,u)}if((e=>!e.sync&&!e.file)(a)){if("function"==typeof s)throw new TypeError("callback only supported with file option");return r(a,u)}throw new Error("impossible options??");var c}),{syncFile:e,asyncFile:t,syncNoFile:n,asyncNoFile:r,validate:i}),gd="object"==typeof process&&process?process:{stdout:null,stderr:null},Cd=e=>!!e&&"object"==typeof e&&(e instanceof ul||e instanceof U||wd(e)||Fd(e)),wd=e=>!!e&&"object"==typeof e&&e instanceof _&&"function"==typeof e.pipe&&e.pipe!==U.Writable.prototype.pipe,Fd=e=>!!e&&"object"==typeof e&&e instanceof _&&"function"==typeof e.write&&"function"==typeof e.end,Dd=Symbol("EOF"),Bd=Symbol("maybeEmitEnd"),Id=Symbol("emittedEnd"),Rd=Symbol("emittingEnd"),jd=Symbol("emittedError"),Sd=Symbol("closed"),_d=Symbol("read"),Ud=Symbol("flush"),Pd=Symbol("flushChunk"),Od=Symbol("encoding"),kd=Symbol("decoder"),xd=Symbol("flowing"),Td=Symbol("paused"),Ld=Symbol("resume"),Nd=Symbol("buffer"),qd=Symbol("pipes"),Md=Symbol("bufferLength"),Gd=Symbol("bufferPush"),zd=Symbol("bufferShift"),$d=Symbol("objectMode"),Wd=Symbol("destroyed"),Jd=Symbol("error"),Vd=Symbol("emitData"),Hd=Symbol("emitEnd"),Zd=Symbol("emitEnd2"),Yd=Symbol("async"),Kd=Symbol("abort"),Xd=Symbol("aborted"),Qd=Symbol("signal"),el=Symbol("dataListeners"),tl=Symbol("discarded"),nl=e=>Promise.resolve().then(e),rl=e=>e();class il{src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[Ld](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class ol extends il{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>t.emit("error",e),e.on("error",this.proxyErrors)}}class ul extends _{[xd]=!1;[Td]=!1;[qd]=[];[Nd]=[];[$d];[Od];[Yd];[kd];[Dd]=!1;[Id]=!1;[Rd]=!1;[Sd]=!1;[jd]=null;[Md]=0;[Wd]=!1;[Qd];[Xd]=!1;[el]=0;[tl]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[$d]=!0,this[Od]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[Od]=t.encoding,this[$d]=!1):(this[$d]=!1,this[Od]=null),this[Yd]=!!t.async,this[kd]=this[Od]?new P(this[Od]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Nd]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[qd]});const{signal:n}=t;n&&(this[Qd]=n,n.aborted?this[Kd]():n.addEventListener("abort",(()=>this[Kd]())))}get bufferLength(){return this[Md]}get encoding(){return this[Od]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[$d]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Yd]}set async(e){this[Yd]=this[Yd]||!!e}[Kd](){this[Xd]=!0,this.emit("abort",this[Qd]?.reason),this.destroy(this[Qd]?.reason)}get aborted(){return this[Xd]}set aborted(e){}write(e,t,n){if(this[Xd])return!1;if(this[Dd])throw new Error("write after end");if(this[Wd])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");const r=this[Yd]?nl:rl;if(!this[$d]&&!Buffer.isBuffer(e))if(i=e,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[$d]?(this[xd]&&0!==this[Md]&&this[Ud](!0),this[xd]?this.emit("data",e):this[Gd](e),0!==this[Md]&&this.emit("readable"),n&&r(n),this[xd]):e.length?("string"!=typeof e||t===this[Od]&&!this[kd]?.lastNeed||(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Od]&&(e=this[kd].write(e)),this[xd]&&0!==this[Md]&&this[Ud](!0),this[xd]?this.emit("data",e):this[Gd](e),0!==this[Md]&&this.emit("readable"),n&&r(n),this[xd]):(0!==this[Md]&&this.emit("readable"),n&&r(n),this[xd])}read(e){if(this[Wd])return null;if(this[tl]=!1,0===this[Md]||0===e||e&&e>this[Md])return this[Bd](),null;this[$d]&&(e=null),this[Nd].length>1&&!this[$d]&&(this[Nd]=[this[Od]?this[Nd].join(""):Buffer.concat(this[Nd],this[Md])]);const t=this[_d](e||null,this[Nd][0]);return this[Bd](),t}[_d](e,t){if(this[$d])this[zd]();else{const n=t;e===n.length||null===e?this[zd]():"string"==typeof n?(this[Nd][0]=n.slice(e),t=n.slice(0,e),this[Md]-=e):(this[Nd][0]=n.subarray(e),t=n.subarray(0,e),this[Md]-=e)}return this.emit("data",t),this[Nd].length||this[Dd]||this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[Dd]=!0,this.writable=!1,!this[xd]&&this[Td]||this[Bd](),this}[Ld](){this[Wd]||(this[el]||this[qd].length||(this[tl]=!0),this[Td]=!1,this[xd]=!0,this.emit("resume"),this[Nd].length?this[Ud]():this[Dd]?this[Bd]():this.emit("drain"))}resume(){return this[Ld]()}pause(){this[xd]=!1,this[Td]=!0,this[tl]=!1}get destroyed(){return this[Wd]}get flowing(){return this[xd]}get paused(){return this[Td]}[Gd](e){this[$d]?this[Md]+=1:this[Md]+=e.length,this[Nd].push(e)}[zd](){return this[$d]?this[Md]-=1:this[Md]-=this[Nd][0].length,this[Nd].shift()}[Ud](e=!1){do{}while(this[Pd](this[zd]())&&this[Nd].length);e||this[Nd].length||this[Dd]||this.emit("drain")}[Pd](e){return this.emit("data",e),this[xd]}pipe(e,t){if(this[Wd])return e;this[tl]=!1;const n=this[Id];return t=t||{},e===gd.stdout||e===gd.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[qd].push(t.proxyErrors?new ol(this,e,t):new il(this,e,t)),this[Yd]?nl((()=>this[Ld]())):this[Ld]()),e}unpipe(e){const t=this[qd].find((t=>t.dest===e));t&&(1===this[qd].length?(this[xd]&&0===this[el]&&(this[xd]=!1),this[qd]=[]):this[qd].splice(this[qd].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const n=super.on(e,t);if("data"===e)this[tl]=!1,this[el]++,this[qd].length||this[xd]||this[Ld]();else if("readable"===e&&0!==this[Md])super.emit("readable");else if((e=>"end"===e||"finish"===e||"prefinish"===e)(e)&&this[Id])super.emit(e),this.removeAllListeners(e);else if("error"===e&&this[jd]){const e=t;this[Yd]?nl((()=>e.call(this,this[jd]))):e.call(this,this[jd])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){const n=super.off(e,t);return"data"===e&&(this[el]=this.listeners("data").length,0!==this[el]||this[tl]||this[qd].length||(this[xd]=!1)),n}removeAllListeners(e){const t=super.removeAllListeners(e);return"data"!==e&&void 0!==e||(this[el]=0,this[tl]||this[qd].length||(this[xd]=!1)),t}get emittedEnd(){return this[Id]}[Bd](){this[Rd]||this[Id]||this[Wd]||0!==this[Nd].length||!this[Dd]||(this[Rd]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Sd]&&this.emit("close"),this[Rd]=!1)}emit(e,...t){const n=t[0];if("error"!==e&&"close"!==e&&e!==Wd&&this[Wd])return!1;if("data"===e)return!(!this[$d]&&!n)&&(this[Yd]?(nl((()=>this[Vd](n))),!0):this[Vd](n));if("end"===e)return this[Hd]();if("close"===e){if(this[Sd]=!0,!this[Id]&&!this[Wd])return!1;const e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[jd]=n,super.emit(Jd,n);const e=!(this[Qd]&&!this.listeners("error").length)&&super.emit("error",n);return this[Bd](),e}if("resume"===e){const e=super.emit("resume");return this[Bd](),e}if("finish"===e||"prefinish"===e){const t=super.emit(e);return this.removeAllListeners(e),t}const r=super.emit(e,...t);return this[Bd](),r}[Vd](e){for(const t of this[qd])!1===t.dest.write(e)&&this.pause();const t=!this[tl]&&super.emit("data",e);return this[Bd](),t}[Hd](){return!this[Id]&&(this[Id]=!0,this.readable=!1,this[Yd]?(nl((()=>this[Zd]())),!0):this[Zd]())}[Zd](){if(this[kd]){const e=this[kd].end();if(e){for(const t of this[qd])t.dest.write(e);this[tl]||super.emit("data",e)}}for(const e of this[qd])e.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[$d]||(e.dataLength=0);const t=this.promise();return this.on("data",(t=>{e.push(t),this[$d]||(e.dataLength+=t.length)})),await t,e}async concat(){if(this[$d])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[Od]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise(((e,t)=>{this.on(Wd,(()=>t(new Error("stream destroyed")))),this.on("error",(e=>t(e))),this.on("end",(()=>e()))}))}[Symbol.asyncIterator](){this[tl]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[Dd])return t();let r,i;const o=e=>{this.off("data",u),this.off("end",s),this.off(Wd,a),t(),i(e)},u=e=>{this.off("error",o),this.off("end",s),this.off(Wd,a),this.pause(),r({value:e,done:!!this[Dd]})},s=()=>{this.off("error",o),this.off("data",u),this.off(Wd,a),t(),r({done:!0,value:void 0})},a=()=>o(new Error("stream destroyed"));return new Promise(((e,t)=>{i=t,r=e,this.once(Wd,a),this.once("error",o),this.once("end",s),this.once("data",u)}))},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[tl]=!1;let e=!1;const t=()=>(this.pause(),this.off(Jd,t),this.off(Wd,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(Jd,t),this.once(Wd,t),{next:()=>{if(e)return t();const n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[Wd])return e?this.emit("error",e):this.emit(Wd),this;this[Wd]=!0,this[tl]=!0,this[Nd].length=0,this[Md]=0;return"function"!=typeof this.close||this[Sd]||this.close(),e?this.emit("error",e):this.emit(Wd),this}static get isStream(){return Cd}}const sl=h.constants||{ZLIB_VERNUM:4736},al=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},sl)),cl=j.concat,dl=Object.getOwnPropertyDescriptor(j,"concat"),ll=e=>e,hl=!0===dl?.writable||void 0!==dl?.set?e=>{j.concat=e?ll:cl}:e=>{},pl=Symbol("_superWrite");class fl extends Error{code;errno;constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const ml=Symbol("flushFlag");class vl extends ul{#e=!1;#t=!1;#n;#r;#i;#o;#u;get sawError(){return this.#e}get handle(){return this.#o}get flushFlag(){return this.#n}constructor(e,t){if(!e||"object"!=typeof e)throw new TypeError("invalid options for ZlibBase constructor");super(e),this.#n=e.flush??0,this.#r=e.finishFlush??0,this.#i=e.fullFlushFlag??0;try{this.#o=new l[t](e)}catch(e){throw new fl(e)}this.#u=e=>{this.#e||(this.#e=!0,this.close(),this.emit("error",e))},this.#o?.on("error",(e=>this.#u(new fl(e)))),this.once("end",(()=>this.close))}close(){this.#o&&(this.#o.close(),this.#o=void 0,this.emit("close"))}reset(){if(!this.#e)return q(this.#o,"zlib binding closed"),this.#o.reset?.()}flush(e){this.ended||("number"!=typeof e&&(e=this.#i),this.write(Object.assign(j.alloc(0),{[ml]:e})))}end(e,t,n){return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&(t?this.write(e,t):this.write(e)),this.flush(this.#r),this.#t=!0,super.end(n)}get ended(){return this.#t}[pl](e){return super.write(e)}write(e,t,n){if("function"==typeof t&&(n=t,t="utf8"),"string"==typeof e&&(e=j.from(e,t)),this.#e)return;q(this.#o,"zlib binding closed");const r=this.#o._handle,i=r.close;r.close=()=>{};const o=this.#o.close;let u,s;this.#o.close=()=>{},hl(!0);try{const t="number"==typeof e[ml]?e[ml]:this.#n;u=this.#o._processChunk(e,t),hl(!1)}catch(e){hl(!1),this.#u(new fl(e))}finally{this.#o&&(this.#o._handle=r,r.close=i,this.#o.close=o,this.#o.removeAllListeners("error"))}if(this.#o&&this.#o.on("error",(e=>this.#u(new fl(e)))),u)if(Array.isArray(u)&&u.length>0){const e=u[0];s=this[pl](j.from(e));for(let e=1;e<u.length;e++)s=this[pl](u[e])}else s=this[pl](j.from(u));return n&&n(),s}}class El extends vl{#s;#a;constructor(e,t){(e=e||{}).flush=e.flush||al.Z_NO_FLUSH,e.finishFlush=e.finishFlush||al.Z_FINISH,e.fullFlushFlag=al.Z_FULL_FLUSH,super(e,t),this.#s=e.level,this.#a=e.strategy}params(e,t){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#s!==e||this.#a!==t){this.flush(al.Z_SYNC_FLUSH),q(this.handle,"zlib binding closed");const n=this.handle.flush;this.handle.flush=(e,t)=>{"function"==typeof e&&(t=e,e=this.flushFlag),this.flush(e),t?.()};try{this.handle.params(e,t)}finally{this.handle.flush=n}this.handle&&(this.#s=e,this.#a=t)}}}}class Al extends El{#c;constructor(e){super(e,"Gzip"),this.#c=e&&!!e.portable}[pl](e){return this.#c?(this.#c=!1,e[9]=255,super[pl](e)):super[pl](e)}}class bl extends El{constructor(e){super(e,"Unzip")}}class yl extends vl{constructor(e,t){(e=e||{}).flush=e.flush||al.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||al.BROTLI_OPERATION_FINISH,e.fullFlushFlag=al.BROTLI_OPERATION_FLUSH,super(e,t)}}class gl extends yl{constructor(e){super(e,"BrotliCompress")}}class Cl extends yl{constructor(e){super(e,"BrotliDecompress")}}class wl{tail;head;length=0;static create(e=[]){return new wl(e)}constructor(e=[]){for(const t of e)this.push(t)}*[Symbol.iterator](){for(let e=this.head;e;e=e.next)yield e.value}removeNode(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");const t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),this.length--,e.next=void 0,e.prev=void 0,e.list=void 0,t}unshiftNode(e){if(e===this.head)return;e.list&&e.list.removeNode(e);const t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}pushNode(e){if(e===this.tail)return;e.list&&e.list.removeNode(e);const t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}push(...e){for(let t=0,n=e.length;t<n;t++)Dl(this,e[t]);return this.length}unshift(...e){for(var t=0,n=e.length;t<n;t++)Bl(this,e[t]);return this.length}pop(){if(!this.tail)return;const e=this.tail.value,t=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,t.list=void 0,this.length--,e}shift(){if(!this.head)return;const e=this.head.value,t=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,t.list=void 0,this.length--,e}forEach(e,t){t=t||this;for(let n=this.head,r=0;n;r++)e.call(t,n.value,r,this),n=n.next}forEachReverse(e,t){t=t||this;for(let n=this.tail,r=this.length-1;n;r--)e.call(t,n.value,r,this),n=n.prev}get(e){let t=0,n=this.head;for(;n&&t<e;t++)n=n.next;if(t===e&&n)return n.value}getReverse(e){let t=0,n=this.tail;for(;n&&t<e;t++)n=n.prev;if(t===e&&n)return n.value}map(e,t){t=t||this;const n=new wl;for(let r=this.head;r;)n.push(e.call(t,r.value,this)),r=r.next;return n}mapReverse(e,t){t=t||this;var n=new wl;for(let r=this.tail;r;)n.push(e.call(t,r.value,this)),r=r.prev;return n}reduce(e,t){let n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;r;i++)n=e(n,r.value,i),r=r.next;return n}reduceReverse(e,t){let n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(let t=this.length-1;r;t--)n=e(n,r.value,t),r=r.prev;return n}toArray(){const e=new Array(this.length);for(let t=0,n=this.head;n;t++)e[t]=n.value,n=n.next;return e}toArrayReverse(){const e=new Array(this.length);for(let t=0,n=this.tail;n;t++)e[t]=n.value,n=n.prev;return e}slice(e=0,t=this.length){t<0&&(t+=this.length),e<0&&(e+=this.length);const n=new wl;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);let r=this.head,i=0;for(i=0;r&&i<e;i++)r=r.next;for(;r&&i<t;i++,r=r.next)n.push(r.value);return n}sliceReverse(e=0,t=this.length){t<0&&(t+=this.length),e<0&&(e+=this.length);const n=new wl;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);let r=this.length,i=this.tail;for(;i&&r>t;r--)i=i.prev;for(;i&&r>e;r--,i=i.prev)n.push(i.value);return n}splice(e,t=0,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);let r=this.head;for(let t=0;r&&t<e;t++)r=r.next;const i=[];for(let e=0;r&&e<t;e++)i.push(r.value),r=this.removeNode(r);r?r!==this.tail&&(r=r.prev):r=this.tail;for(const e of n)r=Fl(this,r,e);return i}reverse(){const e=this.head,t=this.tail;for(let t=e;t;t=t.prev){const e=t.prev;t.prev=t.next,t.next=e}return this.head=t,this.tail=e,this}}function Fl(e,t,n){const r=t,i=t?t.next:e.head,o=new Il(n,r,i,e);return void 0===o.next&&(e.tail=o),void 0===o.prev&&(e.head=o),e.length++,o}function Dl(e,t){e.tail=new Il(t,e.tail,void 0,e),e.head||(e.head=e.tail),e.length++}function Bl(e,t){e.head=new Il(t,void 0,e.head,e),e.tail||(e.tail=e.head),e.length++}class Il{list;next;prev;value;constructor(e,t,n,r){this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=void 0,n?(n.prev=this,this.next=n):this.next=void 0}}const Rl=(e,t)=>{t[0]=128;for(var n=t.length;n>1;n--)t[n-1]=255&e,e=Math.floor(e/256)},jl=(e,t)=>{t[0]=255;var n=!1;e*=-1;for(var r=t.length;r>1;r--){var i=255&e;e=Math.floor(e/256),n?t[r-1]=Ul(i):0===i?t[r-1]=0:(n=!0,t[r-1]=Pl(i))}},Sl=e=>{for(var t=e.length,n=0,r=!1,i=t-1;i>-1;i--){var o,u=Number(e[i]);r?o=Ul(u):0===u?o=u:(r=!0,o=Pl(u)),0!==o&&(n-=o*Math.pow(256,t-i-1))}return n},_l=e=>{for(var t=e.length,n=0,r=t-1;r>-1;r--){var i=Number(e[r]);0!==i&&(n+=i*Math.pow(256,t-r-1))}return n},Ul=e=>255&(255^e),Pl=e=>1+(255^e)&255,Ol=e=>kl.has(e),kl=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),xl=new Map(Array.from(kl).map((e=>[e[1],e[0]])));class Tl{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#d="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(e,t=0,n,r){Buffer.isBuffer(e)?this.decode(e,t||0,n,r):e&&this.#l(e)}decode(e,t,n,r){if(t||(t=0),!(e&&e.length>=t+512))throw new Error("need 512 bytes for header");this.path=Nl(e,t,100),this.mode=Gl(e,t+100,8),this.uid=Gl(e,t+108,8),this.gid=Gl(e,t+116,8),this.size=Gl(e,t+124,12),this.mtime=ql(e,t+136,12),this.cksum=Gl(e,t+148,12),r&&this.#l(r,!0),n&&this.#l(n);const i=Nl(e,t+156,1);if(Ol(i)&&(this.#d=i||"0"),"0"===this.#d&&"/"===this.path.slice(-1)&&(this.#d="5"),"5"===this.#d&&(this.size=0),this.linkpath=Nl(e,t+157,100),"ustar\x0000"===e.subarray(t+257,t+265).toString())if(this.uname=Nl(e,t+265,32),this.gname=Nl(e,t+297,32),this.devmaj=Gl(e,t+329,8)??0,this.devmin=Gl(e,t+337,8)??0,0!==e[t+475]){const n=Nl(e,t+345,155);this.path=n+"/"+this.path}else{const n=Nl(e,t+345,130);n&&(this.path=n+"/"+this.path),this.atime=ql(e,t+476,12),this.ctime=ql(e,t+488,12)}let o=256;for(let n=t;n<t+148;n++)o+=e[n];for(let n=t+156;n<t+512;n++)o+=e[n];this.cksumValid=o===this.cksum,void 0===this.cksum&&256===o&&(this.nullBlock=!0)}#l(e,t=!1){Object.assign(this,Object.fromEntries(Object.entries(e).filter((([e,n])=>!(null==n||"path"===e&&t||"linkpath"===e&&t||"global"===e)))))}encode(e,t=0){if(e||(e=this.block=Buffer.alloc(512)),"Unsupported"===this.#d&&(this.#d="0"),!(e.length>=t+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155,r=Ll(this.path||"",n),i=r[0],o=r[1];this.needPax=!!r[2],this.needPax=Kl(e,t,100,i)||this.needPax,this.needPax=Wl(e,t+100,8,this.mode)||this.needPax,this.needPax=Wl(e,t+108,8,this.uid)||this.needPax,this.needPax=Wl(e,t+116,8,this.gid)||this.needPax,this.needPax=Wl(e,t+124,12,this.size)||this.needPax,this.needPax=Zl(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this.#d.charCodeAt(0),this.needPax=Kl(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=Kl(e,t+265,32,this.uname)||this.needPax,this.needPax=Kl(e,t+297,32,this.gname)||this.needPax,this.needPax=Wl(e,t+329,8,this.devmaj)||this.needPax,this.needPax=Wl(e,t+337,8,this.devmin)||this.needPax,this.needPax=Kl(e,t+345,n,o)||this.needPax,0!==e[t+475]?this.needPax=Kl(e,t+345,155,o)||this.needPax:(this.needPax=Kl(e,t+345,130,o)||this.needPax,this.needPax=Zl(e,t+476,12,this.atime)||this.needPax,this.needPax=Zl(e,t+488,12,this.ctime)||this.needPax);let u=256;for(let n=t;n<t+148;n++)u+=e[n];for(let n=t+156;n<t+512;n++)u+=e[n];return this.cksum=u,Wl(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#d?this.#d:kl.get(this.#d)}get typeKey(){return this.#d}set type(e){const t=String(xl.get(e));if(Ol(t)||"Unsupported"===t)this.#d=t;else{if(!Ol(e))throw new TypeError("invalid entry type: "+e);this.#d=e}}}const Ll=(e,t)=>{const n=100;let r,i=e,o="";const u=k.parse(e).root||".";if(Buffer.byteLength(i)<n)r=[i,o,!1];else{o=k.dirname(i),i=k.basename(i);do{Buffer.byteLength(i)<=n&&Buffer.byteLength(o)<=t?r=[i,o,!1]:Buffer.byteLength(i)>n&&Buffer.byteLength(o)<=t?r=[i.slice(0,99),o,!0]:(i=k.join(k.basename(o),i),o=k.dirname(o))}while(o!==u&&void 0===r);r||(r=[e.slice(0,99),"",!0])}return r},Nl=(e,t,n)=>e.subarray(t,t+n).toString("utf8").replace(/\0.*/,""),ql=(e,t,n)=>Ml(Gl(e,t,n)),Ml=e=>void 0===e?void 0:new Date(1e3*e),Gl=(e,t,n)=>128&Number(e[t])?(e=>{const t=e[0],n=128===t?_l(e.subarray(1,e.length)):255===t?Sl(e):null;if(null===n)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n})(e.subarray(t,t+n)):zl(e,t,n),zl=(e,t,n)=>{return r=parseInt(e.subarray(t,t+n).toString("utf8").replace(/\0.*$/,"").trim(),8),isNaN(r)?void 0:r;var r},$l={12:8589934591,8:2097151},Wl=(e,t,n,r)=>void 0!==r&&(r>$l[n]||r<0?(((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");e<0?jl(e,t):Rl(e,t)})(r,e.subarray(t,t+n)),!0):(Jl(e,t,n,r),!1)),Jl=(e,t,n,r)=>e.write(Vl(r,n),t,n,"ascii"),Vl=(e,t)=>Hl(Math.floor(e).toString(8),t),Hl=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",Zl=(e,t,n,r)=>void 0!==r&&Wl(e,t,n,r.getTime()/1e3),Yl=new Array(156).join("\0"),Kl=(e,t,n,r)=>void 0!==r&&(e.write(r+Yl,t,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);class Xl{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(e,t=!1){this.atime=e.atime,this.charset=e.charset,this.comment=e.comment,this.ctime=e.ctime,this.dev=e.dev,this.gid=e.gid,this.global=t,this.gname=e.gname,this.ino=e.ino,this.linkpath=e.linkpath,this.mtime=e.mtime,this.nlink=e.nlink,this.path=e.path,this.size=e.size,this.uid=e.uid,this.uname=e.uname}encode(){const e=this.encodeBody();if(""===e)return Buffer.allocUnsafe(0);const t=Buffer.byteLength(e),n=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(n);for(let e=0;e<512;e++)r[e]=0;new Tl({path:("PaxHeader/"+x(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:t,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(r),r.write(e,512,t,"utf8");for(let e=t+512;e<r.length;e++)r[e]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(void 0===this[e])return"";const t=this[e],n=" "+("dev"===e||"ino"===e||"nlink"===e?"SCHILY.":"")+e+"="+(t instanceof Date?t.getTime()/1e3:t)+"\n",r=Buffer.byteLength(n);let i=Math.floor(Math.log(r)/Math.log(10))+1;r+i>=Math.pow(10,i)&&(i+=1);return i+r+n}static parse(e,t,n=!1){return new Xl(Ql(eh(e),t),n)}}const Ql=(e,t)=>t?Object.assign({},t,e):e,eh=e=>e.replace(/\n$/,"").split("\n").reduce(th,Object.create(null)),th=(e,t)=>{const n=parseInt(t,10);if(n!==Buffer.byteLength(t)+1)return e;const r=(t=t.slice((n+" ").length)).split("="),i=r.shift();if(!i)return e;const o=i.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),u=r.join("=");return e[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(1e3*Number(u)):/^[0-9]+$/.test(u)?+u:u,e},nh="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?e=>e:e=>e&&e.replace(/\\/g,"/");class rh extends ul{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(e,t,n){switch(super({}),this.pause(),this.extended=t,this.globalExtended=n,this.header=e,this.remain=e.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),this.blockRemain=this.startBlockSize,this.type=e.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!e.path)throw new Error("no path provided for tar.ReadEntry");this.path=nh(e.path),this.mode=e.mode,this.mode&&(this.mode=4095&this.mode),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=this.remain,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath?nh(e.linkpath):void 0,this.uname=e.uname,this.gname=e.gname,t&&this.#l(t),n&&this.#l(n,!0)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain,r=this.blockRemain;return this.remain=Math.max(0,n-t),this.blockRemain=Math.max(0,r-t),!!this.ignore||(n>=t?super.write(e):super.write(e.subarray(0,n)))}#l(e,t=!1){e.path&&(e.path=nh(e.path)),e.linkpath&&(e.linkpath=nh(e.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(e).filter((([e,n])=>!(null==n||"path"===e&&t)))))}}const ih=(e,t,n,r={})=>{e.file&&(r.file=e.file),e.cwd&&(r.cwd=e.cwd),r.code=n instanceof Error&&n.code||t,r.tarCode=t,e.strict||!1===r.recoverable?n instanceof Error?e.emit("error",Object.assign(n,r)):e.emit("error",Object.assign(new Error(`${t}: ${n}`),r)):(n instanceof Error&&(r=Object.assign(n,r),n=n.message),e.emit("warn",t,n,r))},oh=Buffer.from([31,139]),uh=Symbol("state"),sh=Symbol("writeEntry"),ah=Symbol("readEntry"),ch=Symbol("nextEntry"),dh=Symbol("processEntry"),lh=Symbol("extendedHeader"),hh=Symbol("globalExtendedHeader"),ph=Symbol("meta"),fh=Symbol("emitMeta"),mh=Symbol("buffer"),vh=Symbol("queue"),Eh=Symbol("ended"),Ah=Symbol("emittedEnd"),bh=Symbol("emit"),yh=Symbol("unzip"),gh=Symbol("consumeChunk"),Ch=Symbol("consumeChunkSub"),wh=Symbol("consumeBody"),Fh=Symbol("consumeMeta"),Dh=Symbol("consumeHeader"),Bh=Symbol("consuming"),Ih=Symbol("bufferConcat"),Rh=Symbol("maybeEnd"),jh=Symbol("writing"),Sh=Symbol("aborted"),_h=Symbol("onDone"),Uh=Symbol("sawValidEntry"),Ph=Symbol("sawNullBlock"),Oh=Symbol("sawEOF"),kh=Symbol("closeStream"),xh=()=>!0;class Th extends t{file;strict;maxMetaEntrySize;filter;brotli;writable=!0;readable=!1;[vh]=new wl;[mh];[ah];[sh];[uh]="begin";[ph]="";[lh];[hh];[Eh]=!1;[yh];[Sh]=!1;[Uh];[Ph]=!1;[Oh]=!1;[jh]=!1;[Bh]=!1;[Ah]=!1;constructor(e={}){super(),this.file=e.file||"",this.on(_h,(()=>{"begin"!==this[uh]&&!1!==this[Uh]||this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")})),e.ondone?this.on(_h,e.ondone):this.on(_h,(()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")})),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||1048576,this.filter="function"==typeof e.filter?e.filter:xh;const t=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=e.gzip||void 0===e.brotli?!!t&&void 0:e.brotli,this.on("end",(()=>this[kh]())),"function"==typeof e.onwarn&&this.on("warn",e.onwarn),"function"==typeof e.onReadEntry&&this.on("entry",e.onReadEntry)}warn(e,t,n={}){ih(this,e,t,n)}[Dh](e,t){let n;void 0===this[Uh]&&(this[Uh]=!1);try{n=new Tl(e,t,this[lh],this[hh])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}if(n.nullBlock)this[Ph]?(this[Oh]=!0,"begin"===this[uh]&&(this[uh]="header"),this[bh]("eof")):(this[Ph]=!0,this[bh]("nullBlock"));else if(this[Ph]=!1,n.cksumValid)if(n.path){const e=n.type;if(/^(Symbolic)?Link$/.test(e)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(/^(Symbolic)?Link$/.test(e)||/^(Global)?ExtendedHeader$/.test(e)||!n.linkpath){const e=this[sh]=new rh(n,this[lh],this[hh]);if(!this[Uh])if(e.remain){const t=()=>{e.invalid||(this[Uh]=!0)};e.on("end",t)}else this[Uh]=!0;e.meta?e.size>this.maxMetaEntrySize?(e.ignore=!0,this[bh]("ignoredEntry",e),this[uh]="ignore",e.resume()):e.size>0&&(this[ph]="",e.on("data",(e=>this[ph]+=e)),this[uh]="meta"):(this[lh]=void 0,e.ignore=e.ignore||!this.filter(e.path,e),e.ignore?(this[bh]("ignoredEntry",e),this[uh]=e.remain?"ignore":"header",e.resume()):(e.remain?this[uh]="body":(this[uh]="header",e.end()),this[ah]?this[vh].push(e):(this[vh].push(e),this[ch]())))}else this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n})}else this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n})}[kh](){queueMicrotask((()=>this.emit("close")))}[dh](e){let t=!0;if(e)if(Array.isArray(e)){const[t,...n]=e;this.emit(t,...n)}else this[ah]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",(()=>this[ch]())),t=!1);else this[ah]=void 0,t=!1;return t}[ch](){do{}while(this[dh](this[vh].shift()));if(!this[vh].length){const e=this[ah];!e||e.flowing||e.size===e.remain?this[jh]||this.emit("drain"):e.once("drain",(()=>this.emit("drain")))}}[wh](e,t){const n=this[sh];if(!n)throw new Error("attempt to consume body without entry??");const r=n.blockRemain??0,i=r>=e.length&&0===t?e:e.subarray(t,t+r);return n.write(i),n.blockRemain||(this[uh]="header",this[sh]=void 0,n.end()),i.length}[Fh](e,t){const n=this[sh],r=this[wh](e,t);return!this[sh]&&n&&this[fh](n),r}[bh](e,t,n){this[vh].length||this[ah]?this[vh].push([e,t,n]):this.emit(e,t,n)}[fh](e){switch(this[bh]("meta",this[ph]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[lh]=Xl.parse(this[ph],this[lh],!1);break;case"GlobalExtendedHeader":this[hh]=Xl.parse(this[ph],this[hh],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{const e=this[lh]??Object.create(null);this[lh]=e,e.path=this[ph].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{const e=this[lh]||Object.create(null);this[lh]=e,e.linkpath=this[ph].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Sh]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this[Sh])return n?.(),!1;if((void 0===this[yh]||void 0===this.brotli&&!1===this[yh])&&e){if(this[mh]&&(e=Buffer.concat([this[mh],e]),this[mh]=void 0),e.length<oh.length)return this[mh]=e,n?.(),!0;for(let t=0;void 0===this[yh]&&t<oh.length;t++)e[t]!==oh[t]&&(this[yh]=!1);const t=void 0===this.brotli;if(!1===this[yh]&&t)if(e.length<512){if(!this[Eh])return this[mh]=e,n?.(),!0;this.brotli=!0}else try{new Tl(e.subarray(0,512)),this.brotli=!1}catch(e){this.brotli=!0}if(void 0===this[yh]||!1===this[yh]&&this.brotli){const t=this[Eh];this[Eh]=!1,this[yh]=void 0===this[yh]?new bl({}):new Cl({}),this[yh].on("data",(e=>this[gh](e))),this[yh].on("error",(e=>this.abort(e))),this[yh].on("end",(()=>{this[Eh]=!0,this[gh]()})),this[jh]=!0;const r=!!this[yh][t?"end":"write"](e);return this[jh]=!1,n?.(),r}}this[jh]=!0,this[yh]?this[yh].write(e):this[gh](e),this[jh]=!1;const r=!this[vh].length&&(!this[ah]||this[ah].flowing);return r||this[vh].length||this[ah]?.once("drain",(()=>this.emit("drain"))),n?.(),r}[Ih](e){e&&!this[Sh]&&(this[mh]=this[mh]?Buffer.concat([this[mh],e]):e)}[Rh](){if(this[Eh]&&!this[Ah]&&!this[Sh]&&!this[Bh]){this[Ah]=!0;const e=this[sh];if(e&&e.blockRemain){const t=this[mh]?this[mh].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[mh]&&e.write(this[mh]),e.end()}this[bh](_h)}}[gh](e){if(this[Bh]&&e)this[Ih](e);else if(e||this[mh]){if(e){if(this[Bh]=!0,this[mh]){this[Ih](e);const t=this[mh];this[mh]=void 0,this[Ch](t)}else this[Ch](e);for(;this[mh]&&this[mh]?.length>=512&&!this[Sh]&&!this[Oh];){const e=this[mh];this[mh]=void 0,this[Ch](e)}this[Bh]=!1}}else this[Rh]();this[mh]&&!this[Eh]||this[Rh]()}[Ch](e){let t=0;const n=e.length;for(;t+512<=n&&!this[Sh]&&!this[Oh];)switch(this[uh]){case"begin":case"header":this[Dh](e,t),t+=512;break;case"ignore":case"body":t+=this[wh](e,t);break;case"meta":t+=this[Fh](e,t);break;default:throw new Error("invalid state: "+this[uh])}t<n&&(this[mh]?this[mh]=Buffer.concat([e.subarray(t),this[mh]]):this[mh]=e.subarray(t))}end(e,t,n){return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t)),n&&this.once("finish",n),this[Sh]||(this[yh]?(e&&this[yh].write(e),this[yh].end()):(this[Eh]=!0,void 0===this.brotli&&(e=e||Buffer.alloc(0)),e&&this.write(e),this[Rh]())),this}}const Lh=e=>{let t=e.length-1,n=-1;for(;t>-1&&"/"===e.charAt(t);)n=t,t--;return-1===n?e:e.slice(0,n)},Nh=(e,t)=>{const n=new Map(t.map((e=>[Lh(e),!0]))),r=e.filter,i=(e,t="")=>{const r=t||w(e).root||".";let o;if(e===r)o=!1;else{const t=n.get(e);o=void 0!==t?t:i(F(e),r)}return n.set(e,o),o};e.filter=r?(e,t)=>r(e,t)&&i(Lh(e)):e=>i(Lh(e))},qh=yd((e=>{const t=new Th(e),n=e.file;let r;try{const i=N.statSync(n),o=e.maxReadSize||16777216;if(i.size<o)t.end(N.readFileSync(n));else{let e=0;const u=Buffer.allocUnsafe(o);for(r=N.openSync(n,"r");e<i.size;){const n=N.readSync(r,u,0,o,e);e+=n,t.write(u.subarray(0,n))}t.end()}}finally{if("number"==typeof r)try{N.closeSync(r)}catch(e){}}}),((e,t)=>{const n=new Th(e),r=e.maxReadSize||16777216,i=e.file,o=new Promise(((e,t)=>{n.on("error",t),n.on("end",e),N.stat(i,((e,o)=>{if(e)t(e);else{const e=new pd(i,{readSize:r,size:o.size});e.on("error",t),e.pipe(n)}}))}));return o}),(e=>new Th(e)),(e=>new Th(e)),((e,t)=>{t?.length&&Nh(e,t),e.noResume||(e=>{const t=e.onReadEntry;e.onReadEntry=t?e=>{t(e),e.resume()}:e=>e.resume()})(e)})),Mh=(e,t,n)=>(e&=4095,n&&(e=-19&e|384),t&&(256&e&&(e|=64),32&e&&(e|=8),4&e&&(e|=1)),e),{isAbsolute:Gh,parse:zh}=T,$h=e=>{let t="",n=zh(e);for(;Gh(e)||n.root;){const r="/"===e.charAt(0)&&"//?/"!==e.slice(0,4)?"/":n.root;e=e.slice(r.length),t+=r,n=zh(e)}return[t,e]},Wh=["|","<",">","?",":"],Jh=Wh.map((e=>String.fromCharCode(61440+e.charCodeAt(0)))),Vh=new Map(Wh.map(((e,t)=>[e,Jh[t]]))),Hh=new Map(Jh.map(((e,t)=>[e,Wh[t]]))),Zh=e=>Wh.reduce(((e,t)=>e.split(t).join(Vh.get(t))),e),Yh=(e,t)=>t?(e=nh(e).replace(/^\.(\/|$)/,""),Lh(t)+"/"+e):nh(e),Kh=Symbol("process"),Xh=Symbol("file"),Qh=Symbol("directory"),ep=Symbol("symlink"),tp=Symbol("hardlink"),np=Symbol("header"),rp=Symbol("read"),ip=Symbol("lstat"),op=Symbol("onlstat"),up=Symbol("onread"),sp=Symbol("onreadlink"),ap=Symbol("openfile"),cp=Symbol("onopenfile"),dp=Symbol("close"),lp=Symbol("mode"),hp=Symbol("awaitDrain"),pp=Symbol("ondrain"),fp=Symbol("prefix");class mp extends ul{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#h=!1;constructor(e,t={}){const n=bd(t);super(),this.path=nh(e),this.portable=!!n.portable,this.maxReadSize=n.maxReadSize||16777216,this.linkCache=n.linkCache||new Map,this.statCache=n.statCache||new Map,this.preservePaths=!!n.preservePaths,this.cwd=nh(n.cwd||process.cwd()),this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?nh(n.prefix):void 0,this.onWriteEntry=n.onWriteEntry,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let r=!1;if(!this.preservePaths){const[e,t]=$h(this.path);e&&"string"==typeof t&&(this.path=t,r=e)}var i;this.win32=!!n.win32||"win32"===process.platform,this.win32&&(this.path=(i=this.path.replace(/\\/g,"/"),Jh.reduce(((e,t)=>e.split(t).join(Hh.get(t))),i)),e=e.replace(/\\/g,"/")),this.absolute=nh(n.absolute||C.resolve(this.cwd,e)),""===this.path&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path});const o=this.statCache.get(this.absolute);o?this[op](o):this[ip]()}warn(e,t,n={}){return ih(this,e,t,n)}emit(e,...t){return"error"===e&&(this.#h=!0),super.emit(e,...t)}[ip](){E.lstat(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[op](t)}))}[op](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=Ap(e),this.emit("stat",e),this[Kh]()}[Kh](){switch(this.type){case"File":return this[Xh]();case"Directory":return this[Qh]();case"SymbolicLink":return this[ep]();default:return this.end()}}[lp](e){return Mh(e,"Directory"===this.type,this.portable)}[fp](e){return Yh(e,this.prefix)}[np](){if(!this.stat)throw new Error("cannot write header before stat");"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new Tl({path:this[fp](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[fp](this.linkpath):this.linkpath,mode:this[lp](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:"Unsupported"===this.type?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Xl({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[fp](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[fp](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());const e=this.header?.block;if(!e)throw new Error("failed to encode header");super.write(e)}[Qh](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[np](),this.end()}[ep](){E.readlink(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[sp](t)}))}[sp](e){this.linkpath=nh(e),this[np](),this.end()}[tp](e){if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=nh(C.relative(this.cwd,e)),this.stat.size=0,this[np](),this.end()}[Xh](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){const e=`${this.stat.dev}:${this.stat.ino}`,t=this.linkCache.get(e);if(0===t?.indexOf(this.cwd))return this[tp](t);this.linkCache.set(e,this.absolute)}if(this[np](),0===this.stat.size)return this.end();this[ap]()}[ap](){E.open(this.absolute,"r",((e,t)=>{if(e)return this.emit("error",e);this[cp](t)}))}[cp](e){if(this.fd=e,this.#h)return this[dp]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;const t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[rp]()}[rp](){const{fd:e,buf:t,offset:n,length:r,pos:i}=this;if(void 0===e||void 0===t)throw new Error("cannot read file without first opening");E.read(e,t,n,r,i,((e,t)=>{if(e)return this[dp]((()=>this.emit("error",e)));this[up](t)}))}[dp](e=()=>{}){void 0!==this.fd&&E.close(this.fd,e)}[up](e){if(e<=0&&this.remain>0){const e=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[dp]((()=>this.emit("error",e)))}if(e>this.remain){const e=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[dp]((()=>this.emit("error",e)))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(e===this.remain)for(let t=e;t<this.length&&e<this.blockRemain;t++)this.buf[t+this.offset]=0,e++,this.remain++;const t=0===this.offset&&e===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+e);this.write(t)?this[pp]():this[hp]((()=>this[pp]()))}[hp](e){this.once("drain",e)}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this.blockRemain<e.length){const e=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",e)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e,null,n)}[pp](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[dp]((e=>e?this.emit("error",e):this.end()));if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[rp]()}}class vp extends mp{sync=!0;[ip](){this[op](E.lstatSync(this.absolute))}[ep](){this[sp](E.readlinkSync(this.absolute))}[ap](){this[cp](E.openSync(this.absolute,"r"))}[rp](){let e=!0;try{const{fd:t,buf:n,offset:r,length:i,pos:o}=this;if(void 0===t||void 0===n)throw new Error("fd and buf must be set in READ method");const u=E.readSync(t,n,r,i,o);this[up](u),e=!1}finally{if(e)try{this[dp]((()=>{}))}catch(e){}}}[hp](e){e()}[dp](e=()=>{}){void 0!==this.fd&&E.closeSync(this.fd),e()}}class Ep extends ul{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(e,t,n={}){return ih(this,e,t,n)}constructor(e,t={}){const n=bd(t);super(),this.preservePaths=!!n.preservePaths,this.portable=!!n.portable,this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.onWriteEntry=n.onWriteEntry,this.readEntry=e;const{type:r}=e;if("Unsupported"===r)throw new Error("writing entry that should be ignored");this.type=r,"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.prefix=n.prefix,this.path=nh(e.path),this.mode=void 0!==e.mode?this[lp](e.mode):void 0,this.uid=this.portable?void 0:e.uid,this.gid=this.portable?void 0:e.gid,this.uname=this.portable?void 0:e.uname,this.gname=this.portable?void 0:e.gname,this.size=e.size,this.mtime=this.noMtime?void 0:n.mtime||e.mtime,this.atime=this.portable?void 0:e.atime,this.ctime=this.portable?void 0:e.ctime,this.linkpath=void 0!==e.linkpath?nh(e.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let i=!1;if(!this.preservePaths){const[e,t]=$h(this.path);e&&"string"==typeof t&&(this.path=t,i=e)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.onWriteEntry?.(this),this.header=new Tl({path:this[fp](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[fp](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Xl({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[fp](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[fp](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());const o=this.header?.block;if(!o)throw new Error("failed to encode header");super.write(o),e.pipe(this)}[fp](e){return Yh(e,this.prefix)}[lp](e){return Mh(e,"Directory"===this.type,this.portable)}write(e,t,n){"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8"));const r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e,n)}end(e,t,n){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t??"utf8")),n&&this.once("finish",n),e?super.end(e,n):super.end(n),this}}const Ap=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";class bp{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(e,t){this.path=e||"./",this.absolute=t}}const yp=Buffer.alloc(1024),gp=Symbol("onStat"),Cp=Symbol("ended"),wp=Symbol("queue"),Fp=Symbol("current"),Dp=Symbol("process"),Bp=Symbol("processing"),Ip=Symbol("processJob"),Rp=Symbol("jobs"),jp=Symbol("jobDone"),Sp=Symbol("addFSEntry"),_p=Symbol("addTarEntry"),Up=Symbol("stat"),Pp=Symbol("readdir"),Op=Symbol("onreaddir"),kp=Symbol("pipe"),xp=Symbol("entry"),Tp=Symbol("entryOpt"),Lp=Symbol("writeEntryClass"),Np=Symbol("write"),qp=Symbol("ondrain");class Mp extends ul{opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[Lp];onWriteEntry;[wp];[Rp]=0;[Bp]=!1;[Cp]=!1;constructor(e={}){if(super(),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=nh(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this.onWriteEntry=e.onWriteEntry,this[Lp]=mp,"function"==typeof e.onwarn&&this.on("warn",e.onwarn),this.portable=!!e.portable,e.gzip||e.brotli){if(e.gzip&&e.brotli)throw new TypeError("gzip and brotli are mutually exclusive");if(e.gzip&&("object"!=typeof e.gzip&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new Al(e.gzip)),e.brotli&&("object"!=typeof e.brotli&&(e.brotli={}),this.zip=new gl(e.brotli)),!this.zip)throw new Error("impossible");const t=this.zip;t.on("data",(e=>super.write(e))),t.on("end",(()=>super.end())),t.on("drain",(()=>this[qp]())),this.on("resume",(()=>t.resume()))}else this.on("drain",this[qp]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,e.mtime&&(this.mtime=e.mtime),this.filter="function"==typeof e.filter?e.filter:()=>!0,this[wp]=new wl,this[Rp]=0,this.jobs=Number(e.jobs)||4,this[Bp]=!1,this[Cp]=!1}[Np](e){return super.write(e)}add(e){return this.write(e),this}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&this.add(e),this[Cp]=!0,this[Dp](),n&&n(),this}write(e){if(this[Cp])throw new Error("write after end");return e instanceof rh?this[_p](e):this[Sp](e),this.flowing}[_p](e){const t=nh(C.resolve(this.cwd,e.path));if(this.filter(e.path,e)){const n=new bp(e.path,t);n.entry=new Ep(e,this[Tp](n)),n.entry.on("end",(()=>this[jp](n))),this[Rp]+=1,this[wp].push(n)}else e.resume();this[Dp]()}[Sp](e){const t=nh(C.resolve(this.cwd,e));this[wp].push(new bp(e,t)),this[Dp]()}[Up](e){e.pending=!0,this[Rp]+=1;const t=this.follow?"stat":"lstat";E[t](e.absolute,((t,n)=>{e.pending=!1,this[Rp]-=1,t?this.emit("error",t):this[gp](e,n)}))}[gp](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[Dp]()}[Pp](e){e.pending=!0,this[Rp]+=1,E.readdir(e.absolute,((t,n)=>{if(e.pending=!1,this[Rp]-=1,t)return this.emit("error",t);this[Op](e,n)}))}[Op](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[Dp]()}[Dp](){if(!this[Bp]){this[Bp]=!0;for(let e=this[wp].head;e&&this[Rp]<this.jobs;e=e.next)if(this[Ip](e.value),e.value.ignore){const t=e.next;this[wp].removeNode(e),e.next=t}this[Bp]=!1,this[Cp]&&!this[wp].length&&0===this[Rp]&&(this.zip?this.zip.end(yp):(super.write(yp),super.end()))}}get[Fp](){return this[wp]&&this[wp].head&&this[wp].head.value}[jp](e){this[wp].shift(),this[Rp]-=1,this[Dp]()}[Ip](e){if(!e.pending)if(e.entry)e!==this[Fp]||e.piped||this[kp](e);else{if(!e.stat){const t=this.statCache.get(e.absolute);t?this[gp](e,t):this[Up](e)}if(e.stat&&!e.ignore){if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){const t=this.readdirCache.get(e.absolute);if(t?this[Op](e,t):this[Pp](e),!e.readdir)return}e.entry=this[xp](e),e.entry?e!==this[Fp]||e.piped||this[kp](e):e.ignore=!0}}}[Tp](e){return{onwarn:(e,t,n)=>this.warn(e,t,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[xp](e){this[Rp]+=1;try{return new this[Lp](e.path,this[Tp](e)).on("end",(()=>this[jp](e))).on("error",(e=>this.emit("error",e)))}catch(e){this.emit("error",e)}}[qp](){this[Fp]&&this[Fp].entry&&this[Fp].entry.resume()}[kp](e){e.piped=!0,e.readdir&&e.readdir.forEach((t=>{const n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Sp](r+t)}));const t=e.entry,n=this.zip;if(!t)throw new Error("cannot pipe without source");n?t.on("data",(e=>{n.write(e)||t.pause()})):t.on("data",(e=>{super.write(e)||t.pause()}))}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(e,t,n={}){ih(this,e,t,n)}}class Gp extends Mp{sync=!0;constructor(e){super(e),this[Lp]=vp}pause(){}resume(){}[Up](e){const t=this.follow?"statSync":"lstatSync";this[gp](e,E[t](e.absolute))}[Pp](e){this[Op](e,E.readdirSync(e.absolute))}[kp](e){const t=e.entry,n=this.zip;if(e.readdir&&e.readdir.forEach((t=>{const n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Sp](r+t)})),!t)throw new Error("Cannot pipe without source");n?t.on("data",(e=>{n.write(e)})):t.on("data",(e=>{super[Np](e)}))}}const zp=(e,t)=>{t.forEach((t=>{"@"===t.charAt(0)?qh({file:O.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)})),e.end()},$p=async(e,t)=>{for(let n=0;n<t.length;n++){const r=String(t[n]);"@"===r.charAt(0)?await qh({file:O.resolve(String(e.cwd),r.slice(1)),noResume:!0,onReadEntry:t=>{e.add(t)}}):e.add(r)}e.end()},Wp=yd(((e,t)=>{const n=new Gp(e),r=new vd(e.file,{mode:e.mode||438});n.pipe(r),zp(n,t)}),((e,t)=>{const n=new Mp(e),r=new md(e.file,{mode:e.mode||438});n.pipe(r);const i=new Promise(((e,t)=>{r.on("error",t),r.on("close",e),n.on("error",t)}));return $p(n,t),i}),((e,t)=>{const n=new Gp(e);return zp(n,t),n}),((e,t)=>{const n=new Mp(e);return $p(n,t),n}),((e,t)=>{if(!t?.length)throw new TypeError("no paths specified to add to archive")})),Jp="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:Vp,O_TRUNC:Hp,O_WRONLY:Zp}=E.constants,Yp=Number(process.env.__FAKE_FS_O_FILENAME__)||E.constants.UV_FS_O_FILEMAP||0,Kp=Yp|Hp|Vp|Zp,Xp=Jp&&!!Yp?e=>e<524288?Kp:"w":()=>"w",Qp=(e,t,n)=>{try{return N.lchownSync(e,t,n)}catch(e){if("ENOENT"!==e?.code)throw e}},ef=(e,t,n,r)=>{N.lchown(e,t,n,(e=>{r(e&&"ENOENT"!==e?.code?e:null)}))},tf=(e,t,n,r,i)=>{if(t.isDirectory())nf(O.resolve(e,t.name),n,r,(o=>{if(o)return i(o);const u=O.resolve(e,t.name);ef(u,n,r,i)}));else{const o=O.resolve(e,t.name);ef(o,n,r,i)}},nf=(e,t,n,r)=>{N.readdir(e,{withFileTypes:!0},((i,o)=>{if(i){if("ENOENT"===i.code)return r();if("ENOTDIR"!==i.code&&"ENOTSUP"!==i.code)return r(i)}if(i||!o.length)return ef(e,t,n,r);let u=o.length,s=null;const a=i=>{if(!s)return i?r(s=i):0===--u?ef(e,t,n,r):void 0};for(const r of o)tf(e,r,t,n,a)}))},rf=(e,t,n,r)=>{t.isDirectory()&&of(O.resolve(e,t.name),n,r),Qp(O.resolve(e,t.name),n,r)},of=(e,t,n)=>{let r;try{r=N.readdirSync(e,{withFileTypes:!0})}catch(r){const i=r;if("ENOENT"===i?.code)return;if("ENOTDIR"===i?.code||"ENOTSUP"===i?.code)return Qp(e,t,n);throw i}for(const i of r)rf(e,i,t,n);return Qp(e,t,n)},uf=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||A,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((r,i)=>t.mkdir(e,n,((e,t)=>e?i(e):r(t))))),e.stat=e.stat||n.stat||b,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,r)=>t.stat(e,((e,t)=>e?r(e):n(t))))),e.statSync=e.statSync||n.statSync||y,e.mkdirSync=e.mkdirSync||n.mkdirSync||g,t},sf=(e,t,n)=>{const r=F(e),i={...uf(t),recursive:!1};if(r===e)try{return i.mkdirSync(e,i)}catch(e){if(e&&"EISDIR"!==e.code)throw e;return}try{return i.mkdirSync(e,i),n||e}catch(t){const o=t;if(o&&"ENOENT"===o.code)return sf(e,i,sf(r,i,n));if(o&&"EEXIST"!==o.code&&o&&"EROFS"!==o.code)throw t;try{if(!i.statSync(e).isDirectory())throw t}catch(e){throw t}}},af=Object.assign((async(e,t,n)=>{const r=uf(t);r.recursive=!1;const i=F(e);return i===e?r.mkdirAsync(e,r).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):r.mkdirAsync(e,r).then((()=>n||e),(async t=>{const o=t;if(o&&"ENOENT"===o.code)return af(i,r).then((t=>af(e,r,t)));if(o&&"EEXIST"!==o.code&&"EROFS"!==o.code)throw t;return r.statAsync(e).then((e=>{if(e.isDirectory())return n;throw t}),(()=>{throw t}))}))}),{sync:sf}),cf=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?cf(e,F(t),t):void 0))},df=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(n){return n&&"ENOENT"===n.code?df(e,F(t),t):void 0}},lf=(e,t)=>{const n=uf(t);n.recursive=!0;if(F(e)===e)return n.mkdirSync(e,n);const r=df(n,e);try{return n.mkdirSync(e,n),r}catch(t){if(t&&"ENOENT"===t.code)return sf(e,n);throw t}},hf=Object.assign((async(e,t)=>{const n={...uf(t),recursive:!0};return F(e)===e?await n.mkdirAsync(e,n):cf(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return af(e,n);throw t}))))}),{sync:lf}),pf=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,ff=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=D(e),"win32"===pf){const t=/[*|"<>?:]/,{root:n}=w(e);if(t.test(e.substring(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},mf=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),vf=+mf[0]>10||10===+mf[0]&&+mf[1]>=12,Ef=vf?e=>uf(e).mkdirSync===g:()=>!1,Af=Object.assign(vf?e=>uf(e).mkdir===A:()=>!1,{sync:Ef}),bf=(e,t)=>{e=ff(e);const n=uf(t);return Ef(n)?lf(e,n):sf(e,n)},yf=Object.assign((async(e,t)=>{e=ff(e);const n=uf(t);return Af(n)?hf(e,n):af(e,n)}),{mkdirpSync:bf,mkdirpNative:hf,mkdirpNativeSync:lf,mkdirpManual:af,mkdirpManualSync:sf,sync:bf,native:hf,nativeSync:lf,manual:af,manualSync:sf,useNative:Af,useNativeSync:Ef});class gf extends Error{path;code;syscall="chdir";constructor(e,t){super(`${t}: Cannot cd into '${e}'`),this.path=e,this.code=t}get name(){return"CwdError"}}class Cf extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(e,t){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=e,this.path=t}get name(){return"SymlinkError"}}const wf=(e,t)=>e.get(nh(t)),Ff=(e,t,n)=>e.set(nh(t),n),Df=(e,t,n)=>{e=nh(e);const r=t.umask??18,i=448|t.mode,o=0!==(i&r),u=t.uid,s=t.gid,a="number"==typeof u&&"number"==typeof s&&(u!==t.processUid||s!==t.processGid),c=t.preserve,d=t.unlink,l=t.cache,h=nh(t.cwd),p=(t,r)=>{t?n(t):(Ff(l,e,!0),r&&a?nf(r,u,s,(e=>p(e))):o?E.chmod(e,i,n):n())};if(l&&!0===wf(l,e))return p();if(e===h)return((e,t)=>{E.stat(e,((n,r)=>{!n&&r.isDirectory()||(n=new gf(e,n?.code||"ENOTDIR")),t(n)}))})(e,p);if(c)return yf(e,{mode:i}).then((e=>p(null,e??void 0)),p);const f=nh(O.relative(h,e)).split("/");Bf(h,f,i,l,d,h,void 0,p)},Bf=(e,t,n,r,i,o,u,s)=>{if(!t.length)return s(null,u);const a=t.shift(),c=nh(O.resolve(e+"/"+a));if(wf(r,c))return Bf(c,t,n,r,i,o,u,s);E.mkdir(c,n,If(c,t,n,r,i,o,u,s))},If=(e,t,n,r,i,o,u,s)=>a=>{a?E.lstat(e,((c,d)=>{if(c)c.path=c.path&&nh(c.path),s(c);else if(d.isDirectory())Bf(e,t,n,r,i,o,u,s);else if(i)E.unlink(e,(a=>{if(a)return s(a);E.mkdir(e,n,If(e,t,n,r,i,o,u,s))}));else{if(d.isSymbolicLink())return s(new Cf(e,e+"/"+t.join("/")));s(a)}})):Bf(e,t,n,r,i,o,u=u||e,s)},Rf=(e,t)=>{e=nh(e);const n=t.umask??18,r=448|t.mode,i=0!==(r&n),o=t.uid,u=t.gid,s="number"==typeof o&&"number"==typeof u&&(o!==t.processUid||u!==t.processGid),a=t.preserve,c=t.unlink,d=t.cache,l=nh(t.cwd),h=t=>{Ff(d,e,!0),t&&s&&of(t,o,u),i&&E.chmodSync(e,r)};if(d&&!0===wf(d,e))return h();if(e===l)return(e=>{let t,n=!1;try{n=E.statSync(e).isDirectory()}catch(e){t=e?.code}finally{if(!n)throw new gf(e,t??"ENOTDIR")}})(l),h();if(a)return h(bf(e,r)??void 0);const p=nh(O.relative(l,e)).split("/");let f;for(let e=p.shift(),t=l;e&&(t+="/"+e);e=p.shift())if(t=nh(O.resolve(t)),!wf(d,t))try{E.mkdirSync(t,r),f=f||t,Ff(d,t,!0)}catch(e){const n=E.lstatSync(t);if(n.isDirectory()){Ff(d,t,!0);continue}if(c){E.unlinkSync(t),E.mkdirSync(t,r),f=f||t,Ff(d,t,!0);continue}if(n.isSymbolicLink())return new Cf(t,t+"/"+p.join("/"))}return h(f)},jf=Object.create(null),{hasOwnProperty:Sf}=Object.prototype,_f=e=>(Sf.call(jf,e)||(jf[e]=e.normalize("NFD")),jf[e]),Uf="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform);class Pf{#p=new Map;#f=new Map;#m=new Set;reserve(e,t){e=Uf?["win32 parallelization disabled"]:e.map((e=>Lh(L(_f(e))).toLowerCase()));const n=new Set(e.map((e=>(e=>{const t=e.split("/").slice(0,-1).reduce(((e,t)=>{const n=e[e.length-1];return void 0!==n&&(t=L(n,t)),e.push(t||"/"),e}),[]);return t})(e))).reduce(((e,t)=>e.concat(t))));this.#f.set(t,{dirs:n,paths:e});for(const n of e){const e=this.#p.get(n);e?e.push(t):this.#p.set(n,[t])}for(const e of n){const n=this.#p.get(e);if(n){const e=n[n.length-1];e instanceof Set?e.add(t):n.push(new Set([t]))}else this.#p.set(e,[new Set([t])])}return this.#v(t)}#E(e){const t=this.#f.get(e);if(!t)throw new Error("function does not have any path reservations");return{paths:t.paths.map((e=>this.#p.get(e))),dirs:[...t.dirs].map((e=>this.#p.get(e)))}}check(e){const{paths:t,dirs:n}=this.#E(e);return t.every((t=>t&&t[0]===e))&&n.every((t=>t&&t[0]instanceof Set&&t[0].has(e)))}#v(e){return!(this.#m.has(e)||!this.check(e))&&(this.#m.add(e),e((()=>this.#A(e))),!0)}#A(e){if(!this.#m.has(e))return!1;const t=this.#f.get(e);if(!t)throw new Error("invalid reservation");const{paths:n,dirs:r}=t,i=new Set;for(const t of n){const n=this.#p.get(t);if(!n||n?.[0]!==e)continue;const r=n[1];if(r)if(n.shift(),"function"==typeof r)i.add(r);else for(const e of r)i.add(e);else this.#p.delete(t)}for(const t of r){const n=this.#p.get(t),r=n?.[0];if(n&&r instanceof Set)if(1!==r.size||1!==n.length)if(1===r.size){n.shift();const e=n[0];"function"==typeof e&&i.add(e)}else r.delete(e);else this.#p.delete(t)}return this.#m.delete(e),i.forEach((e=>this.#v(e))),!0}}const Of=Symbol("onEntry"),kf=Symbol("checkFs"),xf=Symbol("checkFs2"),Tf=Symbol("pruneCache"),Lf=Symbol("isReusable"),Nf=Symbol("makeFs"),qf=Symbol("file"),Mf=Symbol("directory"),Gf=Symbol("link"),zf=Symbol("symlink"),$f=Symbol("hardlink"),Wf=Symbol("unsupported"),Jf=Symbol("checkPath"),Vf=Symbol("mkdir"),Hf=Symbol("onError"),Zf=Symbol("pending"),Yf=Symbol("pend"),Kf=Symbol("unpend"),Xf=Symbol("ended"),Qf=Symbol("maybeClose"),em=Symbol("skip"),tm=Symbol("doChown"),nm=Symbol("uid"),rm=Symbol("gid"),im=Symbol("checkedCwd"),om="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),um=(e,t,n)=>void 0!==e&&e===e>>>0?e:void 0!==t&&t===t>>>0?t:n,sm=e=>Lh(nh(_f(e))).toLowerCase();class am extends Th{[Xf]=!1;[im]=!1;[Zf]=0;reservations=new Pf;transform;writable=!0;readable=!1;dirCache;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(e={}){if(e.ondone=()=>{this[Xf]=!0,this[Qf]()},super(e),this.transform=e.transform,this.dirCache=e.dirCache||new Map,this.chmod=!!e.chmod,"number"==typeof e.uid||"number"==typeof e.gid){if("number"!=typeof e.uid||"number"!=typeof e.gid)throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;void 0===e.preserveOwner&&"number"!=typeof e.uid?this.preserveOwner=!(!process.getuid||0!==process.getuid()):this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1024,this.forceChown=!0===e.forceChown,this.win32=!!e.win32||om,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=nh(O.resolve(e.cwd||process.cwd())),this.strip=Number(e.strip)||0,this.processUmask=this.chmod?"number"==typeof e.processUmask?e.processUmask:process.umask():0,this.umask="number"==typeof e.umask?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",(e=>this[Of](e)))}warn(e,t,n={}){return"TAR_BAD_ARCHIVE"!==e&&"TAR_ABORT"!==e||(n.recoverable=!1),super.warn(e,t,n)}[Qf](){this[Xf]&&0===this[Zf]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Jf](e){const t=nh(e.path),n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===e.type){const t=nh(String(e.linkpath)).split("/");if(!(t.length>=this.strip))return!1;e.linkpath=t.slice(this.strip).join("/")}n.splice(0,this.strip),e.path=n.join("/")}if(isFinite(this.maxDepth)&&n.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:n.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(n.includes("..")||om&&/^[a-z]:\.\.$/i.test(n[0]??""))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;const[r,i]=$h(t);r&&(e.path=String(i),this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:e,path:t}))}if(O.isAbsolute(e.path)?e.absolute=nh(O.resolve(e.path)):e.absolute=nh(O.resolve(this.cwd,e.path)),!this.preservePaths&&"string"==typeof e.absolute&&0!==e.absolute.indexOf(this.cwd+"/")&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:nh(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&"Directory"!==e.type&&"GNUDumpDir"!==e.type)return!1;if(this.win32){const{root:t}=O.win32.parse(String(e.absolute));e.absolute=t+Zh(String(e.absolute).slice(t.length));const{root:n}=O.win32.parse(e.path);e.path=n+Zh(e.path.slice(n.length))}return!0}[Of](e){if(!this[Jf](e))return e.resume();switch(M.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=448|e.mode);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[kf](e);default:return this[Wf](e)}}[Hf](e,t){"CwdError"===e.name?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[Kf](),t.resume())}[Vf](e,t,n){Df(nh(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},n)}[tm](e){return this.forceChown||this.preserveOwner&&("number"==typeof e.uid&&e.uid!==this.processUid||"number"==typeof e.gid&&e.gid!==this.processGid)||"number"==typeof this.uid&&this.uid!==this.processUid||"number"==typeof this.gid&&this.gid!==this.processGid}[nm](e){return um(this.uid,e.uid,this.processUid)}[rm](e){return um(this.gid,e.gid,this.processGid)}[qf](e,t){const n="number"==typeof e.mode?4095&e.mode:this.fmode,r=new md(String(e.absolute),{flags:Xp(e.size),mode:n,autoClose:!1});r.on("error",(n=>{r.fd&&N.close(r.fd,(()=>{})),r.write=()=>!0,this[Hf](n,e),t()}));let i=1;const o=n=>{if(n)return r.fd&&N.close(r.fd,(()=>{})),this[Hf](n,e),void t();0===--i&&void 0!==r.fd&&N.close(r.fd,(n=>{n?this[Hf](n,e):this[Kf](),t()}))};r.on("finish",(()=>{const t=String(e.absolute),n=r.fd;if("number"==typeof n&&e.mtime&&!this.noMtime){i++;const r=e.atime||new Date,u=e.mtime;N.futimes(n,r,u,(e=>e?N.utimes(t,r,u,(t=>o(t&&e))):o()))}if("number"==typeof n&&this[tm](e)){i++;const r=this[nm](e),u=this[rm](e);"number"==typeof r&&"number"==typeof u&&N.fchown(n,r,u,(e=>e?N.chown(t,r,u,(t=>o(t&&e))):o()))}o()}));const u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",(n=>{this[Hf](n,e),t()})),e.pipe(u)),u.pipe(r)}[Mf](e,t){const n="number"==typeof e.mode?4095&e.mode:this.dmode;this[Vf](String(e.absolute),n,(n=>{if(n)return this[Hf](n,e),void t();let r=1;const i=()=>{0===--r&&(t(),this[Kf](),e.resume())};e.mtime&&!this.noMtime&&(r++,N.utimes(String(e.absolute),e.atime||new Date,e.mtime,i)),this[tm](e)&&(r++,N.chown(String(e.absolute),Number(this[nm](e)),Number(this[rm](e)),i)),i()}))}[Wf](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[zf](e,t){this[Gf](e,String(e.linkpath),"symlink",t)}[$f](e,t){const n=nh(O.resolve(this.cwd,String(e.linkpath)));this[Gf](e,n,"link",t)}[Yf](){this[Zf]++}[Kf](){this[Zf]--,this[Qf]()}[em](e){this[Kf](),e.resume()}[Lf](e,t){return"File"===e.type&&!this.unlink&&t.isFile()&&t.nlink<=1&&!om}[kf](e){this[Yf]();const t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,(t=>this[xf](e,t)))}[Tf](e){"SymbolicLink"===e.type?(e=>{for(const t of e.keys())e.delete(t)})(this.dirCache):"Directory"!==e.type&&((e,t)=>{t=sm(t);for(const n of e.keys()){const r=sm(n);r!==t&&0!==r.indexOf(t+"/")||e.delete(n)}})(this.dirCache,String(e.absolute))}[xf](e,t){this[Tf](e);const n=n=>{this[Tf](e),t(n)},r=()=>{this[Vf](this.cwd,this.dmode,(t=>{if(t)return this[Hf](t,e),void n();this[im]=!0,i()}))},i=()=>{if(e.absolute!==this.cwd){const t=nh(O.dirname(String(e.absolute)));if(t!==this.cwd)return this[Vf](t,this.dmode,(t=>{if(t)return this[Hf](t,e),void n();o()}))}o()},o=()=>{N.lstat(String(e.absolute),((t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(e.mtime??r.mtime)))return this[em](e),void n();if(t||this[Lf](e,r))return this[Nf](null,e,n);if(r.isDirectory()){if("Directory"===e.type){const t=t=>this[Nf](t??null,e,n);return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?N.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return N.rmdir(String(e.absolute),(t=>this[Nf](t??null,e,n)))}if(e.absolute===this.cwd)return this[Nf](null,e,n);((e,t)=>{if(!om)return N.unlink(e,t);const n=e+".DELETE."+G(16).toString("hex");N.rename(e,n,(e=>{if(e)return t(e);N.unlink(n,t)}))})(String(e.absolute),(t=>this[Nf](t??null,e,n)))}))};this[im]?i():r()}[Nf](e,t,n){if(e)return this[Hf](e,t),void n();switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[qf](t,n);case"Link":return this[$f](t,n);case"SymbolicLink":return this[zf](t,n);case"Directory":case"GNUDumpDir":return this[Mf](t,n)}}[Gf](e,t,n,r){N[n](t,String(e.absolute),(t=>{t?this[Hf](t,e):(this[Kf](),e.resume()),r()}))}}const cm=e=>{try{return[null,e()]}catch(e){return[e,null]}};class dm extends am{sync=!0;[Nf](e,t){return super[Nf](e,t,(()=>{}))}[kf](e){if(this[Tf](e),!this[im]){const t=this[Vf](this.cwd,this.dmode);if(t)return this[Hf](t,e);this[im]=!0}if(e.absolute!==this.cwd){const t=nh(O.dirname(String(e.absolute)));if(t!==this.cwd){const n=this[Vf](t,this.dmode);if(n)return this[Hf](n,e)}}const[t,n]=cm((()=>N.lstatSync(String(e.absolute))));if(n&&(this.keep||this.newer&&n.mtime>(e.mtime??n.mtime)))return this[em](e);if(t||this[Lf](e,n))return this[Nf](null,e);if(n.isDirectory()){if("Directory"===e.type){const t=this.chmod&&e.mode&&(4095&n.mode)!==e.mode,[r]=t?cm((()=>{N.chmodSync(String(e.absolute),Number(e.mode))})):[];return this[Nf](r,e)}const[t]=cm((()=>N.rmdirSync(String(e.absolute))));this[Nf](t,e)}const[r]=e.absolute===this.cwd?[]:cm((()=>(e=>{if(!om)return N.unlinkSync(e);const t=e+".DELETE."+G(16).toString("hex");N.renameSync(e,t),N.unlinkSync(t)})(String(e.absolute))));this[Nf](r,e)}[qf](e,t){const n="number"==typeof e.mode?4095&e.mode:this.fmode,r=n=>{let r;try{N.closeSync(i)}catch(e){r=e}(n||r)&&this[Hf](n||r,e),t()};let i;try{i=N.openSync(String(e.absolute),Xp(e.size),n)}catch(e){return r(e)}const o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",(t=>this[Hf](t,e))),e.pipe(o)),o.on("data",(e=>{try{N.writeSync(i,e,0,e.length)}catch(e){r(e)}})),o.on("end",(()=>{let t=null;if(e.mtime&&!this.noMtime){const n=e.atime||new Date,r=e.mtime;try{N.futimesSync(i,n,r)}catch(i){try{N.utimesSync(String(e.absolute),n,r)}catch(e){t=i}}}if(this[tm](e)){const n=this[nm](e),r=this[rm](e);try{N.fchownSync(i,Number(n),Number(r))}catch(i){try{N.chownSync(String(e.absolute),Number(n),Number(r))}catch(e){t=t||i}}}r(t)}))}[Mf](e,t){const n="number"==typeof e.mode?4095&e.mode:this.dmode,r=this[Vf](String(e.absolute),n);if(r)return this[Hf](r,e),void t();if(e.mtime&&!this.noMtime)try{N.utimesSync(String(e.absolute),e.atime||new Date,e.mtime)}catch(r){}if(this[tm](e))try{N.chownSync(String(e.absolute),Number(this[nm](e)),Number(this[rm](e)))}catch(r){}t(),e.resume()}[Vf](e,t){try{return Rf(nh(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[Gf](e,t,n,r){const i=`${n}Sync`;try{N[i](t,String(e.absolute)),r(),e.resume()}catch(t){return this[Hf](t,e)}}}const lm=yd((e=>{const t=new dm(e),n=e.file,r=N.statSync(n),i=e.maxReadSize||16777216;new fd(n,{readSize:i,size:r.size}).pipe(t)}),((e,t)=>{const n=new am(e),r=e.maxReadSize||16777216,i=e.file,o=new Promise(((e,t)=>{n.on("error",t),n.on("close",e),N.stat(i,((e,o)=>{if(e)t(e);else{const e=new pd(i,{readSize:r,size:o.size});e.on("error",t),e.pipe(n)}}))}));return o}),(e=>new dm(e)),(e=>new am(e)),((e,t)=>{t?.length&&Nh(e,t)})),hm=(e,t,n,r,i)=>{const o=new vd(e.file,{fd:r,start:n});t.pipe(o),pm(t,i)},pm=(e,t)=>{t.forEach((t=>{"@"===t.charAt(0)?qh({file:O.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)})),e.end()},fm=async(e,t)=>{for(let n=0;n<t.length;n++){const r=String(t[n]);"@"===r.charAt(0)?await qh({file:O.resolve(String(e.cwd),r.slice(1)),noResume:!0,onReadEntry:t=>e.add(t)}):e.add(r)}e.end()},mm=yd(((e,t)=>{const n=new Gp(e);let r,i,o=!0;try{try{r=N.openSync(e.file,"r+")}catch(t){if("ENOENT"!==t?.code)throw t;r=N.openSync(e.file,"w+")}const u=N.fstatSync(r),s=Buffer.alloc(512);e:for(i=0;i<u.size;i+=512){for(let e=0,t=0;e<512;e+=t){if(t=N.readSync(r,s,e,s.length-e,i+e),0===i&&31===s[0]&&139===s[1])throw new Error("cannot append to compressed archives");if(!t)break e}const t=new Tl(s);if(!t.cksumValid)break;const n=512*Math.ceil((t.size||0)/512);if(i+n+512>u.size)break;i+=n,e.mtimeCache&&t.mtime&&e.mtimeCache.set(String(t.path),t.mtime)}o=!1,hm(e,n,i,r,t)}finally{if(o)try{N.closeSync(r)}catch(e){}}}),((e,t)=>{t=Array.from(t);const n=new Mp(e),r=new Promise(((r,i)=>{n.on("error",i);let o="r+";const u=(s,a)=>s&&"ENOENT"===s.code&&"r+"===o?(o="w+",N.open(e.file,o,u)):s||!a?i(s):void N.fstat(a,((o,u)=>{if(o)return N.close(a,(()=>i(o)));((t,n,r)=>{const i=(e,n)=>{e?N.close(t,(t=>r(e))):r(null,n)};let o=0;if(0===n)return i(null,0);let u=0;const s=Buffer.alloc(512),a=(r,c)=>{if(r||void 0===c)return i(r);if(u+=c,u<512&&c)return N.read(t,s,u,s.length-u,o+u,a);if(0===o&&31===s[0]&&139===s[1])return i(new Error("cannot append to compressed archives"));if(u<512)return i(null,o);const d=new Tl(s);if(!d.cksumValid)return i(null,o);const l=512*Math.ceil((d.size??0)/512);return o+l+512>n?i(null,o):(o+=l+512,o>=n?i(null,o):(e.mtimeCache&&d.mtime&&e.mtimeCache.set(String(d.path),d.mtime),u=0,void N.read(t,s,0,512,o,a)))};N.read(t,s,0,512,o,a)})(a,u.size,((o,u)=>{if(o)return i(o);const s=new md(e.file,{fd:a,start:u});n.pipe(s),s.on("error",i),s.on("close",r),fm(n,t)}))}));N.open(e.file,o,u)}));return r}),(()=>{throw new TypeError("file is required")}),(()=>{throw new TypeError("file is required")}),((e,t)=>{if(!e.file)throw new TypeError("file is required");if(e.gzip||e.brotli||e.file.endsWith(".br")||e.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t?.length)throw new TypeError("no paths specified to add/replace")}));yd(mm.syncFile,mm.asyncFile,mm.syncNoFile,mm.asyncNoFile,((e,t=[])=>{mm.validate?.(e,t),vm(e)}));const vm=e=>{const t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(n,r)=>t(n,r)&&!((e.mtimeCache?.get(n)??r.mtime??0)>(r.mtime??0)):(t,n)=>!((e.mtimeCache?.get(t)??n.mtime??0)>(n.mtime??0))};function Em(e){return Array.isArray(e)?e:[e]}const Am=/^\s+$/,bm=/(?:[^\\]|^)\\$/,ym=/^\\!/,gm=/^\\#/,Cm=/\r?\n/g,wm=/^\.*\/|^\.+$/;let Fm="node-ignore";"undefined"!=typeof Symbol&&(Fm=Symbol.for("node-ignore"));const Dm=Fm,Bm=/([0-z])-([0-z])/g,Im=()=>!1,Rm=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(r)}${i}`:"]"===i&&r.length%2==0?`[${(e=>e.replace(Bm,((e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:"")))(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],jm=Object.create(null),Sm=e=>"string"==typeof e;class _m{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}const Um=(e,t)=>{const n=e;let r=!1;0===e.indexOf("!")&&(r=!0,e=e.substr(1));const i=((e,t)=>{let n=jm[e];return n||(n=Rm.reduce(((t,[n,r])=>t.replace(n,r.bind(e))),e),jm[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(ym,"!").replace(gm,"#"),t);return new _m(n,e,r,i)},Pm=(e,t)=>{throw new t(e)},Om=(e,t,n)=>{if(!Sm(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(Om.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},km=e=>wm.test(e);Om.isNotRelative=km,Om.convert=e=>e;class xm{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var r,i,o;r=this,i=Dm,o=!0,Object.defineProperty(r,i,{value:o}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[Dm])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&Sm(e)&&!Am.test(e)&&!bm.test(e)&&0!==e.indexOf("#"))(e)){const t=Um(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,Em(Sm(e)?(e=>e.split(Cm))(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach((i=>{const{negative:o}=i;if(r===o&&n!==r||o&&!n&&!r&&!t)return;i.regex.test(e)&&(n=!o,r=o)})),{ignored:n,unignored:r}}_test(e,t,n,r){const i=e&&Om.convert(e);return Om(i,e,this._allowRelativePaths?Im:Pm),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const i=this._t(r.join("/")+"/",t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return Em(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const Tm=e=>new xm(e);Tm.isPathValid=e=>Om(e&&Om.convert(e),e,Im),Tm.default=Tm;var Lm=Tm;if("undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");Om.convert=e;const t=/^[a-z]:\//i;Om.isNotRelative=e=>t.test(e)||km(e)}var Nm,qm=function(){function e(e,t){var n=this;if(this.exec=e,this.parameters=t,this.defaultEncoding="base64",this.getFileIgnoreFilter=function(e){if(void 0!==e){var t=Lm({allowRelativePaths:!0}).add(e);return function(e){return!t.ignores(e)}}},this.getTarTransformFn=function(e,t){return function(n){n.path=n.path.replace(e,t)}},this.ensureDirRemote=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){switch(i.label){case 0:return t=["mkdir","-p",e],[4,this.runCommand(t)];case 1:if(n=i.sent(),"Success"!==(null===(r=null==n?void 0:n.commandResult)||void 0===r?void 0:r.status))throw new Error("Failed creating remote directory.");return[2]}}))}))},this.ensureTarCmd=function(){return J(n,void 0,void 0,(function(){var e,t,n;return V(this,(function(r){switch(r.label){case 0:return e=["tar","--version"],[4,this.runCommand(e)];case 1:if(t=r.sent(),"Success"!==(null===(n=null==t?void 0:t.commandResult)||void 0===n?void 0:n.status))throw new Error("Tar command not found on remote container. Required for file copy.");return[2]}}))}))},this.pathExistsRemote=function(e){return J(n,void 0,void 0,(function(){var t;return V(this,(function(n){switch(n.label){case 0:return t=["test","-e",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}}))}))},this.checkIsDirRemote=function(e){return J(n,void 0,void 0,(function(){var t;return V(this,(function(n){switch(n.label){case 0:return t=["test","-d",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}}))}))},this.runCommand=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i,o,u,s,a,c;return V(this,(function(d){switch(d.label){case 0:return n=(t=this).exec,r=t.parameters,i=r.projectId,o=r.resourceId,u=r.resourceType,s=r.containerName,a={command:e,shell:"none",containerName:s},"service"!==u?[3,2]:[4,n.execServiceCommand({projectId:i,serviceId:o},a)];case 1:return c=d.sent(),[3,4];case 2:return[4,n.execJobCommand({projectId:i,jobId:o},a)];case 3:c=d.sent(),d.label=4;case 4:return[2,c]}}))}))},this.runSession=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i,o,u,s,a,c;return V(this,(function(d){switch(d.label){case 0:return n=(t=this).exec,r=t.parameters,i=r.projectId,o=r.resourceId,u=r.resourceType,s=r.containerName,a={command:e,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:s},"service"!==u?[3,2]:[4,n.execServiceSession({projectId:i,serviceId:o},a)];case 1:return c=d.sent(),[3,4];case 2:return[4,n.execJobSession({projectId:i,jobId:o},a)];case 3:c=d.sent(),d.label=4;case 4:return[2,c]}}))}))},!["service","job"].includes(t.resourceType))throw new Error("Invalid resource type: ".concat(t.resourceType,", only 'service' and 'job' supported"))}return e.prototype.uploadFiles=function(e,t,n){return J(this,void 0,void 0,(function(){var r,i,o,u,s,a,c,d,l,h,p,f;return V(this,(function(m){switch(m.label){case 0:if(void 0===e||!E.existsSync(e))throw new Error("Local path '".concat(e,"' does not exists but is required for uploads."));return r=E.lstatSync(e).isFile(),i=r?C.dirname(e):e,o=r?C.basename(e):".",u=r&&void 0!==t&&""!==C.extname(t),s=u?C.dirname(t):null!=t?t:i,a=void 0!==t?C.basename(t):o,c=Wp({gzip:{encoding:this.defaultEncoding},cwd:i,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:u?this.getTarTransformFn(o,a):void 0},wo(o)),[4,this.ensureTarCmd()];case 1:return m.sent(),[4,this.ensureDirRemote(s)];case 2:return m.sent(),d=H(H(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",s],!1),[4,this.runSession(d)];case 3:return l=m.sent(),h=new Do,p=new Do,l.stdErr.pipe(h),l.stdOut.pipe(p),c.pipe(l.stdIn),[4,l.waitForCommandResult()];case 4:if("Success"!==(null==(f=m.sent())?void 0:f.status))throw new Error("Failed to upload file to container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString(),"; ").concat(p.getContentsAsString()));return r?[2,{type:Nm.FILE_UPLOAD,sourceDirectory:i,sourceFile:o,targetDirectory:s,targetFile:a}]:[2,{type:Nm.DIRECTORY_UPLOAD,sourceDirectory:i,targetDirectory:s}]}}))}))},e.prototype.downloadFiles=function(e,t,n){return J(this,void 0,void 0,(function(){var r,i,o,u,s,a,c,d,l,h,p,f,m,v;return V(this,(function(A){switch(A.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!A.sent(),A.label=2;case 2:if(r)throw new Error("Remote path '".concat(e,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(e)];case 3:return i=A.sent(),o=i?e:C.dirname(e),u=i?".":C.basename(e),s=void 0!==t&&""!==C.extname(t),a=!i&&s?C.basename(t):u,(c=void 0!==t?s?C.dirname(t):t:".")&&E.mkdirSync(c,{recursive:!0}),d=wo(null!=n?n:[]).map((function(e){return"--exclude=".concat(e)})),l=H(H(["tar","-zcf","-"],["--no-same-owner"],!0),d,!0),h=H(H([],l,!0),["-C",o,u],!1),[4,this.runSession(h)];case 4:return p=A.sent(),f=lm({cwd:c,gzip:{encoding:this.defaultEncoding},onReadEntry:a?this.getTarTransformFn(u,a):void 0}),m=new Do,p.stdErr.pipe(m),p.stdOut.pipe(f),[4,p.waitForCommandResult()];case 5:if("Success"!==(null==(v=A.sent())?void 0:v.status))throw new Error("Failed to download file from container: ".concat(null==v?void 0:v.message,", error details: ").concat(m.getContentsAsString()));return i?[2,{type:Nm.DIRECTORY_DOWNLOAD,sourceDirectory:o,targetDirectory:c}]:[2,{type:Nm.FILE_DOWNLOAD,sourceDirectory:o,sourceFile:u,targetDirectory:c,targetFile:a}]}}))}))},e}();!function(e){e.DIRECTORY_UPLOAD="directory-upload",e.FILE_UPLOAD="file-upload",e.DIRECTORY_DOWNLOAD="directory-download",e.FILE_DOWNLOAD="file-download"}(Nm||(Nm={}));var Mm,Gm=function(){function e(e,t){this.exec=e,this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){switch(o.label){case 0:return n=e.serviceId,r=e.projectId,i={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(i,t,"download")];case 1:return[2,o.sent()]}}))}))},e.prototype.uploadServiceFiles=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){switch(o.label){case 0:return n=e.serviceId,r=e.projectId,i={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(i,t,"upload")];case 1:return[2,o.sent()]}}))}))},e.prototype.downloadJobFiles=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){switch(o.label){case 0:return n=e.jobId,r=e.projectId,i={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(i,t,"download")];case 1:return[2,o.sent()]}}))}))},e.prototype.uploadJobFiles=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){switch(o.label){case 0:return n=e.jobId,r=e.projectId,i={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(i,t,"upload")];case 1:return[2,o.sent()]}}))}))},e.prototype.copy=function(e,t,n){var r;return J(this,void 0,void 0,(function(){var i,o;return V(this,(function(u){switch(u.label){case 0:switch(i=new qm(this.exec,W(W({},e),{containerName:t.containerName})),o=H(H([],null!==(r=t.ignoreList)&&void 0!==r?r:[],!0),this.stdIgnoreList,!0),n){case"download":return[3,1];case"upload":return[3,3]}return[3,5];case 1:return[4,i.downloadFiles(t.remotePath,t.localPath,o)];case 2:case 4:return[2,u.sent()];case 3:return[4,i.uploadFiles(t.localPath,t.remotePath,o)];case 5:return[2]}}))}))},e}(),zm=function(e){function t(t){var n=this.constructor,r=e.call(this,t.message)||this;r.name="NorthflankApiCallError",r.message=t.message,r.status=t.status,r.id=t.id,r.details=t.details;var i=n.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i,r}return $(t,e),t}(Error),$m=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.baseUrl=t,o.logsConfig=n,o.token=r,o.agent=i,o.stop=function(){return J(o,void 0,void 0,(function(){var e;return V(this,(function(t){if(void 0===this.logSession)throw new Error("No command is running");return null===(e=this.remote)||void 0===e||e.close(),[2]}))}))},o}return $(t,e),t.getLogsEndpoint=function(e){var t=e.containerName,n=e.types,r=e.entityId,i=e.entityType,o=e.buildId,u=e.runId,s=e.backupId,a=e.restoreId,c=e.deploymentId,d=e.isBuild,l=e.lineLimit,h=e.projectId,p=e.queryType,f=e.startTime,m=e.endTime,v=e.duration,E=e.direction,A=e.textIncludes,b=e.textNotIncludes,y=e.regexIncludes,g=e.regexNotIncludes,C="/v1/projects/".concat(h,"/"),w=new URLSearchParams;return w.append("queryType",p),void 0!==f&&w.append("startTime",f.toISOString()),void 0!==m&&w.append("endTime",m.toISOString()),void 0!==l&&w.append("lineLimit",l.toString()),void 0!==t&&w.append("containerName",t),void 0!==c&&w.append("deploymentId",c),void 0!==u&&w.append("runId",u),void 0!==o&&w.append("buildId",o),void 0!==A&&w.append("textIncludes",A),void 0!==b&&w.append("textNotIncludes",b),void 0!==y&&w.append("regexIncludes",y),void 0!==g&&w.append("regexNotIncludes",g),void 0!==E&&w.append("direction",E),void 0!==v&&w.append("duration",v.toString()),void 0!==n&&n.forEach((function(e){return w.append("type",e)})),"".concat(C).concat(function(){var e=d?"/build-logs":"/logs";switch(i){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":return"addons/".concat(r).concat(e);case"addonBackup":return"addons/".concat(r,"/backups/").concat(s).concat(e);case"addonRestore":return"addons/".concat(r,"/backups/").concat(s,"/restores/").concat(a).concat(e);default:throw new Error("Unexpected Northflank entity type received in logs endpoint generation: ".concat(i))}}(),"?").concat(w.toString())},Object.defineProperty(t.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(t.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,(function(){var e=this;return V(this,(function(t){switch(t.label){case 0:if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise((function(t,n){var r,i,o,u;void 0!==e.remote&&n(Error("Command is already running"));var s=e.logsEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new ya(s,{agent:e.agent}),null===(r=e.remote)||void 0===r||r.on("message",(function(t){var n,r,i=JSON.parse(t.toString());switch(null==i?void 0:i.type){case"init":var o=i.data;"successful"!==o.auth&&a("Log tail initialization failed: ".concat(null!==(n=null==o?void 0:o.message)&&void 0!==n?n:"Reason unknown"));break;case"log-lines":var u=i.data;e.emit("logs-received",u.map(rv));break;case"error":a(null===(r=i.data)||void 0===r?void 0:r.message);break;default:var s="unable to parse message: ".concat(JSON.stringify(i));a(s)}})),null===(i=e.remote)||void 0===i||i.on("close",(function(){e.emit("close"),e.reset(),t()})),null===(o=e.remote)||void 0===o||o.on("open",(function(){e.emit("open")})),null===(u=e.remote)||void 0===u||u.on("error",(function(n){e.emit("error",n),e.reset(),t()}));var a=function(t){e.emit("error",{message:t}),e.reset(),n(new Error(t))}})),[4,new Promise((function(t){var n;e.remote.on("open",(function(){return t()})),null===(n=e.remote)||void 0===n||n.on("error",(function(){t()}))}))];case 1:return t.sent(),this.initialAuth(),[2,this.logSession]}}))}))},t.prototype.initialAuth=function(){var e,t={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};null===(e=this.remote)||void 0===e||e.send(JSON.stringify(t))},t.prototype.reset=function(){this.remote=void 0,this.logSession=void 0},t}(t),Wm=function(){if(go)try{return JSON.parse(E.readFileSync(C.join(C.dirname(c(import.meta.url)),"../../package.json")).toString())}catch(e){return{}}return{}},Jm=function(){function e(e,t){var n=this;this.opts=t,this.call=function(e){return J(n,void 0,void 0,(function(){return V(this,(function(t){return[2,this.executeCall(e)]}))}))},this.contextProvider=e}return e.prototype.getDefaultHeaders=function(){var e,t,n=this.contextProvider.getCurrentToken(),r=(null===(e=this.opts)||void 0===e?void 0:e.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(t=Wm())||void 0===t?void 0:t.version).concat(r)}},e.prototype.executeCall=function(e){var t;return J(this,void 0,void 0,(function(){var n,r,i,o,u,s,a,c,d,l,h,p,f=this;return V(this,(function(m){switch(m.label){case 0:if(n=this.method,r=this.opts.agent,i={method:n,headers:this.getDefaultHeaders(),agent:r},!(o=null===(t=this.contextProvider)||void 0===t?void 0:t.getCurrentBaseUrl()))throw new Error("Api client context not correctly initialized, please provide a url to the context.");return u="".concat(o).concat(this.endpointUrl(e)),s=this.body(e),a=W(W({url:u},i),{body:s}),[4,ev(u,W(W({},i),{body:s}))];case 1:return[4,(c=m.sent()).text()];case 2:return d=m.sent(),l=function(){if(200!==c.status){var e=null==h?void 0:h.error,t=(null==e?void 0:e.message)||"",n={status:c.status,message:t,id:null==e?void 0:e.id,details:null==e?void 0:e.details};if(f.opts.throwErrorOnHttpErrorCode)throw new zm(n);return n}},h=function(){try{return JSON.parse(d)}catch(e){throw Error("Failed reading api request result: \n\tStatus: ".concat(c.statusText," (").concat(c.status,")\n\tMessage: ").concat(d))}}(),p=l(),[2,{data:null==h?void 0:h.data,rawResponse:c,request:a,error:p,pagination:null==h?void 0:h.pagination}]}}))}))},e}(),Vm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="get",t.body=function(){},t}return $(t,e),t}(Jm),Hm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.all=function(e){return J(t,void 0,void 0,(function(){return V(this,(function(t){return[2,new Qm(this,e).getAll()]}))}))},t.call=function(n){return J(t,void 0,void 0,(function(){var t,r=this;return V(this,(function(i){switch(i.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=i.sent(),[2,W(W({},t),{pagination:W(W({},t.pagination),{getNextPage:function(){return J(r,void 0,void 0,(function(){var e,r,i,o,u,s,a,c=this;return V(this,(function(d){return void 0===(null===(s=t.pagination)||void 0===s?void 0:s.cursor)?(e=Object.keys(t.data),r=1===e.length?((u={})[e[0]]=[],u):{},i=W(W({},t),{pagination:W(W({},t.pagination),{count:0}),data:r}),[2,(o=function(e){return W(W({},e),{pagination:W(W({},e.pagination),{getNextPage:function(){return J(c,void 0,void 0,(function(){return V(this,(function(t){return[2,o(e)]}))}))}})})})(i)]):[2,new Qm(this,n,null===(a=t.pagination)||void 0===a?void 0:a.cursor).getNext()]}))}))}})})]}}))}))},t}return $(t,e),t}(Vm),Zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="post",t}return $(t,e),t}(Jm),Ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="delete",t.body=function(){},t}return $(t,e),t}(Jm),Km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="put",t}return $(t,e),t}(Jm),Xm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="patch",t}return $(t,e),t}(Jm),Qm=function(){function e(e,t,n){void 0===n&&(n=null);var r=this;this.endpoint=e,this.opts=t,this._currentOffset=0,this.hasNext=function(){return void 0!==r.cursor},this.cursor=n}return Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){var e,t,n;return J(this,void 0,void 0,(function(){var r,i,o,u,s,a;return V(this,(function(c){switch(c.label){case 0:return[4,this.endpoint.call(W(W({},this.opts),{options:W(W({},null===(e=this.opts)||void 0===e?void 0:e.options),{cursor:null!==(t=this.cursor)&&void 0!==t?t:void 0})}))];case 1:return r=c.sent(),i=r.data,o=r.request,u=r.error,s=r.pagination,a=r.rawResponse,this.cursor=null==s?void 0:s.cursor,this._currentOffset+=null!==(n=null==s?void 0:s.count)&&void 0!==n?n:0,[2,{data:i,request:o,error:u,pagination:s,rawResponse:a}]}}))}))},e.prototype.getAll=function(){var e,t;return J(this,void 0,void 0,(function(){var n,r,i,o,u;return V(this,(function(s){switch(s.label){case 0:n=[],s.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(r=s.sent()).error?[2,r]:(n.push(r),[3,1]);case 3:return o=n.flatMap((function(e){var t=Object.keys(e.data);return 1===t.length?(i=t[0],e.data[t[0]]):e.data})),[2,{data:void 0===i?o:(u={},u[i]=o,u),request:null===(e=n[0])||void 0===e?void 0:e.request,rawResponse:null===(t=n[0])||void 0===t?void 0:t.rawResponse}]}}))}))},e}(),ev=function(e,t,n,r){return void 0===t&&(t={}),void 0===n&&(n=3),void 0===r&&(r=500),new Promise((function(i,o){var u=function(n){return Co(e,t).then((function(e){i(e)})).catch((function(e){return J(void 0,void 0,void 0,(function(){return V(this,(function(t){switch(t.label){case 0:return n>0?[4,(i=r,new Promise((function(e){setTimeout((function(){e()}),i)})))]:[3,2];case 1:return t.sent(),[2,u(n-1)];case 2:return[2,o(e)]}var i}))}))}))};return u(n)}))},tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch log lines over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){return $m.getLogsEndpoint(e)},t.body=function(){},t}return $(t,e),t}(Vm);!function(e){e.CDN="cdn",e.Mesh="mesh",e.Ingress="ingress",e.Runtime="runtime"}(Mm||(Mm={}));var nv,rv=function(e){return{containerId:e.containerId,log:e.log,ts:new Date(e.ts)}},iv=function(e,t){void 0===t&&(t={});var n=this;this.contextProvider=e,this.clientOpts=t,this.getServiceLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"service")]}))}))},this.getServiceBuildLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.projectId,i=t.serviceId,o={entityId:i,projectId:r},[2,this.logRange(o,W(W({},n),{isBuild:!0}),"service")]}))}))},this.getJobLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"job")]}))}))},this.getJobBuildLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.projectId,i=t.jobId,o={entityId:i,projectId:r},[2,this.logRange(o,W(W({},n),{isBuild:!0}),"job")]}))}))},this.getAddonLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"addon")]}))}))},this.getAddonBackupLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logRange(r,W(W({},n),{backupId:t.backupId}),"addonBackup")]}))}))},this.getAddonRestoresLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i;return V(this,(function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},i={backupId:t.backupId,restoreId:t.restoreId},[2,this.logRange(r,W(W({},n),i),"addonRestore")]}))}))},this.logRange=function(e,t,r){return J(n,void 0,void 0,(function(){var n,i,o,u,s;return V(this,(function(a){switch(a.label){case 0:return n=e.entityId,i=e.projectId,o=W(W({projectId:i,entityId:n,entityType:r},t),{queryType:"range"}),[4,new tv(this.contextProvider,this.clientOpts).call(o)];case 1:return(u=a.sent()).error?[2,u]:[2,W(W({},u),{data:null===(s=null==u?void 0:u.data)||void 0===s?void 0:s.map(rv)})]}}))}))},this.tailServiceLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.logTail(r,null!=n?n:{},"service")]}))}))},this.tailServiceBuildLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.serviceId,i=t.projectId,o={entityId:r,projectId:i},[2,this.logTail(o,W(W({},n),{isBuild:!0}),"service")]}))}))},this.tailJobLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.logTail(r,null!=n?n:{},"job")]}))}))},this.tailJobBuildLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.projectId,i=t.jobId,o={entityId:i,projectId:r},[2,this.logTail(o,W(W({},n),{isBuild:!0}),"job")]}))}))},this.tailAddonLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logTail(r,null!=n?n:{},"addon")]}))}))},this.tailAddonBackupLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logTail(r,W(W({},n),{backupId:t.backupId}),"addonBackup")]}))}))},this.tailAddonRestoresLogs=function(e){return J(n,void 0,void 0,(function(){var t,n,r,i;return V(this,(function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},i={backupId:t.backupId,restoreId:t.restoreId},[2,this.logTail(r,W(W({},n),i),"addonRestore")]}))}))},this.logTail=function(e,t,r){return J(n,void 0,void 0,(function(){var n,i,o,u,s;return V(this,(function(a){if(n=e.entityId,i=e.projectId,o=W({queryType:"tail",projectId:i,entityId:n,entityType:r},t),this.assertStartedWithNodejs(),u=this.contextProvider.getCurrentBaseUrl(!0),!(s=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new $m(u,o,s,this.clientOpts.agent)]}))}))},this.assertStartedWithNodejs=function(){if(!go)throw new Error("Command exec only possible when started with nodejs")}},ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch metrics entries over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){var t=e.projectId,n=e.entityId,r=e.entityType,i=e.deploymentId,o=e.runId,u=e.buildId,s=e.isBuild,a=e.queryType,c=e.metricTypes,d=e.startTime,l=e.endTime,h=e.duration,p=e.containerName,f=e.timestamp,m="/v1/projects/".concat(t,"/");var v=new URLSearchParams;return v.append("queryType",a),void 0!==d&&v.append("startTime",d.toISOString()),void 0!==l&&v.append("endTime",l.toISOString()),void 0!==p&&v.append("containerName",p),void 0!==i&&v.append("deploymentId",i),void 0!==o&&v.append("runId",o),void 0!==u&&v.append("buildId",u),void 0!==f&&v.append("timestamp",f.toISOString()),void 0!==h&&v.append("duration",h.toString()),void 0!==c&&c.forEach((function(e){return v.append("metricTypes",e)})),"".concat(m).concat(function(){var e=s?"/build-metrics":"/metrics";switch(r){case"service":return"services/".concat(n).concat(e);case"job":return"jobs/".concat(n).concat(e);case"addon":return"addons/".concat(n).concat(e);default:throw new Error("Unexpected Northflank entity type received in metrics endpoint generation: ".concat(r))}}(),"?").concat(v.toString())},t.body=function(){},t}return $(t,e),t}(Vm),uv=function(e){return{metadata:e.metadata,data:e.data.map((function(e){return{value:e.value,ts:new Date(e.ts)}}))}};!function(e){e.Cpu="cpu",e.Memory="memory",e.NetworkIngress="networkIngress",e.NetworkEgress="networkEgress",e.TcpConnectionOpen="tcpConnectionsOpen",e.PvcUsage="diskUsage",e.Requests="requests",e.Http4xxResponses="http4xxResponses",e.Http5xxResponses="http5xxResponses",e.Bandwidth="bandwidth",e.BandwidthVolume="bandwidthVolume"}(nv||(nv={}));var sv=function(e){var t=this;this.contextProvider=e,this.getServiceMetrics=function(e){return J(t,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.metricsSingle(r,null!=n?n:{},"service")]}))}))},this.getServiceBuildMetrics=function(e){return J(t,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.serviceId,i=t.projectId,o={entityId:r,projectId:i},[2,this.metricsSingle(o,W(W({},n),{isBuild:!0}),"service")]}))}))},this.getJobMetrics=function(e){return J(t,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.metricsSingle(r,null!=n?n:{},"job")]}))}))},this.getJobBuildMetrics=function(e){return J(t,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.jobId,i=t.projectId,o={entityId:r,projectId:i},[2,this.metricsSingle(o,W(W({},n),{isBuild:!0}),"job")]}))}))},this.getAddonMetrics=function(e){return J(t,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.metricsSingle(r,null!=n?n:{},"addon")]}))}))},this.metricsSingle=function(e,n,r){return J(t,void 0,void 0,(function(){var t,i,o;return V(this,(function(u){return t=e.entityId,i=e.projectId,o=W(W({projectId:i,entityId:t,entityType:r},n),{queryType:"single"}),[2,this.getMetrics(o)]}))}))},this.getServiceMetricsRange=function(e){return J(t,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId},[2,this.metricsRange(r,null!=n?n:{},"service")]}))}))},this.getServiceBuildMetricsRange=function(e){return J(t,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.projectId,i=t.serviceId,o={entityId:i,projectId:r},[2,this.metricsRange(o,W(W({},n),{isBuild:!0}),"service")]}))}))},this.getJobMetricsRange=function(e){return J(t,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId},[2,this.metricsRange(r,null!=n?n:{},"job")]}))}))},this.getJobBuildMetricsRange=function(e){return J(t,void 0,void 0,(function(){var t,n,r,i,o;return V(this,(function(u){return t=e.parameters,n=e.options,r=t.projectId,i=t.jobId,o={entityId:i,projectId:r},[2,this.metricsRange(o,W(W({},n),{isBuild:!0}),"job")]}))}))},this.getAddonMetricsRange=function(e){return J(t,void 0,void 0,(function(){var t,n,r;return V(this,(function(i){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.metricsRange(r,null!=n?n:{},"addon")]}))}))},this.metricsRange=function(e,n,r){return J(t,void 0,void 0,(function(){var t,i,o;return V(this,(function(u){return t=e.entityId,i=e.projectId,o=W(W({projectId:i,entityId:t,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(o)]}))}))},this.getMetrics=function(e){return J(t,void 0,void 0,(function(){var t;return V(this,(function(n){switch(n.label){case 0:return[4,new ov(this.contextProvider,{}).call(e)];case 1:return(t=n.sent()).error?[2,t]:[2,W(W({},t),{data:Object.fromEntries(Object.entries(t.data).map((function(e){var t=e[0],n=e[1];return[t,W(W({},n),{values:n.values.map(uv)})]})))})]}}))}))}},av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the available addon types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/addon-types"},t.body=function(){},t}return $(t,e),t}(Vm),cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the backup destinations saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/backup-destinations".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new backup destination to this account.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Create",t.endpointUrl=function(e){return"/v1/backup-destinations"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a backup destination, including secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){return["backupDestinationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))},t.body=function(){},t}return $(t,e),t}(Vm),hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Update",t.endpointUrl=function(e){return["backupDestinationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Delete",t.endpointUrl=function(e){return["backupDestinationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))},t.body=function(){},t}return $(t,e),t}(Ym),fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the backups associated with a backup destinations.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t;["backupDestinationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of past invoices",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/billing/invoices".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/billing/invoices/details".concat(r)},t.body=function(){},t}return $(t,e),t}(Vm),Ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud providers",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/cloud-providers"},t.body=function(){},t}return $(t,e),t}(Vm),Av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists clusters for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/cloud-providers/clusters".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){return"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or update a cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){return"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given cluster",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){return["clusterId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))},t.body=function(){},t}return $(t,e),t}(Vm),Cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given cluster. Fails if the cluster has associated projects.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Delete",t.endpointUrl=function(e){return["clusterId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))},t.body=function(){},t}return $(t,e),t}(Ym),Fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of nodes for the given cluster",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t;["clusterId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Cordon a node on the cluster to prevent new pods from scheduling on it.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId","nodeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/cordon")},t.body=function(){},t}return $(t,e),t}(Zm),Bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Drain a node by evicting all running pods.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId","nodeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/drain")},t.body=function(){},t}return $(t,e),t}(Zm),Iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Uncordon a node on the cluster if it was previously cordoned.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){return["clusterId","nodeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/uncordon")},t.body=function(){},t}return $(t,e),t}(Zm),Rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists docker registries for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Registries > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/cloud-providers/docker-registries".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new docker registry.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Registries > Create",t.endpointUrl=function(e){return"/v1/cloud-providers/docker-registries"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a docker registry.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Registries > Create",t.endpointUrl=function(e){return["registryId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/docker-registries"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),_v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given docker registry",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Registries > Read",t.endpointUrl=function(e){return["registryId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/docker-registries/".concat(encodeURIComponent(e.parameters.registryId))},t.body=function(){},t}return $(t,e),t}(Vm),Uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a docker registry.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Registries > Update",t.endpointUrl=function(e){return["registryId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/docker-registries/".concat(encodeURIComponent(e.parameters.registryId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),Pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given docker registry. Fails if the docker registry is associated with existing clusters.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Registries > Delete",t.endpointUrl=function(e){return["registryId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/docker-registries/".concat(encodeURIComponent(e.parameters.registryId))},t.body=function(){},t}return $(t,e),t}(Ym),Ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/cloud-providers/integrations".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){return"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){return["integrationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),Tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given integration",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){return["integrationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))},t.body=function(){},t}return $(t,e),t}(Vm),Lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Update",t.endpointUrl=function(e){return["integrationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),Nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given integration. Fails if the integration is associated with existing clusters.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Delete",t.endpointUrl=function(e){return["integrationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))},t.body=function(){},t}return $(t,e),t}(Ym),qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud provider node types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud provider regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/cloud-providers/regions".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the partially random string used when generating host names for the authenticated account.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){return"/v1/dns-id"},t.body=function(){},t}return $(t,e),t}(Vm),zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available domains",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/domains".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),$v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Registers a new domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){return"/v1/domains"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){return["domain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain))},t.body=function(){},t}return $(t,e),t}(Vm),Jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a domain and each of its registered subdomains.",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Delete",t.endpointUrl=function(e){return["domain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain))},t.body=function(){},t}return $(t,e),t}(Ym),Vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve certificate data for a domain to verify its contents.",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){return["domain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/certificate")},t.body=function(){},t}return $(t,e),t}(Vm),Hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Import a certificate for the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Update",t.endpointUrl=function(e){return["domain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new subdomain to the domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Read",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))},t.body=function(){},t}return $(t,e),t}(Vm),Kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from a domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))},t.body=function(){},t}return $(t,e),t}(Ym),Xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assigns a service port to the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from its assigned service",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t;["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign").concat(r)},t.body=function(){},t}return $(t,e),t}(Ym),eE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes the CDN integration from the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/disable")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),tE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Enables a CDN integration on the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/enable")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),nE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new path to the subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Create",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),rE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List paths for a given subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")},t.body=function(){},t}return $(t,e),t}(Vm),iE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get subdomain path details.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))},t.body=function(){},t}return $(t,e),t}(Vm),oE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a path.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))},t.body=function(){},t}return $(t,e),t}(Ym),uE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a subdomain path.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),sE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assign a subdomain path to a port.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),aE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unassign a subdomain path to a port.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){return["domain","subdomain","subdomainPath"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")},t.body=function(){},t}return $(t,e),t}(Ym),cE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){return["domain","subdomain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/verify")},t.body=function(){},t}return $(t,e),t}(Zm),dE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attempts to verify the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){return["domain"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/verify")},t.body=function(){},t}return $(t,e),t}(Zm),lE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of log sinks added to this account.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/integrations/log-sinks".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),hE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Create",t.endpointUrl=function(e){return"/v1/integrations/log-sinks"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),pE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){return["logSinkId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))},t.body=function(){},t}return $(t,e),t}(Vm),fE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Delete",t.endpointUrl=function(e){return["logSinkId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))},t.body=function(){},t}return $(t,e),t}(Ym),mE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pauses a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){return["logSinkId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/pause")},t.body=function(){},t}return $(t,e),t}(Zm),vE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes a paused log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){return["logSinkId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/resume")},t.body=function(){},t}return $(t,e),t}(Zm),EE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the settings for a log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){return["logSinkId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/settings")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),AE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists notification integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/integrations/notifications".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),bE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){return["notificationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/notifications"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),yE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){return["notificationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))},t.body=function(){},t}return $(t,e),t}(Vm),gE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){return["notificationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),CE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){return["notificationId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))},t.body=function(){},t}return $(t,e),t}(Ym),wE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the container registry credentials saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/integrations/registries".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),FE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new set of container registry credentials to this account.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Create",t.endpointUrl=function(e){return"/v1/integrations/registries"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),DE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read Encrypted",t.endpointUrl=function(e){return["credentialId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))},t.body=function(){},t}return $(t,e),t}(Vm),BE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Delete",t.endpointUrl=function(e){return["credentialId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))},t.body=function(){},t}return $(t,e),t}(Ym),IE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Update",t.endpointUrl=function(e){return["credentialId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId),"/modify")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),RE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists linked version control providers",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){return"/v1/integrations/vcs"},t.body=function(){},t}return $(t,e),t}(Vm),jE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generate a token for a specific VCS link.",t.withAuth=!0,t.requiredPermissions="Account > Git > Tokens > Read",t.endpointUrl=function(e){var t;["customVCSId","vcsLinkId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/integrations/vcs/custom/".concat(encodeURIComponent(e.parameters.customVCSId),"/token/").concat(encodeURIComponent(e.parameters.vcsLinkId)).concat(r)},t.body=function(){},t}return $(t,e),t}(Zm),SE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of repositories accessible to this account",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/integrations/vcs/repos".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),_E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of branches for the repo",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t;["vcsService","repositoryOwner","repositoryName"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/integrations/vcs/repos/".concat(encodeURIComponent(e.parameters.vcsService),"/").concat(encodeURIComponent(e.parameters.repositoryOwner),"/").concat(encodeURIComponent(e.parameters.repositoryName),"/branches").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),UE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available billing plans",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/plans"},t.body=function(){},t}return $(t,e),t}(Vm),PE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists projects for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),OE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){return"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),kE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){return"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),xE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Update",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),TE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given project",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))},t.body=function(){},t}return $(t,e),t}(Vm),LE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given project. Fails if the project isn't empty.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Delete",t.endpointUrl=function(e){var t;["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId)).concat(r)},t.body=function(){},t}return $(t,e),t}(Ym),NE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),qE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),ME=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),GE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return $(t,e),t}(Vm),zE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),$E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return $(t,e),t}(Ym),WE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about an addon's backup schedules",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),JE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new backup schedule for an addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),VE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a backup schedule for an addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","scheduleId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(e.parameters.scheduleId))},t.body=function(){},t}return $(t,e),t}(Ym),HE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of backups for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),ZE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for the given addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),YE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))},t.body=function(){},t}return $(t,e),t}(Vm),KE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a given backup",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))},t.body=function(){},t}return $(t,e),t}(Ym),XE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the in progress backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort")},t.body=function(){},t}return $(t,e),t}(Zm),QE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts an in-progress backup restore.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t;["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort-restore").concat(r)},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),eA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generates a temporary download link for downloading the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/download-link")},t.body=function(){},t}return $(t,e),t}(Vm),tA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restores the given addon to the given backup state.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t;["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restore").concat(r)},t.body=function(){},t}return $(t,e),t}(Zm),nA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of restores for the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restores").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),rA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId","backupId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/retain")},t.body=function(){},t}return $(t,e),t}(Zm),iA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > Deployment > View Instances",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/containers").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),oA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the credentials for connecting to the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/credentials")},t.body=function(){},t}return $(t,e),t}(Vm),uA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Imports a database from an external archive or existing live database.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),sA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the network settings for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/network-settings")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),aA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/pause")},t.body=function(){},t}return $(t,e),t}(Zm),cA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Reset the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/reset")},t.body=function(){},t}return $(t,e),t}(Zm),dA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restart the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restart")},t.body=function(){},t}return $(t,e),t}(Zm),lA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of restores for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t;["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restores").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),hA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resume the given addon if it is paused.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/resume")},t.body=function(){},t}return $(t,e),t}(Zm),pA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the allocated resources for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/scale")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),fA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the security rules for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/security")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),mA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the current addon version including available upgrades and upgrade history.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")},t.body=function(){},t}return $(t,e),t}(Vm),vA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Upgrades the addon to a new version.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return["projectId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),EA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of jobs belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),AA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),bA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),yA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),gA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),CA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),wA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),FA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(){},t}return $(t,e),t}(Vm),DA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Delete",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))},t.body=function(){},t}return $(t,e),t}(Ym),BA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/branches").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),IA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists builds for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),RA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Start a new build for the given job. Given a commit sha, it will build that commit.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),jA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments").concat(r)},t.body=function(){},t}return $(t,e),t}(Vm),SA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets build arguments for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),_A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments/details")},t.body=function(){},t}return $(t,e),t}(Vm),UA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-options")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),PA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-source")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),OA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId","buildId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return $(t,e),t}(Vm),kA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job build",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId","buildId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return $(t,e),t}(Ym),xA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > View Instance Logs",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/containers").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),TA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")},t.body=function(){},t}return $(t,e),t}(Vm),LA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),NA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")},t.body=function(){},t}return $(t,e),t}(Vm),qA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),MA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pause")},t.body=function(){},t}return $(t,e),t}(Zm),GA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pull-requests").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),zA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given job. Optionally takes several arguments to override resumed settings.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/resume")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),$A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetches run history for the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),WA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Starts a new job run for the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),JA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns data about the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){return["projectId","jobId","runId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))},t.body=function(){},t}return $(t,e),t}(Vm),VA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","jobId","runId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))},t.body=function(){},t}return $(t,e),t}(Ym),HA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the runtime environment for the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t;["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment").concat(r)},t.body=function(){},t}return $(t,e),t}(Vm),ZA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),YA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment/details")},t.body=function(){},t}return $(t,e),t}(Vm),KA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Scale Job",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/scale")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),XA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates settings for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/settings")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),QA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modify cron job to toggle suspending of its schedule.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){return["projectId","jobId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/suspend")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),eb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all pipelines for a project",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),tb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a pipeline",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId))},t.body=function(){},t}return $(t,e),t}(Vm),nb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),rb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a given preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){return["projectId","pipelineId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),ib=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active preview environments for a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),ob=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a preview environment generated by a preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Delete",t.endpointUrl=function(e){return["projectId","pipelineId","previewId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(e.parameters.previewId))},t.body=function(){},t}return $(t,e),t}(Ym),ub=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of preview template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),sb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId","templateRunId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(e.parameters.templateRunId))},t.body=function(){},t}return $(t,e),t}(Vm),ab=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId","stage"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))},t.body=function(){},t}return $(t,e),t}(Vm),cb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){return["projectId","pipelineId","stage"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),db=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Runs a given release flow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){return["projectId","pipelineId","stage"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),lb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t;["projectId","pipelineId","stage"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),hb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){return["projectId","pipelineId","stage","runId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId))},t.body=function(){},t}return $(t,e),t}(Vm),pb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){return["projectId","pipelineId","stage","runId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")},t.body=function(){},t}return $(t,e),t}(Zm),fb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of secrets belonging to the project",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),mb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),vb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),Eb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),Ab=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a secret including its contents",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;["projectId","secretId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId)).concat(r)},t.body=function(){},t}return $(t,e),t}(Vm),bb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(){},t}return $(t,e),t}(Ym),yb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),gb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Link an addon to the secret group or edit the settings of the linked addon.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Cb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a given addon link.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return $(t,e),t}(Vm),wb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unlinks an addon from the secret group.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId","addonId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return $(t,e),t}(Ym),Fb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a secret with details about its linked addons",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return["projectId","secretId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/details")},t.body=function(){},t}return $(t,e),t}(Vm),Db=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of services belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Bb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Ib=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),Rb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),jb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Sb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),_b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),Ub=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Pb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),Ob=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),kb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))},t.body=function(){},t}return $(t,e),t}(Vm),xb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Delete",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId)).concat(r)},t.body=function(){},t}return $(t,e),t}(Ym),Tb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/branches").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Lb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the builds for the service",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Nb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Start a new build for the given combined or build service. If given a commit sha, it will build that commit. Otherwise, the most recent relevant commit will be built. If the service provided is a build service, a branch name or pull request to build from is required.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),qb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the build arguments of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments").concat(r)},t.body=function(){},t}return $(t,e),t}(Vm),Mb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the build arguments for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Gb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments/details")},t.body=function(){},t}return $(t,e),t}(Vm),zb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-options")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),$b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given build or combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-source")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Wb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the service",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId","buildId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return $(t,e),t}(Vm),Jb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given service build",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Deploy Build",t.endpointUrl=function(e){return["projectId","serviceId","buildId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))},t.body=function(){},t}return $(t,e),t}(Ym),Vb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > View Instances",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/containers").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Hb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > View Instances",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")},t.body=function(){},t}return $(t,e),t}(Vm),Zb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Yb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")},t.body=function(){},t}return $(t,e),t}(Vm),Kb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Xb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pause")},t.body=function(){},t}return $(t,e),t}(Zm),Qb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")},t.body=function(){},t}return $(t,e),t}(Vm),ey=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the list of ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),ty=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pull-requests").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),ny=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restarts the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/restart")},t.body=function(){},t}return $(t,e),t}(Zm),ry=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given service. Optionally takes several arguments to override resumed settings.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/resume")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),iy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the runtime environment of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t;["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment").concat(r)},t.body=function(){},t}return $(t,e),t}(Vm),oy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Update",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),uy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment/details")},t.body=function(){},t}return $(t,e),t}(Vm),sy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Scale Service",t.endpointUrl=function(e){return["projectId","serviceId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/scale")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),ay=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of volumes belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")},t.body=function(){},t}return $(t,e),t}(Vm),cy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a volume with the specified payload",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Create",t.endpointUrl=function(e){return["projectId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),dy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){return["projectId","volumeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))},t.body=function(){},t}return $(t,e),t}(Vm),ly=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update volume mounts and storage size",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){return["projectId","volumeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),hy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes this volume and its associated data.",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Delete",t.endpointUrl=function(e){return["projectId","volumeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))},t.body=function(){},t}return $(t,e),t}(Ym),py=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){return["projectId","volumeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/attach")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),fy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Detach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){return["projectId","volumeId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/detach")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),my=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available project regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/regions"},t.body=function(){},t}return $(t,e),t}(Vm),vy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List the resource tags for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/tags".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Ey=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Add a new resource tag for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Create",t.endpointUrl=function(e){return"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Ay=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update or create a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){return["resourceTagId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Km),by=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View details for a given resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){return["resourceTagId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))},t.body=function(){},t}return $(t,e),t}(Vm),yy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Patch a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){return["resourceTagId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Xm),gy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Delete",t.endpointUrl=function(e){return["resourceTagId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))},t.body=function(){},t}return $(t,e),t}(Ym),Cy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of templates",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/templates".concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),wy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){return"/v1/templates"},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Fy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["templateId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId)).concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),Dy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Update",t.endpointUrl=function(e){return["templateId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),By=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Delete",t.endpointUrl=function(e){return["templateId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))},t.body=function(){},t}return $(t,e),t}(Ym),Iy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Run",t.endpointUrl=function(e){return["templateId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs")},t.body=function(e){return JSON.stringify(e.data)},t}return $(t,e),t}(Zm),Ry=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t;["templateId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}));var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter((function(e){return void 0!==e[1]})),r=n.length>0?"?".concat(n.map((function(e){return"".concat(e[0],"=").concat(e[1])})).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs").concat(r)},t.body=function(){},t}return $(t,e),t}(Hm),jy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){return["templateId","templateRunId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId))},t.body=function(){},t}return $(t,e),t}(Vm),Sy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > Runs > Abort",t.endpointUrl=function(e){return["templateId","templateRunId"].forEach((function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))})),"/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId),"/abort")},t.body=function(){},t}return $(t,e),t}(Zm),_y=function(){function e(){this.loadContext()}return e.prototype.loadContext=function(){this.contextWrapper=this.loadContextWrapper()},e.prototype.getInfo=function(){return""},e.prototype.storeContext=function(e){return J(this,void 0,void 0,(function(){return V(this,(function(t){switch(t.label){case 0:return[4,this.writeContext(e)];case 1:return t.sent(),this.contextWrapper=e,[2]}}))}))},e.prototype.addContext=function(e,t){return void 0===t&&(t=!0),J(this,void 0,void 0,(function(){var n,r,i;return V(this,(function(o){switch(o.label){case 0:if(t||void 0===this.findContext(e.name))return[3,1];throw new Error("Context with name ".concat(e.name," already exists"));case 1:return[4,this.removeContext(e.name)];case 2:o.sent(),o.label=3;case 3:return n=W({host:"https://api.northflank.com"},e),r=this.contextWrapper,i={current:n.name,contexts:H(H([],r.contexts,!0),[n],!1),lastUpdateCheck:r.lastUpdateCheck},[4,this.storeContext(i)];case 4:return o.sent(),[2]}}))}))},e.prototype.removeContext=function(e){return J(this,void 0,void 0,(function(){var t,n,r,i;return V(this,(function(o){switch(o.label){case 0:return t=this.contextWrapper,n=t.contexts.filter((function(t){return t.name!==e})),r=t.current===e?void 0:t.current,i={current:r,contexts:H([],n,!0),lastUpdateCheck:t.lastUpdateCheck},[4,this.storeContext(i)];case 1:return o.sent(),[2]}}))}))},e.prototype.getCurrentContext=function(){var e=this.contextWrapper.current;return void 0===e?e:this.findContext(e)},e.prototype.findContext=function(e){return this.contextWrapper.contexts.find((function(t){return t.name===e}))},e.prototype.getCurrentBaseUrl=function(e){var t=this.getCurrentContext();if(!0===e&&!(null==t?void 0:t.host))throw new Error("Context (".concat(null==t?void 0:t.name,") doesn't have a target API host. Please login again."));return null==t?void 0:t.host},e.prototype.getCurrentProjectName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.project},e.prototype.getCurrentName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.name},e.prototype.getCurrentToken=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.token},e.prototype.getCurrentServiceName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.service},e.prototype.getCurrentJobName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.job},e.prototype.getCurrentPlanId=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.plan},e.prototype.getCurrentRegion=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.region},e.prototype.useContext=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:if(!this.findContext(e))throw new Error("Context with name ".concat(e," doesn't exist"));return t=this.contextWrapper,n=W(W({},t),{current:e}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}}))}))},e.prototype.updateToken=function(e,t){return J(this,void 0,void 0,(function(){var n,r,i,o,u;return V(this,(function(s){switch(s.label){case 0:if(n=null!=t?t:this.getCurrentName(),!(r=this.findContext(n)))throw new Error("Context with name ".concat(t," doesn't exist"));return i=this.contextWrapper,o=i.contexts.map((function(t){return t.name===n?W(W({},r),{token:e}):t})),u=W(W({},i),{contexts:o}),[4,this.storeContext(u)];case 1:return s.sent(),[2]}}))}))},e.prototype.useProjectId=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set project id to current context, current context not defined");return n=W(W({},t),{project:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}}))}))},e.prototype.useServiceId=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set service id to current context, current context not defined");return n=W(W({},t),{service:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}}))}))},e.prototype.useJobId=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set job id to current context, current context not defined");return n=W(W({},t),{job:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}}))}))},e.prototype.usePlanId=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set plan id to current context, current context not defined");return n=W(W({},t),{plan:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}}))}))},e.prototype.useRegion=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:if(void 0===(t=this.getCurrentContext()))throw new Error("Failed to set region id to current context, current context not defined");return n=W(W({},t),{region:e}),[4,this.addContext(n)];case 1:return r.sent(),[2]}}))}))},e.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},e.prototype.setLastUpdateCheck=function(e){return J(this,void 0,void 0,(function(){var t,n;return V(this,(function(r){switch(r.label){case 0:return t=this.contextWrapper,n=W(W({},t),{lastUpdateCheck:e}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}}))}))},e}(),Uy=function(e){function t(t){var n=e.call(this)||this;return n.assertDir=function(e){return J(n,void 0,void 0,(function(){var t;return V(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),E.existsSync(e)?[3,2]:[4,E.promises.mkdir(e,{recursive:!0})];case 1:n.sent(),n.label=2;case 2:return[3,4];case 3:throw t=n.sent(),console.log("Failed to login, local files could not be created: ".concat(e,", error: ").concat(t.message)),t;case 4:return[2]}}))}))},n.configPath=t||"".concat(p.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return $(t,e),t.prototype.loadContextWrapper=function(){try{return JSON.parse(E.readFileSync(this.configFile,"utf8"))}catch(e){return{contexts:[],lastUpdateCheck:new Date(0)}}},t.prototype.writeContext=function(e){return J(this,void 0,void 0,(function(){var t;return V(this,(function(n){switch(n.label){case 0:return[4,this.assertConfigDir()];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,E.promises.writeFile(this.configFile,JSON.stringify(e,null,"\t"),{mode:416})];case 3:return n.sent(),[3,5];case 4:throw t=n.sent(),console.log("Failed to persist api context, local files could not be created, error: ".concat(t.message)),t;case 5:return[2]}}))}))},t.prototype.assertConfigDir=function(){return J(this,void 0,void 0,(function(){return V(this,(function(e){switch(e.label){case 0:return[4,this.assertDir(this.configPath)];case 1:return e.sent(),[2]}}))}))},t.prototype.getInfo=function(){return"Cli config stored in: ".concat(this.configPath)},t}(_y),Py=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t}return $(t,e),t.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},t.prototype.writeContext=function(e){return J(this,void 0,void 0,(function(){return V(this,(function(t){return this.inMemoryContextWrapper=e,[2]}))}))},t}(_y),Oy=function(e,t){void 0===t&&(t={});var n,r,i,o=this;this.baseUrl=function(){return o.contextProvider.getCurrentBaseUrl()},this.contextProvider=e,this.forwarding=new Ha(e,new Db(e,t),new NE(e,t),t.agent),this.exec=new Ka(e,t.agent),this.logs=new iv(e,t),this.metrics=new sv(e),this.fileCopy=new Gm(this.exec),this.endpoints={get:(i={},i.addon=((r=new GE(e,t)).types=new av(e,t),r.backupSchedules=new WE(e,t),r.backups=new HE(e,t),r.backup=((n=new YE(e,t)).download=new eA(e,t),n.restores=new nA(e,t),n),r.containers=new iA(e,t),r.credentials=new oA(e,t),r.restores=new lA(e,t),r.version=new mA(e,t),r),i.backupDestination=new lv(e,t),i.invoice=function(){var n={};return n.details=new vv(e,t),n}(),i.cloud=function(){var n={};return n.cluster=new gv(e,t),n.dockerRegistry=new _v(e,t),n.integration=new Tv(e,t),n}(),i.dnsId=new Gv(e,t),i.domain=new Wv(e,t),i.domainCertificate=new Vv(e,t),i.subdomain=function(){var n=new Yv(e,t);return n.path=new iE(e,t),n}(),i.logSink=new pE(e,t),i.notification=new yE(e,t),i.registryCredentials=new DE(e,t),i.project=new TE(e,t),i.job=function(){var n=new FA(e,t);return n.branches=new BA(e,t),n.builds=new IA(e,t),n.buildArguments=new jA(e,t),n.buildArgumentDetails=new _A(e,t),n.build=new OA(e,t),n.containers=new xA(e,t),n.deployment=new TA(e,t),n.healthChecks=new NA(e,t),n.pullRequests=new GA(e,t),n.runs=new $A(e,t),n.run=new JA(e,t),n.runtimeEnvironment=new HA(e,t),n.runtimeEnvironmentDetails=new YA(e,t),n}(),i.pipeline=new tb(e,t),i.previewTemplate=new nb(e,t),i.previewTemplateRun=new sb(e,t),i.releaseFlow=new ab(e,t),i.releaseFlowRun=new hb(e,t),i.secret=new Ab(e,t),i.secretLink=new Cb(e,t),i.secretDetails=new Fb(e,t),i.service=function(){var n=new kb(e,t);return n.branches=new Tb(e,t),n.builds=new Lb(e,t),n.buildArguments=new qb(e,t),n.buildArgumentDetails=new Gb(e,t),n.build=new Wb(e,t),n.containers=new Vb(e,t),n.deployment=new Hb(e,t),n.healthChecks=new Yb(e,t),n.ports=new Qb(e,t),n.pullRequests=new ty(e,t),n.runtimeEnvironment=new iy(e,t),n.runtimeEnvironmentDetails=new uy(e,t),n}(),i.volume=new dy(e,t),i.tag=new by(e,t),i.template=new Fy(e,t),i.templateRun=new jy(e,t),i),list:function(){var n={};return n.backupDestinations=new cv(e,t),n.backupDestinationsBackups=new fv(e,t),n.invoices=new mv(e,t),n.cloud=function(){var n={};return n.providers=new Ev(e,t),n.clusters=new Av(e,t),n.cluster=function(){var n={};return n.nodes=new Fv(e,t),n}(),n.dockerRegistry=new Rv(e,t),n.integrations=new Ov(e,t),n.nodeTypes=new qv(e,t),n.regions=new Mv(e,t),n}(),n.domains=new zv(e,t),n.subdomain=function(){var n={};return n.path=new rE(e,t),n}(),n.logSinks=new lE(e,t),n.notifications=new AE(e,t),n.registryCredentials=new wE(e,t),n.vcs=new RE(e,t),n.repos=new SE(e,t),n.branches=new _E(e,t),n.plans=new UE(e,t),n.projects=new PE(e,t),n.addons=new NE(e,t),n.jobs=new EA(e,t),n.pipelines=new eb(e,t),n.previewTemplatePreviews=new ib(e,t),n.previewTemplateRuns=new ub(e,t),n.releaseFlowRuns=new lb(e,t),n.secrets=new fb(e,t),n.services=new Db(e,t),n.volumes=new ay(e,t),n.regions=new my(e,t),n.tags=new vy(e,t),n.templates=new Cy(e,t),n.templateRuns=new Ry(e,t),n}(),add:function(){var n={};return n.backupDestination=new dv(e,t),n.domain=function(){var n={};return n.subdomain=new Zv(e,t),n}(),n.subdomain=function(){var n={};return n.path=new nE(e,t),n}(),n.registryCredentials=new FE(e,t),n.tag=new Ey(e,t),n}(),patch:function(){var n={};return n.backupDestination=new hv(e,t),n.cloud=function(){var n={};return n.cluster=new Cv(e,t),n.dockerRegistry=new Uv(e,t),n.integration=new Lv(e,t),n}(),n.project=new xE(e,t),n.addon=new zE(e,t),n.job=function(){var n={};return n.cron=new yA(e,t),n.manual=new wA(e,t),n}(),n.secret=new Eb(e,t),n.service=function(){var n={};return n.build=new Rb(e,t),n.combined=new _b(e,t),n.deployment=new Ob(e,t),n}(),n.tag=new yy(e,t),n}(),delete:function(){var n={};return n.backupDestination=new pv(e,t),n.cloud=function(){var n={};return n.cluster=new wv(e,t),n.dockerRegistry=new Pv(e,t),n.integration=new Nv(e,t),n}(),n.domain=new Jv(e,t),n.subdomain=function(){var n=new Kv(e,t);return n.path=new oE(e,t),n}(),n.logSink=new fE(e,t),n.notification=new CE(e,t),n.registryCredentials=new BE(e,t),n.project=new LE(e,t),n.addon=function(){var n=new $E(e,t);return n.backupSchedule=new VE(e,t),n}(),n.backup=new KE(e,t),n.job=new DA(e,t),n.previewTemplatePreview=new ob(e,t),n.secret=new bb(e,t),n.secretLink=new wb(e,t),n.service=new xb(e,t),n.volume=new hy(e,t),n.tag=new gy(e,t),n.template=new By(e,t),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new bv(e,t),n.dockerRegistry=new jv(e,t),n.integration=new kv(e,t),n}(),n.domain=new $v(e,t),n.logSink=new hE(e,t),n.notification=new bE(e,t),n.customVcs=function(){var n={};return n.token=new jE(e,t),n}(),n.project=new OE(e,t),n.addon=function(){var n=new qE(e,t);return n.backupSchedule=new JE(e,t),n}(),n.job=function(){var n={};return n.cron=new AA(e,t),n.manual=new gA(e,t),n}(),n.secret=new mb(e,t),n.service=function(){var n={};return n.build=new Bb(e,t),n.combined=new jb(e,t),n.deployment=new Ub(e,t),n}(),n.volume=new cy(e,t),n.template=new wy(e,t),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new yv(e,t),n.dockerRegistry=new Sv(e,t),n.integration=new xv(e,t),n}(),n.project=new kE(e,t),n.addon=new ME(e,t),n.job=function(){var n={};return n.cron=new bA(e,t),n.manual=new CA(e,t),n}(),n.secret=new vb(e,t),n.service=function(){var n={};return n.build=new Ib(e,t),n.combined=new Sb(e,t),n.deployment=new Pb(e,t),n}(),n.tag=new Ay(e,t),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Dv(e,t),n}(),n}(),n}(),drain:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Bv(e,t),n}(),n}(),n}(),uncordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Iv(e,t),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new Hv(e,t),n.addon=function(){var n={};return n.backup=new uA(e,t),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Xv(e,t),n.path=new sE(e,t),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Qv(e,t);return n.path=new aE(e,t),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new eE(e,t),n}(),n}(),enable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new tE(e,t),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new uE(e,t),n}(),n.logSink=new EE(e,t),n.notification=new gE(e,t),n.registryCredentials=new IE(e,t),n.addon=function(){var n={};return n.networkSettings=new sA(e,t),n.security=new fA(e,t),n.version=new vA(e,t),n}(),n.job=function(){var n={};return n.buildArguments=new SA(e,t),n.buildOptions=new UA(e,t),n.buildSource=new PA(e,t),n.deployment=new LA(e,t),n.healthChecks=new qA(e,t),n.runtimeEnvironment=new ZA(e,t),n.settings=new XA(e,t),n}(),n.previewTemplate=new rb(e,t),n.releaseFlow=new cb(e,t),n.secret=new yb(e,t),n.secretLink=new gb(e,t),n.service=function(){var n={};return n.buildArguments=new Mb(e,t),n.buildOptions=new zb(e,t),n.buildSource=new $b(e,t),n.deployment=new Zb(e,t),n.healthChecks=new Kb(e,t),n.ports=new ey(e,t),n.runtimeEnvironment=new oy(e,t),n}(),n.volume=new ly(e,t),n.template=new Dy(e,t),n}(),verify:function(){var n={};return n.subdomain=new cE(e,t),n.domain=new dE(e,t),n}(),pause:function(){var n={};return n.logSink=new mE(e,t),n.addon=new aA(e,t),n.job=new MA(e,t),n.service=new Xb(e,t),n}(),resume:function(){var n={};return n.logSink=new vE(e,t),n.addon=new hA(e,t),n.job=new zA(e,t),n.service=new ry(e,t),n}(),backup:function(){var n={};return n.addon=new ZE(e,t),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new XE(e,t),n.restore=new QE(e,t),n}(),n.job=function(){var n={};return n.build=new kA(e,t),n.run=new VA(e,t),n}(),n.releaseFlowRun=new pb(e,t),n.service=function(){var n={};return n.build=new Jb(e,t),n}(),n.templateRun=new Sy(e,t),n}(),restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new tA(e,t),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new rA(e,t),n}(),n}(),reset:function(){var n={};return n.addon=new cA(e,t),n}(),restart:function(){var n={};return n.addon=new dA(e,t),n.service=new ny(e,t),n}(),scale:function(){var n={};return n.addon=new pA(e,t),n.job=new KA(e,t),n.service=new sy(e,t),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new RA(e,t),n.run=new WA(e,t),n}(),n.service=function(){var n={};return n.build=new Nb(e,t),n}(),n}(),suspend:function(){var n={};return n.job=new QA(e,t),n}(),run:function(){var n={};return n.releaseFlow=new db(e,t),n.template=new Iy(e,t),n}(),attach:function(){var n={};return n.volume=new py(e,t),n}(),detach:function(){var n={};return n.volume=new fy(e,t),n}(),download:function(){var e={};return e.service=function(){var e={};return e.files=o.fileCopy.downloadServiceFiles.bind(o.fileCopy),e}(),e.job=function(){var e={};return e.files=o.fileCopy.downloadJobFiles.bind(o.fileCopy),e}(),e}(),upload:function(){var e={};return e.service=function(){var e={};return e.files=o.fileCopy.uploadServiceFiles.bind(o.fileCopy),e}(),e.job=function(){var e={};return e.files=o.fileCopy.uploadJobFiles.bind(o.fileCopy),e}(),e}()},this.download=function(){var e={};return e.service=function(){var e={};return e.files=o.endpoints.download.service.files,e}(),e.job=function(){var e={};return e.files=o.endpoints.download.job.files,e}(),e}(),this.upload=function(){var e={};return e.service=function(){var e={};return e.files=o.endpoints.upload.service.files,e}(),e.job=function(){var e={};return e.files=o.endpoints.upload.job.files,e}(),e}(),this.get=function(){var e={};return e.addon=function(){var e=o.endpoints.get.addon.call;return e.types=o.endpoints.get.addon.types.call,e.backupSchedules=function(){var e=o.endpoints.get.addon.backupSchedules.call;return e.all=o.endpoints.get.addon.backupSchedules.all,e}(),e.backups=function(){var e=o.endpoints.get.addon.backups.call;return e.all=o.endpoints.get.addon.backups.all,e}(),e.backup=function(){var e=o.endpoints.get.addon.backup.call;return e.download=o.endpoints.get.addon.backup.download.call,e.restores=function(){var e=o.endpoints.get.addon.backup.restores.call;return e.all=o.endpoints.get.addon.backup.restores.all,e}(),e.logs=o.logs.getAddonBackupLogs,e.logTail=o.logs.tailAddonBackupLogs,e}(),e.containers=function(){var e=o.endpoints.get.addon.containers.call;return e.all=o.endpoints.get.addon.containers.all,e}(),e.credentials=o.endpoints.get.addon.credentials.call,e.restores=function(){var e=function(){var e=o.endpoints.get.addon.restores.call;return e.all=o.endpoints.get.addon.restores.all,e}();return e.logs=o.logs.getAddonRestoresLogs,e.logTail=o.logs.tailAddonRestoresLogs,e}(),e.version=o.endpoints.get.addon.version.call,e.logs=o.logs.getAddonLogs,e.logTail=o.logs.tailAddonLogs,e.metrics=o.metrics.getAddonMetrics,e.metricsRange=o.metrics.getAddonMetricsRange,e}(),e.backupDestination=o.endpoints.get.backupDestination.call,e.invoice=function(){var e={};return e.details=o.endpoints.get.invoice.details.call,e}(),e.cloud=function(){var e={};return e.cluster=o.endpoints.get.cloud.cluster.call,e.dockerRegistry=o.endpoints.get.cloud.dockerRegistry.call,e.integration=o.endpoints.get.cloud.integration.call,e}(),e.dnsId=o.endpoints.get.dnsId.call,e.domain=o.endpoints.get.domain.call,e.domainCertificate=o.endpoints.get.domainCertificate.call,e.subdomain=function(){var e=o.endpoints.get.subdomain.call;return e.path=o.endpoints.get.subdomain.path.call,e}(),e.logSink=o.endpoints.get.logSink.call,e.notification=o.endpoints.get.notification.call,e.registryCredentials=o.endpoints.get.registryCredentials.call,e.project=o.endpoints.get.project.call,e.job=function(){var e=o.endpoints.get.job.call;return e.branches=function(){var e=o.endpoints.get.job.branches.call;return e.all=o.endpoints.get.job.branches.all,e}(),e.builds=function(){var e=o.endpoints.get.job.builds.call;return e.all=o.endpoints.get.job.builds.all,e}(),e.buildArguments=o.endpoints.get.job.buildArguments.call,e.buildArgumentDetails=o.endpoints.get.job.buildArgumentDetails.call,e.build=o.endpoints.get.job.build.call,e.containers=function(){var e=o.endpoints.get.job.containers.call;return e.all=o.endpoints.get.job.containers.all,e}(),e.deployment=o.endpoints.get.job.deployment.call,e.healthChecks=o.endpoints.get.job.healthChecks.call,e.pullRequests=function(){var e=o.endpoints.get.job.pullRequests.call;return e.all=o.endpoints.get.job.pullRequests.all,e}(),e.runs=function(){var e=o.endpoints.get.job.runs.call;return e.all=o.endpoints.get.job.runs.all,e}(),e.run=o.endpoints.get.job.run.call,e.runtimeEnvironment=o.endpoints.get.job.runtimeEnvironment.call,e.runtimeEnvironmentDetails=o.endpoints.get.job.runtimeEnvironmentDetails.call,e.logs=o.logs.getJobLogs,e.buildLogs=o.logs.getJobBuildLogs,e.logTail=o.logs.tailJobLogs,e.buildLogTail=o.logs.tailJobBuildLogs,e.metrics=o.metrics.getJobMetrics,e.buildMetrics=o.metrics.getJobBuildMetrics,e.metricsRange=o.metrics.getJobMetricsRange,e.buildMetricsRange=o.metrics.getJobBuildMetricsRange,e}(),e.pipeline=o.endpoints.get.pipeline.call,e.previewTemplate=function(){var e=o.endpoints.get.previewTemplate.call;return e.all=o.endpoints.get.previewTemplate.all,e}(),e.previewTemplateRun=o.endpoints.get.previewTemplateRun.call,e.releaseFlow=o.endpoints.get.releaseFlow.call,e.releaseFlowRun=o.endpoints.get.releaseFlowRun.call,e.secret=o.endpoints.get.secret.call,e.secretLink=o.endpoints.get.secretLink.call,e.secretDetails=o.endpoints.get.secretDetails.call,e.service=function(){var e=o.endpoints.get.service.call;return e.branches=function(){var e=o.endpoints.get.service.branches.call;return e.all=o.endpoints.get.service.branches.all,e}(),e.builds=function(){var e=o.endpoints.get.service.builds.call;return e.all=o.endpoints.get.service.builds.all,e}(),e.buildArguments=o.endpoints.get.service.buildArguments.call,e.buildArgumentDetails=o.endpoints.get.service.buildArgumentDetails.call,e.build=o.endpoints.get.service.build.call,e.containers=function(){var e=o.endpoints.get.service.containers.call;return e.all=o.endpoints.get.service.containers.all,e}(),e.deployment=o.endpoints.get.service.deployment.call,e.healthChecks=o.endpoints.get.service.healthChecks.call,e.ports=o.endpoints.get.service.ports.call,e.pullRequests=function(){var e=o.endpoints.get.service.pullRequests.call;return e.all=o.endpoints.get.service.pullRequests.all,e}(),e.runtimeEnvironment=o.endpoints.get.service.runtimeEnvironment.call,e.runtimeEnvironmentDetails=o.endpoints.get.service.runtimeEnvironmentDetails.call,e.logs=o.logs.getServiceLogs,e.buildLogs=o.logs.getServiceBuildLogs,e.logTail=o.logs.tailServiceLogs,e.buildLogTail=o.logs.tailServiceBuildLogs,e.metrics=o.metrics.getServiceMetrics,e.buildMetrics=o.metrics.getServiceBuildMetrics,e.metricsRange=o.metrics.getServiceMetricsRange,e.buildMetricsRange=o.metrics.getServiceBuildMetricsRange,e}(),e.volume=o.endpoints.get.volume.call,e.tag=o.endpoints.get.tag.call,e.template=function(){var e=o.endpoints.get.template.call;return e.all=o.endpoints.get.template.all,e}(),e.templateRun=o.endpoints.get.templateRun.call,e}(),this.list=function(){var e={};return e.backupDestinations=function(){var e=o.endpoints.list.backupDestinations.call;return e.all=o.endpoints.list.backupDestinations.all,e}(),e.backupDestinationsBackups=function(){var e=o.endpoints.list.backupDestinationsBackups.call;return e.all=o.endpoints.list.backupDestinationsBackups.all,e}(),e.invoices=function(){var e=o.endpoints.list.invoices.call;return e.all=o.endpoints.list.invoices.all,e}(),e.cloud=function(){var e={};return e.providers=o.endpoints.list.cloud.providers.call,e.clusters=function(){var e=o.endpoints.list.cloud.clusters.call;return e.all=o.endpoints.list.cloud.clusters.all,e}(),e.cluster=function(){var e={};return e.nodes=function(){var e=o.endpoints.list.cloud.cluster.nodes.call;return e.all=o.endpoints.list.cloud.cluster.nodes.all,e}(),e}(),e.dockerRegistry=function(){var e=o.endpoints.list.cloud.dockerRegistry.call;return e.all=o.endpoints.list.cloud.dockerRegistry.all,e}(),e.integrations=function(){var e=o.endpoints.list.cloud.integrations.call;return e.all=o.endpoints.list.cloud.integrations.all,e}(),e.nodeTypes=function(){var e=o.endpoints.list.cloud.nodeTypes.call;return e.all=o.endpoints.list.cloud.nodeTypes.all,e}(),e.regions=function(){var e=o.endpoints.list.cloud.regions.call;return e.all=o.endpoints.list.cloud.regions.all,e}(),e}(),e.domains=function(){var e=o.endpoints.list.domains.call;return e.all=o.endpoints.list.domains.all,e}(),e.subdomain=function(){var e={};return e.path=o.endpoints.list.subdomain.path.call,e}(),e.logSinks=function(){var e=o.endpoints.list.logSinks.call;return e.all=o.endpoints.list.logSinks.all,e}(),e.notifications=function(){var e=o.endpoints.list.notifications.call;return e.all=o.endpoints.list.notifications.all,e}(),e.registryCredentials=function(){var e=o.endpoints.list.registryCredentials.call;return e.all=o.endpoints.list.registryCredentials.all,e}(),e.vcs=o.endpoints.list.vcs.call,e.repos=function(){var e=o.endpoints.list.repos.call;return e.all=o.endpoints.list.repos.all,e}(),e.branches=function(){var e=o.endpoints.list.branches.call;return e.all=o.endpoints.list.branches.all,e}(),e.plans=o.endpoints.list.plans.call,e.projects=function(){var e=o.endpoints.list.projects.call;return e.all=o.endpoints.list.projects.all,e}(),e.addons=function(){var e=o.endpoints.list.addons.call;return e.all=o.endpoints.list.addons.all,e}(),e.jobs=function(){var e=o.endpoints.list.jobs.call;return e.all=o.endpoints.list.jobs.all,e}(),e.pipelines=function(){var e=o.endpoints.list.pipelines.call;return e.all=o.endpoints.list.pipelines.all,e}(),e.previewTemplatePreviews=function(){var e=o.endpoints.list.previewTemplatePreviews.call;return e.all=o.endpoints.list.previewTemplatePreviews.all,e}(),e.previewTemplateRuns=function(){var e=o.endpoints.list.previewTemplateRuns.call;return e.all=o.endpoints.list.previewTemplateRuns.all,e}(),e.releaseFlowRuns=function(){var e=o.endpoints.list.releaseFlowRuns.call;return e.all=o.endpoints.list.releaseFlowRuns.all,e}(),e.secrets=function(){var e=o.endpoints.list.secrets.call;return e.all=o.endpoints.list.secrets.all,e}(),e.services=function(){var e=o.endpoints.list.services.call;return e.all=o.endpoints.list.services.all,e}(),e.volumes=o.endpoints.list.volumes.call,e.regions=o.endpoints.list.regions.call,e.tags=function(){var e=o.endpoints.list.tags.call;return e.all=o.endpoints.list.tags.all,e}(),e.templates=function(){var e=o.endpoints.list.templates.call;return e.all=o.endpoints.list.templates.all,e}(),e.templateRuns=function(){var e=o.endpoints.list.templateRuns.call;return e.all=o.endpoints.list.templateRuns.all,e}(),e}(),this.add=function(){var e={};return e.backupDestination=o.endpoints.add.backupDestination.call,e.domain=function(){var e={};return e.subdomain=o.endpoints.add.domain.subdomain.call,e}(),e.subdomain=function(){var e={};return e.path=o.endpoints.add.subdomain.path.call,e}(),e.registryCredentials=o.endpoints.add.registryCredentials.call,e.tag=o.endpoints.add.tag.call,e}(),this.patch=function(){var e={};return e.backupDestination=o.endpoints.patch.backupDestination.call,e.cloud=function(){var e={};return e.cluster=o.endpoints.patch.cloud.cluster.call,e.dockerRegistry=o.endpoints.patch.cloud.dockerRegistry.call,e.integration=o.endpoints.patch.cloud.integration.call,e}(),e.project=o.endpoints.patch.project.call,e.addon=o.endpoints.patch.addon.call,e.job=function(){var e={};return e.cron=o.endpoints.patch.job.cron.call,e.manual=o.endpoints.patch.job.manual.call,e}(),e.secret=o.endpoints.patch.secret.call,e.service=function(){var e={};return e.build=o.endpoints.patch.service.build.call,e.combined=o.endpoints.patch.service.combined.call,e.deployment=o.endpoints.patch.service.deployment.call,e}(),e.tag=o.endpoints.patch.tag.call,e}(),this.delete=function(){var e={};return e.backupDestination=o.endpoints.delete.backupDestination.call,e.cloud=function(){var e={};return e.cluster=o.endpoints.delete.cloud.cluster.call,e.dockerRegistry=o.endpoints.delete.cloud.dockerRegistry.call,e.integration=o.endpoints.delete.cloud.integration.call,e}(),e.domain=o.endpoints.delete.domain.call,e.subdomain=function(){var e=o.endpoints.delete.subdomain.call;return e.path=o.endpoints.delete.subdomain.path.call,e}(),e.logSink=o.endpoints.delete.logSink.call,e.notification=o.endpoints.delete.notification.call,e.registryCredentials=o.endpoints.delete.registryCredentials.call,e.project=o.endpoints.delete.project.call,e.addon=function(){var e=o.endpoints.delete.addon.call;return e.backupSchedule=o.endpoints.delete.addon.backupSchedule.call,e}(),e.backup=o.endpoints.delete.backup.call,e.job=o.endpoints.delete.job.call,e.previewTemplatePreview=o.endpoints.delete.previewTemplatePreview.call,e.secret=o.endpoints.delete.secret.call,e.secretLink=o.endpoints.delete.secretLink.call,e.service=o.endpoints.delete.service.call,e.volume=o.endpoints.delete.volume.call,e.tag=o.endpoints.delete.tag.call,e.template=o.endpoints.delete.template.call,e}(),this.create=function(){var e={};return e.cloud=function(){var e={};return e.cluster=o.endpoints.create.cloud.cluster.call,e.dockerRegistry=o.endpoints.create.cloud.dockerRegistry.call,e.integration=o.endpoints.create.cloud.integration.call,e}(),e.domain=o.endpoints.create.domain.call,e.logSink=o.endpoints.create.logSink.call,e.notification=o.endpoints.create.notification.call,e.customVcs=function(){var e={};return e.token=o.endpoints.create.customVcs.token.call,e}(),e.project=o.endpoints.create.project.call,e.addon=function(){var e=o.endpoints.create.addon.call;return e.backupSchedule=o.endpoints.create.addon.backupSchedule.call,e}(),e.job=function(){var e={};return e.cron=o.endpoints.create.job.cron.call,e.manual=o.endpoints.create.job.manual.call,e}(),e.secret=o.endpoints.create.secret.call,e.service=function(){var e={};return e.build=o.endpoints.create.service.build.call,e.combined=o.endpoints.create.service.combined.call,e.deployment=o.endpoints.create.service.deployment.call,e}(),e.volume=o.endpoints.create.volume.call,e.template=o.endpoints.create.template.call,e}(),this.put=function(){var e={};return e.cloud=function(){var e={};return e.cluster=o.endpoints.put.cloud.cluster.call,e.dockerRegistry=o.endpoints.put.cloud.dockerRegistry.call,e.integration=o.endpoints.put.cloud.integration.call,e}(),e.project=o.endpoints.put.project.call,e.addon=o.endpoints.put.addon.call,e.job=function(){var e={};return e.cron=o.endpoints.put.job.cron.call,e.manual=o.endpoints.put.job.manual.call,e}(),e.secret=o.endpoints.put.secret.call,e.service=function(){var e={};return e.build=o.endpoints.put.service.build.call,e.combined=o.endpoints.put.service.combined.call,e.deployment=o.endpoints.put.service.deployment.call,e}(),e.tag=o.endpoints.put.tag.call,e}(),this.cordon=function(){var e={};return e.cloud=function(){var e={};return e.cluster=function(){var e={};return e.node=o.endpoints.cordon.cloud.cluster.node.call,e}(),e}(),e}(),this.drain=function(){var e={};return e.cloud=function(){var e={};return e.cluster=function(){var e={};return e.node=o.endpoints.drain.cloud.cluster.node.call,e}(),e}(),e}(),this.uncordon=function(){var e={};return e.cloud=function(){var e={};return e.cluster=function(){var e={};return e.node=o.endpoints.uncordon.cloud.cluster.node.call,e}(),e}(),e}(),this.import=function(){var e={};return e.domainCertificate=o.endpoints.import.domainCertificate.call,e.addon=function(){var e={};return e.backup=o.endpoints.import.addon.backup.call,e}(),e}(),this.assign=function(){var e={};return e.subdomain=function(){var e={};return e.service=o.endpoints.assign.subdomain.service.call,e.path=o.endpoints.assign.subdomain.path.call,e}(),e}(),this.unassign=function(){var e={};return e.subdomain=function(){var e=o.endpoints.unassign.subdomain.call;return e.path=o.endpoints.unassign.subdomain.path.call,e}(),e}(),this.disable=function(){var e={};return e.subdomain=function(){var e={};return e.cdn=o.endpoints.disable.subdomain.cdn.call,e}(),e}(),this.enable=function(){var e={};return e.subdomain=function(){var e={};return e.cdn=o.endpoints.enable.subdomain.cdn.call,e}(),e}(),this.update=function(){var e={};return e.subdomain=function(){var e={};return e.path=o.endpoints.update.subdomain.path.call,e}(),e.logSink=o.endpoints.update.logSink.call,e.notification=o.endpoints.update.notification.call,e.registryCredentials=o.endpoints.update.registryCredentials.call,e.addon=function(){var e={};return e.networkSettings=o.endpoints.update.addon.networkSettings.call,e.security=o.endpoints.update.addon.security.call,e.version=o.endpoints.update.addon.version.call,e}(),e.job=function(){var e={};return e.buildArguments=o.endpoints.update.job.buildArguments.call,e.buildOptions=o.endpoints.update.job.buildOptions.call,e.buildSource=o.endpoints.update.job.buildSource.call,e.deployment=o.endpoints.update.job.deployment.call,e.healthChecks=o.endpoints.update.job.healthChecks.call,e.runtimeEnvironment=o.endpoints.update.job.runtimeEnvironment.call,e.settings=o.endpoints.update.job.settings.call,e}(),e.previewTemplate=o.endpoints.update.previewTemplate.call,e.releaseFlow=o.endpoints.update.releaseFlow.call,e.secret=o.endpoints.update.secret.call,e.secretLink=o.endpoints.update.secretLink.call,e.service=function(){var e={};return e.buildArguments=o.endpoints.update.service.buildArguments.call,e.buildOptions=o.endpoints.update.service.buildOptions.call,e.buildSource=o.endpoints.update.service.buildSource.call,e.deployment=o.endpoints.update.service.deployment.call,e.healthChecks=o.endpoints.update.service.healthChecks.call,e.ports=o.endpoints.update.service.ports.call,e.runtimeEnvironment=o.endpoints.update.service.runtimeEnvironment.call,e}(),e.volume=o.endpoints.update.volume.call,e.template=o.endpoints.update.template.call,e}(),this.verify=function(){var e={};return e.subdomain=o.endpoints.verify.subdomain.call,e.domain=o.endpoints.verify.domain.call,e}(),this.pause=function(){var e={};return e.logSink=o.endpoints.pause.logSink.call,e.addon=o.endpoints.pause.addon.call,e.job=o.endpoints.pause.job.call,e.service=o.endpoints.pause.service.call,e}(),this.resume=function(){var e={};return e.logSink=o.endpoints.resume.logSink.call,e.addon=o.endpoints.resume.addon.call,e.job=o.endpoints.resume.job.call,e.service=o.endpoints.resume.service.call,e}(),this.backup=function(){var e={};return e.addon=o.endpoints.backup.addon.call,e}(),this.abort=function(){var e={};return e.addon=function(){var e={};return e.backup=o.endpoints.abort.addon.backup.call,e.restore=o.endpoints.abort.addon.restore.call,e}(),e.job=function(){var e={};return e.build=o.endpoints.abort.job.build.call,e.run=o.endpoints.abort.job.run.call,e}(),e.releaseFlowRun=o.endpoints.abort.releaseFlowRun.call,e.service=function(){var e={};return e.build=o.endpoints.abort.service.build.call,e}(),e.templateRun=o.endpoints.abort.templateRun.call,e}(),this.restore=function(){var e={};return e.addon=function(){var e={};return e.backup=o.endpoints.restore.addon.backup.call,e}(),e}(),this.retain=function(){var e={};return e.addon=function(){var e={};return e.backup=o.endpoints.retain.addon.backup.call,e}(),e}(),this.reset=function(){var e={};return e.addon=o.endpoints.reset.addon.call,e}(),this.restart=function(){var e={};return e.addon=o.endpoints.restart.addon.call,e.service=o.endpoints.restart.service.call,e}(),this.scale=function(){var e={};return e.addon=o.endpoints.scale.addon.call,e.job=o.endpoints.scale.job.call,e.service=o.endpoints.scale.service.call,e}(),this.start=function(){var e={};return e.job=function(){var e={};return e.build=o.endpoints.start.job.build.call,e.run=o.endpoints.start.job.run.call,e}(),e.service=function(){var e={};return e.build=o.endpoints.start.service.build.call,e}(),e}(),this.suspend=function(){var e={};return e.job=o.endpoints.suspend.job.call,e}(),this.run=function(){var e={};return e.releaseFlow=o.endpoints.run.releaseFlow.call,e.template=o.endpoints.run.template.call,e}(),this.attach=function(){var e={};return e.volume=o.endpoints.attach.volume.call,e}(),this.detach=function(){var e={};return e.volume=o.endpoints.detach.volume.call,e}()};export{XE as AbortAddonBackupEndpoint,QE as AbortAddonRestoreEndpoint,kA as AbortJobBuildEndpoint,VA as AbortJobRunEndpoint,pb as AbortReleaseflowrunEndpoint,Jb as AbortServiceBuildEndpoint,Sy as AbortTemplaterunEndpoint,dv as AddBackupdestinationEndpoint,Zv as AddDomainSubdomainEndpoint,FE as AddRegistrycredentialsEndpoint,nE as AddSubdomainPathEndpoint,Ey as AddTagEndpoint,Oy as ApiClient,_y as ApiClientContextProvider,Uy as ApiClientFileContextProvider,Py as ApiClientInMemoryContextProvider,Jm as ApiEndpoint,sE as AssignSubdomainPathEndpoint,Xv as AssignSubdomainServiceEndpoint,py as AttachVolumeEndpoint,ZE as BackupAddonEndpoint,Nm as CopyType,Dv as CordonCloudClusterNodeEndpoint,JE as CreateAddonBackupscheduleEndpoint,qE as CreateAddonEndpoint,bv as CreateCloudClusterEndpoint,jv as CreateCloudDockerregistryEndpoint,kv as CreateCloudIntegrationEndpoint,jE as CreateCustomvcsTokenEndpoint,$v as CreateDomainEndpoint,AA as CreateJobCronEndpoint,gA as CreateJobManualEndpoint,hE as CreateLogsinkEndpoint,bE as CreateNotificationEndpoint,OE as CreateProjectEndpoint,mb as CreateSecretEndpoint,Bb as CreateServiceBuildEndpoint,jb as CreateServiceCombinedEndpoint,Ub as CreateServiceDeploymentEndpoint,wy as CreateTemplateEndpoint,cy as CreateVolumeEndpoint,VE as DeleteAddonBackupscheduleEndpoint,$E as DeleteAddonEndpoint,Ym as DeleteApiEndpoint,KE as DeleteBackupEndpoint,pv as DeleteBackupdestinationEndpoint,wv as DeleteCloudClusterEndpoint,Pv as DeleteCloudDockerregistryEndpoint,Nv as DeleteCloudIntegrationEndpoint,Jv as DeleteDomainEndpoint,DA as DeleteJobEndpoint,fE as DeleteLogsinkEndpoint,CE as DeleteNotificationEndpoint,ob as DeletePreviewtemplatepreviewEndpoint,LE as DeleteProjectEndpoint,BE as DeleteRegistrycredentialsEndpoint,bb as DeleteSecretEndpoint,wb as DeleteSecretlinkEndpoint,xb as DeleteServiceEndpoint,Kv as DeleteSubdomainEndpoint,oE as DeleteSubdomainPathEndpoint,gy as DeleteTagEndpoint,By as DeleteTemplateEndpoint,hy as DeleteVolumeEndpoint,fy as DetachVolumeEndpoint,eE as DisableSubdomainCdnEndpoint,Bv as DrainCloudClusterNodeEndpoint,tE as EnableSubdomainCdnEndpoint,Ya as ExecCommandStandard,eA as GetAddonBackupDownloadEndpoint,YE as GetAddonBackupEndpoint,nA as GetAddonBackupRestoresEndpoint,HE as GetAddonBackupsEndpoint,WE as GetAddonBackupschedulesEndpoint,iA as GetAddonContainersEndpoint,oA as GetAddonCredentialsEndpoint,GE as GetAddonEndpoint,lA as GetAddonRestoresEndpoint,av as GetAddonTypesEndpoint,mA as GetAddonVersionEndpoint,Vm as GetApiEndpoint,Hm as GetApiEndpointPaginated,lv as GetBackupdestinationEndpoint,gv as GetCloudClusterEndpoint,_v as GetCloudDockerregistryEndpoint,Tv as GetCloudIntegrationEndpoint,Gv as GetDnsidEndpoint,Wv as GetDomainEndpoint,Vv as GetDomaincertificateEndpoint,vv as GetInvoiceDetailsEndpoint,BA as GetJobBranchesEndpoint,OA as GetJobBuildEndpoint,_A as GetJobBuildargumentdetailsEndpoint,jA as GetJobBuildargumentsEndpoint,IA as GetJobBuildsEndpoint,xA as GetJobContainersEndpoint,TA as GetJobDeploymentEndpoint,FA as GetJobEndpoint,NA as GetJobHealthchecksEndpoint,GA as GetJobPullrequestsEndpoint,JA as GetJobRunEndpoint,$A as GetJobRunsEndpoint,HA as GetJobRuntimeenvironmentEndpoint,YA as GetJobRuntimeenvironmentdetailsEndpoint,pE as GetLogsinkEndpoint,yE as GetNotificationEndpoint,tb as GetPipelineEndpoint,nb as GetPreviewtemplateEndpoint,sb as GetPreviewtemplaterunEndpoint,TE as GetProjectEndpoint,DE as GetRegistrycredentialsEndpoint,ab as GetReleaseflowEndpoint,hb as GetReleaseflowrunEndpoint,Ab as GetSecretEndpoint,Fb as GetSecretdetailsEndpoint,Cb as GetSecretlinkEndpoint,Tb as GetServiceBranchesEndpoint,Wb as GetServiceBuildEndpoint,Gb as GetServiceBuildargumentdetailsEndpoint,qb as GetServiceBuildargumentsEndpoint,Lb as GetServiceBuildsEndpoint,Vb as GetServiceContainersEndpoint,Hb as GetServiceDeploymentEndpoint,kb as GetServiceEndpoint,Yb as GetServiceHealthchecksEndpoint,Qb as GetServicePortsEndpoint,ty as GetServicePullrequestsEndpoint,iy as GetServiceRuntimeenvironmentEndpoint,uy as GetServiceRuntimeenvironmentdetailsEndpoint,Yv as GetSubdomainEndpoint,iE as GetSubdomainPathEndpoint,by as GetTagEndpoint,Fy as GetTemplateEndpoint,jy as GetTemplaterunEndpoint,dy as GetVolumeEndpoint,uA as ImportAddonBackupEndpoint,Hv as ImportDomaincertificateEndpoint,NE as ListAddonsEndpoint,cv as ListBackupdestinationsEndpoint,fv as ListBackupdestinationsbackupsEndpoint,_E as ListBranchesEndpoint,Fv as ListCloudClusterNodesEndpoint,Av as ListCloudClustersEndpoint,Rv as ListCloudDockerregistryEndpoint,Ov as ListCloudIntegrationsEndpoint,qv as ListCloudNodetypesEndpoint,Ev as ListCloudProvidersEndpoint,Mv as ListCloudRegionsEndpoint,zv as ListDomainsEndpoint,mv as ListInvoicesEndpoint,EA as ListJobsEndpoint,lE as ListLogsinksEndpoint,AE as ListNotificationsEndpoint,eb as ListPipelinesEndpoint,UE as ListPlansEndpoint,ib as ListPreviewtemplatepreviewsEndpoint,ub as ListPreviewtemplaterunsEndpoint,PE as ListProjectsEndpoint,my as ListRegionsEndpoint,wE as ListRegistrycredentialsEndpoint,lb as ListReleaseflowrunsEndpoint,SE as ListReposEndpoint,fb as ListSecretsEndpoint,Db as ListServicesEndpoint,rE as ListSubdomainPathEndpoint,vy as ListTagsEndpoint,Ry as ListTemplaterunsEndpoint,Cy as ListTemplatesEndpoint,RE as ListVcsEndpoint,ay as ListVolumesEndpoint,Mm as LogType,nv as MetricType,zm as NorthflankApiCallError,Ka as NorthflankExecCommand,Gm as NorthflankFileCopy,iv as NorthflankLogFetch,sv as NorthflankMetricFetch,Ha as NorthflankPortForwarder,zE as PatchAddonEndpoint,Xm as PatchApiEndpoint,hv as PatchBackupdestinationEndpoint,Cv as PatchCloudClusterEndpoint,Uv as PatchCloudDockerregistryEndpoint,Lv as PatchCloudIntegrationEndpoint,yA as PatchJobCronEndpoint,wA as PatchJobManualEndpoint,xE as PatchProjectEndpoint,Eb as PatchSecretEndpoint,Rb as PatchServiceBuildEndpoint,_b as PatchServiceCombinedEndpoint,Ob as PatchServiceDeploymentEndpoint,yy as PatchTagEndpoint,aA as PauseAddonEndpoint,MA as PauseJobEndpoint,mE as PauseLogsinkEndpoint,Xb as PauseServiceEndpoint,Zm as PostApiEndpoint,ME as PutAddonEndpoint,Km as PutApiEndpoint,yv as PutCloudClusterEndpoint,Sv as PutCloudDockerregistryEndpoint,xv as PutCloudIntegrationEndpoint,bA as PutJobCronEndpoint,CA as PutJobManualEndpoint,kE as PutProjectEndpoint,vb as PutSecretEndpoint,Ib as PutServiceBuildEndpoint,Sb as PutServiceCombinedEndpoint,Pb as PutServiceDeploymentEndpoint,Ay as PutTagEndpoint,cA as ResetAddonEndpoint,dA as RestartAddonEndpoint,ny as RestartServiceEndpoint,tA as RestoreAddonBackupEndpoint,hA as ResumeAddonEndpoint,zA as ResumeJobEndpoint,vE as ResumeLogsinkEndpoint,ry as ResumeServiceEndpoint,rA as RetainAddonBackupEndpoint,db as RunReleaseflowEndpoint,Iy as RunTemplateEndpoint,pA as ScaleAddonEndpoint,KA as ScaleJobEndpoint,sy as ScaleServiceEndpoint,RA as StartJobBuildEndpoint,WA as StartJobRunEndpoint,Nb as StartServiceBuildEndpoint,QA as SuspendJobEndpoint,Qv as UnassignSubdomainEndpoint,aE as UnassignSubdomainPathEndpoint,Iv as UncordonCloudClusterNodeEndpoint,sA as UpdateAddonNetworksettingsEndpoint,fA as UpdateAddonSecurityEndpoint,vA as UpdateAddonVersionEndpoint,SA as UpdateJobBuildargumentsEndpoint,UA as UpdateJobBuildoptionsEndpoint,PA as UpdateJobBuildsourceEndpoint,LA as UpdateJobDeploymentEndpoint,qA as UpdateJobHealthchecksEndpoint,ZA as UpdateJobRuntimeenvironmentEndpoint,XA as UpdateJobSettingsEndpoint,EE as UpdateLogsinkEndpoint,gE as UpdateNotificationEndpoint,rb as UpdatePreviewtemplateEndpoint,IE as UpdateRegistrycredentialsEndpoint,cb as UpdateReleaseflowEndpoint,yb as UpdateSecretEndpoint,gb as UpdateSecretlinkEndpoint,Mb as UpdateServiceBuildargumentsEndpoint,zb as UpdateServiceBuildoptionsEndpoint,$b as UpdateServiceBuildsourceEndpoint,Zb as UpdateServiceDeploymentEndpoint,Kb as UpdateServiceHealthchecksEndpoint,ey as UpdateServicePortsEndpoint,oy as UpdateServiceRuntimeenvironmentEndpoint,uE as UpdateSubdomainPathEndpoint,Dy as UpdateTemplateEndpoint,ly as UpdateVolumeEndpoint,dE as VerifyDomainEndpoint,cE as VerifySubdomainEndpoint};
|
|
1
|
+
import t,{EventEmitter as e}from"events";import{execSync as n,spawn as r}from"child_process";import*as u from"stream";import o,{Transform as i}from"stream";import s from"http";import a,{fileURLToPath as c}from"url";import d from"https";import*as l from"zlib";import h from"zlib";import p from"os";import*as f from"net";import m,{Socket as v}from"net";import E,{mkdir as A,stat as b,statSync as y,mkdirSync as g}from"fs";import C,{parse as F,dirname as w,resolve as D}from"path";import B from"tls";import I from"crypto";import R,{Buffer as j}from"buffer";import S from"dgram";import{EventEmitter as _}from"node:events";import U from"node:stream";import{StringDecoder as P}from"node:string_decoder";import O,{posix as k,basename as x,win32 as T,join as L}from"node:path";import N from"node:fs";import q from"assert";import M from"node:assert";import{randomBytes as G}from"node:crypto";var z=function(t,e){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},z(t,e)};function $(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var W=function(){return W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var u in e=arguments[n])Object.prototype.hasOwnProperty.call(e,u)&&(t[u]=e[u]);return t},W.apply(this,arguments)};function J(t,e,n,r){return new(n||(n=Promise))(function(u,o){function i(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){var e;t.done?u(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(i,s)}a((r=r.apply(t,e||[])).next())})}function V(t,e){var n,r,u,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(u=2&s[0]?r.return:s[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;switch(r=0,u&&(s=[2&s[0],u.value]),s[0]){case 0:case 1:u=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(u=o.trys,(u=u.length>0&&u[u.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!u||s[1]>u[0]&&s[1]<u[3])){o.label=s[1];break}if(6===s[0]&&o.label<u[1]){o.label=u[1],u=s;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(s);break}u[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=u=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function H(t,e,n){if(n||2===arguments.length)for(var r,u=0,o=e.length;u<o;u++)!r&&u in e||(r||(r=Array.prototype.slice.call(e,0,u)),r[u]=e[u]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Z="object"==typeof global&&global&&global.Object===Object&&global,Y="object"==typeof self&&self&&self.Object===Object&&self,K=Z||Y||Function("return this")(),X=K.Symbol,Q=Object.prototype,tt=Q.hasOwnProperty,et=Q.toString,nt=X?X.toStringTag:void 0;var rt=Object.prototype.toString;var ut=X?X.toStringTag:void 0;function ot(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?function(t){var e=tt.call(t,nt),n=t[nt];try{t[nt]=void 0;var r=!0}catch(t){}var u=et.call(t);return r&&(e?t[nt]=n:delete t[nt]),u}(t):function(t){return rt.call(t)}(t)}function it(t){return null!=t&&"object"==typeof t}function st(t){return"symbol"==typeof t||it(t)&&"[object Symbol]"==ot(t)}function at(t,e){for(var n=-1,r=null==t?0:t.length,u=Array(r);++n<r;)u[n]=e(t[n],n,t);return u}var ct=Array.isArray,dt=X?X.prototype:void 0,lt=dt?dt.toString:void 0;function ht(t){if("string"==typeof t)return t;if(ct(t))return at(t,ht)+"";if(st(t))return lt?lt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function pt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ft(t){return t}function mt(t){if(!pt(t))return!1;var e=ot(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var vt,Et=K["__core-js_shared__"],At=(vt=/[^.]+$/.exec(Et&&Et.keys&&Et.keys.IE_PROTO||""))?"Symbol(src)_1."+vt:"";var bt=Function.prototype.toString;function yt(t){if(null!=t){try{return bt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var gt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,Ft=Object.prototype,wt=Ct.toString,Dt=Ft.hasOwnProperty,Bt=RegExp("^"+wt.call(Dt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function It(t){return!(!pt(t)||(e=t,At&&At in e))&&(mt(t)?Bt:gt).test(yt(t));var e}function Rt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return It(n)?n:void 0}var jt=Rt(K,"WeakMap"),St=Object.create,_t=function(){function t(){}return function(e){if(!pt(e))return{};if(St)return St(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Ut=Date.now;var Pt,Ot,kt,xt=function(){try{var t=Rt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Tt=xt,Lt=Tt?function(t,e){return Tt(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:ft,Nt=(Pt=Lt,Ot=0,kt=0,function(){var t=Ut(),e=16-(t-kt);if(kt=t,e>0){if(++Ot>=800)return arguments[0]}else Ot=0;return Pt.apply(void 0,arguments)}),qt=/^(?:0|[1-9]\d*)$/;function Mt(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&qt.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e,n){"__proto__"==e&&Tt?Tt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function zt(t,e){return t===e||t!=t&&e!=e}var $t=Object.prototype.hasOwnProperty;function Wt(t,e,n){var r=t[e];$t.call(t,e)&&zt(r,n)&&(void 0!==n||e in t)||Gt(t,e,n)}var Jt=Math.max;function Vt(t,e){return Nt(function(t,e,n){return e=Jt(void 0===e?t.length-1:e,0),function(){for(var r=arguments,u=-1,o=Jt(r.length-e,0),i=Array(o);++u<o;)i[u]=r[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=r[u];return s[e]=n(i),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}}(t,e,ft),t+"")}function Ht(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Zt(t){return null!=t&&Ht(t.length)&&!mt(t)}var Yt=Object.prototype;function Kt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Yt)}function Xt(t){return it(t)&&"[object Arguments]"==ot(t)}var Qt=Object.prototype,te=Qt.hasOwnProperty,ee=Qt.propertyIsEnumerable,ne=Xt(function(){return arguments}())?Xt:function(t){return it(t)&&te.call(t,"callee")&&!ee.call(t,"callee")};var re="object"==typeof exports&&exports&&!exports.nodeType&&exports,ue=re&&"object"==typeof module&&module&&!module.nodeType&&module,oe=ue&&ue.exports===re?K.Buffer:void 0,ie=(oe?oe.isBuffer:void 0)||function(){return!1},se={};se["[object Float32Array]"]=se["[object Float64Array]"]=se["[object Int8Array]"]=se["[object Int16Array]"]=se["[object Int32Array]"]=se["[object Uint8Array]"]=se["[object Uint8ClampedArray]"]=se["[object Uint16Array]"]=se["[object Uint32Array]"]=!0,se["[object Arguments]"]=se["[object Array]"]=se["[object ArrayBuffer]"]=se["[object Boolean]"]=se["[object DataView]"]=se["[object Date]"]=se["[object Error]"]=se["[object Function]"]=se["[object Map]"]=se["[object Number]"]=se["[object Object]"]=se["[object RegExp]"]=se["[object Set]"]=se["[object String]"]=se["[object WeakMap]"]=!1;var ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ce=ae&&"object"==typeof module&&module&&!module.nodeType&&module,de=ce&&ce.exports===ae&&Z.process,le=function(){try{var t=ce&&ce.require&&ce.require("util").types;return t||de&&de.binding&&de.binding("util")}catch(t){}}(),he=le&&le.isTypedArray,pe=he?function(t){return function(e){return t(e)}}(he):function(t){return it(t)&&Ht(t.length)&&!!se[ot(t)]},fe=pe,me=Object.prototype.hasOwnProperty;function ve(t,e){var n=ct(t),r=!n&&ne(t),u=!n&&!r&&ie(t),o=!n&&!r&&!u&&fe(t),i=n||r||u||o,s=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],a=s.length;for(var c in t)!e&&!me.call(t,c)||i&&("length"==c||u&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Mt(c,a))||s.push(c);return s}function Ee(t,e){return function(n){return t(e(n))}}var Ae=Ee(Object.keys,Object),be=Object.prototype.hasOwnProperty;function ye(t){return Zt(t)?ve(t):function(t){if(!Kt(t))return Ae(t);var e=[];for(var n in Object(t))be.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var ge=Object.prototype.hasOwnProperty;function Ce(t){if(!pt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Kt(t),n=[];for(var r in t)("constructor"!=r||!e&&ge.call(t,r))&&n.push(r);return n}function Fe(t){return Zt(t)?ve(t,!0):Ce(t)}var we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/;function Be(t,e){if(ct(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!st(t))||(De.test(t)||!we.test(t)||null!=e&&t in Object(e))}var Ie=Rt(Object,"create");var Re=Object.prototype.hasOwnProperty;var je=Object.prototype.hasOwnProperty;function Se(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function _e(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}Se.prototype.clear=function(){this.__data__=Ie?Ie(null):{},this.size=0},Se.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Se.prototype.get=function(t){var e=this.__data__;if(Ie){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Re.call(e,t)?e[t]:void 0},Se.prototype.has=function(t){var e=this.__data__;return Ie?void 0!==e[t]:je.call(e,t)},Se.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ie&&void 0===e?"__lodash_hash_undefined__":e,this};var Ue=Array.prototype.splice;function Pe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(t){var e=this.__data__,n=_e(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ue.call(e,n,1),--this.size,!0)},Pe.prototype.get=function(t){var e=this.__data__,n=_e(e,t);return n<0?void 0:e[n][1]},Pe.prototype.has=function(t){return _e(this.__data__,t)>-1},Pe.prototype.set=function(t,e){var n=this.__data__,r=_e(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Oe=Rt(K,"Map");function ke(t,e){var n,r,u=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?u["string"==typeof e?"string":"hash"]:u.map}function xe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}xe.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(Oe||Pe),string:new Se}},xe.prototype.delete=function(t){var e=ke(this,t).delete(t);return this.size-=e?1:0,e},xe.prototype.get=function(t){return ke(this,t).get(t)},xe.prototype.has=function(t){return ke(this,t).has(t)},xe.prototype.set=function(t,e){var n=ke(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Te(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,u=e?e.apply(this,r):r[0],o=n.cache;if(o.has(u))return o.get(u);var i=t.apply(this,r);return n.cache=o.set(u,i)||o,i};return n.cache=new(Te.Cache||xe),n}Te.Cache=xe;var Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/\\(\\)?/g,qe=function(t){var e=Te(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Le,function(t,n,r,u){e.push(r?u.replace(Ne,"$1"):n||t)}),e}),Me=qe;function Ge(t){return null==t?"":ht(t)}function ze(t,e){return ct(t)?t:Be(t,e)?[t]:Me(Ge(t))}function $e(t){if("string"==typeof t||st(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function We(t,e){for(var n=0,r=(e=ze(e,t)).length;null!=t&&n<r;)t=t[$e(e[n++])];return n&&n==r?t:void 0}function Je(t,e){for(var n=-1,r=e.length,u=t.length;++n<r;)t[u+n]=e[n];return t}var Ve=X?X.isConcatSpreadable:void 0;function He(t){return ct(t)||ne(t)||!!(Ve&&t&&t[Ve])}function Ze(t,e,n,r,u){var o=-1,i=t.length;for(n||(n=He),u||(u=[]);++o<i;){var s=t[o];e>0&&n(s)?e>1?Ze(s,e-1,n,r,u):Je(u,s):r||(u[u.length]=s)}return u}var Ye=Ee(Object.getPrototypeOf,Object),Ke=Function.prototype,Xe=Object.prototype,Qe=Ke.toString,tn=Xe.hasOwnProperty,en=Qe.call(Object);function nn(t){var e=this.__data__=new Pe(t);this.size=e.size}nn.prototype.clear=function(){this.__data__=new Pe,this.size=0},nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},nn.prototype.get=function(t){return this.__data__.get(t)},nn.prototype.has=function(t){return this.__data__.has(t)},nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Pe){var r=n.__data__;if(!Oe||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new xe(r)}return n.set(t,e),this.size=n.size,this};var rn="object"==typeof exports&&exports&&!exports.nodeType&&exports,un=rn&&"object"==typeof module&&module&&!module.nodeType&&module,on=un&&un.exports===rn?K.Buffer:void 0,sn=on?on.allocUnsafe:void 0;var an=Object.prototype.propertyIsEnumerable,cn=Object.getOwnPropertySymbols,dn=cn?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,u=0,o=[];++n<r;){var i=t[n];e(i,n,t)&&(o[u++]=i)}return o}(cn(t),function(e){return an.call(t,e)}))}:function(){return[]};function ln(t){return function(t,e,n){var r=e(t);return ct(t)?r:Je(r,n(t))}(t,ye,dn)}var hn=Rt(K,"DataView"),pn=Rt(K,"Promise"),fn=Rt(K,"Set"),mn="[object Map]",vn="[object Promise]",En="[object Set]",An="[object WeakMap]",bn="[object DataView]",yn=yt(hn),gn=yt(Oe),Cn=yt(pn),Fn=yt(fn),wn=yt(jt),Dn=ot;(hn&&Dn(new hn(new ArrayBuffer(1)))!=bn||Oe&&Dn(new Oe)!=mn||pn&&Dn(pn.resolve())!=vn||fn&&Dn(new fn)!=En||jt&&Dn(new jt)!=An)&&(Dn=function(t){var e=ot(t),n="[object Object]"==e?t.constructor:void 0,r=n?yt(n):"";if(r)switch(r){case yn:return bn;case gn:return mn;case Cn:return vn;case Fn:return En;case wn:return An}return e});var Bn=Dn,In=K.Uint8Array;function Rn(t,e){var n,r,u=e?(n=t.buffer,r=new n.constructor(n.byteLength),new In(r).set(new In(n)),r):t.buffer;return new t.constructor(u,t.byteOffset,t.length)}function jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new xe;++e<n;)this.add(t[e])}function Sn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}jn.prototype.add=jn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},jn.prototype.has=function(t){return this.__data__.has(t)};function _n(t,e,n,r,u,o){var i=1&n,s=t.length,a=e.length;if(s!=a&&!(i&&a>s))return!1;var c=o.get(t),d=o.get(e);if(c&&d)return c==e&&d==t;var l=-1,h=!0,p=2&n?new jn:void 0;for(o.set(t,e),o.set(e,t);++l<s;){var f=t[l],m=e[l];if(r)var v=i?r(m,f,l,e,t,o):r(f,m,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!Sn(e,function(t,e){if(i=e,!p.has(i)&&(f===t||u(f,t,n,r,o)))return p.push(e);var i})){h=!1;break}}else if(f!==m&&!u(f,m,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Un(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function Pn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var On=X?X.prototype:void 0,kn=On?On.valueOf:void 0;var xn=Object.prototype.hasOwnProperty;var Tn="[object Arguments]",Ln="[object Array]",Nn="[object Object]",qn=Object.prototype.hasOwnProperty;function Mn(t,e,n,r,u,o){var i=ct(t),s=ct(e),a=i?Ln:Bn(t),c=s?Ln:Bn(e),d=(a=a==Tn?Nn:a)==Nn,l=(c=c==Tn?Nn:c)==Nn,h=a==c;if(h&&ie(t)){if(!ie(e))return!1;i=!0,d=!1}if(h&&!d)return o||(o=new nn),i||fe(t)?_n(t,e,n,r,u,o):function(t,e,n,r,u,o,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new In(t),new In(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return zt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Un;case"[object Set]":var a=1&r;if(s||(s=Pn),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;r|=2,i.set(t,e);var d=_n(s(t),s(e),r,u,o,i);return i.delete(t),d;case"[object Symbol]":if(kn)return kn.call(t)==kn.call(e)}return!1}(t,e,a,n,r,u,o);if(!(1&n)){var p=d&&qn.call(t,"__wrapped__"),f=l&&qn.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,v=f?e.value():e;return o||(o=new nn),u(m,v,n,r,o)}}return!!h&&(o||(o=new nn),function(t,e,n,r,u,o){var i=1&n,s=ln(t),a=s.length;if(a!=ln(e).length&&!i)return!1;for(var c=a;c--;){var d=s[c];if(!(i?d in e:xn.call(e,d)))return!1}var l=o.get(t),h=o.get(e);if(l&&h)return l==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var f=i;++c<a;){var m=t[d=s[c]],v=e[d];if(r)var E=i?r(v,m,d,e,t,o):r(m,v,d,t,e,o);if(!(void 0===E?m===v||u(m,v,n,r,o):E)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var A=t.constructor,b=e.constructor;A==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,u,o))}function Gn(t,e,n,r,u){return t===e||(null==t||null==e||!it(t)&&!it(e)?t!=t&&e!=e:Mn(t,e,n,r,Gn,u))}function zn(t){return t==t&&!pt(t)}function $n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function Wn(t){var e=function(t){for(var e=ye(t),n=e.length;n--;){var r=e[n],u=t[r];e[n]=[r,u,zn(u)]}return e}(t);return 1==e.length&&e[0][2]?$n(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,r){var u=n.length,o=u,i=!r;if(null==t)return!o;for(t=Object(t);u--;){var s=n[u];if(i&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<o;){var a=(s=n[u])[0],c=t[a],d=s[1];if(i&&s[2]){if(void 0===c&&!(a in t))return!1}else{var l=new nn;if(r)var h=r(c,d,a,t,e,l);if(!(void 0===h?Gn(d,c,3,r,l):h))return!1}}return!0}(n,t,e)}}function Jn(t,e){return null!=t&&e in Object(t)}function Vn(t,e){return null!=t&&function(t,e,n){for(var r=-1,u=(e=ze(e,t)).length,o=!1;++r<u;){var i=$e(e[r]);if(!(o=null!=t&&n(t,i)))break;t=t[i]}return o||++r!=u?o:!!(u=null==t?0:t.length)&&Ht(u)&&Mt(i,u)&&(ct(t)||ne(t))}(t,e,Jn)}function Hn(t,e){return Be(t)&&zn(e)?$n($e(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:We(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?Vn(n,t):Gn(e,r,3)}}function Zn(t){return Be(t)?(e=$e(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return We(e,t)}}(t);var e}function Yn(t){return"function"==typeof t?t:null==t?ft:"object"==typeof t?ct(t)?Hn(t[0],t[1]):Wn(t):Zn(t)}var Kn,Xn=function(t,e,n){for(var r=-1,u=Object(t),o=n(t),i=o.length;i--;){var s=o[Kn?i:++r];if(!1===e(u[s],s,u))break}return t};var Qn=function(t,e){return function(n,r){if(null==n)return n;if(!Zt(n))return t(n,r);for(var u=n.length,o=e?u:-1,i=Object(n);(e?o--:++o<u)&&!1!==r(i[o],o,i););return n}}(function(t,e){return t&&Xn(t,e,ye)}),tr=Qn;function er(t,e,n){(void 0!==n&&!zt(t[e],n)||void 0===n&&!(e in t))&&Gt(t,e,n)}function nr(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function rr(t){return function(t,e,n,r){var u=!n;n||(n={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=r?r(n[s],t[s],s,n,t):void 0;void 0===a&&(a=t[s]),u?Gt(n,s,a):Wt(n,s,a)}return n}(t,Fe(t))}function ur(t,e,n,r,u,o,i){var s=nr(t,n),a=nr(e,n),c=i.get(a);if(c)er(t,n,c);else{var d,l=o?o(s,a,n+"",t,e,i):void 0,h=void 0===l;if(h){var p=ct(a),f=!p&&ie(a),m=!p&&!f&&fe(a);l=a,p||f||m?ct(s)?l=s:it(d=s)&&Zt(d)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(s):f?(h=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=sn?sn(n):new t.constructor(n);return t.copy(r),r}(a,!0)):m?(h=!1,l=Rn(a,!0)):l=[]:function(t){if(!it(t)||"[object Object]"!=ot(t))return!1;var e=Ye(t);if(null===e)return!0;var n=tn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Qe.call(n)==en}(a)||ne(a)?(l=s,ne(s)?l=rr(s):pt(s)&&!mt(s)||(l=function(t){return"function"!=typeof t.constructor||Kt(t)?{}:_t(Ye(t))}(a))):h=!1}h&&(i.set(a,l),u(l,a,r,o,i),i.delete(a)),er(t,n,l)}}function or(t,e,n,r,u){t!==e&&Xn(e,function(o,i){if(u||(u=new nn),pt(o))ur(t,e,i,n,or,r,u);else{var s=r?r(nr(t,i),o,i+"",t,e,u):void 0;void 0===s&&(s=o),er(t,i,s)}},Fe)}var ir=/[\\^$.*+?()[\]{}|]/g,sr=RegExp(ir.source);function ar(t,e){var n=-1,r=Zt(t)?Array(t.length):[];return tr(t,function(t,u,o){r[++n]=e(t,u,o)}),r}function cr(t,e){return Ze(function(t,e){return(ct(t)?at:ar)(t,Yn(e))}(t,e),1)}var dr=1/0;function lr(t,e){return t>e}function hr(t){return"string"==typeof t||!ct(t)&&it(t)&&"[object String]"==ot(t)}function pr(t,e){return t&&t.length?function(t,e,n){for(var r=-1,u=t.length;++r<u;){var o=t[r],i=e(o);if(null!=i&&(void 0===s?i==i&&!st(i):n(i,s)))var s=i,a=o}return a}(t,Yn(e),lr):void 0}var fr,mr=(fr=function(t,e,n){or(t,e,n)},Vt(function(t,e){var n=-1,r=e.length,u=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(u=fr.length>3&&"function"==typeof u?(r--,u):void 0,o&&function(t,e,n){if(!pt(n))return!1;var r=typeof e;return!!("number"==r?Zt(n)&&Mt(e,n.length):"string"==r&&e in n)&&zt(n[e],t)}(e[0],e[1],o)&&(u=r<3?void 0:u,r=1),t=Object(t);++n<r;){var i=e[n];i&&fr(t,i,n,u)}return t})),vr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Er(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Ar(t,e){return t(e={exports:{}},e.exports),e.exports}var br=Ar(function(t,e){function n(t,e,n){return n.globals&&(t=n.globals[t.name]),new t(`${n.context?n.context:"Value"} ${e}.`)}function r(t,e){if("bigint"==typeof t)throw n(TypeError,"is a BigInt which cannot be converted to a number",e);return e.globals?e.globals.Number(t):Number(t)}function u(t){return s(t>0&&t%1==.5&&!(1&t)||t<0&&t%1==-.5&&!(1&~t)?Math.floor(t):Math.round(t))}function o(t){return s(Math.trunc(t))}function i(t){return t<0?-1:1}function s(t){return 0===t?0:t}function a(t,{unsigned:e}){let a,c;e?(a=0,c=2**t-1):(a=-(2**(t-1)),c=2**(t-1)-1);const d=2**t,l=2**(t-1);return(t,h={})=>{let p=r(t,h);if(p=s(p),h.enforceRange){if(!Number.isFinite(p))throw n(TypeError,"is not a finite number",h);if(p=o(p),p<a||p>c)throw n(TypeError,`is outside the accepted range of ${a} to ${c}, inclusive`,h);return p}return!Number.isNaN(p)&&h.clamp?(p=Math.min(Math.max(p,a),c),p=u(p),p):Number.isFinite(p)&&0!==p?(p=o(p),p>=a&&p<=c?p:(p=function(t,e){const n=t%e;return i(e)!==i(n)?n+e:n}(p,d),!e&&p>=l?p-d:p)):0}}function c(t,{unsigned:e}){const i=Number.MAX_SAFE_INTEGER,a=e?0:Number.MIN_SAFE_INTEGER,c=e?BigInt.asUintN:BigInt.asIntN;return(e,d={})=>{let l=r(e,d);if(l=s(l),d.enforceRange){if(!Number.isFinite(l))throw n(TypeError,"is not a finite number",d);if(l=o(l),l<a||l>i)throw n(TypeError,`is outside the accepted range of ${a} to ${i}, inclusive`,d);return l}if(!Number.isNaN(l)&&d.clamp)return l=Math.min(Math.max(l,a),i),l=u(l),l;if(!Number.isFinite(l)||0===l)return 0;let h=BigInt(o(l));return h=c(t,h),Number(h)}}e.any=t=>t,e.undefined=()=>{},e.boolean=t=>Boolean(t),e.byte=a(8,{unsigned:!1}),e.octet=a(8,{unsigned:!0}),e.short=a(16,{unsigned:!1}),e["unsigned short"]=a(16,{unsigned:!0}),e.long=a(32,{unsigned:!1}),e["unsigned long"]=a(32,{unsigned:!0}),e["long long"]=c(64,{unsigned:!1}),e["unsigned long long"]=c(64,{unsigned:!0}),e.double=(t,e={})=>{const u=r(t,e);if(!Number.isFinite(u))throw n(TypeError,"is not a finite floating-point value",e);return u},e["unrestricted double"]=(t,e={})=>r(t,e),e.float=(t,e={})=>{const u=r(t,e);if(!Number.isFinite(u))throw n(TypeError,"is not a finite floating-point value",e);if(Object.is(u,-0))return u;const o=Math.fround(u);if(!Number.isFinite(o))throw n(TypeError,"is outside the range of a single-precision floating-point value",e);return o},e["unrestricted float"]=(t,e={})=>{const n=r(t,e);return isNaN(n)||Object.is(n,-0)?n:Math.fround(n)},e.DOMString=(t,e={})=>{if(e.treatNullAsEmptyString&&null===t)return"";if("symbol"==typeof t)throw n(TypeError,"is a symbol, which cannot be converted to a string",e);return(e.globals?e.globals.String:String)(t)},e.ByteString=(t,r={})=>{const u=e.DOMString(t,r);let o;for(let t=0;void 0!==(o=u.codePointAt(t));++t)if(o>255)throw n(TypeError,"is not a valid ByteString",r);return u},e.USVString=(t,n={})=>{const r=e.DOMString(t,n),u=r.length,o=[];for(let t=0;t<u;++t){const e=r.charCodeAt(t);if(e<55296||e>57343)o.push(String.fromCodePoint(e));else if(56320<=e&&e<=57343)o.push(String.fromCodePoint(65533));else if(t===u-1)o.push(String.fromCodePoint(65533));else{const n=r.charCodeAt(t+1);if(56320<=n&&n<=57343){const r=1023&e,u=1023&n;o.push(String.fromCodePoint(65536+1024*r+u)),++t}else o.push(String.fromCodePoint(65533))}}return o.join("")},e.object=(t,e={})=>{if(null===t||"object"!=typeof t&&"function"!=typeof t)throw n(TypeError,"is not an object",e);return t};const d=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,l="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(t){try{return d.call(t),!0}catch{return!1}}function p(t){try{return l.call(t),!0}catch{return!1}}function f(t){try{return new Uint8Array(t),!1}catch{return!0}}e.ArrayBuffer=(t,e={})=>{if(!h(t)){if(e.allowShared&&!p(t))throw n(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",e);throw n(TypeError,"is not an ArrayBuffer",e)}if(f(t))throw n(TypeError,"is a detached ArrayBuffer",e);return t};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;e.DataView=(t,e={})=>{try{m.call(t)}catch(t){throw n(TypeError,"is not a DataView",e)}if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is backed by a detached ArrayBuffer",e);return t};const v=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach(t=>{const{name:r}=t,u=/^[AEIOU]/u.test(r)?"an":"a";e[r]=(t,e={})=>{if(!ArrayBuffer.isView(t)||v.call(t)!==r)throw n(TypeError,`is not ${u} ${r} object`,e);if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",e);return t}}),e.ArrayBufferView=(t,e={})=>{if(!ArrayBuffer.isView(t))throw n(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",e);if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",e);return t},e.BufferSource=(t,e={})=>{if(ArrayBuffer.isView(t)){if(!e.allowShared&&p(t.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(f(t.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",e);return t}if(!e.allowShared&&!h(t))throw n(TypeError,"is not an ArrayBuffer or a view on one",e);if(e.allowShared&&!p(t)&&!h(t))throw n(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",e);if(f(t))throw n(TypeError,"is a detached ArrayBuffer",e);return t},e.DOMTimeStamp=e["unsigned long long"]});br.any,br.undefined,br.octet,br.DOMString,br.ByteString,br.USVString,br.object,br.ArrayBuffer,br.DataView,br.ArrayBufferView,br.BufferSource,br.DOMTimeStamp;var yr=Ar(function(t,e){const n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);const r=Symbol("wrapper"),u=Symbol("impl"),o=Symbol("SameObject caches"),i=Symbol.for("[webidl2js] constructor registry"),s=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);function a(t){if(n(t,i))return t[i];const e=Object.create(null);e["%Object.prototype%"]=t.Object.prototype,e["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new t.Array)[Symbol.iterator]()));try{e["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(t.eval("(async function* () {})").prototype))}catch{e["%AsyncIteratorPrototype%"]=s}return t[i]=e,e}function c(t){return t?t[r]:null}function d(t){return t?t[u]:null}const l=Symbol("internal");const h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;const p=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),v=Symbol("supported property names"),E=Symbol("indexed property get"),A=Symbol("indexed property set new"),b=Symbol("indexed property set existing"),y=Symbol("named property get"),g=Symbol("named property set new"),C=Symbol("named property set existing"),F=Symbol("named property delete"),w=Symbol("async iterator get the next iteration result"),D=Symbol("async iterator return steps"),B=Symbol("async iterator initialization steps"),I=Symbol("async iterator end of iteration");t.exports={isObject:function(t){return"object"==typeof t&&null!==t||"function"==typeof t},hasOwn:n,define:function(t,e){for(const n of Reflect.ownKeys(e)){const r=Reflect.getOwnPropertyDescriptor(e,n);if(r&&!Reflect.defineProperty(t,n,r))throw new TypeError(`Cannot redefine property: ${String(n)}`)}},newObjectInRealm:function(t,e){const n=a(t);return Object.defineProperties(Object.create(n["%Object.prototype%"]),Object.getOwnPropertyDescriptors(e))},wrapperSymbol:r,implSymbol:u,getSameObject:function(t,e,n){return t[o]||(t[o]=Object.create(null)),e in t[o]||(t[o][e]=n()),t[o][e]},ctorRegistrySymbol:i,initCtorRegistry:a,wrapperForImpl:c,implForWrapper:d,tryWrapperForImpl:function(t){const e=c(t);return e||t},tryImplForWrapper:function(t){const e=d(t);return e||t},iterInternalSymbol:l,isArrayBuffer:function(t){try{return h.call(t),!0}catch(t){return!1}},isArrayIndexPropName:function(t){if("string"!=typeof t)return!1;const e=t>>>0;return e!==2**32-1&&t===`${e}`},supportsPropertyIndex:p,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:v,indexedGet:E,indexedSetNew:A,indexedSetExisting:b,namedGet:y,namedSetNew:g,namedSetExisting:C,namedDelete:F,asyncIteratorNext:w,asyncIteratorReturn:D,asyncIteratorInit:B,asyncIteratorEOI:I,iteratorResult:function([t,e],n){let r;switch(n){case"key":r=t;break;case"value":r=e;break;case"key+value":r=[t,e]}return{value:r,done:!1}}}});const gr=2147483647,Cr=36,Fr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wr=Math.floor,Dr=String.fromCharCode;function Br(t){throw new RangeError(Fr[t])}function Ir(t){const e=[];let n=0;const r=t.length;for(;n<r;){const u=t.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const r=t.charCodeAt(n++);56320==(64512&r)?e.push(((1023&u)<<10)+(1023&r)+65536):(e.push(u),n--)}else e.push(u)}return e}const Rr=function(t){return t>=48&&t<58?t-48+26:t>=65&&t<91?t-65:t>=97&&t<123?t-97:Cr},jr=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},Sr=function(t,e,n){let r=0;for(t=n?wr(t/700):t>>1,t+=wr(t/e);t>455;r+=Cr)t=wr(t/35);return wr(r+36*t/(t+38))},_r=function(t){const e=[],n=t.length;let r=0,u=128,o=72,i=t.lastIndexOf("-");i<0&&(i=0);for(let n=0;n<i;++n)t.charCodeAt(n)>=128&&Br("not-basic"),e.push(t.charCodeAt(n));for(let s=i>0?i+1:0;s<n;){const i=r;for(let e=1,u=Cr;;u+=Cr){s>=n&&Br("invalid-input");const i=Rr(t.charCodeAt(s++));i>=Cr&&Br("invalid-input"),i>wr((gr-r)/e)&&Br("overflow"),r+=i*e;const a=u<=o?1:u>=o+26?26:u-o;if(i<a)break;const c=Cr-a;e>wr(gr/c)&&Br("overflow"),e*=c}const a=e.length+1;o=Sr(r-i,a,0==i),wr(r/a)>gr-u&&Br("overflow"),u+=wr(r/a),r%=a,e.splice(r++,0,u)}return String.fromCodePoint(...e)},Ur=function(t){const e=[],n=(t=Ir(t)).length;let r=128,u=0,o=72;for(const n of t)n<128&&e.push(Dr(n));const i=e.length;let s=i;for(i&&e.push("-");s<n;){let n=gr;for(const e of t)e>=r&&e<n&&(n=e);const a=s+1;n-r>wr((gr-u)/a)&&Br("overflow"),u+=(n-r)*a,r=n;for(const n of t)if(n<r&&++u>gr&&Br("overflow"),n===r){let t=u;for(let n=Cr;;n+=Cr){const r=n<=o?1:n>=o+26?26:n-o;if(t<r)break;const u=t-r,i=Cr-r;e.push(Dr(jr(r+u%i,0))),t=wr(u/i)}e.push(Dr(jr(t,0))),o=Sr(u,a,s===i),u=0,++s}++u,++r}return e.join("")},Pr=_r,Or=Ur;var kr,xr={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1715\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA82C\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{113CE}-\u{113D0}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}\u{11F41}\u{11F42}\u{1612F}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u0886\u0889-\u088D\u08A0-\u08A9\u08AF\u08B0\u08B3-\u08B8\u08BA-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10EC3}\u{10EC4}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}\u{10FB3}\u{10FB8}\u{10FBB}\u{10FBC}\u{10FBE}\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}\u{10FCB}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0858\u0860\u0862-\u0865\u0867-\u086A\u0870-\u0882\u0886\u0889-\u088E\u08A0-\u08AC\u08AE-\u08C8\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10EC2}-\u{10EC4}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}\u{10FCA}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCEF}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0897-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2429\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E5\u31EF\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D69}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CC00}-\u{1CCD5}\u{1CCF0}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B4E-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2429\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E5\u31EF-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6E}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D5}\u{113D7}\u{113D8}\u{113E1}\u{113E2}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F5A}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CC00}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18CFF}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCF9}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u},Tr={STATUS_MAPPING:{mapped:1,valid:2,disallowed:3,deviation:6,ignored:7}},Lr=(kr=Object.freeze({__proto__:null}))&&kr.default||kr;const{STATUS_MAPPING:Nr}=Tr;function qr(t){return/[^\x00-\x7F]/u.test(t)}function Mr(t){let e=0,n=Lr.length-1;for(;e<=n;){const r=Math.floor((e+n)/2),u=Lr[r],o=Array.isArray(u[0])?u[0][0]:u[0],i=Array.isArray(u[0])?u[0][1]:u[0];if(o<=t&&i>=t)return u.slice(1);o>t?n=r-1:e=r+1}return null}function Gr(t,{checkHyphens:e,checkBidi:n,checkJoiners:r,transitionalProcessing:u,useSTD3ASCIIRules:o,isBidi:i}){if(0===t.length)return!0;if(t.normalize("NFC")!==t)return!1;const s=Array.from(t);if(e&&("-"===s[2]&&"-"===s[3]||t.startsWith("-")||t.endsWith("-")))return!1;if(!e&&t.startsWith("xn--"))return!1;if(t.includes("."))return!1;if(xr.combiningMarks.test(s[0]))return!1;for(const t of s){const e=t.codePointAt(0),[n]=Mr(e);if(u){if(n!==Nr.valid)return!1}else if(n!==Nr.valid&&n!==Nr.deviation)return!1;if(o&&e<=127&&!/^(?:[a-z]|[0-9]|-)$/u.test(t))return!1}if(r){let t=0;for(const[e,n]of s.entries())if(""===n||""===n){if(e>0){if(xr.combiningClassVirama.test(s[e-1]))continue;if(""===n){const n=s.indexOf("",e+1),r=n<0?s.slice(t):s.slice(t,n);if(xr.validZWNJ.test(r.join(""))){t=e+1;continue}}}return!1}}if(n&&i){let e;if(xr.bidiS1LTR.test(s[0]))e=!1;else{if(!xr.bidiS1RTL.test(s[0]))return!1;e=!0}if(e){if(!xr.bidiS2.test(t)||!xr.bidiS3.test(t)||xr.bidiS4EN.test(t)&&xr.bidiS4AN.test(t))return!1}else if(!xr.bidiS5.test(t)||!xr.bidiS6.test(t))return!1}return!0}function zr(t,e){let n=function(t,{transitionalProcessing:e}){let n="";for(const r of t){const[t,u]=Mr(r.codePointAt(0));switch(t){case Nr.disallowed:n+=r;break;case Nr.ignored:break;case Nr.mapped:n+=e&&"ẞ"===r?"ss":u;break;case Nr.deviation:n+=e?u:r;break;case Nr.valid:n+=r}}return n}(t,e);n=n.normalize("NFC");const r=n.split("."),u=function(t){const e=t.map(t=>{if(t.startsWith("xn--"))try{return Pr(t.substring(4))}catch{return""}return t}).join(".");return xr.bidiDomain.test(e)}(r);let o=!1;for(const[t,n]of r.entries()){let i=n,s=e.transitionalProcessing;if(i.startsWith("xn--")){if(qr(i)){o=!0;continue}try{i=Pr(i.substring(4))}catch{if(!e.ignoreInvalidPunycode){o=!0;continue}}r[t]=i,""!==i&&qr(i)||(o=!0),s=!1}if(o)continue;Gr(i,{...e,transitionalProcessing:s,isBidi:u})||(o=!0)}return{string:r.join("."),error:o}}var $r={toASCII:function(t,{checkHyphens:e=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:u=!1,verifyDNSLength:o=!1,transitionalProcessing:i=!1,ignoreInvalidPunycode:s=!1}={}){const a=zr(t,{checkHyphens:e,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:u,transitionalProcessing:i,ignoreInvalidPunycode:s});let c=a.string.split(".");if(c=c.map(t=>{if(qr(t))try{return`xn--${Or(t)}`}catch{a.error=!0}return t}),o){const t=c.join(".").length;(t>253||0===t)&&(a.error=!0);for(let t=0;t<c.length;++t)if(c[t].length>63||0===c[t].length){a.error=!0;break}}return a.error?null:c.join(".")},toUnicode:function(t,{checkHyphens:e=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:u=!1,transitionalProcessing:o=!1,ignoreInvalidPunycode:i=!1}={}){const s=zr(t,{checkHyphens:e,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:u,transitionalProcessing:o,ignoreInvalidPunycode:i});return{domain:s.string,error:s.error}}};function Wr(t){return t>=48&&t<=57}function Jr(t){return t>=65&&t<=90||t>=97&&t<=122}var Vr={isASCIIDigit:Wr,isASCIIAlpha:Jr,isASCIIAlphanumeric:function(t){return Jr(t)||Wr(t)},isASCIIHex:function(t){return Wr(t)||t>=65&&t<=70||t>=97&&t<=102}};const Hr=new TextEncoder,Zr=new TextDecoder("utf-8",{ignoreBOM:!0});var Yr={utf8Encode:function(t){return Hr.encode(t)},utf8DecodeWithoutBOM:function(t){return Zr.decode(t)}};const{isASCIIHex:Kr}=Vr,{utf8Encode:Xr}=Yr;function Qr(t){return t.codePointAt(0)}function tu(t){let e=t.toString(16).toUpperCase();return 1===e.length&&(e=`0${e}`),`%${e}`}function eu(t){const e=new Uint8Array(t.byteLength);let n=0;for(let r=0;r<t.byteLength;++r){const u=t[r];if(37!==u)e[n++]=u;else if(37!==u||Kr(t[r+1])&&Kr(t[r+2])){const u=parseInt(String.fromCodePoint(t[r+1],t[r+2]),16);e[n++]=u,r+=2}else e[n++]=u}return e.slice(0,n)}function nu(t){return t<=31||t>126}const ru=new Set([Qr(" "),Qr('"'),Qr("<"),Qr(">"),Qr("`")]);const uu=new Set([Qr(" "),Qr('"'),Qr("#"),Qr("<"),Qr(">")]);function ou(t){return nu(t)||uu.has(t)}const iu=new Set([Qr("?"),Qr("`"),Qr("{"),Qr("}"),Qr("^")]);function su(t){return ou(t)||iu.has(t)}const au=new Set([Qr("/"),Qr(":"),Qr(";"),Qr("="),Qr("@"),Qr("["),Qr("\\"),Qr("]"),Qr("|")]);function cu(t){return su(t)||au.has(t)}const du=new Set([Qr("$"),Qr("%"),Qr("&"),Qr("+"),Qr(",")]);const lu=new Set([Qr("!"),Qr("'"),Qr("("),Qr(")"),Qr("~")]);function hu(t,e){const n=Xr(t);let r="";for(const t of n)e(t)?r+=tu(t):r+=String.fromCharCode(t);return r}var pu={isC0ControlPercentEncode:nu,isFragmentPercentEncode:function(t){return nu(t)||ru.has(t)},isQueryPercentEncode:ou,isSpecialQueryPercentEncode:function(t){return ou(t)||t===Qr("'")},isPathPercentEncode:su,isUserinfoPercentEncode:cu,isURLEncodedPercentEncode:function(t){return function(t){return cu(t)||du.has(t)}(t)||lu.has(t)},percentDecodeString:function(t){return eu(Xr(t))},percentDecodeBytes:eu,utf8PercentEncodeString:function(t,e,n=!1){let r="";for(const u of t)r+=n&&" "===u?"+":hu(u,e);return r},utf8PercentEncodeCodePoint:function(t,e){return hu(String.fromCodePoint(t),e)}},fu=Ar(function(t){const{utf8DecodeWithoutBOM:e}=Yr,{percentDecodeString:n,utf8PercentEncodeCodePoint:r,utf8PercentEncodeString:u,isC0ControlPercentEncode:o,isFragmentPercentEncode:i,isQueryPercentEncode:s,isSpecialQueryPercentEncode:a,isPathPercentEncode:c,isUserinfoPercentEncode:d}=pu;function l(t){return t.codePointAt(0)}const h={ftp:21,file:null,http:80,https:443,ws:80,wss:443},p=Symbol("failure");function f(t){return[...t].length}function m(t,e){const n=t[e];return isNaN(n)?void 0:String.fromCodePoint(n)}function v(t){return"."===t||"%2e"===t.toLowerCase()}function E(t){return 2===t.length&&Vr.isASCIIAlpha(t.codePointAt(0))&&(":"===t[1]||"|"===t[1])}function A(t){return-1!==t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)}function b(t){return void 0!==h[t]}function y(t){return b(t.scheme)}function g(t){return!b(t.scheme)}function C(t){return h[t]}function F(t){if(""===t)return p;let e=10;if(t.length>=2&&"0"===t.charAt(0)&&"x"===t.charAt(1).toLowerCase()?(t=t.substring(2),e=16):t.length>=2&&"0"===t.charAt(0)&&(t=t.substring(1),e=8),""===t)return 0;let n=/[^0-7]/u;return 10===e&&(n=/[^0-9]/u),16===e&&(n=/[^0-9A-Fa-f]/u),n.test(t)?p:parseInt(t,e)}function w(t,r=!1){if("["===t[0])return"]"!==t[t.length-1]?p:function(t){const e=[0,0,0,0,0,0,0,0];let n=0,r=null,u=0;if((t=Array.from(t,t=>t.codePointAt(0)))[u]===l(":")){if(t[u+1]!==l(":"))return p;u+=2,++n,r=n}for(;u<t.length;){if(8===n)return p;if(t[u]===l(":")){if(null!==r)return p;++u,++n,r=n;continue}let o=0,i=0;for(;i<4&&Vr.isASCIIHex(t[u]);)o=16*o+parseInt(m(t,u),16),++u,++i;if(t[u]===l(".")){if(0===i)return p;if(u-=i,n>6)return p;let r=0;for(;void 0!==t[u];){let o=null;if(r>0){if(!(t[u]===l(".")&&r<4))return p;++u}if(!Vr.isASCIIDigit(t[u]))return p;for(;Vr.isASCIIDigit(t[u]);){const e=parseInt(m(t,u));if(null===o)o=e;else{if(0===o)return p;o=10*o+e}if(o>255)return p;++u}e[n]=256*e[n]+o,++r,2!==r&&4!==r||++n}if(4!==r)return p;break}if(t[u]===l(":")){if(++u,void 0===t[u])return p}else if(void 0!==t[u])return p;e[n]=o,++n}if(null!==r){let t=n-r;for(n=7;0!==n&&t>0;){const u=e[r+t-1];e[r+t-1]=e[n],e[n]=u,--n,--t}}else if(null===r&&8!==n)return p;return e}(t.substring(1,t.length-1));if(r)return function(t){if(A(t))return p;return u(t,o)}(t);const i=function(t,e=!1){const n=$r.toASCII(t,{checkHyphens:e,checkBidi:!0,checkJoiners:!0,useSTD3ASCIIRules:e,transitionalProcessing:!1,verifyDNSLength:e,ignoreInvalidPunycode:!1});if(null===n)return p;if(!e){if(""===n)return p;if(A(r=n)||-1!==r.search(/[\u0000-\u001F]|%|\u007F/u))return p}var r;return n}(e(n(t)));return i===p?p:function(t){const e=t.split(".");if(""===e[e.length-1]){if(1===e.length)return!1;e.pop()}const n=e[e.length-1];if(F(n)!==p)return!0;if(/^[0-9]+$/u.test(n))return!0;return!1}(i)?function(t){const e=t.split(".");if(""===e[e.length-1]&&e.length>1&&e.pop(),e.length>4)return p;const n=[];for(const t of e){const e=F(t);if(e===p)return p;n.push(e)}for(let t=0;t<n.length-1;++t)if(n[t]>255)return p;if(n[n.length-1]>=256**(5-n.length))return p;let r=n.pop(),u=0;for(const t of n)r+=t*256**(3-u),++u;return r}(i):i}function D(t){return"number"==typeof t?function(t){let e="",n=t;for(let t=1;t<=4;++t)e=String(n%256)+e,4!==t&&(e=`.${e}`),n=Math.floor(n/256);return e}(t):t instanceof Array?`[${function(t){let e="";const n=function(t){let e=null,n=1,r=null,u=0;for(let o=0;o<t.length;++o)0!==t[o]?(u>n&&(e=r,n=u),r=null,u=0):(null===r&&(r=o),++u);return u>n?r:e}(t);let r=!1;for(let u=0;u<=7;++u)if(!r||0!==t[u]){if(r&&(r=!1),n===u){e+=0===u?"::":":",r=!0;continue}e+=t[u].toString(16),7!==u&&(e+=":")}return e}(t)}]`:t}function B(t){const{path:e}=t;var n;0!==e.length&&("file"===t.scheme&&1===e.length&&(n=e[0],/^[A-Za-z]:$/u.test(n))||e.pop())}function I(t){return""!==t.username||""!==t.password}function R(t){return"string"==typeof t.path}function j(t,e,n,r,u){if(this.pointer=0,this.input=t,this.base=e||null,this.encodingOverride=n||"utf-8",this.stateOverride=u,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const t=function(t){let e=0,n=t.length;for(;e<n&&!(t.charCodeAt(e)>32);++e);for(;n>e&&!(t.charCodeAt(n-1)>32);--n);return t.substring(e,n)}(this.input);t!==this.input&&(this.parseError=!0),this.input=t}const o=function(t){return t.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=u||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,t=>t.codePointAt(0));this.pointer<=this.input.length;++this.pointer){const t=this.input[this.pointer],e=isNaN(t)?void 0:String.fromCodePoint(t),n=this[`parse ${this.state}`](t,e);if(!n)break;if(n===p){this.failure=!0;break}}}j.prototype["parse scheme start"]=function(t,e){if(Vr.isASCIIAlpha(t))this.buffer+=e.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,p;this.state="no scheme",--this.pointer}return!0},j.prototype["parse scheme"]=function(t,e){if(Vr.isASCIIAlphanumeric(t)||t===l("+")||t===l("-")||t===l("."))this.buffer+=e.toLowerCase();else if(t===l(":")){if(this.stateOverride){if(y(this.url)&&!b(this.buffer))return!1;if(!y(this.url)&&b(this.buffer))return!1;if((I(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===C(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===l("/")&&this.input[this.pointer+2]===l("/")||(this.parseError=!0),this.state="file"):y(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":y(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===l("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,p;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},j.prototype["parse no scheme"]=function(t){return null===this.base||R(this.base)&&t!==l("#")?p:(R(this.base)&&t===l("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},j.prototype["parse special relative or authority"]=function(t){return t===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},j.prototype["parse path or authority"]=function(t){return t===l("/")?this.state="authority":(this.state="path",--this.pointer),!0},j.prototype["parse relative"]=function(t){return this.url.scheme=this.base.scheme,t===l("/")?this.state="relative slash":y(this.url)&&t===l("\\")?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,t===l("?")?(this.url.query="",this.state="query"):t===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(t)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},j.prototype["parse relative slash"]=function(t){return!y(this.url)||t!==l("/")&&t!==l("\\")?t===l("/")?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(t===l("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},j.prototype["parse special authority slashes"]=function(t){return t===l("/")&&this.input[this.pointer+1]===l("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},j.prototype["parse special authority ignore slashes"]=function(t){return t!==l("/")&&t!==l("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},j.prototype["parse authority"]=function(t,e){if(t===l("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const t=f(this.buffer);for(let e=0;e<t;++e){const t=this.buffer.codePointAt(e);if(t===l(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const n=r(t,d);this.passwordTokenSeenFlag?this.url.password+=n:this.url.username+=n}this.buffer=""}else if(isNaN(t)||t===l("/")||t===l("?")||t===l("#")||y(this.url)&&t===l("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,p;this.pointer-=f(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=e;return!0},j.prototype["parse hostname"]=j.prototype["parse host"]=function(t,e){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(t!==l(":")||this.arrFlag)if(isNaN(t)||t===l("/")||t===l("?")||t===l("#")||y(this.url)&&t===l("\\")){if(--this.pointer,y(this.url)&&""===this.buffer)return this.parseError=!0,p;if(this.stateOverride&&""===this.buffer&&(I(this.url)||null!==this.url.port))return this.parseError=!0,!1;const t=w(this.buffer,g(this.url));if(t===p)return p;if(this.url.host=t,this.buffer="",this.state="path start",this.stateOverride)return!1}else t===l("[")?this.arrFlag=!0:t===l("]")&&(this.arrFlag=!1),this.buffer+=e;else{if(""===this.buffer)return this.parseError=!0,p;if("hostname"===this.stateOverride)return!1;const t=w(this.buffer,g(this.url));if(t===p)return p;this.url.host=t,this.buffer="",this.state="port"}return!0},j.prototype["parse port"]=function(t,e){if(Vr.isASCIIDigit(t))this.buffer+=e;else{if(!(isNaN(t)||t===l("/")||t===l("?")||t===l("#")||y(this.url)&&t===l("\\")||this.stateOverride))return this.parseError=!0,p;if(""!==this.buffer){const t=parseInt(this.buffer);if(t>65535)return this.parseError=!0,p;this.url.port=t===C(this.url.scheme)?null:t,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const S=new Set([l("/"),l("\\"),l("?"),l("#")]);function _(t,e){const n=t.length-e;return n>=2&&(r=t[e],u=t[e+1],Vr.isASCIIAlpha(r)&&(u===l(":")||u===l("|")))&&(2===n||S.has(t[e+2]));var r,u}function U(t){if(R(t))return t.path;let e="";for(const n of t.path)e+=`/${n}`;return e}j.prototype["parse file"]=function(t){return this.url.scheme="file",this.url.host="",t===l("/")||t===l("\\")?(t===l("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,t===l("?")?(this.url.query="",this.state="query"):t===l("#")?(this.url.fragment="",this.state="fragment"):isNaN(t)||(this.url.query=null,_(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):B(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},j.prototype["parse file slash"]=function(t){var e;return t===l("/")||t===l("\\")?(t===l("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!_(this.input,this.pointer)&&(2===(e=this.base.path[0]).length&&Vr.isASCIIAlpha(e.codePointAt(0))&&":"===e[1])&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},j.prototype["parse file host"]=function(t,e){if(isNaN(t)||t===l("/")||t===l("\\")||t===l("?")||t===l("#"))if(--this.pointer,!this.stateOverride&&E(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let t=w(this.buffer,g(this.url));if(t===p)return p;if("localhost"===t&&(t=""),this.url.host=t,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=e;return!0},j.prototype["parse path start"]=function(t){return y(this.url)?(t===l("\\")&&(this.parseError=!0),this.state="path",t!==l("/")&&t!==l("\\")&&--this.pointer):this.stateOverride||t!==l("?")?this.stateOverride||t!==l("#")?void 0!==t?(this.state="path",t!==l("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},j.prototype["parse path"]=function(t){return isNaN(t)||t===l("/")||y(this.url)&&t===l("\\")||!this.stateOverride&&(t===l("?")||t===l("#"))?(y(this.url)&&t===l("\\")&&(this.parseError=!0),!function(t){return".."===(t=t.toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t}(this.buffer)?!v(this.buffer)||t===l("/")||y(this.url)&&t===l("\\")?v(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&E(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""):(B(this.url),t===l("/")||y(this.url)&&t===l("\\")||this.url.path.push("")),this.buffer="",t===l("?")&&(this.url.query="",this.state="query"),t===l("#")&&(this.url.fragment="",this.state="fragment")):(t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=r(t,c)),!0},j.prototype["parse opaque path"]=function(t){if(t===l("?"))this.url.query="",this.state="query";else if(t===l("#"))this.url.fragment="",this.state="fragment";else if(t===l(" ")){const t=this.input[this.pointer+1];t===l("?")||t===l("#")?this.url.path+="%20":this.url.path+=" "}else isNaN(t)||t===l("%")||(this.parseError=!0),t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(t)||(this.url.path+=r(t,o));return!0},j.prototype["parse query"]=function(t,e){if(y(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&t===l("#")||isNaN(t)){const e=y(this.url)?a:s;this.url.query+=u(this.buffer,e),this.buffer="",t===l("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(t)||(t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=e);return!0},j.prototype["parse fragment"]=function(t){return isNaN(t)||(t!==l("%")||Vr.isASCIIHex(this.input[this.pointer+1])&&Vr.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=r(t,i)),!0},t.exports.serializeURL=function(t,e){let n=`${t.scheme}:`;return null!==t.host&&(n+="//",""===t.username&&""===t.password||(n+=t.username,""!==t.password&&(n+=`:${t.password}`),n+="@"),n+=D(t.host),null!==t.port&&(n+=`:${t.port}`)),null===t.host&&!R(t)&&t.path.length>1&&""===t.path[0]&&(n+="/."),n+=U(t),null!==t.query&&(n+=`?${t.query}`),e||null===t.fragment||(n+=`#${t.fragment}`),n},t.exports.serializePath=U,t.exports.serializeURLOrigin=function(e){switch(e.scheme){case"blob":{const n=t.exports.parseURL(U(e));return null===n||"http"!==n.scheme&&"https"!==n.scheme?"null":t.exports.serializeURLOrigin(n)}case"ftp":case"http":case"https":case"ws":case"wss":return function(t){let e=`${t.scheme}://`;return e+=D(t.host),null!==t.port&&(e+=`:${t.port}`),e}({scheme:e.scheme,host:e.host,port:e.port});default:return"null"}},t.exports.basicURLParse=function(t,e){void 0===e&&(e={});const n=new j(t,e.baseURL,e.encodingOverride,e.url,e.stateOverride);return n.failure?null:n.url},t.exports.setTheUsername=function(t,e){t.username=u(e,d)},t.exports.setThePassword=function(t,e){t.password=u(e,d)},t.exports.serializeHost=D,t.exports.cannotHaveAUsernamePasswordPort=function(t){return null===t.host||""===t.host||"file"===t.scheme},t.exports.hasAnOpaquePath=R,t.exports.serializeInteger=function(t){return String(t)},t.exports.parseURL=function(e,n){return void 0===n&&(n={}),t.exports.basicURLParse(e,{baseURL:n.baseURL,encodingOverride:n.encodingOverride})}});fu.serializeURL,fu.serializePath,fu.serializeURLOrigin,fu.basicURLParse,fu.setTheUsername,fu.setThePassword,fu.serializeHost,fu.cannotHaveAUsernamePasswordPort,fu.hasAnOpaquePath,fu.serializeInteger,fu.parseURL;const{utf8Encode:mu,utf8DecodeWithoutBOM:vu}=Yr,{percentDecodeBytes:Eu,utf8PercentEncodeString:Au,isURLEncodedPercentEncode:bu}=pu;function yu(t){return t.codePointAt(0)}function gu(t,e,n){let r=t.indexOf(e);for(;r>=0;)t[r]=n,r=t.indexOf(e,r+1);return t}var Cu={parseUrlencodedString:function(t){return function(t){const e=function(t,e){const n=[];let r=0,u=t.indexOf(e);for(;u>=0;)n.push(t.slice(r,u)),r=u+1,u=t.indexOf(e,r);return r!==t.length&&n.push(t.slice(r)),n}(t,yu("&")),n=[];for(const t of e){if(0===t.length)continue;let e,r;const u=t.indexOf(yu("="));u>=0?(e=t.slice(0,u),r=t.slice(u+1)):(e=t,r=new Uint8Array(0)),e=gu(e,43,32),r=gu(r,43,32);const o=vu(Eu(e)),i=vu(Eu(r));n.push([o,i])}return n}(mu(t))},serializeUrlencoded:function(t){let e="";for(const[n,r]of t.entries()){0!==n&&(e+="&"),e+=`${Au(r[0],bu,!0)}=${Au(r[1],bu,!0)}`}return e}},Fu=(t,e,{context:n="The provided value"}={})=>{if("function"!=typeof e)throw new t.TypeError(n+" is not a function");function r(...r){const u=yr.tryWrapperForImpl(this);let o;for(let t=0;t<r.length;t++)r[t]=yr.tryWrapperForImpl(r[t]);return o=Reflect.apply(e,u,r),o=br.any(o,{context:n,globals:t}),o}return r.construct=(...r)=>{for(let t=0;t<r.length;t++)r[t]=yr.tryWrapperForImpl(r[t]);let u=Reflect.construct(e,r);return u=br.any(u,{context:n,globals:t}),u},r[yr.wrapperSymbol]=e,r.objectReference=e,r},wu=class{constructor(t,e,{doNotStripQMark:n=!1}){let r=e[0];if(this._list=[],this._url=null,n||"string"!=typeof r||"?"!==r[0]||(r=r.slice(1)),Array.isArray(r))for(const t of r){if(2!==t.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([t[0],t[1]])}else if("object"==typeof r&&null===Object.getPrototypeOf(r))for(const t of Object.keys(r)){const e=r[t];this._list.push([t,e])}else this._list=Cu.parseUrlencodedString(r)}_updateSteps(){if(null!==this._url){let t=Cu.serializeUrlencoded(this._list);""===t&&(t=null),this._url._url.query=t}}get size(){return this._list.length}append(t,e){this._list.push([t,e]),this._updateSteps()}delete(t,e){let n=0;for(;n<this._list.length;)this._list[n][0]!==t||void 0!==e&&this._list[n][1]!==e?n++:this._list.splice(n,1);this._updateSteps()}get(t){for(const e of this._list)if(e[0]===t)return e[1];return null}getAll(t){const e=[];for(const n of this._list)n[0]===t&&e.push(n[1]);return e}has(t,e){for(const n of this._list)if(n[0]===t&&(void 0===e||n[1]===e))return!0;return!1}set(t,e){let n=!1,r=0;for(;r<this._list.length;)this._list[r][0]===t?n?this._list.splice(r,1):(n=!0,this._list[r][1]=e,r++):r++;n||this._list.push([t,e]),this._updateSteps()}sort(){this._list.sort((t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return Cu.serializeUrlencoded(this._list)}},Du={implementation:wu},Bu=Ar(function(t,e){const n=yr.newObjectInRealm,r=yr.implSymbol,u=yr.ctorRegistrySymbol,o="URLSearchParams";function i(t,e){let n;return void 0!==e&&(n=e.prototype),yr.isObject(n)||(n=t[u].URLSearchParams.prototype),Object.create(n)}e.is=t=>yr.isObject(t)&&yr.hasOwn(t,r)&&t[r]instanceof Du.implementation,e.isImpl=t=>yr.isObject(t)&&t instanceof Du.implementation,e.convert=(t,n,{context:r="The provided value"}={})=>{if(e.is(n))return yr.implForWrapper(n);throw new t.TypeError(`${r} is not of type 'URLSearchParams'.`)},e.createDefaultIterator=(t,e,n)=>{const r=t[u]["URLSearchParams Iterator"],o=Object.create(r);return Object.defineProperty(o,yr.iterInternalSymbol,{value:{target:e,kind:n,index:0},configurable:!0}),o},e.create=(t,n,r)=>{const u=i(t);return e.setup(u,t,n,r)},e.createImpl=(t,n,r)=>{const u=e.create(t,n,r);return yr.implForWrapper(u)},e._internalSetup=(t,e)=>{},e.setup=(t,n,u=[],o={})=>(o.wrapper=t,e._internalSetup(t,n),Object.defineProperty(t,r,{value:new Du.implementation(n,u,o),configurable:!0}),t[r][yr.wrapperSymbol]=t,Du.init&&Du.init(t[r]),t),e.new=(t,n)=>{const u=i(t,n);return e._internalSetup(u,t),Object.defineProperty(u,r,{value:Object.create(Du.implementation.prototype),configurable:!0}),u[r][yr.wrapperSymbol]=u,Du.init&&Du.init(u[r]),u[r]};const s=new Set(["Window","Worker"]);e.install=(t,u)=>{if(!u.some(t=>s.has(t)))return;const i=yr.initCtorRegistry(t);class a{constructor(){const n=[];{let e=arguments[0];if(void 0!==e)if(yr.isObject(e))if(void 0!==e[Symbol.iterator]){if(!yr.isObject(e))throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const n=[],r=e;for(let e of r){if(!yr.isObject(e))throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const n=[],r=e;for(let e of r)e=br.USVString(e,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:t}),n.push(e);e=n}n.push(e)}e=n}}else{if(!yr.isObject(e))throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const n=Object.create(null);for(const r of Reflect.ownKeys(e)){const u=Object.getOwnPropertyDescriptor(e,r);if(u&&u.enumerable){let u=r;u=br.USVString(u,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:t});let o=e[r];o=br.USVString(o,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:t}),n[u]=o}}e=n}}else e=br.USVString(e,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:t});else e="";n.push(e)}return e.setup(Object.create(new.target.prototype),t,n)}append(n,u){const o=null!=this?this:t;if(!e.is(o))throw new t.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new t.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const i=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:t}),i.push(e)}{let e=arguments[1];e=br.USVString(e,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:t}),i.push(e)}return yr.tryWrapperForImpl(o[r].append(...i))}delete(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:t})),o.push(e)}return yr.tryWrapperForImpl(u[r].delete(...o))}get(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}return u[r].get(...o)}getAll(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}return yr.tryWrapperForImpl(u[r].getAll(...o))}has(n){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:t}),o.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:t})),o.push(e)}return u[r].has(...o)}set(n,u){const o=null!=this?this:t;if(!e.is(o))throw new t.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new t.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const i=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:t}),i.push(e)}{let e=arguments[1];e=br.USVString(e,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:t}),i.push(e)}return yr.tryWrapperForImpl(o[r].set(...i))}sort(){const n=null!=this?this:t;if(!e.is(n))throw new t.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return yr.tryWrapperForImpl(n[r].sort())}toString(){const n=null!=this?this:t;if(!e.is(n))throw new t.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return n[r].toString()}keys(){if(!e.is(this))throw new t.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return e.createDefaultIterator(t,this,"key")}values(){if(!e.is(this))throw new t.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return e.createDefaultIterator(t,this,"value")}entries(){if(!e.is(this))throw new t.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return e.createDefaultIterator(t,this,"key+value")}forEach(n){if(!e.is(this))throw new t.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");n=Fu(t,n,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const u=arguments[1];let o=Array.from(this[r]),i=0;for(;i<o.length;){const[t,e]=o[i].map(yr.tryWrapperForImpl);n.call(u,e,t,this),o=Array.from(this[r]),i++}}get size(){const n=null!=this?this:t;if(!e.is(n))throw new t.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return n[r].size}}Object.defineProperties(a.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},size:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:a.prototype.entries,configurable:!0,writable:!0}}),i[o]=a,i["URLSearchParams Iterator"]=Object.create(i["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),yr.define(i["URLSearchParams Iterator"],{next(){const e=this&&this[yr.iterInternalSymbol];if(!e)throw new t.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:u,kind:o,index:i}=e,s=Array.from(u[r]);if(i>=s.length)return n(t,{value:void 0,done:!0});const a=s[i];return e.index=i+1,n(t,yr.iteratorResult(a.map(yr.tryWrapperForImpl),o))}}),Object.defineProperty(t,o,{configurable:!0,writable:!0,value:a})}});Bu.is,Bu.isImpl,Bu.convert,Bu.createDefaultIterator,Bu.create,Bu.createImpl,Bu._internalSetup,Bu.setup,Bu.install;var Iu={implementation:class t{constructor(t,[e,n]){let r=null;if(void 0!==n&&(r=fu.basicURLParse(n),null===r))throw new TypeError(`Invalid base URL: ${n}`);const u=fu.basicURLParse(e,{baseURL:r});if(null===u)throw new TypeError(`Invalid URL: ${e}`);const o=null!==u.query?u.query:"";this._url=u,this._query=Bu.createImpl(t,[o],{doNotStripQMark:!0}),this._query._url=this}static parse(e,n,r){try{return new t(e,[n,r])}catch{return null}}static canParse(t,e){let n=null;if(void 0!==e&&(n=fu.basicURLParse(e),null===n))return!1;return null!==fu.basicURLParse(t,{baseURL:n})}get href(){return fu.serializeURL(this._url)}set href(t){const e=fu.basicURLParse(t);if(null===e)throw new TypeError(`Invalid URL: ${t}`);this._url=e,this._query._list.splice(0);const{query:n}=e;null!==n&&(this._query._list=Cu.parseUrlencodedString(n))}get origin(){return fu.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(t){fu.basicURLParse(`${t}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(t){fu.cannotHaveAUsernamePasswordPort(this._url)||fu.setTheUsername(this._url,t)}get password(){return this._url.password}set password(t){fu.cannotHaveAUsernamePasswordPort(this._url)||fu.setThePassword(this._url,t)}get host(){const t=this._url;return null===t.host?"":null===t.port?fu.serializeHost(t.host):`${fu.serializeHost(t.host)}:${fu.serializeInteger(t.port)}`}set host(t){fu.hasAnOpaquePath(this._url)||fu.basicURLParse(t,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":fu.serializeHost(this._url.host)}set hostname(t){fu.hasAnOpaquePath(this._url)||fu.basicURLParse(t,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":fu.serializeInteger(this._url.port)}set port(t){fu.cannotHaveAUsernamePasswordPort(this._url)||(""===t?this._url.port=null:fu.basicURLParse(t,{url:this._url,stateOverride:"port"}))}get pathname(){return fu.serializePath(this._url)}set pathname(t){fu.hasAnOpaquePath(this._url)||(this._url.path=[],fu.basicURLParse(t,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(t){const e=this._url;if(""===t)return e.query=null,void(this._query._list=[]);const n="?"===t[0]?t.substring(1):t;e.query="",fu.basicURLParse(n,{url:e,stateOverride:"query"}),this._query._list=Cu.parseUrlencodedString(n)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(t){if(""===t)return void(this._url.fragment=null);const e="#"===t[0]?t.substring(1):t;this._url.fragment="",fu.basicURLParse(e,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},Ru=Ar(function(t,e){const n=yr.implSymbol,r=yr.ctorRegistrySymbol;function u(t,e){let n;return void 0!==e&&(n=e.prototype),yr.isObject(n)||(n=t[r].URL.prototype),Object.create(n)}e.is=t=>yr.isObject(t)&&yr.hasOwn(t,n)&&t[n]instanceof Iu.implementation,e.isImpl=t=>yr.isObject(t)&&t instanceof Iu.implementation,e.convert=(t,n,{context:r="The provided value"}={})=>{if(e.is(n))return yr.implForWrapper(n);throw new t.TypeError(`${r} is not of type 'URL'.`)},e.create=(t,n,r)=>{const o=u(t);return e.setup(o,t,n,r)},e.createImpl=(t,n,r)=>{const u=e.create(t,n,r);return yr.implForWrapper(u)},e._internalSetup=(t,e)=>{},e.setup=(t,r,u=[],o={})=>(o.wrapper=t,e._internalSetup(t,r),Object.defineProperty(t,n,{value:new Iu.implementation(r,u,o),configurable:!0}),t[n][yr.wrapperSymbol]=t,Iu.init&&Iu.init(t[n]),t),e.new=(t,r)=>{const o=u(t,r);return e._internalSetup(o,t),Object.defineProperty(o,n,{value:Object.create(Iu.implementation.prototype),configurable:!0}),o[n][yr.wrapperSymbol]=o,Iu.init&&Iu.init(o[n]),o[n]};const o=new Set(["Window","Worker"]);e.install=(t,r)=>{if(!r.some(t=>o.has(t)))return;const u=yr.initCtorRegistry(t);class i{constructor(n){if(arguments.length<1)throw new t.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const r=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to construct 'URL': parameter 1",globals:t}),r.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to construct 'URL': parameter 2",globals:t})),r.push(e)}return e.setup(Object.create(new.target.prototype),t,r)}toJSON(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[n].toJSON()}get href(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[n].href}set href(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set href' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:t}),u[n].href=r}toString(){if(!e.is(this))throw new t.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[n].href}get origin(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[n].origin}get protocol(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[n].protocol}set protocol(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:t}),u[n].protocol=r}get username(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[n].username}set username(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set username' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:t}),u[n].username=r}get password(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[n].password}set password(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set password' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:t}),u[n].password=r}get host(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[n].host}set host(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set host' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:t}),u[n].host=r}get hostname(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[n].hostname}set hostname(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:t}),u[n].hostname=r}get port(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[n].port}set port(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set port' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:t}),u[n].port=r}get pathname(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[n].pathname}set pathname(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:t}),u[n].pathname=r}get search(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[n].search}set search(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set search' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:t}),u[n].search=r}get searchParams(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return yr.getSameObject(this,"searchParams",()=>yr.tryWrapperForImpl(r[n].searchParams))}get hash(){const r=null!=this?this:t;if(!e.is(r))throw new t.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[n].hash}set hash(r){const u=null!=this?this:t;if(!e.is(u))throw new t.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=br.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:t}),u[n].hash=r}static parse(e){if(arguments.length<1)throw new t.TypeError(`Failed to execute 'parse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'parse' on 'URL': parameter 1",globals:t}),n.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'parse' on 'URL': parameter 2",globals:t})),n.push(e)}return yr.tryWrapperForImpl(Iu.implementation.parse(t,...n))}static canParse(e){if(arguments.length<1)throw new t.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let e=arguments[0];e=br.USVString(e,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:t}),n.push(e)}{let e=arguments[1];void 0!==e&&(e=br.USVString(e,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:t})),n.push(e)}return Iu.implementation.canParse(...n)}}Object.defineProperties(i.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),Object.defineProperties(i,{parse:{enumerable:!0},canParse:{enumerable:!0}}),u.URL=i,Object.defineProperty(t,"URL",{configurable:!0,writable:!0,value:i}),r.includes("Window")&&Object.defineProperty(t,"webkitURL",{configurable:!0,writable:!0,value:i})}});Ru.is,Ru.isImpl,Ru.convert,Ru.create,Ru.createImpl,Ru._internalSetup,Ru.setup,Ru.install;var ju={URL:Ru,URLSearchParams:Bu};const{URL:Su,URLSearchParams:_u}=ju,Uu={Array:Array,Object:Object,Promise:Promise,String:String,TypeError:TypeError};Su.install(Uu,["Window"]),_u.install(Uu,["Window"]);var Pu={URL:Uu.URL,URLSearchParams:Uu.URLSearchParams,parseURL:fu.parseURL,basicURLParse:fu.basicURLParse,serializeURL:fu.serializeURL,serializePath:fu.serializePath,serializeHost:fu.serializeHost,serializeInteger:fu.serializeInteger,serializeURLOrigin:fu.serializeURLOrigin,setTheUsername:fu.setTheUsername,setThePassword:fu.setThePassword,cannotHaveAUsernamePasswordPort:fu.cannotHaveAUsernamePasswordPort,hasAnOpaquePath:fu.hasAnOpaquePath,percentDecodeString:pu.percentDecodeString,percentDecodeBytes:pu.percentDecodeBytes};const Ou=o.Readable,ku=Symbol("buffer"),xu=Symbol("type");class Tu{constructor(){this[xu]="";const t=arguments[0],e=arguments[1],n=[];let r=0;if(t){const e=t,u=Number(e.length);for(let t=0;t<u;t++){const u=e[t];let o;o=u instanceof Buffer?u:ArrayBuffer.isView(u)?Buffer.from(u.buffer,u.byteOffset,u.byteLength):u instanceof ArrayBuffer?Buffer.from(u):u instanceof Tu?u[ku]:Buffer.from("string"==typeof u?u:String(u)),r+=o.length,n.push(o)}}this[ku]=Buffer.concat(n);let u=e&&void 0!==e.type&&String(e.type).toLowerCase();u&&!/[^\u0020-\u007E]/.test(u)&&(this[xu]=u)}get size(){return this[ku].length}get type(){return this[xu]}text(){return Promise.resolve(this[ku].toString())}arrayBuffer(){const t=this[ku],e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return Promise.resolve(e)}stream(){const t=new Ou;return t._read=function(){},t.push(this[ku]),t.push(null),t}toString(){return"[object Blob]"}slice(){const t=this.size,e=arguments[0],n=arguments[1];let r,u;r=void 0===e?0:e<0?Math.max(t+e,0):Math.min(e,t),u=void 0===n?t:n<0?Math.max(t+n,0):Math.min(n,t);const o=Math.max(u-r,0),i=this[ku].slice(r,r+o),s=new Tu([],{type:arguments[2]});return s[ku]=i,s}}function Lu(t,e,n){Error.call(this,t),this.message=t,this.type=e,n&&(this.code=this.errno=n.code),Error.captureStackTrace(this,this.constructor)}let Nu;Object.defineProperties(Tu.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(Tu.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),Lu.prototype=Object.create(Error.prototype),Lu.prototype.constructor=Lu,Lu.prototype.name="FetchError";try{Nu=require("encoding").convert}catch(t){}const qu=Symbol("Body internals"),Mu=o.PassThrough;function Gu(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.size;let u=void 0===r?0:r;var i=n.timeout;let s=void 0===i?0:i;null==t?t=null:$u(t)?t=Buffer.from(t.toString()):Wu(t)||Buffer.isBuffer(t)||("[object ArrayBuffer]"===Object.prototype.toString.call(t)?t=Buffer.from(t):ArrayBuffer.isView(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof o||(t=Buffer.from(String(t)))),this[qu]={body:t,disturbed:!1,error:null},this.size=u,this.timeout=s,t instanceof o&&t.on("error",function(t){const n="AbortError"===t.name?t:new Lu(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t);e[qu].error=n})}function zu(){var t=this;if(this[qu].disturbed)return Gu.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[qu].disturbed=!0,this[qu].error)return Gu.Promise.reject(this[qu].error);let e=this.body;if(null===e)return Gu.Promise.resolve(Buffer.alloc(0));if(Wu(e)&&(e=e.stream()),Buffer.isBuffer(e))return Gu.Promise.resolve(e);if(!(e instanceof o))return Gu.Promise.resolve(Buffer.alloc(0));let n=[],r=0,u=!1;return new Gu.Promise(function(o,i){let s;t.timeout&&(s=setTimeout(function(){u=!0,i(new Lu(`Response timeout while trying to fetch ${t.url} (over ${t.timeout}ms)`,"body-timeout"))},t.timeout)),e.on("error",function(e){"AbortError"===e.name?(u=!0,i(e)):i(new Lu(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e))}),e.on("data",function(e){if(!u&&null!==e){if(t.size&&r+e.length>t.size)return u=!0,void i(new Lu(`content size at ${t.url} over limit: ${t.size}`,"max-size"));r+=e.length,n.push(e)}}),e.on("end",function(){if(!u){clearTimeout(s);try{o(Buffer.concat(n,r))}catch(e){i(new Lu(`Could not create Buffer from response body for ${t.url}: ${e.message}`,"system",e))}}})})}function $u(t){return"object"==typeof t&&"function"==typeof t.append&&"function"==typeof t.delete&&"function"==typeof t.get&&"function"==typeof t.getAll&&"function"==typeof t.has&&"function"==typeof t.set&&("URLSearchParams"===t.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(t)||"function"==typeof t.sort)}function Wu(t){return"object"==typeof t&&"function"==typeof t.arrayBuffer&&"string"==typeof t.type&&"function"==typeof t.stream&&"function"==typeof t.constructor&&"string"==typeof t.constructor.name&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}function Ju(t){let e,n,r=t.body;if(t.bodyUsed)throw new Error("cannot clone body after it is used");return r instanceof o&&"function"!=typeof r.getBoundary&&(e=new Mu,n=new Mu,r.pipe(e),r.pipe(n),t[qu].body=e,r=n),r}function Vu(t){return null===t?null:"string"==typeof t?"text/plain;charset=UTF-8":$u(t)?"application/x-www-form-urlencoded;charset=UTF-8":Wu(t)?t.type||null:Buffer.isBuffer(t)||"[object ArrayBuffer]"===Object.prototype.toString.call(t)||ArrayBuffer.isView(t)?null:"function"==typeof t.getBoundary?`multipart/form-data;boundary=${t.getBoundary()}`:t instanceof o?null:"text/plain;charset=UTF-8"}function Hu(t){const e=t.body;return null===e?0:Wu(e)?e.size:Buffer.isBuffer(e)?e.length:e&&"function"==typeof e.getLengthSync&&(e._lengthRetrievers&&0==e._lengthRetrievers.length||e.hasKnownLength&&e.hasKnownLength())?e.getLengthSync():null}Gu.prototype={get body(){return this[qu].body},get bodyUsed(){return this[qu].disturbed},arrayBuffer(){return zu.call(this).then(function(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)})},blob(){let t=this.headers&&this.headers.get("content-type")||"";return zu.call(this).then(function(e){return Object.assign(new Tu([],{type:t.toLowerCase()}),{[ku]:e})})},json(){var t=this;return zu.call(this).then(function(e){try{return JSON.parse(e.toString())}catch(e){return Gu.Promise.reject(new Lu(`invalid json response body at ${t.url} reason: ${e.message}`,"invalid-json"))}})},text(){return zu.call(this).then(function(t){return t.toString()})},buffer(){return zu.call(this)},textConverted(){var t=this;return zu.call(this).then(function(e){return function(t,e){if("function"!=typeof Nu)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=e.get("content-type");let r,u,o="utf-8";n&&(r=/charset=([^;]*)/i.exec(n));u=t.slice(0,1024).toString(),!r&&u&&(r=/<meta.+?charset=(['"])(.+?)\1/i.exec(u));!r&&u&&(r=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(u),r||(r=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(u),r&&r.pop()),r&&(r=/charset=(.*)/i.exec(r.pop())));!r&&u&&(r=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(u));r&&(o=r.pop(),"gb2312"!==o&&"gbk"!==o||(o="gb18030"));return Nu(t,"UTF-8",o).toString()}(e,t.headers)})}},Object.defineProperties(Gu.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),Gu.mixIn=function(t){for(const e of Object.getOwnPropertyNames(Gu.prototype))if(!(e in t)){const n=Object.getOwnPropertyDescriptor(Gu.prototype,e);Object.defineProperty(t,e,n)}},Gu.Promise=global.Promise;const Zu=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,Yu=/[^\t\x20-\x7e\x80-\xff]/;function Ku(t){if(t=`${t}`,Zu.test(t)||""===t)throw new TypeError(`${t} is not a legal HTTP header name`)}function Xu(t){if(t=`${t}`,Yu.test(t))throw new TypeError(`${t} is not a legal HTTP header value`)}function Qu(t,e){e=e.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return n}const to=Symbol("map");class eo{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[to]=Object.create(null),t instanceof eo){const e=t.raw(),n=Object.keys(e);for(const t of n)for(const n of e[t])this.append(t,n);return}if(null==t);else{if("object"!=typeof t)throw new TypeError("Provided initializer must be an object");{const e=t[Symbol.iterator];if(null!=e){if("function"!=typeof e)throw new TypeError("Header pairs must be iterable");const n=[];for(const e of t){if("object"!=typeof e||"function"!=typeof e[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(e))}for(const t of n){if(2!==t.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(t[0],t[1])}}else for(const e of Object.keys(t)){const n=t[e];this.append(e,n)}}}}get(t){Ku(t=`${t}`);const e=Qu(this[to],t);return void 0===e?null:this[to][e].join(", ")}forEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=no(this),r=0;for(;r<n.length;){var u=n[r];const o=u[0],i=u[1];t.call(e,i,o,this),n=no(this),r++}}set(t,e){e=`${e}`,Ku(t=`${t}`),Xu(e);const n=Qu(this[to],t);this[to][void 0!==n?n:t]=[e]}append(t,e){e=`${e}`,Ku(t=`${t}`),Xu(e);const n=Qu(this[to],t);void 0!==n?this[to][n].push(e):this[to][t]=[e]}has(t){return Ku(t=`${t}`),void 0!==Qu(this[to],t)}delete(t){Ku(t=`${t}`);const e=Qu(this[to],t);void 0!==e&&delete this[to][e]}raw(){return this[to]}keys(){return uo(this,"key")}values(){return uo(this,"value")}[Symbol.iterator](){return uo(this,"key+value")}}function no(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(t[to]).sort().map("key"===e?function(t){return t.toLowerCase()}:"value"===e?function(e){return t[to][e].join(", ")}:function(e){return[e.toLowerCase(),t[to][e].join(", ")]})}eo.prototype.entries=eo.prototype[Symbol.iterator],Object.defineProperty(eo.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(eo.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const ro=Symbol("internal");function uo(t,e){const n=Object.create(oo);return n[ro]={target:t,kind:e,index:0},n}const oo=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==oo)throw new TypeError("Value of `this` is not a HeadersIterator");var t=this[ro];const e=t.target,n=t.kind,r=t.index,u=no(e,n);return r>=u.length?{value:void 0,done:!0}:(this[ro].index=r+1,{value:u[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function io(t){const e=Object.assign({__proto__:null},t[to]),n=Qu(t[to],"Host");return void 0!==n&&(e[n]=e[n][0]),e}Object.defineProperty(oo,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const so=Symbol("Response internals"),ao=s.STATUS_CODES;class co{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gu.call(this,t,e);const n=e.status||200,r=new eo(e.headers);if(null!=t&&!r.has("Content-Type")){const e=Vu(t);e&&r.append("Content-Type",e)}this[so]={url:e.url,status:n,statusText:e.statusText||ao[n],headers:r,counter:e.counter}}get url(){return this[so].url||""}get status(){return this[so].status}get ok(){return this[so].status>=200&&this[so].status<300}get redirected(){return this[so].counter>0}get statusText(){return this[so].statusText}get headers(){return this[so].headers}clone(){return new co(Ju(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Gu.mixIn(co.prototype),Object.defineProperties(co.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(co.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const lo=Symbol("Request internals"),ho=a.URL||Pu.URL,po=a.parse,fo=a.format;function mo(t){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(t)&&(t=new ho(t).toString()),po(t)}const vo="destroy"in o.Readable.prototype;function Eo(t){return"object"==typeof t&&"object"==typeof t[lo]}class Ao{constructor(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Eo(t)?e=mo(t.url):(e=t&&t.href?mo(t.href):mo(`${t}`),t={});let r=n.method||t.method||"GET";if(r=r.toUpperCase(),(null!=n.body||Eo(t)&&null!==t.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let u=null!=n.body?n.body:Eo(t)&&null!==t.body?Ju(t):null;Gu.call(this,u,{timeout:n.timeout||t.timeout||0,size:n.size||t.size||0});const o=new eo(n.headers||t.headers||{});if(null!=u&&!o.has("Content-Type")){const t=Vu(u);t&&o.append("Content-Type",t)}let i=Eo(t)?t.signal:null;if("signal"in n&&(i=n.signal),null!=i&&!function(t){const e=t&&"object"==typeof t&&Object.getPrototypeOf(t);return!(!e||"AbortSignal"!==e.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[lo]={method:r,redirect:n.redirect||t.redirect||"follow",headers:o,parsedURL:e,signal:i},this.follow=void 0!==n.follow?n.follow:void 0!==t.follow?t.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===t.compress||t.compress,this.counter=n.counter||t.counter||0,this.agent=n.agent||t.agent}get method(){return this[lo].method}get url(){return fo(this[lo].parsedURL)}get headers(){return this[lo].headers}get redirect(){return this[lo].redirect}get signal(){return this[lo].signal}clone(){return new Ao(this)}}function bo(t){Error.call(this,t),this.type="aborted",this.message=t,Error.captureStackTrace(this,this.constructor)}Gu.mixIn(Ao.prototype),Object.defineProperty(Ao.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Ao.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),bo.prototype=Object.create(Error.prototype),bo.prototype.constructor=bo,bo.prototype.name="AbortError";const yo=a.URL||Pu.URL,go=o.PassThrough;function Co(t,e){if(!Co.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Gu.Promise=Co.Promise,new Co.Promise(function(n,r){const u=new Ao(t,e),i=function(t){const e=t[lo].parsedURL,n=new eo(t[lo].headers);if(n.has("Accept")||n.set("Accept","*/*"),!e.protocol||!e.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(e.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(t.signal&&t.body instanceof o.Readable&&!vo)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let r=null;if(null==t.body&&/^(POST|PUT)$/i.test(t.method)&&(r="0"),null!=t.body){const e=Hu(t);"number"==typeof e&&(r=String(e))}r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),t.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let u=t.agent;return"function"==typeof u&&(u=u(e)),n.has("Connection")||u||n.set("Connection","close"),Object.assign({},e,{method:t.method,headers:io(n),agent:u})}(u),a=("https:"===i.protocol?d:s).request,c=u.signal;let l=null;const p=function(){let t=new bo("The user aborted a request.");r(t),u.body&&u.body instanceof o.Readable&&u.body.destroy(t),l&&l.body&&l.body.emit("error",t)};if(c&&c.aborted)return void p();const f=function(){p(),E()},m=a(i);let v;function E(){m.abort(),c&&c.removeEventListener("abort",f),clearTimeout(v)}c&&c.addEventListener("abort",f),u.timeout&&m.once("socket",function(t){v=setTimeout(function(){r(new Lu(`network timeout at: ${u.url}`,"request-timeout")),E()},u.timeout)}),m.on("error",function(t){r(new Lu(`request to ${u.url} failed, reason: ${t.message}`,"system",t)),E()}),m.on("response",function(t){clearTimeout(v);const e=function(t){const e=new eo;for(const n of Object.keys(t))if(!Zu.test(n))if(Array.isArray(t[n]))for(const r of t[n])Yu.test(r)||(void 0===e[to][n]?e[to][n]=[r]:e[to][n].push(r));else Yu.test(t[n])||(e[to][n]=[t[n]]);return e}(t.headers);if(Co.isRedirect(t.statusCode)){const o=e.get("Location");let i=null;try{i=null===o?null:new yo(o,u.url).toString()}catch(t){if("manual"!==u.redirect)return r(new Lu(`uri requested responds with an invalid redirect URL: ${o}`,"invalid-redirect")),void E()}switch(u.redirect){case"error":return r(new Lu(`uri requested responds with a redirect, redirect mode is set to error: ${u.url}`,"no-redirect")),void E();case"manual":if(null!==i)try{e.set("Location",i)}catch(t){r(t)}break;case"follow":if(null===i)break;if(u.counter>=u.follow)return r(new Lu(`maximum redirect reached at: ${u.url}`,"max-redirect")),void E();const o={headers:new eo(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout,size:u.size};if(!function(t,e){const n=new yo(e).hostname,r=new yo(t).hostname;return n===r||"."===n[n.length-r.length-1]&&n.endsWith(r)}(u.url,i))for(const t of["authorization","www-authenticate","cookie","cookie2"])o.headers.delete(t);return 303!==t.statusCode&&u.body&&null===Hu(u)?(r(new Lu("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void E()):(303!==t.statusCode&&(301!==t.statusCode&&302!==t.statusCode||"POST"!==u.method)||(o.method="GET",o.body=void 0,o.headers.delete("content-length")),n(Co(new Ao(i,o))),void E())}}t.once("end",function(){c&&c.removeEventListener("abort",f)});let o=t.pipe(new go);const i={url:u.url,status:t.statusCode,statusText:t.statusMessage,headers:e,size:u.size,timeout:u.timeout,counter:u.counter},s=e.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===s||204===t.statusCode||304===t.statusCode)return l=new co(o,i),void n(l);const a={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};if("gzip"==s||"x-gzip"==s)return o=o.pipe(h.createGunzip(a)),l=new co(o,i),void n(l);if("deflate"==s||"x-deflate"==s){return void t.pipe(new go).once("data",function(t){o=8==(15&t[0])?o.pipe(h.createInflate()):o.pipe(h.createInflateRaw()),l=new co(o,i),n(l)})}if("br"==s&&"function"==typeof h.createBrotliDecompress)return o=o.pipe(h.createBrotliDecompress()),l=new co(o,i),void n(l);l=new co(o,i),n(l)}),function(t,e){const n=e.body;null===n?t.end():Wu(n)?n.stream().pipe(t):Buffer.isBuffer(n)?(t.write(n),t.end()):n.pipe(t)}(m,u)})}Co.isRedirect=function(t){return 301===t||302===t||303===t||307===t||308===t},Co.Promise=global.Promise;var Fo="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,wo=Fo?Co:window.fetch;var Do=function(t){return Array.isArray(t)?t:[t]},Bo=function(t,e){return J(void 0,void 0,void 0,function(){var n;return V(this,function(r){return n=Promise.resolve([]),[2,t.reduce(function(t,n){return t.then(function(t){return e(n).then(function(e){return t.push(e),t})})},n)]})})},Io=function(t){function e(e){void 0===e&&(e=8192);var n=t.call(this)||this;return n.bufferDefaultSize=e,n._size=0,n.buffer=Buffer.alloc(n.bufferDefaultSize),n}return $(e,t),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.getContentsAsString=function(t,e){void 0===t&&(t="utf8");var n=this.buffer.toString(t,0,Math.min(e||this.size,this.size)),r=Buffer.byteLength(n);return r<this.size&&this.buffer.copy(this.buffer,0,r),this._size-=r,n},e.prototype.adaptBuffer=function(t){if(this.buffer.length-this.size<t){var e=Math.ceil((t-(this.buffer.length-this.size))/this.bufferDefaultSize),n=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*e);this.buffer.copy(n,0,0,this.size),this.buffer=n}},e.prototype._write=function(t,e,n){this.adaptBuffer(t.length),t.copy(this.buffer,this.size,0),this._size+=t.length,n()},e}(o.Writable),Ro=function(){function t(t,e){this.contextProvider=t,this.agent=e}return t.prototype.getServiceDetails=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(t,"/services/").concat(e))]})})},t.prototype.getAddonDetails=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){return[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/projects/").concat(t,"/addons/").concat(e))]})})},t.prototype.fetch=function(t,e){return J(this,void 0,void 0,function(){var n,r,u,o,i,s=this;return V(this,function(a){switch(a.label){case 0:return n="Error while trying to connect, please try again.",r=mr({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},W(W({},e),{agent:this.agent})),[4,Xa(2)(function(){return J(s,void 0,void 0,function(){return V(this,function(e){return[2,wo(t,r)]})})}).catch(function(){throw new Error(n)})];case 1:return(u=a.sent()).ok?[3,3]:[4,u.text()];case 2:o=a.sent(),i=n;try{i=JSON.parse(o)}catch(t){i=null!=o?o:n}finally{throw new Error(JSON.stringify(i))}case 3:return[4,u.json()];case 4:return[2,a.sent()]}})})},t}(),jo=function(t,e,n){return J(void 0,void 0,void 0,function(){var r,u,o,i,s;return V(this,function(a){switch(a.label){case 0:if(r=Uo(e||"127.0.0.1"),(u=Uo(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===p.platform()&&(o=function(t){return J(void 0,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return e="lo0 alias ".concat(t," up"),[4,_o.apply(void 0,e.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,a.label=1;case 1:return i<=u?(s=Po(i),[4,So(t,s)]):[3,6];case 2:return a.sent()?o?[4,o(s)]:[3,4]:[3,5];case 3:a.sent(),a.label=4;case 4:return[2,s];case 5:return i+=1,[3,1];case 6:throw new Error("Not possible to assign port '".concat(t,"' to an IP address on this machine. Please check if there is already a service running with this port which binds to the wildcard host address (0.0.0.0) and stop this service."))}})})},So=function(t,e){return new Promise(function(n){var r=new v,u=!1;r.on("connect",function(){u=!0,r.destroy()}),r.setTimeout(400),r.on("timeout",function(){u=!1,r.destroy()}),r.on("error",function(){u=!1}),r.on("close",function(){n(!u)}),e?r.connect(t,e):r.connect(t)})},_o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return J(void 0,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,Oo("/sbin/ifconfig",t).resultPromise];case 1:return[2,e.sent()]}})})},Uo=function(t){var e=t.split(".").reverse();if(4!==e.length)throw new Error("Invalid ip address: ".concat(t));for(var n=0,r=0;r<4;r+=1){var u=Number.parseInt(e[r],10);if(u<0||u>255)throw new Error("Invalid ip address: ".concat(t));n+=u<<8*r}return n},Po=function(t){if(!Number.isSafeInteger(t))throw new Error("Number is not an integer");if(t<0||t>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");for(var e=[],n=0;n<4;n+=1)e.push(t>>8*n&255);return e.reverse().join(".")},Oo=function(t,e,n){var u=r(t,e,W({windowsHide:!0},n)),o=new Promise(function(r,o){var i="",s="";(null===(null==n?void 0:n.stdio)||void 0===(null==n?void 0:n.stdio))&&(u.stdout&&u.stdout.on("data",function(t){i+=t}),u.stderr&&u.stderr.on("data",function(t){s+=t})),u.on("close",function(n){var u={code:n,stdout:i,stderr:s};if(0!==n){var a="Error during execution of command '".concat(t," ").concat(e.join(" "),"': ").concat(s);o({message:a,result:u})}else r(u)})});return{process:u,resultPromise:o}},ko=function(t,e,n){return J(void 0,void 0,void 0,function(){var r,u;return V(this,function(o){switch(o.label){case 0:return r=xo(t,10),[4,E.promises.writeFile(r,e,n)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,4,,6]),[4,E.promises.rename(r,t)];case 3:return o.sent(),[3,6];case 4:return u=o.sent(),[4,E.promises.unlink(r).catch(function(){})];case 5:throw o.sent(),u;case 6:return[2]}})})},xo=function(t,e){for(var n,r=function(t){return H([],Array(t),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},u=C.dirname(t),o=C.basename(t),i=0;null===(n=i<e)||void 0===n||n;i+=1){var s=r(16),a=".".concat(s,".").concat(o),c=C.join(u,a);if(!E.existsSync(c))return c}throw new Error("Could not write file to file '".concat(t,"'."))},To="win32"===process.platform?"\r\n":"\n",Lo=function(){function t(t,e){this.nodes=t,this.config=e}return t.prototype.add=function(t,e,n){var r=this;if(0===e.length)return this;var u=this.findOrCreateEntry(t,n);return e.forEach(function(t){if(!u.hosts.find(function(e){return e.host===t})){var e=1;0===u.hosts.length&&(e=r.config.indent-"".concat(u.ipPrefixWhitespace).concat(u.ip).length),u.hosts.push({whitespace:" ".repeat(e<1?1:e),host:t})}}),this},t.prototype.remove=function(t,e){var n=this;return this.findEntries(t).forEach(function(t){e.forEach(function(e){var r=t.hosts.findIndex(function(t){return t.host===e});r<0||(0===r&&void 0!==t.hosts[1]&&(t.hosts[1].whitespace=t.hosts[0].whitespace),t.hosts.splice(r,1),0===t.hosts.length&&n.removeEntry(t))})}),this},t.prototype.removeHosts=function(t){var e=this;Wo(this.nodes,"entry").forEach(function(n){e.remove(n.ip,t)})},t.prototype.removeIps=function(t){var e=this;return t.forEach(function(t){e.findEntries(t).forEach(function(t){return e.removeEntry(t)})}),this},t.prototype.resolveHosts=function(t){return cr(this.findEntries(t),function(t){return t.hosts.map(function(t){return t.host})})},t.prototype.resolveIps=function(t){return Wo(this.nodes,"entry").filter(function(e){return e.hosts.some(function(e){return e.host===t})}).map(function(t){return t.ip})},t.prototype.toString=function(){return Go(this.nodes,this.config.eol)},t.prototype.removeEntry=function(t){var e,n="number"==typeof(e=t)||it(e)&&"[object Number]"==ot(e)?t:this.nodes.findIndex(function(e){return e===t});n<0||this.nodes.splice(n,1)},t.prototype.findEntries=function(t){return Wo(this.nodes,"entry").filter(function(e){return e.ip===t})},t.prototype.findOrCreateEntry=function(t,e){var n=this.findEntries(t)[0];if(n)return n;var r=this.makeEntry(t);if(e){var u=Mo(e),o=this.nodes.findIndex(function(t){return"comment"===t.type&&t.line===u});if(o>=0)this.insertAt(o+1,r);else{var i="blank"!==this.nodes[this.nodes.length-1].type?[No(),qo(u),r]:[qo(u),r];this.insertAt.apply(this,H([this.nodes.length],i,!1))}}else this.insertAt(this.nodes.length,r);return r},t.prototype.insertAt=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(e=this.nodes).splice.apply(e,H([t,0],n,!1))},t.prototype.makeEntry=function(t,e){var n=this.config.ipPrefixWhitespace;return W({type:"entry",ip:t,ipPrefixWhitespace:n,hosts:[]},e)},t.fromNodes=function(e,n){var r,u;return new t(e.filter(function(t){return"eol"!==t.type}),{eol:null!==(r=null==n?void 0:n.eol)&&void 0!==r?r:function(){var t,n=Wo(e,"eol").map(function(t){return t.line});return null!==(t=Jo(n))&&void 0!==t?t:To}(),indent:null!==(u=null==n?void 0:n.indent)&&void 0!==u?u:function(){var t,n=cr(Wo(e,"entry"),function(t){var e=t.ipPrefixWhitespace,n=t.ip,r=t.hosts[0];return r?["".concat(e).concat(n).concat(r.whitespace).length]:[]});return null!==(t=Jo(n))&&void 0!==t?t:17}(),ipPrefixWhitespace:""})},t.parse=function(t,e){return this.fromNodes(zo(t),e)},t}(),No=function(){return{type:"blank",line:""}},qo=function(t){return{type:"comment",line:Mo(t)}},Mo=function(t){return t.startsWith("#")?t:"# ".concat(t)},Go=function(t,e){var n=t.map(function(t){switch(t.type){case"entry":var e=t.hosts.map(function(t){var e=t.whitespace,n=t.host;return"".concat(e).concat(n)}).join("");return"".concat(t.ipPrefixWhitespace).concat(t.ip).concat(e);case"blank":case"comment":case"invalid":return t.line;default:return""}});return n.join(null!=e?e:To)},zo=function(t){return t.split(/(\r?\n)/).map(function(t){return function(t){return t.match(/^\s*#.*$/)}(t)?{type:"comment",line:t}:function(t){return t.match(/^(\r?\n)$/)}(t)?{type:"eol",line:t}:function(t){return t.match(/^\s*$/)}(t)?{type:"blank",line:t}:$o(t)})},$o=function(t){var e=t.match(/^(\s*)(\S+)(.+)?$/);if(!e)return{type:"invalid",line:t};var n=e[1],r=e[2],u=e.slice(3),o=!1,i=cr(u.filter(function(t){return void 0!==t}),function(t){var e=t.match(/(\s+)(\S+)/g);return e?e.map(function(t){var e=t.match(/^(\s+)(\S+)$/);e||(o=!0);var n=null!=e?e:[];return{whitespace:n[1],host:n[2]}}):(o=!0,[])});return o?{type:"invalid",line:t}:{type:"entry",ipPrefixWhitespace:n,ip:r,hosts:i}},Wo=function(t,e){return t.filter(function(t){return t.type===e})},Jo=function(t){var e=new Map;t.forEach(function(t){var n;e.set(t,(null!==(n=e.get(t))&&void 0!==n?n:0)+1)});var n=pr(Array.from(e.entries()),function(t){return t[1]});if(n)return n[0]},Vo="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",Ho=function(){function t(t){this.ast=Lo.fromNodes([]);var e={writeMode:"atomic",hostsFile:Vo};this.config=W(W({},e),t)}return t.prototype.add=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!hr(t))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof t,"."));return e.forEach(function(t){if(!hr(t))throw new Error("Expected 'host' to be a string, but got ".concat(typeof t,"."))}),this.ast.add(t,e,this.config.header),this},t.prototype.remove=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!hr(t))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof t,"."));return e.forEach(function(t){if(!hr(t))throw new Error("Expected 'host' to be a string, but got ".concat(typeof t,"."))}),this.ast.remove(t,e),this},t.prototype.removeHosts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.forEach(function(t){if(!hr(t))throw new Error("Expected 'host' to be a string, but got ".concat(typeof t,"."))}),this.ast.removeHosts(t),this},t.prototype.removeIps=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.forEach(function(t){if(!hr(t))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof t,"."))}),this.ast.removeIps(t),this},t.prototype.read=function(){return J(this,void 0,void 0,function(){var t;return V(this,function(e){switch(e.label){case 0:return[4,E.promises.readFile(this.config.hostsFile)];case 1:return t=e.sent(),this.ast=Lo.parse(t.toString(),this.config),[2,this]}})})},t.prototype.write=function(t){return J(this,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){switch(o.label){case 0:switch(e=W(W({},this.config),t),n=e.hostsFile,r=e.writeMode,u=this.ast.toString(),r){case void 0:case"atomic":return[3,1];case"standard":return[3,3];case"disabled":return[3,5]}return[3,5];case 1:return[4,ko(n,u)];case 2:case 4:return o.sent(),[3,6];case 3:return[4,E.promises.writeFile(n,u)];case 5:return[3,6];case 6:return[2,this]}})})},t.prototype.backup=function(t){return J(this,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){switch(o.label){case 0:return E.existsSync(this.config.hostsFile)?(e=C.dirname(this.config.hostsFile),n=C.basename(this.config.hostsFile),r="".concat(n).concat(t.suffix),u=C.resolve(e,r),E.existsSync(u)&&!t.rewrite?[3,2]:[4,E.promises.copyFile(this.config.hostsFile,u)]):[2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},t.load=function(e){return J(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return[4,new t(e).read()];case 1:return[2,n.sent()]}})})},t}(),Zo=function(){function t(){this.previousPromise=Promise.resolve(),this._queueLength=0}return Object.defineProperty(t.prototype,"queueLength",{get:function(){return this._queueLength},enumerable:!1,configurable:!0}),t.prototype.enter=function(t){return J(this,void 0,void 0,function(){var e,n=this;return V(this,function(r){return this._queueLength+=1,e=this.previousPromise.then(function(){return n._queueLength-=1,t()},function(){return n._queueLength-=1,t()}),this.previousPromise=e,[2,e]})})},t}(),Yo=function t(e,n){if(e&&n)return t(e)(n);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),u=t[t.length-1];return"function"==typeof r&&r!==u&&Object.keys(u).forEach(function(t){r[t]=u[t]}),r}};var Ko=Yo(Qo),Xo=Yo(ti);function Qo(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function ti(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}Qo.proto=Qo(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Qo(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ti(this)},configurable:!0})}),Ko.strict=Xo;var ei,ni=function(){},ri=vr.Bare?queueMicrotask:process.nextTick.bind(process),ui=function(t,e,n){if("function"==typeof e)return ui(t,null,e);e||(e={}),n=Ko(n||ni);var r=t._writableState,u=t._readableState,o=e.readable||!1!==e.readable&&t.readable,i=e.writable||!1!==e.writable&&t.writable,s=!1,a=function(){t.writable||c()},c=function(){i=!1,o||n.call(t)},d=function(){o=!1,i||n.call(t)},l=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},h=function(e){n.call(t,e)},p=function(){ri(f)},f=function(){if(!s)return(!o||u&&u.ended&&!u.destroyed)&&(!i||r&&r.ended&&!r.destroyed)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",c)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?i&&!r&&(t.on("end",a),t.on("close",a)):(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",l),t.on("end",d),t.on("finish",c),!1!==e.error&&t.on("error",h),t.on("close",p),function(){s=!0,t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",c),t.removeListener("exit",l),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}},oi=ui;try{ei=E}catch(t){}var ii=function(){},si="undefined"!=typeof process&&/^v?\.0/.test(process.version),ai=function(t){return"function"==typeof t},ci=function(t,e,n,r){r=Ko(r);var u=!1;t.on("close",function(){u=!0}),oi(t,{readable:e,writable:n},function(t){if(t)return r(t);u=!0,r()});var o=!1;return function(e){if(!u&&!o)return o=!0,function(t){return!!si&&!!ei&&(t instanceof(ei.ReadStream||ii)||t instanceof(ei.WriteStream||ii))&&ai(t.close)}(t)?t.close(ii):function(t){return t.setHeader&&ai(t.abort)}(t)?t.abort():ai(t.destroy)?t.destroy():void r(e||new Error("stream was destroyed"))}},di=function(t){t()},li=function(t,e){return t.pipe(e)},hi=function(){var t,e=Array.prototype.slice.call(arguments),n=ai(e[e.length-1]||ii)&&e.pop()||ii;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r=e.map(function(u,o){var i=o<e.length-1;return ci(u,i,o>0,function(e){t||(t=e),e&&r.forEach(di),i||(r.forEach(di),n(t))})});return e.reduce(li)};const pi=["nodebuffer","arraybuffer","fragments"],fi="undefined"!=typeof Blob;fi&&pi.push("blob");var mi={BINARY_TYPES:pi,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:fi,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}},vi="function"==typeof __webpack_require__?__non_webpack_require__:Er,Ei=process.config&&process.config.variables||{},Ai=!!process.env.PREBUILDS_ONLY,bi=process.versions.modules,yi=!(!process.versions||!process.versions.electron)||!!process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",gi=process.env.npm_config_arch||p.arch(),Ci=process.env.npm_config_platform||p.platform(),Fi=process.env.LIBC||(function(t){return"linux"===t&&E.existsSync("/etc/alpine-release")}(Ci)?"musl":"glibc"),wi=process.env.ARM_VERSION||("arm64"===gi?"8":Ei.arm_version)||"",Di=(process.versions.uv||"").split(".")[0],Bi=Ii;function Ii(t){return vi(Ii.resolve(t))}function Ri(t){try{return E.readdirSync(t)}catch(t){return[]}}function ji(t,e){var n=Ri(t).filter(e);return n[0]&&C.join(t,n[0])}function Si(t){return/\.node$/.test(t)}function _i(t){var e=t.split("-");if(2===e.length){var n=e[0],r=e[1].split("+");if(n&&r.length&&r.every(Boolean))return{name:t,platform:n,architectures:r}}}function Ui(t,e){return function(n){return null!=n&&(n.platform===t&&n.architectures.includes(e))}}function Pi(t,e){return t.architectures.length-e.architectures.length}function Oi(t){var e=t.split("."),n={file:t,specificity:0};if("node"===e.pop()){for(var r=0;r<e.length;r++){var u=e[r];if("node"===u||"electron"===u||"node-webkit"===u)n.runtime=u;else if("napi"===u)n.napi=!0;else if("abi"===u.slice(0,3))n.abi=u.slice(3);else if("uv"===u.slice(0,2))n.uv=u.slice(2);else if("armv"===u.slice(0,4))n.armv=u.slice(4);else{if("glibc"!==u&&"musl"!==u)continue;n.libc=u}n.specificity++}return n}}function ki(t,e){return function(n){return null!=n&&(!(n.runtime&&n.runtime!==t&&!function(t){return"node"===t.runtime&&t.napi}(n))&&(!(n.abi&&n.abi!==e&&!n.napi)&&((!n.uv||n.uv===Di)&&((!n.armv||n.armv===wi)&&(!n.libc||n.libc===Fi)))))}}function xi(t){return function(e,n){return e.runtime!==n.runtime?e.runtime===t?-1:1:e.abi!==n.abi?e.abi?-1:1:e.specificity!==n.specificity?e.specificity>n.specificity?-1:1:0}}Ii.resolve=Ii.path=function(t){t=C.resolve(t||".");try{var e=vi(C.join(t,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(t=process.env[e+"_PREBUILD"])}catch(t){}if(!Ai){var n=ji(C.join(t,"build/Release"),Si);if(n)return n;var r=ji(C.join(t,"build/Debug"),Si);if(r)return r}var u=s(t);if(u)return u;var o=s(C.dirname(process.execPath));if(o)return o;var i=["platform="+Ci,"arch="+gi,"runtime="+yi,"abi="+bi,"uv="+Di,wi?"armv="+wi:"","libc="+Fi,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+i+"\n loaded from: "+t+"\n");function s(t){var e=Ri(C.join(t,"prebuilds")).map(_i).filter(Ui(Ci,gi)).sort(Pi)[0];if(e){var n=C.join(t,"prebuilds",e.name),r=Ri(n).map(Oi).filter(ki(yi,bi)).sort(xi(yi))[0];return r?C.join(n,r.file):void 0}}},Ii.parseTags=Oi,Ii.matchTags=ki,Ii.compareTags=xi,Ii.parseTuple=_i,Ii.matchTuple=Ui,Ii.compareTuples=Pi;var Ti=Ar(function(t){const e="function"==typeof __webpack_require__?__non_webpack_require__:Er;"function"==typeof e.addon?t.exports=e.addon.bind(e):t.exports=Bi});var Li={mask:(t,e,n,r,u)=>{for(var o=0;o<u;o++)n[r+o]=t[o]^e[3&o]},unmask:(t,e)=>{const n=t.length;for(var r=0;r<n;r++)t[r]^=e[3&r]}},Ni=Ar(function(t){try{t.exports=Ti(__dirname)}catch(e){t.exports=Li}}),qi=Ar(function(t){const{EMPTY_BUFFER:e}=mi,n=Buffer[Symbol.species];function r(t,e,n,r,u){for(let o=0;o<u;o++)n[r+o]=t[o]^e[3&o]}function u(t,e){for(let n=0;n<t.length;n++)t[n]^=e[3&n]}if(t.exports={concat:function(t,r){if(0===t.length)return e;if(1===t.length)return t[0];const u=Buffer.allocUnsafe(r);let o=0;for(let e=0;e<t.length;e++){const n=t[e];u.set(n,o),o+=n.length}return o<r?new n(u.buffer,u.byteOffset,o):u},mask:r,toArrayBuffer:function(t){return t.length===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.length)},toBuffer:function t(e){if(t.readOnly=!0,Buffer.isBuffer(e))return e;let r;return e instanceof ArrayBuffer?r=new n(e):ArrayBuffer.isView(e)?r=new n(e.buffer,e.byteOffset,e.byteLength):(r=Buffer.from(e),t.readOnly=!1),r},unmask:u},!process.env.WS_NO_BUFFER_UTIL)try{const e=Ni;t.exports.mask=function(t,n,u,o,i){i<48?r(t,n,u,o,i):e.mask(t,n,u,o,i)},t.exports.unmask=function(t,n){t.length<32?u(t,n):e.unmask(t,n)}}catch(t){}});qi.concat,qi.mask,qi.toArrayBuffer,qi.toBuffer,qi.unmask;const Mi=Symbol("kDone"),Gi=Symbol("kRun");var zi=class{constructor(t){this[Mi]=()=>{this.pending--,this[Gi]()},this.concurrency=t||1/0,this.jobs=[],this.pending=0}add(t){this.jobs.push(t),this[Gi]()}[Gi](){if(this.pending!==this.concurrency&&this.jobs.length){const t=this.jobs.shift();this.pending++,t(this[Mi])}}};const{kStatusCode:$i}=mi,Wi=Buffer[Symbol.species],Ji=Buffer.from([0,0,255,255]),Vi=Symbol("permessage-deflate"),Hi=Symbol("total-length"),Zi=Symbol("callback"),Yi=Symbol("buffers"),Ki=Symbol("error");let Xi;var Qi=class{constructor(t,e,n){if(this._maxPayload=0|n,this._options=t||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!e,this._deflate=null,this._inflate=null,this.params=null,!Xi){const t=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;Xi=new zi(t)}}static get extensionName(){return"permessage-deflate"}offer(){const t={};return this._options.serverNoContextTakeover&&(t.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(t.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(t.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?t.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(t.client_max_window_bits=!0),t}accept(t){return t=this.normalizeParams(t),this.params=this._isServer?this.acceptAsServer(t):this.acceptAsClient(t),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const t=this._deflate[Zi];this._deflate.close(),this._deflate=null,t&&t(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(t){const e=this._options,n=t.find(t=>!(!1===e.serverNoContextTakeover&&t.server_no_context_takeover||t.server_max_window_bits&&(!1===e.serverMaxWindowBits||"number"==typeof e.serverMaxWindowBits&&e.serverMaxWindowBits>t.server_max_window_bits)||"number"==typeof e.clientMaxWindowBits&&!t.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return e.serverNoContextTakeover&&(n.server_no_context_takeover=!0),e.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof e.serverMaxWindowBits&&(n.server_max_window_bits=e.serverMaxWindowBits),"number"==typeof e.clientMaxWindowBits?n.client_max_window_bits=e.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==e.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(t){const e=t[0];if(!1===this._options.clientNoContextTakeover&&e.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(e.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&e.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(e.client_max_window_bits=this._options.clientMaxWindowBits);return e}normalizeParams(t){return t.forEach(t=>{Object.keys(t).forEach(e=>{let n=t[e];if(n.length>1)throw new Error(`Parameter "${e}" must have only a single value`);if(n=n[0],"client_max_window_bits"===e){if(!0!==n){const t=+n;if(!Number.isInteger(t)||t<8||t>15)throw new TypeError(`Invalid value for parameter "${e}": ${n}`);n=t}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${e}": ${n}`)}else if("server_max_window_bits"===e){const t=+n;if(!Number.isInteger(t)||t<8||t>15)throw new TypeError(`Invalid value for parameter "${e}": ${n}`);n=t}else{if("client_no_context_takeover"!==e&&"server_no_context_takeover"!==e)throw new Error(`Unknown parameter "${e}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${e}": ${n}`)}t[e]=n})}),t}decompress(t,e,n){Xi.add(r=>{this._decompress(t,e,(t,e)=>{r(),n(t,e)})})}compress(t,e,n){Xi.add(r=>{this._compress(t,e,(t,e)=>{r(),n(t,e)})})}_decompress(t,e,n){const r=this._isServer?"client":"server";if(!this._inflate){const t=`${r}_max_window_bits`,e="number"!=typeof this.params[t]?h.Z_DEFAULT_WINDOWBITS:this.params[t];this._inflate=h.createInflateRaw({...this._options.zlibInflateOptions,windowBits:e}),this._inflate[Vi]=this,this._inflate[Hi]=0,this._inflate[Yi]=[],this._inflate.on("error",ns),this._inflate.on("data",es)}this._inflate[Zi]=n,this._inflate.write(t),e&&this._inflate.write(Ji),this._inflate.flush(()=>{const t=this._inflate[Ki];if(t)return this._inflate.close(),this._inflate=null,void n(t);const u=qi.concat(this._inflate[Yi],this._inflate[Hi]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Hi]=0,this._inflate[Yi]=[],e&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),n(null,u)})}_compress(t,e,n){const r=this._isServer?"server":"client";if(!this._deflate){const t=`${r}_max_window_bits`,e="number"!=typeof this.params[t]?h.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=h.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:e}),this._deflate[Hi]=0,this._deflate[Yi]=[],this._deflate.on("data",ts)}this._deflate[Zi]=n,this._deflate.write(t),this._deflate.flush(h.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let t=qi.concat(this._deflate[Yi],this._deflate[Hi]);e&&(t=new Wi(t.buffer,t.byteOffset,t.length-4)),this._deflate[Zi]=null,this._deflate[Hi]=0,this._deflate[Yi]=[],e&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),n(null,t)})}};function ts(t){this[Yi].push(t),this[Hi]+=t.length}function es(t){this[Hi]+=t.length,this[Vi]._maxPayload<1||this[Hi]<=this[Vi]._maxPayload?this[Yi].push(t):(this[Ki]=new RangeError("Max payload size exceeded"),this[Ki].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Ki][$i]=1009,this.removeListener("data",es),this.reset())}function ns(t){this[Vi]._inflate=null,this[Ki]?this[Zi](this[Ki]):(t[$i]=1007,this[Zi](t))}var rs=function(t){const e=t.length;let n=0;for(;n<e;)if(128&t[n])if(192==(224&t[n])){if(n+1===e||128!=(192&t[n+1])||192==(254&t[n]))return!1;n+=2}else if(224==(240&t[n])){if(n+2>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||224===t[n]&&128==(224&t[n+1])||237===t[n]&&160==(224&t[n+1]))return!1;n+=3}else{if(240!=(248&t[n]))return!1;if(n+3>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||128!=(192&t[n+3])||240===t[n]&&128==(240&t[n+1])||244===t[n]&&t[n+1]>143||t[n]>244)return!1;n+=4}else n++;return!0},us=Ar(function(t){try{t.exports=Ti(__dirname)}catch(e){t.exports=rs}}),os=Ar(function(t){const{isUtf8:e}=R,{hasBlob:n}=mi;function r(t){const e=t.length;let n=0;for(;n<e;)if(128&t[n])if(192==(224&t[n])){if(n+1===e||128!=(192&t[n+1])||192==(254&t[n]))return!1;n+=2}else if(224==(240&t[n])){if(n+2>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||224===t[n]&&128==(224&t[n+1])||237===t[n]&&160==(224&t[n+1]))return!1;n+=3}else{if(240!=(248&t[n]))return!1;if(n+3>=e||128!=(192&t[n+1])||128!=(192&t[n+2])||128!=(192&t[n+3])||240===t[n]&&128==(240&t[n+1])||244===t[n]&&t[n+1]>143||t[n]>244)return!1;n+=4}else n++;return!0}if(t.exports={isBlob:function(t){return n&&"object"==typeof t&&"function"==typeof t.arrayBuffer&&"string"==typeof t.type&&"function"==typeof t.stream&&("Blob"===t[Symbol.toStringTag]||"File"===t[Symbol.toStringTag])},isValidStatusCode:function(t){return t>=1e3&&t<=1014&&1004!==t&&1005!==t&&1006!==t||t>=3e3&&t<=4999},isValidUTF8:r,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},e)t.exports.isValidUTF8=function(t){return t.length<24?r(t):e(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const e=us;t.exports.isValidUTF8=function(t){return t.length<32?r(t):e(t)}}catch(t){}});os.isBlob,os.isValidStatusCode,os.isValidUTF8,os.tokenChars;const{Writable:is}=o,{BINARY_TYPES:ss,EMPTY_BUFFER:as,kStatusCode:cs,kWebSocket:ds}=mi,{concat:ls,toArrayBuffer:hs,unmask:ps}=qi,{isValidStatusCode:fs,isValidUTF8:ms}=os,vs=Buffer[Symbol.species];var Es=class extends is{constructor(t={}){super(),this._allowSynchronousEvents=void 0===t.allowSynchronousEvents||t.allowSynchronousEvents,this._binaryType=t.binaryType||ss[0],this._extensions=t.extensions||{},this._isServer=!!t.isServer,this._maxPayload=0|t.maxPayload,this._skipUTF8Validation=!!t.skipUTF8Validation,this[ds]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(t,e,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=t.length,this._buffers.push(t),this.startLoop(n)}consume(t){if(this._bufferedBytes-=t,t===this._buffers[0].length)return this._buffers.shift();if(t<this._buffers[0].length){const e=this._buffers[0];return this._buffers[0]=new vs(e.buffer,e.byteOffset+t,e.length-t),new vs(e.buffer,e.byteOffset,t)}const e=Buffer.allocUnsafe(t);do{const n=this._buffers[0],r=e.length-t;t>=n.length?e.set(this._buffers.shift(),r):(e.set(new Uint8Array(n.buffer,n.byteOffset,t),r),this._buffers[0]=new vs(n.buffer,n.byteOffset+t,n.length-t)),t-=n.length}while(t>0);return e}startLoop(t){this._loop=!0;do{switch(this._state){case 0:this.getInfo(t);break;case 1:this.getPayloadLength16(t);break;case 2:this.getPayloadLength64(t);break;case 3:this.getMask();break;case 4:this.getData(t);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||t()}getInfo(t){if(this._bufferedBytes<2)return void(this._loop=!1);const e=this.consume(2);if(48&e[0]){return void t(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const n=!(64&~e[0]);if(n&&!this._extensions[Qi.extensionName]){return void t(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._fin=!(128&~e[0]),this._opcode=15&e[0],this._payloadLength=127&e[1],0===this._opcode){if(n){return void t(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void t(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void t(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=n}else{if(!(this._opcode>7&&this._opcode<11)){return void t(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void t(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(n){return void t(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void t(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~e[1]),this._isServer){if(!this._masked){return void t(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void t(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(t)}getPayloadLength16(t){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(t))}getPayloadLength64(t){if(this._bufferedBytes<8)return void(this._loop=!1);const e=this.consume(8),n=e.readUInt32BE(0);if(n>Math.pow(2,21)-1){return void t(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}this._payloadLength=n*Math.pow(2,32)+e.readUInt32BE(4),this.haveLength(t)}haveLength(t){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){return void t(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(t){let e=as;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);e=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&ps(e,this._mask)}if(this._opcode>7)this.controlMessage(e,t);else{if(this._compressed)return this._state=5,void this.decompress(e,t);e.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(e)),this.dataMessage(t)}}decompress(t,e){this._extensions[Qi.extensionName].decompress(t,this._fin,(t,n)=>{if(t)return e(t);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void e(t)}this._fragments.push(n)}this.dataMessage(e),0===this._state&&this.startLoop(e)})}dataMessage(t){if(!this._fin)return void(this._state=0);const e=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?ls(n,e):"arraybuffer"===this._binaryType?hs(ls(n,e)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!0),this._state=0,this.startLoop(t)}))}else{const r=ls(n,e);if(!this._skipUTF8Validation&&!ms(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(t)}))}}controlMessage(t,e){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",t),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",t),this._state=0,this.startLoop(e)}));else{if(0===t.length)this._loop=!1,this.emit("conclude",1005,as),this.end();else{const n=t.readUInt16BE(0);if(!fs(n)){const t=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void e(t)}const r=new vs(t.buffer,t.byteOffset+2,t.length-2);if(!this._skipUTF8Validation&&!ms(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(t,e,n,r,u){this._loop=!1,this._errored=!0;const o=new t(n?`Invalid WebSocket frame: ${e}`:e);return Error.captureStackTrace(o,this.createError),o.code=u,o[cs]=r,o}};const{randomFillSync:As}=I,{EMPTY_BUFFER:bs,kWebSocket:ys,NOOP:gs}=mi,{isBlob:Cs,isValidStatusCode:Fs}=os,{mask:ws,toBuffer:Ds}=qi,Bs=Symbol("kByteLength"),Is=Buffer.alloc(4),Rs=8192;let js,Ss=Rs;class _s{constructor(t,e,n){this._extensions=e||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=t,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=gs,this[ys]=void 0}static frame(t,e){let n,r,u=!1,o=2,i=!1;e.mask&&(n=e.maskBuffer||Is,e.generateMask?e.generateMask(n):(Ss===Rs&&(void 0===js&&(js=Buffer.alloc(Rs)),As(js,0,Rs),Ss=0),n[0]=js[Ss++],n[1]=js[Ss++],n[2]=js[Ss++],n[3]=js[Ss++]),i=0===(n[0]|n[1]|n[2]|n[3]),o=6),"string"==typeof t?r=e.mask&&!i||void 0===e[Bs]?(t=Buffer.from(t)).length:e[Bs]:(r=t.length,u=e.mask&&e.readOnly&&!i);let s=r;r>=65536?(o+=8,s=127):r>125&&(o+=2,s=126);const a=Buffer.allocUnsafe(u?r+o:o);return a[0]=e.fin?128|e.opcode:e.opcode,e.rsv1&&(a[0]|=64),a[1]=s,126===s?a.writeUInt16BE(r,2):127===s&&(a[2]=a[3]=0,a.writeUIntBE(r,4,6)),e.mask?(a[1]|=128,a[o-4]=n[0],a[o-3]=n[1],a[o-2]=n[2],a[o-1]=n[3],i?[a,t]:u?(ws(t,n,a,o,r),[a]):(ws(t,n,t,0,r),[a,t])):[a,t]}close(t,e,n,r){let u;if(void 0===t)u=bs;else{if("number"!=typeof t||!Fs(t))throw new TypeError("First argument must be a valid error code number");if(void 0!==e&&e.length){const n=Buffer.byteLength(e);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");u=Buffer.allocUnsafe(2+n),u.writeUInt16BE(t,0),"string"==typeof e?u.write(e,2):u.set(e,2)}else u=Buffer.allocUnsafe(2),u.writeUInt16BE(t,0)}const o={[Bs]:u.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,u,!1,o,r]):this.sendFrame(_s.frame(u,o),r)}ping(t,e,n){let r,u;if("string"==typeof t?(r=Buffer.byteLength(t),u=!1):Cs(t)?(r=t.size,u=!1):(r=(t=Ds(t)).length,u=Ds.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[Bs]:r,fin:!0,generateMask:this._generateMask,mask:e,maskBuffer:this._maskBuffer,opcode:9,readOnly:u,rsv1:!1};Cs(t)?0!==this._state?this.enqueue([this.getBlobData,t,!1,o,n]):this.getBlobData(t,!1,o,n):0!==this._state?this.enqueue([this.dispatch,t,!1,o,n]):this.sendFrame(_s.frame(t,o),n)}pong(t,e,n){let r,u;if("string"==typeof t?(r=Buffer.byteLength(t),u=!1):Cs(t)?(r=t.size,u=!1):(r=(t=Ds(t)).length,u=Ds.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[Bs]:r,fin:!0,generateMask:this._generateMask,mask:e,maskBuffer:this._maskBuffer,opcode:10,readOnly:u,rsv1:!1};Cs(t)?0!==this._state?this.enqueue([this.getBlobData,t,!1,o,n]):this.getBlobData(t,!1,o,n):0!==this._state?this.enqueue([this.dispatch,t,!1,o,n]):this.sendFrame(_s.frame(t,o),n)}send(t,e,n){const r=this._extensions[Qi.extensionName];let u,o,i=e.binary?2:1,s=e.compress;"string"==typeof t?(u=Buffer.byteLength(t),o=!1):Cs(t)?(u=t.size,o=!1):(u=(t=Ds(t)).length,o=Ds.readOnly),this._firstFragment?(this._firstFragment=!1,s&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(s=u>=r._threshold),this._compress=s):(s=!1,i=0),e.fin&&(this._firstFragment=!0);const a={[Bs]:u,fin:e.fin,generateMask:this._generateMask,mask:e.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:o,rsv1:s};Cs(t)?0!==this._state?this.enqueue([this.getBlobData,t,this._compress,a,n]):this.getBlobData(t,this._compress,a,n):0!==this._state?this.enqueue([this.dispatch,t,this._compress,a,n]):this.dispatch(t,this._compress,a,n)}getBlobData(t,e,n,r){this._bufferedBytes+=n[Bs],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){const t=new Error("The socket was closed while the blob was being read");return void process.nextTick(Ps,this,t,r)}this._bufferedBytes-=n[Bs];const u=Ds(t);e?this.dispatch(u,e,n,r):(this._state=0,this.sendFrame(_s.frame(u,n),r),this.dequeue())}).catch(t=>{process.nextTick(Os,this,t,r)})}dispatch(t,e,n,r){if(!e)return void this.sendFrame(_s.frame(t,n),r);const u=this._extensions[Qi.extensionName];this._bufferedBytes+=n[Bs],this._state=1,u.compress(t,n.fin,(t,e)=>{if(this._socket.destroyed){return void Ps(this,new Error("The socket was closed while data was being compressed"),r)}this._bufferedBytes-=n[Bs],this._state=0,n.readOnly=!1,this.sendFrame(_s.frame(e,n),r),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){const t=this._queue.shift();this._bufferedBytes-=t[3][Bs],Reflect.apply(t[0],this,t.slice(1))}}enqueue(t){this._bufferedBytes+=t[3][Bs],this._queue.push(t)}sendFrame(t,e){2===t.length?(this._socket.cork(),this._socket.write(t[0]),this._socket.write(t[1],e),this._socket.uncork()):this._socket.write(t[0],e)}}var Us=_s;function Ps(t,e,n){"function"==typeof n&&n(e);for(let n=0;n<t._queue.length;n++){const r=t._queue[n],u=r[r.length-1];"function"==typeof u&&u(e)}}function Os(t,e,n){Ps(t,e,n),t.onerror(e)}const{kForOnEventAttribute:ks,kListener:xs}=mi,Ts=Symbol("kCode"),Ls=Symbol("kData"),Ns=Symbol("kError"),qs=Symbol("kMessage"),Ms=Symbol("kReason"),Gs=Symbol("kTarget"),zs=Symbol("kType"),$s=Symbol("kWasClean");class Ws{constructor(t){this[Gs]=null,this[zs]=t}get target(){return this[Gs]}get type(){return this[zs]}}Object.defineProperty(Ws.prototype,"target",{enumerable:!0}),Object.defineProperty(Ws.prototype,"type",{enumerable:!0});class Js extends Ws{constructor(t,e={}){super(t),this[Ts]=void 0===e.code?0:e.code,this[Ms]=void 0===e.reason?"":e.reason,this[$s]=void 0!==e.wasClean&&e.wasClean}get code(){return this[Ts]}get reason(){return this[Ms]}get wasClean(){return this[$s]}}Object.defineProperty(Js.prototype,"code",{enumerable:!0}),Object.defineProperty(Js.prototype,"reason",{enumerable:!0}),Object.defineProperty(Js.prototype,"wasClean",{enumerable:!0});class Vs extends Ws{constructor(t,e={}){super(t),this[Ns]=void 0===e.error?null:e.error,this[qs]=void 0===e.message?"":e.message}get error(){return this[Ns]}get message(){return this[qs]}}Object.defineProperty(Vs.prototype,"error",{enumerable:!0}),Object.defineProperty(Vs.prototype,"message",{enumerable:!0});class Hs extends Ws{constructor(t,e={}){super(t),this[Ls]=void 0===e.data?null:e.data}get data(){return this[Ls]}}Object.defineProperty(Hs.prototype,"data",{enumerable:!0});const Zs={addEventListener(t,e,n={}){for(const r of this.listeners(t))if(!n[ks]&&r[xs]===e&&!r[ks])return;let r;if("message"===t)r=function(t,n){const r=new Hs("message",{data:n?t:t.toString()});r[Gs]=this,Ks(e,this,r)};else if("close"===t)r=function(t,n){const r=new Js("close",{code:t,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[Gs]=this,Ks(e,this,r)};else if("error"===t)r=function(t){const n=new Vs("error",{error:t,message:t.message});n[Gs]=this,Ks(e,this,n)};else{if("open"!==t)return;r=function(){const t=new Ws("open");t[Gs]=this,Ks(e,this,t)}}r[ks]=!!n[ks],r[xs]=e,n.once?this.once(t,r):this.on(t,r)},removeEventListener(t,e){for(const n of this.listeners(t))if(n[xs]===e&&!n[ks]){this.removeListener(t,n);break}}};var Ys={CloseEvent:Js,ErrorEvent:Vs,Event:Ws,EventTarget:Zs,MessageEvent:Hs};function Ks(t,e,n){"object"==typeof t&&t.handleEvent?t.handleEvent.call(t,n):t.call(e,n)}const{tokenChars:Xs}=os;function Qs(t,e,n){void 0===t[e]?t[e]=[n]:t[e].push(n)}var ta={format:function(t){return Object.keys(t).map(e=>{let n=t[e];return Array.isArray(n)||(n=[n]),n.map(t=>[e].concat(Object.keys(t).map(e=>{let n=t[e];return Array.isArray(n)||(n=[n]),n.map(t=>!0===t?e:`${e}=${t}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(t){const e=Object.create(null);let n,r,u=Object.create(null),o=!1,i=!1,s=!1,a=-1,c=-1,d=-1,l=0;for(;l<t.length;l++)if(c=t.charCodeAt(l),void 0===n)if(-1===d&&1===Xs[c])-1===a&&(a=l);else if(0===l||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);const r=t.slice(a,d);44===c?(Qs(e,r,u),u=Object.create(null)):n=r,a=d=-1}}else-1===d&&-1!==a&&(d=l);else if(void 0===r)if(-1===d&&1===Xs[c])-1===a&&(a=l);else if(32===c||9===c)-1===d&&-1!==a&&(d=l);else if(59===c||44===c){if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l),Qs(u,t.slice(a,d),!0),44===c&&(Qs(e,n,u),u=Object.create(null),n=void 0),a=d=-1}else{if(61!==c||-1===a||-1!==d)throw new SyntaxError(`Unexpected character at index ${l}`);r=t.slice(a,l),a=d=-1}else if(i){if(1!==Xs[c])throw new SyntaxError(`Unexpected character at index ${l}`);-1===a?a=l:o||(o=!0),i=!1}else if(s)if(1===Xs[c])-1===a&&(a=l);else if(34===c&&-1!==a)s=!1,d=l;else{if(92!==c)throw new SyntaxError(`Unexpected character at index ${l}`);i=!0}else if(34===c&&61===t.charCodeAt(l-1))s=!0;else if(-1===d&&1===Xs[c])-1===a&&(a=l);else if(-1===a||32!==c&&9!==c){if(59!==c&&44!==c)throw new SyntaxError(`Unexpected character at index ${l}`);{if(-1===a)throw new SyntaxError(`Unexpected character at index ${l}`);-1===d&&(d=l);let i=t.slice(a,d);o&&(i=i.replace(/\\/g,""),o=!1),Qs(u,r,i),44===c&&(Qs(e,n,u),u=Object.create(null),n=void 0),r=void 0,a=d=-1}}else-1===d&&(d=l);if(-1===a||s||32===c||9===c)throw new SyntaxError("Unexpected end of input");-1===d&&(d=l);const h=t.slice(a,d);return void 0===n?Qs(e,h,u):(void 0===r?Qs(u,h,!0):Qs(u,r,o?h.replace(/\\/g,""):h),Qs(e,n,u)),e}};const{randomBytes:ea,createHash:na}=I,{URL:ra}=a,{isBlob:ua}=os,{BINARY_TYPES:oa,EMPTY_BUFFER:ia,GUID:sa,kForOnEventAttribute:aa,kListener:ca,kStatusCode:da,kWebSocket:la,NOOP:ha}=mi,{EventTarget:{addEventListener:pa,removeEventListener:fa}}=Ys,{format:ma,parse:va}=ta,{toBuffer:Ea}=qi,Aa=Symbol("kAborted"),ba=[8,13],ya=["CONNECTING","OPEN","CLOSING","CLOSED"],ga=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class Ca extends t{constructor(t,e,n){super(),this._binaryType=oa[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=ia,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=Ca.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==t?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===e?e=[]:Array.isArray(e)||("object"==typeof e&&null!==e?(n=e,e=[]):e=[e]),wa(this,t,e,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(t){oa.includes(t)&&(this._binaryType=t,this._receiver&&(this._receiver._binaryType=t))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,e,n){const r=new Es({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),u=new Us(t,this._extensions,n.generateMask);this._receiver=r,this._sender=u,this._socket=t,r[la]=this,u[la]=this,t[la]=this,r.on("conclude",Sa),r.on("drain",_a),r.on("error",Ua),r.on("message",Oa),r.on("ping",ka),r.on("pong",xa),u.onerror=La,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),e.length>0&&t.unshift(e),t.on("close",qa),t.on("data",Ma),t.on("end",Ga),t.on("error",za),this._readyState=Ca.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=Ca.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[Qi.extensionName]&&this._extensions[Qi.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=Ca.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(t,e){if(this.readyState!==Ca.CLOSED){if(this.readyState===Ca.CONNECTING){const t="WebSocket was closed before the connection was established";return void Ra(this,this._req,t)}this.readyState!==Ca.CLOSING?(this._readyState=Ca.CLOSING,this._sender.close(t,e,!this._isServer,t=>{t||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),Na(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==Ca.CONNECTING&&this.readyState!==Ca.CLOSED&&(this._paused=!0,this._socket.pause())}ping(t,e,n){if(this.readyState===Ca.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof t?(n=t,t=e=void 0):"function"==typeof e&&(n=e,e=void 0),"number"==typeof t&&(t=t.toString()),this.readyState===Ca.OPEN?(void 0===e&&(e=!this._isServer),this._sender.ping(t||ia,e,n)):ja(this,t,n)}pong(t,e,n){if(this.readyState===Ca.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof t?(n=t,t=e=void 0):"function"==typeof e&&(n=e,e=void 0),"number"==typeof t&&(t=t.toString()),this.readyState===Ca.OPEN?(void 0===e&&(e=!this._isServer),this._sender.pong(t||ia,e,n)):ja(this,t,n)}resume(){this.readyState!==Ca.CONNECTING&&this.readyState!==Ca.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,e,n){if(this.readyState===Ca.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof e&&(n=e,e={}),"number"==typeof t&&(t=t.toString()),this.readyState!==Ca.OPEN)return void ja(this,t,n);const r={binary:"string"!=typeof t,mask:!this._isServer,compress:!0,fin:!0,...e};this._extensions[Qi.extensionName]||(r.compress=!1),this._sender.send(t||ia,r,n)}terminate(){if(this.readyState!==Ca.CLOSED){if(this.readyState===Ca.CONNECTING){const t="WebSocket was closed before the connection was established";return void Ra(this,this._req,t)}this._socket&&(this._readyState=Ca.CLOSING,this._socket.destroy())}}}Object.defineProperty(Ca,"CONNECTING",{enumerable:!0,value:ya.indexOf("CONNECTING")}),Object.defineProperty(Ca.prototype,"CONNECTING",{enumerable:!0,value:ya.indexOf("CONNECTING")}),Object.defineProperty(Ca,"OPEN",{enumerable:!0,value:ya.indexOf("OPEN")}),Object.defineProperty(Ca.prototype,"OPEN",{enumerable:!0,value:ya.indexOf("OPEN")}),Object.defineProperty(Ca,"CLOSING",{enumerable:!0,value:ya.indexOf("CLOSING")}),Object.defineProperty(Ca.prototype,"CLOSING",{enumerable:!0,value:ya.indexOf("CLOSING")}),Object.defineProperty(Ca,"CLOSED",{enumerable:!0,value:ya.indexOf("CLOSED")}),Object.defineProperty(Ca.prototype,"CLOSED",{enumerable:!0,value:ya.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(t=>{Object.defineProperty(Ca.prototype,t,{enumerable:!0})}),["open","error","close","message"].forEach(t=>{Object.defineProperty(Ca.prototype,`on${t}`,{enumerable:!0,get(){for(const e of this.listeners(t))if(e[aa])return e[ca];return null},set(e){for(const e of this.listeners(t))if(e[aa]){this.removeListener(t,e);break}"function"==typeof e&&this.addEventListener(t,e,{[aa]:!0})}})}),Ca.prototype.addEventListener=pa,Ca.prototype.removeEventListener=fa;var Fa=Ca;function wa(t,e,n,r){const u={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:ba[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=u.autoPong,!ba.includes(u.protocolVersion))throw new RangeError(`Unsupported protocol version: ${u.protocolVersion} (supported versions: ${ba.join(", ")})`);let o;if(e instanceof ra)o=e;else try{o=new ra(e)}catch(t){throw new SyntaxError(`Invalid URL: ${e}`)}"http:"===o.protocol?o.protocol="ws:":"https:"===o.protocol&&(o.protocol="wss:"),t._url=o.href;const i="wss:"===o.protocol,a="ws+unix:"===o.protocol;let c;if("ws:"===o.protocol||i||a?a&&!o.pathname?c="The URL's pathname is empty":o.hash&&(c="The URL contains a fragment identifier"):c='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',c){const e=new SyntaxError(c);if(0===t._redirects)throw e;return void Da(t,e)}const l=i?443:80,h=ea(16).toString("base64"),p=i?d.request:s.request,f=new Set;let m,v;if(u.createConnection=u.createConnection||(i?Ia:Ba),u.defaultPort=u.defaultPort||l,u.port=o.port||l,u.host=o.hostname.startsWith("[")?o.hostname.slice(1,-1):o.hostname,u.headers={...u.headers,"Sec-WebSocket-Version":u.protocolVersion,"Sec-WebSocket-Key":h,Connection:"Upgrade",Upgrade:"websocket"},u.path=o.pathname+o.search,u.timeout=u.handshakeTimeout,u.perMessageDeflate&&(m=new Qi(!0!==u.perMessageDeflate?u.perMessageDeflate:{},!1,u.maxPayload),u.headers["Sec-WebSocket-Extensions"]=ma({[Qi.extensionName]:m.offer()})),n.length){for(const t of n){if("string"!=typeof t||!ga.test(t)||f.has(t))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(t)}u.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(u.origin&&(u.protocolVersion<13?u.headers["Sec-WebSocket-Origin"]=u.origin:u.headers.Origin=u.origin),(o.username||o.password)&&(u.auth=`${o.username}:${o.password}`),a){const t=u.path.split(":");u.socketPath=t[0],u.path=t[1]}if(u.followRedirects){if(0===t._redirects){t._originalIpc=a,t._originalSecure=i,t._originalHostOrSocketPath=a?u.socketPath:o.host;const e=r&&r.headers;if(r={...r,headers:{}},e)for(const[t,n]of Object.entries(e))r.headers[t.toLowerCase()]=n}else if(0===t.listenerCount("redirect")){const e=a?!!t._originalIpc&&u.socketPath===t._originalHostOrSocketPath:!t._originalIpc&&o.host===t._originalHostOrSocketPath;(!e||t._originalSecure&&!i)&&(delete u.headers.authorization,delete u.headers.cookie,e||delete u.headers.host,u.auth=void 0)}u.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(u.auth).toString("base64")),v=t._req=p(u),t._redirects&&t.emit("redirect",t.url,v)}else v=t._req=p(u);u.timeout&&v.on("timeout",()=>{Ra(t,v,"Opening handshake has timed out")}),v.on("error",e=>{null===v||v[Aa]||(v=t._req=null,Da(t,e))}),v.on("response",o=>{const i=o.headers.location,s=o.statusCode;if(i&&u.followRedirects&&s>=300&&s<400){if(++t._redirects>u.maxRedirects)return void Ra(t,v,"Maximum redirects exceeded");let o;v.abort();try{o=new ra(i,e)}catch(e){const n=new SyntaxError(`Invalid URL: ${i}`);return void Da(t,n)}wa(t,o,n,r)}else t.emit("unexpected-response",v,o)||Ra(t,v,`Unexpected server response: ${o.statusCode}`)}),v.on("upgrade",(e,n,r)=>{if(t.emit("upgrade",e),t.readyState!==Ca.CONNECTING)return;v=t._req=null;const o=e.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void Ra(t,n,"Invalid Upgrade header");const i=na("sha1").update(h+sa).digest("base64");if(e.headers["sec-websocket-accept"]!==i)return void Ra(t,n,"Invalid Sec-WebSocket-Accept header");const s=e.headers["sec-websocket-protocol"];let a;if(void 0!==s?f.size?f.has(s)||(a="Server sent an invalid subprotocol"):a="Server sent a subprotocol but none was requested":f.size&&(a="Server sent no subprotocol"),a)return void Ra(t,n,a);s&&(t._protocol=s);const c=e.headers["sec-websocket-extensions"];if(void 0!==c){if(!m){return void Ra(t,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let e;try{e=va(c)}catch(e){return void Ra(t,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(e);if(1!==r.length||r[0]!==Qi.extensionName){return void Ra(t,n,"Server indicated an extension that was not requested")}try{m.accept(e[Qi.extensionName])}catch(e){return void Ra(t,n,"Invalid Sec-WebSocket-Extensions header")}t._extensions[Qi.extensionName]=m}t.setSocket(n,r,{allowSynchronousEvents:u.allowSynchronousEvents,generateMask:u.generateMask,maxPayload:u.maxPayload,skipUTF8Validation:u.skipUTF8Validation})}),u.finishRequest?u.finishRequest(v,t):v.end()}function Da(t,e){t._readyState=Ca.CLOSING,t._errorEmitted=!0,t.emit("error",e),t.emitClose()}function Ba(t){return t.path=t.socketPath,m.connect(t)}function Ia(t){return t.path=void 0,t.servername||""===t.servername||(t.servername=m.isIP(t.host)?"":t.host),B.connect(t)}function Ra(t,e,n){t._readyState=Ca.CLOSING;const r=new Error(n);Error.captureStackTrace(r,Ra),e.setHeader?(e[Aa]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(Da,t,r)):(e.destroy(r),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function ja(t,e,n){if(e){const n=ua(e)?e.size:Ea(e).length;t._socket?t._sender._bufferedBytes+=n:t._bufferedAmount+=n}if(n){const e=new Error(`WebSocket is not open: readyState ${t.readyState} (${ya[t.readyState]})`);process.nextTick(n,e)}}function Sa(t,e){const n=this[la];n._closeFrameReceived=!0,n._closeMessage=e,n._closeCode=t,void 0!==n._socket[la]&&(n._socket.removeListener("data",Ma),process.nextTick(Ta,n._socket),1005===t?n.close():n.close(t,e))}function _a(){const t=this[la];t.isPaused||t._socket.resume()}function Ua(t){const e=this[la];void 0!==e._socket[la]&&(e._socket.removeListener("data",Ma),process.nextTick(Ta,e._socket),e.close(t[da])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t))}function Pa(){this[la].emitClose()}function Oa(t,e){this[la].emit("message",t,e)}function ka(t){const e=this[la];e._autoPong&&e.pong(t,!this._isServer,ha),e.emit("ping",t)}function xa(t){this[la].emit("pong",t)}function Ta(t){t.resume()}function La(t){const e=this[la];e.readyState!==Ca.CLOSED&&(e.readyState===Ca.OPEN&&(e._readyState=Ca.CLOSING,Na(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t)))}function Na(t){t._closeTimer=setTimeout(t._socket.destroy.bind(t._socket),3e4)}function qa(){const t=this[la];let e;this.removeListener("close",qa),this.removeListener("data",Ma),this.removeListener("end",Ga),t._readyState=Ca.CLOSING,this._readableState.endEmitted||t._closeFrameReceived||t._receiver._writableState.errorEmitted||null===(e=t._socket.read())||t._receiver.write(e),t._receiver.end(),this[la]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",Pa),t._receiver.on("finish",Pa))}function Ma(t){this[la]._receiver.write(t)||this.pause()}function Ga(){const t=this[la];t._readyState=Ca.CLOSING,t._receiver.end(),this.end()}function za(){const t=this[la];this.removeListener("error",za),this.on("error",ha),t&&(t._readyState=Ca.CLOSING,this.destroy())}const{Duplex:$a}=o;function Wa(t){t.emit("close")}function Ja(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Va(t){this.removeListener("error",Va),this.destroy(),0===this.listenerCount("error")&&this.emit("error",t)}var Ha=function(t,e){let n=!0;const r=new $a({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(e,n){const u=!n&&r._readableState.objectMode?e.toString():e;r.push(u)||t.pause()}),t.once("error",function(t){r.destroyed||(n=!1,r.destroy(t))}),t.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(e,u){if(t.readyState===t.CLOSED)return u(e),void process.nextTick(Wa,r);let o=!1;t.once("error",function(t){o=!0,u(t)}),t.once("close",function(){o||u(e),process.nextTick(Wa,r)}),n&&t.terminate()},r._final=function(e){t.readyState!==t.CONNECTING?null!==t._socket&&(t._socket._writableState.finished?(e(),r._readableState.endEmitted&&r.destroy()):(t._socket.once("finish",function(){e()}),t.close())):t.once("open",function(){r._final(e)})},r._read=function(){t.isPaused&&t.resume()},r._write=function(e,n,u){t.readyState!==t.CONNECTING?t.send(e,u):t.once("open",function(){r._write(e,n,u)})},r.on("end",Ja),r.on("error",Va),r},Za=function(t){function e(e,n,r,u,o,i){void 0===i&&(i=5e3);var s=t.call(this)||this;s.endpoint=e,s.headers=n,s.rewriteHostHeader=r,s.bindToAssign=u,s.agent=o,s.closeTimeout=i,s.protocol="TCP",s.openConnections=new Set,s.tcpServer=f.createServer(s.handleConnection.bind(s));var a=null==r?void 0:r.altHostnames.map(function(t){return(e=Ge(e=t))&&sr.test(e)?e.replace(ir,"\\$&"):e;var e}).join("|");return s.hostRegex=new RegExp("Host: (?:".concat(a,")(:.*$|$)"),"im"),s}return $(e,t),Object.defineProperty(e.prototype,"bindTo",{get:function(){var t;return null!==(t=this.boundTo)&&void 0!==t?t:this.bindToAssign},enumerable:!1,configurable:!0}),e.prototype.open=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){return[2,new Promise(function(e){if(t.bindToAssign){var n=t.bindToAssign,r=n.port,u=n.address;t.tcpServer.listen(r,u,function(){t.emit("tunnel-open",{address:u,port:r}),e({address:u,port:r})})}else t.tcpServer.listen(0,function(){var n=t.tcpServer.address(),r=n.address,u=n.port,o="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:o,port:u},t.emit("tunnel-open",t.boundTo),e(t.boundTo)})})]})})},e.prototype.close=function(){return J(this,void 0,void 0,function(){var t,e=this;return V(this,function(n){switch(n.label){case 0:return t=!1,[4,Promise.race([new Promise(function(n){e.tcpServer.close(function(){t=!0,e.emit("tunnel-close"),n()})}),new Promise(function(n){new Promise(function(t){return setTimeout(t,e.closeTimeout)}).then(function(){t||(e.openConnections.forEach(function(t){t.destroy(),e.openConnections.delete(t)}),n())})})])];case 1:return n.sent(),[2]}})})},e.prototype.handleConnection=function(t){var e=this;this.openConnections.add(t);var n=this.endpoint.replace("https:","wss:"),r=new Fa(n,{headers:this.headers,agent:this.agent}),u=Ha(r),o=this.getHeaderTransform();this.rewriteHostHeader&&o?hi(t,o,u):hi(t,u),hi(u,t),r.on("close",function(t,n,r){e.emit("connection-close",t,n,r)}),u.on("error",function(t){e.emit("connection-error",t)}),t.on("error",function(t){e.emit("connection-error",t)}),this.emit("connection-accept")},e.prototype.getHeaderTransform=function(){var t=function(t,e,n){var r=Buffer.from(n),u=Buffer.from(t);return e.forEach(function(t){u=function(t,e,n){var r=Buffer.from(e),u=t.indexOf(r);if(-1===u)return t;var o=t.subarray(0,u),i=t.subarray(u+r.length);return Buffer.concat([o,n,i])}(u,t,r)}),u};if(this.rewriteHostHeader){var e=this.rewriteHostHeader,n=e.targetHostname,r=e.altHostnames,u=this.hostRegex;return new i({transform:function(e,o,i){var s=e.toString();if(s.split("\n",1)[0].includes("HTTP")&&u.test(s)){var a=r.map(function(t){return"Host: ".concat(t)});i(null,t(e,a,"Host: ".concat(n)))}else i(null,e)}})}},e}(e),Ya=function(t){function e(e,n,r,u){var o=t.call(this)||this;return o.endpoint=e,o.headers=n,o.bindToAssign=r,o.agent=u,o.protocol="UDP",o.udpSocket=S.createSocket("udp4"),o.handleConnection(),o}return $(e,t),Object.defineProperty(e.prototype,"bindTo",{get:function(){var t;return null!==(t=this.boundTo)&&void 0!==t?t:this.bindToAssign},enumerable:!1,configurable:!0}),e.prototype.open=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){return[2,new Promise(function(e){if(t.bindToAssign){var n=t.bindToAssign,r=n.port,u=n.address;t.udpSocket.bind(r,u,function(){t.emit("tunnel-open",{address:u,port:r}),e({address:u,port:r})})}else t.udpSocket.bind(0,function(){var n=t.udpSocket.address(),r=n.address,u=n.port,o="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:o,port:u},t.emit("tunnel-open",t.boundTo),e(t.boundTo)})})]})})},e.prototype.close=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e){t.udpSocket.close(function(){t.emit("tunnel-close"),e()})})];case 1:return e.sent(),[2]}})})},e.prototype.handleConnection=function(){var t,e=this,n=this.endpoint.replace("https:","wss:"),r=new Fa(n,{headers:this.headers,agent:this.agent}),u=Ha(r);this.udpSocket.on("message",function(e,n){t=n,u.write(e)}),u.on("data",function(n){t&&e.udpSocket.send(n,t.port,t.address,function(t){t&&e.emit("connection-error",t)})}),this.udpSocket.on("error",function(t){e.emit("connection-error",t)}),u.on("error",function(t){e.emit("connection-error",t)}),r.on("connection-close",function(t,n,r){e.emit("connection-close",t,n,r)}),r.on("connection-error",function(t){e.emit("connection-error",t)}),this.emit("connection-accept")},e}(e),Ka=function(t){function e(e,r,u,o){var i=t.call(this)||this;return i.contextProvider=e,i.listServices=r,i.listAddons=u,i.agent=o,i.connections=[],i.hostsFileMutex=new Zo,i.ipAllocationMutex=new Zo,i.stopForwarding=function(t){return J(i,void 0,void 0,function(){var e,n,r,u,o,i,s;return V(this,function(a){switch(a.label){case 0:return[4,t.tunnel.close()];case 1:return a.sent(),e=t.forwardingContext,n=e.projectId,r=e.type,u=e.id,o=e.hostnames,i=e.ipOnly,o.length>0&&!i?[4,this.unregisterHostnames(null===(s=t.tunnel.bindTo)||void 0===s?void 0:s.address,o)]:[3,3];case 2:a.sent(),a.label=3;case 3:return this.connections.splice(this.connections.findIndex(function(t){var e=t.forwardingContext,o=e.type,i=e.id,s=e.projectId;return i===u&&s===n&&o===r}),1),[2]}})})},i.canExecuteWithHostnames=function(){return"win32"!==process.platform?process.getuid&&0!==process.getuid()?{error:!0,message:"You are not running this command with sufficient privileges (uid=".concat(null===(t=null===process||void 0===process?void 0:process.getuid)||void 0===t?void 0:t.call(process),"). Try running with 'sudo -E'.")}:{error:!1,type:"unix-admin"}:function(){try{return n("fsutil dirty query %systemdrive%"),!0}catch(t){if("ENOENT"===t.code)try{return n("fltmc"),!0}catch(t){return!1}return!1}}()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."};var t},i.assertStartedWithNodejs=function(){if(!Fo)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new Ro(e,o),i}return $(e,t),e.prototype.withProjectForwarding=function(t,e,n){return void 0===n&&(n=!0),J(this,void 0,void 0,function(){var r;return V(this,function(u){switch(u.label){case 0:return[4,this.forwardProject(t,n)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,,4,6]),[4,e(r)];case 3:return[2,u.sent()];case 4:return[4,this.stopProjectForwarding(t)];case 5:return u.sent(),[7];case 6:return[2]}})})},e.prototype.forwardProject=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u,o,i,s=this;return V(this,function(a){switch(a.label){case 0:return this.assertStartedWithNodejs(),n=t.projectId,[4,this.listServices.all({parameters:{projectId:n}})];case 1:return r=a.sent(),[4,this.listAddons.all({parameters:{projectId:n}})];case 2:return u=a.sent(),[4,Promise.all(r.data.services.map(function(t){return J(s,void 0,void 0,function(){return V(this,function(r){return[2,this.forwardService({projectId:n,serviceId:t.id},e)]})})}))];case 3:return o=a.sent(),[4,Promise.all(u.data.addons.map(function(t){return J(s,void 0,void 0,function(){return V(this,function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:t.id},e)];case 1:return[2,r.sent()]}})})}))];case 4:return i=a.sent(),[2,{services:o,addons:i}]}})})},e.prototype.withServiceForwarding=function(t,e,n){return void 0===n&&(n=!0),J(this,void 0,void 0,function(){var r;return V(this,function(u){switch(u.label){case 0:return[4,this.forwardService(t,n)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,,4,6]),[4,e(r)];case 3:return[2,u.sent()];case 4:return[4,this.stopServiceForwarding(t)];case 5:return u.sent(),[7];case 6:return[2]}})})},e.prototype.forwardService=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u,o,i,s,a,c=this;return V(this,function(d){switch(d.label){case 0:return this.assertStartedWithNodejs(),n=t.projectId,r=t.serviceId,[4,this.proxyApiClient.getServiceDetails(n,r)];case 1:return u=d.sent(),o=u.namespace,i=u.targetDomain,s=u.instances,a=u.ports,0===s.length?[2,[]]:[4,Bo(a,function(t){var u,a="https://".concat(i,"/tunnel/projects/").concat(n,"/services/").concat(r,"/instance/").concat(s[0].podName,"/port/").concat(t.internalPort),d="".concat(r,".").concat(o,".svc.cluster.local"),l=["".concat(r)];t.name&&l.push("".concat(t.name,".").concat(r)),"HTTP"===t.protocol&&(u={altHostnames:l,targetHostname:d});var h=H([d],l,!0);return c.forwardPort(a,t,h,"service",r,n,e,u)})];case 2:return[2,d.sent()]}})})},e.prototype.withAddonForwarding=function(t,e,n){return void 0===n&&(n=!0),J(this,void 0,void 0,function(){var r;return V(this,function(u){switch(u.label){case 0:return[4,this.forwardAddon(t,n)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,,4,6]),[4,e(r)];case 3:return[2,u.sent()];case 4:return[4,this.stopAddonForwarding(t)];case 5:return u.sent(),[7];case 6:return[2]}})})},e.prototype.forwardAddon=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u,o,i=this;return V(this,function(s){switch(s.label){case 0:return this.assertStartedWithNodejs(),n=t.addonId,r=t.projectId,[4,this.proxyApiClient.getAddonDetails(r,n)];case 1:return u=s.sent(),o=u.instances.map(function(t){var e=t.podName,n=t.internalHostname;return t.ports.map(function(t){return{podName:e,internalHostname:n,port:t}})}),[4,Bo((a=o,null!=a&&a.length?Ze(a,dr):[]),function(t){var o=t.podName,s=t.internalHostname,a=t.port;return J(i,void 0,void 0,function(){var t;return V(this,function(i){return t="https://".concat(u.targetDomain,"/tunnel/projects/").concat(r,"/addons/").concat(n,"/instance/").concat(o,"/port/").concat(a.internalPort),[2,this.forwardPort(t,a,[s],"addon",n,r,e)]})})})];case 2:return[2,s.sent()]}var a})})},e.prototype.allocateIpAddress=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){switch(i.label){case 0:return e="127.24.1.1",n="127.24.255.255",r=null!==(o=this.nextIpAddress)&&void 0!==o?o:e,[4,jo(t,r,n)];case 1:return u=i.sent(),this.nextIpAddress=Po(Uo(u)+1),Uo(this.nextIpAddress)>Uo(n)&&(this.nextIpAddress=e),[2,u]}})})})]})})},e.prototype.forwardPort=function(t,e,n,r,u,o,i,s){var a;return void 0===i&&(i=!0),J(this,void 0,void 0,function(){var c,d,l,h,p,f,m=this;return V(this,function(v){switch(v.label){case 0:if(c={Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken())},!i&&(d=this.canExecuteWithHostnames()).error)throw new Error("".concat(d.message," Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))"));return[4,this.determineSocketAddress(o,u,n,r,e,i)];case 1:return l=v.sent(),h="UDP"===e.protocol?new Ya(t,c,l,this.agent):new Za(t,c,s,l,this.agent),i?[3,3]:[4,this.registerHostnames(null===(a=h.bindTo)||void 0===a?void 0:a.address,n)];case 2:v.sent(),v.label=3;case 3:return h.on("connection-accept",function(){return m.emit("connection-accept",h)}),h.on("connection-close",function(){return J(m,void 0,void 0,function(){return V(this,function(t){return[2,this.emit("connection-close",h)]})})}),[4,h.open()];case 4:return p=v.sent(),f={projectId:o,id:u,type:r,hostnames:n,ipOnly:i,port:p.port,address:p.address,protocol:e.protocol,portName:e.name},this.emit("tunnel-open",h,f),h.on("connection-error",function(t){return m.emit("connection-error",h,f,t)}),h.on("tunnel-close",function(){return m.emit("tunnel-close",h,f)}),this.connections.push({tunnel:h,forwardingContext:f}),[2,{data:f}]}})})},e.prototype.determineSocketAddress=function(t,e,n,r,u,o){return J(this,void 0,void 0,function(){var i,s,a;return V(this,function(c){switch(c.label){case 0:return o&&"darwin"===p.platform()?[2,void 0]:(i=this.connections.filter(function(n){return n.forwardingContext.projectId===t&&n.forwardingContext.id===e&&n.forwardingContext.type===r}),(s=null==i?void 0:i.find(function(t){return n.find(function(e){return t.forwardingContext.hostnames.includes(e)})}))?[2,{address:null==s?void 0:s.forwardingContext.address,port:u.internalPort}]:(a={},[4,this.allocateIpAddress(u.internalPort)]));case 1:return[2,(a.address=c.sent(),a.port=u.internalPort,a)]}})})},e.prototype.registerHostnames=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,e),n.add.apply(n,H([t],e,!1))})];case 1:return n.sent(),[2]}})})},e.prototype.unregisterHostnames=function(t,e){return J(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,H([t],e,!1))})];case 1:return n.sent(),[2]}})})},e.prototype.modifyHostsFile=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return J(e,void 0,void 0,function(){var e,n=this;return V(this,function(r){switch(r.label){case 0:return[4,Ho.load({header:"Northflank Proxy"})];case 1:return e=r.sent(),t(e),[4,e.backup({suffix:".backup-pre-northflank"})];case 2:r.sent(),r.label=3;case 3:return r.trys.push([3,5,,7]),[4,Xa(5)(function(){return J(n,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,e.write({writeMode:"atomic"})];case 1:return t.sent(),[2]}})})})];case 4:return r.sent(),[3,7];case 5:return r.sent(),[4,Xa(5)(function(){return J(n,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,e.write({writeMode:"standard"})];case 1:return t.sent(),[2]}})})})];case 6:return r.sent(),[3,7];case 7:return[2]}})})})];case 1:return n.sent(),[2]}})})},e.prototype.stopProjectForwarding=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(e){return e.forwardingContext.projectId===t.projectId}).map(function(t){return e.stopForwarding(t)}))];case 1:return n.sent(),[2]}})})},e.prototype.stopServiceForwarding=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(e){return"service"===e.forwardingContext.type&&e.forwardingContext.projectId===t.projectId&&e.forwardingContext.id===t.serviceId}).map(function(t){return e.stopForwarding(t)}))];case 1:return n.sent(),[2]}})})},e.prototype.stopAddonForwarding=function(t){return J(this,void 0,void 0,function(){var e=this;return V(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(e){return"addon"===e.forwardingContext.type&&e.forwardingContext.projectId===t.projectId&&e.forwardingContext.id===t.addonId}).map(function(t){return e.stopForwarding(t)}))];case 1:return n.sent(),[2]}})})},e.prototype.stop=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){switch(e.label){case 0:return[4,Promise.all(this.connections.map(function(e){return J(t,void 0,void 0,function(){return V(this,function(t){return[2,this.stopForwarding(e)]})})}))];case 1:return e.sent(),[2]}})})},e}(e),Xa=function(t,e){return void 0===e&&(e=50),function(n){var r=t,u=function(){return J(void 0,void 0,void 0,function(){var t;return V(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,4]),[4,n()];case 1:return[2,o.sent()];case 2:if(t=o.sent(),r<=0)throw t;return r-=1,[4,new Promise(function(t){return setTimeout(function(){return t()},e)})];case 3:return o.sent(),[2,u()];case 4:return[2]}})})};return u()}},Qa=function(t){function e(e,n,r,o,i,s,a){void 0===i&&(i=new u.PassThrough),void 0===s&&(s=new u.PassThrough),void 0===a&&(a=new u.PassThrough);var c=t.call(this)||this;return c.baseUrl=e,c.execConfig=n,c.token=r,c.agent=o,c.stdOut=i,c.stdErr=s,c.stdIn=a,c.waitForCommandResult=function(){return J(c,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:if(void 0===this.currentCommand)throw new Error("No command is running");return[4,this.currentCommand];case 1:return[2,t.sent()]}})})},c.sendInputToCurrentCommand=function(t){return J(c,void 0,void 0,function(){var e;return V(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running");return null===(e=this.duplex)||void 0===e||e.write(this.constructPayloadPacket(t)),[2]})})},c.resizeTerminal=function(t){return J(c,void 0,void 0,function(){var e;return V(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running, can't resize terminal");return null===(e=this.duplex)||void 0===e||e.write(JSON.stringify({type:"resize",data:{ttyRows:null==t?void 0:t.rows,ttyColumns:null==t?void 0:t.columns}})),[2]})})},c.constructPayloadPacket=function(t){return JSON.stringify({type:"payload",data:t.toString()})},c.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),c}return $(e,t),Object.defineProperty(e.prototype,"execEndpoint",{get:function(){var t=this.execConfig,e=t.entityId,n=t.entityType,r=t.projectId,u="".concat(this.baseUrl,"/v1/command-exec/projects/").concat(r,"/");return"".concat(u).concat(function(){switch(n){case"service":return"services/".concat(e);case"job":return"jobs/".concat(e);case"addon":return"addons/".concat(e);case"build":return"builds/".concat(e);default:throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}}())},enumerable:!1,configurable:!0}),e.prototype.start=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){if(void 0!==this.currentCommand)throw new Error("Command is already running");return this.currentCommand=new Promise(function(e,n){var r,u,o;void 0!==t.remote&&n(Error("Command is already running"));var i,s=t.execEndpoint.replace("https:","wss:").replace("http:","ws:");t.remote=new Fa(s,{agent:t.agent});try{t.duplex=Ha(t.remote)}catch(t){throw new Error("Failed to establish connection to command execution proxy: ".concat(t.message))}t.initialAuth(),t.stdIn.on("data",function(e){var n,r;(null===(n=t.duplex)||void 0===n?void 0:n.writable)&&(null===(r=t.duplex)||void 0===r||r.write(t.constructPayloadPacket(e)))}),t.stdIn.on("end",function(){var e,n;(null===(e=t.duplex)||void 0===e?void 0:e.writable)&&(null===(n=t.duplex)||void 0===n||n.write(t.stdInEndPacket))}),null===(r=t.duplex)||void 0===r||r.on("data",function(e){var n,r,u,o,s,c=JSON.parse(e.toString());switch(null==c?void 0:c.type){case"init":var d=c.data;"successful"!==d.auth?a("Command initialization failed: ".concat(null!==(n=null==d?void 0:d.message)&&void 0!==n?n:"Reason unknown")):t.emit("auth-success",d);break;case"completion":i=c.data,t.emit("command-result",i),null===(r=t.duplex)||void 0===r||r.end();break;case"stdOut":t.emit("std-out-data",c.data),t.stdOut.write(c.data,null===(u=t.execConfig)||void 0===u?void 0:u.encoding);break;case"stdErr":t.emit("std-err-data",c.data),t.stdErr.write(c.data,null===(o=t.execConfig)||void 0===o?void 0:o.encoding);break;case"error":a(null===(s=c.data)||void 0===s?void 0:s.message);break;default:var l="unable to parse message: ".concat(JSON.stringify(c));a(l)}}),null===(u=t.duplex)||void 0===u||u.on("end",function(){t.emit("command-completed"),t.reset(),e(i)}),null===(o=t.duplex)||void 0===o||o.on("error",function(n){t.emit("error",n),t.emit("command-completed"),t.reset(),e(i)});var a=function(e){t.emit("error",e),t.reset(),n(new Error(e))};t.emit("command-started")}),[2,this.currentCommand]})})},e.prototype.initialAuth=function(){var t,e=this.execConfig,n=e.command,r=e.containerName,u=e.instanceName,o=e.shell,i=e.user,s=this.execConfig,a=s.group,c=s.encoding,d=s.tty,l=s.ttyColumns,h=s.ttyRows,p={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:u,containerName:r,command:n,shell:o,user:i,group:a,encoding:c,tty:d,ttyColumns:l,ttyRows:h}}};null===(t=this.duplex)||void 0===t||t.write(JSON.stringify(p))},e.prototype.reset=function(){var t;this.remote=void 0,this.currentCommand=void 0,null===(t=this.duplex)||void 0===t||t.destroy(),this.duplex=void 0},e}(e),tc=function(){function t(t,e){this.contextProvider=t,this.agent=e,this.assertStartedWithNodejs=function(){if(!Fo)throw new Error("Command exec only possible when started with nodejs")}}return t.prototype.execServiceCommand=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){return n=t.serviceId,r=t.projectId,u=W({projectId:r,entityId:n,entityType:"service"},e),[2,this.execCommand(u)]})})},t.prototype.execServiceSession=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o;return V(this,function(i){switch(i.label){case 0:return r=t.serviceId,u=t.projectId,o=W({projectId:u,entityId:r,entityType:"service"},e),[4,this.shellSession(o,n)];case 1:return[2,i.sent()]}})})},t.prototype.execJobCommand=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){return n=t.jobId,r=t.projectId,u=W({projectId:r,entityId:n,entityType:"job"},e),[2,this.execCommand(u)]})})},t.prototype.execJobSession=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o;return V(this,function(i){switch(i.label){case 0:return r=t.jobId,u=t.projectId,o=W({projectId:u,entityId:r,entityType:"job"},e),[4,this.shellSession(o,n)];case 1:return[2,i.sent()]}})})},t.prototype.execAddonCommand=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){return n=t.addonId,r=t.projectId,u=W({projectId:r,entityId:n,entityType:"addon"},e),[2,this.execCommand(u)]})})},t.prototype.execAddonSession=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o;return V(this,function(i){switch(i.label){case 0:return r=t.addonId,u=t.projectId,o=W({projectId:u,entityId:r,entityType:"addon"},e),[4,this.shellSession(o,n)];case 1:return[2,i.sent()]}})})},t.prototype.execCommand=function(t){return J(this,void 0,void 0,function(){var e,n,r;return V(this,function(u){switch(u.label){case 0:return this.assertStartedWithNodejs(),e=this.getCommandRunner(W({shell:"none"},t)),n=new Io,r=new Io,e.stdOut.pipe(n),e.stdErr.pipe(r),e.on("error",function(t){throw new Error(t)}),[4,e.start()];case 1:return[2,{commandResult:u.sent(),stdOut:n.getContentsAsString(),stdErr:r.getContentsAsString()}]}})})},t.prototype.shellSession=function(t,e){return J(this,void 0,void 0,function(){var n,r;return V(this,function(u){switch(u.label){case 0:return this.assertStartedWithNodejs(),n=this.getCommandRunner(t),r=new Promise(function(t){n.on("auth-success",function(n){null==e||e(null==n?void 0:n.context),t()})}),n.start(),[4,r];case 1:return u.sent(),[2,n]}})})},t.prototype.getCommandRunner=function(t){var e=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new Qa(e,t,n,this.agent)},t}();const ec="object"==typeof process&&process?process:{stdout:null,stderr:null},nc=t=>!!t&&"object"==typeof t&&(t instanceof qc||t instanceof U||rc(t)||uc(t)),rc=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.pipe&&t.pipe!==U.Writable.prototype.pipe,uc=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.write&&"function"==typeof t.end,oc=Symbol("EOF"),ic=Symbol("maybeEmitEnd"),sc=Symbol("emittedEnd"),ac=Symbol("emittingEnd"),cc=Symbol("emittedError"),dc=Symbol("closed"),lc=Symbol("read"),hc=Symbol("flush"),pc=Symbol("flushChunk"),fc=Symbol("encoding"),mc=Symbol("decoder"),vc=Symbol("flowing"),Ec=Symbol("paused"),Ac=Symbol("resume"),bc=Symbol("buffer"),yc=Symbol("pipes"),gc=Symbol("bufferLength"),Cc=Symbol("bufferPush"),Fc=Symbol("bufferShift"),wc=Symbol("objectMode"),Dc=Symbol("destroyed"),Bc=Symbol("error"),Ic=Symbol("emitData"),Rc=Symbol("emitEnd"),jc=Symbol("emitEnd2"),Sc=Symbol("async"),_c=Symbol("abort"),Uc=Symbol("aborted"),Pc=Symbol("signal"),Oc=Symbol("dataListeners"),kc=Symbol("discarded"),xc=t=>Promise.resolve().then(t),Tc=t=>t();class Lc{src;dest;opts;ondrain;constructor(t,e,n){this.src=t,this.dest=e,this.opts=n,this.ondrain=()=>t[Ac](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class Nc extends Lc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,n){super(t,e,n),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class qc extends _{[vc]=!1;[Ec]=!1;[yc]=[];[bc]=[];[wc];[fc];[Sc];[mc];[oc]=!1;[sc]=!1;[ac]=!1;[dc]=!1;[cc]=null;[gc]=0;[Dc]=!1;[Pc];[Uc]=!1;[Oc]=0;[kc]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[wc]=!0,this[fc]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[fc]=e.encoding,this[wc]=!1):(this[wc]=!1,this[fc]=null),this[Sc]=!!e.async,this[mc]=this[fc]?new P(this[fc]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[bc]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[yc]});const{signal:n}=e;n&&(this[Pc]=n,n.aborted?this[_c]():n.addEventListener("abort",()=>this[_c]()))}get bufferLength(){return this[gc]}get encoding(){return this[fc]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[wc]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Sc]}set async(t){this[Sc]=this[Sc]||!!t}[_c](){this[Uc]=!0,this.emit("abort",this[Pc]?.reason),this.destroy(this[Pc]?.reason)}get aborted(){return this[Uc]}set aborted(t){}write(t,e,n){if(this[Uc])return!1;if(this[oc])throw new Error("write after end");if(this[Dc])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(n=e,e="utf8"),e||(e="utf8");const r=this[Sc]?xc:Tc;if(!this[wc]&&!Buffer.isBuffer(t))if(u=t,!Buffer.isBuffer(u)&&ArrayBuffer.isView(u))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var u;return this[wc]?(this[vc]&&0!==this[gc]&&this[hc](!0),this[vc]?this.emit("data",t):this[Cc](t),0!==this[gc]&&this.emit("readable"),n&&r(n),this[vc]):t.length?("string"!=typeof t||e===this[fc]&&!this[mc]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[fc]&&(t=this[mc].write(t)),this[vc]&&0!==this[gc]&&this[hc](!0),this[vc]?this.emit("data",t):this[Cc](t),0!==this[gc]&&this.emit("readable"),n&&r(n),this[vc]):(0!==this[gc]&&this.emit("readable"),n&&r(n),this[vc])}read(t){if(this[Dc])return null;if(this[kc]=!1,0===this[gc]||0===t||t&&t>this[gc])return this[ic](),null;this[wc]&&(t=null),this[bc].length>1&&!this[wc]&&(this[bc]=[this[fc]?this[bc].join(""):Buffer.concat(this[bc],this[gc])]);const e=this[lc](t||null,this[bc][0]);return this[ic](),e}[lc](t,e){if(this[wc])this[Fc]();else{const n=e;t===n.length||null===t?this[Fc]():"string"==typeof n?(this[bc][0]=n.slice(t),e=n.slice(0,t),this[gc]-=t):(this[bc][0]=n.subarray(t),e=n.subarray(0,t),this[gc]-=t)}return this.emit("data",e),this[bc].length||this[oc]||this.emit("drain"),e}end(t,e,n){return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e="utf8"),void 0!==t&&this.write(t,e),n&&this.once("end",n),this[oc]=!0,this.writable=!1,!this[vc]&&this[Ec]||this[ic](),this}[Ac](){this[Dc]||(this[Oc]||this[yc].length||(this[kc]=!0),this[Ec]=!1,this[vc]=!0,this.emit("resume"),this[bc].length?this[hc]():this[oc]?this[ic]():this.emit("drain"))}resume(){return this[Ac]()}pause(){this[vc]=!1,this[Ec]=!0,this[kc]=!1}get destroyed(){return this[Dc]}get flowing(){return this[vc]}get paused(){return this[Ec]}[Cc](t){this[wc]?this[gc]+=1:this[gc]+=t.length,this[bc].push(t)}[Fc](){return this[wc]?this[gc]-=1:this[gc]-=this[bc][0].length,this[bc].shift()}[hc](t=!1){do{}while(this[pc](this[Fc]())&&this[bc].length);t||this[bc].length||this[oc]||this.emit("drain")}[pc](t){return this.emit("data",t),this[vc]}pipe(t,e){if(this[Dc])return t;this[kc]=!1;const n=this[sc];return e=e||{},t===ec.stdout||t===ec.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,n?e.end&&t.end():(this[yc].push(e.proxyErrors?new Nc(this,t,e):new Lc(this,t,e)),this[Sc]?xc(()=>this[Ac]()):this[Ac]()),t}unpipe(t){const e=this[yc].find(e=>e.dest===t);e&&(1===this[yc].length?(this[vc]&&0===this[Oc]&&(this[vc]=!1),this[yc]=[]):this[yc].splice(this[yc].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const n=super.on(t,e);if("data"===t)this[kc]=!1,this[Oc]++,this[yc].length||this[vc]||this[Ac]();else if("readable"===t&&0!==this[gc])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[sc])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[cc]){const t=e;this[Sc]?xc(()=>t.call(this,this[cc])):t.call(this,this[cc])}return n}removeListener(t,e){return this.off(t,e)}off(t,e){const n=super.off(t,e);return"data"===t&&(this[Oc]=this.listeners("data").length,0!==this[Oc]||this[kc]||this[yc].length||(this[vc]=!1)),n}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[Oc]=0,this[kc]||this[yc].length||(this[vc]=!1)),e}get emittedEnd(){return this[sc]}[ic](){this[ac]||this[sc]||this[Dc]||0!==this[bc].length||!this[oc]||(this[ac]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[dc]&&this.emit("close"),this[ac]=!1)}emit(t,...e){const n=e[0];if("error"!==t&&"close"!==t&&t!==Dc&&this[Dc])return!1;if("data"===t)return!(!this[wc]&&!n)&&(this[Sc]?(xc(()=>this[Ic](n)),!0):this[Ic](n));if("end"===t)return this[Rc]();if("close"===t){if(this[dc]=!0,!this[sc]&&!this[Dc])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[cc]=n,super.emit(Bc,n);const t=!(this[Pc]&&!this.listeners("error").length)&&super.emit("error",n);return this[ic](),t}if("resume"===t){const t=super.emit("resume");return this[ic](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const r=super.emit(t,...e);return this[ic](),r}[Ic](t){for(const e of this[yc])!1===e.dest.write(t)&&this.pause();const e=!this[kc]&&super.emit("data",t);return this[ic](),e}[Rc](){return!this[sc]&&(this[sc]=!0,this.readable=!1,this[Sc]?(xc(()=>this[jc]()),!0):this[jc]())}[jc](){if(this[mc]){const t=this[mc].end();if(t){for(const e of this[yc])e.dest.write(t);this[kc]||super.emit("data",t)}}for(const t of this[yc])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[wc]||(t.dataLength=0);const e=this.promise();return this.on("data",e=>{t.push(e),this[wc]||(t.dataLength+=e.length)}),await e,t}async concat(){if(this[wc])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[fc]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,e)=>{this.on(Dc,()=>e(new Error("stream destroyed"))),this.on("error",t=>e(t)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[kc]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[oc])return e();let r,u;const o=t=>{this.off("data",i),this.off("end",s),this.off(Dc,a),e(),u(t)},i=t=>{this.off("error",o),this.off("end",s),this.off(Dc,a),this.pause(),r({value:t,done:!!this[oc]})},s=()=>{this.off("error",o),this.off("data",i),this.off(Dc,a),e(),r({done:!0,value:void 0})},a=()=>o(new Error("stream destroyed"));return new Promise((t,e)=>{u=e,r=t,this.once(Dc,a),this.once("error",o),this.once("end",s),this.once("data",i)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[kc]=!1;let t=!1;const e=()=>(this.pause(),this.off(Bc,e),this.off(Dc,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Bc,e),this.once(Dc,e),{next:()=>{if(t)return e();const n=this.read();return null===n?e():{done:!1,value:n}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[Dc])return t?this.emit("error",t):this.emit(Dc),this;this[Dc]=!0,this[kc]=!0,this[bc].length=0,this[gc]=0;return"function"!=typeof this.close||this[dc]||this.close(),t?this.emit("error",t):this.emit(Dc),this}static get isStream(){return nc}}const Mc=E.writev,Gc=Symbol("_autoClose"),zc=Symbol("_close"),$c=Symbol("_ended"),Wc=Symbol("_fd"),Jc=Symbol("_finished"),Vc=Symbol("_flags"),Hc=Symbol("_flush"),Zc=Symbol("_handleChunk"),Yc=Symbol("_makeBuf"),Kc=Symbol("_mode"),Xc=Symbol("_needDrain"),Qc=Symbol("_onerror"),td=Symbol("_onopen"),ed=Symbol("_onread"),nd=Symbol("_onwrite"),rd=Symbol("_open"),ud=Symbol("_path"),od=Symbol("_pos"),id=Symbol("_queue"),sd=Symbol("_read"),ad=Symbol("_readSize"),cd=Symbol("_reading"),dd=Symbol("_remain"),ld=Symbol("_size"),hd=Symbol("_write"),pd=Symbol("_writing"),fd=Symbol("_defaultFlag"),md=Symbol("_errored");class vd extends qc{[md]=!1;[Wc];[ud];[ad];[cd]=!1;[ld];[dd];[Gc];constructor(t,e){if(super(e=e||{}),this.readable=!0,this.writable=!1,"string"!=typeof t)throw new TypeError("path must be a string");this[md]=!1,this[Wc]="number"==typeof e.fd?e.fd:void 0,this[ud]=t,this[ad]=e.readSize||16777216,this[cd]=!1,this[ld]="number"==typeof e.size?e.size:1/0,this[dd]=this[ld],this[Gc]="boolean"!=typeof e.autoClose||e.autoClose,"number"==typeof this[Wc]?this[sd]():this[rd]()}get fd(){return this[Wc]}get path(){return this[ud]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[rd](){E.open(this[ud],"r",(t,e)=>this[td](t,e))}[td](t,e){t?this[Qc](t):(this[Wc]=e,this.emit("open",e),this[sd]())}[Yc](){return Buffer.allocUnsafe(Math.min(this[ad],this[dd]))}[sd](){if(!this[cd]){this[cd]=!0;const t=this[Yc]();if(0===t.length)return process.nextTick(()=>this[ed](null,0,t));E.read(this[Wc],t,0,t.length,null,(t,e,n)=>this[ed](t,e,n))}}[ed](t,e,n){this[cd]=!1,t?this[Qc](t):this[Zc](e,n)&&this[sd]()}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.close(t,t=>t?this.emit("error",t):this.emit("close"))}}[Qc](t){this[cd]=!0,this[zc](),this.emit("error",t)}[Zc](t,e){let n=!1;return this[dd]-=t,t>0&&(n=super.write(t<e.length?e.subarray(0,t):e)),(0===t||this[dd]<=0)&&(n=!1,this[zc](),super.end()),n}emit(t,...e){switch(t){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[Wc]&&this[sd](),!1;case"error":return!this[md]&&(this[md]=!0,super.emit(t,...e));default:return super.emit(t,...e)}}}class Ed extends vd{[rd](){let t=!0;try{this[td](null,E.openSync(this[ud],"r")),t=!1}finally{t&&this[zc]()}}[sd](){let t=!0;try{if(!this[cd]){for(this[cd]=!0;;){const t=this[Yc](),e=0===t.length?0:E.readSync(this[Wc],t,0,t.length,null);if(!this[Zc](e,t))break}this[cd]=!1}t=!1}finally{t&&this[zc]()}}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.closeSync(t),this.emit("close")}}}class Ad extends t{readable=!1;writable=!0;[md]=!1;[pd]=!1;[$c]=!1;[id]=[];[Xc]=!1;[ud];[Kc];[Gc];[Wc];[fd];[Vc];[Jc]=!1;[od];constructor(t,e){super(e=e||{}),this[ud]=t,this[Wc]="number"==typeof e.fd?e.fd:void 0,this[Kc]=void 0===e.mode?438:e.mode,this[od]="number"==typeof e.start?e.start:void 0,this[Gc]="boolean"!=typeof e.autoClose||e.autoClose;const n=void 0!==this[od]?"r+":"w";this[fd]=void 0===e.flags,this[Vc]=void 0===e.flags?n:e.flags,void 0===this[Wc]&&this[rd]()}emit(t,...e){if("error"===t){if(this[md])return!1;this[md]=!0}return super.emit(t,...e)}get fd(){return this[Wc]}get path(){return this[ud]}[Qc](t){this[zc](),this[pd]=!0,this.emit("error",t)}[rd](){E.open(this[ud],this[Vc],this[Kc],(t,e)=>this[td](t,e))}[td](t,e){this[fd]&&"r+"===this[Vc]&&t&&"ENOENT"===t.code?(this[Vc]="w",this[rd]()):t?this[Qc](t):(this[Wc]=e,this.emit("open",e),this[pd]||this[Hc]())}end(t,e){return t&&this.write(t,e),this[$c]=!0,this[pd]||this[id].length||"number"!=typeof this[Wc]||this[nd](null,0),this}write(t,e){return"string"==typeof t&&(t=Buffer.from(t,e)),this[$c]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[Wc]||this[pd]||this[id].length?(this[id].push(t),this[Xc]=!0,!1):(this[pd]=!0,this[hd](t),!0)}[hd](t){E.write(this[Wc],t,0,t.length,this[od],(t,e)=>this[nd](t,e))}[nd](t,e){t?this[Qc](t):(void 0!==this[od]&&"number"==typeof e&&(this[od]+=e),this[id].length?this[Hc]():(this[pd]=!1,this[$c]&&!this[Jc]?(this[Jc]=!0,this[zc](),this.emit("finish")):this[Xc]&&(this[Xc]=!1,this.emit("drain"))))}[Hc](){if(0===this[id].length)this[$c]&&this[nd](null,0);else if(1===this[id].length)this[hd](this[id].pop());else{const t=this[id];this[id]=[],Mc(this[Wc],t,this[od],(t,e)=>this[nd](t,e))}}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.close(t,t=>t?this.emit("error",t):this.emit("close"))}}}class bd extends Ad{[rd](){let t;if(this[fd]&&"r+"===this[Vc])try{t=E.openSync(this[ud],this[Vc],this[Kc])}catch(t){if("ENOENT"===t?.code)return this[Vc]="w",this[rd]();throw t}else t=E.openSync(this[ud],this[Vc],this[Kc]);this[td](null,t)}[zc](){if(this[Gc]&&"number"==typeof this[Wc]){const t=this[Wc];this[Wc]=void 0,E.closeSync(t),this.emit("close")}}[hd](t){let e=!0;try{this[nd](null,E.writeSync(this[Wc],t,0,t.length,this[od])),e=!1}finally{if(e)try{this[zc]()}catch{}}}}const yd=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),gd=t=>{const e=yd.get(t);return e||t},Cd=(t={})=>{if(!t)return{};const e={};for(const[n,r]of Object.entries(t)){e[gd(n)]=r}return void 0===e.chmod&&!1===e.noChmod&&(e.chmod=!0),delete e.noChmod,e},Fd=(t,e,n,r,u)=>Object.assign((o=[],i,s)=>{Array.isArray(o)&&(i=o,o={}),"function"==typeof i&&(s=i,i=void 0),i=i?Array.from(i):[];const a=Cd(o);if(u?.(a,i),(c=a).sync&&c.file){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return t(a,i)}if((t=>!t.sync&&!!t.file)(a)){const t=e(a,i),n=s||void 0;return n?t.then(()=>n(),n):t}if((t=>!!t.sync&&!t.file)(a)){if("function"==typeof s)throw new TypeError("callback not supported for sync tar functions");return n(a,i)}if((t=>!t.sync&&!t.file)(a)){if("function"==typeof s)throw new TypeError("callback only supported with file option");return r(a,i)}throw new Error("impossible options??");var c},{syncFile:t,asyncFile:e,syncNoFile:n,asyncNoFile:r,validate:u}),wd="object"==typeof process&&process?process:{stdout:null,stderr:null},Dd=t=>!!t&&"object"==typeof t&&(t instanceof cl||t instanceof U||Bd(t)||Id(t)),Bd=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.pipe&&t.pipe!==U.Writable.prototype.pipe,Id=t=>!!t&&"object"==typeof t&&t instanceof _&&"function"==typeof t.write&&"function"==typeof t.end,Rd=Symbol("EOF"),jd=Symbol("maybeEmitEnd"),Sd=Symbol("emittedEnd"),_d=Symbol("emittingEnd"),Ud=Symbol("emittedError"),Pd=Symbol("closed"),Od=Symbol("read"),kd=Symbol("flush"),xd=Symbol("flushChunk"),Td=Symbol("encoding"),Ld=Symbol("decoder"),Nd=Symbol("flowing"),qd=Symbol("paused"),Md=Symbol("resume"),Gd=Symbol("buffer"),zd=Symbol("pipes"),$d=Symbol("bufferLength"),Wd=Symbol("bufferPush"),Jd=Symbol("bufferShift"),Vd=Symbol("objectMode"),Hd=Symbol("destroyed"),Zd=Symbol("error"),Yd=Symbol("emitData"),Kd=Symbol("emitEnd"),Xd=Symbol("emitEnd2"),Qd=Symbol("async"),tl=Symbol("abort"),el=Symbol("aborted"),nl=Symbol("signal"),rl=Symbol("dataListeners"),ul=Symbol("discarded"),ol=t=>Promise.resolve().then(t),il=t=>t();class sl{src;dest;opts;ondrain;constructor(t,e,n){this.src=t,this.dest=e,this.opts=n,this.ondrain=()=>t[Md](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class al extends sl{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,n){super(t,e,n),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class cl extends _{[Nd]=!1;[qd]=!1;[zd]=[];[Gd]=[];[Vd];[Td];[Qd];[Ld];[Rd]=!1;[Sd]=!1;[_d]=!1;[Pd]=!1;[Ud]=null;[$d]=0;[Hd]=!1;[nl];[el]=!1;[rl]=0;[ul]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[Vd]=!0,this[Td]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[Td]=e.encoding,this[Vd]=!1):(this[Vd]=!1,this[Td]=null),this[Qd]=!!e.async,this[Ld]=this[Td]?new P(this[Td]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Gd]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[zd]});const{signal:n}=e;n&&(this[nl]=n,n.aborted?this[tl]():n.addEventListener("abort",()=>this[tl]()))}get bufferLength(){return this[$d]}get encoding(){return this[Td]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Vd]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Qd]}set async(t){this[Qd]=this[Qd]||!!t}[tl](){this[el]=!0,this.emit("abort",this[nl]?.reason),this.destroy(this[nl]?.reason)}get aborted(){return this[el]}set aborted(t){}write(t,e,n){if(this[el])return!1;if(this[Rd])throw new Error("write after end");if(this[Hd])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(n=e,e="utf8"),e||(e="utf8");const r=this[Qd]?ol:il;if(!this[Vd]&&!Buffer.isBuffer(t))if(u=t,!Buffer.isBuffer(u)&&ArrayBuffer.isView(u))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var u;return this[Vd]?(this[Nd]&&0!==this[$d]&&this[kd](!0),this[Nd]?this.emit("data",t):this[Wd](t),0!==this[$d]&&this.emit("readable"),n&&r(n),this[Nd]):t.length?("string"!=typeof t||e===this[Td]&&!this[Ld]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[Td]&&(t=this[Ld].write(t)),this[Nd]&&0!==this[$d]&&this[kd](!0),this[Nd]?this.emit("data",t):this[Wd](t),0!==this[$d]&&this.emit("readable"),n&&r(n),this[Nd]):(0!==this[$d]&&this.emit("readable"),n&&r(n),this[Nd])}read(t){if(this[Hd])return null;if(this[ul]=!1,0===this[$d]||0===t||t&&t>this[$d])return this[jd](),null;this[Vd]&&(t=null),this[Gd].length>1&&!this[Vd]&&(this[Gd]=[this[Td]?this[Gd].join(""):Buffer.concat(this[Gd],this[$d])]);const e=this[Od](t||null,this[Gd][0]);return this[jd](),e}[Od](t,e){if(this[Vd])this[Jd]();else{const n=e;t===n.length||null===t?this[Jd]():"string"==typeof n?(this[Gd][0]=n.slice(t),e=n.slice(0,t),this[$d]-=t):(this[Gd][0]=n.subarray(t),e=n.subarray(0,t),this[$d]-=t)}return this.emit("data",e),this[Gd].length||this[Rd]||this.emit("drain"),e}end(t,e,n){return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e="utf8"),void 0!==t&&this.write(t,e),n&&this.once("end",n),this[Rd]=!0,this.writable=!1,!this[Nd]&&this[qd]||this[jd](),this}[Md](){this[Hd]||(this[rl]||this[zd].length||(this[ul]=!0),this[qd]=!1,this[Nd]=!0,this.emit("resume"),this[Gd].length?this[kd]():this[Rd]?this[jd]():this.emit("drain"))}resume(){return this[Md]()}pause(){this[Nd]=!1,this[qd]=!0,this[ul]=!1}get destroyed(){return this[Hd]}get flowing(){return this[Nd]}get paused(){return this[qd]}[Wd](t){this[Vd]?this[$d]+=1:this[$d]+=t.length,this[Gd].push(t)}[Jd](){return this[Vd]?this[$d]-=1:this[$d]-=this[Gd][0].length,this[Gd].shift()}[kd](t=!1){do{}while(this[xd](this[Jd]())&&this[Gd].length);t||this[Gd].length||this[Rd]||this.emit("drain")}[xd](t){return this.emit("data",t),this[Nd]}pipe(t,e){if(this[Hd])return t;this[ul]=!1;const n=this[Sd];return e=e||{},t===wd.stdout||t===wd.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,n?e.end&&t.end():(this[zd].push(e.proxyErrors?new al(this,t,e):new sl(this,t,e)),this[Qd]?ol(()=>this[Md]()):this[Md]()),t}unpipe(t){const e=this[zd].find(e=>e.dest===t);e&&(1===this[zd].length?(this[Nd]&&0===this[rl]&&(this[Nd]=!1),this[zd]=[]):this[zd].splice(this[zd].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const n=super.on(t,e);if("data"===t)this[ul]=!1,this[rl]++,this[zd].length||this[Nd]||this[Md]();else if("readable"===t&&0!==this[$d])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[Sd])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Ud]){const t=e;this[Qd]?ol(()=>t.call(this,this[Ud])):t.call(this,this[Ud])}return n}removeListener(t,e){return this.off(t,e)}off(t,e){const n=super.off(t,e);return"data"===t&&(this[rl]=this.listeners("data").length,0!==this[rl]||this[ul]||this[zd].length||(this[Nd]=!1)),n}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[rl]=0,this[ul]||this[zd].length||(this[Nd]=!1)),e}get emittedEnd(){return this[Sd]}[jd](){this[_d]||this[Sd]||this[Hd]||0!==this[Gd].length||!this[Rd]||(this[_d]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Pd]&&this.emit("close"),this[_d]=!1)}emit(t,...e){const n=e[0];if("error"!==t&&"close"!==t&&t!==Hd&&this[Hd])return!1;if("data"===t)return!(!this[Vd]&&!n)&&(this[Qd]?(ol(()=>this[Yd](n)),!0):this[Yd](n));if("end"===t)return this[Kd]();if("close"===t){if(this[Pd]=!0,!this[Sd]&&!this[Hd])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Ud]=n,super.emit(Zd,n);const t=!(this[nl]&&!this.listeners("error").length)&&super.emit("error",n);return this[jd](),t}if("resume"===t){const t=super.emit("resume");return this[jd](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const r=super.emit(t,...e);return this[jd](),r}[Yd](t){for(const e of this[zd])!1===e.dest.write(t)&&this.pause();const e=!this[ul]&&super.emit("data",t);return this[jd](),e}[Kd](){return!this[Sd]&&(this[Sd]=!0,this.readable=!1,this[Qd]?(ol(()=>this[Xd]()),!0):this[Xd]())}[Xd](){if(this[Ld]){const t=this[Ld].end();if(t){for(const e of this[zd])e.dest.write(t);this[ul]||super.emit("data",t)}}for(const t of this[zd])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[Vd]||(t.dataLength=0);const e=this.promise();return this.on("data",e=>{t.push(e),this[Vd]||(t.dataLength+=e.length)}),await e,t}async concat(){if(this[Vd])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[Td]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,e)=>{this.on(Hd,()=>e(new Error("stream destroyed"))),this.on("error",t=>e(t)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[ul]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[Rd])return e();let r,u;const o=t=>{this.off("data",i),this.off("end",s),this.off(Hd,a),e(),u(t)},i=t=>{this.off("error",o),this.off("end",s),this.off(Hd,a),this.pause(),r({value:t,done:!!this[Rd]})},s=()=>{this.off("error",o),this.off("data",i),this.off(Hd,a),e(),r({done:!0,value:void 0})},a=()=>o(new Error("stream destroyed"));return new Promise((t,e)=>{u=e,r=t,this.once(Hd,a),this.once("error",o),this.once("end",s),this.once("data",i)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ul]=!1;let t=!1;const e=()=>(this.pause(),this.off(Zd,e),this.off(Hd,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Zd,e),this.once(Hd,e),{next:()=>{if(t)return e();const n=this.read();return null===n?e():{done:!1,value:n}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[Hd])return t?this.emit("error",t):this.emit(Hd),this;this[Hd]=!0,this[ul]=!0,this[Gd].length=0,this[$d]=0;return"function"!=typeof this.close||this[Pd]||this.close(),t?this.emit("error",t):this.emit(Hd),this}static get isStream(){return Dd}}const dl=h.constants||{ZLIB_VERNUM:4736},ll=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},dl)),hl=j.concat,pl=Object.getOwnPropertyDescriptor(j,"concat"),fl=t=>t,ml=!0===pl?.writable||void 0!==pl?.set?t=>{j.concat=t?fl:hl}:t=>{},vl=Symbol("_superWrite");class El extends Error{code;errno;constructor(t){super("zlib: "+t.message),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const Al=Symbol("flushFlag");class bl extends cl{#t=!1;#e=!1;#n;#r;#u;#o;#i;get sawError(){return this.#t}get handle(){return this.#o}get flushFlag(){return this.#n}constructor(t,e){if(!t||"object"!=typeof t)throw new TypeError("invalid options for ZlibBase constructor");super(t),this.#n=t.flush??0,this.#r=t.finishFlush??0,this.#u=t.fullFlushFlag??0;try{this.#o=new l[e](t)}catch(t){throw new El(t)}this.#i=t=>{this.#t||(this.#t=!0,this.close(),this.emit("error",t))},this.#o?.on("error",t=>this.#i(new El(t))),this.once("end",()=>this.close)}close(){this.#o&&(this.#o.close(),this.#o=void 0,this.emit("close"))}reset(){if(!this.#t)return q(this.#o,"zlib binding closed"),this.#o.reset?.()}flush(t){this.ended||("number"!=typeof t&&(t=this.#u),this.write(Object.assign(j.alloc(0),{[Al]:t})))}end(t,e,n){return"function"==typeof t&&(n=t,e=void 0,t=void 0),"function"==typeof e&&(n=e,e=void 0),t&&(e?this.write(t,e):this.write(t)),this.flush(this.#r),this.#e=!0,super.end(n)}get ended(){return this.#e}[vl](t){return super.write(t)}write(t,e,n){if("function"==typeof e&&(n=e,e="utf8"),"string"==typeof t&&(t=j.from(t,e)),this.#t)return;q(this.#o,"zlib binding closed");const r=this.#o._handle,u=r.close;r.close=()=>{};const o=this.#o.close;let i,s;this.#o.close=()=>{},ml(!0);try{const e="number"==typeof t[Al]?t[Al]:this.#n;i=this.#o._processChunk(t,e),ml(!1)}catch(t){ml(!1),this.#i(new El(t))}finally{this.#o&&(this.#o._handle=r,r.close=u,this.#o.close=o,this.#o.removeAllListeners("error"))}if(this.#o&&this.#o.on("error",t=>this.#i(new El(t))),i)if(Array.isArray(i)&&i.length>0){const t=i[0];s=this[vl](j.from(t));for(let t=1;t<i.length;t++)s=this[vl](i[t])}else s=this[vl](j.from(i));return n&&n(),s}}class yl extends bl{#s;#a;constructor(t,e){(t=t||{}).flush=t.flush||ll.Z_NO_FLUSH,t.finishFlush=t.finishFlush||ll.Z_FINISH,t.fullFlushFlag=ll.Z_FULL_FLUSH,super(t,e),this.#s=t.level,this.#a=t.strategy}params(t,e){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#s!==t||this.#a!==e){this.flush(ll.Z_SYNC_FLUSH),q(this.handle,"zlib binding closed");const n=this.handle.flush;this.handle.flush=(t,e)=>{"function"==typeof t&&(e=t,t=this.flushFlag),this.flush(t),e?.()};try{this.handle.params(t,e)}finally{this.handle.flush=n}this.handle&&(this.#s=t,this.#a=e)}}}}class gl extends yl{#c;constructor(t){super(t,"Gzip"),this.#c=t&&!!t.portable}[vl](t){return this.#c?(this.#c=!1,t[9]=255,super[vl](t)):super[vl](t)}}class Cl extends yl{constructor(t){super(t,"Unzip")}}class Fl extends bl{constructor(t,e){(t=t||{}).flush=t.flush||ll.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||ll.BROTLI_OPERATION_FINISH,t.fullFlushFlag=ll.BROTLI_OPERATION_FLUSH,super(t,e)}}class wl extends Fl{constructor(t){super(t,"BrotliCompress")}}class Dl extends Fl{constructor(t){super(t,"BrotliDecompress")}}class Bl{tail;head;length=0;static create(t=[]){return new Bl(t)}constructor(t=[]){for(const e of t)this.push(e)}*[Symbol.iterator](){for(let t=this.head;t;t=t.next)yield t.value}removeNode(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");const e=t.next,n=t.prev;return e&&(e.prev=n),n&&(n.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=n),this.length--,t.next=void 0,t.prev=void 0,t.list=void 0,e}unshiftNode(t){if(t===this.head)return;t.list&&t.list.removeNode(t);const e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}pushNode(t){if(t===this.tail)return;t.list&&t.list.removeNode(t);const e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}push(...t){for(let e=0,n=t.length;e<n;e++)Rl(this,t[e]);return this.length}unshift(...t){for(var e=0,n=t.length;e<n;e++)jl(this,t[e]);return this.length}pop(){if(!this.tail)return;const t=this.tail.value,e=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,e.list=void 0,this.length--,t}shift(){if(!this.head)return;const t=this.head.value,e=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,e.list=void 0,this.length--,t}forEach(t,e){e=e||this;for(let n=this.head,r=0;n;r++)t.call(e,n.value,r,this),n=n.next}forEachReverse(t,e){e=e||this;for(let n=this.tail,r=this.length-1;n;r--)t.call(e,n.value,r,this),n=n.prev}get(t){let e=0,n=this.head;for(;n&&e<t;e++)n=n.next;if(e===t&&n)return n.value}getReverse(t){let e=0,n=this.tail;for(;n&&e<t;e++)n=n.prev;if(e===t&&n)return n.value}map(t,e){e=e||this;const n=new Bl;for(let r=this.head;r;)n.push(t.call(e,r.value,this)),r=r.next;return n}mapReverse(t,e){e=e||this;var n=new Bl;for(let r=this.tail;r;)n.push(t.call(e,r.value,this)),r=r.prev;return n}reduce(t,e){let n,r=this.head;if(arguments.length>1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var u=0;r;u++)n=t(n,r.value,u),r=r.next;return n}reduceReverse(t,e){let n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(let e=this.length-1;r;e--)n=t(n,r.value,e),r=r.prev;return n}toArray(){const t=new Array(this.length);for(let e=0,n=this.head;n;e++)t[e]=n.value,n=n.next;return t}toArrayReverse(){const t=new Array(this.length);for(let e=0,n=this.tail;n;e++)t[e]=n.value,n=n.prev;return t}slice(t=0,e=this.length){e<0&&(e+=this.length),t<0&&(t+=this.length);const n=new Bl;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);let r=this.head,u=0;for(u=0;r&&u<t;u++)r=r.next;for(;r&&u<e;u++,r=r.next)n.push(r.value);return n}sliceReverse(t=0,e=this.length){e<0&&(e+=this.length),t<0&&(t+=this.length);const n=new Bl;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);let r=this.length,u=this.tail;for(;u&&r>e;r--)u=u.prev;for(;u&&r>t;r--,u=u.prev)n.push(u.value);return n}splice(t,e=0,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);let r=this.head;for(let e=0;r&&e<t;e++)r=r.next;const u=[];for(let t=0;r&&t<e;t++)u.push(r.value),r=this.removeNode(r);r?r!==this.tail&&(r=r.prev):r=this.tail;for(const t of n)r=Il(this,r,t);return u}reverse(){const t=this.head,e=this.tail;for(let e=t;e;e=e.prev){const t=e.prev;e.prev=e.next,e.next=t}return this.head=e,this.tail=t,this}}function Il(t,e,n){const r=e,u=e?e.next:t.head,o=new Sl(n,r,u,t);return void 0===o.next&&(t.tail=o),void 0===o.prev&&(t.head=o),t.length++,o}function Rl(t,e){t.tail=new Sl(e,t.tail,void 0,t),t.head||(t.head=t.tail),t.length++}function jl(t,e){t.head=new Sl(e,void 0,t.head,t),t.tail||(t.tail=t.head),t.length++}class Sl{list;next;prev;value;constructor(t,e,n,r){this.list=r,this.value=t,e?(e.next=this,this.prev=e):this.prev=void 0,n?(n.prev=this,this.next=n):this.next=void 0}}const _l=(t,e)=>{e[0]=128;for(var n=e.length;n>1;n--)e[n-1]=255&t,t=Math.floor(t/256)},Ul=(t,e)=>{e[0]=255;var n=!1;t*=-1;for(var r=e.length;r>1;r--){var u=255&t;t=Math.floor(t/256),n?e[r-1]=kl(u):0===u?e[r-1]=0:(n=!0,e[r-1]=xl(u))}},Pl=t=>{for(var e=t.length,n=0,r=!1,u=e-1;u>-1;u--){var o,i=Number(t[u]);r?o=kl(i):0===i?o=i:(r=!0,o=xl(i)),0!==o&&(n-=o*Math.pow(256,e-u-1))}return n},Ol=t=>{for(var e=t.length,n=0,r=e-1;r>-1;r--){var u=Number(t[r]);0!==u&&(n+=u*Math.pow(256,e-r-1))}return n},kl=t=>255&(255^t),xl=t=>1+(255^t)&255,Tl=t=>Ll.has(t),Ll=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),Nl=new Map(Array.from(Ll).map(t=>[t[1],t[0]]));class ql{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#d="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(t,e=0,n,r){Buffer.isBuffer(t)?this.decode(t,e||0,n,r):t&&this.#l(t)}decode(t,e,n,r){if(e||(e=0),!(t&&t.length>=e+512))throw new Error("need 512 bytes for header");this.path=Gl(t,e,100),this.mode=Wl(t,e+100,8),this.uid=Wl(t,e+108,8),this.gid=Wl(t,e+116,8),this.size=Wl(t,e+124,12),this.mtime=zl(t,e+136,12),this.cksum=Wl(t,e+148,12),r&&this.#l(r,!0),n&&this.#l(n);const u=Gl(t,e+156,1);if(Tl(u)&&(this.#d=u||"0"),"0"===this.#d&&"/"===this.path.slice(-1)&&(this.#d="5"),"5"===this.#d&&(this.size=0),this.linkpath=Gl(t,e+157,100),"ustar\x0000"===t.subarray(e+257,e+265).toString())if(this.uname=Gl(t,e+265,32),this.gname=Gl(t,e+297,32),this.devmaj=Wl(t,e+329,8)??0,this.devmin=Wl(t,e+337,8)??0,0!==t[e+475]){const n=Gl(t,e+345,155);this.path=n+"/"+this.path}else{const n=Gl(t,e+345,130);n&&(this.path=n+"/"+this.path),this.atime=zl(t,e+476,12),this.ctime=zl(t,e+488,12)}let o=256;for(let n=e;n<e+148;n++)o+=t[n];for(let n=e+156;n<e+512;n++)o+=t[n];this.cksumValid=o===this.cksum,void 0===this.cksum&&256===o&&(this.nullBlock=!0)}#l(t,e=!1){Object.assign(this,Object.fromEntries(Object.entries(t).filter(([t,n])=>!(null==n||"path"===t&&e||"linkpath"===t&&e||"global"===t))))}encode(t,e=0){if(t||(t=this.block=Buffer.alloc(512)),"Unsupported"===this.#d&&(this.#d="0"),!(t.length>=e+512))throw new Error("need 512 bytes for header");const n=this.ctime||this.atime?130:155,r=Ml(this.path||"",n),u=r[0],o=r[1];this.needPax=!!r[2],this.needPax=th(t,e,100,u)||this.needPax,this.needPax=Hl(t,e+100,8,this.mode)||this.needPax,this.needPax=Hl(t,e+108,8,this.uid)||this.needPax,this.needPax=Hl(t,e+116,8,this.gid)||this.needPax,this.needPax=Hl(t,e+124,12,this.size)||this.needPax,this.needPax=Xl(t,e+136,12,this.mtime)||this.needPax,t[e+156]=this.#d.charCodeAt(0),this.needPax=th(t,e+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",e+257,8),this.needPax=th(t,e+265,32,this.uname)||this.needPax,this.needPax=th(t,e+297,32,this.gname)||this.needPax,this.needPax=Hl(t,e+329,8,this.devmaj)||this.needPax,this.needPax=Hl(t,e+337,8,this.devmin)||this.needPax,this.needPax=th(t,e+345,n,o)||this.needPax,0!==t[e+475]?this.needPax=th(t,e+345,155,o)||this.needPax:(this.needPax=th(t,e+345,130,o)||this.needPax,this.needPax=Xl(t,e+476,12,this.atime)||this.needPax,this.needPax=Xl(t,e+488,12,this.ctime)||this.needPax);let i=256;for(let n=e;n<e+148;n++)i+=t[n];for(let n=e+156;n<e+512;n++)i+=t[n];return this.cksum=i,Hl(t,e+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#d?this.#d:Ll.get(this.#d)}get typeKey(){return this.#d}set type(t){const e=String(Nl.get(t));if(Tl(e)||"Unsupported"===e)this.#d=e;else{if(!Tl(t))throw new TypeError("invalid entry type: "+t);this.#d=t}}}const Ml=(t,e)=>{const n=100;let r,u=t,o="";const i=k.parse(t).root||".";if(Buffer.byteLength(u)<n)r=[u,o,!1];else{o=k.dirname(u),u=k.basename(u);do{Buffer.byteLength(u)<=n&&Buffer.byteLength(o)<=e?r=[u,o,!1]:Buffer.byteLength(u)>n&&Buffer.byteLength(o)<=e?r=[u.slice(0,99),o,!0]:(u=k.join(k.basename(o),u),o=k.dirname(o))}while(o!==i&&void 0===r);r||(r=[t.slice(0,99),"",!0])}return r},Gl=(t,e,n)=>t.subarray(e,e+n).toString("utf8").replace(/\0.*/,""),zl=(t,e,n)=>$l(Wl(t,e,n)),$l=t=>void 0===t?void 0:new Date(1e3*t),Wl=(t,e,n)=>128&Number(t[e])?(t=>{const e=t[0],n=128===e?Ol(t.subarray(1,t.length)):255===e?Pl(t):null;if(null===n)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n})(t.subarray(e,e+n)):Jl(t,e,n),Jl=(t,e,n)=>{return r=parseInt(t.subarray(e,e+n).toString("utf8").replace(/\0.*$/,"").trim(),8),isNaN(r)?void 0:r;var r},Vl={12:8589934591,8:2097151},Hl=(t,e,n,r)=>void 0!==r&&(r>Vl[n]||r<0?(((t,e)=>{if(!Number.isSafeInteger(t))throw Error("cannot encode number outside of javascript safe integer range");t<0?Ul(t,e):_l(t,e)})(r,t.subarray(e,e+n)),!0):(Zl(t,e,n,r),!1)),Zl=(t,e,n,r)=>t.write(Yl(r,n),e,n,"ascii"),Yl=(t,e)=>Kl(Math.floor(t).toString(8),e),Kl=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Xl=(t,e,n,r)=>void 0!==r&&Hl(t,e,n,r.getTime()/1e3),Ql=new Array(156).join("\0"),th=(t,e,n,r)=>void 0!==r&&(t.write(r+Ql,e,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n);class eh{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(t,e=!1){this.atime=t.atime,this.charset=t.charset,this.comment=t.comment,this.ctime=t.ctime,this.dev=t.dev,this.gid=t.gid,this.global=e,this.gname=t.gname,this.ino=t.ino,this.linkpath=t.linkpath,this.mtime=t.mtime,this.nlink=t.nlink,this.path=t.path,this.size=t.size,this.uid=t.uid,this.uname=t.uname}encode(){const t=this.encodeBody();if(""===t)return Buffer.allocUnsafe(0);const e=Buffer.byteLength(t),n=512*Math.ceil(1+e/512),r=Buffer.allocUnsafe(n);for(let t=0;t<512;t++)r[t]=0;new ql({path:("PaxHeader/"+x(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:e,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(r),r.write(t,512,e,"utf8");for(let t=e+512;t<r.length;t++)r[t]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(void 0===this[t])return"";const e=this[t],n=" "+("dev"===t||"ino"===t||"nlink"===t?"SCHILY.":"")+t+"="+(e instanceof Date?e.getTime()/1e3:e)+"\n",r=Buffer.byteLength(n);let u=Math.floor(Math.log(r)/Math.log(10))+1;r+u>=Math.pow(10,u)&&(u+=1);return u+r+n}static parse(t,e,n=!1){return new eh(nh(rh(t),e),n)}}const nh=(t,e)=>e?Object.assign({},e,t):t,rh=t=>t.replace(/\n$/,"").split("\n").reduce(uh,Object.create(null)),uh=(t,e)=>{const n=parseInt(e,10);if(n!==Buffer.byteLength(e)+1)return t;const r=(e=e.slice((n+" ").length)).split("="),u=r.shift();if(!u)return t;const o=u.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),i=r.join("=");return t[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(1e3*Number(i)):/^[0-9]+$/.test(i)?+i:i,t},oh="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?t=>t:t=>t&&t.replace(/\\/g,"/");class ih extends cl{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(t,e,n){switch(super({}),this.pause(),this.extended=e,this.globalExtended=n,this.header=t,this.remain=t.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),this.blockRemain=this.startBlockSize,this.type=t.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!t.path)throw new Error("no path provided for tar.ReadEntry");this.path=oh(t.path),this.mode=t.mode,this.mode&&(this.mode=4095&this.mode),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=this.remain,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=t.linkpath?oh(t.linkpath):void 0,this.uname=t.uname,this.gname=t.gname,e&&this.#l(e),n&&this.#l(n,!0)}write(t){const e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");const n=this.remain,r=this.blockRemain;return this.remain=Math.max(0,n-e),this.blockRemain=Math.max(0,r-e),!!this.ignore||(n>=e?super.write(t):super.write(t.subarray(0,n)))}#l(t,e=!1){t.path&&(t.path=oh(t.path)),t.linkpath&&(t.linkpath=oh(t.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(t).filter(([t,n])=>!(null==n||"path"===t&&e))))}}const sh=(t,e,n,r={})=>{t.file&&(r.file=t.file),t.cwd&&(r.cwd=t.cwd),r.code=n instanceof Error&&n.code||e,r.tarCode=e,t.strict||!1===r.recoverable?n instanceof Error?t.emit("error",Object.assign(n,r)):t.emit("error",Object.assign(new Error(`${e}: ${n}`),r)):(n instanceof Error&&(r=Object.assign(n,r),n=n.message),t.emit("warn",e,n,r))},ah=Buffer.from([31,139]),ch=Symbol("state"),dh=Symbol("writeEntry"),lh=Symbol("readEntry"),hh=Symbol("nextEntry"),ph=Symbol("processEntry"),fh=Symbol("extendedHeader"),mh=Symbol("globalExtendedHeader"),vh=Symbol("meta"),Eh=Symbol("emitMeta"),Ah=Symbol("buffer"),bh=Symbol("queue"),yh=Symbol("ended"),gh=Symbol("emittedEnd"),Ch=Symbol("emit"),Fh=Symbol("unzip"),wh=Symbol("consumeChunk"),Dh=Symbol("consumeChunkSub"),Bh=Symbol("consumeBody"),Ih=Symbol("consumeMeta"),Rh=Symbol("consumeHeader"),jh=Symbol("consuming"),Sh=Symbol("bufferConcat"),_h=Symbol("maybeEnd"),Uh=Symbol("writing"),Ph=Symbol("aborted"),Oh=Symbol("onDone"),kh=Symbol("sawValidEntry"),xh=Symbol("sawNullBlock"),Th=Symbol("sawEOF"),Lh=Symbol("closeStream"),Nh=()=>!0;class qh extends e{file;strict;maxMetaEntrySize;filter;brotli;writable=!0;readable=!1;[bh]=new Bl;[Ah];[lh];[dh];[ch]="begin";[vh]="";[fh];[mh];[yh]=!1;[Fh];[Ph]=!1;[kh];[xh]=!1;[Th]=!1;[Uh]=!1;[jh]=!1;[gh]=!1;constructor(t={}){super(),this.file=t.file||"",this.on(Oh,()=>{"begin"!==this[ch]&&!1!==this[kh]||this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(Oh,t.ondone):this.on(Oh,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||1048576,this.filter="function"==typeof t.filter?t.filter:Nh;const e=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=t.gzip||void 0===t.brotli?!!e&&void 0:t.brotli,this.on("end",()=>this[Lh]()),"function"==typeof t.onwarn&&this.on("warn",t.onwarn),"function"==typeof t.onReadEntry&&this.on("entry",t.onReadEntry)}warn(t,e,n={}){sh(this,t,e,n)}[Rh](t,e){let n;void 0===this[kh]&&(this[kh]=!1);try{n=new ql(t,e,this[fh],this[mh])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(n.nullBlock)this[xh]?(this[Th]=!0,"begin"===this[ch]&&(this[ch]="header"),this[Ch]("eof")):(this[xh]=!0,this[Ch]("nullBlock"));else if(this[xh]=!1,n.cksumValid)if(n.path){const t=n.type;if(/^(Symbolic)?Link$/.test(t)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(/^(Symbolic)?Link$/.test(t)||/^(Global)?ExtendedHeader$/.test(t)||!n.linkpath){const t=this[dh]=new ih(n,this[fh],this[mh]);if(!this[kh])if(t.remain){const e=()=>{t.invalid||(this[kh]=!0)};t.on("end",e)}else this[kh]=!0;t.meta?t.size>this.maxMetaEntrySize?(t.ignore=!0,this[Ch]("ignoredEntry",t),this[ch]="ignore",t.resume()):t.size>0&&(this[vh]="",t.on("data",t=>this[vh]+=t),this[ch]="meta"):(this[fh]=void 0,t.ignore=t.ignore||!this.filter(t.path,t),t.ignore?(this[Ch]("ignoredEntry",t),this[ch]=t.remain?"ignore":"header",t.resume()):(t.remain?this[ch]="body":(this[ch]="header",t.end()),this[lh]?this[bh].push(t):(this[bh].push(t),this[hh]())))}else this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n})}else this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n})}[Lh](){queueMicrotask(()=>this.emit("close"))}[ph](t){let e=!0;if(t)if(Array.isArray(t)){const[e,...n]=t;this.emit(e,...n)}else this[lh]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",()=>this[hh]()),e=!1);else this[lh]=void 0,e=!1;return e}[hh](){do{}while(this[ph](this[bh].shift()));if(!this[bh].length){const t=this[lh];!t||t.flowing||t.size===t.remain?this[Uh]||this.emit("drain"):t.once("drain",()=>this.emit("drain"))}}[Bh](t,e){const n=this[dh];if(!n)throw new Error("attempt to consume body without entry??");const r=n.blockRemain??0,u=r>=t.length&&0===e?t:t.subarray(e,e+r);return n.write(u),n.blockRemain||(this[ch]="header",this[dh]=void 0,n.end()),u.length}[Ih](t,e){const n=this[dh],r=this[Bh](t,e);return!this[dh]&&n&&this[Eh](n),r}[Ch](t,e,n){this[bh].length||this[lh]?this[bh].push([t,e,n]):this.emit(t,e,n)}[Eh](t){switch(this[Ch]("meta",this[vh]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[fh]=eh.parse(this[vh],this[fh],!1);break;case"GlobalExtendedHeader":this[mh]=eh.parse(this[vh],this[mh],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{const t=this[fh]??Object.create(null);this[fh]=t,t.path=this[vh].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{const t=this[fh]||Object.create(null);this[fh]=t,t.linkpath=this[vh].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Ph]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t,e,n){if("function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,"string"==typeof e?e:"utf8")),this[Ph])return n?.(),!1;if((void 0===this[Fh]||void 0===this.brotli&&!1===this[Fh])&&t){if(this[Ah]&&(t=Buffer.concat([this[Ah],t]),this[Ah]=void 0),t.length<ah.length)return this[Ah]=t,n?.(),!0;for(let e=0;void 0===this[Fh]&&e<ah.length;e++)t[e]!==ah[e]&&(this[Fh]=!1);const e=void 0===this.brotli;if(!1===this[Fh]&&e)if(t.length<512){if(!this[yh])return this[Ah]=t,n?.(),!0;this.brotli=!0}else try{new ql(t.subarray(0,512)),this.brotli=!1}catch(t){this.brotli=!0}if(void 0===this[Fh]||!1===this[Fh]&&this.brotli){const e=this[yh];this[yh]=!1,this[Fh]=void 0===this[Fh]?new Cl({}):new Dl({}),this[Fh].on("data",t=>this[wh](t)),this[Fh].on("error",t=>this.abort(t)),this[Fh].on("end",()=>{this[yh]=!0,this[wh]()}),this[Uh]=!0;const r=!!this[Fh][e?"end":"write"](t);return this[Uh]=!1,n?.(),r}}this[Uh]=!0,this[Fh]?this[Fh].write(t):this[wh](t),this[Uh]=!1;const r=!this[bh].length&&(!this[lh]||this[lh].flowing);return r||this[bh].length||this[lh]?.once("drain",()=>this.emit("drain")),n?.(),r}[Sh](t){t&&!this[Ph]&&(this[Ah]=this[Ah]?Buffer.concat([this[Ah],t]):t)}[_h](){if(this[yh]&&!this[gh]&&!this[Ph]&&!this[jh]){this[gh]=!0;const t=this[dh];if(t&&t.blockRemain){const e=this[Ah]?this[Ah].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`,{entry:t}),this[Ah]&&t.write(this[Ah]),t.end()}this[Ch](Oh)}}[wh](t){if(this[jh]&&t)this[Sh](t);else if(t||this[Ah]){if(t){if(this[jh]=!0,this[Ah]){this[Sh](t);const e=this[Ah];this[Ah]=void 0,this[Dh](e)}else this[Dh](t);for(;this[Ah]&&this[Ah]?.length>=512&&!this[Ph]&&!this[Th];){const t=this[Ah];this[Ah]=void 0,this[Dh](t)}this[jh]=!1}}else this[_h]();this[Ah]&&!this[yh]||this[_h]()}[Dh](t){let e=0;const n=t.length;for(;e+512<=n&&!this[Ph]&&!this[Th];)switch(this[ch]){case"begin":case"header":this[Rh](t,e),e+=512;break;case"ignore":case"body":e+=this[Bh](t,e);break;case"meta":e+=this[Ih](t,e);break;default:throw new Error("invalid state: "+this[ch])}e<n&&(this[Ah]?this[Ah]=Buffer.concat([t.subarray(e),this[Ah]]):this[Ah]=t.subarray(e))}end(t,e,n){return"function"==typeof t&&(n=t,e=void 0,t=void 0),"function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,e)),n&&this.once("finish",n),this[Ph]||(this[Fh]?(t&&this[Fh].write(t),this[Fh].end()):(this[yh]=!0,void 0===this.brotli&&(t=t||Buffer.alloc(0)),t&&this.write(t),this[_h]())),this}}const Mh=t=>{let e=t.length-1,n=-1;for(;e>-1&&"/"===t.charAt(e);)n=e,e--;return-1===n?t:t.slice(0,n)},Gh=(t,e)=>{const n=new Map(e.map(t=>[Mh(t),!0])),r=t.filter,u=(t,e="")=>{const r=e||F(t).root||".";let o;if(t===r)o=!1;else{const e=n.get(t);o=void 0!==e?e:u(w(t),r)}return n.set(t,o),o};t.filter=r?(t,e)=>r(t,e)&&u(Mh(t)):t=>u(Mh(t))},zh=Fd(t=>{const e=new qh(t),n=t.file;let r;try{const u=N.statSync(n),o=t.maxReadSize||16777216;if(u.size<o)e.end(N.readFileSync(n));else{let t=0;const i=Buffer.allocUnsafe(o);for(r=N.openSync(n,"r");t<u.size;){const n=N.readSync(r,i,0,o,t);t+=n,e.write(i.subarray(0,n))}e.end()}}finally{if("number"==typeof r)try{N.closeSync(r)}catch(t){}}},(t,e)=>{const n=new qh(t),r=t.maxReadSize||16777216,u=t.file,o=new Promise((t,e)=>{n.on("error",e),n.on("end",t),N.stat(u,(t,o)=>{if(t)e(t);else{const t=new vd(u,{readSize:r,size:o.size});t.on("error",e),t.pipe(n)}})});return o},t=>new qh(t),t=>new qh(t),(t,e)=>{e?.length&&Gh(t,e),t.noResume||(t=>{const e=t.onReadEntry;t.onReadEntry=e?t=>{e(t),t.resume()}:t=>t.resume()})(t)}),$h=(t,e,n)=>(t&=4095,n&&(t=-19&t|384),e&&(256&t&&(t|=64),32&t&&(t|=8),4&t&&(t|=1)),t),{isAbsolute:Wh,parse:Jh}=T,Vh=t=>{let e="",n=Jh(t);for(;Wh(t)||n.root;){const r="/"===t.charAt(0)&&"//?/"!==t.slice(0,4)?"/":n.root;t=t.slice(r.length),e+=r,n=Jh(t)}return[e,t]},Hh=["|","<",">","?",":"],Zh=Hh.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),Yh=new Map(Hh.map((t,e)=>[t,Zh[e]])),Kh=new Map(Zh.map((t,e)=>[t,Hh[e]])),Xh=t=>Hh.reduce((t,e)=>t.split(e).join(Yh.get(e)),t),Qh=(t,e)=>e?(t=oh(t).replace(/^\.(\/|$)/,""),Mh(e)+"/"+t):oh(t),tp=Symbol("process"),ep=Symbol("file"),np=Symbol("directory"),rp=Symbol("symlink"),up=Symbol("hardlink"),op=Symbol("header"),ip=Symbol("read"),sp=Symbol("lstat"),ap=Symbol("onlstat"),cp=Symbol("onread"),dp=Symbol("onreadlink"),lp=Symbol("openfile"),hp=Symbol("onopenfile"),pp=Symbol("close"),fp=Symbol("mode"),mp=Symbol("awaitDrain"),vp=Symbol("ondrain"),Ep=Symbol("prefix");class Ap extends cl{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#h=!1;constructor(t,e={}){const n=Cd(e);super(),this.path=oh(t),this.portable=!!n.portable,this.maxReadSize=n.maxReadSize||16777216,this.linkCache=n.linkCache||new Map,this.statCache=n.statCache||new Map,this.preservePaths=!!n.preservePaths,this.cwd=oh(n.cwd||process.cwd()),this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?oh(n.prefix):void 0,this.onWriteEntry=n.onWriteEntry,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let r=!1;if(!this.preservePaths){const[t,e]=Vh(this.path);t&&"string"==typeof e&&(this.path=e,r=t)}var u;this.win32=!!n.win32||"win32"===process.platform,this.win32&&(this.path=(u=this.path.replace(/\\/g,"/"),Zh.reduce((t,e)=>t.split(e).join(Kh.get(e)),u)),t=t.replace(/\\/g,"/")),this.absolute=oh(n.absolute||C.resolve(this.cwd,t)),""===this.path&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path});const o=this.statCache.get(this.absolute);o?this[ap](o):this[sp]()}warn(t,e,n={}){return sh(this,t,e,n)}emit(t,...e){return"error"===t&&(this.#h=!0),super.emit(t,...e)}[sp](){E.lstat(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[ap](e)})}[ap](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=gp(t),this.emit("stat",t),this[tp]()}[tp](){switch(this.type){case"File":return this[ep]();case"Directory":return this[np]();case"SymbolicLink":return this[rp]();default:return this.end()}}[fp](t){return $h(t,"Directory"===this.type,this.portable)}[Ep](t){return Qh(t,this.prefix)}[op](){if(!this.stat)throw new Error("cannot write header before stat");"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new ql({path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,mode:this[fp](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:"Unsupported"===this.type?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new eh({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());const t=this.header?.block;if(!t)throw new Error("failed to encode header");super.write(t)}[np](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[op](),this.end()}[rp](){E.readlink(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[dp](e)})}[dp](t){this.linkpath=oh(t),this[op](),this.end()}[up](t){if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=oh(C.relative(this.cwd,t)),this.stat.size=0,this[op](),this.end()}[ep](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){const t=`${this.stat.dev}:${this.stat.ino}`,e=this.linkCache.get(t);if(0===e?.indexOf(this.cwd))return this[up](e);this.linkCache.set(t,this.absolute)}if(this[op](),0===this.stat.size)return this.end();this[lp]()}[lp](){E.open(this.absolute,"r",(t,e)=>{if(t)return this.emit("error",t);this[hp](e)})}[hp](t){if(this.fd=t,this.#h)return this[pp]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;const e=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(e),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[ip]()}[ip](){const{fd:t,buf:e,offset:n,length:r,pos:u}=this;if(void 0===t||void 0===e)throw new Error("cannot read file without first opening");E.read(t,e,n,r,u,(t,e)=>{if(t)return this[pp](()=>this.emit("error",t));this[cp](e)})}[pp](t=()=>{}){void 0!==this.fd&&E.close(this.fd,t)}[cp](t){if(t<=0&&this.remain>0){const t=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[pp](()=>this.emit("error",t))}if(t>this.remain){const t=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[pp](()=>this.emit("error",t))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(t===this.remain)for(let e=t;e<this.length&&t<this.blockRemain;e++)this.buf[e+this.offset]=0,t++,this.remain++;const e=0===this.offset&&t===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+t);this.write(e)?this[vp]():this[mp](()=>this[vp]())}[mp](t){this.once("drain",t)}write(t,e,n){if("function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,"string"==typeof e?e:"utf8")),this.blockRemain<t.length){const t=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",t)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t,null,n)}[vp](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[pp](t=>t?this.emit("error",t):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[ip]()}}class bp extends Ap{sync=!0;[sp](){this[ap](E.lstatSync(this.absolute))}[rp](){this[dp](E.readlinkSync(this.absolute))}[lp](){this[hp](E.openSync(this.absolute,"r"))}[ip](){let t=!0;try{const{fd:e,buf:n,offset:r,length:u,pos:o}=this;if(void 0===e||void 0===n)throw new Error("fd and buf must be set in READ method");const i=E.readSync(e,n,r,u,o);this[cp](i),t=!1}finally{if(t)try{this[pp](()=>{})}catch(t){}}}[mp](t){t()}[pp](t=()=>{}){void 0!==this.fd&&E.closeSync(this.fd),t()}}class yp extends cl{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(t,e,n={}){return sh(this,t,e,n)}constructor(t,e={}){const n=Cd(e);super(),this.preservePaths=!!n.preservePaths,this.portable=!!n.portable,this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.onWriteEntry=n.onWriteEntry,this.readEntry=t;const{type:r}=t;if("Unsupported"===r)throw new Error("writing entry that should be ignored");this.type=r,"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.prefix=n.prefix,this.path=oh(t.path),this.mode=void 0!==t.mode?this[fp](t.mode):void 0,this.uid=this.portable?void 0:t.uid,this.gid=this.portable?void 0:t.gid,this.uname=this.portable?void 0:t.uname,this.gname=this.portable?void 0:t.gname,this.size=t.size,this.mtime=this.noMtime?void 0:n.mtime||t.mtime,this.atime=this.portable?void 0:t.atime,this.ctime=this.portable?void 0:t.ctime,this.linkpath=void 0!==t.linkpath?oh(t.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let u=!1;if(!this.preservePaths){const[t,e]=Vh(this.path);t&&"string"==typeof e&&(this.path=e,u=t)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.onWriteEntry?.(this),this.header=new ql({path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),u&&this.warn("TAR_ENTRY_INFO",`stripping ${u} from absolute path`,{entry:this,path:u+this.path}),this.header.encode()&&!this.noPax&&super.write(new eh({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[Ep](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Ep](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());const o=this.header?.block;if(!o)throw new Error("failed to encode header");super.write(o),t.pipe(this)}[Ep](t){return Qh(t,this.prefix)}[fp](t){return $h(t,"Directory"===this.type,this.portable)}write(t,e,n){"function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,"string"==typeof e?e:"utf8"));const r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t,n)}end(t,e,n){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),"function"==typeof t&&(n=t,e=void 0,t=void 0),"function"==typeof e&&(n=e,e=void 0),"string"==typeof t&&(t=Buffer.from(t,e??"utf8")),n&&this.once("finish",n),t?super.end(t,n):super.end(n),this}}const gp=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";class Cp{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(t,e){this.path=t||"./",this.absolute=e}}const Fp=Buffer.alloc(1024),wp=Symbol("onStat"),Dp=Symbol("ended"),Bp=Symbol("queue"),Ip=Symbol("current"),Rp=Symbol("process"),jp=Symbol("processing"),Sp=Symbol("processJob"),_p=Symbol("jobs"),Up=Symbol("jobDone"),Pp=Symbol("addFSEntry"),Op=Symbol("addTarEntry"),kp=Symbol("stat"),xp=Symbol("readdir"),Tp=Symbol("onreaddir"),Lp=Symbol("pipe"),Np=Symbol("entry"),qp=Symbol("entryOpt"),Mp=Symbol("writeEntryClass"),Gp=Symbol("write"),zp=Symbol("ondrain");class $p extends cl{opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[Mp];onWriteEntry;[Bp];[_p]=0;[jp]=!1;[Dp]=!1;constructor(t={}){if(super(),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=oh(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this.onWriteEntry=t.onWriteEntry,this[Mp]=Ap,"function"==typeof t.onwarn&&this.on("warn",t.onwarn),this.portable=!!t.portable,t.gzip||t.brotli){if(t.gzip&&t.brotli)throw new TypeError("gzip and brotli are mutually exclusive");if(t.gzip&&("object"!=typeof t.gzip&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new gl(t.gzip)),t.brotli&&("object"!=typeof t.brotli&&(t.brotli={}),this.zip=new wl(t.brotli)),!this.zip)throw new Error("impossible");const e=this.zip;e.on("data",t=>super.write(t)),e.on("end",()=>super.end()),e.on("drain",()=>this[zp]()),this.on("resume",()=>e.resume())}else this.on("drain",this[zp]);this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,t.mtime&&(this.mtime=t.mtime),this.filter="function"==typeof t.filter?t.filter:()=>!0,this[Bp]=new Bl,this[_p]=0,this.jobs=Number(t.jobs)||4,this[jp]=!1,this[Dp]=!1}[Gp](t){return super.write(t)}add(t){return this.write(t),this}end(t,e,n){return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t&&this.add(t),this[Dp]=!0,this[Rp](),n&&n(),this}write(t){if(this[Dp])throw new Error("write after end");return t instanceof ih?this[Op](t):this[Pp](t),this.flowing}[Op](t){const e=oh(C.resolve(this.cwd,t.path));if(this.filter(t.path,t)){const n=new Cp(t.path,e);n.entry=new yp(t,this[qp](n)),n.entry.on("end",()=>this[Up](n)),this[_p]+=1,this[Bp].push(n)}else t.resume();this[Rp]()}[Pp](t){const e=oh(C.resolve(this.cwd,t));this[Bp].push(new Cp(t,e)),this[Rp]()}[kp](t){t.pending=!0,this[_p]+=1;const e=this.follow?"stat":"lstat";E[e](t.absolute,(e,n)=>{t.pending=!1,this[_p]-=1,e?this.emit("error",e):this[wp](t,n)})}[wp](t,e){this.statCache.set(t.absolute,e),t.stat=e,this.filter(t.path,e)||(t.ignore=!0),this[Rp]()}[xp](t){t.pending=!0,this[_p]+=1,E.readdir(t.absolute,(e,n)=>{if(t.pending=!1,this[_p]-=1,e)return this.emit("error",e);this[Tp](t,n)})}[Tp](t,e){this.readdirCache.set(t.absolute,e),t.readdir=e,this[Rp]()}[Rp](){if(!this[jp]){this[jp]=!0;for(let t=this[Bp].head;t&&this[_p]<this.jobs;t=t.next)if(this[Sp](t.value),t.value.ignore){const e=t.next;this[Bp].removeNode(t),t.next=e}this[jp]=!1,this[Dp]&&!this[Bp].length&&0===this[_p]&&(this.zip?this.zip.end(Fp):(super.write(Fp),super.end()))}}get[Ip](){return this[Bp]&&this[Bp].head&&this[Bp].head.value}[Up](t){this[Bp].shift(),this[_p]-=1,this[Rp]()}[Sp](t){if(!t.pending)if(t.entry)t!==this[Ip]||t.piped||this[Lp](t);else{if(!t.stat){const e=this.statCache.get(t.absolute);e?this[wp](t,e):this[kp](t)}if(t.stat&&!t.ignore){if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){const e=this.readdirCache.get(t.absolute);if(e?this[Tp](t,e):this[xp](t),!t.readdir)return}t.entry=this[Np](t),t.entry?t!==this[Ip]||t.piped||this[Lp](t):t.ignore=!0}}}[qp](t){return{onwarn:(t,e,n)=>this.warn(t,e,n),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[Np](t){this[_p]+=1;try{return new this[Mp](t.path,this[qp](t)).on("end",()=>this[Up](t)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[zp](){this[Ip]&&this[Ip].entry&&this[Ip].entry.resume()}[Lp](t){t.piped=!0,t.readdir&&t.readdir.forEach(e=>{const n=t.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Pp](r+e)});const e=t.entry,n=this.zip;if(!e)throw new Error("cannot pipe without source");n?e.on("data",t=>{n.write(t)||e.pause()}):e.on("data",t=>{super.write(t)||e.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(t,e,n={}){sh(this,t,e,n)}}class Wp extends $p{sync=!0;constructor(t){super(t),this[Mp]=bp}pause(){}resume(){}[kp](t){const e=this.follow?"statSync":"lstatSync";this[wp](t,E[e](t.absolute))}[xp](t){this[Tp](t,E.readdirSync(t.absolute))}[Lp](t){const e=t.entry,n=this.zip;if(t.readdir&&t.readdir.forEach(e=>{const n=t.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Pp](r+e)}),!e)throw new Error("Cannot pipe without source");n?e.on("data",t=>{n.write(t)}):e.on("data",t=>{super[Gp](t)})}}const Jp=(t,e)=>{e.forEach(e=>{"@"===e.charAt(0)?zh({file:O.resolve(t.cwd,e.slice(1)),sync:!0,noResume:!0,onReadEntry:e=>t.add(e)}):t.add(e)}),t.end()},Vp=async(t,e)=>{for(let n=0;n<e.length;n++){const r=String(e[n]);"@"===r.charAt(0)?await zh({file:O.resolve(String(t.cwd),r.slice(1)),noResume:!0,onReadEntry:e=>{t.add(e)}}):t.add(r)}t.end()},Hp=Fd((t,e)=>{const n=new Wp(t),r=new bd(t.file,{mode:t.mode||438});n.pipe(r),Jp(n,e)},(t,e)=>{const n=new $p(t),r=new Ad(t.file,{mode:t.mode||438});n.pipe(r);const u=new Promise((t,e)=>{r.on("error",e),r.on("close",t),n.on("error",e)});return Vp(n,e),u},(t,e)=>{const n=new Wp(t);return Jp(n,e),n},(t,e)=>{const n=new $p(t);return Vp(n,e),n},(t,e)=>{if(!e?.length)throw new TypeError("no paths specified to add to archive")}),Zp="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:Yp,O_TRUNC:Kp,O_WRONLY:Xp}=E.constants,Qp=Number(process.env.__FAKE_FS_O_FILENAME__)||E.constants.UV_FS_O_FILEMAP||0,tf=Qp|Kp|Yp|Xp,ef=Zp&&!!Qp?t=>t<524288?tf:"w":()=>"w",nf=(t,e,n)=>{try{return N.lchownSync(t,e,n)}catch(t){if("ENOENT"!==t?.code)throw t}},rf=(t,e,n,r)=>{N.lchown(t,e,n,t=>{r(t&&"ENOENT"!==t?.code?t:null)})},uf=(t,e,n,r,u)=>{if(e.isDirectory())of(O.resolve(t,e.name),n,r,o=>{if(o)return u(o);const i=O.resolve(t,e.name);rf(i,n,r,u)});else{const o=O.resolve(t,e.name);rf(o,n,r,u)}},of=(t,e,n,r)=>{N.readdir(t,{withFileTypes:!0},(u,o)=>{if(u){if("ENOENT"===u.code)return r();if("ENOTDIR"!==u.code&&"ENOTSUP"!==u.code)return r(u)}if(u||!o.length)return rf(t,e,n,r);let i=o.length,s=null;const a=u=>{if(!s)return u?r(s=u):0===--i?rf(t,e,n,r):void 0};for(const r of o)uf(t,r,e,n,a)})},sf=(t,e,n,r)=>{e.isDirectory()&&af(O.resolve(t,e.name),n,r),nf(O.resolve(t,e.name),n,r)},af=(t,e,n)=>{let r;try{r=N.readdirSync(t,{withFileTypes:!0})}catch(r){const u=r;if("ENOENT"===u?.code)return;if("ENOTDIR"===u?.code||"ENOTSUP"===u?.code)return nf(t,e,n);throw u}for(const u of r)sf(t,u,e,n);return nf(t,e,n)},cf=t=>{if(t)if("object"==typeof t)t={mode:511,...t};else if("number"==typeof t)t={mode:t};else{if("string"!=typeof t)throw new TypeError("invalid options argument");t={mode:parseInt(t,8)}}else t={mode:511};const e=t,n=t.fs||{};return t.mkdir=t.mkdir||n.mkdir||A,t.mkdirAsync=t.mkdirAsync?t.mkdirAsync:async(t,n)=>new Promise((r,u)=>e.mkdir(t,n,(t,e)=>t?u(t):r(e))),t.stat=t.stat||n.stat||b,t.statAsync=t.statAsync?t.statAsync:async t=>new Promise((n,r)=>e.stat(t,(t,e)=>t?r(t):n(e))),t.statSync=t.statSync||n.statSync||y,t.mkdirSync=t.mkdirSync||n.mkdirSync||g,e},df=(t,e,n)=>{const r=w(t),u={...cf(e),recursive:!1};if(r===t)try{return u.mkdirSync(t,u)}catch(t){if(t&&"EISDIR"!==t.code)throw t;return}try{return u.mkdirSync(t,u),n||t}catch(e){const o=e;if(o&&"ENOENT"===o.code)return df(t,u,df(r,u,n));if(o&&"EEXIST"!==o.code&&o&&"EROFS"!==o.code)throw e;try{if(!u.statSync(t).isDirectory())throw e}catch(t){throw e}}},lf=Object.assign(async(t,e,n)=>{const r=cf(e);r.recursive=!1;const u=w(t);return u===t?r.mkdirAsync(t,r).catch(t=>{if(t&&"EISDIR"!==t.code)throw t}):r.mkdirAsync(t,r).then(()=>n||t,async e=>{const o=e;if(o&&"ENOENT"===o.code)return lf(u,r).then(e=>lf(t,r,e));if(o&&"EEXIST"!==o.code&&"EROFS"!==o.code)throw e;return r.statAsync(t).then(t=>{if(t.isDirectory())return n;throw e},()=>{throw e})})},{sync:df}),hf=async(t,e,n)=>{if(n!==e)return t.statAsync(e).then(t=>t.isDirectory()?n:void 0,n=>n&&"ENOENT"===n.code?hf(t,w(e),e):void 0)},pf=(t,e,n)=>{if(n!==e)try{return t.statSync(e).isDirectory()?n:void 0}catch(n){return n&&"ENOENT"===n.code?pf(t,w(e),e):void 0}},ff=(t,e)=>{const n=cf(e);n.recursive=!0;if(w(t)===t)return n.mkdirSync(t,n);const r=pf(n,t);try{return n.mkdirSync(t,n),r}catch(e){if(e&&"ENOENT"===e.code)return df(t,n);throw e}},mf=Object.assign(async(t,e)=>{const n={...cf(e),recursive:!0};return w(t)===t?await n.mkdirAsync(t,n):hf(n,t).then(e=>n.mkdirAsync(t,n).then(t=>e||t).catch(e=>{if(e&&"ENOENT"===e.code)return lf(t,n);throw e}))},{sync:ff}),vf=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,Ef=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=D(t),"win32"===vf){const e=/[*|"<>?:]/,{root:n}=F(t);if(e.test(t.substring(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t},Af=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),bf=+Af[0]>10||10===+Af[0]&&+Af[1]>=12,yf=bf?t=>cf(t).mkdirSync===g:()=>!1,gf=Object.assign(bf?t=>cf(t).mkdir===A:()=>!1,{sync:yf}),Cf=(t,e)=>{t=Ef(t);const n=cf(e);return yf(n)?ff(t,n):df(t,n)},Ff=Object.assign(async(t,e)=>{t=Ef(t);const n=cf(e);return gf(n)?mf(t,n):lf(t,n)},{mkdirpSync:Cf,mkdirpNative:mf,mkdirpNativeSync:ff,mkdirpManual:lf,mkdirpManualSync:df,sync:Cf,native:mf,nativeSync:ff,manual:lf,manualSync:df,useNative:gf,useNativeSync:yf});class wf extends Error{path;code;syscall="chdir";constructor(t,e){super(`${e}: Cannot cd into '${t}'`),this.path=t,this.code=e}get name(){return"CwdError"}}class Df extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(t,e){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=t,this.path=e}get name(){return"SymlinkError"}}const Bf=(t,e)=>t.get(oh(e)),If=(t,e,n)=>t.set(oh(e),n),Rf=(t,e,n)=>{t=oh(t);const r=e.umask??18,u=448|e.mode,o=0!==(u&r),i=e.uid,s=e.gid,a="number"==typeof i&&"number"==typeof s&&(i!==e.processUid||s!==e.processGid),c=e.preserve,d=e.unlink,l=e.cache,h=oh(e.cwd),p=(e,r)=>{e?n(e):(If(l,t,!0),r&&a?of(r,i,s,t=>p(t)):o?E.chmod(t,u,n):n())};if(l&&!0===Bf(l,t))return p();if(t===h)return((t,e)=>{E.stat(t,(n,r)=>{!n&&r.isDirectory()||(n=new wf(t,n?.code||"ENOTDIR")),e(n)})})(t,p);if(c)return Ff(t,{mode:u}).then(t=>p(null,t??void 0),p);const f=oh(O.relative(h,t)).split("/");jf(h,f,u,l,d,h,void 0,p)},jf=(t,e,n,r,u,o,i,s)=>{if(!e.length)return s(null,i);const a=e.shift(),c=oh(O.resolve(t+"/"+a));if(Bf(r,c))return jf(c,e,n,r,u,o,i,s);E.mkdir(c,n,Sf(c,e,n,r,u,o,i,s))},Sf=(t,e,n,r,u,o,i,s)=>a=>{a?E.lstat(t,(c,d)=>{if(c)c.path=c.path&&oh(c.path),s(c);else if(d.isDirectory())jf(t,e,n,r,u,o,i,s);else if(u)E.unlink(t,a=>{if(a)return s(a);E.mkdir(t,n,Sf(t,e,n,r,u,o,i,s))});else{if(d.isSymbolicLink())return s(new Df(t,t+"/"+e.join("/")));s(a)}}):jf(t,e,n,r,u,o,i=i||t,s)},_f=(t,e)=>{t=oh(t);const n=e.umask??18,r=448|e.mode,u=0!==(r&n),o=e.uid,i=e.gid,s="number"==typeof o&&"number"==typeof i&&(o!==e.processUid||i!==e.processGid),a=e.preserve,c=e.unlink,d=e.cache,l=oh(e.cwd),h=e=>{If(d,t,!0),e&&s&&af(e,o,i),u&&E.chmodSync(t,r)};if(d&&!0===Bf(d,t))return h();if(t===l)return(t=>{let e,n=!1;try{n=E.statSync(t).isDirectory()}catch(t){e=t?.code}finally{if(!n)throw new wf(t,e??"ENOTDIR")}})(l),h();if(a)return h(Cf(t,r)??void 0);const p=oh(O.relative(l,t)).split("/");let f;for(let t=p.shift(),e=l;t&&(e+="/"+t);t=p.shift())if(e=oh(O.resolve(e)),!Bf(d,e))try{E.mkdirSync(e,r),f=f||e,If(d,e,!0)}catch(t){const n=E.lstatSync(e);if(n.isDirectory()){If(d,e,!0);continue}if(c){E.unlinkSync(e),E.mkdirSync(e,r),f=f||e,If(d,e,!0);continue}if(n.isSymbolicLink())return new Df(e,e+"/"+p.join("/"))}return h(f)},Uf=Object.create(null),{hasOwnProperty:Pf}=Object.prototype,Of=t=>(Pf.call(Uf,t)||(Uf[t]=t.normalize("NFD")),Uf[t]),kf="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform);class xf{#p=new Map;#f=new Map;#m=new Set;reserve(t,e){t=kf?["win32 parallelization disabled"]:t.map(t=>Mh(L(Of(t))).toLowerCase());const n=new Set(t.map(t=>(t=>{const e=t.split("/").slice(0,-1).reduce((t,e)=>{const n=t[t.length-1];return void 0!==n&&(e=L(n,e)),t.push(e||"/"),t},[]);return e})(t)).reduce((t,e)=>t.concat(e)));this.#f.set(e,{dirs:n,paths:t});for(const n of t){const t=this.#p.get(n);t?t.push(e):this.#p.set(n,[e])}for(const t of n){const n=this.#p.get(t);if(n){const t=n[n.length-1];t instanceof Set?t.add(e):n.push(new Set([e]))}else this.#p.set(t,[new Set([e])])}return this.#v(e)}#E(t){const e=this.#f.get(t);if(!e)throw new Error("function does not have any path reservations");return{paths:e.paths.map(t=>this.#p.get(t)),dirs:[...e.dirs].map(t=>this.#p.get(t))}}check(t){const{paths:e,dirs:n}=this.#E(t);return e.every(e=>e&&e[0]===t)&&n.every(e=>e&&e[0]instanceof Set&&e[0].has(t))}#v(t){return!(this.#m.has(t)||!this.check(t))&&(this.#m.add(t),t(()=>this.#A(t)),!0)}#A(t){if(!this.#m.has(t))return!1;const e=this.#f.get(t);if(!e)throw new Error("invalid reservation");const{paths:n,dirs:r}=e,u=new Set;for(const e of n){const n=this.#p.get(e);if(!n||n?.[0]!==t)continue;const r=n[1];if(r)if(n.shift(),"function"==typeof r)u.add(r);else for(const t of r)u.add(t);else this.#p.delete(e)}for(const e of r){const n=this.#p.get(e),r=n?.[0];if(n&&r instanceof Set)if(1!==r.size||1!==n.length)if(1===r.size){n.shift();const t=n[0];"function"==typeof t&&u.add(t)}else r.delete(t);else this.#p.delete(e)}return this.#m.delete(t),u.forEach(t=>this.#v(t)),!0}}const Tf=Symbol("onEntry"),Lf=Symbol("checkFs"),Nf=Symbol("checkFs2"),qf=Symbol("pruneCache"),Mf=Symbol("isReusable"),Gf=Symbol("makeFs"),zf=Symbol("file"),$f=Symbol("directory"),Wf=Symbol("link"),Jf=Symbol("symlink"),Vf=Symbol("hardlink"),Hf=Symbol("unsupported"),Zf=Symbol("checkPath"),Yf=Symbol("mkdir"),Kf=Symbol("onError"),Xf=Symbol("pending"),Qf=Symbol("pend"),tm=Symbol("unpend"),em=Symbol("ended"),nm=Symbol("maybeClose"),rm=Symbol("skip"),um=Symbol("doChown"),om=Symbol("uid"),im=Symbol("gid"),sm=Symbol("checkedCwd"),am="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),cm=(t,e,n)=>void 0!==t&&t===t>>>0?t:void 0!==e&&e===e>>>0?e:n,dm=t=>Mh(oh(Of(t))).toLowerCase();class lm extends qh{[em]=!1;[sm]=!1;[Xf]=0;reservations=new xf;transform;writable=!0;readable=!1;dirCache;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(t={}){if(t.ondone=()=>{this[em]=!0,this[nm]()},super(t),this.transform=t.transform,this.dirCache=t.dirCache||new Map,this.chmod=!!t.chmod,"number"==typeof t.uid||"number"==typeof t.gid){if("number"!=typeof t.uid||"number"!=typeof t.gid)throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;void 0===t.preserveOwner&&"number"!=typeof t.uid?this.preserveOwner=!(!process.getuid||0!==process.getuid()):this.preserveOwner=!!t.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1024,this.forceChown=!0===t.forceChown,this.win32=!!t.win32||am,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=oh(O.resolve(t.cwd||process.cwd())),this.strip=Number(t.strip)||0,this.processUmask=this.chmod?"number"==typeof t.processUmask?t.processUmask:process.umask():0,this.umask="number"==typeof t.umask?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",t=>this[Tf](t))}warn(t,e,n={}){return"TAR_BAD_ARCHIVE"!==t&&"TAR_ABORT"!==t||(n.recoverable=!1),super.warn(t,e,n)}[nm](){this[em]&&0===this[Xf]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Zf](t){const e=oh(t.path),n=e.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===t.type){const e=oh(String(t.linkpath)).split("/");if(!(e.length>=this.strip))return!1;t.linkpath=e.slice(this.strip).join("/")}n.splice(0,this.strip),t.path=n.join("/")}if(isFinite(this.maxDepth)&&n.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:e,depth:n.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(n.includes("..")||am&&/^[a-z]:\.\.$/i.test(n[0]??""))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:e}),!1;const[r,u]=Vh(e);r&&(t.path=String(u),this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:t,path:e}))}if(O.isAbsolute(t.path)?t.absolute=oh(O.resolve(t.path)):t.absolute=oh(O.resolve(this.cwd,t.path)),!this.preservePaths&&"string"==typeof t.absolute&&0!==t.absolute.indexOf(this.cwd+"/")&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:oh(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&"Directory"!==t.type&&"GNUDumpDir"!==t.type)return!1;if(this.win32){const{root:e}=O.win32.parse(String(t.absolute));t.absolute=e+Xh(String(t.absolute).slice(e.length));const{root:n}=O.win32.parse(t.path);t.path=n+Xh(t.path.slice(n.length))}return!0}[Tf](t){if(!this[Zf](t))return t.resume();switch(M.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=448|t.mode);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Lf](t);default:return this[Hf](t)}}[Kf](t,e){"CwdError"===t.name?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:e}),this[tm](),e.resume())}[Yf](t,e,n){Rf(oh(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:e},n)}[um](t){return this.forceChown||this.preserveOwner&&("number"==typeof t.uid&&t.uid!==this.processUid||"number"==typeof t.gid&&t.gid!==this.processGid)||"number"==typeof this.uid&&this.uid!==this.processUid||"number"==typeof this.gid&&this.gid!==this.processGid}[om](t){return cm(this.uid,t.uid,this.processUid)}[im](t){return cm(this.gid,t.gid,this.processGid)}[zf](t,e){const n="number"==typeof t.mode?4095&t.mode:this.fmode,r=new Ad(String(t.absolute),{flags:ef(t.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&N.close(r.fd,()=>{}),r.write=()=>!0,this[Kf](n,t),e()});let u=1;const o=n=>{if(n)return r.fd&&N.close(r.fd,()=>{}),this[Kf](n,t),void e();0===--u&&void 0!==r.fd&&N.close(r.fd,n=>{n?this[Kf](n,t):this[tm](),e()})};r.on("finish",()=>{const e=String(t.absolute),n=r.fd;if("number"==typeof n&&t.mtime&&!this.noMtime){u++;const r=t.atime||new Date,i=t.mtime;N.futimes(n,r,i,t=>t?N.utimes(e,r,i,e=>o(e&&t)):o())}if("number"==typeof n&&this[um](t)){u++;const r=this[om](t),i=this[im](t);"number"==typeof r&&"number"==typeof i&&N.fchown(n,r,i,t=>t?N.chown(e,r,i,e=>o(e&&t)):o())}o()});const i=this.transform&&this.transform(t)||t;i!==t&&(i.on("error",n=>{this[Kf](n,t),e()}),t.pipe(i)),i.pipe(r)}[$f](t,e){const n="number"==typeof t.mode?4095&t.mode:this.dmode;this[Yf](String(t.absolute),n,n=>{if(n)return this[Kf](n,t),void e();let r=1;const u=()=>{0===--r&&(e(),this[tm](),t.resume())};t.mtime&&!this.noMtime&&(r++,N.utimes(String(t.absolute),t.atime||new Date,t.mtime,u)),this[um](t)&&(r++,N.chown(String(t.absolute),Number(this[om](t)),Number(this[im](t)),u)),u()})}[Hf](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[Jf](t,e){this[Wf](t,String(t.linkpath),"symlink",e)}[Vf](t,e){const n=oh(O.resolve(this.cwd,String(t.linkpath)));this[Wf](t,n,"link",e)}[Qf](){this[Xf]++}[tm](){this[Xf]--,this[nm]()}[rm](t){this[tm](),t.resume()}[Mf](t,e){return"File"===t.type&&!this.unlink&&e.isFile()&&e.nlink<=1&&!am}[Lf](t){this[Qf]();const e=[t.path];t.linkpath&&e.push(t.linkpath),this.reservations.reserve(e,e=>this[Nf](t,e))}[qf](t){"SymbolicLink"===t.type?(t=>{for(const e of t.keys())t.delete(e)})(this.dirCache):"Directory"!==t.type&&((t,e)=>{e=dm(e);for(const n of t.keys()){const r=dm(n);r!==e&&0!==r.indexOf(e+"/")||t.delete(n)}})(this.dirCache,String(t.absolute))}[Nf](t,e){this[qf](t);const n=n=>{this[qf](t),e(n)},r=()=>{this[Yf](this.cwd,this.dmode,e=>{if(e)return this[Kf](e,t),void n();this[sm]=!0,u()})},u=()=>{if(t.absolute!==this.cwd){const e=oh(O.dirname(String(t.absolute)));if(e!==this.cwd)return this[Yf](e,this.dmode,e=>{if(e)return this[Kf](e,t),void n();o()})}o()},o=()=>{N.lstat(String(t.absolute),(e,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(t.mtime??r.mtime)))return this[rm](t),void n();if(e||this[Mf](t,r))return this[Gf](null,t,n);if(r.isDirectory()){if("Directory"===t.type){const e=e=>this[Gf](e??null,t,n);return this.chmod&&t.mode&&(4095&r.mode)!==t.mode?N.chmod(String(t.absolute),Number(t.mode),e):e()}if(t.absolute!==this.cwd)return N.rmdir(String(t.absolute),e=>this[Gf](e??null,t,n))}if(t.absolute===this.cwd)return this[Gf](null,t,n);((t,e)=>{if(!am)return N.unlink(t,e);const n=t+".DELETE."+G(16).toString("hex");N.rename(t,n,t=>{if(t)return e(t);N.unlink(n,e)})})(String(t.absolute),e=>this[Gf](e??null,t,n))})};this[sm]?u():r()}[Gf](t,e,n){if(t)return this[Kf](t,e),void n();switch(e.type){case"File":case"OldFile":case"ContiguousFile":return this[zf](e,n);case"Link":return this[Vf](e,n);case"SymbolicLink":return this[Jf](e,n);case"Directory":case"GNUDumpDir":return this[$f](e,n)}}[Wf](t,e,n,r){N[n](e,String(t.absolute),e=>{e?this[Kf](e,t):(this[tm](),t.resume()),r()})}}const hm=t=>{try{return[null,t()]}catch(t){return[t,null]}};class pm extends lm{sync=!0;[Gf](t,e){return super[Gf](t,e,()=>{})}[Lf](t){if(this[qf](t),!this[sm]){const e=this[Yf](this.cwd,this.dmode);if(e)return this[Kf](e,t);this[sm]=!0}if(t.absolute!==this.cwd){const e=oh(O.dirname(String(t.absolute)));if(e!==this.cwd){const n=this[Yf](e,this.dmode);if(n)return this[Kf](n,t)}}const[e,n]=hm(()=>N.lstatSync(String(t.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(t.mtime??n.mtime)))return this[rm](t);if(e||this[Mf](t,n))return this[Gf](null,t);if(n.isDirectory()){if("Directory"===t.type){const e=this.chmod&&t.mode&&(4095&n.mode)!==t.mode,[r]=e?hm(()=>{N.chmodSync(String(t.absolute),Number(t.mode))}):[];return this[Gf](r,t)}const[e]=hm(()=>N.rmdirSync(String(t.absolute)));this[Gf](e,t)}const[r]=t.absolute===this.cwd?[]:hm(()=>(t=>{if(!am)return N.unlinkSync(t);const e=t+".DELETE."+G(16).toString("hex");N.renameSync(t,e),N.unlinkSync(e)})(String(t.absolute)));this[Gf](r,t)}[zf](t,e){const n="number"==typeof t.mode?4095&t.mode:this.fmode,r=n=>{let r;try{N.closeSync(u)}catch(t){r=t}(n||r)&&this[Kf](n||r,t),e()};let u;try{u=N.openSync(String(t.absolute),ef(t.size),n)}catch(t){return r(t)}const o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",e=>this[Kf](e,t)),t.pipe(o)),o.on("data",t=>{try{N.writeSync(u,t,0,t.length)}catch(t){r(t)}}),o.on("end",()=>{let e=null;if(t.mtime&&!this.noMtime){const n=t.atime||new Date,r=t.mtime;try{N.futimesSync(u,n,r)}catch(u){try{N.utimesSync(String(t.absolute),n,r)}catch(t){e=u}}}if(this[um](t)){const n=this[om](t),r=this[im](t);try{N.fchownSync(u,Number(n),Number(r))}catch(u){try{N.chownSync(String(t.absolute),Number(n),Number(r))}catch(t){e=e||u}}}r(e)})}[$f](t,e){const n="number"==typeof t.mode?4095&t.mode:this.dmode,r=this[Yf](String(t.absolute),n);if(r)return this[Kf](r,t),void e();if(t.mtime&&!this.noMtime)try{N.utimesSync(String(t.absolute),t.atime||new Date,t.mtime)}catch(r){}if(this[um](t))try{N.chownSync(String(t.absolute),Number(this[om](t)),Number(this[im](t)))}catch(r){}e(),t.resume()}[Yf](t,e){try{return _f(oh(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:e})}catch(t){return t}}[Wf](t,e,n,r){const u=`${n}Sync`;try{N[u](e,String(t.absolute)),r(),t.resume()}catch(e){return this[Kf](e,t)}}}const fm=Fd(t=>{const e=new pm(t),n=t.file,r=N.statSync(n),u=t.maxReadSize||16777216;new Ed(n,{readSize:u,size:r.size}).pipe(e)},(t,e)=>{const n=new lm(t),r=t.maxReadSize||16777216,u=t.file,o=new Promise((t,e)=>{n.on("error",e),n.on("close",t),N.stat(u,(t,o)=>{if(t)e(t);else{const t=new vd(u,{readSize:r,size:o.size});t.on("error",e),t.pipe(n)}})});return o},t=>new pm(t),t=>new lm(t),(t,e)=>{e?.length&&Gh(t,e)}),mm=(t,e,n,r,u)=>{const o=new bd(t.file,{fd:r,start:n});e.pipe(o),vm(e,u)},vm=(t,e)=>{e.forEach(e=>{"@"===e.charAt(0)?zh({file:O.resolve(t.cwd,e.slice(1)),sync:!0,noResume:!0,onReadEntry:e=>t.add(e)}):t.add(e)}),t.end()},Em=async(t,e)=>{for(let n=0;n<e.length;n++){const r=String(e[n]);"@"===r.charAt(0)?await zh({file:O.resolve(String(t.cwd),r.slice(1)),noResume:!0,onReadEntry:e=>t.add(e)}):t.add(r)}t.end()},Am=Fd((t,e)=>{const n=new Wp(t);let r,u,o=!0;try{try{r=N.openSync(t.file,"r+")}catch(e){if("ENOENT"!==e?.code)throw e;r=N.openSync(t.file,"w+")}const i=N.fstatSync(r),s=Buffer.alloc(512);t:for(u=0;u<i.size;u+=512){for(let t=0,e=0;t<512;t+=e){if(e=N.readSync(r,s,t,s.length-t,u+t),0===u&&31===s[0]&&139===s[1])throw new Error("cannot append to compressed archives");if(!e)break t}const e=new ql(s);if(!e.cksumValid)break;const n=512*Math.ceil((e.size||0)/512);if(u+n+512>i.size)break;u+=n,t.mtimeCache&&e.mtime&&t.mtimeCache.set(String(e.path),e.mtime)}o=!1,mm(t,n,u,r,e)}finally{if(o)try{N.closeSync(r)}catch(t){}}},(t,e)=>{e=Array.from(e);const n=new $p(t),r=new Promise((r,u)=>{n.on("error",u);let o="r+";const i=(s,a)=>s&&"ENOENT"===s.code&&"r+"===o?(o="w+",N.open(t.file,o,i)):s||!a?u(s):void N.fstat(a,(o,i)=>{if(o)return N.close(a,()=>u(o));((e,n,r)=>{const u=(t,n)=>{t?N.close(e,e=>r(t)):r(null,n)};let o=0;if(0===n)return u(null,0);let i=0;const s=Buffer.alloc(512),a=(r,c)=>{if(r||void 0===c)return u(r);if(i+=c,i<512&&c)return N.read(e,s,i,s.length-i,o+i,a);if(0===o&&31===s[0]&&139===s[1])return u(new Error("cannot append to compressed archives"));if(i<512)return u(null,o);const d=new ql(s);if(!d.cksumValid)return u(null,o);const l=512*Math.ceil((d.size??0)/512);return o+l+512>n?u(null,o):(o+=l+512,o>=n?u(null,o):(t.mtimeCache&&d.mtime&&t.mtimeCache.set(String(d.path),d.mtime),i=0,void N.read(e,s,0,512,o,a)))};N.read(e,s,0,512,o,a)})(a,i.size,(o,i)=>{if(o)return u(o);const s=new Ad(t.file,{fd:a,start:i});n.pipe(s),s.on("error",u),s.on("close",r),Em(n,e)})});N.open(t.file,o,i)});return r},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(t,e)=>{if(!t.file)throw new TypeError("file is required");if(t.gzip||t.brotli||t.file.endsWith(".br")||t.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e?.length)throw new TypeError("no paths specified to add/replace")});Fd(Am.syncFile,Am.asyncFile,Am.syncNoFile,Am.asyncNoFile,(t,e=[])=>{Am.validate?.(t,e),bm(t)});const bm=t=>{const e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(n,r)=>e(n,r)&&!((t.mtimeCache?.get(n)??r.mtime??0)>(r.mtime??0)):(e,n)=>!((t.mtimeCache?.get(e)??n.mtime??0)>(n.mtime??0))};function ym(t){return Array.isArray(t)?t:[t]}const gm=/^\s+$/,Cm=/(?:[^\\]|^)\\$/,Fm=/^\\!/,wm=/^\\#/,Dm=/\r?\n/g,Bm=/^\.*\/|^\.+$/;let Im="node-ignore";"undefined"!=typeof Symbol&&(Im=Symbol.for("node-ignore"));const Rm=Im,jm=/([0-z])-([0-z])/g,Sm=()=>!1,_m=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,n)=>e+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{const{length:n}=e;return e.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,n)=>e+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,n)=>e+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,n,r,u)=>"\\"===e?`\\[${n}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(r)}${u}`:"]"===u&&r.length%2==0?`[${(t=>t.replace(jm,(t,e,n)=>e.charCodeAt(0)<=n.charCodeAt(0)?t:""))(n)}${r}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Um=Object.create(null),Pm=t=>"string"==typeof t;class Om{constructor(t,e,n,r){this.origin=t,this.pattern=e,this.negative=n,this.regex=r}}const km=(t,e)=>{const n=t;let r=!1;0===t.indexOf("!")&&(r=!0,t=t.substr(1));const u=((t,e)=>{let n=Um[t];return n||(n=_m.reduce((e,[n,r])=>e.replace(n,r.bind(t)),t),Um[t]=n),e?new RegExp(n,"i"):new RegExp(n)})(t=t.replace(Fm,"!").replace(wm,"#"),e);return new Om(n,t,r,u)},xm=(t,e)=>{throw new e(t)},Tm=(t,e,n)=>{if(!Pm(t))return n(`path must be a string, but got \`${e}\``,TypeError);if(!t)return n("path must not be empty",TypeError);if(Tm.isNotRelative(t)){return n(`path should be a ${"`path.relative()`d"} string, but got "${e}"`,RangeError)}return!0},Lm=t=>Bm.test(t);Tm.isNotRelative=Lm,Tm.convert=t=>t;class Nm{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:n=!1}={}){var r,u,o;r=this,u=Rm,o=!0,Object.defineProperty(r,u,{value:o}),this._rules=[],this._ignoreCase=e,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[Rm])return this._rules=this._rules.concat(t._rules),void(this._added=!0);if((t=>t&&Pm(t)&&!gm.test(t)&&!Cm.test(t)&&0!==t.indexOf("#"))(t)){const e=km(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,ym(Pm(t)?(t=>t.split(Dm))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,e){let n=!1,r=!1;return this._rules.forEach(u=>{const{negative:o}=u;if(r===o&&n!==r||o&&!n&&!r&&!e)return;u.regex.test(t)&&(n=!o,r=o)}),{ignored:n,unignored:r}}_test(t,e,n,r){const u=t&&Tm.convert(t);return Tm(u,t,this._allowRelativePaths?Sm:xm),this._t(u,e,n,r)}_t(t,e,n,r){if(t in e)return e[t];if(r||(r=t.split("/")),r.pop(),!r.length)return e[t]=this._testOne(t,n);const u=this._t(r.join("/")+"/",e,n,r);return e[t]=u.ignored?u:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return ym(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const qm=t=>new Nm(t);qm.isPathValid=t=>Tm(t&&Tm.convert(t),t,Sm),qm.default=qm;var Mm=qm;if("undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");Tm.convert=t;const e=/^[a-z]:\//i;Tm.isNotRelative=t=>e.test(t)||Lm(t)}var Gm,zm=function(){function t(t,e){var n=this;if(this.exec=t,this.parameters=e,this.defaultEncoding="base64",this.getFileIgnoreFilter=function(t){if(void 0!==t){var e=Mm({allowRelativePaths:!0}).add(t);return function(t){return!e.ignores(t)}}},this.getTarTransformFn=function(t,e){return function(n){n.path=n.path.replace(t,e)}},this.ensureDirRemote=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){switch(u.label){case 0:return e=["mkdir","-p",t],[4,this.runCommand(e)];case 1:if(n=u.sent(),"Success"!==(null===(r=null==n?void 0:n.commandResult)||void 0===r?void 0:r.status))throw new Error("Failed creating remote directory.");return[2]}})})},this.ensureTarCmd=function(){return J(n,void 0,void 0,function(){var t,e,n;return V(this,function(r){switch(r.label){case 0:return t=["tar","--version"],[4,this.runCommand(t)];case 1:if(e=r.sent(),"Success"!==(null===(n=null==e?void 0:e.commandResult)||void 0===n?void 0:n.status))throw new Error("Tar command not found on remote container. Required for file copy.");return[2]}})})},this.pathExistsRemote=function(t){return J(n,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return e=["test","-e",t],[4,this.runCommand(e)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.checkIsDirRemote=function(t){return J(n,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return e=["test","-d",t],[4,this.runCommand(e)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.runCommand=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o,i,s,a,c;return V(this,function(d){switch(d.label){case 0:return n=(e=this).exec,r=e.parameters,u=r.projectId,o=r.resourceId,i=r.resourceType,s=r.containerName,a={command:t,shell:"none",containerName:s},"service"!==i?[3,2]:[4,n.execServiceCommand({projectId:u,serviceId:o},a)];case 1:return c=d.sent(),[3,4];case 2:return[4,n.execJobCommand({projectId:u,jobId:o},a)];case 3:c=d.sent(),d.label=4;case 4:return[2,c]}})})},this.runSession=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o,i,s,a,c;return V(this,function(d){switch(d.label){case 0:return n=(e=this).exec,r=e.parameters,u=r.projectId,o=r.resourceId,i=r.resourceType,s=r.containerName,a={command:t,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:s},"service"!==i?[3,2]:[4,n.execServiceSession({projectId:u,serviceId:o},a)];case 1:return c=d.sent(),[3,4];case 2:return[4,n.execJobSession({projectId:u,jobId:o},a)];case 3:c=d.sent(),d.label=4;case 4:return[2,c]}})})},!["service","job"].includes(e.resourceType))throw new Error("Invalid resource type: ".concat(e.resourceType,", only 'service' and 'job' supported"))}return t.prototype.uploadFiles=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o,i,s,a,c,d,l,h,p,f;return V(this,function(m){switch(m.label){case 0:if(void 0===t||!E.existsSync(t))throw new Error("Local path '".concat(t,"' does not exists but is required for uploads."));return r=E.lstatSync(t).isFile(),u=r?C.dirname(t):t,o=r?C.basename(t):".",i=r&&void 0!==e&&""!==C.extname(e),s=i?C.dirname(e):null!=e?e:u,a=void 0!==e?C.basename(e):o,c=Hp({gzip:{encoding:this.defaultEncoding},cwd:u,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(o,a):void 0},Do(o)),[4,this.ensureTarCmd()];case 1:return m.sent(),[4,this.ensureDirRemote(s)];case 2:return m.sent(),d=H(H(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",s],!1),[4,this.runSession(d)];case 3:return l=m.sent(),h=new Io,p=new Io,l.stdErr.pipe(h),l.stdOut.pipe(p),c.pipe(l.stdIn),[4,l.waitForCommandResult()];case 4:if("Success"!==(null==(f=m.sent())?void 0:f.status))throw new Error("Failed to upload file to container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString(),"; ").concat(p.getContentsAsString()));return r?[2,{type:Gm.FILE_UPLOAD,sourceDirectory:u,sourceFile:o,targetDirectory:s,targetFile:a}]:[2,{type:Gm.DIRECTORY_UPLOAD,sourceDirectory:u,targetDirectory:s}]}})})},t.prototype.downloadFiles=function(t,e,n){return J(this,void 0,void 0,function(){var r,u,o,i,s,a,c,d,l,h,p,f,m,v;return V(this,function(A){switch(A.label){case 0:return(r=void 0===t)?[3,2]:[4,this.pathExistsRemote(t)];case 1:r=!A.sent(),A.label=2;case 2:if(r)throw new Error("Remote path '".concat(t,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(t)];case 3:return u=A.sent(),o=u?t:C.dirname(t),i=u?".":C.basename(t),s=void 0!==e&&""!==C.extname(e),a=!u&&s?C.basename(e):i,(c=void 0!==e?s?C.dirname(e):e:".")&&E.mkdirSync(c,{recursive:!0}),d=Do(null!=n?n:[]).map(function(t){return"--exclude=".concat(t)}),l=H(H(["tar","-zcf","-"],["--no-same-owner"],!0),d,!0),h=H(H([],l,!0),["-C",o,i],!1),[4,this.runSession(h)];case 4:return p=A.sent(),f=fm({cwd:c,gzip:{encoding:this.defaultEncoding},onReadEntry:a?this.getTarTransformFn(i,a):void 0}),m=new Io,p.stdErr.pipe(m),p.stdOut.pipe(f),[4,p.waitForCommandResult()];case 5:if("Success"!==(null==(v=A.sent())?void 0:v.status))throw new Error("Failed to download file from container: ".concat(null==v?void 0:v.message,", error details: ").concat(m.getContentsAsString()));return u?[2,{type:Gm.DIRECTORY_DOWNLOAD,sourceDirectory:o,targetDirectory:c}]:[2,{type:Gm.FILE_DOWNLOAD,sourceDirectory:o,sourceFile:i,targetDirectory:c,targetFile:a}]}})})},t}();!function(t){t.DIRECTORY_UPLOAD="directory-upload",t.FILE_UPLOAD="file-upload",t.DIRECTORY_DOWNLOAD="directory-download",t.FILE_DOWNLOAD="file-download"}(Gm||(Gm={}));var $m,Wm=function(){function t(t,e){this.exec=t,this.stdIgnoreList=["*.*~"],e&&(this.stdIgnoreList=e)}return t.prototype.downloadServiceFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.serviceId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(u,e,"download")];case 1:return[2,o.sent()]}})})},t.prototype.uploadServiceFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.serviceId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(u,e,"upload")];case 1:return[2,o.sent()]}})})},t.prototype.downloadJobFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.jobId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(u,e,"download")];case 1:return[2,o.sent()]}})})},t.prototype.uploadJobFiles=function(t,e){return J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:return n=t.jobId,r=t.projectId,u={projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(u,e,"upload")];case 1:return[2,o.sent()]}})})},t.prototype.copy=function(t,e,n){var r;return J(this,void 0,void 0,function(){var u,o;return V(this,function(i){switch(i.label){case 0:switch(u=new zm(this.exec,W(W({},t),{containerName:e.containerName})),o=H(H([],null!==(r=e.ignoreList)&&void 0!==r?r:[],!0),this.stdIgnoreList,!0),n){case"download":return[3,1];case"upload":return[3,3]}return[3,5];case 1:return[4,u.downloadFiles(e.remotePath,e.localPath,o)];case 2:case 4:return[2,i.sent()];case 3:return[4,u.uploadFiles(e.localPath,e.remotePath,o)];case 5:return[2]}})})},t}(),Jm=function(t){function e(e){var n=this.constructor,r=t.call(this,e.message)||this;r.name="NorthflankApiCallError",r.message=e.message,r.status=e.status,r.id=e.id,r.details=e.details;var u=n.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u,r}return $(e,t),e}(Error),Vm=function(t){function e(e,n,r,u){var o=t.call(this)||this;return o.baseUrl=e,o.logsConfig=n,o.token=r,o.agent=u,o.stop=function(){return J(o,void 0,void 0,function(){var t;return V(this,function(e){if(void 0===this.logSession)throw new Error("No command is running");return null===(t=this.remote)||void 0===t||t.close(),[2]})})},o}return $(e,t),e.getLogsEndpoint=function(t){var e=t.containerName,n=t.types,r=t.entityId,u=t.entityType,o=t.buildId,i=t.runId,s=t.backupId,a=t.restoreId,c=t.deploymentId,d=t.isBuild,l=t.lineLimit,h=t.projectId,p=t.queryType,f=t.startTime,m=t.endTime,v=t.duration,E=t.direction,A=t.textIncludes,b=t.textNotIncludes,y=t.regexIncludes,g=t.regexNotIncludes,C="/v1/projects/".concat(h,"/"),F=new URLSearchParams;return F.append("queryType",p),void 0!==f&&F.append("startTime",f.toISOString()),void 0!==m&&F.append("endTime",m.toISOString()),void 0!==l&&F.append("lineLimit",l.toString()),void 0!==e&&F.append("containerName",e),void 0!==c&&F.append("deploymentId",c),void 0!==i&&F.append("runId",i),void 0!==o&&F.append("buildId",o),void 0!==A&&F.append("textIncludes",A),void 0!==b&&F.append("textNotIncludes",b),void 0!==y&&F.append("regexIncludes",y),void 0!==g&&F.append("regexNotIncludes",g),void 0!==E&&F.append("direction",E),void 0!==v&&F.append("duration",v.toString()),void 0!==n&&n.forEach(function(t){return F.append("type",t)}),"".concat(C).concat(function(){var t=d?"/build-logs":"/logs";switch(u){case"service":return"services/".concat(r).concat(t);case"job":return"jobs/".concat(r).concat(t);case"addon":return"addons/".concat(r).concat(t);case"addonBackup":return"addons/".concat(r,"/backups/").concat(s).concat(t);case"addonRestore":return"addons/".concat(r,"/backups/").concat(s,"/restores/").concat(a).concat(t);default:throw new Error("Unexpected Northflank entity type received in logs endpoint generation: ".concat(u))}}(),"?").concat(F.toString())},Object.defineProperty(e.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(e.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),e.prototype.start=function(){return J(this,void 0,void 0,function(){var t=this;return V(this,function(e){switch(e.label){case 0:if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise(function(e,n){var r,u,o,i;void 0!==t.remote&&n(Error("Command is already running"));var s=t.logsEndpoint.replace("https:","wss:").replace("http:","ws:");t.remote=new Fa(s,{agent:t.agent}),null===(r=t.remote)||void 0===r||r.on("message",function(e){var n,r,u=JSON.parse(e.toString());switch(null==u?void 0:u.type){case"init":var o=u.data;"successful"!==o.auth&&a("Log tail initialization failed: ".concat(null!==(n=null==o?void 0:o.message)&&void 0!==n?n:"Reason unknown"));break;case"log-lines":var i=u.data;t.emit("logs-received",i.map(iv));break;case"error":a(null===(r=u.data)||void 0===r?void 0:r.message);break;default:var s="unable to parse message: ".concat(JSON.stringify(u));a(s)}}),null===(u=t.remote)||void 0===u||u.on("close",function(){t.emit("close"),t.reset(),e()}),null===(o=t.remote)||void 0===o||o.on("open",function(){t.emit("open")}),null===(i=t.remote)||void 0===i||i.on("error",function(n){t.emit("error",n),t.reset(),e()});var a=function(e){t.emit("error",{message:e}),t.reset(),n(new Error(e))}}),[4,new Promise(function(e){var n;t.remote.on("open",function(){return e()}),null===(n=t.remote)||void 0===n||n.on("error",function(){e()})})];case 1:return e.sent(),this.initialAuth(),[2,this.logSession]}})})},e.prototype.initialAuth=function(){var t,e={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};null===(t=this.remote)||void 0===t||t.send(JSON.stringify(e))},e.prototype.reset=function(){this.remote=void 0,this.logSession=void 0},e}(e),Hm=function(){if(Fo)try{return JSON.parse(E.readFileSync(C.join(C.dirname(c(import.meta.url)),"../../package.json")).toString())}catch(t){return{}}return{}},Zm=function(){function t(t,e){var n=this;this.opts=e,this.call=function(t){return J(n,void 0,void 0,function(){return V(this,function(e){return[2,this.executeCall(t)]})})},this.contextProvider=t}return t.prototype.getDefaultHeaders=function(){var t,e,n=this.contextProvider.getCurrentToken(),r=(null===(t=this.opts)||void 0===t?void 0:t.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(e=Hm())||void 0===e?void 0:e.version).concat(r)}},t.prototype.executeCall=function(t){var e;return J(this,void 0,void 0,function(){var n,r,u,o,i,s,a,c,d,l,h,p,f=this;return V(this,function(m){switch(m.label){case 0:if(n=this.method,r=this.opts.agent,u={method:n,headers:this.getDefaultHeaders(),agent:r},!(o=null===(e=this.contextProvider)||void 0===e?void 0:e.getCurrentBaseUrl()))throw new Error("Api client context not correctly initialized, please provide a url to the context.");return i="".concat(o).concat(this.endpointUrl(t)),s=this.body(t),a=W(W({url:i},u),{body:s}),[4,rv(i,W(W({},u),{body:s}))];case 1:return[4,(c=m.sent()).text()];case 2:return d=m.sent(),l=function(){if(200!==c.status){var t=null==h?void 0:h.error,e=(null==t?void 0:t.message)||"",n={status:c.status,message:e,id:null==t?void 0:t.id,details:null==t?void 0:t.details};if(f.opts.throwErrorOnHttpErrorCode)throw new Jm(n);return n}},h=function(){try{return JSON.parse(d)}catch(t){throw Error("Failed reading api request result: \n\tStatus: ".concat(c.statusText," (").concat(c.status,")\n\tMessage: ").concat(d))}}(),p=l(),[2,{data:null==h?void 0:h.data,rawResponse:c,request:a,error:p,pagination:null==h?void 0:h.pagination}]}})})},t}(),Ym=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="get",e.body=function(){},e}return $(e,t),e}(Zm),Km=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.all=function(t){return J(e,void 0,void 0,function(){return V(this,function(e){return[2,new nv(this,t).getAll()]})})},e.call=function(n){return J(e,void 0,void 0,function(){var e,r=this;return V(this,function(u){switch(u.label){case 0:return[4,t.prototype.executeCall.call(this,n)];case 1:return e=u.sent(),[2,W(W({},e),{pagination:W(W({},e.pagination),{getNextPage:function(){return J(r,void 0,void 0,function(){var t,r,u,o,i,s,a,c=this;return V(this,function(d){return void 0===(null===(s=e.pagination)||void 0===s?void 0:s.cursor)?(t=Object.keys(e.data),r=1===t.length?((i={})[t[0]]=[],i):{},u=W(W({},e),{pagination:W(W({},e.pagination),{count:0}),data:r}),[2,(o=function(t){return W(W({},t),{pagination:W(W({},t.pagination),{getNextPage:function(){return J(c,void 0,void 0,function(){return V(this,function(e){return[2,o(t)]})})}})})})(u)]):[2,new nv(this,n,null===(a=e.pagination)||void 0===a?void 0:a.cursor).getNext()]})})}})})]}})})},e}return $(e,t),e}(Ym),Xm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="post",e}return $(e,t),e}(Zm),Qm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="delete",e.body=function(){},e}return $(e,t),e}(Zm),tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="put",e}return $(e,t),e}(Zm),ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.method="patch",e}return $(e,t),e}(Zm),nv=function(){function t(t,e,n){void 0===n&&(n=null);var r=this;this.endpoint=t,this.opts=e,this._currentOffset=0,this.hasNext=function(){return void 0!==r.cursor},this.cursor=n}return Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),t.prototype.getNext=function(){var t,e,n;return J(this,void 0,void 0,function(){var r,u,o,i,s,a;return V(this,function(c){switch(c.label){case 0:return[4,this.endpoint.call(W(W({},this.opts),{options:W(W({},null===(t=this.opts)||void 0===t?void 0:t.options),{cursor:null!==(e=this.cursor)&&void 0!==e?e:void 0})}))];case 1:return r=c.sent(),u=r.data,o=r.request,i=r.error,s=r.pagination,a=r.rawResponse,this.cursor=null==s?void 0:s.cursor,this._currentOffset+=null!==(n=null==s?void 0:s.count)&&void 0!==n?n:0,[2,{data:u,request:o,error:i,pagination:s,rawResponse:a}]}})})},t.prototype.getAll=function(){var t,e;return J(this,void 0,void 0,function(){var n,r,u,o,i;return V(this,function(s){switch(s.label){case 0:n=[],s.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(r=s.sent()).error?[2,r]:(n.push(r),[3,1]);case 3:return o=n.flatMap(function(t){var e=Object.keys(t.data);return 1===e.length?(u=e[0],t.data[e[0]]):t.data}),[2,{data:void 0===u?o:(i={},i[u]=o,i),request:null===(t=n[0])||void 0===t?void 0:t.request,rawResponse:null===(e=n[0])||void 0===e?void 0:e.rawResponse}]}})})},t}(),rv=function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n=3),void 0===r&&(r=500),new Promise(function(u,o){var i=function(n){return wo(t,e).then(function(t){u(t)}).catch(function(t){return J(void 0,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return n>0?[4,(u=r,new Promise(function(t){setTimeout(function(){t()},u)}))]:[3,2];case 1:return e.sent(),[2,i(n-1)];case 2:return[2,o(t)]}var u})})})};return i(n)})},uv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Fetch log lines over a specific time span",e.withAuth=!0,e.requiredPermissions="Account > Service | Job | Addon > General > Read",e.endpointUrl=function(t){return Vm.getLogsEndpoint(t)},e.body=function(){},e}return $(e,t),e}(Ym);!function(t){t.CDN="cdn",t.Mesh="mesh",t.Ingress="ingress",t.Runtime="runtime"}($m||($m={}));var ov,iv=function(t){return{containerId:t.containerId,log:t.log,ts:new Date(t.ts)}},sv=function(t,e){void 0===e&&(e={});var n=this;this.contextProvider=t,this.clientOpts=e,this.getServiceLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.logRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.serviceId,o={entityId:u,projectId:r},[2,this.logRange(o,W(W({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.logRange(r,null!=n?n:{},"job")]})})},this.getJobBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.jobId,o={entityId:u,projectId:r},[2,this.logRange(o,W(W({},n),{isBuild:!0}),"job")]})})},this.getAddonLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logRange(r,null!=n?n:{},"addon")]})})},this.getAddonBackupLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logRange(r,W(W({},n),{backupId:e.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},u={backupId:e.backupId,restoreId:e.restoreId},[2,this.logRange(r,W(W({},n),u),"addonRestore")]})})},this.logRange=function(t,e,r){return J(n,void 0,void 0,function(){var n,u,o,i,s;return V(this,function(a){switch(a.label){case 0:return n=t.entityId,u=t.projectId,o=W(W({projectId:u,entityId:n,entityType:r},e),{queryType:"range"}),[4,new uv(this.contextProvider,this.clientOpts).call(o)];case 1:return(i=a.sent()).error?[2,i]:[2,W(W({},i),{data:null===(s=null==i?void 0:i.data)||void 0===s?void 0:s.map(iv)})]}})})},this.tailServiceLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.logTail(r,null!=n?n:{},"service")]})})},this.tailServiceBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.serviceId,u=e.projectId,o={entityId:r,projectId:u},[2,this.logTail(o,W(W({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.logTail(r,null!=n?n:{},"job")]})})},this.tailJobBuildLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.jobId,o={entityId:u,projectId:r},[2,this.logTail(o,W(W({},n),{isBuild:!0}),"job")]})})},this.tailAddonLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logTail(r,null!=n?n:{},"addon")]})})},this.tailAddonBackupLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.logTail(r,W(W({},n),{backupId:e.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(t){return J(n,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},u={backupId:e.backupId,restoreId:e.restoreId},[2,this.logTail(r,W(W({},n),u),"addonRestore")]})})},this.logTail=function(t,e,r){return J(n,void 0,void 0,function(){var n,u,o,i,s;return V(this,function(a){if(n=t.entityId,u=t.projectId,o=W({queryType:"tail",projectId:u,entityId:n,entityType:r},e),this.assertStartedWithNodejs(),i=this.contextProvider.getCurrentBaseUrl(!0),!(s=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new Vm(i,o,s,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!Fo)throw new Error("Command exec only possible when started with nodejs")}},av=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Fetch metrics entries over a specific time span",e.withAuth=!0,e.requiredPermissions="Account > Service | Job | Addon > General > Read",e.endpointUrl=function(t){var e=t.projectId,n=t.entityId,r=t.entityType,u=t.deploymentId,o=t.runId,i=t.buildId,s=t.isBuild,a=t.queryType,c=t.metricTypes,d=t.startTime,l=t.endTime,h=t.duration,p=t.containerName,f=t.timestamp,m="/v1/projects/".concat(e,"/");var v=new URLSearchParams;return v.append("queryType",a),void 0!==d&&v.append("startTime",d.toISOString()),void 0!==l&&v.append("endTime",l.toISOString()),void 0!==p&&v.append("containerName",p),void 0!==u&&v.append("deploymentId",u),void 0!==o&&v.append("runId",o),void 0!==i&&v.append("buildId",i),void 0!==f&&v.append("timestamp",f.toISOString()),void 0!==h&&v.append("duration",h.toString()),void 0!==c&&c.forEach(function(t){return v.append("metricTypes",t)}),"".concat(m).concat(function(){var t=s?"/build-metrics":"/metrics";switch(r){case"service":return"services/".concat(n).concat(t);case"job":return"jobs/".concat(n).concat(t);case"addon":return"addons/".concat(n).concat(t);default:throw new Error("Unexpected Northflank entity type received in metrics endpoint generation: ".concat(r))}}(),"?").concat(v.toString())},e.body=function(){},e}return $(e,t),e}(Ym),cv=function(t){return{metadata:t.metadata,data:t.data.map(function(t){return{value:t.value,ts:new Date(t.ts)}})}};!function(t){t.Cpu="cpu",t.Memory="memory",t.NetworkIngress="networkIngress",t.NetworkEgress="networkEgress",t.TcpConnectionOpen="tcpConnectionsOpen",t.PvcUsage="diskUsage",t.Requests="requests",t.Http4xxResponses="http4xxResponses",t.Http5xxResponses="http5xxResponses",t.Bandwidth="bandwidth",t.BandwidthVolume="bandwidthVolume"}(ov||(ov={}));var dv=function(t){var e=this;this.contextProvider=t,this.getServiceMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.metricsSingle(r,null!=n?n:{},"service")]})})},this.getServiceBuildMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.serviceId,u=e.projectId,o={entityId:r,projectId:u},[2,this.metricsSingle(o,W(W({},n),{isBuild:!0}),"service")]})})},this.getJobMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.metricsSingle(r,null!=n?n:{},"job")]})})},this.getJobBuildMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.jobId,u=e.projectId,o={entityId:r,projectId:u},[2,this.metricsSingle(o,W(W({},n),{isBuild:!0}),"job")]})})},this.getAddonMetrics=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.metricsSingle(r,null!=n?n:{},"addon")]})})},this.metricsSingle=function(t,n,r){return J(e,void 0,void 0,function(){var e,u,o;return V(this,function(i){return e=t.entityId,u=t.projectId,o=W(W({projectId:u,entityId:e,entityType:r},n),{queryType:"single"}),[2,this.getMetrics(o)]})})},this.getServiceMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.serviceId,projectId:e.projectId},[2,this.metricsRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.serviceId,o={entityId:u,projectId:r},[2,this.metricsRange(o,W(W({},n),{isBuild:!0}),"service")]})})},this.getJobMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.jobId,projectId:e.projectId},[2,this.metricsRange(r,null!=n?n:{},"job")]})})},this.getJobBuildMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r,u,o;return V(this,function(i){return e=t.parameters,n=t.options,r=e.projectId,u=e.jobId,o={entityId:u,projectId:r},[2,this.metricsRange(o,W(W({},n),{isBuild:!0}),"job")]})})},this.getAddonMetricsRange=function(t){return J(e,void 0,void 0,function(){var e,n,r;return V(this,function(u){return e=t.parameters,n=t.options,r={entityId:e.addonId,projectId:e.projectId},[2,this.metricsRange(r,null!=n?n:{},"addon")]})})},this.metricsRange=function(t,n,r){return J(e,void 0,void 0,function(){var e,u,o;return V(this,function(i){return e=t.entityId,u=t.projectId,o=W(W({projectId:u,entityId:e,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(o)]})})},this.getMetrics=function(t){return J(e,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return[4,new av(this.contextProvider,{}).call(t)];case 1:return(e=n.sent()).error?[2,e]:[2,W(W({},e),{data:Object.fromEntries(Object.entries(e.data).map(function(t){var e=t[0],n=t[1];return[e,W(W({},n),{values:n.values.map(cv)})]}))})]}})})}},lv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the available addon types",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/addon-types"},e.body=function(){},e}return $(e,t),e}(Ym),hv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the backup destinations saved to this account. Does not display secrets.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/backup-destinations".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),pv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new backup destination to this account.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Create",e.endpointUrl=function(t){return"/v1/backup-destinations"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),fv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View a backup destination, including secrets.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Read",e.endpointUrl=function(t){return["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId))},e.body=function(){},e}return $(e,t),e}(Ym),mv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a backup destination.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Update",e.endpointUrl=function(t){return["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),vv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a backup destination.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Delete",e.endpointUrl=function(t){return["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId))},e.body=function(){},e}return $(e,t),e}(Qm),Ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the backups associated with a backup destinations.",e.withAuth=!0,e.requiredPermissions="Account > BackupDestinations > General > Read",e.endpointUrl=function(t){var e;["backupDestinationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/backup-destinations/".concat(encodeURIComponent(t.parameters.backupDestinationId),"/backups").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Av=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of past invoices",e.withAuth=!0,e.requiredPermissions="Account > Billing > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/billing/invoices".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),bv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.",e.withAuth=!0,e.requiredPermissions="Account > Billing > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/billing/invoices/details".concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists supported cloud providers",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/cloud-providers"},e.body=function(){},e}return $(e,t),e}(Ym),gv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists clusters for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/clusters".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Cv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new cluster.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Create",e.endpointUrl=function(t){return"/v1/cloud-providers/clusters"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Fv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or update a cluster.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Create",e.endpointUrl=function(t){return"/v1/cloud-providers/clusters"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),wv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given cluster",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Read",e.endpointUrl=function(t){return["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId))},e.body=function(){},e}return $(e,t),e}(Ym),Dv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a cluster.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Bv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete the given cluster. Fails if the cluster has associated projects.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Delete",e.endpointUrl=function(t){return["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId))},e.body=function(){},e}return $(e,t),e}(Qm),Iv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of nodes for the given cluster",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Read",e.endpointUrl=function(t){var e;["clusterId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Rv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Cordon a node on the cluster to prevent new pods from scheduling on it.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId","nodeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes/").concat(encodeURIComponent(t.parameters.nodeId),"/cordon")},e.body=function(){},e}return $(e,t),e}(Xm),jv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Drain a node by evicting all running pods.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId","nodeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes/").concat(encodeURIComponent(t.parameters.nodeId),"/drain")},e.body=function(){},e}return $(e,t),e}(Xm),Sv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Uncordon a node on the cluster if it was previously cordoned.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Clusters > Update",e.endpointUrl=function(t){return["clusterId","nodeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/clusters/".concat(encodeURIComponent(t.parameters.clusterId),"/nodes/").concat(encodeURIComponent(t.parameters.nodeId),"/uncordon")},e.body=function(){},e}return $(e,t),e}(Xm),_v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists integrations for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/integrations".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Uv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new integration.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Create",e.endpointUrl=function(t){return"/v1/cloud-providers/integrations"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Pv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a integration.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Create",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),Ov=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given integration",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Read",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(t.parameters.integrationId))},e.body=function(){},e}return $(e,t),e}(Ym),kv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a integration.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Update",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(t.parameters.integrationId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),xv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete the given integration. Fails if the integration is associated with existing clusters.",e.withAuth=!0,e.requiredPermissions="Account > Cloud > Integrations > Delete",e.endpointUrl=function(t){return["integrationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/cloud-providers/integrations/".concat(encodeURIComponent(t.parameters.integrationId))},e.body=function(){},e}return $(e,t),e}(Qm),Tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists supported cloud provider node types",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Lv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists supported cloud provider regions",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/cloud-providers/regions".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Nv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns the partially random string used when generating host names for the authenticated account.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Read",e.endpointUrl=function(t){return"/v1/dns-id"},e.body=function(){},e}return $(e,t),e}(Ym),qv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists available domains",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/domains".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Mv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Registers a new domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Create",e.endpointUrl=function(t){return"/v1/domains"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Gv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Read",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain))},e.body=function(){},e}return $(e,t),e}(Ym),zv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a domain and each of its registered subdomains.",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Delete",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain))},e.body=function(){},e}return $(e,t),e}(Qm),$v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Retrieve certificate data for a domain to verify its contents.",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Read",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/certificate")},e.body=function(){},e}return $(e,t),e}(Ym),Wv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Import a certificate for the domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Update",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/import")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Jv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new subdomain to the domain.",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Vv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Read",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain))},e.body=function(){},e}return $(e,t),e}(Ym),Hv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Removes a subdomain from a domain.",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain))},e.body=function(){},e}return $(e,t),e}(Qm),Zv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Assigns a service port to the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/assign")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Removes a subdomain from its assigned service",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){var e;["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/assign").concat(r)},e.body=function(){},e}return $(e,t),e}(Qm),Kv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Removes the CDN integration from the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/cdn/disable")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Xv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Enables a CDN integration on the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/cdn/enable")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Qv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new path to the subdomain.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Create",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),tE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="List paths for a given subdomain.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Read",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths")},e.body=function(){},e}return $(e,t),e}(Ym),eE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get subdomain path details.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Read",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath))},e.body=function(){},e}return $(e,t),e}(Ym),nE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a path.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath))},e.body=function(){},e}return $(e,t),e}(Qm),rE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a subdomain path.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),uE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Assign a subdomain path to a port.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath),"/assign")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),oE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Unassign a subdomain path to a port.",e.withAuth=!0,e.requiredPermissions="Account > SubdomainPaths > General > Update",e.endpointUrl=function(t){return["domain","subdomain","subdomainPath"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/paths/").concat(encodeURIComponent(t.parameters.subdomainPath),"/assign")},e.body=function(){},e}return $(e,t),e}(Qm),iE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about the given subdomain",e.withAuth=!0,e.requiredPermissions="Account > Subdomains > General > Update",e.endpointUrl=function(t){return["domain","subdomain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/subdomains/").concat(encodeURIComponent(t.parameters.subdomain),"/verify")},e.body=function(){},e}return $(e,t),e}(Xm),sE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Attempts to verify the domain",e.withAuth=!0,e.requiredPermissions="Account > Domains > General > Create",e.endpointUrl=function(t){return["domain"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/domains/".concat(encodeURIComponent(t.parameters.domain),"/verify")},e.body=function(){},e}return $(e,t),e}(Xm),aE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of log sinks added to this account.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/log-sinks".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),cE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Create",e.endpointUrl=function(t){return"/v1/integrations/log-sinks"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),dE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about a given log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Read",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId))},e.body=function(){},e}return $(e,t),e}(Ym),lE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Delete",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId))},e.body=function(){},e}return $(e,t),e}(Qm),hE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pauses a given log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Update",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),pE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resumes a paused log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Update",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId),"/resume")},e.body=function(){},e}return $(e,t),e}(Xm),fE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the settings for a log sink.",e.withAuth=!0,e.requiredPermissions="Account > Sinks > General > Update",e.endpointUrl=function(t){return["logSinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/log-sinks/".concat(encodeURIComponent(t.parameters.logSinkId),"/settings")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),mE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists notification integrations for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/notifications".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),vE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Create a new notification integration.",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Manage",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),EE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about a notification integration.",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Read",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(t.parameters.notificationId))},e.body=function(){},e}return $(e,t),e}(Ym),AE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a notification integration",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Manage",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(t.parameters.notificationId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),bE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a notification integration",e.withAuth=!0,e.requiredPermissions="Account > Team > Notifications > Manage",e.endpointUrl=function(t){return["notificationId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/notifications/".concat(encodeURIComponent(t.parameters.notificationId))},e.body=function(){},e}return $(e,t),e}(Qm),yE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the container registry credentials saved to this account. Does not display secrets.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/registries".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),gE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Adds a new set of container registry credentials to this account.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Create",e.endpointUrl=function(t){return"/v1/integrations/registries"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),CE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Views a set of registry credential data.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Read Encrypted",e.endpointUrl=function(t){return["credentialId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(t.parameters.credentialId))},e.body=function(){},e}return $(e,t),e}(Ym),FE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a set of registry credential data.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Update",e.endpointUrl=function(t){return["credentialId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(t.parameters.credentialId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),wE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a set of registry credential data.",e.withAuth=!0,e.requiredPermissions="Account > Credentials > General > Delete",e.endpointUrl=function(t){return["credentialId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/integrations/registries/".concat(encodeURIComponent(t.parameters.credentialId))},e.body=function(){},e}return $(e,t),e}(Qm),DE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists linked version control providers",e.withAuth=!0,e.requiredPermissions="Account > Git > General > Read",e.endpointUrl=function(t){return"/v1/integrations/vcs"},e.body=function(){},e}return $(e,t),e}(Ym),BE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Generate a token for a specific VCS link.",e.withAuth=!0,e.requiredPermissions="Account > Git > Tokens > Read",e.endpointUrl=function(t){var e;["customVCSId","vcsLinkId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/vcs/custom/".concat(encodeURIComponent(t.parameters.customVCSId),"/token/").concat(encodeURIComponent(t.parameters.vcsLinkId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Xm),IE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of repositories accessible to this account",e.withAuth=!0,e.requiredPermissions="Account > Git > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/vcs/repos".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),RE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of branches for the repo",e.withAuth=!0,e.requiredPermissions="Account > Git > General > Read",e.endpointUrl=function(t){var e;["vcsService","repositoryOwner","repositoryName"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/integrations/vcs/repos/".concat(encodeURIComponent(t.parameters.vcsService),"/").concat(encodeURIComponent(t.parameters.repositoryOwner),"/").concat(encodeURIComponent(t.parameters.repositoryName),"/branches").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),jE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists available billing plans",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/plans"},e.body=function(){},e}return $(e,t),e}(Ym),SE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists projects for the authenticated user or team.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),_E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new project.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Create",e.endpointUrl=function(t){return"/v1/projects"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),UE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a project.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Create",e.endpointUrl=function(t){return"/v1/projects"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),PE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a project.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Update",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),OE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given project",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Read",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId))},e.body=function(){},e}return $(e,t),e}(Ym),kE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete the given project. Fails if the project isn't empty.",e.withAuth=!0,e.requiredPermissions="Project > Projects > Manage > Delete",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Qm),xE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of addons belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),TE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),LE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates an addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),NE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the given addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Ym),qE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates an addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),ME=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Delete",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Qm),GE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about an addon's backup schedules",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backup-schedules").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),zE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Create a new backup schedule for an addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backup-schedules")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),$E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a backup schedule for an addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","scheduleId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(t.parameters.scheduleId))},e.body=function(){},e}return $(e,t),e}(Qm),WE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns a list of backups for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),JE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Initiates a backup for the given addon",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),VE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about a given backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId))},e.body=function(){},e}return $(e,t),e}(Ym),HE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes a given backup",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId))},e.body=function(){},e}return $(e,t),e}(Qm),ZE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the in progress backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/abort")},e.body=function(){},e}return $(e,t),e}(Xm),YE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts an in-progress backup restore.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){var e;["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/abort-restore").concat(r)},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),KE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Generates a temporary download link for downloading the given backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/download-link")},e.body=function(){},e}return $(e,t),e}(Ym),XE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Restores the given addon to the given backup state.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){var e;["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/restore").concat(r)},e.body=function(){},e}return $(e,t),e}(Xm),QE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of restores for the given backup.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/restores").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),tA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId","backupId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/backups/").concat(encodeURIComponent(t.parameters.backupId),"/retain")},e.body=function(){},e}return $(e,t),e}(Xm),eA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of containers for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > Deployment > View Instances",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/containers").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),nA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns the credentials for connecting to the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/credentials")},e.body=function(){},e}return $(e,t),e}(Ym),rA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Imports a database from an external archive or existing live database.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/import")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),uA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the network settings for the addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/network-settings")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),oA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pause the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),iA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Reset the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Delete",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/reset")},e.body=function(){},e}return $(e,t),e}(Xm),sA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Restart the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/restart")},e.body=function(){},e}return $(e,t),e}(Xm),aA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns a list of restores for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){var e;["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/restores").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),cA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resume the given addon if it is paused.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/resume")},e.body=function(){},e}return $(e,t),e}(Xm),dA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modifies the allocated resources for the given addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/scale")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),lA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the security rules for the addon.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/security")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),hA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about the current addon version including available upgrades and upgrade history.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Read",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/version")},e.body=function(){},e}return $(e,t),e}(Ym),pA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Upgrades the addon to a new version.",e.withAuth=!0,e.requiredPermissions="Project > Addons > General > Update",e.endpointUrl=function(t){return["projectId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/addons/").concat(encodeURIComponent(t.parameters.addonId),"/version")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),fA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of jobs belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),mA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new cron job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/cron")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),vA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a cron job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/cron")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),EA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a cron job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),AA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/manual")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),bA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/manual")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),yA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),gA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the given job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(){},e}return $(e,t),e}(Ym),CA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Delete",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId))},e.body=function(){},e}return $(e,t),e}(Qm),FA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the branches of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/branches").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),wA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists builds for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),DA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Start a new build for the given job. Given a commit sha, it will build that commit.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),BA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-arguments").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),IA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets build arguments for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-arguments")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),RA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-arguments/details")},e.body=function(){},e}return $(e,t),e}(Ym),jA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the build options for a given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-options")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),SA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the version control source for a given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build-source")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),_A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about a build for the job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Ym),UA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the given job build",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Qm),PA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of containers for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > View Instance Logs",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/containers").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the deployment of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/deployment")},e.body=function(){},e}return $(e,t),e}(Ym),kA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the deployment settings of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Update Deployment",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),xA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the health checks for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/health-checks")},e.body=function(){},e}return $(e,t),e}(Ym),TA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates health checks for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/health-checks")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),LA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pause the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),NA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the pull-requests of the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/pull-requests").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),qA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resumes the given job. Optionally takes several arguments to override resumed settings.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/resume")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),MA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Fetches run history for the given job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),GA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Starts a new job run for the given job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),zA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns data about the given job run",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Read",e.endpointUrl=function(t){return["projectId","jobId","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs/").concat(encodeURIComponent(t.parameters.runId))},e.body=function(){},e}return $(e,t),e}(Ym),$A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the given job run",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","jobId","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runs/").concat(encodeURIComponent(t.parameters.runId))},e.body=function(){},e}return $(e,t),e}(Qm),WA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Returns the runtime environment for the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){var e;["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runtime-environment").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),JA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets the runtime environment for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runtime-environment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),VA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Jobs > Read",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/runtime-environment/details")},e.body=function(){},e}return $(e,t),e}(Ym),HA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modifies the scaling settings for the given job.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > Deployment > Scale Job",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/scale")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ZA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates settings for the job",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/settings")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),YA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modify cron job to toggle suspending of its schedule.",e.withAuth=!0,e.requiredPermissions="Project > Jobs > General > Update",e.endpointUrl=function(t){return["projectId","jobId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/jobs/").concat(encodeURIComponent(t.parameters.jobId),"/suspend")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),KA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists all pipelines for a project",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),XA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about a pipeline",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId))},e.body=function(){},e}return $(e,t),e}(Ym),QA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given preview template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a given preview template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Create",e.endpointUrl=function(t){return["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),eb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of active preview environments for a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/previews").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),nb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a preview environment generated by a preview template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Delete",e.endpointUrl=function(t){return["projectId","pipelineId","previewId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(t.parameters.previewId))},e.body=function(){},e}return $(e,t),e}(Qm),rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of preview template runs",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),ub=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given preview template run.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId","templateRunId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(t.parameters.templateRunId))},e.body=function(){},e}return $(e,t),e}(Ym),ob=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets details about a release flow",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage))},e.body=function(){},e}return $(e,t),e}(Ym),ib=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a release flow",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Update",e.endpointUrl=function(t){return["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),sb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Runs a given release flow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Update",e.endpointUrl=function(t){return["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ab=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists runs of a release flow",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){var e;["projectId","pipelineId","stage"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),cb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given release flow run",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Read",e.endpointUrl=function(t){return["projectId","pipelineId","stage","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs/").concat(encodeURIComponent(t.parameters.runId))},e.body=function(){},e}return $(e,t),e}(Ym),db=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Abort the given release flow run",e.withAuth=!0,e.requiredPermissions="Project > Pipelines > General > Update",e.endpointUrl=function(t){return["projectId","pipelineId","stage","runId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/pipelines/").concat(encodeURIComponent(t.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(t.parameters.stage),"/runs/").concat(encodeURIComponent(t.parameters.runId),"/abort")},e.body=function(){},e}return $(e,t),e}(Xm),lb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of secrets belonging to the project",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),hb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a secret with the specified payload",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),pb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a secret with the specified payload",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),fb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a secret with the specified payload",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),mb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View a secret including its contents",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){var e;["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),vb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a secret",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId))},e.body=function(){},e}return $(e,t),e}(Qm),Eb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a secret",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Ab=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Link an addon to the secret group or edit the settings of the linked addon.",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),bb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about a given addon link.",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Ym),yb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Unlinks an addon from the secret group.",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId","addonId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/addons/").concat(encodeURIComponent(t.parameters.addonId))},e.body=function(){},e}return $(e,t),e}(Qm),gb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View a secret with details about its linked addons",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return["projectId","secretId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/secrets/").concat(encodeURIComponent(t.parameters.secretId),"/details")},e.body=function(){},e}return $(e,t),e}(Ym),Cb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of services belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Fb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new build service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),wb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a build service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),Db=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a build service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/build/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Bb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/combined")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Ib=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/combined")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),Rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/combined/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),jb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a new deployment service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Sb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates or updates a deployment service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),_b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates a deployment service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Ub=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId))},e.body=function(){},e}return $(e,t),e}(Ym),Pb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Delete",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Qm),Ob=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the branches of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/branches").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),kb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the builds for the service",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),xb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Start a new build for the given combined or build service. If given a commit sha, it will build that commit. Otherwise, the most recent relevant commit will be built. If the service provided is a build service, a branch name or pull request to build from is required.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets the build arguments of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-arguments").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),Lb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets the build arguments for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-arguments")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Nb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-arguments/details")},e.body=function(){},e}return $(e,t),e}(Ym),qb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the build options for a given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-options")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Mb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the version control source for a given build or combined service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build-source")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Gb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about a build for the service",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Ym),zb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Aborts the given service build",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Deploy Build",e.endpointUrl=function(t){return["projectId","serviceId","buildId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/build/").concat(encodeURIComponent(t.parameters.buildId))},e.body=function(){},e}return $(e,t),e}(Qm),$b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of containers for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > View Instances",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/containers").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Wb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the deployment of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > View Instances",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/deployment")},e.body=function(){},e}return $(e,t),e}(Ym),Jb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the deployment settings of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Update Deployment",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/deployment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Vb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the health checks for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/health-checks")},e.body=function(){},e}return $(e,t),e}(Ym),Hb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates health checks for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/health-checks")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Zb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Pause the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/pause")},e.body=function(){},e}return $(e,t),e}(Xm),Yb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists the ports for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/ports")},e.body=function(){},e}return $(e,t),e}(Ym),Kb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Updates the list of ports for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/ports")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Xb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets information about the pull-requests of the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/pull-requests").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Qb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Restarts the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/restart")},e.body=function(){},e}return $(e,t),e}(Xm),ty=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Resumes the given service. Optionally takes several arguments to override resumed settings.",e.withAuth=!0,e.requiredPermissions="Project > Services > General > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/resume")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ey=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets the runtime environment of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){var e;["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/runtime-environment").concat(r)},e.body=function(){},e}return $(e,t),e}(Ym),ny=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Sets the runtime environment for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Update",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/runtime-environment")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ry=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",e.withAuth=!0,e.requiredPermissions="Project > Secrets > Services > Read",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/runtime-environment/details")},e.body=function(){},e}return $(e,t),e}(Ym),uy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Modifies the scaling settings for the given service.",e.withAuth=!0,e.requiredPermissions="Project > Services > Deployment > Scale Service",e.endpointUrl=function(t){return["projectId","serviceId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/services/").concat(encodeURIComponent(t.parameters.serviceId),"/scale")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),oy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Gets a list of volumes belonging to the project",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Read",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes")},e.body=function(){},e}return $(e,t),e}(Ym),iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Creates a volume with the specified payload",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Create",e.endpointUrl=function(t){return["projectId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Retrieve a volume",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Read",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId))},e.body=function(){},e}return $(e,t),e}(Ym),ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update volume mounts and storage size",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Update",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Deletes this volume and its associated data.",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Delete",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId))},e.body=function(){},e}return $(e,t),e}(Qm),dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Attach a volume",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Update",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId),"/attach")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),ly=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Detach a volume",e.withAuth=!0,e.requiredPermissions="Project > Volumes > General > Update",e.endpointUrl=function(t){return["projectId","volumeId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/projects/".concat(encodeURIComponent(t.parameters.projectId),"/volumes/").concat(encodeURIComponent(t.parameters.volumeId),"/detach")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),hy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Lists available project regions",e.withAuth=!0,e.requiredPermissions="undefined",e.endpointUrl=function(t){return"/v1/regions"},e.body=function(){},e}return $(e,t),e}(Ym),py=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="List the resource tags for this entity.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/tags".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Add a new resource tag for this entity.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Create",e.endpointUrl=function(t){return"/v1/tags"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),my=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update or create a resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Update",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(tv),vy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="View details for a given resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Read",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags/".concat(encodeURIComponent(t.parameters.resourceTagId))},e.body=function(){},e}return $(e,t),e}(Ym),Ey=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Patch a resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Update",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags/".concat(encodeURIComponent(t.parameters.resourceTagId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(ev),Ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a resource tag.",e.withAuth=!0,e.requiredPermissions="Account > Tags > General > Delete",e.endpointUrl=function(t){return["resourceTagId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/tags/".concat(encodeURIComponent(t.parameters.resourceTagId))},e.body=function(){},e}return $(e,t),e}(Qm),by=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of templates",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e,n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/templates".concat(r)},e.body=function(){},e}return $(e,t),e}(Km),yy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Create a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Create",e.endpointUrl=function(t){return"/v1/templates"},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),gy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given template.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId)).concat(r)},e.body=function(){},e}return $(e,t),e}(Km),Cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Update a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Update",e.endpointUrl=function(t){return["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId))},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Delete a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Delete",e.endpointUrl=function(t){return["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId))},e.body=function(){},e}return $(e,t),e}(Qm),wy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Run a template",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Run",e.endpointUrl=function(t){return["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs")},e.body=function(t){return JSON.stringify(t.data)},e}return $(e,t),e}(Xm),Dy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get a list of template runs",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){var e;["templateId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))});var n=Object.entries(null!==(e=null==t?void 0:t.options)&&void 0!==e?e:{}).filter(function(t){return void 0!==t[1]}),r=n.length>0?"?".concat(n.map(function(t){return"".concat(t[0],"=").concat(t[1])}).join("&")):"";return"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs").concat(r)},e.body=function(){},e}return $(e,t),e}(Km),By=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Get information about the given template run.",e.withAuth=!0,e.requiredPermissions="Account > Templates > General > Read",e.endpointUrl=function(t){return["templateId","templateRunId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs/").concat(encodeURIComponent(t.parameters.templateRunId))},e.body=function(){},e}return $(e,t),e}(Ym),Iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.description="Abort the given template run.",e.withAuth=!0,e.requiredPermissions="Account > Templates > Runs > Abort",e.endpointUrl=function(t){return["templateId","templateRunId"].forEach(function(e){var n;if(void 0===(null===(n=null==t?void 0:t.parameters)||void 0===n?void 0:n[e]))throw new Error("Required argument not set: '".concat(e,"'"))}),"/v1/templates/".concat(encodeURIComponent(t.parameters.templateId),"/runs/").concat(encodeURIComponent(t.parameters.templateRunId),"/abort")},e.body=function(){},e}return $(e,t),e}(Xm),Ry=function(){function t(){this.loadContext()}return t.prototype.loadContext=function(){this.contextWrapper=this.loadContextWrapper()},t.prototype.getInfo=function(){return""},t.prototype.storeContext=function(t){return J(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,this.writeContext(t)];case 1:return e.sent(),this.contextWrapper=t,[2]}})})},t.prototype.addContext=function(t,e){return void 0===e&&(e=!0),J(this,void 0,void 0,function(){var n,r,u;return V(this,function(o){switch(o.label){case 0:if(e||void 0===this.findContext(t.name))return[3,1];throw new Error("Context with name ".concat(t.name," already exists"));case 1:return[4,this.removeContext(t.name)];case 2:o.sent(),o.label=3;case 3:return n=W({host:"https://api.northflank.com"},t),r=this.contextWrapper,u={current:n.name,contexts:H(H([],r.contexts,!0),[n],!1),lastUpdateCheck:r.lastUpdateCheck},[4,this.storeContext(u)];case 4:return o.sent(),[2]}})})},t.prototype.removeContext=function(t){return J(this,void 0,void 0,function(){var e,n,r,u;return V(this,function(o){switch(o.label){case 0:return e=this.contextWrapper,n=e.contexts.filter(function(e){return e.name!==t}),r=e.current===t?void 0:e.current,u={current:r,contexts:H([],n,!0),lastUpdateCheck:e.lastUpdateCheck},[4,this.storeContext(u)];case 1:return o.sent(),[2]}})})},t.prototype.getCurrentContext=function(){var t=this.contextWrapper.current;return void 0===t?t:this.findContext(t)},t.prototype.findContext=function(t){return this.contextWrapper.contexts.find(function(e){return e.name===t})},t.prototype.getCurrentBaseUrl=function(t){var e=this.getCurrentContext();if(!0===t&&!(null==e?void 0:e.host))throw new Error("Context (".concat(null==e?void 0:e.name,") doesn't have a target API host. Please login again."));return null==e?void 0:e.host},t.prototype.getCurrentProjectName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.project},t.prototype.getCurrentName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.name},t.prototype.getCurrentToken=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.token},t.prototype.getCurrentServiceName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.service},t.prototype.getCurrentJobName=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.job},t.prototype.getCurrentPlanId=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.plan},t.prototype.getCurrentRegion=function(){var t;return null===(t=this.getCurrentContext())||void 0===t?void 0:t.region},t.prototype.useContext=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(!this.findContext(t))throw new Error("Context with name ".concat(t," doesn't exist"));return e=this.contextWrapper,n=W(W({},e),{current:t}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.updateToken=function(t,e){return J(this,void 0,void 0,function(){var n,r,u,o,i;return V(this,function(s){switch(s.label){case 0:if(n=null!=e?e:this.getCurrentName(),!(r=this.findContext(n)))throw new Error("Context with name ".concat(e," doesn't exist"));return u=this.contextWrapper,o=u.contexts.map(function(e){return e.name===n?W(W({},r),{token:t}):e}),i=W(W({},u),{contexts:o}),[4,this.storeContext(i)];case 1:return s.sent(),[2]}})})},t.prototype.useProjectId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set project id to current context, current context not defined");return n=W(W({},e),{project:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.useServiceId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set service id to current context, current context not defined");return n=W(W({},e),{service:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.useJobId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set job id to current context, current context not defined");return n=W(W({},e),{job:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.usePlanId=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set plan id to current context, current context not defined");return n=W(W({},e),{plan:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.useRegion=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:if(void 0===(e=this.getCurrentContext()))throw new Error("Failed to set region id to current context, current context not defined");return n=W(W({},e),{region:t}),[4,this.addContext(n)];case 1:return r.sent(),[2]}})})},t.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},t.prototype.setLastUpdateCheck=function(t){return J(this,void 0,void 0,function(){var e,n;return V(this,function(r){switch(r.label){case 0:return e=this.contextWrapper,n=W(W({},e),{lastUpdateCheck:t}),[4,this.storeContext(n)];case 1:return r.sent(),[2]}})})},t}(),jy=function(t){function e(e){var n=t.call(this)||this;return n.assertDir=function(t){return J(n,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),E.existsSync(t)?[3,2]:[4,E.promises.mkdir(t,{recursive:!0})];case 1:n.sent(),n.label=2;case 2:return[3,4];case 3:throw e=n.sent(),console.log("Failed to login, local files could not be created: ".concat(t,", error: ").concat(e.message)),e;case 4:return[2]}})})},n.configPath=e||"".concat(p.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return $(e,t),e.prototype.loadContextWrapper=function(){try{return JSON.parse(E.readFileSync(this.configFile,"utf8"))}catch(t){return{contexts:[],lastUpdateCheck:new Date(0)}}},e.prototype.writeContext=function(t){return J(this,void 0,void 0,function(){var e;return V(this,function(n){switch(n.label){case 0:return[4,this.assertConfigDir()];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,E.promises.writeFile(this.configFile,JSON.stringify(t,null,"\t"),{mode:416})];case 3:return n.sent(),[3,5];case 4:throw e=n.sent(),console.log("Failed to persist api context, local files could not be created, error: ".concat(e.message)),e;case 5:return[2]}})})},e.prototype.assertConfigDir=function(){return J(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,this.assertDir(this.configPath)];case 1:return t.sent(),[2]}})})},e.prototype.getInfo=function(){return"Cli config stored in: ".concat(this.configPath)},e}(Ry),Sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},e}return $(e,t),e.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},e.prototype.writeContext=function(t){return J(this,void 0,void 0,function(){return V(this,function(e){return this.inMemoryContextWrapper=t,[2]})})},e}(Ry),_y=function(t,e){void 0===e&&(e={});var n,r,u,o=this;this.baseUrl=function(){return o.contextProvider.getCurrentBaseUrl()},this.contextProvider=t,this.forwarding=new Ka(t,new Cb(t,e),new xE(t,e),e.agent),this.exec=new tc(t,e.agent),this.logs=new sv(t,e),this.metrics=new dv(t),this.fileCopy=new Wm(this.exec),this.endpoints={get:(u={},u.addon=((r=new NE(t,e)).types=new lv(t,e),r.backupSchedules=new GE(t,e),r.backups=new WE(t,e),r.backup=((n=new VE(t,e)).download=new KE(t,e),n.restores=new QE(t,e),n),r.containers=new eA(t,e),r.credentials=new nA(t,e),r.restores=new aA(t,e),r.version=new hA(t,e),r),u.backupDestination=new fv(t,e),u.invoice=function(){var n={};return n.details=new bv(t,e),n}(),u.cloud=function(){var n={};return n.cluster=new wv(t,e),n.integration=new Ov(t,e),n}(),u.dnsId=new Nv(t,e),u.domain=new Gv(t,e),u.domainCertificate=new $v(t,e),u.subdomain=function(){var n=new Vv(t,e);return n.path=new eE(t,e),n}(),u.logSink=new dE(t,e),u.notification=new EE(t,e),u.registryCredentials=new CE(t,e),u.project=new OE(t,e),u.job=function(){var n=new gA(t,e);return n.branches=new FA(t,e),n.builds=new wA(t,e),n.buildArguments=new BA(t,e),n.buildArgumentDetails=new RA(t,e),n.build=new _A(t,e),n.containers=new PA(t,e),n.deployment=new OA(t,e),n.healthChecks=new xA(t,e),n.pullRequests=new NA(t,e),n.runs=new MA(t,e),n.run=new zA(t,e),n.runtimeEnvironment=new WA(t,e),n.runtimeEnvironmentDetails=new VA(t,e),n}(),u.pipeline=new XA(t,e),u.previewTemplate=new QA(t,e),u.previewTemplateRun=new ub(t,e),u.releaseFlow=new ob(t,e),u.releaseFlowRun=new cb(t,e),u.secret=new mb(t,e),u.secretLink=new bb(t,e),u.secretDetails=new gb(t,e),u.service=function(){var n=new Ub(t,e);return n.branches=new Ob(t,e),n.builds=new kb(t,e),n.buildArguments=new Tb(t,e),n.buildArgumentDetails=new Nb(t,e),n.build=new Gb(t,e),n.containers=new $b(t,e),n.deployment=new Wb(t,e),n.healthChecks=new Vb(t,e),n.ports=new Yb(t,e),n.pullRequests=new Xb(t,e),n.runtimeEnvironment=new ey(t,e),n.runtimeEnvironmentDetails=new ry(t,e),n}(),u.volume=new sy(t,e),u.tag=new vy(t,e),u.template=new gy(t,e),u.templateRun=new By(t,e),u),list:function(){var n={};return n.backupDestinations=new hv(t,e),n.backupDestinationsBackups=new Ev(t,e),n.invoices=new Av(t,e),n.cloud=function(){var n={};return n.providers=new yv(t,e),n.clusters=new gv(t,e),n.cluster=function(){var n={};return n.nodes=new Iv(t,e),n}(),n.integrations=new _v(t,e),n.nodeTypes=new Tv(t,e),n.regions=new Lv(t,e),n}(),n.domains=new qv(t,e),n.subdomain=function(){var n={};return n.path=new tE(t,e),n}(),n.logSinks=new aE(t,e),n.notifications=new mE(t,e),n.registryCredentials=new yE(t,e),n.vcs=new DE(t,e),n.repos=new IE(t,e),n.branches=new RE(t,e),n.plans=new jE(t,e),n.projects=new SE(t,e),n.addons=new xE(t,e),n.jobs=new fA(t,e),n.pipelines=new KA(t,e),n.previewTemplatePreviews=new eb(t,e),n.previewTemplateRuns=new rb(t,e),n.releaseFlowRuns=new ab(t,e),n.secrets=new lb(t,e),n.services=new Cb(t,e),n.volumes=new oy(t,e),n.regions=new hy(t,e),n.tags=new py(t,e),n.templates=new by(t,e),n.templateRuns=new Dy(t,e),n}(),add:function(){var n={};return n.backupDestination=new pv(t,e),n.domain=function(){var n={};return n.subdomain=new Jv(t,e),n}(),n.subdomain=function(){var n={};return n.path=new Qv(t,e),n}(),n.registryCredentials=new gE(t,e),n.tag=new fy(t,e),n}(),patch:function(){var n={};return n.backupDestination=new mv(t,e),n.cloud=function(){var n={};return n.cluster=new Dv(t,e),n.integration=new kv(t,e),n}(),n.project=new PE(t,e),n.addon=new qE(t,e),n.job=function(){var n={};return n.cron=new EA(t,e),n.manual=new yA(t,e),n}(),n.secret=new fb(t,e),n.service=function(){var n={};return n.build=new Db(t,e),n.combined=new Rb(t,e),n.deployment=new _b(t,e),n}(),n.tag=new Ey(t,e),n}(),delete:function(){var n={};return n.backupDestination=new vv(t,e),n.cloud=function(){var n={};return n.cluster=new Bv(t,e),n.integration=new xv(t,e),n}(),n.domain=new zv(t,e),n.subdomain=function(){var n=new Hv(t,e);return n.path=new nE(t,e),n}(),n.logSink=new lE(t,e),n.notification=new bE(t,e),n.registryCredentials=new wE(t,e),n.project=new kE(t,e),n.addon=function(){var n=new ME(t,e);return n.backupSchedule=new $E(t,e),n}(),n.backup=new HE(t,e),n.job=new CA(t,e),n.previewTemplatePreview=new nb(t,e),n.secret=new vb(t,e),n.secretLink=new yb(t,e),n.service=new Pb(t,e),n.volume=new cy(t,e),n.tag=new Ay(t,e),n.template=new Fy(t,e),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new Cv(t,e),n.integration=new Uv(t,e),n}(),n.domain=new Mv(t,e),n.logSink=new cE(t,e),n.notification=new vE(t,e),n.customVcs=function(){var n={};return n.token=new BE(t,e),n}(),n.project=new _E(t,e),n.addon=function(){var n=new TE(t,e);return n.backupSchedule=new zE(t,e),n}(),n.job=function(){var n={};return n.cron=new mA(t,e),n.manual=new AA(t,e),n}(),n.secret=new hb(t,e),n.service=function(){var n={};return n.build=new Fb(t,e),n.combined=new Bb(t,e),n.deployment=new jb(t,e),n}(),n.volume=new iy(t,e),n.template=new yy(t,e),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new Fv(t,e),n.integration=new Pv(t,e),n}(),n.project=new UE(t,e),n.addon=new LE(t,e),n.job=function(){var n={};return n.cron=new vA(t,e),n.manual=new bA(t,e),n}(),n.secret=new pb(t,e),n.service=function(){var n={};return n.build=new wb(t,e),n.combined=new Ib(t,e),n.deployment=new Sb(t,e),n}(),n.tag=new my(t,e),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Rv(t,e),n}(),n}(),n}(),drain:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new jv(t,e),n}(),n}(),n}(),uncordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Sv(t,e),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new Wv(t,e),n.addon=function(){var n={};return n.backup=new rA(t,e),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Zv(t,e),n.path=new uE(t,e),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Yv(t,e);return n.path=new oE(t,e),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Kv(t,e),n}(),n}(),enable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Xv(t,e),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new rE(t,e),n}(),n.logSink=new fE(t,e),n.notification=new AE(t,e),n.registryCredentials=new FE(t,e),n.addon=function(){var n={};return n.networkSettings=new uA(t,e),n.security=new lA(t,e),n.version=new pA(t,e),n}(),n.job=function(){var n={};return n.buildArguments=new IA(t,e),n.buildOptions=new jA(t,e),n.buildSource=new SA(t,e),n.deployment=new kA(t,e),n.healthChecks=new TA(t,e),n.runtimeEnvironment=new JA(t,e),n.settings=new ZA(t,e),n}(),n.previewTemplate=new tb(t,e),n.releaseFlow=new ib(t,e),n.secret=new Eb(t,e),n.secretLink=new Ab(t,e),n.service=function(){var n={};return n.buildArguments=new Lb(t,e),n.buildOptions=new qb(t,e),n.buildSource=new Mb(t,e),n.deployment=new Jb(t,e),n.healthChecks=new Hb(t,e),n.ports=new Kb(t,e),n.runtimeEnvironment=new ny(t,e),n}(),n.volume=new ay(t,e),n.template=new Cy(t,e),n}(),verify:function(){var n={};return n.subdomain=new iE(t,e),n.domain=new sE(t,e),n}(),pause:function(){var n={};return n.logSink=new hE(t,e),n.addon=new oA(t,e),n.job=new LA(t,e),n.service=new Zb(t,e),n}(),resume:function(){var n={};return n.logSink=new pE(t,e),n.addon=new cA(t,e),n.job=new qA(t,e),n.service=new ty(t,e),n}(),backup:function(){var n={};return n.addon=new JE(t,e),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new ZE(t,e),n.restore=new YE(t,e),n}(),n.job=function(){var n={};return n.build=new UA(t,e),n.run=new $A(t,e),n}(),n.releaseFlowRun=new db(t,e),n.service=function(){var n={};return n.build=new zb(t,e),n}(),n.templateRun=new Iy(t,e),n}(),restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new XE(t,e),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new tA(t,e),n}(),n}(),reset:function(){var n={};return n.addon=new iA(t,e),n}(),restart:function(){var n={};return n.addon=new sA(t,e),n.service=new Qb(t,e),n}(),scale:function(){var n={};return n.addon=new dA(t,e),n.job=new HA(t,e),n.service=new uy(t,e),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new DA(t,e),n.run=new GA(t,e),n}(),n.service=function(){var n={};return n.build=new xb(t,e),n}(),n}(),suspend:function(){var n={};return n.job=new YA(t,e),n}(),run:function(){var n={};return n.releaseFlow=new sb(t,e),n.template=new wy(t,e),n}(),attach:function(){var n={};return n.volume=new dy(t,e),n}(),detach:function(){var n={};return n.volume=new ly(t,e),n}(),download:function(){var t={};return t.service=function(){var t={};return t.files=o.fileCopy.downloadServiceFiles.bind(o.fileCopy),t}(),t.job=function(){var t={};return t.files=o.fileCopy.downloadJobFiles.bind(o.fileCopy),t}(),t}(),upload:function(){var t={};return t.service=function(){var t={};return t.files=o.fileCopy.uploadServiceFiles.bind(o.fileCopy),t}(),t.job=function(){var t={};return t.files=o.fileCopy.uploadJobFiles.bind(o.fileCopy),t}(),t}()},this.download=function(){var t={};return t.service=function(){var t={};return t.files=o.endpoints.download.service.files,t}(),t.job=function(){var t={};return t.files=o.endpoints.download.job.files,t}(),t}(),this.upload=function(){var t={};return t.service=function(){var t={};return t.files=o.endpoints.upload.service.files,t}(),t.job=function(){var t={};return t.files=o.endpoints.upload.job.files,t}(),t}(),this.get=function(){var t={};return t.addon=function(){var t=o.endpoints.get.addon.call;return t.types=o.endpoints.get.addon.types.call,t.backupSchedules=function(){var t=o.endpoints.get.addon.backupSchedules.call;return t.all=o.endpoints.get.addon.backupSchedules.all,t}(),t.backups=function(){var t=o.endpoints.get.addon.backups.call;return t.all=o.endpoints.get.addon.backups.all,t}(),t.backup=function(){var t=o.endpoints.get.addon.backup.call;return t.download=o.endpoints.get.addon.backup.download.call,t.restores=function(){var t=o.endpoints.get.addon.backup.restores.call;return t.all=o.endpoints.get.addon.backup.restores.all,t}(),t.logs=o.logs.getAddonBackupLogs,t.logTail=o.logs.tailAddonBackupLogs,t}(),t.containers=function(){var t=o.endpoints.get.addon.containers.call;return t.all=o.endpoints.get.addon.containers.all,t}(),t.credentials=o.endpoints.get.addon.credentials.call,t.restores=function(){var t=function(){var t=o.endpoints.get.addon.restores.call;return t.all=o.endpoints.get.addon.restores.all,t}();return t.logs=o.logs.getAddonRestoresLogs,t.logTail=o.logs.tailAddonRestoresLogs,t}(),t.version=o.endpoints.get.addon.version.call,t.logs=o.logs.getAddonLogs,t.logTail=o.logs.tailAddonLogs,t.metrics=o.metrics.getAddonMetrics,t.metricsRange=o.metrics.getAddonMetricsRange,t}(),t.backupDestination=o.endpoints.get.backupDestination.call,t.invoice=function(){var t={};return t.details=o.endpoints.get.invoice.details.call,t}(),t.cloud=function(){var t={};return t.cluster=o.endpoints.get.cloud.cluster.call,t.integration=o.endpoints.get.cloud.integration.call,t}(),t.dnsId=o.endpoints.get.dnsId.call,t.domain=o.endpoints.get.domain.call,t.domainCertificate=o.endpoints.get.domainCertificate.call,t.subdomain=function(){var t=o.endpoints.get.subdomain.call;return t.path=o.endpoints.get.subdomain.path.call,t}(),t.logSink=o.endpoints.get.logSink.call,t.notification=o.endpoints.get.notification.call,t.registryCredentials=o.endpoints.get.registryCredentials.call,t.project=o.endpoints.get.project.call,t.job=function(){var t=o.endpoints.get.job.call;return t.branches=function(){var t=o.endpoints.get.job.branches.call;return t.all=o.endpoints.get.job.branches.all,t}(),t.builds=function(){var t=o.endpoints.get.job.builds.call;return t.all=o.endpoints.get.job.builds.all,t}(),t.buildArguments=o.endpoints.get.job.buildArguments.call,t.buildArgumentDetails=o.endpoints.get.job.buildArgumentDetails.call,t.build=o.endpoints.get.job.build.call,t.containers=function(){var t=o.endpoints.get.job.containers.call;return t.all=o.endpoints.get.job.containers.all,t}(),t.deployment=o.endpoints.get.job.deployment.call,t.healthChecks=o.endpoints.get.job.healthChecks.call,t.pullRequests=function(){var t=o.endpoints.get.job.pullRequests.call;return t.all=o.endpoints.get.job.pullRequests.all,t}(),t.runs=function(){var t=o.endpoints.get.job.runs.call;return t.all=o.endpoints.get.job.runs.all,t}(),t.run=o.endpoints.get.job.run.call,t.runtimeEnvironment=o.endpoints.get.job.runtimeEnvironment.call,t.runtimeEnvironmentDetails=o.endpoints.get.job.runtimeEnvironmentDetails.call,t.logs=o.logs.getJobLogs,t.buildLogs=o.logs.getJobBuildLogs,t.logTail=o.logs.tailJobLogs,t.buildLogTail=o.logs.tailJobBuildLogs,t.metrics=o.metrics.getJobMetrics,t.buildMetrics=o.metrics.getJobBuildMetrics,t.metricsRange=o.metrics.getJobMetricsRange,t.buildMetricsRange=o.metrics.getJobBuildMetricsRange,t}(),t.pipeline=o.endpoints.get.pipeline.call,t.previewTemplate=function(){var t=o.endpoints.get.previewTemplate.call;return t.all=o.endpoints.get.previewTemplate.all,t}(),t.previewTemplateRun=o.endpoints.get.previewTemplateRun.call,t.releaseFlow=o.endpoints.get.releaseFlow.call,t.releaseFlowRun=o.endpoints.get.releaseFlowRun.call,t.secret=o.endpoints.get.secret.call,t.secretLink=o.endpoints.get.secretLink.call,t.secretDetails=o.endpoints.get.secretDetails.call,t.service=function(){var t=o.endpoints.get.service.call;return t.branches=function(){var t=o.endpoints.get.service.branches.call;return t.all=o.endpoints.get.service.branches.all,t}(),t.builds=function(){var t=o.endpoints.get.service.builds.call;return t.all=o.endpoints.get.service.builds.all,t}(),t.buildArguments=o.endpoints.get.service.buildArguments.call,t.buildArgumentDetails=o.endpoints.get.service.buildArgumentDetails.call,t.build=o.endpoints.get.service.build.call,t.containers=function(){var t=o.endpoints.get.service.containers.call;return t.all=o.endpoints.get.service.containers.all,t}(),t.deployment=o.endpoints.get.service.deployment.call,t.healthChecks=o.endpoints.get.service.healthChecks.call,t.ports=o.endpoints.get.service.ports.call,t.pullRequests=function(){var t=o.endpoints.get.service.pullRequests.call;return t.all=o.endpoints.get.service.pullRequests.all,t}(),t.runtimeEnvironment=o.endpoints.get.service.runtimeEnvironment.call,t.runtimeEnvironmentDetails=o.endpoints.get.service.runtimeEnvironmentDetails.call,t.logs=o.logs.getServiceLogs,t.buildLogs=o.logs.getServiceBuildLogs,t.logTail=o.logs.tailServiceLogs,t.buildLogTail=o.logs.tailServiceBuildLogs,t.metrics=o.metrics.getServiceMetrics,t.buildMetrics=o.metrics.getServiceBuildMetrics,t.metricsRange=o.metrics.getServiceMetricsRange,t.buildMetricsRange=o.metrics.getServiceBuildMetricsRange,t}(),t.volume=o.endpoints.get.volume.call,t.tag=o.endpoints.get.tag.call,t.template=function(){var t=o.endpoints.get.template.call;return t.all=o.endpoints.get.template.all,t}(),t.templateRun=o.endpoints.get.templateRun.call,t}(),this.list=function(){var t={};return t.backupDestinations=function(){var t=o.endpoints.list.backupDestinations.call;return t.all=o.endpoints.list.backupDestinations.all,t}(),t.backupDestinationsBackups=function(){var t=o.endpoints.list.backupDestinationsBackups.call;return t.all=o.endpoints.list.backupDestinationsBackups.all,t}(),t.invoices=function(){var t=o.endpoints.list.invoices.call;return t.all=o.endpoints.list.invoices.all,t}(),t.cloud=function(){var t={};return t.providers=o.endpoints.list.cloud.providers.call,t.clusters=function(){var t=o.endpoints.list.cloud.clusters.call;return t.all=o.endpoints.list.cloud.clusters.all,t}(),t.cluster=function(){var t={};return t.nodes=function(){var t=o.endpoints.list.cloud.cluster.nodes.call;return t.all=o.endpoints.list.cloud.cluster.nodes.all,t}(),t}(),t.integrations=function(){var t=o.endpoints.list.cloud.integrations.call;return t.all=o.endpoints.list.cloud.integrations.all,t}(),t.nodeTypes=function(){var t=o.endpoints.list.cloud.nodeTypes.call;return t.all=o.endpoints.list.cloud.nodeTypes.all,t}(),t.regions=function(){var t=o.endpoints.list.cloud.regions.call;return t.all=o.endpoints.list.cloud.regions.all,t}(),t}(),t.domains=function(){var t=o.endpoints.list.domains.call;return t.all=o.endpoints.list.domains.all,t}(),t.subdomain=function(){var t={};return t.path=o.endpoints.list.subdomain.path.call,t}(),t.logSinks=function(){var t=o.endpoints.list.logSinks.call;return t.all=o.endpoints.list.logSinks.all,t}(),t.notifications=function(){var t=o.endpoints.list.notifications.call;return t.all=o.endpoints.list.notifications.all,t}(),t.registryCredentials=function(){var t=o.endpoints.list.registryCredentials.call;return t.all=o.endpoints.list.registryCredentials.all,t}(),t.vcs=o.endpoints.list.vcs.call,t.repos=function(){var t=o.endpoints.list.repos.call;return t.all=o.endpoints.list.repos.all,t}(),t.branches=function(){var t=o.endpoints.list.branches.call;return t.all=o.endpoints.list.branches.all,t}(),t.plans=o.endpoints.list.plans.call,t.projects=function(){var t=o.endpoints.list.projects.call;return t.all=o.endpoints.list.projects.all,t}(),t.addons=function(){var t=o.endpoints.list.addons.call;return t.all=o.endpoints.list.addons.all,t}(),t.jobs=function(){var t=o.endpoints.list.jobs.call;return t.all=o.endpoints.list.jobs.all,t}(),t.pipelines=function(){var t=o.endpoints.list.pipelines.call;return t.all=o.endpoints.list.pipelines.all,t}(),t.previewTemplatePreviews=function(){var t=o.endpoints.list.previewTemplatePreviews.call;return t.all=o.endpoints.list.previewTemplatePreviews.all,t}(),t.previewTemplateRuns=function(){var t=o.endpoints.list.previewTemplateRuns.call;return t.all=o.endpoints.list.previewTemplateRuns.all,t}(),t.releaseFlowRuns=function(){var t=o.endpoints.list.releaseFlowRuns.call;return t.all=o.endpoints.list.releaseFlowRuns.all,t}(),t.secrets=function(){var t=o.endpoints.list.secrets.call;return t.all=o.endpoints.list.secrets.all,t}(),t.services=function(){var t=o.endpoints.list.services.call;return t.all=o.endpoints.list.services.all,t}(),t.volumes=o.endpoints.list.volumes.call,t.regions=o.endpoints.list.regions.call,t.tags=function(){var t=o.endpoints.list.tags.call;return t.all=o.endpoints.list.tags.all,t}(),t.templates=function(){var t=o.endpoints.list.templates.call;return t.all=o.endpoints.list.templates.all,t}(),t.templateRuns=function(){var t=o.endpoints.list.templateRuns.call;return t.all=o.endpoints.list.templateRuns.all,t}(),t}(),this.add=function(){var t={};return t.backupDestination=o.endpoints.add.backupDestination.call,t.domain=function(){var t={};return t.subdomain=o.endpoints.add.domain.subdomain.call,t}(),t.subdomain=function(){var t={};return t.path=o.endpoints.add.subdomain.path.call,t}(),t.registryCredentials=o.endpoints.add.registryCredentials.call,t.tag=o.endpoints.add.tag.call,t}(),this.patch=function(){var t={};return t.backupDestination=o.endpoints.patch.backupDestination.call,t.cloud=function(){var t={};return t.cluster=o.endpoints.patch.cloud.cluster.call,t.integration=o.endpoints.patch.cloud.integration.call,t}(),t.project=o.endpoints.patch.project.call,t.addon=o.endpoints.patch.addon.call,t.job=function(){var t={};return t.cron=o.endpoints.patch.job.cron.call,t.manual=o.endpoints.patch.job.manual.call,t}(),t.secret=o.endpoints.patch.secret.call,t.service=function(){var t={};return t.build=o.endpoints.patch.service.build.call,t.combined=o.endpoints.patch.service.combined.call,t.deployment=o.endpoints.patch.service.deployment.call,t}(),t.tag=o.endpoints.patch.tag.call,t}(),this.delete=function(){var t={};return t.backupDestination=o.endpoints.delete.backupDestination.call,t.cloud=function(){var t={};return t.cluster=o.endpoints.delete.cloud.cluster.call,t.integration=o.endpoints.delete.cloud.integration.call,t}(),t.domain=o.endpoints.delete.domain.call,t.subdomain=function(){var t=o.endpoints.delete.subdomain.call;return t.path=o.endpoints.delete.subdomain.path.call,t}(),t.logSink=o.endpoints.delete.logSink.call,t.notification=o.endpoints.delete.notification.call,t.registryCredentials=o.endpoints.delete.registryCredentials.call,t.project=o.endpoints.delete.project.call,t.addon=function(){var t=o.endpoints.delete.addon.call;return t.backupSchedule=o.endpoints.delete.addon.backupSchedule.call,t}(),t.backup=o.endpoints.delete.backup.call,t.job=o.endpoints.delete.job.call,t.previewTemplatePreview=o.endpoints.delete.previewTemplatePreview.call,t.secret=o.endpoints.delete.secret.call,t.secretLink=o.endpoints.delete.secretLink.call,t.service=o.endpoints.delete.service.call,t.volume=o.endpoints.delete.volume.call,t.tag=o.endpoints.delete.tag.call,t.template=o.endpoints.delete.template.call,t}(),this.create=function(){var t={};return t.cloud=function(){var t={};return t.cluster=o.endpoints.create.cloud.cluster.call,t.integration=o.endpoints.create.cloud.integration.call,t}(),t.domain=o.endpoints.create.domain.call,t.logSink=o.endpoints.create.logSink.call,t.notification=o.endpoints.create.notification.call,t.customVcs=function(){var t={};return t.token=o.endpoints.create.customVcs.token.call,t}(),t.project=o.endpoints.create.project.call,t.addon=function(){var t=o.endpoints.create.addon.call;return t.backupSchedule=o.endpoints.create.addon.backupSchedule.call,t}(),t.job=function(){var t={};return t.cron=o.endpoints.create.job.cron.call,t.manual=o.endpoints.create.job.manual.call,t}(),t.secret=o.endpoints.create.secret.call,t.service=function(){var t={};return t.build=o.endpoints.create.service.build.call,t.combined=o.endpoints.create.service.combined.call,t.deployment=o.endpoints.create.service.deployment.call,t}(),t.volume=o.endpoints.create.volume.call,t.template=o.endpoints.create.template.call,t}(),this.put=function(){var t={};return t.cloud=function(){var t={};return t.cluster=o.endpoints.put.cloud.cluster.call,t.integration=o.endpoints.put.cloud.integration.call,t}(),t.project=o.endpoints.put.project.call,t.addon=o.endpoints.put.addon.call,t.job=function(){var t={};return t.cron=o.endpoints.put.job.cron.call,t.manual=o.endpoints.put.job.manual.call,t}(),t.secret=o.endpoints.put.secret.call,t.service=function(){var t={};return t.build=o.endpoints.put.service.build.call,t.combined=o.endpoints.put.service.combined.call,t.deployment=o.endpoints.put.service.deployment.call,t}(),t.tag=o.endpoints.put.tag.call,t}(),this.cordon=function(){var t={};return t.cloud=function(){var t={};return t.cluster=function(){var t={};return t.node=o.endpoints.cordon.cloud.cluster.node.call,t}(),t}(),t}(),this.drain=function(){var t={};return t.cloud=function(){var t={};return t.cluster=function(){var t={};return t.node=o.endpoints.drain.cloud.cluster.node.call,t}(),t}(),t}(),this.uncordon=function(){var t={};return t.cloud=function(){var t={};return t.cluster=function(){var t={};return t.node=o.endpoints.uncordon.cloud.cluster.node.call,t}(),t}(),t}(),this.import=function(){var t={};return t.domainCertificate=o.endpoints.import.domainCertificate.call,t.addon=function(){var t={};return t.backup=o.endpoints.import.addon.backup.call,t}(),t}(),this.assign=function(){var t={};return t.subdomain=function(){var t={};return t.service=o.endpoints.assign.subdomain.service.call,t.path=o.endpoints.assign.subdomain.path.call,t}(),t}(),this.unassign=function(){var t={};return t.subdomain=function(){var t=o.endpoints.unassign.subdomain.call;return t.path=o.endpoints.unassign.subdomain.path.call,t}(),t}(),this.disable=function(){var t={};return t.subdomain=function(){var t={};return t.cdn=o.endpoints.disable.subdomain.cdn.call,t}(),t}(),this.enable=function(){var t={};return t.subdomain=function(){var t={};return t.cdn=o.endpoints.enable.subdomain.cdn.call,t}(),t}(),this.update=function(){var t={};return t.subdomain=function(){var t={};return t.path=o.endpoints.update.subdomain.path.call,t}(),t.logSink=o.endpoints.update.logSink.call,t.notification=o.endpoints.update.notification.call,t.registryCredentials=o.endpoints.update.registryCredentials.call,t.addon=function(){var t={};return t.networkSettings=o.endpoints.update.addon.networkSettings.call,t.security=o.endpoints.update.addon.security.call,t.version=o.endpoints.update.addon.version.call,t}(),t.job=function(){var t={};return t.buildArguments=o.endpoints.update.job.buildArguments.call,t.buildOptions=o.endpoints.update.job.buildOptions.call,t.buildSource=o.endpoints.update.job.buildSource.call,t.deployment=o.endpoints.update.job.deployment.call,t.healthChecks=o.endpoints.update.job.healthChecks.call,t.runtimeEnvironment=o.endpoints.update.job.runtimeEnvironment.call,t.settings=o.endpoints.update.job.settings.call,t}(),t.previewTemplate=o.endpoints.update.previewTemplate.call,t.releaseFlow=o.endpoints.update.releaseFlow.call,t.secret=o.endpoints.update.secret.call,t.secretLink=o.endpoints.update.secretLink.call,t.service=function(){var t={};return t.buildArguments=o.endpoints.update.service.buildArguments.call,t.buildOptions=o.endpoints.update.service.buildOptions.call,t.buildSource=o.endpoints.update.service.buildSource.call,t.deployment=o.endpoints.update.service.deployment.call,t.healthChecks=o.endpoints.update.service.healthChecks.call,t.ports=o.endpoints.update.service.ports.call,t.runtimeEnvironment=o.endpoints.update.service.runtimeEnvironment.call,t}(),t.volume=o.endpoints.update.volume.call,t.template=o.endpoints.update.template.call,t}(),this.verify=function(){var t={};return t.subdomain=o.endpoints.verify.subdomain.call,t.domain=o.endpoints.verify.domain.call,t}(),this.pause=function(){var t={};return t.logSink=o.endpoints.pause.logSink.call,t.addon=o.endpoints.pause.addon.call,t.job=o.endpoints.pause.job.call,t.service=o.endpoints.pause.service.call,t}(),this.resume=function(){var t={};return t.logSink=o.endpoints.resume.logSink.call,t.addon=o.endpoints.resume.addon.call,t.job=o.endpoints.resume.job.call,t.service=o.endpoints.resume.service.call,t}(),this.backup=function(){var t={};return t.addon=o.endpoints.backup.addon.call,t}(),this.abort=function(){var t={};return t.addon=function(){var t={};return t.backup=o.endpoints.abort.addon.backup.call,t.restore=o.endpoints.abort.addon.restore.call,t}(),t.job=function(){var t={};return t.build=o.endpoints.abort.job.build.call,t.run=o.endpoints.abort.job.run.call,t}(),t.releaseFlowRun=o.endpoints.abort.releaseFlowRun.call,t.service=function(){var t={};return t.build=o.endpoints.abort.service.build.call,t}(),t.templateRun=o.endpoints.abort.templateRun.call,t}(),this.restore=function(){var t={};return t.addon=function(){var t={};return t.backup=o.endpoints.restore.addon.backup.call,t}(),t}(),this.retain=function(){var t={};return t.addon=function(){var t={};return t.backup=o.endpoints.retain.addon.backup.call,t}(),t}(),this.reset=function(){var t={};return t.addon=o.endpoints.reset.addon.call,t}(),this.restart=function(){var t={};return t.addon=o.endpoints.restart.addon.call,t.service=o.endpoints.restart.service.call,t}(),this.scale=function(){var t={};return t.addon=o.endpoints.scale.addon.call,t.job=o.endpoints.scale.job.call,t.service=o.endpoints.scale.service.call,t}(),this.start=function(){var t={};return t.job=function(){var t={};return t.build=o.endpoints.start.job.build.call,t.run=o.endpoints.start.job.run.call,t}(),t.service=function(){var t={};return t.build=o.endpoints.start.service.build.call,t}(),t}(),this.suspend=function(){var t={};return t.job=o.endpoints.suspend.job.call,t}(),this.run=function(){var t={};return t.releaseFlow=o.endpoints.run.releaseFlow.call,t.template=o.endpoints.run.template.call,t}(),this.attach=function(){var t={};return t.volume=o.endpoints.attach.volume.call,t}(),this.detach=function(){var t={};return t.volume=o.endpoints.detach.volume.call,t}()};export{ZE as AbortAddonBackupEndpoint,YE as AbortAddonRestoreEndpoint,UA as AbortJobBuildEndpoint,$A as AbortJobRunEndpoint,db as AbortReleaseflowrunEndpoint,zb as AbortServiceBuildEndpoint,Iy as AbortTemplaterunEndpoint,pv as AddBackupdestinationEndpoint,Jv as AddDomainSubdomainEndpoint,gE as AddRegistrycredentialsEndpoint,Qv as AddSubdomainPathEndpoint,fy as AddTagEndpoint,_y as ApiClient,Ry as ApiClientContextProvider,jy as ApiClientFileContextProvider,Sy as ApiClientInMemoryContextProvider,Zm as ApiEndpoint,uE as AssignSubdomainPathEndpoint,Zv as AssignSubdomainServiceEndpoint,dy as AttachVolumeEndpoint,JE as BackupAddonEndpoint,Gm as CopyType,Rv as CordonCloudClusterNodeEndpoint,zE as CreateAddonBackupscheduleEndpoint,TE as CreateAddonEndpoint,Cv as CreateCloudClusterEndpoint,Uv as CreateCloudIntegrationEndpoint,BE as CreateCustomvcsTokenEndpoint,Mv as CreateDomainEndpoint,mA as CreateJobCronEndpoint,AA as CreateJobManualEndpoint,cE as CreateLogsinkEndpoint,vE as CreateNotificationEndpoint,_E as CreateProjectEndpoint,hb as CreateSecretEndpoint,Fb as CreateServiceBuildEndpoint,Bb as CreateServiceCombinedEndpoint,jb as CreateServiceDeploymentEndpoint,yy as CreateTemplateEndpoint,iy as CreateVolumeEndpoint,$E as DeleteAddonBackupscheduleEndpoint,ME as DeleteAddonEndpoint,Qm as DeleteApiEndpoint,HE as DeleteBackupEndpoint,vv as DeleteBackupdestinationEndpoint,Bv as DeleteCloudClusterEndpoint,xv as DeleteCloudIntegrationEndpoint,zv as DeleteDomainEndpoint,CA as DeleteJobEndpoint,lE as DeleteLogsinkEndpoint,bE as DeleteNotificationEndpoint,nb as DeletePreviewtemplatepreviewEndpoint,kE as DeleteProjectEndpoint,wE as DeleteRegistrycredentialsEndpoint,vb as DeleteSecretEndpoint,yb as DeleteSecretlinkEndpoint,Pb as DeleteServiceEndpoint,Hv as DeleteSubdomainEndpoint,nE as DeleteSubdomainPathEndpoint,Ay as DeleteTagEndpoint,Fy as DeleteTemplateEndpoint,cy as DeleteVolumeEndpoint,ly as DetachVolumeEndpoint,Kv as DisableSubdomainCdnEndpoint,jv as DrainCloudClusterNodeEndpoint,Xv as EnableSubdomainCdnEndpoint,Qa as ExecCommandStandard,KE as GetAddonBackupDownloadEndpoint,VE as GetAddonBackupEndpoint,QE as GetAddonBackupRestoresEndpoint,WE as GetAddonBackupsEndpoint,GE as GetAddonBackupschedulesEndpoint,eA as GetAddonContainersEndpoint,nA as GetAddonCredentialsEndpoint,NE as GetAddonEndpoint,aA as GetAddonRestoresEndpoint,lv as GetAddonTypesEndpoint,hA as GetAddonVersionEndpoint,Ym as GetApiEndpoint,Km as GetApiEndpointPaginated,fv as GetBackupdestinationEndpoint,wv as GetCloudClusterEndpoint,Ov as GetCloudIntegrationEndpoint,Nv as GetDnsidEndpoint,Gv as GetDomainEndpoint,$v as GetDomaincertificateEndpoint,bv as GetInvoiceDetailsEndpoint,FA as GetJobBranchesEndpoint,_A as GetJobBuildEndpoint,RA as GetJobBuildargumentdetailsEndpoint,BA as GetJobBuildargumentsEndpoint,wA as GetJobBuildsEndpoint,PA as GetJobContainersEndpoint,OA as GetJobDeploymentEndpoint,gA as GetJobEndpoint,xA as GetJobHealthchecksEndpoint,NA as GetJobPullrequestsEndpoint,zA as GetJobRunEndpoint,MA as GetJobRunsEndpoint,WA as GetJobRuntimeenvironmentEndpoint,VA as GetJobRuntimeenvironmentdetailsEndpoint,dE as GetLogsinkEndpoint,EE as GetNotificationEndpoint,XA as GetPipelineEndpoint,QA as GetPreviewtemplateEndpoint,ub as GetPreviewtemplaterunEndpoint,OE as GetProjectEndpoint,CE as GetRegistrycredentialsEndpoint,ob as GetReleaseflowEndpoint,cb as GetReleaseflowrunEndpoint,mb as GetSecretEndpoint,gb as GetSecretdetailsEndpoint,bb as GetSecretlinkEndpoint,Ob as GetServiceBranchesEndpoint,Gb as GetServiceBuildEndpoint,Nb as GetServiceBuildargumentdetailsEndpoint,Tb as GetServiceBuildargumentsEndpoint,kb as GetServiceBuildsEndpoint,$b as GetServiceContainersEndpoint,Wb as GetServiceDeploymentEndpoint,Ub as GetServiceEndpoint,Vb as GetServiceHealthchecksEndpoint,Yb as GetServicePortsEndpoint,Xb as GetServicePullrequestsEndpoint,ey as GetServiceRuntimeenvironmentEndpoint,ry as GetServiceRuntimeenvironmentdetailsEndpoint,Vv as GetSubdomainEndpoint,eE as GetSubdomainPathEndpoint,vy as GetTagEndpoint,gy as GetTemplateEndpoint,By as GetTemplaterunEndpoint,sy as GetVolumeEndpoint,rA as ImportAddonBackupEndpoint,Wv as ImportDomaincertificateEndpoint,xE as ListAddonsEndpoint,hv as ListBackupdestinationsEndpoint,Ev as ListBackupdestinationsbackupsEndpoint,RE as ListBranchesEndpoint,Iv as ListCloudClusterNodesEndpoint,gv as ListCloudClustersEndpoint,_v as ListCloudIntegrationsEndpoint,Tv as ListCloudNodetypesEndpoint,yv as ListCloudProvidersEndpoint,Lv as ListCloudRegionsEndpoint,qv as ListDomainsEndpoint,Av as ListInvoicesEndpoint,fA as ListJobsEndpoint,aE as ListLogsinksEndpoint,mE as ListNotificationsEndpoint,KA as ListPipelinesEndpoint,jE as ListPlansEndpoint,eb as ListPreviewtemplatepreviewsEndpoint,rb as ListPreviewtemplaterunsEndpoint,SE as ListProjectsEndpoint,hy as ListRegionsEndpoint,yE as ListRegistrycredentialsEndpoint,ab as ListReleaseflowrunsEndpoint,IE as ListReposEndpoint,lb as ListSecretsEndpoint,Cb as ListServicesEndpoint,tE as ListSubdomainPathEndpoint,py as ListTagsEndpoint,Dy as ListTemplaterunsEndpoint,by as ListTemplatesEndpoint,DE as ListVcsEndpoint,oy as ListVolumesEndpoint,$m as LogType,ov as MetricType,Jm as NorthflankApiCallError,tc as NorthflankExecCommand,Wm as NorthflankFileCopy,sv as NorthflankLogFetch,dv as NorthflankMetricFetch,Ka as NorthflankPortForwarder,qE as PatchAddonEndpoint,ev as PatchApiEndpoint,mv as PatchBackupdestinationEndpoint,Dv as PatchCloudClusterEndpoint,kv as PatchCloudIntegrationEndpoint,EA as PatchJobCronEndpoint,yA as PatchJobManualEndpoint,PE as PatchProjectEndpoint,fb as PatchSecretEndpoint,Db as PatchServiceBuildEndpoint,Rb as PatchServiceCombinedEndpoint,_b as PatchServiceDeploymentEndpoint,Ey as PatchTagEndpoint,oA as PauseAddonEndpoint,LA as PauseJobEndpoint,hE as PauseLogsinkEndpoint,Zb as PauseServiceEndpoint,Xm as PostApiEndpoint,LE as PutAddonEndpoint,tv as PutApiEndpoint,Fv as PutCloudClusterEndpoint,Pv as PutCloudIntegrationEndpoint,vA as PutJobCronEndpoint,bA as PutJobManualEndpoint,UE as PutProjectEndpoint,pb as PutSecretEndpoint,wb as PutServiceBuildEndpoint,Ib as PutServiceCombinedEndpoint,Sb as PutServiceDeploymentEndpoint,my as PutTagEndpoint,iA as ResetAddonEndpoint,sA as RestartAddonEndpoint,Qb as RestartServiceEndpoint,XE as RestoreAddonBackupEndpoint,cA as ResumeAddonEndpoint,qA as ResumeJobEndpoint,pE as ResumeLogsinkEndpoint,ty as ResumeServiceEndpoint,tA as RetainAddonBackupEndpoint,sb as RunReleaseflowEndpoint,wy as RunTemplateEndpoint,dA as ScaleAddonEndpoint,HA as ScaleJobEndpoint,uy as ScaleServiceEndpoint,DA as StartJobBuildEndpoint,GA as StartJobRunEndpoint,xb as StartServiceBuildEndpoint,YA as SuspendJobEndpoint,Yv as UnassignSubdomainEndpoint,oE as UnassignSubdomainPathEndpoint,Sv as UncordonCloudClusterNodeEndpoint,uA as UpdateAddonNetworksettingsEndpoint,lA as UpdateAddonSecurityEndpoint,pA as UpdateAddonVersionEndpoint,IA as UpdateJobBuildargumentsEndpoint,jA as UpdateJobBuildoptionsEndpoint,SA as UpdateJobBuildsourceEndpoint,kA as UpdateJobDeploymentEndpoint,TA as UpdateJobHealthchecksEndpoint,JA as UpdateJobRuntimeenvironmentEndpoint,ZA as UpdateJobSettingsEndpoint,fE as UpdateLogsinkEndpoint,AE as UpdateNotificationEndpoint,tb as UpdatePreviewtemplateEndpoint,FE as UpdateRegistrycredentialsEndpoint,ib as UpdateReleaseflowEndpoint,Eb as UpdateSecretEndpoint,Ab as UpdateSecretlinkEndpoint,Lb as UpdateServiceBuildargumentsEndpoint,qb as UpdateServiceBuildoptionsEndpoint,Mb as UpdateServiceBuildsourceEndpoint,Jb as UpdateServiceDeploymentEndpoint,Hb as UpdateServiceHealthchecksEndpoint,Kb as UpdateServicePortsEndpoint,ny as UpdateServiceRuntimeenvironmentEndpoint,rE as UpdateSubdomainPathEndpoint,Cy as UpdateTemplateEndpoint,ay as UpdateVolumeEndpoint,sE as VerifyDomainEndpoint,iE as VerifySubdomainEndpoint};
|