@activfinancial/one-api
Version:
A JavaScript API (with TypeScript definitions) to access the ACTIV OnePlatform.
2 lines • 2.38 MB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.activOneApi=e():n.activOneApi=e()}(self,(()=>(()=>{var n={9168:(n,e,l)=>{"use strict";var t=l(2282);function u(n){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},u(n)}function r(n,e){for(var l=0;l<e.length;l++){var t=e[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,(void 0,r=function(n,e){if("object"!==u(n)||null===n)return n;var l=n[Symbol.toPrimitive];if(void 0!==l){var t=l.call(n,"string");if("object"!==u(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t.key),"symbol"===u(r)?r:String(r)),t)}var r}function f(n,e,l){return e&&r(n.prototype,e),l&&r(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n}var i,o,a=l(2049).codes,v=a.ERR_AMBIGUOUS_ARGUMENT,s=a.ERR_INVALID_ARG_TYPE,I=a.ERR_INVALID_ARG_VALUE,d=a.ERR_INVALID_RETURN_VALUE,T=a.ERR_MISSING_ARGS,c=l(82),E=l(4629).inspect,p=l(4629).types,D=p.isPromise,m=p.isRegExp,b=l(2550)(),O=l(5790)(),P=l(3055)("RegExp.prototype.test");function N(){var n=l(7183);i=n.isDeepEqual,o=n.isDeepStrictEqual}new Map;var F=!1,h=n.exports=R,A={};function y(n){if(n.message instanceof Error)throw n.message;throw new c(n)}function S(n,e,l,t){if(!l){var u=!1;if(0===e)u=!0,t="No value argument passed to `assert.ok()`";else if(t instanceof Error)throw t;var r=new c({actual:l,expected:!0,message:t,operator:"==",stackStartFn:n});throw r.generatedMessage=u,r}}function R(){for(var n=arguments.length,e=new Array(n),l=0;l<n;l++)e[l]=arguments[l];S.apply(void 0,[R,e.length].concat(e))}h.fail=function n(e,l,u,r,f){var i,o=arguments.length;if(0===o?i="Failed":1===o?(u=e,e=void 0):(!1===F&&(F=!0,(t.emitWarning?t.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===o&&(r="!=")),u instanceof Error)throw u;var a={actual:e,expected:l,operator:void 0===r?"fail":r,stackStartFn:f||n};void 0!==u&&(a.message=u);var v=new c(a);throw i&&(v.message=i,v.generatedMessage=!0),v},h.AssertionError=c,h.ok=R,h.equal=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");e!=l&&y({actual:e,expected:l,message:t,operator:"==",stackStartFn:n})},h.notEqual=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");e==l&&y({actual:e,expected:l,message:t,operator:"!=",stackStartFn:n})},h.deepEqual=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");void 0===i&&N(),i(e,l)||y({actual:e,expected:l,message:t,operator:"deepEqual",stackStartFn:n})},h.notDeepEqual=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");void 0===i&&N(),i(e,l)&&y({actual:e,expected:l,message:t,operator:"notDeepEqual",stackStartFn:n})},h.deepStrictEqual=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");void 0===i&&N(),o(e,l)||y({actual:e,expected:l,message:t,operator:"deepStrictEqual",stackStartFn:n})},h.notDeepStrictEqual=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");void 0===i&&N(),o(e,l)&&y({actual:e,expected:l,message:t,operator:"notDeepStrictEqual",stackStartFn:n})},h.strictEqual=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");O(e,l)||y({actual:e,expected:l,message:t,operator:"strictEqual",stackStartFn:n})},h.notStrictEqual=function n(e,l,t){if(arguments.length<2)throw new T("actual","expected");O(e,l)&&y({actual:e,expected:l,message:t,operator:"notStrictEqual",stackStartFn:n})};var z=f((function n(e,l,t){var u=this;!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),l.forEach((function(n){n in e&&(void 0!==t&&"string"==typeof t[n]&&m(e[n])&&P(e[n],t[n])?u[n]=t[n]:u[n]=e[n])}))}));function M(n,e,l,t){if("function"!=typeof e){if(m(e))return P(e,n);if(2===arguments.length)throw new s("expected",["Function","RegExp"],e);if("object"!==u(n)||null===n){var r=new c({actual:n,expected:e,message:l,operator:"deepStrictEqual",stackStartFn:t});throw r.operator=t.name,r}var f=Object.keys(e);if(e instanceof Error)f.push("name","message");else if(0===f.length)throw new I("error",e,"may not be an empty object");return void 0===i&&N(),f.forEach((function(u){"string"==typeof n[u]&&m(e[u])&&P(e[u],n[u])||function(n,e,l,t,u,r){if(!(l in n)||!o(n[l],e[l])){if(!t){var f=new z(n,u),i=new z(e,u,n),a=new c({actual:f,expected:i,operator:"deepStrictEqual",stackStartFn:r});throw a.actual=n,a.expected=e,a.operator=r.name,a}y({actual:n,expected:e,message:t,operator:r.name,stackStartFn:r})}}(n,e,u,l,f,t)})),!0}return void 0!==e.prototype&&n instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},n)}function g(n){if("function"!=typeof n)throw new s("fn","Function",n);try{n()}catch(n){return n}return A}function L(n){return D(n)||null!==n&&"object"===u(n)&&"function"==typeof n.then&&"function"==typeof n.catch}function H(n){return Promise.resolve().then((function(){var e;if("function"==typeof n){if(!L(e=n()))throw new d("instance of Promise","promiseFn",e)}else{if(!L(n))throw new s("promiseFn",["Function","Promise"],n);e=n}return Promise.resolve().then((function(){return e})).then((function(){return A})).catch((function(n){return n}))}))}function x(n,e,l,t){if("string"==typeof l){if(4===arguments.length)throw new s("error",["Object","Error","Function","RegExp"],l);if("object"===u(e)&&null!==e){if(e.message===l)throw new v("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===l)throw new v("error/message",'The error "'.concat(e,'" is identical to the message.'));t=l,l=void 0}else if(null!=l&&"object"!==u(l)&&"function"!=typeof l)throw new s("error",["Object","Error","Function","RegExp"],l);if(e===A){var r="";l&&l.name&&(r+=" (".concat(l.name,")")),r+=t?": ".concat(t):".";var f="rejects"===n.name?"rejection":"exception";y({actual:void 0,expected:l,operator:n.name,message:"Missing expected ".concat(f).concat(r),stackStartFn:n})}if(l&&!M(e,l,t,n))throw e}function w(n,e,l,t){if(e!==A){if("string"==typeof l&&(t=l,l=void 0),!l||M(e,l)){var u=t?": ".concat(t):".",r="doesNotReject"===n.name?"rejection":"exception";y({actual:e,expected:l,operator:n.name,message:"Got unwanted ".concat(r).concat(u,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:n})}throw e}}function _(n,e,l,t,r){if(!m(e))throw new s("regexp","RegExp",e);var f="match"===r;if("string"!=typeof n||P(e,n)!==f){if(l instanceof Error)throw l;var i=!l;l=l||("string"!=typeof n?'The "string" argument must be of type string. Received type '+"".concat(u(n)," (").concat(E(n),")"):(f?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(E(e),". Input:\n\n").concat(E(n),"\n"));var o=new c({actual:n,expected:e,message:l,operator:r,stackStartFn:t});throw o.generatedMessage=i,o}}function G(){for(var n=arguments.length,e=new Array(n),l=0;l<n;l++)e[l]=arguments[l];S.apply(void 0,[G,e.length].concat(e))}h.throws=function n(e){for(var l=arguments.length,t=new Array(l>1?l-1:0),u=1;u<l;u++)t[u-1]=arguments[u];x.apply(void 0,[n,g(e)].concat(t))},h.rejects=function n(e){for(var l=arguments.length,t=new Array(l>1?l-1:0),u=1;u<l;u++)t[u-1]=arguments[u];return H(e).then((function(e){return x.apply(void 0,[n,e].concat(t))}))},h.doesNotThrow=function n(e){for(var l=arguments.length,t=new Array(l>1?l-1:0),u=1;u<l;u++)t[u-1]=arguments[u];w.apply(void 0,[n,g(e)].concat(t))},h.doesNotReject=function n(e){for(var l=arguments.length,t=new Array(l>1?l-1:0),u=1;u<l;u++)t[u-1]=arguments[u];return H(e).then((function(e){return w.apply(void 0,[n,e].concat(t))}))},h.ifError=function n(e){if(null!=e){var l="ifError got unwanted exception: ";"object"===u(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?l+=e.constructor.name:l+=e.message:l+=E(e);var t=new c({actual:e,expected:null,operator:"ifError",message:l,stackStartFn:n}),r=e.stack;if("string"==typeof r){var f=r.split("\n");f.shift();for(var i=t.stack.split("\n"),o=0;o<f.length;o++){var a=i.indexOf(f[o]);if(-1!==a){i=i.slice(0,a);break}}t.stack="".concat(i.join("\n"),"\n").concat(f.join("\n"))}throw t}},h.match=function n(e,l,t){_(e,l,t,n,"match")},h.doesNotMatch=function n(e,l,t){_(e,l,t,n,"doesNotMatch")},h.strict=b(G,h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict},82:(n,e,l)=>{"use strict";var t=l(2282);function u(n,e){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),l.push.apply(l,t)}return l}function r(n){for(var e=1;e<arguments.length;e++){var l=null!=arguments[e]?arguments[e]:{};e%2?u(Object(l),!0).forEach((function(e){var t,u,r;t=n,u=e,r=l[e],(u=i(u))in t?Object.defineProperty(t,u,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[u]=r})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):u(Object(l)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(l,e))}))}return n}function f(n,e){for(var l=0;l<e.length;l++){var t=e[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,i(t.key),t)}}function i(n){var e=function(n,e){if("object"!==c(n)||null===n)return n;var l=n[Symbol.toPrimitive];if(void 0!==l){var t=l.call(n,"string");if("object"!==c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===c(e)?e:String(e)}function o(n,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(n)}function a(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function v(n){var e="function"==typeof Map?new Map:void 0;return v=function(n){if(null===n||(l=n,-1===Function.toString.call(l).indexOf("[native code]")))return n;var l;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(n))return e.get(n);e.set(n,t)}function t(){return s(n,arguments,T(this).constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),d(t,n)},v(n)}function s(n,e,l){return s=I()?Reflect.construct.bind():function(n,e,l){var t=[null];t.push.apply(t,e);var u=new(Function.bind.apply(n,t));return l&&d(u,l.prototype),u},s.apply(null,arguments)}function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function d(n,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},d(n,e)}function T(n){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},T(n)}function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}var E=l(4629).inspect,p=l(2049).codes.ERR_INVALID_ARG_TYPE;function D(n,e,l){return(void 0===l||l>n.length)&&(l=n.length),n.substring(l-e.length,l)===e}var m="",b="",O="",P="",N={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function F(n){var e=Object.keys(n),l=Object.create(Object.getPrototypeOf(n));return e.forEach((function(e){l[e]=n[e]})),Object.defineProperty(l,"message",{value:n.message}),l}function h(n){return E(n,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(n,e){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&d(n,e)}(A,n);var l,u,i,v,s=(l=A,u=I(),function(){var n,e=T(l);if(u){var t=T(this).constructor;n=Reflect.construct(e,arguments,t)}else n=e.apply(this,arguments);return o(this,n)});function A(n){var e;if(function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,A),"object"!==c(n)||null===n)throw new p("options","Object",n);var l=n.message,u=n.operator,r=n.stackStartFn,f=n.actual,i=n.expected,v=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=l)e=s.call(this,String(l));else if(t.stderr&&t.stderr.isTTY&&(t.stderr&&t.stderr.getColorDepth&&1!==t.stderr.getColorDepth()?(m="[34m",b="[32m",P="[39m",O="[31m"):(m="",b="",P="",O="")),"object"===c(f)&&null!==f&&"object"===c(i)&&null!==i&&"stack"in f&&f instanceof Error&&"stack"in i&&i instanceof Error&&(f=F(f),i=F(i)),"deepStrictEqual"===u||"strictEqual"===u)e=s.call(this,function(n,e,l){var u="",r="",f=0,i="",o=!1,a=h(n),v=a.split("\n"),s=h(e).split("\n"),I=0,d="";if("strictEqual"===l&&"object"===c(n)&&"object"===c(e)&&null!==n&&null!==e&&(l="strictEqualObject"),1===v.length&&1===s.length&&v[0]!==s[0]){var T=v[0].length+s[0].length;if(T<=10){if(!("object"===c(n)&&null!==n||"object"===c(e)&&null!==e||0===n&&0===e))return"".concat(N[l],"\n\n")+"".concat(v[0]," !== ").concat(s[0],"\n")}else if("strictEqualObject"!==l&&T<(t.stderr&&t.stderr.isTTY?t.stderr.columns:80)){for(;v[0][I]===s[0][I];)I++;I>2&&(d="\n ".concat(function(n,e){if(e=Math.floor(e),0==n.length||0==e)return"";var l=n.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)n+=n,e--;return n+n.substring(0,l-n.length)}(" ",I),"^"),I=0)}}for(var E=v[v.length-1],p=s[s.length-1];E===p&&(I++<2?i="\n ".concat(E).concat(i):u=E,v.pop(),s.pop(),0!==v.length&&0!==s.length);)E=v[v.length-1],p=s[s.length-1];var F=Math.max(v.length,s.length);if(0===F){var A=a.split("\n");if(A.length>30)for(A[26]="".concat(m,"...").concat(P);A.length>27;)A.pop();return"".concat(N.notIdentical,"\n\n").concat(A.join("\n"),"\n")}I>3&&(i="\n".concat(m,"...").concat(P).concat(i),o=!0),""!==u&&(i="\n ".concat(u).concat(i),u="");var y=0,S=N[l]+"\n".concat(b,"+ actual").concat(P," ").concat(O,"- expected").concat(P),R=" ".concat(m,"...").concat(P," Lines skipped");for(I=0;I<F;I++){var z=I-f;if(v.length<I+1)z>1&&I>2&&(z>4?(r+="\n".concat(m,"...").concat(P),o=!0):z>3&&(r+="\n ".concat(s[I-2]),y++),r+="\n ".concat(s[I-1]),y++),f=I,u+="\n".concat(O,"-").concat(P," ").concat(s[I]),y++;else if(s.length<I+1)z>1&&I>2&&(z>4?(r+="\n".concat(m,"...").concat(P),o=!0):z>3&&(r+="\n ".concat(v[I-2]),y++),r+="\n ".concat(v[I-1]),y++),f=I,r+="\n".concat(b,"+").concat(P," ").concat(v[I]),y++;else{var M=s[I],g=v[I],L=g!==M&&(!D(g,",")||g.slice(0,-1)!==M);L&&D(M,",")&&M.slice(0,-1)===g&&(L=!1,g+=","),L?(z>1&&I>2&&(z>4?(r+="\n".concat(m,"...").concat(P),o=!0):z>3&&(r+="\n ".concat(v[I-2]),y++),r+="\n ".concat(v[I-1]),y++),f=I,r+="\n".concat(b,"+").concat(P," ").concat(g),u+="\n".concat(O,"-").concat(P," ").concat(M),y+=2):(r+=u,u="",1!==z&&0!==I||(r+="\n ".concat(g),y++))}if(y>20&&I<F-2)return"".concat(S).concat(R,"\n").concat(r,"\n").concat(m,"...").concat(P).concat(u,"\n")+"".concat(m,"...").concat(P)}return"".concat(S).concat(o?R:"","\n").concat(r).concat(u).concat(i).concat(d)}(f,i,u));else if("notDeepStrictEqual"===u||"notStrictEqual"===u){var I=N[u],d=h(f).split("\n");if("notStrictEqual"===u&&"object"===c(f)&&null!==f&&(I=N.notStrictEqualObject),d.length>30)for(d[26]="".concat(m,"...").concat(P);d.length>27;)d.pop();e=1===d.length?s.call(this,"".concat(I," ").concat(d[0])):s.call(this,"".concat(I,"\n\n").concat(d.join("\n"),"\n"))}else{var T=h(f),E="",y=N[u];"notDeepEqual"===u||"notEqual"===u?(T="".concat(N[u],"\n\n").concat(T)).length>1024&&(T="".concat(T.slice(0,1021),"...")):(E="".concat(h(i)),T.length>512&&(T="".concat(T.slice(0,509),"...")),E.length>512&&(E="".concat(E.slice(0,509),"...")),"deepEqual"===u||"equal"===u?T="".concat(y,"\n\n").concat(T,"\n\nshould equal\n\n"):E=" ".concat(u," ").concat(E)),e=s.call(this,"".concat(T).concat(E))}return Error.stackTraceLimit=v,e.generatedMessage=!l,Object.defineProperty(a(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=f,e.expected=i,e.operator=u,Error.captureStackTrace&&Error.captureStackTrace(a(e),r),e.stack,e.name="AssertionError",o(e)}return i=A,(v=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(n,e){return E(this,r(r({},e),{},{customInspect:!1,depth:0}))}}])&&f(i.prototype,v),Object.defineProperty(i,"prototype",{writable:!1}),A}(v(Error),E.custom);n.exports=A},2049:(n,e,l)=>{"use strict";function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}function u(n,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},u(n,e)}function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}var f,i,o={};function a(n,e,l){l||(l=Error);var f=function(l){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&u(n,e)}(v,l);var f,i,o,a=(i=v,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}(),function(){var n,e=r(i);if(o){var l=r(this).constructor;n=Reflect.construct(e,arguments,l)}else n=e.apply(this,arguments);return function(n,e){if(e&&("object"===t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}(this,n)});function v(l,t,u){var r;return function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),r=a.call(this,function(n,l,t){return"string"==typeof e?e:e(n,l,t)}(l,t,u)),r.code=n,r}return f=v,Object.defineProperty(f,"prototype",{writable:!1}),f}(l);o[n]=f}function v(n,e){if(Array.isArray(n)){var l=n.length;return n=n.map((function(n){return String(n)})),l>2?"one of ".concat(e," ").concat(n.slice(0,l-1).join(", "),", or ")+n[l-1]:2===l?"one of ".concat(e," ").concat(n[0]," or ").concat(n[1]):"of ".concat(e," ").concat(n[0])}return"of ".concat(e," ").concat(String(n))}a("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),a("ERR_INVALID_ARG_TYPE",(function(n,e,u){var r,i,o,a,s;if(void 0===f&&(f=l(9168)),f("string"==typeof n,"'name' must be a string"),"string"==typeof e&&(i="not ",e.substr(0,4)===i)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(n,e,l){return(void 0===l||l>n.length)&&(l=n.length),n.substring(l-9,l)===e}(n," argument"))o="The ".concat(n," ").concat(r," ").concat(v(e,"type"));else{var I=("number"!=typeof s&&(s=0),s+1>(a=n).length||-1===a.indexOf(".",s)?"argument":"property");o='The "'.concat(n,'" ').concat(I," ").concat(r," ").concat(v(e,"type"))}return o+". Received type ".concat(t(u))}),TypeError),a("ERR_INVALID_ARG_VALUE",(function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===i&&(i=l(4629));var u=i.inspect(e);return u.length>128&&(u="".concat(u.slice(0,128),"...")),"The argument '".concat(n,"' ").concat(t,". Received ").concat(u)}),TypeError,RangeError),a("ERR_INVALID_RETURN_VALUE",(function(n,e,l){var u;return u=l&&l.constructor&&l.constructor.name?"instance of ".concat(l.constructor.name):"type ".concat(t(l)),"Expected ".concat(n,' to be returned from the "').concat(e,'"')+" function but got ".concat(u,".")}),TypeError),a("ERR_MISSING_ARGS",(function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];void 0===f&&(f=l(9168)),f(e.length>0,"At least one arg needs to be specified");var u="The ",r=e.length;switch(e=e.map((function(n){return'"'.concat(n,'"')})),r){case 1:u+="".concat(e[0]," argument");break;case 2:u+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:u+=e.slice(0,r-1).join(", "),u+=", and ".concat(e[r-1]," arguments")}return"".concat(u," must be specified")}),TypeError),n.exports.codes=o},7183:(n,e,l)=>{"use strict";function t(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var l=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=l){var t,u,r,f,i=[],o=!0,a=!1;try{if(r=(l=l.call(n)).next,0===e){if(Object(l)!==l)return;o=!1}else for(;!(o=(t=r.call(l)).done)&&(i.push(t.value),i.length!==e);o=!0);}catch(n){a=!0,u=n}finally{try{if(!o&&null!=l.return&&(f=l.return(),Object(f)!==f))return}finally{if(a)throw u}}return i}}(n,e)||function(n,e){if(n){if("string"==typeof n)return u(n,e);var l=Object.prototype.toString.call(n).slice(8,-1);return"Object"===l&&n.constructor&&(l=n.constructor.name),"Map"===l||"Set"===l?Array.from(n):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?u(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(n,e){(null==e||e>n.length)&&(e=n.length);for(var l=0,t=new Array(e);l<e;l++)t[l]=n[l];return t}function r(n){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r(n)}var f=void 0!==/a/g.flags,i=function(n){var e=[];return n.forEach((function(n){return e.push(n)})),e},o=function(n){var e=[];return n.forEach((function(n,l){return e.push([l,n])})),e},a=Object.is?Object.is:l(6521),v=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},s=Number.isNaN?Number.isNaN:l(6553);function I(n){return n.call.bind(n)}var d=I(Object.prototype.hasOwnProperty),T=I(Object.prototype.propertyIsEnumerable),c=I(Object.prototype.toString),E=l(4629).types,p=E.isAnyArrayBuffer,D=E.isArrayBufferView,m=E.isDate,b=E.isMap,O=E.isRegExp,P=E.isSet,N=E.isNativeError,F=E.isBoxedPrimitive,h=E.isNumberObject,A=E.isStringObject,y=E.isBooleanObject,S=E.isBigIntObject,R=E.isSymbolObject,z=E.isFloat32Array,M=E.isFloat64Array;function g(n){if(0===n.length||n.length>10)return!0;for(var e=0;e<n.length;e++){var l=n.charCodeAt(e);if(l<48||l>57)return!0}return 10===n.length&&n>=Math.pow(2,32)}function L(n){return Object.keys(n).filter(g).concat(v(n).filter(Object.prototype.propertyIsEnumerable.bind(n)))}function H(n,e){if(n===e)return 0;for(var l=n.length,t=e.length,u=0,r=Math.min(l,t);u<r;++u)if(n[u]!==e[u]){l=n[u],t=e[u];break}return l<t?-1:t<l?1:0}var x=0,w=1,_=2,G=3;function C(n,e,l,t){if(n===e)return 0!==n||!l||a(n,e);if(l){if("object"!==r(n))return"number"==typeof n&&s(n)&&s(e);if("object"!==r(e)||null===n||null===e)return!1;if(Object.getPrototypeOf(n)!==Object.getPrototypeOf(e))return!1}else{if(null===n||"object"!==r(n))return(null===e||"object"!==r(e))&&n==e;if(null===e||"object"!==r(e))return!1}var u,i,o,v,I=c(n);if(I!==c(e))return!1;if(Array.isArray(n)){if(n.length!==e.length)return!1;var d=L(n),T=L(e);return d.length===T.length&&Z(n,e,l,t,w,d)}if("[object Object]"===I&&(!b(n)&&b(e)||!P(n)&&P(e)))return!1;if(m(n)){if(!m(e)||Date.prototype.getTime.call(n)!==Date.prototype.getTime.call(e))return!1}else if(O(n)){if(!O(e)||(o=n,v=e,!(f?o.source===v.source&&o.flags===v.flags:RegExp.prototype.toString.call(o)===RegExp.prototype.toString.call(v))))return!1}else if(N(n)||n instanceof Error){if(n.message!==e.message||n.name!==e.name)return!1}else{if(D(n)){if(l||!z(n)&&!M(n)){if(!function(n,e){return n.byteLength===e.byteLength&&0===H(new Uint8Array(n.buffer,n.byteOffset,n.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(n,e))return!1}else if(!function(n,e){if(n.byteLength!==e.byteLength)return!1;for(var l=0;l<n.byteLength;l++)if(n[l]!==e[l])return!1;return!0}(n,e))return!1;var E=L(n),g=L(e);return E.length===g.length&&Z(n,e,l,t,x,E)}if(P(n))return!(!P(e)||n.size!==e.size)&&Z(n,e,l,t,_);if(b(n))return!(!b(e)||n.size!==e.size)&&Z(n,e,l,t,G);if(p(n)){if(i=e,(u=n).byteLength!==i.byteLength||0!==H(new Uint8Array(u),new Uint8Array(i)))return!1}else if(F(n)&&!function(n,e){return h(n)?h(e)&&a(Number.prototype.valueOf.call(n),Number.prototype.valueOf.call(e)):A(n)?A(e)&&String.prototype.valueOf.call(n)===String.prototype.valueOf.call(e):y(n)?y(e)&&Boolean.prototype.valueOf.call(n)===Boolean.prototype.valueOf.call(e):S(n)?S(e)&&BigInt.prototype.valueOf.call(n)===BigInt.prototype.valueOf.call(e):R(e)&&Symbol.prototype.valueOf.call(n)===Symbol.prototype.valueOf.call(e)}(n,e))return!1}return Z(n,e,l,t,x)}function B(n,e){return e.filter((function(e){return T(n,e)}))}function Z(n,e,l,u,f,a){if(5===arguments.length){a=Object.keys(n);var s=Object.keys(e);if(a.length!==s.length)return!1}for(var I=0;I<a.length;I++)if(!d(e,a[I]))return!1;if(l&&5===arguments.length){var c=v(n);if(0!==c.length){var E=0;for(I=0;I<c.length;I++){var p=c[I];if(T(n,p)){if(!T(e,p))return!1;a.push(p),E++}else if(T(e,p))return!1}var D=v(e);if(c.length!==D.length&&B(e,D).length!==E)return!1}else{var m=v(e);if(0!==m.length&&0!==B(e,m).length)return!1}}if(0===a.length&&(f===x||f===w&&0===n.length||0===n.size))return!0;if(void 0===u)u={val1:new Map,val2:new Map,position:0};else{var b=u.val1.get(n);if(void 0!==b){var O=u.val2.get(e);if(void 0!==O)return b===O}u.position++}u.val1.set(n,u.position),u.val2.set(e,u.position);var P=function(n,e,l,u,f,a){var v=0;if(a===_){if(!function(n,e,l,t){for(var u=null,f=i(n),o=0;o<f.length;o++){var a=f[o];if("object"===r(a)&&null!==a)null===u&&(u=new Set),u.add(a);else if(!e.has(a)){if(l)return!1;if(!k(n,e,a))return!1;null===u&&(u=new Set),u.add(a)}}if(null!==u){for(var v=i(e),s=0;s<v.length;s++){var I=v[s];if("object"===r(I)&&null!==I){if(!j(u,I,l,t))return!1}else if(!l&&!n.has(I)&&!j(u,I,l,t))return!1}return 0===u.size}return!0}(n,e,l,f))return!1}else if(a===G){if(!function(n,e,l,u){for(var f=null,i=o(n),a=0;a<i.length;a++){var v=t(i[a],2),s=v[0],I=v[1];if("object"===r(s)&&null!==s)null===f&&(f=new Set),f.add(s);else{var d=e.get(s);if(void 0===d&&!e.has(s)||!C(I,d,l,u)){if(l)return!1;if(!Y(n,e,s,I,u))return!1;null===f&&(f=new Set),f.add(s)}}}if(null!==f){for(var T=o(e),c=0;c<T.length;c++){var E=t(T[c],2),p=E[0],D=E[1];if("object"===r(p)&&null!==p){if(!U(f,n,p,D,l,u))return!1}else if(!(l||n.has(p)&&C(n.get(p),D,!1,u)||U(f,n,p,D,!1,u)))return!1}return 0===f.size}return!0}(n,e,l,f))return!1}else if(a===w)for(;v<n.length;v++){if(!d(n,v)){if(d(e,v))return!1;for(var s=Object.keys(n);v<s.length;v++){var I=s[v];if(!d(e,I)||!C(n[I],e[I],l,f))return!1}return s.length===Object.keys(e).length}if(!d(e,v)||!C(n[v],e[v],l,f))return!1}for(v=0;v<u.length;v++){var T=u[v];if(!C(n[T],e[T],l,f))return!1}return!0}(n,e,l,a,u,f);return u.val1.delete(n),u.val2.delete(e),P}function j(n,e,l,t){for(var u=i(n),r=0;r<u.length;r++){var f=u[r];if(C(e,f,l,t))return n.delete(f),!0}return!1}function X(n){switch(r(n)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":n=+n;case"number":if(s(n))return!1}return!0}function k(n,e,l){var t=X(l);return null!=t?t:e.has(t)&&!n.has(t)}function Y(n,e,l,t,u){var r=X(l);if(null!=r)return r;var f=e.get(r);return!(void 0===f&&!e.has(r)||!C(t,f,!1,u))&&!n.has(r)&&C(t,f,!1,u)}function U(n,e,l,t,u,r){for(var f=i(n),o=0;o<f.length;o++){var a=f[o];if(C(l,a,u,r)&&C(t,e.get(a),u,r))return n.delete(a),!0}return!1}n.exports={isDeepEqual:function(n,e){return C(n,e,!1)},isDeepStrictEqual:function(n,e){return C(n,e,!0)}}},7130:(n,e)=>{"use strict";e.byteLength=function(n){var e=i(n),l=e[0],t=e[1];return 3*(l+t)/4-t},e.toByteArray=function(n){var e,l,r=i(n),f=r[0],o=r[1],a=new u(function(n,e,l){return 3*(e+l)/4-l}(0,f,o)),v=0,s=o>0?f-4:f;for(l=0;l<s;l+=4)e=t[n.charCodeAt(l)]<<18|t[n.charCodeAt(l+1)]<<12|t[n.charCodeAt(l+2)]<<6|t[n.charCodeAt(l+3)],a[v++]=e>>16&255,a[v++]=e>>8&255,a[v++]=255&e;return 2===o&&(e=t[n.charCodeAt(l)]<<2|t[n.charCodeAt(l+1)]>>4,a[v++]=255&e),1===o&&(e=t[n.charCodeAt(l)]<<10|t[n.charCodeAt(l+1)]<<4|t[n.charCodeAt(l+2)]>>2,a[v++]=e>>8&255,a[v++]=255&e),a},e.fromByteArray=function(n){for(var e,t=n.length,u=t%3,r=[],f=16383,i=0,a=t-u;i<a;i+=f)r.push(o(n,i,i+f>a?a:i+f));return 1===u?(e=n[t-1],r.push(l[e>>2]+l[e<<4&63]+"==")):2===u&&(e=(n[t-2]<<8)+n[t-1],r.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),r.join("")};for(var l=[],t=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0;f<64;++f)l[f]=r[f],t[r.charCodeAt(f)]=f;function i(n){var e=n.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=n.indexOf("=");return-1===l&&(l=e),[l,l===e?0:4-l%4]}function o(n,e,t){for(var u,r,f=[],i=e;i<t;i+=3)u=(n[i]<<16&16711680)+(n[i+1]<<8&65280)+(255&n[i+2]),f.push(l[(r=u)>>18&63]+l[r>>12&63]+l[r>>6&63]+l[63&r]);return f.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},2898:(n,e,l)=>{"use strict";var t=l(5451).Buffer,u=l(2282),r=l(9168),f=l(6742),i=l(4047),o=l(4003),a=l(7149);for(var v in a)e[v]=a[v];function s(n){if("number"!=typeof n||n<e.DEFLATE||n>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=n,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7,s.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,r(this.init_done,"close before init"),r(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?i.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||o.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},s.prototype.write=function(n,e,l,t,u,r,f){return this._write(!0,n,e,l,t,u,r,f)},s.prototype.writeSync=function(n,e,l,t,u,r,f){return this._write(!1,n,e,l,t,u,r,f)},s.prototype._write=function(n,l,f,i,o,a,v,s){if(r.equal(arguments.length,8),r(this.init_done,"write before init"),r(this.mode!==e.NONE,"already finalized"),r.equal(!1,this.write_in_progress,"write already in progress"),r.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,r.equal(!1,void 0===l,"must provide flush value"),this.write_in_progress=!0,l!==e.Z_NO_FLUSH&&l!==e.Z_PARTIAL_FLUSH&&l!==e.Z_SYNC_FLUSH&&l!==e.Z_FULL_FLUSH&&l!==e.Z_FINISH&&l!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==f&&(f=t.alloc(0),o=0,i=0),this.strm.avail_in=o,this.strm.input=f,this.strm.next_in=i,this.strm.avail_out=s,this.strm.output=a,this.strm.next_out=v,this.flush=l,!n)return this._process(),this._checkError()?this._afterSync():void 0;var I=this;return u.nextTick((function(){I._process(),I._after()})),this},s.prototype._afterSync=function(){var n=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,n]},s.prototype._process=function(){var n=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(n=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===n)break;if(31!==this.strm.input[n]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,n++,1===this.strm.avail_in)break;case 1:if(null===n)break;139===this.strm.input[n]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=o.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=o.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=o.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=o.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},s.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},s.prototype._after=function(){if(this._checkError()){var n=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,n),this.pending_close&&this.close()}},s.prototype._error=function(n){this.strm.msg&&(n=this.strm.msg),this.onerror(n,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},s.prototype.init=function(n,l,t,u,f){r(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),r(n>=8&&n<=15,"invalid windowBits"),r(l>=-1&&l<=9,"invalid compression level"),r(t>=1&&t<=9,"invalid memlevel"),r(u===e.Z_FILTERED||u===e.Z_HUFFMAN_ONLY||u===e.Z_RLE||u===e.Z_FIXED||u===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(l,n,t,u,f),this._setDictionary()},s.prototype.params=function(){throw new Error("deflateParams Not supported")},s.prototype.reset=function(){this._reset(),this._setDictionary()},s.prototype._init=function(n,l,t,u,r){switch(this.level=n,this.windowBits=l,this.memLevel=t,this.strategy=u,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new f,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=o.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=r,this.write_in_progress=!1,this.init_done=!0},s.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=i.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},s.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=i.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=o.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=s},4963:(n,e,l)=>{"use strict";var t=l(2282),u=l(5451).Buffer,r=l(506).Transform,f=l(2898),i=l(4629),o=l(9168).ok,a=l(5451).kMaxLength,v="Cannot create final Buffer. It would be larger than 0x"+a.toString(16)+" bytes";f.Z_MIN_WINDOWBITS=8,f.Z_MAX_WINDOWBITS=15,f.Z_DEFAULT_WINDOWBITS=15,f.Z_MIN_CHUNK=64,f.Z_MAX_CHUNK=1/0,f.Z_DEFAULT_CHUNK=16384,f.Z_MIN_MEMLEVEL=1,f.Z_MAX_MEMLEVEL=9,f.Z_DEFAULT_MEMLEVEL=8,f.Z_MIN_LEVEL=-1,f.Z_MAX_LEVEL=9,f.Z_DEFAULT_LEVEL=f.Z_DEFAULT_COMPRESSION;for(var s=Object.keys(f),I=0;I<s.length;I++){var d=s[I];d.match(/^Z/)&&Object.defineProperty(e,d,{enumerable:!0,value:f[d],writable:!1})}for(var T={Z_OK:f.Z_OK,Z_STREAM_END:f.Z_STREAM_END,Z_NEED_DICT:f.Z_NEED_DICT,Z_ERRNO:f.Z_ERRNO,Z_STREAM_ERROR:f.Z_STREAM_ERROR,Z_DATA_ERROR:f.Z_DATA_ERROR,Z_MEM_ERROR:f.Z_MEM_ERROR,Z_BUF_ERROR:f.Z_BUF_ERROR,Z_VERSION_ERROR:f.Z_VERSION_ERROR},c=Object.keys(T),E=0;E<c.length;E++){var p=c[E];T[T[p]]=p}function D(n,e,l){var t=[],r=0;function f(){for(var e;null!==(e=n.read());)t.push(e),r+=e.length;n.once("readable",f)}function i(){var e,f=null;r>=a?f=new RangeError(v):e=u.concat(t,r),t=[],n.close(),l(f,e)}n.on("error",(function(e){n.removeListener("end",i),n.removeListener("readable",f),l(e)})),n.on("end",i),n.end(e),f()}function m(n,e){if("string"==typeof e&&(e=u.from(e)),!u.isBuffer(e))throw new TypeError("Not a string or buffer");var l=n._finishFlushFlag;return n._processChunk(e,l)}function b(n){if(!(this instanceof b))return new b(n);S.call(this,n,f.DEFLATE)}function O(n){if(!(this instanceof O))return new O(n);S.call(this,n,f.INFLATE)}function P(n){if(!(this instanceof P))return new P(n);S.call(this,n,f.GZIP)}function N(n){if(!(this instanceof N))return new N(n);S.call(this,n,f.GUNZIP)}function F(n){if(!(this instanceof F))return new F(n);S.call(this,n,f.DEFLATERAW)}function h(n){if(!(this instanceof h))return new h(n);S.call(this,n,f.INFLATERAW)}function A(n){if(!(this instanceof A))return new A(n);S.call(this,n,f.UNZIP)}function y(n){return n===f.Z_NO_FLUSH||n===f.Z_PARTIAL_FLUSH||n===f.Z_SYNC_FLUSH||n===f.Z_FULL_FLUSH||n===f.Z_FINISH||n===f.Z_BLOCK}function S(n,l){var t=this;if(this._opts=n=n||{},this._chunkSize=n.chunkSize||e.Z_DEFAULT_CHUNK,r.call(this,n),n.flush&&!y(n.flush))throw new Error("Invalid flush flag: "+n.flush);if(n.finishFlush&&!y(n.finishFlush))throw new Error("Invalid flush flag: "+n.finishFlush);if(this._flushFlag=n.flush||f.Z_NO_FLUSH,this._finishFlushFlag=void 0!==n.finishFlush?n.finishFlush:f.Z_FINISH,n.chunkSize&&(n.chunkSize<e.Z_MIN_CHUNK||n.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+n.chunkSize);if(n.windowBits&&(n.windowBits<e.Z_MIN_WINDOWBITS||n.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+n.windowBits);if(n.level&&(n.level<e.Z_MIN_LEVEL||n.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+n.level);if(n.memLevel&&(n.memLevel<e.Z_MIN_MEMLEVEL||n.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+n.memLevel);if(n.strategy&&n.strategy!=e.Z_FILTERED&&n.strategy!=e.Z_HUFFMAN_ONLY&&n.strategy!=e.Z_RLE&&n.strategy!=e.Z_FIXED&&n.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+n.strategy);if(n.dictionary&&!u.isBuffer(n.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new f.Zlib(l);var i=this;this._hadError=!1,this._handle.onerror=function(n,l){R(i),i._hadError=!0;var t=new Error(n);t.errno=l,t.code=e.codes[l],i.emit("error",t)};var o=e.Z_DEFAULT_COMPRESSION;"number"==typeof n.level&&(o=n.level);var a=e.Z_DEFAULT_STRATEGY;"number"==typeof n.strategy&&(a=n.strategy),this._handle.init(n.windowBits||e.Z_DEFAULT_WINDOWBITS,o,n.memLevel||e.Z_DEFAULT_MEMLEVEL,a,n.dictionary),this._buffer=u.allocUnsafe(this._chunkSize),this._offset=0,this._level=o,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!t._handle},configurable:!0,enumerable:!0})}function R(n,e){e&&t.nextTick(e),n._handle&&(n._handle.close(),n._handle=null)}function z(n){n.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(T),writable:!1}),e.Deflate=b,e.Inflate=O,e.Gzip=P,e.Gunzip=N,e.DeflateRaw=F,e.InflateRaw=h,e.Unzip=A,e.createDeflate=function(n){return new b(n)},e.createInflate=function(n){return new O(n)},e.createDeflateRaw=function(n){return new F(n)},e.createInflateRaw=function(n){return new h(n)},e.createGzip=function(n){return new P(n)},e.createGunzip=function(n){return new N(n)},e.createUnzip=function(n){return new A(n)},e.deflate=function(n,e,l){return"function"==typeof e&&(l=e,e={}),D(new b(e),n,l)},e.deflateSync=function(n,e){return m(new b(e),n)},e.gzip=function(n,e,l){return"function"==typeof e&&(l=e,e={}),D(new P(e),n,l)},e.gzipSync=function(n,e){return m(new P(e),n)},e.deflateRaw=function(n,e,l){return"function"==typeof e&&(l=e,e={}),D(new F(e),n,l)},e.deflateRawSync=function(n,e){return m(new F(e),n)},e.unzip=function(n,e,l){return"function"==typeof e&&(l=e,e={}),D(new A(e),n,l)},e.unzipSync=function(n,e){return m(new A(e),n)},e.inflate=function(n,e,l){return"function"==typeof e&&(l=e,e={}),D(new O(e),n,l)},e.inflateSync=function(n,e){return m(new O(e),n)},e.gunzip=function(n,e,l){return"function"==typeof e&&(l=e,e={}),D(new N(e),n,l)},e.gunzipSync=function(n,e){return m(new N(e),n)},e.inflateRaw=function(n,e,l){return"function"==typeof e&&(l=e,e={}),D(new h(e),n,l)},e.inflateRawSync=function(n,e){return m(new h(e),n)},i.inherits(S,r),S.prototype.params=function(n,l,u){if(n<e.Z_MIN_LEVEL||n>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(l!=e.Z_FILTERED&&l!=e.Z_HUFFMAN_ONLY&&l!=e.Z_RLE&&l!=e.Z_FIXED&&l!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+l);if(this._level!==n||this._strategy!==l){var r=this;this.flush(f.Z_SYNC_FLUSH,(function(){o(r._handle,"zlib binding closed"),r._handle.params(n,l),r._hadError||(r._level=n,r._strategy=l,u&&u())}))}else t.nextTick(u)},S.prototype.reset=function(){return o(this._handle,"zlib binding closed"),this._handle.reset()},S.prototype._flush=function(n){this._transform(u.alloc(0),"",n)},S.prototype.flush=function(n,e){var l=this,r=this._writableState;("function"==typeof n||void 0===n&&!e)&&(e=n,n=f.Z_FULL_FLUSH),r.ended?e&&t.nextTick(e):r.ending?e&&this.once("end",e):r.needDrain?e&&this.once("drain",(function(){return l.flush(n,e)})):(this._flushFlag=n,this.write(u.alloc(0),"",e))},S.prototype.close=function(n){R(this,n),t.nextTick(z,this)},S.prototype._transform=function(n,e,l){var t,r=this._writableState,i=(r.ending||r.ended)&&(!n||r.length===n.length);return null===n||u.isBuffer(n)?this._handle?(i?t=this._finishFlushFlag:(t=this._flushFlag,n.length>=r.length&&(this._flushFlag=this._opts.flush||f.Z_NO_FLUSH)),void this._processChunk(n,t,l)):l(new Error("zlib binding closed")):l(new Error("invalid input"))},S.prototype._processChunk=function(n,e,l){var t=n&&n.length,r=this._chunkSize-this._offset,f=0,i=this,s="function"==typeof l;if(!s){var I,d=[],T=0;this.on("error",(function(n){I=n})),o(this._handle,"zlib binding closed");do{var c=this._handle.writeSync(e,n,f,t,this._buffer,this._offset,r)}while(!this._hadError&&D(c[0],c[1]));if(this._hadError)throw I;if(T>=a)throw R(this),new RangeError(v);var E=u.concat(d,T);return R(this),E}o(this._handle,"zlib binding closed");var p=this._handle.write(e,n,f,t,this._buffer,this._offset,r);function D(a,v){if(this&&(this.buffer=null,this.callback=null),!i._hadError){var I=r-v;if(o(I>=0,"have should not go down"),I>0){var c=i._buffer.slice(i._offset,i._offset+I);i._offset+=I,s?i.push(c):(d.push(c),T+=c.length)}if((0===v||i._offset>=i._chunkSize)&&(r=i._chunkSize,i._offset=0,i._buffer=u.allocUnsafe(i._chunkSize)),0===v){if(f+=t-a,t=a,!s)return!0;var E=i._handle.write(e,n,f,t,i._buffer,i._offset,i._chunkSize);return E.callback=D,void(E.buffer=n)}if(!s)return!1;l()}}p.buffer=n,p.callback=D},i.inherits(b,S),i.inherits(O,S),i.inherits(P,S),i.inherits(N,S),i.inherits(F,S),i.inherits(h,S),i.inherits(A,S)},5451:(n,e,l)=>{"use strict";const t=l(7130),u=l(6607),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=function(n){return+n!=n&&(n=0),o.alloc(+n)},e.INSPECT_MAX_BYTES=50;const f=2147483647;function i(n){if(n>f)throw new RangeError('The value "'+n+'" is invalid for option "size"');const e=new Uint8Array(n);return Object.setPrototypeOf(e,o.prototype),e}function o(n,e,l){if("number"==typeof n){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return s(n)}return a(n,e,l)}function a(n,e,l){if("string"==typeof n)return function(n,e){if("string"==typeof e&&""!==e||(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const l=0|c(n,e);let t=i(l);const u=t.write(n,e);return u!==l&&(t=t.slice(0,u)),t}(n,e);if(ArrayBuffer.isView(n))return function(n){if(J(n,Uint8Array)){const e=new Uint8Array(n);return d(e.buffer,e.byteOffset,e.byteLength)}return I(n)}(n);if(null==n)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(J(n,ArrayBuffer)||n&&J(n.buffer,ArrayBuffer))return d(n,e,l);if("undefined"!=typeof SharedArrayBuffer&&(J(n,SharedArrayBuffer)||n&&J(n.buffer,SharedArrayBuffer)))return d(n,e,l);if("number"==typeof n)throw new TypeError('The "value" argument must not be of type number. Received type number');const t=n.valueOf&&n.valueOf();if(null!=t&&t!==n)return o.from(t,e,l);const u=function(n){if(o.isBuffer(n)){const e=0|T(n.length),l=i(e);return 0===l.length||n.copy(l,0,0,e),l}return void 0!==n.length?"number"!=typeof n.length||K(n.length)?i(0):I(n):"Buffer"===n.type&&Array.isArray(n.data)?I(n.data):void 0}(n);if(u)return u;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return o.from(n[Symbol.toPrimitive]("string"),e,l);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function v(n){if("number"!=typeof n)throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function s(n){return v(n),i(n<0?0:0|T(n))}function I(n){const e=n.length<0?0:0|T(n.length),l=i(e);for(let t=0;t<e;t+=1)l[t]=255&n[t];return l}function d(n,e,l){if(e<0||n.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<e+(l||0))throw new RangeError('"length" is outside of buffer bounds');let t;return t=void 0===e&&void 0===l?new Uint8Array(n):void 0===l?new Uint8Array(n,e):new Uint8Array(n,e,l),Object.setPrototypeOf(t,o.prototype),t}function T(n){if(n>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|n}function c(n,e){if(o.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||J(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const l=n.length,t=arguments.length>2&&!0===arguments[2];if(!t&&0===l)return 0;let u=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":return U(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*l;case"hex":return l>>>1;case"base64":return W(n).length;default:if(u)return t?-1:U(n).length;e=(""+e).toLowerCase(),u=!0}}function E(n,e,l){let t=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===l||l>this.length)&&(l=this.length),l<=0)return"";if((l>>>=0)<=(e>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return z(this,e,l);case"utf8":case"utf-8":return A(this,e,l);case"ascii":return S(this,e,l);case"latin1":case"binary":return R(this,e,l);case"base64":return h(this,e,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,l);default:if(t)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),t=!0}}function p(n,e,l){const t=n[e];n[e]=n[l],n[l]=t}function D(n,e,l,t,u){if(0===n.length)return-1;if("string"==typeof l?(t=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),K(l=+l)&&(l=u?0:n.length-1),l<0&&(l=n.length+l),l>=n.length){if(u)return-1;l=n.length-1}else if(l<0){if(!u)return-1;l=0}if("string"==typeof e&&(e=o.from(e,t)),o.isBuffer(e))return 0===e.length?-1:m(n,e,l,t,u);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(n,e,l):Uint8Array.prototype.lastIndexOf.call(n,e,l):m(n,[e],l,t,u);throw new TypeError("val must be string, number or Buffer")}function m(n,e,l,t,u){let r,f=1,i=n.length,o=e.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(n.length<2||e.length<2)return-1;f=2,i/=2,o/=2,l/=2}function a(n,e){return 1===f?n[e]:n.readUInt16BE(e*f)}if(u){let t=-1;for(r=l;r<i;r++)if(a(n,r)===a(e,-1===t?0:r-t)){if(-1===t&&(t=r),r-t+1===o)return t*f}else-1!==t&&(r-=r-t),t=-1}else for(l+o>i&&(l=i-o),r=l;r>=0;r--){let l=!0;for(let t=0;t<o;t++)if(a(n,r+t)!==a(e,t)){l=!1;break}if(l)return r}return-1}function b(n,e,l,t){l=Number(l)||0;const u=n.length-l;t?(t=Number(t))>u&&(t=u):t=u;const r=e.length;let f;for(t>r/2&&(t=r/2),f=0;f<t;++f){const t=parseInt(e.substr(2*f,2),16);if(K(t))return f;n[l+f]=t}return f}function O(n,e,l,t){return V(U(e,n.length-l),n,l,t)}function P(n,e,l,t){return V(function(n){const e=[];for(let l=0;l<n.length;++l)e.push(255&n.charCodeAt(l));return e}(e),n,l,t)}function N(n,e,l,t){return V(W(e),n,l,t)}function