@gradientedge/commercetools-utils 4.11.3 → 4.12.0

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.
Files changed (44) hide show
  1. package/dist/ge-commercetools-utils-browser.cjs.js +1 -1
  2. package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -1
  3. package/dist/ge-commercetools-utils-browser.esm.js +1 -1
  4. package/dist/ge-commercetools-utils-browser.esm.js.map +1 -1
  5. package/dist/ge-commercetools-utils-node.cjs.js +1 -1
  6. package/dist/ge-commercetools-utils-node.cjs.js.map +1 -1
  7. package/dist/ge-commercetools-utils-node.esm.js +1 -1
  8. package/dist/typings/api/CommercetoolsApi.d.ts +1 -1
  9. package/dist/typings/index.d.ts +1 -1
  10. package/dist/typings/models/cart-discount.d.ts +196 -0
  11. package/dist/typings/models/cart.d.ts +597 -0
  12. package/dist/typings/models/category.d.ts +166 -0
  13. package/dist/typings/models/channel.d.ts +103 -0
  14. package/dist/typings/models/common.d.ts +232 -0
  15. package/dist/typings/models/custom-object.d.ts +30 -0
  16. package/dist/typings/models/customer-group.d.ts +58 -0
  17. package/dist/typings/models/customer.d.ts +276 -0
  18. package/dist/typings/models/discount-code.d.ts +116 -0
  19. package/dist/typings/models/error.d.ts +412 -0
  20. package/dist/typings/models/extension.d.ts +78 -0
  21. package/dist/typings/models/graph-ql.d.ts +21 -0
  22. package/dist/typings/models/index.d.ts +33 -0
  23. package/dist/typings/models/inventory.d.ts +82 -0
  24. package/dist/typings/models/me.d.ts +481 -0
  25. package/dist/typings/models/message.d.ts +1823 -0
  26. package/dist/typings/models/order-edit.d.ts +565 -0
  27. package/dist/typings/models/order.d.ts +558 -0
  28. package/dist/typings/models/payment.d.ts +208 -0
  29. package/dist/typings/models/product-discount.d.ts +123 -0
  30. package/dist/typings/models/product-selection.d.ts +106 -0
  31. package/dist/typings/models/product-type.d.ts +216 -0
  32. package/dist/typings/models/product.d.ts +517 -0
  33. package/dist/typings/models/project.d.ts +108 -0
  34. package/dist/typings/models/review.d.ts +115 -0
  35. package/dist/typings/models/scalar-types.d.ts +4 -0
  36. package/dist/typings/models/shipping-method.d.ts +160 -0
  37. package/dist/typings/models/shopping-list.d.ts +217 -0
  38. package/dist/typings/models/state.d.ts +86 -0
  39. package/dist/typings/models/store.d.ts +121 -0
  40. package/dist/typings/models/subscription.d.ts +148 -0
  41. package/dist/typings/models/tax-category.d.ts +87 -0
  42. package/dist/typings/models/type.d.ts +182 -0
  43. package/dist/typings/models/zone.d.ts +65 -0
  44. package/package.json +13 -14
@@ -1 +1 @@
1
- import{createRequire as e}from"module";var t={9669:(e,t,r)=>{e.exports=r(1609)},7970:(e,t,r)=>{var s=r(4867),a=r(6026),i=r(4097),o=r(5327),n=r(3685),u=r(5687),h=r(938).http,p=r(938).https,c=r(7310),l=r(9796),d=r(7288).version,g=r(5061),y=r(481),m=r(5655),b=r(5263),f=/https:?/;function q(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var s=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+s}e.beforeRedirect=function(e){e.headers.host=e.host,q(e,t,e.href)}}e.exports=function(e){return new Promise((function(t,r){var v;function A(){e.cancelToken&&e.cancelToken.unsubscribe(v),e.signal&&e.signal.removeEventListener("abort",v)}var T=function(e){A(),t(e)},U=!1,x=function(e){A(),U=!0,r(e)},R=e.data,w=e.headers,j={};if(Object.keys(w).forEach((function(e){j[e.toLowerCase()]=e})),"user-agent"in j?w[j["user-agent"]]||delete w[j["user-agent"]]:w["User-Agent"]="axios/"+d,R&&!s.isStream(R)){if(Buffer.isBuffer(R));else if(s.isArrayBuffer(R))R=Buffer.from(new Uint8Array(R));else{if(!s.isString(R))return x(g("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));R=Buffer.from(R,"utf-8")}if(e.maxBodyLength>-1&&R.length>e.maxBodyLength)return x(g("Request body larger than maxBodyLength limit",e));j["content-length"]||(w["Content-Length"]=R.length)}var E=void 0;e.auth&&(E=(e.auth.username||"")+":"+(e.auth.password||""));var P=i(e.baseURL,e.url),O=c.parse(P),C=O.protocol||"http:";if(!E&&O.auth){var k=O.auth.split(":");E=(k[0]||"")+":"+(k[1]||"")}E&&j.authorization&&delete w[j.authorization];var S=f.test(C),K=S?e.httpsAgent:e.httpAgent,V={path:o(O.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:w,agent:K,agents:{http:e.httpAgent,https:e.httpsAgent},auth:E};e.socketPath?V.socketPath=e.socketPath:(V.hostname=O.hostname,V.port=O.port);var I,_=e.proxy;if(!_&&!1!==_){var D=C.slice(0,-1)+"_proxy",G=process.env[D]||process.env[D.toUpperCase()];if(G){var L=c.parse(G),B=process.env.no_proxy||process.env.NO_PROXY,F=!0;if(B&&(F=!B.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&O.hostname.substr(O.hostname.length-e.length)===e||O.hostname===e)}))),F&&(_={host:L.hostname,port:L.port,protocol:L.protocol},L.auth)){var N=L.auth.split(":");_.auth={username:N[0],password:N[1]}}}}_&&(V.headers.host=O.hostname+(O.port?":"+O.port:""),q(V,_,C+"//"+O.hostname+(O.port?":"+O.port:"")+V.path));var $=S&&(!_||f.test(_.protocol));e.transport?I=e.transport:0===e.maxRedirects?I=$?u:n:(e.maxRedirects&&(V.maxRedirects=e.maxRedirects),I=$?p:h),e.maxBodyLength>-1&&(V.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(V.insecureHTTPParser=e.insecureHTTPParser);var M=I.request(V,(function(t){if(!M.aborted){var r=t,i=t.req||M;if(204!==t.statusCode&&"HEAD"!==i.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(l.createUnzip()),delete t.headers["content-encoding"]}var o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if("stream"===e.responseType)o.data=r,a(T,x,o);else{var n=[],u=0;r.on("data",(function(t){n.push(t),u+=t.length,e.maxContentLength>-1&&u>e.maxContentLength&&(U=!0,r.destroy(),x(g("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i)))})),r.on("aborted",(function(){U||(r.destroy(),x(g("error request aborted",e,"ERR_REQUEST_ABORTED",i)))})),r.on("error",(function(t){M.aborted||x(y(t,e,null,i))})),r.on("end",(function(){try{var t=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=s.stripBOM(t))),o.data=t}catch(t){x(y(t,e,t.code,o.request,o))}a(T,x,o)}))}}}));if(M.on("error",(function(t){M.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||x(y(t,e,null,M))})),M.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var W=parseInt(e.timeout,10);if(isNaN(W))return void x(g("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",M));M.setTimeout(W,(function(){M.abort();var t=e.transitional||m.transitional;x(g("timeout of "+W+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",M))}))}(e.cancelToken||e.signal)&&(v=function(e){M.aborted||(M.abort(),x(!e||e&&e.type?new b("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(v),e.signal&&(e.signal.aborted?v():e.signal.addEventListener("abort",v))),s.isStream(R)?R.on("error",(function(t){x(y(t,e,null,M))})).pipe(M):M.end(R)}))}},5448:(e,t,r)=>{var s=r(4867),a=r(6026),i=r(4372),o=r(5327),n=r(4097),u=r(4109),h=r(7985),p=r(5061),c=r(5655),l=r(5263);e.exports=function(e){return new Promise((function(t,r){var d,g=e.data,y=e.headers,m=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}s.isFormData(g)&&delete y["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var q=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(q+":"+v)}var A=n(e.baseURL,e.url);function T(){if(f){var s="getAllResponseHeaders"in f?u(f.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:e,request:f};a((function(e){t(e),b()}),(function(e){r(e),b()}),i),f=null}}if(f.open(e.method.toUpperCase(),o(A,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=T:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(T)},f.onabort=function(){f&&(r(p("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(p("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",s=e.transitional||c.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(p(t,e,s.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},s.isStandardBrowserEnv()){var U=(e.withCredentials||h(A))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;U&&(y[e.xsrfHeaderName]=U)}"setRequestHeader"in f&&s.forEach(y,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete y[t]:f.setRequestHeader(t,e)})),s.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),m&&"json"!==m&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){f&&(r(!e||e&&e.type?new l("canceled"):e),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),g||(g=null),f.send(g)}))}},1609:(e,t,r)=>{var s=r(4867),a=r(1849),i=r(321),o=r(7185),n=function e(t){var r=new i(t),n=a(i.prototype.request,r);return s.extend(n,i.prototype,r),s.extend(n,r),n.create=function(r){return e(o(t,r))},n}(r(5655));n.Axios=i,n.Cancel=r(5263),n.CancelToken=r(4972),n.isCancel=r(6502),n.VERSION=r(7288).version,n.all=function(e){return Promise.all(e)},n.spread=r(8713),n.isAxiosError=r(6268),e.exports=n,e.exports.default=n},5263:e=>{function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,r)=>{var s=r(5263);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,s=r._listeners.length;for(t=0;t<s;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,s=new Promise((function(e){r.subscribe(e),t=e})).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e((function(e){r.reason||(r.reason=new s(e),t(r.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},6502:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{var s=r(4867),a=r(5327),i=r(782),o=r(3572),n=r(7185),u=r(4875),h=u.validators;function p(e){this.defaults=e,this.interceptors={request:new i,response:new i}}p.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=n(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:h.transitional(h.boolean),forcedJSONParsing:h.transitional(h.boolean),clarifyTimeoutError:h.transitional(h.boolean)},!1);var s=[],a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var i,p=[];if(this.interceptors.response.forEach((function(e){p.push(e.fulfilled,e.rejected)})),!a){var c=[o,void 0];for(Array.prototype.unshift.apply(c,s),c=c.concat(p),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var l=t;s.length;){var d=s.shift(),g=s.shift();try{l=d(l)}catch(e){g(e);break}}try{i=o(l)}catch(e){return Promise.reject(e)}for(;p.length;)i=i.then(p.shift(),p.shift());return i},p.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=n(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},s.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,r){return this.request(n(r||{},{method:e,url:t,data:(r||{}).data}))}})),s.forEach(["post","put","patch"],(function(e){p.prototype[e]=function(t,r,s){return this.request(n(s||{},{method:e,url:t,data:r}))}})),e.exports=p},782:(e,t,r)=>{var s=r(4867);function a(){this.handlers=[]}a.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){s.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},4097:(e,t,r)=>{var s=r(1793),a=r(7303);e.exports=function(e,t){return e&&!s(t)?a(e,t):t}},5061:(e,t,r)=>{var s=r(481);e.exports=function(e,t,r,a,i){var o=new Error(e);return s(o,t,r,a,i)}},3572:(e,t,r)=>{var s=r(4867),a=r(8527),i=r(6502),o=r(5655),n=r(5263);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new n("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=s.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),s.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return u(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{e.exports=function(e,t,r,s,a){return e.config=t,r&&(e.code=r),e.request=s,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,r)=>{var s=r(4867);e.exports=function(e,t){t=t||{};var r={};function a(e,t){return s.isPlainObject(e)&&s.isPlainObject(t)?s.merge(e,t):s.isPlainObject(t)?s.merge({},t):s.isArray(t)?t.slice():t}function i(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:a(void 0,e[r]):a(e[r],t[r])}function o(e){if(!s.isUndefined(t[e]))return a(void 0,t[e])}function n(r){return s.isUndefined(t[r])?s.isUndefined(e[r])?void 0:a(void 0,e[r]):a(void 0,t[r])}function u(r){return r in t?a(e[r],t[r]):r in e?a(void 0,e[r]):void 0}var h={url:o,method:o,data:o,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:u};return s.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=h[e]||i,a=t(e);s.isUndefined(a)&&t!==u||(r[e]=a)})),r}},6026:(e,t,r)=>{var s=r(5061);e.exports=function(e,t,r){var a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(s("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},8527:(e,t,r)=>{var s=r(4867),a=r(5655);e.exports=function(e,t,r){var i=this||a;return s.forEach(r,(function(r){e=r.call(i,e,t)})),e}},5655:(e,t,r)=>{var s=r(4867),a=r(6016),i=r(481),o={"Content-Type":"application/x-www-form-urlencoded"};function n(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,h={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?u=r(5448):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(u=r(7970)),u),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(n(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)||t&&"application/json"===t["Content-Type"]?(n(t,"application/json"),function(e,t,r){if(s.isString(e))try{return(0,JSON.parse)(e),s.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,r=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||a&&s.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),s.forEach(["post","put","patch"],(function(e){h.headers[e]=s.merge(o)})),e.exports=h},7288:e=>{e.exports={version:"0.25.0"}},1849:e=>{e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),s=0;s<r.length;s++)r[s]=arguments[s];return e.apply(t,r)}}},5327:(e,t,r)=>{var s=r(4867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(s.isURLSearchParams(t))i=t.toString();else{var o=[];s.forEach(t,(function(e,t){null!=e&&(s.isArray(e)?t+="[]":e=[e],s.forEach(e,(function(e){s.isDate(e)?e=e.toISOString():s.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var n=e.indexOf("#");-1!==n&&(e=e.slice(0,n)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{var s=r(4867);e.exports=s.isStandardBrowserEnv()?{write:function(e,t,r,a,i,o){var n=[];n.push(e+"="+encodeURIComponent(t)),s.isNumber(r)&&n.push("expires="+new Date(r).toGMTString()),s.isString(a)&&n.push("path="+a),s.isString(i)&&n.push("domain="+i),!0===o&&n.push("secure"),document.cookie=n.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{var s=r(4867);e.exports=function(e){return s.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{var s=r(4867);e.exports=s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var s=e;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(t){var r=s.isString(t)?a(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{var s=r(4867);e.exports=function(e,t){s.forEach(e,(function(r,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[s])}))}},4109:(e,t,r)=>{var s=r(4867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,o={};return e?(s.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=s.trim(e.substr(0,i)).toLowerCase(),r=s.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o}},8713:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,r)=>{var s=r(7288).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};a.transitional=function(e,t,r){function a(e,t){return"[Axios v"+s+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,s,o){if(!1===e)throw new Error(a(s," has been removed"+(t?" in "+t:"")));return t&&!i[s]&&(i[s]=!0,console.warn(a(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,o)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var s=Object.keys(e),a=s.length;a-- >0;){var i=s[a],o=t[i];if(o){var n=e[i],u=void 0===n||o(n,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:a}},4867:(e,t,r)=>{var s=r(1849),a=Object.prototype.toString;function i(e){return Array.isArray(e)}function o(e){return void 0===e}function n(e){return"[object ArrayBuffer]"===a.call(e)}function u(e){return null!==e&&"object"==typeof e}function h(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function p(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:n,isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===a.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&n(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:h,isUndefined:o,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:p,isStream:function(e){return u(e)&&p(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===a.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function r(r,s){h(t[s])&&h(r)?t[s]=e(t[s],r):h(r)?t[s]=e({},r):i(r)?t[s]=r.slice():t[s]=r}for(var s=0,a=arguments.length;s<a;s++)c(arguments[s],r);return t},extend:function(e,t,r){return c(t,(function(t,a){e[a]=r&&"function"==typeof t?s(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},1924:(e,t,r)=>{var s=r(210),a=r(5559),i=a(s("String.prototype.indexOf"));e.exports=function(e,t){var r=s(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?a(r):r}},5559:(e,t,r)=>{var s=r(8612),a=r(210),i=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),n=a("%Reflect.apply%",!0)||s.call(o,i),u=a("%Object.getOwnPropertyDescriptor%",!0),h=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(h)try{h({},"a",{value:1})}catch(e){h=null}e.exports=function(e){var t=n(s,o,arguments);if(u&&h){var r=u(t,"length");r.configurable&&h(t,"length",{value:1+p(0,e.length-(arguments.length-1))})}return t};var c=function(){return n(s,i,arguments)};h?h(e.exports,"apply",{value:c}):e.exports.apply=c},1227:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(a=s))})),t.splice(a,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(2447)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,r)=>{e.exports=function(e){function t(e){let r,a,i,o=null;function n(...e){if(!n.enabled)return;const s=n,a=Number(new Date),i=a-(r||a);s.diff=i,s.prev=r,s.curr=a,r=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,a)=>{if("%%"===r)return"%";o++;const i=t.formatters[a];if("function"==typeof i){const t=e[o];r=i.call(s,t),e.splice(o,1),o--}return r})),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return n.namespace=e,n.useColors=t.useColors(),n.color=t.selectColor(e),n.extend=s,n.destroy=t.destroy,Object.defineProperty(n,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{o=e}}),"function"==typeof t.init&&t.init(n),n}function s(e,r){const s=t(this.namespace+(void 0===r?":":r)+e);return s.log=this.log,s}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),a=s.length;for(r=0;r<a;r++)s[r]&&("-"===(e=s[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,s;for(r=0,s=t.skips.length;r<s;r++)if(t.skips[r].test(e))return!1;for(r=0,s=t.names.length;r<s;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(7824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},5158:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(1227):e.exports=r(39)},39:(e,t,r)=>{const s=r(6224),a=r(3837);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++)e.inspectOpts[r[s]]=t.inspectOpts[r[s]]},t.log=function(...e){return process.stderr.write(a.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:s,useColors:a}=this;if(a){const t=this.color,a="[3"+(t<8?t:"8;5;"+t),i=` ${a};1m${s} `;r[0]=i+r[0].split("\n").join("\n"+i),r.push(a+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+s+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)},t.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(2130);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[r]=s,e}),{}),e.exports=r(2447)(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}},2261:(e,t,r)=>{var s;e.exports=function(){if(!s){try{s=r(5158)("follow-redirects")}catch(e){}"function"!=typeof s&&(s=function(){})}s.apply(null,arguments)}},938:(e,t,r)=>{var s=r(7310),a=s.URL,i=r(3685),o=r(5687),n=r(2781).Writable,u=r(9491),h=r(2261),p=["abort","aborted","connect","error","socket","timeout"],c=Object.create(null);p.forEach((function(e){c[e]=function(t,r,s){this._redirectable.emit(e,t,r,s)}}));var l=A("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),d=A("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),g=A("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=A("ERR_STREAM_WRITE_AFTER_END","write after end");function m(e,t){n.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function b(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(i){var o=i+":",n=r[o]=e[i],p=t[i]=Object.create(n);Object.defineProperties(p,{request:{value:function(e,i,n){if("string"==typeof e){var p=e;try{e=q(new a(p))}catch(t){e=s.parse(p)}}else a&&e instanceof a?e=q(e):(n=i,i=e,e={protocol:o});return"function"==typeof i&&(n=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=r,u.equal(i.protocol,o,"protocol mismatch"),h("options",i),new m(i,n)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var s=p.request(e,t,r);return s.end(),s},configurable:!0,enumerable:!0,writable:!0}})})),t}function f(){}function q(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function v(e,t){var r;for(var s in t)e.test(s)&&(r=t[s],delete t[s]);return null==r?void 0:String(r).trim()}function A(e,t){function r(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function T(e){for(var t=0;t<p.length;t++)e.removeListener(p[t],c[p[t]]);e.on("error",f),e.abort()}m.prototype=Object.create(n.prototype),m.prototype.abort=function(){T(this._currentRequest),this.emit("abort")},m.prototype.write=function(e,t,r){if(this._ending)throw new y;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new g),this.abort()):r&&r()},m.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var s=this,a=this._currentRequest;this.write(e,t,(function(){s._ended=!0,a.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},m.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},m.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},m.prototype.setTimeout=function(e,t){var r=this;function s(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),i()}),e),s(t)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",i),r.removeListener("error",i),r.removeListener("response",i),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",s),this.on("abort",i),this.on("error",i),this.on("response",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){m.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(m.prototype,e,{get:function(){return this._currentRequest[e]}})})),m.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},m.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=s.format(this._options),a._redirectable=this;for(var i=0;i<p.length;i++)a.on(p[i],c[p[i]]);if(this._isRedirect){var o=0,n=this,u=this._requestBodyBuffers;!function e(t){if(a===n._currentRequest)if(t)n.emit("error",t);else if(o<u.length){var r=u[o++];a.finished||a.write(r.data,r.encoding,e)}else n._ended&&a.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},m.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(T(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new d);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],v(/^content-/i,this._options.headers));var a,i=v(/^host$/i,this._options.headers),o=s.parse(this._currentUrl),n=i||o.host,u=/^\w+:/.test(r)?this._currentUrl:s.format(Object.assign(o,{host:n}));try{a=s.resolve(u,r)}catch(e){return void this.emit("error",new l(e))}h("redirecting to",a),this._isRedirect=!0;var p=s.parse(a);if(Object.assign(this._options,p),p.host===n||function(e,t){const r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(p.host,n)||v(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var c={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,c)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new l(e))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=b({http:i,https:o}),e.exports.wrap=b},7648:e=>{var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,s=Object.prototype.toString,a="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||s.call(i)!==a)throw new TypeError(t+i);for(var o,n=r.call(arguments,1),u=function(){if(this instanceof o){var t=i.apply(this,n.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,n.concat(r.call(arguments)))},h=Math.max(0,i.length-n.length),p=[],c=0;c<h;c++)p.push("$"+c);if(o=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},8612:(e,t,r)=>{var s=r(7648);e.exports=Function.prototype.bind||s},210:(e,t,r)=>{var s,a=SyntaxError,i=Function,o=TypeError,n=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var h=function(){throw new o},p=u?function(){try{return h}catch(e){try{return u(arguments,"callee").get}catch(e){return h}}}():h,c=r(1405)(),l=Object.getPrototypeOf||function(e){return e.__proto__},d={},g="undefined"==typeof Uint8Array?s:l(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?s:ArrayBuffer,"%ArrayIteratorPrototype%":c?l([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?s:Atomics,"%BigInt%":"undefined"==typeof BigInt?s:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?s:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?s:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?s:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?s:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?s:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?l(l([][Symbol.iterator]())):s,"%JSON%":"object"==typeof JSON?JSON:s,"%Map%":"undefined"==typeof Map?s:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?l((new Map)[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?s:Promise,"%Proxy%":"undefined"==typeof Proxy?s:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?s:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?s:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?l((new Set)[Symbol.iterator]()):s,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?l(""[Symbol.iterator]()):s,"%Symbol%":c?Symbol:s,"%SyntaxError%":a,"%ThrowTypeError%":p,"%TypedArray%":g,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?s:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?s:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?s:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?s:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?s:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?s:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?s:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=n("async function () {}");else if("%GeneratorFunction%"===t)r=n("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=n("async function* () {}");else if("%AsyncGenerator%"===t){var s=e("%AsyncGeneratorFunction%");s&&(r=s.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(r=l(a.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},f=r(8612),q=r(7642),v=f.call(Function.call,Array.prototype.concat),A=f.call(Function.apply,Array.prototype.splice),T=f.call(Function.call,String.prototype.replace),U=f.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,w=function(e){var t=U(e,0,1),r=U(e,-1);if("%"===t&&"%"!==r)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var s=[];return T(e,x,(function(e,t,r,a){s[s.length]=r?T(a,R,"$1"):t||e})),s},j=function(e,t){var r,s=e;if(q(b,s)&&(s="%"+(r=b[s])[0]+"%"),q(y,s)){var i=y[s];if(i===d&&(i=m(s)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:s,value:i}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var r=w(e),s=r.length>0?r[0]:"",i=j("%"+s+"%",t),n=i.name,h=i.value,p=!1,c=i.alias;c&&(s=c[0],A(r,v([0,1],c)));for(var l=1,d=!0;l<r.length;l+=1){var g=r[l],m=U(g,0,1),b=U(g,-1);if(('"'===m||"'"===m||"`"===m||'"'===b||"'"===b||"`"===b)&&m!==b)throw new a("property names with quotes must have matching quotes");if("constructor"!==g&&d||(p=!0),q(y,n="%"+(s+="."+g)+"%"))h=y[n];else if(null!=h){if(!(g in h)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&l+1>=r.length){var f=u(h,g);h=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:h[g]}else d=q(h,g),h=h[g];d&&!p&&(y[n]=h)}}return h}},6560:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(r+e),a=t.indexOf("--");return-1!==s&&(-1===a||s<a)}},1405:(e,t,r)=>{var s="undefined"!=typeof Symbol&&Symbol,a=r(5419);e.exports=function(){return"function"==typeof s&&"function"==typeof Symbol&&"symbol"==typeof s("foo")&&"symbol"==typeof Symbol("bar")&&a()}},5419:e=>{e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var s=Object.getOwnPropertySymbols(e);if(1!==s.length||s[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},7642:(e,t,r)=>{var s=r(8612);e.exports=s.call(Function.call,Object.prototype.hasOwnProperty)},4530:(e,t)=>{function r(e,t){var r=[],s=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+s.slice(0,r.indexOf(t)).join(".")+"]"}),function(a,i){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?s.splice(o,1/0,a):s.push(a),~r.indexOf(i)&&(i=t.call(this,a,i))}else r.push(i);return null==e?i:e.call(this,a,i)}}(e.exports=function(e,t,s,a){return JSON.stringify(e,r(t,a),s)}).getSerialize=r},3465:(e,t,r)=>{e=r.nmd(e);var s="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",o="[object Boolean]",n="[object Date]",u="[object Function]",h="[object GeneratorFunction]",p="[object Map]",c="[object Number]",l="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",m="[object String]",b="[object Symbol]",f="[object WeakMap]",q="[object ArrayBuffer]",v="[object DataView]",A="[object Float32Array]",T="[object Float64Array]",U="[object Int8Array]",x="[object Int16Array]",R="[object Int32Array]",w="[object Uint8Array]",j="[object Uint8ClampedArray]",E="[object Uint16Array]",P="[object Uint32Array]",O=/\w*$/,C=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,S={};S[i]=S["[object Array]"]=S[q]=S[v]=S[o]=S[n]=S[A]=S[T]=S[U]=S[x]=S[R]=S[p]=S[c]=S[l]=S[g]=S[y]=S[m]=S[b]=S[w]=S[j]=S[E]=S[P]=!0,S["[object Error]"]=S[u]=S[f]=!1;var K="object"==typeof global&&global&&global.Object===Object&&global,V="object"==typeof self&&self&&self.Object===Object&&self,I=K||V||Function("return this")(),_=t&&!t.nodeType&&t,D=_&&e&&!e.nodeType&&e,G=D&&D.exports===_;function L(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function F(e,t,r,s){var a=-1,i=e?e.length:0;for(s&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function N(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}function M(e,t){return function(r){return e(t(r))}}function W(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var z,H=Array.prototype,J=Function.prototype,Q=Object.prototype,X=I["__core-js_shared__"],Y=(z=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",Z=J.toString,ee=Q.hasOwnProperty,te=Q.toString,re=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=G?I.Buffer:void 0,ae=I.Symbol,ie=I.Uint8Array,oe=M(Object.getPrototypeOf,Object),ne=Object.create,ue=Q.propertyIsEnumerable,he=H.splice,pe=Object.getOwnPropertySymbols,ce=se?se.isBuffer:void 0,le=M(Object.keys,Object),de=Ie(I,"DataView"),ge=Ie(I,"Map"),ye=Ie(I,"Promise"),me=Ie(I,"Set"),be=Ie(I,"WeakMap"),fe=Ie(Object,"create"),qe=Be(de),ve=Be(ge),Ae=Be(ye),Te=Be(me),Ue=Be(be),xe=ae?ae.prototype:void 0,Re=xe?xe.valueOf:void 0;function we(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function je(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}function Pe(e){this.__data__=new je(e)}function Oe(e,t,r){var s=e[t];ee.call(e,t)&&Fe(s,r)&&(void 0!==r||t in e)||(e[t]=r)}function Ce(e,t){for(var r=e.length;r--;)if(Fe(e[r][0],t))return r;return-1}function ke(e,t,r,s,a,d,f){var C;if(s&&(C=d?s(e,a,d,f):s(e)),void 0!==C)return C;if(!ze(e))return e;var k=Ne(e);if(k){if(C=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&ee.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!t)return function(e,t){var r=-1,s=e.length;for(t||(t=Array(s));++r<s;)t[r]=e[r];return t}(e,C)}else{var K=De(e),V=K==u||K==h;if(Me(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(K==l||K==i||V&&!d){if(N(e))return d?e:{};if(C=function(e){return"function"!=typeof e.constructor||Le(e)?{}:ze(t=oe(e))?ne(t):{};var t}(V?{}:e),!t)return function(e,t){return Ke(e,_e(e),t)}(e,function(e,t){return e&&Ke(t,He(t),e)}(C,e))}else{if(!S[K])return d?e:{};C=function(e,t,r,s){var a,i=e.constructor;switch(t){case q:return Se(e);case o:case n:return new i(+e);case v:return function(e,t){var r=t?Se(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,s);case A:case T:case U:case x:case R:case w:case j:case E:case P:return function(e,t){var r=t?Se(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,s);case p:return function(e,t,r){return F(t?r($(e),!0):$(e),L,new e.constructor)}(e,s,r);case c:case m:return new i(e);case g:return function(e){var t=new e.constructor(e.source,O.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return function(e,t,r){return F(t?r(W(e),!0):W(e),B,new e.constructor)}(e,s,r);case b:return a=e,Re?Object(Re.call(a)):{}}}(e,K,ke,t)}}f||(f=new Pe);var I=f.get(e);if(I)return I;if(f.set(e,C),!k)var _=r?function(e){return function(e,t,r){var s=t(e);return Ne(e)?s:function(e,t){for(var r=-1,s=t.length,a=e.length;++r<s;)e[a+r]=t[r];return e}(s,r(e))}(e,He,_e)}(e):He(e);return function(e,t){for(var r=-1,s=e?e.length:0;++r<s&&!1!==t(e[r],r););}(_||e,(function(a,i){_&&(a=e[i=a]),Oe(C,i,ke(a,t,r,s,i,e,f))})),C}function Se(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Ke(e,t,r,s){r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],n=s?s(r[o],e[o],o,r,e):void 0;Oe(r,o,void 0===n?e[o]:n)}return r}function Ve(e,t){var r,s,a=e.__data__;return("string"==(s=typeof(r=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function Ie(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ze(e)||(t=e,Y&&Y in t))&&(We(e)||N(e)?re:C).test(Be(e));var t}(r)?r:void 0}we.prototype.clear=function(){this.__data__=fe?fe(null):{}},we.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},we.prototype.get=function(e){var t=this.__data__;if(fe){var r=t[e];return r===s?void 0:r}return ee.call(t,e)?t[e]:void 0},we.prototype.has=function(e){var t=this.__data__;return fe?void 0!==t[e]:ee.call(t,e)},we.prototype.set=function(e,t){return this.__data__[e]=fe&&void 0===t?s:t,this},je.prototype.clear=function(){this.__data__=[]},je.prototype.delete=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0||(r==t.length-1?t.pop():he.call(t,r,1),0))},je.prototype.get=function(e){var t=this.__data__,r=Ce(t,e);return r<0?void 0:t[r][1]},je.prototype.has=function(e){return Ce(this.__data__,e)>-1},je.prototype.set=function(e,t){var r=this.__data__,s=Ce(r,e);return s<0?r.push([e,t]):r[s][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new we,map:new(ge||je),string:new we}},Ee.prototype.delete=function(e){return Ve(this,e).delete(e)},Ee.prototype.get=function(e){return Ve(this,e).get(e)},Ee.prototype.has=function(e){return Ve(this,e).has(e)},Ee.prototype.set=function(e,t){return Ve(this,e).set(e,t),this},Pe.prototype.clear=function(){this.__data__=new je},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof je){var s=r.__data__;if(!ge||s.length<199)return s.push([e,t]),this;r=this.__data__=new Ee(s)}return r.set(e,t),this};var _e=pe?M(pe,Object):function(){return[]},De=function(e){return te.call(e)};function Ge(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Q)}function Be(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(de&&De(new de(new ArrayBuffer(1)))!=v||ge&&De(new ge)!=p||ye&&De(ye.resolve())!=d||me&&De(new me)!=y||be&&De(new be)!=f)&&(De=function(e){var t=te.call(e),r=t==l?e.constructor:void 0,s=r?Be(r):void 0;if(s)switch(s){case qe:return v;case ve:return p;case Ae:return d;case Te:return y;case Ue:return f}return t});var Ne=Array.isArray;function $e(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}(e.length)&&!We(e)}var Me=ce||function(){return!1};function We(e){var t=ze(e)?te.call(e):"";return t==u||t==h}function ze(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function He(e){return $e(e)?function(e,t){var r=Ne(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&$e(e)}(e)&&ee.call(e,"callee")&&(!ue.call(e,"callee")||te.call(e)==i)}(e)?function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}(e.length,String):[],s=r.length,a=!!s;for(var o in e)!t&&!ee.call(e,o)||a&&("length"==o||Ge(o,s))||r.push(o);return r}(e):function(e){if(!Le(e))return le(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return ke(e,!0,!0)}},7824:e=>{var t=1e3,r=60*t,s=60*r,a=24*s;function i(e,t,r,s){var a=t>=1.5*r;return Math.round(e/r)+" "+s+(a?"s":"")}e.exports=function(e,o){o=o||{};var n,u,h=typeof e;if("string"===h&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*a;case"hours":case"hour":case"hrs":case"hr":case"h":return o*s;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===h&&isFinite(e))return o.long?(n=e,(u=Math.abs(n))>=a?i(n,u,a,"day"):u>=s?i(n,u,s,"hour"):u>=r?i(n,u,r,"minute"):u>=t?i(n,u,t,"second"):n+" ms"):function(e){var i=Math.abs(e);return i>=a?Math.round(e/a)+"d":i>=s?Math.round(e/s)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},631:(e,t,r)=>{var s="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=s&&a&&"function"==typeof a.get?a.get:null,o=s&&Map.prototype.forEach,n="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=n&&u&&"function"==typeof u.get?u.get:null,p=n&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,b=String.prototype.match,f=String.prototype.slice,q=String.prototype.replace,v=String.prototype.toUpperCase,A=String.prototype.toLowerCase,T=RegExp.prototype.test,U=Array.prototype.concat,x=Array.prototype.join,R=Array.prototype.slice,w=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,S=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function K(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||T.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var s=e<0?-w(-e):w(e);if(s!==e){var a=String(s),i=f.call(t,a.length+1);return q.call(a,r,"$&_")+"."+q.call(q.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(t,r,"$&_")}var V=r(2794).custom,I=V&&L(V)?V:null;function _(e,t,r){var s="double"===(r.quoteStyle||t)?'"':"'";return s+e+s}function D(e){return q.call(String(e),/"/g,"&quot;")}function G(e){return!("[object Array]"!==N(e)||C&&"object"==typeof e&&C in e)}function L(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,s,a){var n=r||{};if(F(n,"quoteStyle")&&"single"!==n.quoteStyle&&"double"!==n.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(n,"maxStringLength")&&("number"==typeof n.maxStringLength?n.maxStringLength<0&&n.maxStringLength!==1/0:null!==n.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!F(n,"customInspect")||n.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(n,"indent")&&null!==n.indent&&"\t"!==n.indent&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(n,"numericSeparator")&&"boolean"!=typeof n.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=n.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return M(t,n);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var v=String(t);return y?K(t,v):v}if("bigint"==typeof t){var T=String(t)+"n";return y?K(t,T):T}var w=void 0===n.depth?5:n.depth;if(void 0===s&&(s=0),s>=w&&w>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var E,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(n,s);if(void 0===a)a=[];else if($(a,t)>=0)return"[Circular]";function B(t,r,i){if(r&&(a=R.call(a)).push(r),i){var o={depth:n.depth};return F(n,"quoteStyle")&&(o.quoteStyle=n.quoteStyle),e(t,o,s+1,a)}return e(t,n,s+1,a)}if("function"==typeof t){var W=function(e){if(e.name)return e.name;var t=b.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Y=X(t,B);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Y.length>0?" { "+x.call(Y,", ")+" }":"")}if(L(t)){var Z=O?q.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||O?Z:z(Z)}if((E=t)&&"object"==typeof E&&("undefined"!=typeof HTMLElement&&E instanceof HTMLElement||"string"==typeof E.nodeName&&"function"==typeof E.getAttribute)){for(var ee="<"+A.call(String(t.nodeName)),te=t.attributes||[],re=0;re<te.length;re++)ee+=" "+te[re].name+"="+_(D(te[re].value),"double",n);return ee+=">",t.childNodes&&t.childNodes.length&&(ee+="..."),ee+"</"+A.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var se=X(t,B);return V&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,V)+"]":"[ "+x.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==N(e)||C&&"object"==typeof e&&C in e)}(t)){var ae=X(t,B);return"cause"in t&&!k.call(t,"cause")?"{ ["+String(t)+"] "+x.call(U.call("[cause]: "+B(t.cause),ae),", ")+" }":0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ae,", ")+" }"}if("object"==typeof t&&u){if(I&&"function"==typeof t[I])return t[I]();if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{h.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ie=[];return o.call(t,(function(e,r){ie.push(B(r,t,!0)+" => "+B(e,t))})),J("Map",i.call(t),ie,V)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var oe=[];return p.call(t,(function(e){oe.push(B(e,t))})),J("Set",h.call(t),oe,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return H("WeakMap");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return H("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return H("WeakRef");if(function(e){return!("[object Number]"!==N(e)||C&&"object"==typeof e&&C in e)}(t))return z(B(Number(t)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return z(B(j.call(t)));if(function(e){return!("[object Boolean]"!==N(e)||C&&"object"==typeof e&&C in e)}(t))return z(g.call(t));if(function(e){return!("[object String]"!==N(e)||C&&"object"==typeof e&&C in e)}(t))return z(B(String(t)));if(!function(e){return!("[object Date]"!==N(e)||C&&"object"==typeof e&&C in e)}(t)&&!function(e){return!("[object RegExp]"!==N(e)||C&&"object"==typeof e&&C in e)}(t)){var ne=X(t,B),ue=S?S(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",pe=!ue&&C&&Object(t)===t&&C in t?f.call(N(t),8,-1):he?"Object":"",ce=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||he?"["+x.call(U.call([],pe||[],he||[]),": ")+"] ":"");return 0===ne.length?ce+"{}":V?ce+"{"+Q(ne,V)+"}":ce+"{ "+x.call(ne,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,t){return B.call(e,t)}function N(e){return y.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,s=e.length;r<s;r++)if(e[r]===t)return r;return-1}function M(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,s="... "+r+" more character"+(r>1?"s":"");return M(f.call(e,0,t.maxStringLength),t)+s}return _(q.call(q.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function z(e){return"Object("+e+")"}function H(e){return e+" { ? }"}function J(e,t,r,s){return e+" ("+t+") {"+(s?Q(r,s):x.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=G(e),s=[];if(r){s.length=e.length;for(var a=0;a<e.length;a++)s[a]=F(e,a)?t(e[a],e):""}var i,o="function"==typeof E?E(e):[];if(O){i={};for(var n=0;n<o.length;n++)i["$"+o[n]]=o[n]}for(var u in e)F(e,u)&&(r&&String(Number(u))===u&&u<e.length||O&&i["$"+u]instanceof Symbol||(T.call(/[^\w$]/,u)?s.push(t(u,e)+": "+t(e[u],e)):s.push(u+": "+t(e[u],e))));if("function"==typeof E)for(var h=0;h<o.length;h++)k.call(e,o[h])&&s.push("["+t(o[h])+"]: "+t(e[o[h]],e));return s}},2794:(e,t,r)=>{e.exports=r(3837).inspect},5798:e=>{var t=String.prototype.replace,r=/%20/g,s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:s}},129:(e,t,r)=>{var s=r(8261),a=r(5235),i=r(5798);e.exports={formats:i,parse:a,stringify:s}},5235:(e,t,r)=>{var s=r(2769),a=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:s.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},n=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},h=function(e,t,r,s){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,n=r.depth>0&&/(\[[^[\]]*])/.exec(i),h=n?i.slice(0,n.index):i,p=[];if(h){if(!r.plainObjects&&a.call(Object.prototype,h)&&!r.allowPrototypes)return;p.push(h)}for(var c=0;r.depth>0&&null!==(n=o.exec(i))&&c<r.depth;){if(c+=1,!r.plainObjects&&a.call(Object.prototype,n[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(n[1])}return n&&p.push("["+i.slice(n.index)+"]"),function(e,t,r,s){for(var a=s?t:u(t,r),i=e.length-1;i>=0;--i){var o,n=e[i];if("[]"===n&&r.parseArrays)o=[].concat(a);else{o=r.plainObjects?Object.create(null):{};var h="["===n.charAt(0)&&"]"===n.charAt(n.length-1)?n.slice(1,-1):n,p=parseInt(h,10);r.parseArrays||""!==h?!isNaN(p)&&n!==h&&String(p)===h&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(o=[])[p]=a:"__proto__"!==h&&(o[h]=a):o={0:a}}a=o}return a}(p,t,r,s)}};e.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||s.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof e?function(e,t){var r,h={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=p.split(t.delimiter,c),d=-1,g=t.charset;if(t.charsetSentinel)for(r=0;r<l.length;++r)0===l[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[r]?g="utf-8":"utf8=%26%2310003%3B"===l[r]&&(g="iso-8859-1"),d=r,r=l.length);for(r=0;r<l.length;++r)if(r!==d){var y,m,b=l[r],f=b.indexOf("]="),q=-1===f?b.indexOf("="):f+1;-1===q?(y=t.decoder(b,o.decoder,g,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(b.slice(0,q),o.decoder,g,"key"),m=s.maybeMap(u(b.slice(q+1),t),(function(e){return t.decoder(e,o.decoder,g,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===g&&(m=n(m)),b.indexOf("[]=")>-1&&(m=i(m)?[m]:m),a.call(h,y)?h[y]=s.combine(h[y],m):h[y]=m}return h}(e,r):e,c=r.plainObjects?Object.create(null):{},l=Object.keys(p),d=0;d<l.length;++d){var g=l[d],y=h(g,p[g],r,"string"==typeof e);c=s.merge(c,y,r)}return!0===r.allowSparse?c:s.compact(c)}},8261:(e,t,r)=>{var s=r(7478),a=r(2769),i=r(5798),o=Object.prototype.hasOwnProperty,n={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,h=String.prototype.split,p=Array.prototype.push,c=function(e,t){p.apply(e,u(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,g={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},y={},m=function e(t,r,i,o,n,p,l,d,m,b,f,q,v,A,T){for(var U,x=t,R=T,w=0,j=!1;void 0!==(R=R.get(y))&&!j;){var E=R.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");j=!0}void 0===R.get(y)&&(w=0)}if("function"==typeof l?x=l(r,x):x instanceof Date?x=b(x):"comma"===i&&u(x)&&(x=a.maybeMap(x,(function(e){return e instanceof Date?b(e):e}))),null===x){if(o)return p&&!v?p(r,g.encoder,A,"key",f):r;x=""}if("string"==typeof(U=x)||"number"==typeof U||"boolean"==typeof U||"symbol"==typeof U||"bigint"==typeof U||a.isBuffer(x)){if(p){var P=v?r:p(r,g.encoder,A,"key",f);if("comma"===i&&v){for(var O=h.call(String(x),","),C="",k=0;k<O.length;++k)C+=(0===k?"":",")+q(p(O[k],g.encoder,A,"value",f));return[q(P)+"="+C]}return[q(P)+"="+q(p(x,g.encoder,A,"value",f))]}return[q(r)+"="+q(String(x))]}var S,K=[];if(void 0===x)return K;if("comma"===i&&u(x))S=[{value:x.length>0?x.join(",")||null:void 0}];else if(u(l))S=l;else{var V=Object.keys(x);S=d?V.sort(d):V}for(var I=0;I<S.length;++I){var _=S[I],D="object"==typeof _&&void 0!==_.value?_.value:x[_];if(!n||null!==D){var G=u(x)?"function"==typeof i?i(r,_):r:r+(m?"."+_:"["+_+"]");T.set(t,w);var L=s();L.set(y,T),c(K,e(D,G,i,o,n,p,l,d,m,b,f,q,v,A,L))}}return K};e.exports=function(e,t){var r,a=e,h=function(e){if(!e)return g;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||g.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var s=i.formatters[r],a=g.filter;return("function"==typeof e.filter||u(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:g.addQueryPrefix,allowDots:void 0===e.allowDots?g.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:g.charsetSentinel,delimiter:void 0===e.delimiter?g.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:g.encode,encoder:"function"==typeof e.encoder?e.encoder:g.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:g.encodeValuesOnly,filter:a,format:r,formatter:s,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:g.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:g.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:g.strictNullHandling}}(t);"function"==typeof h.filter?a=(0,h.filter)("",a):u(h.filter)&&(r=h.filter);var p,l=[];if("object"!=typeof a||null===a)return"";p=t&&t.arrayFormat in n?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=n[p];r||(r=Object.keys(a)),h.sort&&r.sort(h.sort);for(var y=s(),b=0;b<r.length;++b){var f=r[b];h.skipNulls&&null===a[f]||c(l,m(a[f],f,d,h.strictNullHandling,h.skipNulls,h.encode?h.encoder:null,h.filter,h.sort,h.allowDots,h.serializeDate,h.format,h.formatter,h.encodeValuesOnly,h.charset,y))}var q=l.join(h.delimiter),v=!0===h.addQueryPrefix?"?":"";return h.charsetSentinel&&("iso-8859-1"===h.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),q.length>0?v+q:""}},2769:(e,t,r)=>{var s=r(5798),a=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),n=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},s=0;s<e.length;++s)void 0!==e[s]&&(r[s]=e[s]);return r};e.exports={arrayToObject:n,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],s=0;s<t.length;++s)for(var a=t[s],o=a.obj[a.prop],n=Object.keys(o),u=0;u<n.length;++u){var h=n[u],p=o[h];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:o,prop:h}),r.push(p))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var s=[],a=0;a<r.length;++a)void 0!==r[a]&&s.push(r[a]);t.obj[t.prop]=s}}}(t),e},decode:function(e,t,r){var s=e.replace(/\+/g," ");if("iso-8859-1"===r)return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch(e){return s}},encode:function(e,t,r,a,i){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",h=0;h<n.length;++h){var p=n.charCodeAt(h);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===s.RFC1738&&(40===p||41===p)?u+=n.charAt(h):p<128?u+=o[p]:p<2048?u+=o[192|p>>6]+o[128|63&p]:p<55296||p>=57344?u+=o[224|p>>12]+o[128|p>>6&63]+o[128|63&p]:(h+=1,p=65536+((1023&p)<<10|1023&n.charCodeAt(h)),u+=o[240|p>>18]+o[128|p>>12&63]+o[128|p>>6&63]+o[128|63&p])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],s=0;s<e.length;s+=1)r.push(t(e[s]));return r}return t(e)},merge:function e(t,r,s){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(s&&(s.plainObjects||s.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=n(t,s)),i(t)&&i(r)?(r.forEach((function(r,i){if(a.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,s):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return a.call(t,i)?t[i]=e(t[i],o,s):t[i]=o,t}),o)}}},7478:(e,t,r)=>{var s=r(210),a=r(1924),i=r(631),o=s("%TypeError%"),n=s("%WeakMap%",!0),u=s("%Map%",!0),h=a("WeakMap.prototype.get",!0),p=a("WeakMap.prototype.set",!0),c=a("WeakMap.prototype.has",!0),l=a("Map.prototype.get",!0),d=a("Map.prototype.set",!0),g=a("Map.prototype.has",!0),y=function(e,t){for(var r,s=e;null!==(r=s.next);s=r)if(r.key===t)return s.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,s={assert:function(e){if(!s.has(e))throw new o("Side channel does not contain "+i(e))},get:function(s){if(n&&s&&("object"==typeof s||"function"==typeof s)){if(e)return h(e,s)}else if(u){if(t)return l(t,s)}else if(r)return function(e,t){var r=y(e,t);return r&&r.value}(r,s)},has:function(s){if(n&&s&&("object"==typeof s||"function"==typeof s)){if(e)return c(e,s)}else if(u){if(t)return g(t,s)}else if(r)return function(e,t){return!!y(e,t)}(r,s);return!1},set:function(s,a){n&&s&&("object"==typeof s||"function"==typeof s)?(e||(e=new n),p(e,s,a)):u?(t||(t=new u),d(t,s,a)):(r||(r={key:{},next:null}),function(e,t,r){var s=y(e,t);s?s.value=r:e.next={key:t,next:e.next,value:r}}(r,s,a))}};return s}},2130:(e,t,r)=>{const s=r(2037),a=r(6224),i=r(6560),{env:o}=process;let n;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function h(e,t){if(0===n)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!t&&void 0===n)return 0;const r=n||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?n=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(n=1),"FORCE_COLOR"in o&&(n="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(h(e,e&&e.isTTY))},stdout:u(h(!0,a.isatty(1))),stderr:u(h(!0,a.isatty(2)))}},3692:e=>{var t=e.exports=function(e){return new r(e)};function r(e){this.value=e}function s(e,t,r){var s=[],o=[],p=!0;return function e(c){var l=r?a(c):c,d={},g=!0,y={node:l,node_:c,path:[].concat(s),parent:o[o.length-1],parents:o,key:s.slice(-1)[0],isRoot:0===s.length,level:s.length,circular:null,update:function(e,t){y.isRoot||(y.parent.node[y.key]=e),y.node=e,t&&(g=!1)},delete:function(e){delete y.parent.node[y.key],e&&(g=!1)},remove:function(e){n(y.parent.node)?y.parent.node.splice(y.key,1):delete y.parent.node[y.key],e&&(g=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.post=e},stop:function(){p=!1},block:function(){g=!1}};if(!p)return y;function m(){if("object"==typeof y.node&&null!==y.node){y.keys&&y.node_===y.node||(y.keys=i(y.node)),y.isLeaf=0==y.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===c){y.circular=o[e];break}}else y.isLeaf=!0,y.keys=null;y.notLeaf=!y.isLeaf,y.notRoot=!y.isRoot}m();var b=t.call(y,y.node);return void 0!==b&&y.update&&y.update(b),d.before&&d.before.call(y,y.node),g?("object"!=typeof y.node||null===y.node||y.circular||(o.push(y),m(),u(y.keys,(function(t,a){s.push(t),d.pre&&d.pre.call(y,y.node[t],t);var i=e(y.node[t]);r&&h.call(y.node,t)&&(y.node[t]=i.node),i.isLast=a==y.keys.length-1,i.isFirst=0==a,d.post&&d.post.call(y,i),s.pop()})),o.pop()),d.after&&d.after.call(y,y.node),y):y}(e).node}function a(e){if("object"==typeof e&&null!==e){var t;if(n(e))t=[];else if("[object Date]"===o(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===o(e))t=new RegExp(e);else if(function(e){return"[object Error]"===o(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===o(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===o(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===o(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var r=e.constructor&&e.constructor.prototype||e.__proto__||{},s=function(){};s.prototype=r,t=new s}return u(i(e),(function(r){t[r]=e[r]})),t}return e}r.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var s=e[r];if(!t||!h.call(t,s)){t=void 0;break}t=t[s]}return t},r.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var s=e[r];if(!t||!h.call(t,s))return!1;t=t[s]}return!0},r.prototype.set=function(e,t){for(var r=this.value,s=0;s<e.length-1;s++){var a=e[s];h.call(r,a)||(r[a]={}),r=r[a]}return r[e[s]]=t,t},r.prototype.map=function(e){return s(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=s(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var r=1===arguments.length,s=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(s=e.call(this,s,t))})),s},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function r(s){for(var o=0;o<e.length;o++)if(e[o]===s)return t[o];if("object"==typeof s&&null!==s){var n=a(s);return e.push(s),t.push(n),u(i(s),(function(e){n[e]=r(s[e])})),e.pop(),t.pop(),n}return s}(this.value)};var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};function o(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},u=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)};u(i(r.prototype),(function(e){t[e]=function(t){var s=[].slice.call(arguments,1),a=new r(t);return a[e].apply(a,s)}}));var h=Object.hasOwnProperty||function(e,t){return t in e}},9491:t=>{t.exports=e(import.meta.url)("assert")},3685:t=>{t.exports=e(import.meta.url)("http")},5687:t=>{t.exports=e(import.meta.url)("https")},2037:t=>{t.exports=e(import.meta.url)("os")},2781:t=>{t.exports=e(import.meta.url)("stream")},6224:t=>{t.exports=e(import.meta.url)("tty")},7310:t=>{t.exports=e(import.meta.url)("url")},3837:t=>{t.exports=e(import.meta.url)("util")},9796:t=>{t.exports=e(import.meta.url)("zlib")}},r={};function s(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return t[e](i,i.exports,s),i.loaded=!0,i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var a={};(()=>{s.d(a,{UE:()=>Nr,A9:()=>V,M_:()=>P,Mq:()=>b,h4:()=>T,Eh:()=>d,yp:()=>f,hw:()=>l,Xp:()=>c,dI:()=>o,mv:()=>zr,Wn:()=>$r,Vl:()=>i,KD:()=>m,Jy:()=>y,s9:()=>g});var t=s(4530),r=s.n(t);function i(e){let t="";if("string"!=typeof e)throw new b("The [input] parameter must be a string");if(t=e.trim().toLowerCase(),t=t.replace(/ {2,}/g,""),t=t.replace(/&/g,"and"),t=t.replace(/[ _]/g,"-"),t=t.replace(/[^0-9a-z-]+/g,""),t=t.replace(/-{2,}/g,"-"),t.length&&"-"===t[0]&&(t=t.slice(1)),t.length&&"-"===t[t.length-1]&&(t=t.slice(0,-1)),t.length<2)throw new b(`Formatted key did not meet minimum length of 2 characters: ${t}`);if(t.length>256)throw new b(`Formatted key exceeds the maximum length of 256 characters: ${t}`);return t}function o(e){let t="@gradientedge/commercetools-utils";return e&&(t=`${t} (${e})`),t}var n=s(3465),u=s.n(n),h=s(3692),p=s.n(h);const c=["password","refresh_token"],l=["authorization"],d="********";function g(e){return m(e,c)}function y(e){return m(e,l)}function m(e,t,r=d){if("object"==typeof e){const s=u()(e);return p()(s).forEach((function(){t.includes(this.key?.toLowerCase()??"")&&this.update(r)})),s}return e}class b extends Error{constructor(e,t,r){super(e),this.isCommercetoolsError=!0,this.data=t,this.status=r,Object.setPrototypeOf(this,b.prototype)}static fromAxiosError(e){return new b(e.message,{code:e.code,request:{url:e.config?.url,method:e.config?.method,headers:y(e.config?.headers),params:g(e.config?.params),data:g(this.parseRequestData(e.config))},response:{status:e.response?.status,data:g(e.response?.data),headers:e.response?.headers}},e.response?.status)}static parseRequestData(e){let t=e?.data;if("string"==typeof t&&t){let r="";if("string"==typeof e?.headers?.["Content-Type"]&&(r=e?.headers?.["Content-Type"]),"application/json"===r.substring(0,16))try{t=JSON.parse(e.data)}catch(e){}else if("application/x-www-form-urlencoded"===r.substring(0,33))try{const r=new URLSearchParams(e.data),s={};r.forEach(((e,t,r)=>{const a=r.getAll(t);0===a.length?s[t]="":1===a.length?s[t]=a[0]:s[t]=a})),t=s}catch(e){}}return t}toJSON(){return{status:this.status,message:this.message,data:this.data,isCommercetoolsError:!0}}toString(){return r()(this.toJSON())}}var f;!function(e){e.NORTH_AMERICA_GCP="north_america_gcp",e.NORTH_AMERICA_AWS="north_america_aws",e.EUROPE_GCP="europe_gcp",e.EUROPE_AWS="europe_aws",e.AUSTRALIA_GCP="australia_gcp"}(f||(f={}));const q={[f.EUROPE_GCP]:{auth:"https://auth.europe-west1.gcp.commercetools.com",api:"https://api.europe-west1.gcp.commercetools.com"},[f.EUROPE_AWS]:{auth:"https://auth.eu-central-1.aws.commercetools.com",api:"https://api.eu-central-1.aws.commercetools.com"},[f.NORTH_AMERICA_GCP]:{auth:"https://auth.us-central1.gcp.commercetools.com",api:"https://api.us-central1.gcp.commercetools.com"},[f.NORTH_AMERICA_AWS]:{auth:"https://auth.us-east-2.aws.commercetools.com",api:"https://api.us-east-2.aws.commercetools.com"},[f.AUSTRALIA_GCP]:{auth:"https://auth.australia-southeast1.gcp.commercetools.com",api:"https://api.australia-southeast1.gcp.commercetools.com"}},v=["anonymous_id","customer_id"];function A(e,t){return e?e.map((e=>`${e}:${t}`)).join(" "):""}class T{constructor(e){var t;this.accessToken="",this.expiresIn=0,this.expiresAt=new Date,this.scopes=[],this.accessToken=e.access_token,this.expiresIn=e.expires_in,this.scopes=(t=e.scope)?t.split(" ").map((e=>e.split(":")[0])).filter((e=>!v.includes(e))):[],this.anonymousId=this.extractKeyFromScope("anonymous_id",e.scope),this.customerId=this.extractKeyFromScope("customer_id",e.scope),this.expiresAt=new Date((new Date).getTime()+1e3*e.expires_in),"refresh_token"in e&&e.refresh_token&&(this.refreshToken=e.refresh_token)}expiresWithin(e){const t=(new Date).getTime()+1e3*e;return this.expiresAt.getTime()<t}extractKeyFromScope(e,t){if(!t||!e)return;const r=t?.split(" ");if(!Array.isArray(r)||0===r.length)return;const s=r.find((t=>t.slice(0,e.length+1)===`${e}:`));return s?s.slice(e.length+1):void 0}}var U;function x(e,t){const r=`${e}:${t}`;return Buffer.from(r).toString("base64")}!function(e){e.CLIENT_CREDENTIALS="client_credentials",e.REFRESH_TOKEN="refresh_token",e.PASSWORD="password"}(U||(U={}));var R=s(9669),w=s.n(R);class j{constructor(e){this.config=e,this.endpoints=q[this.config.region],this.userAgent=o(this.config.systemIdentifier)}async getClientGrant(e){return this.post("/token",{grant_type:U.CLIENT_CREDENTIALS,scope:A(e,this.config.projectKey)})}async refreshGrant(e){return await this.post("/token",{grant_type:U.REFRESH_TOKEN,refresh_token:e})}async login(e){return this.post(`/${this.config.projectKey}${this.applyStore("/customers/token",e.storeKey)}`,{username:e.username,password:e.password,grant_type:U.PASSWORD,scope:A(e.scopes,this.config.projectKey)})}async revokeToken(e){await this.post("/token/revoke",{token:e.tokenValue,token_type_hint:e.tokenType})}async logout(e){const t=(await Promise.allSettled([this.revokeToken({tokenType:"access_token",tokenValue:e.accessToken}),this.revokeToken({tokenType:"refresh_token",tokenValue:e.refreshToken})])).reduce(((e,t)=>("rejected"===t.status&&e.push(t.reason),e)),[]);if(t.length)throw new b("Logout failed in one or more calls to the token revocation endpoint",t)}async getAnonymousGrant(e){const t={grant_type:U.CLIENT_CREDENTIALS};return e?.scopes?.length&&(t.scope=A(e.scopes,this.config.projectKey)),e?.anonymousId&&(t.anonymous_id=e.anonymousId),this.post(`/${this.config.projectKey}/anonymous/token`,t)}async post(e,t){const r={url:`${this.endpoints.auth}/oauth${e}`,method:"POST",data:new URLSearchParams(t).toString()},s={Authorization:`Basic ${x(this.config.clientId,this.config.clientSecret)}`,"Content-Type":"application/x-www-form-urlencoded"};s["User-Agent"]=this.userAgent;try{return(await w()({...r,headers:s,timeout:this.config.timeoutMs||5e3})).data}catch(e){if(e.isAxiosError)throw b.fromAxiosError(e);throw e}}applyStore(e,t){return"string"==typeof t&&""!==t?`/in-store/key=${t}${e}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${e}`:e}}const E={refreshIfWithinSecs:1800,timeoutMs:5e3};class P{constructor(e){if(this.grantPromise=Promise.resolve(),this.config={...E,...e},!this.config.clientScopes.length)throw new b("`config.clientScopes` must contain at least one scope");this.api=new j(e)}async getClientGrant(){return await this.grantPromise,this.grant&&!this.grant.expiresWithin(this.config.refreshIfWithinSecs)||(this.grantPromise=this.api.getClientGrant(this.config.clientScopes),this.grant=new T(await this.grantPromise)),this.grant}async refreshCustomerGrant(e){await this.getClientGrant();const t=await this.api.refreshGrant(e);return new T({...t,refresh_token:e})}async login(e){const t=e.scopes||this.config.customerScopes;if(!t)throw new b("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const r=await this.api.login({...e,scopes:t});return new T(r)}async getAnonymousGrant(e){const t=e?.scopes||this.config.customerScopes,r=e?.anonymousId;if(!t)throw new b("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const s=await this.api.getAnonymousGrant({scopes:t,anonymousId:r});return new T(s)}async logout(e){await this.api.logout(e)}async revokeToken(e){await this.api.revokeToken(e)}}var O=s(129),C=s.n(O);const k={maxRetries:0,delayMs:0},S=[500,501,502,503,504],K={keepAlive:!0,maxSockets:32,maxFreeSockets:10,timeout:6e4};class V{constructor(e){V.validateConfig(e),this.config=e,this.auth=new P(e),this.endpoints=q[this.config.region],this.userAgent=o(this.config.systemIdentifier),this.axios=this.createAxiosInstance(),this.retry=e.retry||k}createAxiosInstance(){let e;try{e=this.config.httpsAgent?this.config.httpsAgent:new(s(5687).Agent)(K)}catch(e){}const t=w().create({timeout:this.config.timeoutMs||5e3,paramsSerializer:function(e){return C().stringify(e,{arrayFormat:"repeat"})},httpsAgent:e});return t.defaults.headers.common["User-Agent"]=this.userAgent,t}getStoreById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/stores/${e.id}`,method:"GET"})}getStoreByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/stores/key=${e.key}`,method:"GET"})}queryStores(e){return this.request({...this.extractCommonRequestOptions(e),path:"/stores",method:"GET"})}createStore(e){return this.request({path:"/stores",method:"POST",data:e.data})}updateStoreById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/stores/${e.id}`,method:"POST",data:e.data})}updateStoreByKey(e){return this.request({path:`/stores/key=${e.key}`,method:"POST",data:e.data})}deleteStoreById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/stores/${e.id}`,method:"DELETE",params:{...e.params,version:e.version}})}deleteStoreByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/stores/key=${e.key}`,method:"DELETE",params:{...e.params,version:e.version}})}getCategoryById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/categories/${e.id}`,method:"GET"})}getCategoryByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/categories/key=${e.key}`,method:"GET"})}queryChannels(e){return this.request({...this.extractCommonRequestOptions(e),path:"/channels",method:"GET"})}async importOrder(e){return this.request({...this.extractCommonRequestOptions(e),path:"/orders/import",method:"POST",data:e.data})}getChannelById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/channels/${e.id}`,method:"GET"})}getCategory(e){if(!e.id&&!e.key)throw new b("Either an id, key or slug must be provided");return e.id?this.request({...this.extractCommonRequestOptions(e),path:`/categories/${e.id}`,method:"GET"}):this.request({...this.extractCommonRequestOptions(e),path:`/categories/key=${e.key}`,method:"GET"})}async getCategoryBySlug(e){if(!e.languageCode&&!e.languageCodes)throw new b("Either the `languageCode` or `languageCodes` property must be provided");const t=[];e.languageCodes?t.push(...e.languageCodes):e.languageCode&&t.push(e.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...e,params:{...e?.params,where:`slug(${t.map((t=>`${t}="${e.slug}"`)).join(" or ")})`}}),path:"/categories",method:"GET"});if(!r.count)throw new b(`No category found with slug [${e.slug}] and language code [${e.languageCode}]`,{options:e},404);return r.results[0]}queryCategories(e){return this.request({...this.extractCommonRequestOptions(e),path:"/categories",method:"GET"})}async getCategoryParents(e){const t=await this.getCategory({...e,params:{...e.params,expand:"ancestors[*]"}}),r=t.ancestors.map((e=>e.obj));return r.push({...t,ancestors:t.ancestors.map((e=>({id:e.id,typeId:e.typeId})))}),r}getProductById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/products/${e.id}`,method:"GET"})}getProductByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/products/key=${e.key}`,method:"GET"})}getProductProjectionById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/product-projections/${e.id}`,e.storeKey),method:"GET"})}getProductProjectionByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/product-projections/key=${e.key}`,e.storeKey),method:"GET"})}async getProductProjectionBySlug(e){if(!e.languageCode&&!e.languageCodes)throw new b("Either the `languageCode` or `languageCodes` property must be provided");const t=[];e.languageCodes?t.push(...e.languageCodes):e.languageCode&&t.push(e.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...e,params:{...e?.params,where:`slug(${t.map((t=>`${t}="${e.slug}"`)).join(" or ")})`}}),path:"/product-projections",method:"GET"});if(!r.count)throw new b(`No product projection found with slug [${e.slug}] and language code [${e.languageCode}]`,{options:e},404);return r.results[0]}queryProductProjections(e){return this.request({...this.extractCommonRequestOptions(e),path:"/product-projections",method:"GET"})}searchProductProjections(e){return this.request({...this.extractCommonRequestOptions(e),path:"/product-projections/search",method:"GET"})}getProductSelectionById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/product-selections/${e.id}`,e.storeKey),method:"GET"})}getProductSelectionByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/product-selections/key=${e.key}`,e.storeKey),method:"GET"})}queryProductSelections(e){return this.request({...this.extractCommonRequestOptions(e),path:"/product-selections",method:"GET"})}createProductSelection(e){return this.request({...this.extractCommonRequestOptions(e),path:"/product-selections",method:"POST",data:e.data})}updateProductSelectionByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/product-selections/key=${e.key}`,method:"POST",data:{version:e.version,actions:e.actions}})}deleteProductSelectionByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/product-selections/key=${e.key}&version=${e.version}`,method:"DELETE"})}queryProductsInStore(e){return this.request({...this.extractCommonRequestOptions(e),path:`/in-store/key=${e.storeKey}/product-selection-assignments`,method:"GET"})}getCartById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/carts/${e.id}`,e.storeKey),method:"GET"})}async queryCarts(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/carts",e?.storeKey),method:"GET"})}async queryMyCarts(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/carts",e.storeKey),method:"GET",accessToken:e.accessToken})}async createCart(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/carts",e.storeKey),method:"POST",data:e.data})}async updateCartById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/carts/${e.id}`,e.storeKey),method:"POST",data:{version:e.version,actions:e.actions}})}async getMyActiveCart(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/active-cart",e.storeKey),method:"GET",accessToken:e.accessToken})}async getMyCartById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/me/carts/${e.cartId}`,e.storeKey),method:"GET",accessToken:e.accessToken})}async createMyCart(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/carts",e.storeKey),method:"POST",data:e.data,accessToken:e.accessToken})}async deleteMyActiveCart(e){const t=await this.getMyActiveCart(e);return await this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/me/carts/${t.id}`,e.storeKey),method:"DELETE",params:{...e.params,version:t.version},accessToken:e.accessToken})}async deleteMyCartById(e){const t=await this.getMyCartById(e);return await this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/me/carts/${e.cartId}`,e.storeKey),method:"DELETE",params:{...e.params,version:t.version},accessToken:e.accessToken})}async updateMyActiveCart(e){const t=await this.getMyActiveCart(e);return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/me/carts/${t.id}`,e.storeKey),method:"POST",data:{version:t.version,actions:e.actions},accessToken:e.accessToken})}async createMyOrderFromActiveCart(e){const t=await this.getMyActiveCart(e);return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/orders",e.storeKey),method:"POST",data:{version:t.version,id:t.id},accessToken:e.accessToken})}async deleteCartById(e){return await this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/carts/${e.id}`,e.storeKey),method:"DELETE",params:{...e.params,version:e.version}})}createPayment(e){return this.request({...this.extractCommonRequestOptions(e),path:"/payments",method:"POST",data:e.data})}deletePaymentById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/payments/${e.id}`,method:"DELETE",params:{...e.params,version:e.version}})}updatePaymentById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/payments/${e.id}`,method:"POST",data:e.data})}getPaymentById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/payments/${e.id}`,method:"GET"})}queryPayments(e){return this.request({...this.extractCommonRequestOptions(e),path:"/payments",method:"GET"})}createMyPayment(e){return this.request({...this.extractCommonRequestOptions(e),path:"/me/payments",method:"POST",data:e.data,accessToken:e.accessToken})}updateMyPaymentById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/me/payments/${e.id}`,method:"POST",data:e.data,accessToken:e.accessToken})}getMyPaymentById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/me/payments/${e.id}`,method:"GET",accessToken:e.accessToken})}queryMyPayments(e){return this.request({...this.extractCommonRequestOptions(e),path:"/me/payments",method:"GET",accessToken:e.accessToken})}getMyOrderById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/me/orders/${e.id}`,e.storeKey),method:"GET",accessToken:e.accessToken})}queryMyOrders(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/orders",e.storeKey),method:"GET",accessToken:e.accessToken})}updateOrderById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/orders/${e.id}`,e.storeKey),method:"POST",data:e.data})}updateOrderByOrderNumber(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/orders/order-number=${e.orderNumber}`,e.storeKey),method:"POST",data:e.data})}getOrderById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/orders/${e.id}`,e.storeKey),method:"GET"})}getOrderByOrderNumber(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/orders/order-number=${e.orderNumber}`,e.storeKey),method:"GET"})}deleteOrderById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/orders/${e.id}`,e.storeKey),method:"DELETE",params:{...e.params,version:e.version,dataErasure:e.dataErasure}})}deleteOrderByOrderNumber(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/orders/order-number=${e.orderNo}`,e.storeKey),method:"DELETE",params:{...e.params,version:e.version,dataErasure:e.dataErasure}})}queryOrders(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/orders",e.storeKey),method:"GET"})}createProduct(e){return this.request({...this.extractCommonRequestOptions(e),path:"/products",method:"POST",data:e.data})}updateProductByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/products/key=${e.key}`,method:"POST",data:e.data})}updateProductById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/products/${e.id}`,method:"POST",data:e.data})}async deleteProductById(e){let t=e.version;return e.unpublish&&(t=(await this.unpublishProductById({id:e.id,version:e.version})).version),this.request({...this.extractCommonRequestOptions(e),path:`/products/${e.id}`,method:"DELETE",params:{...e.params,version:t}})}async deleteProductByKey(e){let t=e.version;return e.unpublish&&(t=(await this.unpublishProductByKey({key:e.key,version:e.version})).version),this.request({...this.extractCommonRequestOptions(e),path:`/products/key=${e.key}`,method:"DELETE",params:{...e.params,version:t}})}unpublishProductByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/products/key=${e.key}`,method:"POST",params:e.params,data:{version:e.version,actions:[{action:"unpublish"}]}})}unpublishProductById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/products/${e.id}`,method:"POST",params:e.params,data:{version:e.version,actions:[{action:"unpublish"}]}})}createCategory(e){return this.request({path:"/categories",method:"POST",data:e.data})}updateCategoryByKey(e){return this.request({path:`/categories/key=${e.key}`,method:"POST",data:e.data})}updateCategoryById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/categories/${e.id}`,method:"POST",data:e.data})}deleteCategoryById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/categories/${e.id}`,method:"DELETE",params:{...e.params,version:e.version}})}deleteCategoryByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/categories/key=${e.key}`,method:"DELETE",params:{...e.params,version:e.version}})}createAccount(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/customers",e.storeKey),method:"POST",data:e.data})}deleteCustomerById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/customers/${e.id}`,e.storeKey),method:"DELETE",params:{...e.params,version:e.version,dataErasure:e.dataErasure}})}deleteCustomerByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/customers/key=${e.key}`,e.storeKey),method:"DELETE",params:{...e.params,version:e.version,dataErasure:e.dataErasure}})}createMyAccount(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/signup",e.storeKey),method:"POST",data:e.data,accessToken:e.accessToken})}loginMyAccount(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/login",e.storeKey),method:"POST",data:e.data,accessToken:e.accessToken})}login(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/login",e.storeKey),method:"POST",data:e.data})}getMyAccount(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me",e.storeKey),method:"GET",accessToken:e.accessToken})}updateMyAccount(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me",e.storeKey),method:"POST",accessToken:e.accessToken,data:e.data})}changeMyPassword(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/password",e.storeKey),method:"POST",accessToken:e.accessToken,data:e.data})}resetMyPassword(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/me/password/reset",e.storeKey),method:"POST",accessToken:e.accessToken,data:e.data})}getPasswordResetToken(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/customers/password-token",e.storeKey),method:"POST",data:e.data})}getCustomerById(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/customers/${e.id}`,e.storeKey),method:"GET"})}getCustomerByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/customers/key=${e.key}`,e.storeKey),method:"GET"})}getCustomerByPasswordToken(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore(`/customers/password-token=${e.token}`,e.storeKey),method:"GET"})}queryCustomers(e){return this.request({...this.extractCommonRequestOptions(e),path:this.applyStore("/customers",e.storeKey),method:"GET"})}updateCustomerById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/customers/${e.id}`,method:"POST",data:e.data})}updateCustomerByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/customers/key=${e.key}`,method:"POST",data:e.data})}getProductTypeById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/product-types/${e.id}`,method:"GET"})}getProductTypeByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/product-types/key=${e.key}`,method:"GET"})}getTypeById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/types/${e.id}`,method:"GET"})}getTypeByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/types/key=${e.key}`,method:"GET"})}getDiscountCodeById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/discount-codes/${e.id}`,method:"GET"})}getCartDiscountById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/cart-discounts/${e.id}`,method:"GET"})}getCartDiscountByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/cart-discounts/key=${e.key}`,method:"GET"})}queryCartDiscounts(e){return this.request({...this.extractCommonRequestOptions(e),path:"/cart-discounts",method:"GET"})}getCustomObject(e){return this.request({...this.extractCommonRequestOptions(e),path:`/custom-objects/${e.container}/${e.key}`,method:"GET"})}getCustomObjectById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/custom-objects/${e.id}`,method:"GET"})}saveCustomObject(e){return this.request({...this.extractCommonRequestOptions(e),path:"/custom-objects",method:"POST",data:e.data})}deleteCustomObject(e){return this.request({...this.extractCommonRequestOptions(e),path:`/custom-objects/${e.container}/${e.key}`,method:"DELETE"})}getShippingMethodById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/shipping-methods/${e.id}`,method:"GET"})}getShippingMethodByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/shipping-methods/key=${e.key}`,method:"GET"})}getShippingMethodsForLocation(e){return this.request({...this.extractCommonRequestOptions({...e,params:{...e?.params,country:e.country,state:e.state,currency:e.currency}}),path:"/shipping-methods/matching-location",method:"GET",accessToken:e.accessToken})}getShippingMethodsForCart(e){return this.request({...this.extractCommonRequestOptions({...e,params:{...e?.params,cartId:e.cartId}}),path:"/shipping-methods/matching-cart",method:"GET",accessToken:e.accessToken})}queryShippingMethods(e){return this.request({...this.extractCommonRequestOptions(e),path:"/shipping-methods",method:"GET"})}getCustomerGroupById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/customer-groups/${e.id}`,method:"GET"})}getCustomerGroupByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/customer-groups/key=${e.key}`,method:"GET"})}queryCustomerGroups(e){return this.request({...this.extractCommonRequestOptions(e),path:"/customer-groups",method:"GET"})}createCustomerGroup(e){return this.request({path:"/customer-groups",method:"POST",data:e.data})}updateCustomerGroupByKey(e){return this.request({path:`/customer-groups/key=${e.key}`,method:"POST",data:e.data})}updateCustomerGroupById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/customer-groups/${e.id}`,method:"POST",data:e.data})}deleteCustomerGroupById(e){return this.request({...this.extractCommonRequestOptions(e),path:`/customer-groups/${e.id}`,method:"DELETE",params:{...e.params,version:e.version}})}deleteCustomerGroupByKey(e){return this.request({...this.extractCommonRequestOptions(e),path:`/customer-groups/key=${e.key}`,method:"DELETE",params:{...e.params,version:e.version}})}graphql(e){return this.request({...this.extractCommonRequestOptions(e),path:"/graphql",method:"POST",data:e.data,accessToken:e.accessToken})}async request(e){const t=await this.getRequestOptions(e),r=this.getRetryConfig(e.retry);let s,a=0;do{if(a>0){const e=this.calculateDelay(a,r);await new Promise((t=>setTimeout(t,e)))}try{return(await this.axios(t)).data}catch(e){if(!this.isRetryableError(e))throw this.transformError(e);s=e}a++}while(a<=r.maxRetries);throw this.transformError(s)}getRetryConfig(e){return e||this.retry}async getRequestOptions(e){let t=e.accessToken;const r=`${this.endpoints.api}/${this.config.projectKey}${e.path}`,s={...e};s.path&&delete s.path,s.accessToken&&delete s.accessToken,t||(t=(await this.auth.getClientGrant()).accessToken);const a={...this.axios.defaults.headers,Authorization:`Bearer ${t}`,...s.headers};return"string"==typeof e.correlationId&&""!==e.correlationId&&(a["X-Correlation-ID"]=e.correlationId,delete e.correlationId),{...s,url:r,headers:a}}calculateDelay(e,t){if(!t||0===e)return 0;const r=t.delayMs*2**(e-1);if(t.jitter){const t=r*(1+1/(e+1));return Math.floor(Math.random()*t)}return r}isRetryableError(e){return!e.isAxiosError||!e.request||!e.response||S.includes(e.response.status)}extractCommonRequestOptions(e){return e?{correlationId:e.correlationId,params:e.params,retry:e.retry}:{}}applyStore(e,t){return"string"==typeof t&&""!==t?`/in-store/key=${t}${e}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${e}`:e}transformError(e){return e.isAxiosError?b.fromAxiosError(e):e}static validateConfig(e){const t=[];if(e?(e.projectKey?"string"!=typeof e.projectKey&&t.push("The `projectKey` property must be a string"):t.push("The `projectKey` property is empty"),e.clientId?"string"!=typeof e.clientId&&t.push("The `clientId` property must be a string"):t.push("The `clientId` property is empty"),e.clientSecret?"string"!=typeof e.clientSecret&&t.push("The `clientSecret` property must be a string"):t.push("The `clientSecret` property is empty"),Array.isArray(e.clientScopes)?0===e.clientScopes.length&&t.push("The `clientScopes` property must have at least 1 scope defined"):t.push("The `clientScopes` property must be an array")):t.push("The config object missing or empty"),t.length)throw new b("The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \n"+t.map((e=>`• ${e}`)).join("\n"))}}const I=e(import.meta.url)("querystring");function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e){return null!=e}function G(e){const t=e.pathVariables;var r=e.uriTemplate;for(const e in t)r=r.replace(`{${e}}`,`${t[e]}`);return`${r}${function(e){const t=(r=e,Object.keys(r).reduce(((e,t)=>{const s=r[t];if(Array.isArray(s)){const r=s.filter(D);return r.length?{...e,[t]:r}:e}return D(s)?{...e,[t]:s}:e}),{}));var r;const s=(0,I.stringify)(t);return""===s?"":`?${s}`}(e.queryParams||{})}`}class L{constructor(e,t){this.requestExecutor=t,_(this,"request",void 0),this.request={...e,uri:G(e)}}clientRequest(){return this.request}execute(){return this.requestExecutor(this.request)}}class B{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/api-clients/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/api-clients/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class F{constructor(e){this.args=e}withId(e){return new B({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/api-clients",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/api-clients",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class N{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/cart-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/cart-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/cart-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ${constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/cart-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/cart-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/cart-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class M{constructor(e){this.args=e}withKey(e){return new $({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new N({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/cart-discounts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/cart-discounts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class W{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts/replicate",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class z{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class H{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts/customer-id={customerId}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class J{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Q{constructor(e){this.args=e}replicate(){return new W({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withCustomerId(e){return new H({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new J({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new z({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class X{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/categories/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Y{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/categories/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Z{constructor(e){this.args=e}withKey(e){return new Y({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new X({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/categories",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/categories",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class ee{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/channels/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/channels/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/channels/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class te{constructor(e){this.args=e}withId(e){return new ee({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/channels",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/channels",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class re{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/custom-objects/{container}/{key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/custom-objects/{container}/{key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class se{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/custom-objects/{container}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ae{constructor(e){this.args=e}withContainerAndKey(e){return new re({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withContainer(e){return new se({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/custom-objects",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/custom-objects",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class ie{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customer-groups/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customer-groups/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customer-groups/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class oe{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customer-groups/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customer-groups/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customer-groups/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ne{constructor(e){this.args=e}withKey(e){return new oe({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new ie({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customer-groups",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customer-groups",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class ue{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/email/confirm",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class he{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/email-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class pe{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/password-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class ce{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/password",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class le{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/password/reset",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class de{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ge{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/email-token={emailToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ye{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class me{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers/password-token={passwordToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class be{constructor(e){this.args=e}withPasswordToken(e){return new me({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withEmailToken(e){return new ge({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailToken(){return new he({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailConfirm(){return new ue({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}password(){return new ce({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordReset(){return new le({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordToken(){return new pe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new ye({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new de({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/customers",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/customers",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class fe{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/discount-codes/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/discount-codes/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/discount-codes/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class qe{constructor(e){this.args=e}withId(e){return new fe({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/discount-codes",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/discount-codes",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class ve{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/extensions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/extensions/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/extensions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ae{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/extensions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/extensions/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/extensions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Te{constructor(e){this.args=e}withKey(e){return new Ae({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new ve({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/extensions",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/extensions",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Ue{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/graphql",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/graphql",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class xe{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/replicate",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Re{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class we{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/customer-id={customerId}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class je{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ee{constructor(e){this.args=e}withCustomerId(e){return new we({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new je({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}replicate(){return new xe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Re({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Pe{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/email/confirm",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Oe{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/email-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Ce{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password-token",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class ke{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Se{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password/reset",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Ke{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ve{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/email-token={emailToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ie{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class _e{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers/password-token={passwordToken}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class De{constructor(e){this.args=e}withPasswordToken(e){return new _e({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withEmailToken(e){return new Ve({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailToken(){return new Oe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}emailConfirm(){return new Pe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}password(){return new ke({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordReset(){return new Se({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}passwordToken(){return new Ce({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new Ie({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Ke({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/customers",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Ge{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/login",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Le{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/active-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class Be{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Fe{constructor(e){this.args=e}withId(e){return new Be({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Ne{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class $e{constructor(e){this.args=e}withId(e){return new Ne({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Me{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class We{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ze{constructor(e){this.args=e}withKey(e){return new We({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Me({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class He{constructor(e){this.args=e}carts(){return new Fe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new $e({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}activeCart(){return new Le({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new ze({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}}class Je{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Qe{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Xe{constructor(e){this.args=e}withOrderNumber(e){return new Qe({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Je({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Ye{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-projections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ze{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-projections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class et{constructor(e){this.args=e}withKey(e){return new Ze({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Ye({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-projections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class tt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/product-selection-assignments",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class rt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shipping-methods/matching-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class st{constructor(e){this.args=e}matchingCart(){return new rt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}}class at{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class it{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ot{constructor(e){this.args=e}withKey(e){return new it({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new at({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/in-store/key={storeKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class nt{constructor(e){this.args=e}carts(){return new Ee({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new Xe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}me(){return new He({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customers(){return new De({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}login(){return new Ge({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shippingMethods(){return new st({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new ot({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productProjections(){return new et({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productSelectionAssignments(){return new tt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}}class ut{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/inventory/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/inventory/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/inventory/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ht{constructor(e){this.args=e}withId(e){return new ut({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/inventory",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/inventory",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class pt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/login",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class ct{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/active-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class lt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/carts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class dt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/carts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/carts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class gt{constructor(e){this.args=e}withKey(e){return new dt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new lt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/carts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/carts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class yt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/email/confirm",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class mt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/login",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class bt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ft{constructor(e){this.args=e}withId(e){return new bt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class qt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/password/reset",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class vt{constructor(e){this.args=e}reset(){return new qt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/password",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class At{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/payments/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Tt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/payments/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ut{constructor(e){this.args=e}withKey(e){return new Tt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new At({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/payments",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/payments",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class xt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Rt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class wt{constructor(e){this.args=e}withId(e){return new xt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new Rt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class jt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me/signup",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Et{constructor(e){this.args=e}emailConfirm(){return new yt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}password(){return new vt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}signup(){return new jt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}login(){return new mt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}activeCart(){return new ct({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}carts(){return new gt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new ft({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}payments(){return new Ut({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new wt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/me",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/me",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/me",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Pt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/messages/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ot{constructor(e){this.args=e}withId(e){return new Pt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/messages",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ct{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits/{ID}/apply",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class kt{constructor(e){this.args=e}apply(){return new Ct({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/edits/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/edits/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class St{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/edits/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/edits/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Kt{constructor(e){this.args=e}withKey(e){return new St({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new kt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/edits",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/edits",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Vt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/import",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class It{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/search",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}head(e){return new L({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/orders/search",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}}class _t{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Dt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/orders/order-number={orderNumber}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Gt{constructor(e){this.args=e}importOrder(){return new Vt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withOrderNumber(e){return new Dt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}edits(){return new Kt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new _t({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}search(){return new It({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/orders",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/orders",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Lt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/payments/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/payments/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Bt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/payments/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/payments/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ft{constructor(e){this.args=e}withKey(e){return new Bt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Lt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/payments",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/payments",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Nt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts/matching",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class $t{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-discounts/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Mt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-discounts/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Wt{constructor(e){this.args=e}matching(){return new Nt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new Mt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new $t({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-discounts",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-discounts",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class zt{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-projections/search",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/x-www-form-urlencoded",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/search",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ht{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/suggest",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Jt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Qt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Xt{constructor(e){this.args=e}search(){return new zt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}suggest(){return new Ht({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withKey(e){return new Qt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Jt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-projections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Yt{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/{ID}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Zt{constructor(e){this.args=e}products(){return new Yt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-selections/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-selections/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class er{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/key={key}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class tr{constructor(e){this.args=e}products(){return new er({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-selections/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-selections/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class rr{constructor(e){this.args=e}withKey(e){return new tr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Zt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-selections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-selections",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class sr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-types/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ar{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-types/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/product-types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ir{constructor(e){this.args=e}withKey(e){return new ar({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new sr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/product-types",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/product-types",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class or{constructor(e){this.args=e}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products/{ID}/images",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class nr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/{ID}/product-selections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class ur{constructor(e){this.args=e}images(){return new or({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productSelections(){return new nr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}head(e){return new L({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/products/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class hr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/key={key}/product-selections",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class pr{constructor(e){this.args=e}productSelections(){return new hr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}head(e){return new L({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/products/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class cr{constructor(e){this.args=e}withKey(e){return new pr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new ur({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}head(e){return new L({baseUri:this.args.baseUri,method:"HEAD",uriTemplate:"/{projectKey}/products",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/products",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class lr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/reviews/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/reviews/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/reviews/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class dr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/reviews/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/reviews/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/reviews/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class gr{constructor(e){this.args=e}withKey(e){return new dr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new lr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/reviews",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/reviews",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class yr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/matching-cart",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class mr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/matching-location",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class br{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/matching-orderedit",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class fr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shipping-methods/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shipping-methods/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class qr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shipping-methods/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shipping-methods/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class vr{constructor(e){this.args=e}withKey(e){return new qr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}matchingCart(){return new yr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}matchingOrderedit(){return new br({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}matchingLocation(){return new mr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new fr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shipping-methods",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shipping-methods",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Ar{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shopping-lists/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Tr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/shopping-lists/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Ur{constructor(e){this.args=e}withKey(e){return new Tr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Ar({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/shopping-lists",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class xr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/states/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/states/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/states/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Rr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/states/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/states/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/states/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class wr{constructor(e){this.args=e}withKey(e){return new Rr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new xr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/states",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/states",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class jr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/stores/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/stores/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/stores/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Er{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/stores/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/stores/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/stores/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Pr{constructor(e){this.args=e}withKey(e){return new Er({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new jr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/stores",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/stores",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Or{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/subscriptions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/subscriptions/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/subscriptions/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Cr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/subscriptions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/subscriptions/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/subscriptions/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class kr{constructor(e){this.args=e}withKey(e){return new Cr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Or({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/subscriptions",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/subscriptions",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Sr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/tax-categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/tax-categories/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/tax-categories/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Kr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/tax-categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/tax-categories/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/tax-categories/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Vr{constructor(e){this.args=e}withKey(e){return new Kr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Sr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/tax-categories",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/tax-categories",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Ir{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/types/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/types/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class _r{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/types/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/types/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Dr{constructor(e){this.args=e}withKey(e){return new _r({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Ir({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/types",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/types",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Gr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/zones/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/zones/{ID}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/zones/{ID}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Lr{constructor(e){this.args=e}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/zones/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/zones/key={key}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}delete(e){return new L({baseUri:this.args.baseUri,method:"DELETE",uriTemplate:"/{projectKey}/zones/key={key}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}}class Br{constructor(e){this.args=e}withKey(e){return new Lr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}withId(e){return new Gr({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}/zones",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}/zones",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},queryParams:null==e?void 0:e.queryArgs,body:null==e?void 0:e.body},this.args.executeRequest)}}class Fr{constructor(e){this.args=e}categories(){return new Z({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}carts(){return new Q({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}cartDiscounts(){return new M({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}channels(){return new te({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customers(){return new be({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customerGroups(){return new ne({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}customObjects(){return new ae({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}discountCodes(){return new qe({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}graphql(){return new Ue({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}inventory(){return new ht({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}login(){return new pt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}messages(){return new Ot({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}orders(){return new Gt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}payments(){return new Ft({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}products(){return new cr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productDiscounts(){return new Wt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productProjections(){return new Xt({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productSelections(){return new rr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}productTypes(){return new ir({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}reviews(){return new gr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shippingMethods(){return new vr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}shoppingLists(){return new Ur({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}states(){return new wr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}subscriptions(){return new kr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}taxCategories(){return new Vr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}types(){return new Dr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}zones(){return new Br({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}me(){return new Et({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}extensions(){return new Te({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}apiClients(){return new F({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}stores(){return new Pr({pathArgs:{...this.args.pathArgs},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}inStoreKeyWithStoreKeyValue(e){return new nt({pathArgs:{...this.args.pathArgs,...e},executeRequest:this.args.executeRequest,baseUri:this.args.baseUri})}get(e){return new L({baseUri:this.args.baseUri,method:"GET",uriTemplate:"/{projectKey}",pathVariables:this.args.pathArgs,headers:{...null==e?void 0:e.headers}},this.args.executeRequest)}post(e){return new L({baseUri:this.args.baseUri,method:"POST",uriTemplate:"/{projectKey}",pathVariables:this.args.pathArgs,headers:{"Content-Type":"application/json",...null==e?void 0:e.headers},body:null==e?void 0:e.body},this.args.executeRequest)}}class Nr{constructor(e){_(this,"executeRequest",void 0),_(this,"baseUri",void 0),this.executeRequest=e.executeRequest,this.baseUri=e.baseUri||"https://api.europe-west1.gcp.commercetools.com"}withProjectKey(e){return new Fr({pathArgs:{...e},executeRequest:this.executeRequest,baseUri:this.baseUri})}}const $r=(e,t)=>t&&0!=t.length?Wr(t.reduce(Mr),e):e;function Mr(e,t){return(r,s)=>e(r,Wr(t,s))}function Wr(e,t){return r=>e(r,t)}function zr(e,t){return new Nr({executeRequest:e.execute,baseUri:t})}})();var i=a.UE,o=a.A9,n=a.M_,u=a.Mq,h=a.h4,p=a.Eh,c=a.yp,l=a.hw,d=a.Xp,g=a.dI,y=a.mv,m=a.Wn,b=a.Vl,f=a.KD,q=a.Jy,v=a.s9;export{i as ApiRoot,o as CommercetoolsApi,n as CommercetoolsAuth,u as CommercetoolsError,h as CommercetoolsGrant,p as DEFAULT_MASKING_STRING,c as Region,l as SENSITIVE_HEADER_NAMES,d as SENSITIVE_PROPERTY_NAMES,g as buildUserAgent,y as createApiBuilderFromCtpClient,m as createExecutorFromMiddlewares,b as formatAsKey,f as maskSensitiveData,q as maskSensitiveHeaders,v as maskSensitiveInput};
1
+ import{createRequire as t}from"module";var e={9669:(t,e,r)=>{t.exports=r(1609)},7970:(t,e,r)=>{var o=r(4867),n=r(6026),s=r(4097),a=r(5327),i=r(3685),c=r(5687),u=r(938).http,p=r(938).https,l=r(7310),h=r(9796),f=r(7288).version,d=r(5061),y=r(481),m=r(7874),g=r(5263),v=/https:?/;function b(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var o=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+o}t.beforeRedirect=function(t){t.headers.host=t.host,b(t,e,t.href)}}t.exports=function(t){return new Promise((function(e,r){var O;function C(){t.cancelToken&&t.cancelToken.unsubscribe(O),t.signal&&t.signal.removeEventListener("abort",O)}var S=function(t){C(),e(t)},E=!1,w=function(t){C(),E=!0,r(t)},x=t.data,R=t.headers,T={};if(Object.keys(R).forEach((function(t){T[t.toLowerCase()]=t})),"user-agent"in T?R[T["user-agent"]]||delete R[T["user-agent"]]:R["User-Agent"]="axios/"+f,x&&!o.isStream(x)){if(Buffer.isBuffer(x));else if(o.isArrayBuffer(x))x=Buffer.from(new Uint8Array(x));else{if(!o.isString(x))return w(d("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));x=Buffer.from(x,"utf-8")}if(t.maxBodyLength>-1&&x.length>t.maxBodyLength)return w(d("Request body larger than maxBodyLength limit",t));T["content-length"]||(R["Content-Length"]=x.length)}var _=void 0;t.auth&&(_=(t.auth.username||"")+":"+(t.auth.password||""));var q=s(t.baseURL,t.url),A=l.parse(q),j=A.protocol||"http:";if(!_&&A.auth){var k=A.auth.split(":");_=(k[0]||"")+":"+(k[1]||"")}_&&T.authorization&&delete R[T.authorization];var P=v.test(j),I=P?t.httpsAgent:t.httpAgent;try{a(A.path,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(e){var B=new Error(e.message);B.config=t,B.url=t.url,B.exists=!0,w(B)}var F={path:a(A.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:R,agent:I,agents:{http:t.httpAgent,https:t.httpsAgent},auth:_};t.socketPath?F.socketPath=t.socketPath:(F.hostname=A.hostname,F.port=A.port);var $,N=t.proxy;if(!N&&!1!==N){var L=j.slice(0,-1)+"_proxy",M=process.env[L]||process.env[L.toUpperCase()];if(M){var D=l.parse(M),G=process.env.no_proxy||process.env.NO_PROXY,U=!0;if(G&&(U=!G.split(",").map((function(t){return t.trim()})).some((function(t){return!!t&&("*"===t||"."===t[0]&&A.hostname.substr(A.hostname.length-t.length)===t||A.hostname===t)}))),U&&(N={host:D.hostname,port:D.port,protocol:D.protocol},D.auth)){var K=D.auth.split(":");N.auth={username:K[0],password:K[1]}}}}N&&(F.headers.host=A.hostname+(A.port?":"+A.port:""),b(F,N,j+"//"+A.hostname+(A.port?":"+A.port:"")+F.path));var W=P&&(!N||v.test(N.protocol));t.transport?$=t.transport:0===t.maxRedirects?$=W?c:i:(t.maxRedirects&&(F.maxRedirects=t.maxRedirects),$=W?p:u),t.maxBodyLength>-1&&(F.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(F.insecureHTTPParser=t.insecureHTTPParser);var z=$.request(F,(function(e){if(!z.aborted){var r=e,s=e.req||z;if(204!==e.statusCode&&"HEAD"!==s.method&&!1!==t.decompress)switch(e.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(h.createUnzip()),delete e.headers["content-encoding"]}var a={status:e.statusCode,statusText:e.statusMessage,headers:e.headers,config:t,request:s};if("stream"===t.responseType)a.data=r,n(S,w,a);else{var i=[],c=0;r.on("data",(function(e){i.push(e),c+=e.length,t.maxContentLength>-1&&c>t.maxContentLength&&(E=!0,r.destroy(),w(d("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,s)))})),r.on("aborted",(function(){E||(r.destroy(),w(d("error request aborted",t,"ERR_REQUEST_ABORTED",s)))})),r.on("error",(function(e){z.aborted||w(y(e,t,null,s))})),r.on("end",(function(){try{var e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"!==t.responseType&&(e=e.toString(t.responseEncoding),t.responseEncoding&&"utf8"!==t.responseEncoding||(e=o.stripBOM(e))),a.data=e}catch(e){w(y(e,t,e.code,a.request,a))}n(S,w,a)}))}}}));if(z.on("error",(function(e){z.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==e.code||w(y(e,t,null,z))})),z.on("socket",(function(t){t.setKeepAlive(!0,6e4)})),t.timeout){var H=parseInt(t.timeout,10);if(isNaN(H))return void w(d("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",z));z.setTimeout(H,(function(){z.abort();var e;e=t.timeoutErrorMessage?t.timeoutErrorMessage:"timeout of "+t.timeout+"ms exceeded";var r=t.transitional||m;w(d(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",z))}))}(t.cancelToken||t.signal)&&(O=function(t){z.aborted||(z.abort(),w(!t||t&&t.type?new g("canceled"):t))},t.cancelToken&&t.cancelToken.subscribe(O),t.signal&&(t.signal.aborted?O():t.signal.addEventListener("abort",O))),o.isStream(x)?x.on("error",(function(e){w(y(e,t,null,z))})).pipe(z):z.end(x)}))}},5448:(t,e,r)=>{var o=r(4867),n=r(6026),s=r(4372),a=r(5327),i=r(4097),c=r(4109),u=r(7985),p=r(5061),l=r(7874),h=r(5263);t.exports=function(t){return new Promise((function(e,r){var f,d=t.data,y=t.headers,m=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}o.isFormData(d)&&delete y["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",O=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";y.Authorization="Basic "+btoa(b+":"+O)}var C=i(t.baseURL,t.url);function S(){if(v){var o="getAllResponseHeaders"in v?c(v.getAllResponseHeaders()):null,s={data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:o,config:t,request:v};n((function(t){e(t),g()}),(function(t){r(t),g()}),s),v=null}}if(v.open(t.method.toUpperCase(),a(C,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(S)},v.onabort=function(){v&&(r(p("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){r(p("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",o=t.transitional||l;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(p(e,t,o.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},o.isStandardBrowserEnv()){var E=(t.withCredentials||u(C))&&t.xsrfCookieName?s.read(t.xsrfCookieName):void 0;E&&(y[t.xsrfHeaderName]=E)}"setRequestHeader"in v&&o.forEach(y,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete y[e]:v.setRequestHeader(e,t)})),o.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),m&&"json"!==m&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(f=function(t){v&&(r(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f))),d||(d=null),v.send(d)}))}},1609:(t,e,r)=>{var o=r(4867),n=r(1849),s=r(321),a=r(7185),i=function t(e){var r=new s(e),i=n(s.prototype.request,r);return o.extend(i,s.prototype,r),o.extend(i,r),i.create=function(r){return t(a(e,r))},i}(r(5546));i.Axios=s,i.Cancel=r(5263),i.CancelToken=r(4972),i.isCancel=r(6502),i.VERSION=r(7288).version,i.all=function(t){return Promise.all(t)},i.spread=r(8713),i.isAxiosError=r(6268),t.exports=i,t.exports.default=i},5263:t=>{function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,r)=>{var o=r(5263);function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,o=r._listeners.length;for(e=0;e<o;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,o=new Promise((function(t){r.subscribe(t),e=t})).then(t);return o.cancel=function(){r.unsubscribe(e)},o},t((function(t){r.reason||(r.reason=new o(t),e(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},n.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},n.source=function(){var t;return{token:new n((function(e){t=e})),cancel:t}},t.exports=n},6502:t=>{t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{var o=r(4867),n=r(5327),s=r(782),a=r(3572),i=r(7185),c=r(4875),u=c.validators;function p(t){this.defaults=t,this.interceptors={request:new s,response:new s}}p.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var o=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));var s,p=[];if(this.interceptors.response.forEach((function(t){p.push(t.fulfilled,t.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(p),s=Promise.resolve(e);l.length;)s=s.then(l.shift(),l.shift());return s}for(var h=e;o.length;){var f=o.shift(),d=o.shift();try{h=f(h)}catch(t){d(t);break}}try{s=a(h)}catch(t){return Promise.reject(t)}for(;p.length;)s=s.then(p.shift(),p.shift());return s},p.prototype.getUri=function(t){return t=i(this.defaults,t),n(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(t){p.prototype[t]=function(e,r){return this.request(i(r||{},{method:t,url:e,data:(r||{}).data}))}})),o.forEach(["post","put","patch"],(function(t){p.prototype[t]=function(e,r,o){return this.request(i(o||{},{method:t,url:e,data:r}))}})),t.exports=p},782:(t,e,r)=>{var o=r(4867);function n(){this.handlers=[]}n.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){o.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=n},4097:(t,e,r)=>{var o=r(1793),n=r(7303);t.exports=function(t,e){return t&&!o(e)?n(t,e):e}},5061:(t,e,r)=>{var o=r(481);t.exports=function(t,e,r,n,s){var a=new Error(t);return o(a,e,r,n,s)}},3572:(t,e,r)=>{var o=r(4867),n=r(8527),s=r(6502),a=r(5546),i=r(5263);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new i("canceled")}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=n.call(t,t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=n.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(c(t),e&&e.response&&(e.response.data=n.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{t.exports=function(t,e,r,o,n){return t.config=e,r&&(t.code=r),t.request=o,t.response=n,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},7185:(t,e,r)=>{var o=r(4867);t.exports=function(t,e){e=e||{};var r={};function n(t,e){return o.isPlainObject(t)&&o.isPlainObject(e)?o.merge(t,e):o.isPlainObject(e)?o.merge({},e):o.isArray(e)?e.slice():e}function s(r){return o.isUndefined(e[r])?o.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function a(t){if(!o.isUndefined(e[t]))return n(void 0,e[t])}function i(r){return o.isUndefined(e[r])?o.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function c(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c};return o.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||s,n=e(t);o.isUndefined(n)&&e!==c||(r[t]=n)})),r}},6026:(t,e,r)=>{var o=r(5061);t.exports=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(o("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8527:(t,e,r)=>{var o=r(4867),n=r(5546);t.exports=function(t,e,r){var s=this||n;return o.forEach(r,(function(r){t=r.call(s,t,e)})),t}},5546:(t,e,r)=>{var o=r(4867),n=r(6016),s=r(481),a=r(7874),i={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,p={transitional:a,adapter:("undefined"!=typeof XMLHttpRequest?u=r(5448):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(u=r(7970)),u),transformRequest:[function(t,e){return n(e,"Accept"),n(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,r){if(o.isString(t))try{return(0,JSON.parse)(t),o.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||p.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||n&&o.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw s(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){p.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){p.headers[t]=o.merge(i)})),t.exports=p},7874:t=>{t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:t=>{t.exports={version:"0.26.1"}},1849:t=>{t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return t.apply(e,r)}}},5327:(t,e,r)=>{var o=r(4867);function n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var s;if(r)s=r(e);else if(o.isURLSearchParams(e))s=e.toString();else{var a=[];o.forEach(e,(function(t,e){null!=t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,(function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))})))})),s=a.join("&")}if(s){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},7303:t=>{t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,r)=>{var o=r(4867);t.exports=o.isStandardBrowserEnv()?{write:function(t,e,r,n,s,a){var i=[];i.push(t+"="+encodeURIComponent(e)),o.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),o.isString(n)&&i.push("path="+n),o.isString(s)&&i.push("domain="+s),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:t=>{t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},6268:(t,e,r)=>{var o=r(4867);t.exports=function(t){return o.isObject(t)&&!0===t.isAxiosError}},7985:(t,e,r)=>{var o=r(4867);t.exports=o.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var o=t;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=o.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6016:(t,e,r)=>{var o=r(4867);t.exports=function(t,e){o.forEach(t,(function(r,o){o!==e&&o.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[o])}))}},4109:(t,e,r)=>{var o=r(4867),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,s,a={};return t?(o.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=o.trim(t.substr(0,s)).toLowerCase(),r=o.trim(t.substr(s+1)),e){if(a[e]&&n.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},8713:t=>{t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,r)=>{var o=r(7288).version,n={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){n[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var s={};n.transitional=function(t,e,r){function n(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,a){if(!1===t)throw new Error(n(o," has been removed"+(e?" in "+e:"")));return e&&!s[o]&&(s[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,a)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var o=Object.keys(t),n=o.length;n-- >0;){var s=o[n],a=e[s];if(a){var i=t[s],c=void 0===i||a(i,s,t);if(!0!==c)throw new TypeError("option "+s+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+s)}},validators:n}},4867:(t,e,r)=>{var o=r(1849),n=Object.prototype.toString;function s(t){return Array.isArray(t)}function a(t){return void 0===t}function i(t){return"[object ArrayBuffer]"===n.call(t)}function c(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function p(t){return"[object Function]"===n.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),s(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}t.exports={isArray:s,isArrayBuffer:i,isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===n.call(t)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&i(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===n.call(t)},isFile:function(t){return"[object File]"===n.call(t)},isBlob:function(t){return"[object Blob]"===n.call(t)},isFunction:p,isStream:function(t){return c(t)&&p(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===n.call(t)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function r(r,o){u(e[o])&&u(r)?e[o]=t(e[o],r):u(r)?e[o]=t({},r):s(r)?e[o]=r.slice():e[o]=r}for(var o=0,n=arguments.length;o<n;o++)l(arguments[o],r);return e},extend:function(t,e,r){return l(e,(function(e,n){t[n]=r&&"function"==typeof e?o(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},1924:(t,e,r)=>{var o=r(210),n=r(5559),s=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?n(r):r}},5559:(t,e,r)=>{var o=r(8612),n=r(210),s=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||o.call(a,s),c=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=i(o,a,arguments);if(c&&u){var r=c(e,"length");r.configurable&&u(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return i(o,s,arguments)};u?u(t.exports,"apply",{value:l}):t.exports.apply=l},1227:(t,e,r)=>{e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let o=0,n=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(o++,"%c"===t&&(n=o))})),e.splice(n,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=r(2447)(e);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2447:(t,e,r)=>{t.exports=function(t){function e(t){let r,n,s,a=null;function i(...t){if(!i.enabled)return;const o=i,n=Number(new Date),s=n-(r||n);o.diff=s,o.prev=r,o.curr=n,r=n,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let a=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,n)=>{if("%%"===r)return"%";a++;const s=e.formatters[n];if("function"==typeof s){const e=t[a];r=s.call(o,e),t.splice(a,1),a--}return r})),e.formatArgs.call(o,t),(o.log||e.log).apply(o,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=o,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(n!==e.namespaces&&(n=e.namespaces,s=e.enabled(t)),s),set:t=>{a=t}}),"function"==typeof e.init&&e.init(i),i}function o(t,r){const o=e(this.namespace+(void 0===r?":":r)+t);return o.log=this.log,o}function n(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(n),...e.skips.map(n).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const o=("string"==typeof t?t:"").split(/[\s,]+/),n=o.length;for(r=0;r<n;r++)o[r]&&("-"===(t=o[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,o;for(r=0,o=e.skips.length;r<o;r++)if(e.skips[r].test(t))return!1;for(r=0,o=e.names.length;r<o;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(7824),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},5158:(t,e,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?t.exports=r(1227):t.exports=r(39)},39:(t,e,r)=>{const o=r(6224),n=r(3837);e.init=function(t){t.inspectOpts={};const r=Object.keys(e.inspectOpts);for(let o=0;o<r.length;o++)t.inspectOpts[r[o]]=e.inspectOpts[r[o]]},e.log=function(...t){return process.stderr.write(n.format(...t)+"\n")},e.formatArgs=function(r){const{namespace:o,useColors:n}=this;if(n){const e=this.color,n="[3"+(e<8?e:"8;5;"+e),s=` ${n};1m${o} `;r[0]=s+r[0].split("\n").join("\n"+s),r.push(n+"m+"+t.exports.humanize(this.diff)+"")}else r[0]=(e.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+o+" "+r[0]},e.save=function(t){t?process.env.DEBUG=t:delete process.env.DEBUG},e.load=function(){return process.env.DEBUG},e.useColors=function(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):o.isatty(process.stderr.fd)},e.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{const t=r(2130);t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(t){}e.inspectOpts=Object.keys(process.env).filter((t=>/^debug_/i.test(t))).reduce(((t,e)=>{const r=e.substring(6).toLowerCase().replace(/_([a-z])/g,((t,e)=>e.toUpperCase()));let o=process.env[e];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),t[r]=o,t}),{}),t.exports=r(2447)(e);const{formatters:s}=t.exports;s.o=function(t){return this.inspectOpts.colors=this.useColors,n.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")},s.O=function(t){return this.inspectOpts.colors=this.useColors,n.inspect(t,this.inspectOpts)}},2261:(t,e,r)=>{var o;t.exports=function(){if(!o){try{o=r(5158)("follow-redirects")}catch(t){}"function"!=typeof o&&(o=function(){})}o.apply(null,arguments)}},938:(t,e,r)=>{var o=r(7310),n=o.URL,s=r(3685),a=r(5687),i=r(2781).Writable,c=r(9491),u=r(2261),p=["abort","aborted","connect","error","socket","timeout"],l=Object.create(null);p.forEach((function(t){l[t]=function(e,r,o){this._redirectable.emit(t,e,r,o)}}));var h=C("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),f=C("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),d=C("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=C("ERR_STREAM_WRITE_AFTER_END","write after end");function m(t,e){i.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(t){r._processResponse(t)},this._performRequest()}function g(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach((function(s){var a=s+":",i=r[a]=t[s],p=e[s]=Object.create(i);Object.defineProperties(p,{request:{value:function(t,s,i){if("string"==typeof t){var p=t;try{t=b(new n(p))}catch(e){t=o.parse(p)}}else n&&t instanceof n?t=b(t):(i=s,s=t,t={protocol:a});return"function"==typeof s&&(i=s,s=null),(s=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},t,s)).nativeProtocols=r,c.equal(s.protocol,a,"protocol mismatch"),u("options",s),new m(s,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(t,e,r){var o=p.request(t,e,r);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})})),e}function v(){}function b(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return""!==t.port&&(e.port=Number(t.port)),e}function O(t,e){var r;for(var o in e)t.test(o)&&(r=e[o],delete e[o]);return null==r?void 0:String(r).trim()}function C(t,e){function r(t){Error.captureStackTrace(this,this.constructor),t?(this.message=e+": "+t.message,this.cause=t):this.message=e}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+t+"]",r.prototype.code=t,r}function S(t){for(var e=0;e<p.length;e++)t.removeListener(p[e],l[p[e]]);t.on("error",v),t.abort()}m.prototype=Object.create(i.prototype),m.prototype.abort=function(){S(this._currentRequest),this.emit("abort")},m.prototype.write=function(t,e,r){if(this._ending)throw new y;if(!("string"==typeof t||"object"==typeof t&&"length"in t))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof e&&(r=e,e=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new d),this.abort()):r&&r()},m.prototype.end=function(t,e,r){if("function"==typeof t?(r=t,t=e=null):"function"==typeof e&&(r=e,e=null),t){var o=this,n=this._currentRequest;this.write(t,e,(function(){o._ended=!0,n.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},m.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)},m.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)},m.prototype.setTimeout=function(t,e){var r=this;function o(e){e.setTimeout(t),e.removeListener("timeout",e.destroy),e.addListener("timeout",e.destroy)}function n(e){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),s()}),t),o(e)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",n)}return e&&this.on("timeout",e),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",o),this.on("abort",s),this.on("error",s),this.on("response",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(t){m.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}})),["aborted","connection","socket"].forEach((function(t){Object.defineProperty(m.prototype,t,{get:function(){return this._currentRequest[t]}})})),m.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}},m.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(e){if(this._options.agents){var r=t.substr(0,t.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=o.format(this._options),n._redirectable=this;for(var s=0;s<p.length;s++)n.on(p[s],l[p[s]]);if(this._isRedirect){var a=0,i=this,c=this._requestBodyBuffers;!function t(e){if(n===i._currentRequest)if(e)i.emit("error",e);else if(a<c.length){var r=c[a++];n.finished||n.write(r.data,r.encoding,t)}else i._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+t))},m.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||!1===this._options.followRedirects||e<300||e>=400)return t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),void(this._requestBodyBuffers=[]);if(S(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new f);else{((301===e||302===e)&&"POST"===this._options.method||303===e&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],O(/^content-/i,this._options.headers));var n,s=O(/^host$/i,this._options.headers),a=o.parse(this._currentUrl),i=s||a.host,c=/^\w+:/.test(r)?this._currentUrl:o.format(Object.assign(a,{host:i}));try{n=o.resolve(c,r)}catch(t){return void this.emit("error",new h(t))}u("redirecting to",n),this._isRedirect=!0;var p=o.parse(n);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&"https:"!==p.protocol||p.host!==i&&!function(t,e){const r=t.length-e.length-1;return r>0&&"."===t[r]&&t.endsWith(e)}(p.host,i))&&O(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var l={headers:t.headers};try{this._options.beforeRedirect.call(null,this._options,l)}catch(t){return void this.emit("error",t)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(t){this.emit("error",new h(t))}}},t.exports=g({http:s,https:a}),t.exports.wrap=g},7648:t=>{var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString,n="[object Function]";t.exports=function(t){var s=this;if("function"!=typeof s||o.call(s)!==n)throw new TypeError(e+s);for(var a,i=r.call(arguments,1),c=function(){if(this instanceof a){var e=s.apply(this,i.concat(r.call(arguments)));return Object(e)===e?e:this}return s.apply(t,i.concat(r.call(arguments)))},u=Math.max(0,s.length-i.length),p=[],l=0;l<u;l++)p.push("$"+l);if(a=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(c),s.prototype){var h=function(){};h.prototype=s.prototype,a.prototype=new h,h.prototype=null}return a}},8612:(t,e,r)=>{var o=r(7648);t.exports=Function.prototype.bind||o},210:(t,e,r)=>{var o,n=SyntaxError,s=Function,a=TypeError,i=function(t){try{return s('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var u=function(){throw new a},p=c?function(){try{return u}catch(t){try{return c(arguments,"callee").get}catch(t){return u}}}():u,l=r(1405)(),h=Object.getPrototypeOf||function(t){return t.__proto__},f={},d="undefined"==typeof Uint8Array?o:h(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":l?h([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?h(h([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?h((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?h((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?h(""[Symbol.iterator]()):o,"%Symbol%":l?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet},m=function t(e){var r;if("%AsyncFunction%"===e)r=i("async function () {}");else if("%GeneratorFunction%"===e)r=i("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=i("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=h(n.prototype))}return y[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(8612),b=r(7642),O=v.call(Function.call,Array.prototype.concat),C=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,R=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return S(t,w,(function(t,e,r,n){o[o.length]=r?S(n,x,"$1"):e||t})),o},T=function(t,e){var r,o=t;if(b(g,o)&&(o="%"+(r=g[o])[0]+"%"),b(y,o)){var s=y[o];if(s===f&&(s=m(o)),void 0===s&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:s}}throw new n("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=R(t),o=r.length>0?r[0]:"",s=T("%"+o+"%",e),i=s.name,u=s.value,p=!1,l=s.alias;l&&(o=l[0],C(r,O([0,1],l)));for(var h=1,f=!0;h<r.length;h+=1){var d=r[h],m=E(d,0,1),g=E(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new n("property names with quotes must have matching quotes");if("constructor"!==d&&f||(p=!0),b(y,i="%"+(o+="."+d)+"%"))u=y[i];else if(null!=u){if(!(d in u)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var v=c(u,d);u=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[d]}else f=b(u,d),u=u[d];f&&!p&&(y[i]=u)}}return u}},6560:t=>{t.exports=(t,e=process.argv)=>{const r=t.startsWith("-")?"":1===t.length?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return-1!==o&&(-1===n||o<n)}},1405:(t,e,r)=>{var o="undefined"!=typeof Symbol&&Symbol,n=r(5419);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},5419:t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},7642:(t,e,r)=>{var o=r(8612);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},4530:(t,e)=>{function r(t,e){var r=[],o=[];return null==e&&(e=function(t,e){return r[0]===e?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(e)).join(".")+"]"}),function(n,s){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?o.splice(a,1/0,n):o.push(n),~r.indexOf(s)&&(s=e.call(this,n,s))}else r.push(s);return null==t?s:t.call(this,n,s)}}(t.exports=function(t,e,o,n){return JSON.stringify(t,r(e,n),o)}).getSerialize=r},3465:(t,e,r)=>{t=r.nmd(t);var o="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",a="[object Boolean]",i="[object Date]",c="[object Function]",u="[object GeneratorFunction]",p="[object Map]",l="[object Number]",h="[object Object]",f="[object Promise]",d="[object RegExp]",y="[object Set]",m="[object String]",g="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",O="[object DataView]",C="[object Float32Array]",S="[object Float64Array]",E="[object Int8Array]",w="[object Int16Array]",x="[object Int32Array]",R="[object Uint8Array]",T="[object Uint8ClampedArray]",_="[object Uint16Array]",q="[object Uint32Array]",A=/\w*$/,j=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,P={};P[s]=P["[object Array]"]=P[b]=P[O]=P[a]=P[i]=P[C]=P[S]=P[E]=P[w]=P[x]=P[p]=P[l]=P[h]=P[d]=P[y]=P[m]=P[g]=P[R]=P[T]=P[_]=P[q]=!0,P["[object Error]"]=P[c]=P[v]=!1;var I="object"==typeof global&&global&&global.Object===Object&&global,B="object"==typeof self&&self&&self.Object===Object&&self,F=I||B||Function("return this")(),$=e&&!e.nodeType&&e,N=$&&t&&!t.nodeType&&t,L=N&&N.exports===$;function M(t,e){return t.set(e[0],e[1]),t}function D(t,e){return t.add(e),t}function G(t,e,r,o){var n=-1,s=t?t.length:0;for(o&&s&&(r=t[++n]);++n<s;)r=e(r,t[n],n,t);return r}function U(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function K(t){var e=-1,r=Array(t.size);return t.forEach((function(t,o){r[++e]=[o,t]})),r}function W(t,e){return function(r){return t(e(r))}}function z(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var H,V=Array.prototype,J=Function.prototype,Q=Object.prototype,X=F["__core-js_shared__"],Y=(H=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",Z=J.toString,tt=Q.hasOwnProperty,et=Q.toString,rt=RegExp("^"+Z.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=L?F.Buffer:void 0,nt=F.Symbol,st=F.Uint8Array,at=W(Object.getPrototypeOf,Object),it=Object.create,ct=Q.propertyIsEnumerable,ut=V.splice,pt=Object.getOwnPropertySymbols,lt=ot?ot.isBuffer:void 0,ht=W(Object.keys,Object),ft=Ft(F,"DataView"),dt=Ft(F,"Map"),yt=Ft(F,"Promise"),mt=Ft(F,"Set"),gt=Ft(F,"WeakMap"),vt=Ft(Object,"create"),bt=Dt(ft),Ot=Dt(dt),Ct=Dt(yt),St=Dt(mt),Et=Dt(gt),wt=nt?nt.prototype:void 0,xt=wt?wt.valueOf:void 0;function Rt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function _t(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function qt(t){this.__data__=new Tt(t)}function At(t,e,r){var o=t[e];tt.call(t,e)&&Gt(o,r)&&(void 0!==r||e in t)||(t[e]=r)}function jt(t,e){for(var r=t.length;r--;)if(Gt(t[r][0],e))return r;return-1}function kt(t,e,r,o,n,f,v){var j;if(o&&(j=f?o(t,n,f,v):o(t)),void 0!==j)return j;if(!Ht(t))return t;var k=Ut(t);if(k){if(j=function(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&tt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!e)return function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}(t,j)}else{var I=Nt(t),B=I==c||I==u;if(Wt(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(I==h||I==s||B&&!f){if(U(t))return f?t:{};if(j=function(t){return"function"!=typeof t.constructor||Mt(t)?{}:Ht(e=at(t))?it(e):{};var e}(B?{}:t),!e)return function(t,e){return It(t,$t(t),e)}(t,function(t,e){return t&&It(e,Vt(e),t)}(j,t))}else{if(!P[I])return f?t:{};j=function(t,e,r,o){var n,s=t.constructor;switch(e){case b:return Pt(t);case a:case i:return new s(+t);case O:return function(t,e){var r=e?Pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,o);case C:case S:case E:case w:case x:case R:case T:case _:case q:return function(t,e){var r=e?Pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,o);case p:return function(t,e,r){return G(e?r(K(t),!0):K(t),M,new t.constructor)}(t,o,r);case l:case m:return new s(t);case d:return function(t){var e=new t.constructor(t.source,A.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return function(t,e,r){return G(e?r(z(t),!0):z(t),D,new t.constructor)}(t,o,r);case g:return n=t,xt?Object(xt.call(n)):{}}}(t,I,kt,e)}}v||(v=new qt);var F=v.get(t);if(F)return F;if(v.set(t,j),!k)var $=r?function(t){return function(t,e,r){var o=e(t);return Ut(t)?o:function(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}(o,r(t))}(t,Vt,$t)}(t):Vt(t);return function(t,e){for(var r=-1,o=t?t.length:0;++r<o&&!1!==e(t[r],r););}($||t,(function(n,s){$&&(n=t[s=n]),At(j,s,kt(n,e,r,o,s,t,v))})),j}function Pt(t){var e=new t.constructor(t.byteLength);return new st(e).set(new st(t)),e}function It(t,e,r,o){r||(r={});for(var n=-1,s=e.length;++n<s;){var a=e[n],i=o?o(r[a],t[a],a,r,t):void 0;At(r,a,void 0===i?t[a]:i)}return r}function Bt(t,e){var r,o,n=t.__data__;return("string"==(o=typeof(r=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function Ft(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ht(t)||(e=t,Y&&Y in e))&&(zt(t)||U(t)?rt:j).test(Dt(t));var e}(r)?r:void 0}Rt.prototype.clear=function(){this.__data__=vt?vt(null):{}},Rt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Rt.prototype.get=function(t){var e=this.__data__;if(vt){var r=e[t];return r===o?void 0:r}return tt.call(e,t)?e[t]:void 0},Rt.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:tt.call(e,t)},Rt.prototype.set=function(t,e){return this.__data__[t]=vt&&void 0===e?o:e,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var e=this.__data__,r=jt(e,t);return!(r<0||(r==e.length-1?e.pop():ut.call(e,r,1),0))},Tt.prototype.get=function(t){var e=this.__data__,r=jt(e,t);return r<0?void 0:e[r][1]},Tt.prototype.has=function(t){return jt(this.__data__,t)>-1},Tt.prototype.set=function(t,e){var r=this.__data__,o=jt(r,t);return o<0?r.push([t,e]):r[o][1]=e,this},_t.prototype.clear=function(){this.__data__={hash:new Rt,map:new(dt||Tt),string:new Rt}},_t.prototype.delete=function(t){return Bt(this,t).delete(t)},_t.prototype.get=function(t){return Bt(this,t).get(t)},_t.prototype.has=function(t){return Bt(this,t).has(t)},_t.prototype.set=function(t,e){return Bt(this,t).set(t,e),this},qt.prototype.clear=function(){this.__data__=new Tt},qt.prototype.delete=function(t){return this.__data__.delete(t)},qt.prototype.get=function(t){return this.__data__.get(t)},qt.prototype.has=function(t){return this.__data__.has(t)},qt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Tt){var o=r.__data__;if(!dt||o.length<199)return o.push([t,e]),this;r=this.__data__=new _t(o)}return r.set(t,e),this};var $t=pt?W(pt,Object):function(){return[]},Nt=function(t){return et.call(t)};function Lt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||k.test(t))&&t>-1&&t%1==0&&t<e}function Mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Q)}function Dt(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(ft&&Nt(new ft(new ArrayBuffer(1)))!=O||dt&&Nt(new dt)!=p||yt&&Nt(yt.resolve())!=f||mt&&Nt(new mt)!=y||gt&&Nt(new gt)!=v)&&(Nt=function(t){var e=et.call(t),r=e==h?t.constructor:void 0,o=r?Dt(r):void 0;if(o)switch(o){case bt:return O;case Ot:return p;case Ct:return f;case St:return y;case Et:return v}return e});var Ut=Array.isArray;function Kt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!zt(t)}var Wt=lt||function(){return!1};function zt(t){var e=Ht(t)?et.call(t):"";return e==c||e==u}function Ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Vt(t){return Kt(t)?function(t,e){var r=Ut(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Kt(t)}(t)&&tt.call(t,"callee")&&(!ct.call(t,"callee")||et.call(t)==s)}(t)?function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}(t.length,String):[],o=r.length,n=!!o;for(var a in t)!e&&!tt.call(t,a)||n&&("length"==a||Lt(a,o))||r.push(a);return r}(t):function(t){if(!Mt(t))return ht(t);var e=[];for(var r in Object(t))tt.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return kt(t,!0,!0)}},7824:t=>{var e=1e3,r=60*e,o=60*r,n=24*o;function s(t,e,r,o){var n=e>=1.5*r;return Math.round(t/r)+" "+o+(n?"s":"")}t.exports=function(t,a){a=a||{};var i,c,u=typeof t;if("string"===u&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*n;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===u&&isFinite(t))return a.long?(i=t,(c=Math.abs(i))>=n?s(i,c,n,"day"):c>=o?s(i,c,o,"hour"):c>=r?s(i,c,r,"minute"):c>=e?s(i,c,e,"second"):i+" ms"):function(t){var s=Math.abs(t);return s>=n?Math.round(t/n)+"d":s>=o?Math.round(t/o)+"h":s>=r?Math.round(t/r)+"m":s>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},631:(t,e,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&c&&"function"==typeof c.get?c.get:null,p=i&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,O=String.prototype.toUpperCase,C=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,w=Array.prototype.join,x=Array.prototype.slice,R=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function I(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-R(-t):R(t);if(o!==t){var n=String(o),s=v.call(e,n.length+1);return b.call(n,r,"$&_")+"."+b.call(b.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var B=r(2794).custom,F=B&&M(B)?B:null;function $(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function N(t){return b.call(String(t),/"/g,"&quot;")}function L(t){return!("[object Array]"!==U(t)||j&&"object"==typeof t&&j in t)}function M(t){if(A)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!q)return!1;try{return q.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,o,n){var i=r||{};if(G(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!G(i,"customInspect")||i.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return W(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var O=String(e);return y?I(e,O):O}if("bigint"==typeof e){var S=String(e)+"n";return y?I(e,S):S}var R=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=R&&R>0&&"object"==typeof e)return L(e)?"[Array]":"[Object]";var _,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=w.call(Array(t.indent+1)," ")}return{base:r,prev:w.call(Array(e+1),r)}}(i,o);if(void 0===n)n=[];else if(K(n,e)>=0)return"[Circular]";function D(e,r,s){if(r&&(n=x.call(n)).push(r),s){var a={depth:i.depth};return G(i,"quoteStyle")&&(a.quoteStyle=i.quoteStyle),t(e,a,o+1,n)}return t(e,i,o+1,n)}if("function"==typeof e){var z=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),Y=X(e,D);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(Y.length>0?" { "+w.call(Y,", ")+" }":"")}if(M(e)){var Z=A?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(e);return"object"!=typeof e||A?Z:H(Z)}if((_=e)&&"object"==typeof _&&("undefined"!=typeof HTMLElement&&_ instanceof HTMLElement||"string"==typeof _.nodeName&&"function"==typeof _.getAttribute)){for(var tt="<"+C.call(String(e.nodeName)),et=e.attributes||[],rt=0;rt<et.length;rt++)tt+=" "+et[rt].name+"="+$(N(et[rt].value),"double",i);return tt+=">",e.childNodes&&e.childNodes.length&&(tt+="..."),tt+"</"+C.call(String(e.nodeName))+">"}if(L(e)){if(0===e.length)return"[]";var ot=X(e,D);return B&&!function(t){for(var e=0;e<t.length;e++)if(K(t[e],"\n")>=0)return!1;return!0}(ot)?"["+Q(ot,B)+"]":"[ "+w.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==U(t)||j&&"object"==typeof t&&j in t)}(e)){var nt=X(e,D);return"cause"in e&&!k.call(e,"cause")?"{ ["+String(e)+"] "+w.call(E.call("[cause]: "+D(e.cause),nt),", ")+" }":0===nt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+w.call(nt,", ")+" }"}if("object"==typeof e&&c){if(F&&"function"==typeof e[F])return e[F]();if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var st=[];return a.call(e,(function(t,r){st.push(D(r,e,!0)+" => "+D(t,e))})),J("Map",s.call(e),st,B)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var at=[];return p.call(e,(function(t){at.push(D(t,e))})),J("Set",u.call(e),at,B)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return V("WeakMap");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return V("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return V("WeakRef");if(function(t){return!("[object Number]"!==U(t)||j&&"object"==typeof t&&j in t)}(e))return H(D(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return H(D(T.call(e)));if(function(t){return!("[object Boolean]"!==U(t)||j&&"object"==typeof t&&j in t)}(e))return H(d.call(e));if(function(t){return!("[object String]"!==U(t)||j&&"object"==typeof t&&j in t)}(e))return H(D(String(e)));if(!function(t){return!("[object Date]"!==U(t)||j&&"object"==typeof t&&j in t)}(e)&&!function(t){return!("[object RegExp]"!==U(t)||j&&"object"==typeof t&&j in t)}(e)){var it=X(e,D),ct=P?P(e)===Object.prototype:e instanceof Object||e.constructor===Object,ut=e instanceof Object?"":"null prototype",pt=!ct&&j&&Object(e)===e&&j in e?v.call(U(e),8,-1):ut?"Object":"",lt=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(pt||ut?"["+w.call(E.call([],pt||[],ut||[]),": ")+"] ":"");return 0===it.length?lt+"{}":B?lt+"{"+Q(it,B)+"}":lt+"{ "+w.call(it,", ")+" }"}return String(e)};var D=Object.prototype.hasOwnProperty||function(t){return t in this};function G(t,e){return D.call(t,e)}function U(t){return y.call(t)}function K(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function W(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return W(v.call(t,0,e.maxStringLength),e)+o}return $(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,z),"single",e)}function z(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+O.call(e.toString(16))}function H(t){return"Object("+t+")"}function V(t){return t+" { ? }"}function J(t,e,r,o){return t+" ("+e+") {"+(o?Q(r,o):w.call(r,", "))+"}"}function Q(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+w.call(t,","+r)+"\n"+e.prev}function X(t,e){var r=L(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=G(t,n)?e(t[n],t):""}var s,a="function"==typeof _?_(t):[];if(A){s={};for(var i=0;i<a.length;i++)s["$"+a[i]]=a[i]}for(var c in t)G(t,c)&&(r&&String(Number(c))===c&&c<t.length||A&&s["$"+c]instanceof Symbol||(S.call(/[^\w$]/,c)?o.push(e(c,t)+": "+e(t[c],t)):o.push(c+": "+e(t[c],t))));if("function"==typeof _)for(var u=0;u<a.length;u++)k.call(t,a[u])&&o.push("["+e(a[u])+"]: "+e(t[a[u]],t));return o}},2794:(t,e,r)=>{t.exports=r(3837).inspect},5798:t=>{var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},129:(t,e,r)=>{var o=r(8261),n=r(5235),s=r(5798);t.exports={formats:s,parse:n,stringify:o}},5235:(t,e,r)=>{var o=r(2769),n=Object.prototype.hasOwnProperty,s=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,o){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,i=r.depth>0&&/(\[[^[\]]*])/.exec(s),u=i?s.slice(0,i.index):s,p=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;p.push(u)}for(var l=0;r.depth>0&&null!==(i=a.exec(s))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,i[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(i[1])}return i&&p.push("["+s.slice(i.index)+"]"),function(t,e,r,o){for(var n=o?e:c(e,r),s=t.length-1;s>=0;--s){var a,i=t[s];if("[]"===i&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var u="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&i!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=n:"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n}(p,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,u={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,h=p.split(e.delimiter,l),f=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?d="utf-8":"utf8=%26%2310003%3B"===h[r]&&(d="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var y,m,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(y=e.decoder(g,a.decoder,d,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,b),a.decoder,d,"key"),m=o.maybeMap(c(g.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=i(m)),g.indexOf("[]=")>-1&&(m=s(m)?[m]:m),n.call(u,y)?u[y]=o.combine(u[y],m):u[y]=m}return u}(t,r):t,l=r.plainObjects?Object.create(null):{},h=Object.keys(p),f=0;f<h.length;++f){var d=h[f],y=u(d,p[d],r,"string"==typeof t);l=o.merge(l,y,r)}return!0===r.allowSparse?l:o.compact(l)}},8261:(t,e,r)=>{var o=r(7478),n=r(2769),s=r(5798),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,u=String.prototype.split,p=Array.prototype.push,l=function(t,e){p.apply(t,c(e)?e:[e])},h=Date.prototype.toISOString,f=s.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:s.formatters[f],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},y={},m=function t(e,r,s,a,i,p,h,f,m,g,v,b,O,C,S){for(var E,w=e,x=S,R=0,T=!1;void 0!==(x=x.get(y))&&!T;){var _=x.get(e);if(R+=1,void 0!==_){if(_===R)throw new RangeError("Cyclic object value");T=!0}void 0===x.get(y)&&(R=0)}if("function"==typeof h?w=h(r,w):w instanceof Date?w=g(w):"comma"===s&&c(w)&&(w=n.maybeMap(w,(function(t){return t instanceof Date?g(t):t}))),null===w){if(a)return p&&!O?p(r,d.encoder,C,"key",v):r;w=""}if("string"==typeof(E=w)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||n.isBuffer(w)){if(p){var q=O?r:p(r,d.encoder,C,"key",v);if("comma"===s&&O){for(var A=u.call(String(w),","),j="",k=0;k<A.length;++k)j+=(0===k?"":",")+b(p(A[k],d.encoder,C,"value",v));return[b(q)+"="+j]}return[b(q)+"="+b(p(w,d.encoder,C,"value",v))]}return[b(r)+"="+b(String(w))]}var P,I=[];if(void 0===w)return I;if("comma"===s&&c(w))P=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(h))P=h;else{var B=Object.keys(w);P=f?B.sort(f):B}for(var F=0;F<P.length;++F){var $=P[F],N="object"==typeof $&&void 0!==$.value?$.value:w[$];if(!i||null!==N){var L=c(w)?"function"==typeof s?s(r,$):r:r+(m?"."+$:"["+$+"]");S.set(e,R);var M=o();M.set(y,S),l(I,t(N,L,s,a,i,p,h,f,m,g,v,b,O,C,M))}}return I};t.exports=function(t,e){var r,n=t,u=function(t){if(!t)return d;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=s.default;if(void 0!==t.format){if(!a.call(s.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=s.formatters[r],n=d.filter;return("function"==typeof t.filter||c(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===t.allowDots?d.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof u.filter?n=(0,u.filter)("",n):c(u.filter)&&(r=u.filter);var p,h=[];if("object"!=typeof n||null===n)return"";p=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var f=i[p];r||(r=Object.keys(n)),u.sort&&r.sort(u.sort);for(var y=o(),g=0;g<r.length;++g){var v=r[g];u.skipNulls&&null===n[v]||l(h,m(n[v],v,f,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,y))}var b=h.join(u.delimiter),O=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),b.length>0?O+b:""}},2769:(t,e,r)=>{var o=r(5798),n=Object.prototype.hasOwnProperty,s=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],i=Object.keys(a),c=0;c<i.length;++c){var u=i[c],p=a[u];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:u}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(s(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,s){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",u=0;u<i.length;++u){var p=i.charCodeAt(u);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||s===o.RFC1738&&(40===p||41===p)?c+=i.charAt(u):p<128?c+=a[p]:p<2048?c+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?c+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(u+=1,p=65536+((1023&p)<<10|1023&i.charCodeAt(u)),c+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(s(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(s(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return s(e)&&!s(r)&&(a=i(e,o)),s(e)&&s(r)?(r.forEach((function(r,s){if(n.call(e,s)){var a=e[s];a&&"object"==typeof a&&r&&"object"==typeof r?e[s]=t(a,r,o):e.push(r)}else e[s]=r})),e):Object.keys(r).reduce((function(e,s){var a=r[s];return n.call(e,s)?e[s]=t(e[s],a,o):e[s]=a,e}),a)}}},7478:(t,e,r)=>{var o=r(210),n=r(1924),s=r(631),a=o("%TypeError%"),i=o("%WeakMap%",!0),c=o("%Map%",!0),u=n("WeakMap.prototype.get",!0),p=n("WeakMap.prototype.set",!0),l=n("WeakMap.prototype.has",!0),h=n("Map.prototype.get",!0),f=n("Map.prototype.set",!0),d=n("Map.prototype.has",!0),y=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+s(t))},get:function(o){if(i&&o&&("object"==typeof o||"function"==typeof o)){if(t)return u(t,o)}else if(c){if(e)return h(e,o)}else if(r)return function(t,e){var r=y(t,e);return r&&r.value}(r,o)},has:function(o){if(i&&o&&("object"==typeof o||"function"==typeof o)){if(t)return l(t,o)}else if(c){if(e)return d(e,o)}else if(r)return function(t,e){return!!y(t,e)}(r,o);return!1},set:function(o,n){i&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new i),p(t,o,n)):c?(e||(e=new c),f(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=y(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o}},2130:(t,e,r)=>{const o=r(2037),n=r(6224),s=r(6560),{env:a}=process;let i;function c(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function u(t,e){if(0===i)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(t&&!e&&void 0===i)return 0;const r=i||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){const t=o.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in a))||"codeship"===a.CI_NAME?1:r;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const t=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:r}s("no-color")||s("no-colors")||s("color=false")||s("color=never")?i=0:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(i=1),"FORCE_COLOR"in a&&(i="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),t.exports={supportsColor:function(t){return c(u(t,t&&t.isTTY))},stdout:c(u(!0,n.isatty(1))),stderr:c(u(!0,n.isatty(2)))}},3692:t=>{var e=t.exports=function(t){return new r(t)};function r(t){this.value=t}function o(t,e,r){var o=[],a=[],p=!0;return function t(l){var h=r?n(l):l,f={},d=!0,y={node:h,node_:l,path:[].concat(o),parent:a[a.length-1],parents:a,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(t,e){y.isRoot||(y.parent.node[y.key]=t),y.node=t,e&&(d=!1)},delete:function(t){delete y.parent.node[y.key],t&&(d=!1)},remove:function(t){i(y.parent.node)?y.parent.node.splice(y.key,1):delete y.parent.node[y.key],t&&(d=!1)},keys:null,before:function(t){f.before=t},after:function(t){f.after=t},pre:function(t){f.pre=t},post:function(t){f.post=t},stop:function(){p=!1},block:function(){d=!1}};if(!p)return y;function m(){if("object"==typeof y.node&&null!==y.node){y.keys&&y.node_===y.node||(y.keys=s(y.node)),y.isLeaf=0==y.keys.length;for(var t=0;t<a.length;t++)if(a[t].node_===l){y.circular=a[t];break}}else y.isLeaf=!0,y.keys=null;y.notLeaf=!y.isLeaf,y.notRoot=!y.isRoot}m();var g=e.call(y,y.node);return void 0!==g&&y.update&&y.update(g),f.before&&f.before.call(y,y.node),d?("object"!=typeof y.node||null===y.node||y.circular||(a.push(y),m(),c(y.keys,(function(e,n){o.push(e),f.pre&&f.pre.call(y,y.node[e],e);var s=t(y.node[e]);r&&u.call(y.node,e)&&(y.node[e]=s.node),s.isLast=n==y.keys.length-1,s.isFirst=0==n,f.post&&f.post.call(y,s),o.pop()})),a.pop()),f.after&&f.after.call(y,y.node),y):y}(t).node}function n(t){if("object"==typeof t&&null!==t){var e;if(i(t))e=[];else if("[object Date]"===a(t))e=new Date(t.getTime?t.getTime():t);else if("[object RegExp]"===a(t))e=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t))e=new Boolean(t);else if(function(t){return"[object Number]"===a(t)}(t))e=new Number(t);else if(function(t){return"[object String]"===a(t)}(t))e=new String(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var r=t.constructor&&t.constructor.prototype||t.__proto__||{},o=function(){};o.prototype=r,e=new o}return c(s(t),(function(r){e[r]=t[r]})),e}return t}r.prototype.get=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!u.call(e,o)){e=void 0;break}e=e[o]}return e},r.prototype.has=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!u.call(e,o))return!1;e=e[o]}return!0},r.prototype.set=function(t,e){for(var r=this.value,o=0;o<t.length-1;o++){var n=t[o];u.call(r,n)||(r[n]={}),r=r[n]}return r[t[o]]=e,e},r.prototype.map=function(t){return o(this.value,t,!0)},r.prototype.forEach=function(t){return this.value=o(this.value,t,!1),this.value},r.prototype.reduce=function(t,e){var r=1===arguments.length,o=r?this.value:e;return this.forEach((function(e){this.isRoot&&r||(o=t.call(this,o,e))})),o},r.prototype.paths=function(){var t=[];return this.forEach((function(e){t.push(this.path)})),t},r.prototype.nodes=function(){var t=[];return this.forEach((function(e){t.push(this.node)})),t},r.prototype.clone=function(){var t=[],e=[];return function r(o){for(var a=0;a<t.length;a++)if(t[a]===o)return e[a];if("object"==typeof o&&null!==o){var i=n(o);return t.push(o),e.push(i),c(s(o),(function(t){i[t]=r(o[t])})),t.pop(),e.pop(),i}return o}(this.value)};var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};function a(t){return Object.prototype.toString.call(t)}var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)};c(s(r.prototype),(function(t){e[t]=function(e){var o=[].slice.call(arguments,1),n=new r(e);return n[t].apply(n,o)}}));var u=Object.hasOwnProperty||function(t,e){return e in t}},9491:e=>{e.exports=t(import.meta.url)("assert")},3685:e=>{e.exports=t(import.meta.url)("http")},5687:e=>{e.exports=t(import.meta.url)("https")},2037:e=>{e.exports=t(import.meta.url)("os")},2781:e=>{e.exports=t(import.meta.url)("stream")},6224:e=>{e.exports=t(import.meta.url)("tty")},7310:e=>{e.exports=t(import.meta.url)("url")},3837:e=>{e.exports=t(import.meta.url)("util")},9796:e=>{e.exports=t(import.meta.url)("zlib")}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var s=r[t]={id:t,loaded:!1,exports:{}};return e[t](s,s.exports,o),s.loaded=!0,s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};(()=>{o.d(n,{A9:()=>I,M_:()=>_,Mq:()=>m,h4:()=>C,Eh:()=>h,yp:()=>g,hw:()=>l,Xp:()=>p,dI:()=>s,Vl:()=>r,KD:()=>y,Jy:()=>d,s9:()=>f});var t=o(4530),e=o.n(t);function r(t){let e="";if("string"!=typeof t)throw new m("The [input] parameter must be a string");if(e=t.trim().toLowerCase(),e=e.replace(/ {2,}/g,""),e=e.replace(/&/g,"and"),e=e.replace(/[ _]/g,"-"),e=e.replace(/[^0-9a-z-]+/g,""),e=e.replace(/-{2,}/g,"-"),e.length&&"-"===e[0]&&(e=e.slice(1)),e.length&&"-"===e[e.length-1]&&(e=e.slice(0,-1)),e.length<2)throw new m(`Formatted key did not meet minimum length of 2 characters: ${e}`);if(e.length>256)throw new m(`Formatted key exceeds the maximum length of 256 characters: ${e}`);return e}function s(t){let e="@gradientedge/commercetools-utils";return t&&(e=`${e} (${t})`),e}var a=o(3465),i=o.n(a),c=o(3692),u=o.n(c);const p=["password","refresh_token"],l=["authorization"],h="********";function f(t){return y(t,p)}function d(t){return y(t,l)}function y(t,e,r=h){if("object"==typeof t){const o=i()(t);return u()(o).forEach((function(){e.includes(this.key?.toLowerCase()??"")&&this.update(r)})),o}return t}class m extends Error{constructor(t,e,r){super(t),this.isCommercetoolsError=!0,this.data=e,this.status=r,Object.setPrototypeOf(this,m.prototype)}static fromAxiosError(t){return new m(t.message,{code:t.code,request:{url:t.config?.url,method:t.config?.method,headers:d(t.config?.headers),params:f(t.config?.params),data:f(this.parseRequestData(t.config))},response:{status:t.response?.status,data:f(t.response?.data),headers:t.response?.headers}},t.response?.status)}static parseRequestData(t){let e=t?.data;if("string"==typeof e&&e){let r="";if("string"==typeof t?.headers?.["Content-Type"]&&(r=t?.headers?.["Content-Type"]),"application/json"===r.substring(0,16))try{e=JSON.parse(t.data)}catch(t){}else if("application/x-www-form-urlencoded"===r.substring(0,33))try{const r=new URLSearchParams(t.data),o={};r.forEach(((t,e,r)=>{const n=r.getAll(e);0===n.length?o[e]="":1===n.length?o[e]=n[0]:o[e]=n})),e=o}catch(t){}}return e}toJSON(){return{status:this.status,message:this.message,data:this.data,isCommercetoolsError:!0}}toString(){return e()(this.toJSON())}}var g;!function(t){t.NORTH_AMERICA_GCP="north_america_gcp",t.NORTH_AMERICA_AWS="north_america_aws",t.EUROPE_GCP="europe_gcp",t.EUROPE_AWS="europe_aws",t.AUSTRALIA_GCP="australia_gcp"}(g||(g={}));const v={[g.EUROPE_GCP]:{auth:"https://auth.europe-west1.gcp.commercetools.com",api:"https://api.europe-west1.gcp.commercetools.com"},[g.EUROPE_AWS]:{auth:"https://auth.eu-central-1.aws.commercetools.com",api:"https://api.eu-central-1.aws.commercetools.com"},[g.NORTH_AMERICA_GCP]:{auth:"https://auth.us-central1.gcp.commercetools.com",api:"https://api.us-central1.gcp.commercetools.com"},[g.NORTH_AMERICA_AWS]:{auth:"https://auth.us-east-2.aws.commercetools.com",api:"https://api.us-east-2.aws.commercetools.com"},[g.AUSTRALIA_GCP]:{auth:"https://auth.australia-southeast1.gcp.commercetools.com",api:"https://api.australia-southeast1.gcp.commercetools.com"}},b=["anonymous_id","customer_id"];function O(t,e){return t?t.map((t=>`${t}:${e}`)).join(" "):""}class C{constructor(t){var e;this.accessToken="",this.expiresIn=0,this.expiresAt=new Date,this.scopes=[],this.accessToken=t.access_token,this.expiresIn=t.expires_in,this.scopes=(e=t.scope)?e.split(" ").map((t=>t.split(":")[0])).filter((t=>!b.includes(t))):[],this.anonymousId=this.extractKeyFromScope("anonymous_id",t.scope),this.customerId=this.extractKeyFromScope("customer_id",t.scope),this.expiresAt=new Date((new Date).getTime()+1e3*t.expires_in),"refresh_token"in t&&t.refresh_token&&(this.refreshToken=t.refresh_token)}expiresWithin(t){const e=(new Date).getTime()+1e3*t;return this.expiresAt.getTime()<e}extractKeyFromScope(t,e){if(!e||!t)return;const r=e?.split(" ");if(!Array.isArray(r)||0===r.length)return;const o=r.find((e=>e.slice(0,t.length+1)===`${t}:`));return o?o.slice(t.length+1):void 0}}var S;function E(t,e){const r=`${t}:${e}`;return Buffer.from(r).toString("base64")}!function(t){t.CLIENT_CREDENTIALS="client_credentials",t.REFRESH_TOKEN="refresh_token",t.PASSWORD="password"}(S||(S={}));var w=o(9669),x=o.n(w);class R{constructor(t){this.config=t,this.endpoints=v[this.config.region],this.userAgent=s(this.config.systemIdentifier)}async getClientGrant(t){return this.post("/token",{grant_type:S.CLIENT_CREDENTIALS,scope:O(t,this.config.projectKey)})}async refreshGrant(t){return await this.post("/token",{grant_type:S.REFRESH_TOKEN,refresh_token:t})}async login(t){return this.post(`/${this.config.projectKey}${this.applyStore("/customers/token",t.storeKey)}`,{username:t.username,password:t.password,grant_type:S.PASSWORD,scope:O(t.scopes,this.config.projectKey)})}async revokeToken(t){await this.post("/token/revoke",{token:t.tokenValue,token_type_hint:t.tokenType})}async logout(t){const e=(await Promise.allSettled([this.revokeToken({tokenType:"access_token",tokenValue:t.accessToken}),this.revokeToken({tokenType:"refresh_token",tokenValue:t.refreshToken})])).reduce(((t,e)=>("rejected"===e.status&&t.push(e.reason),t)),[]);if(e.length)throw new m("Logout failed in one or more calls to the token revocation endpoint",e)}async getAnonymousGrant(t){const e={grant_type:S.CLIENT_CREDENTIALS};return t?.scopes?.length&&(e.scope=O(t.scopes,this.config.projectKey)),t?.anonymousId&&(e.anonymous_id=t.anonymousId),this.post(`/${this.config.projectKey}/anonymous/token`,e)}async post(t,e){const r={url:`${this.endpoints.auth}/oauth${t}`,method:"POST",data:new URLSearchParams(e).toString()},o={Authorization:`Basic ${E(this.config.clientId,this.config.clientSecret)}`,"Content-Type":"application/x-www-form-urlencoded"};o["User-Agent"]=this.userAgent;try{return(await x()({...r,headers:o,timeout:this.config.timeoutMs||5e3})).data}catch(t){if(t.isAxiosError)throw m.fromAxiosError(t);throw t}}applyStore(t,e){return"string"==typeof e&&""!==e?`/in-store/key=${e}${t}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${t}`:t}}const T={refreshIfWithinSecs:1800,timeoutMs:5e3};class _{constructor(t){if(this.grantPromise=Promise.resolve(),this.config={...T,...t},!this.config.clientScopes.length)throw new m("`config.clientScopes` must contain at least one scope");this.api=new R(t)}async getClientGrant(){return await this.grantPromise,this.grant&&!this.grant.expiresWithin(this.config.refreshIfWithinSecs)||(this.grantPromise=this.api.getClientGrant(this.config.clientScopes),this.grant=new C(await this.grantPromise)),this.grant}async refreshCustomerGrant(t){await this.getClientGrant();const e=await this.api.refreshGrant(t);return new C({...e,refresh_token:t})}async login(t){const e=t.scopes||this.config.customerScopes;if(!e)throw new m("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const r=await this.api.login({...t,scopes:e});return new C(r)}async getAnonymousGrant(t){const e=t?.scopes||this.config.customerScopes,r=t?.anonymousId;if(!e)throw new m("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const o=await this.api.getAnonymousGrant({scopes:e,anonymousId:r});return new C(o)}async logout(t){await this.api.logout(t)}async revokeToken(t){await this.api.revokeToken(t)}}var q=o(129),A=o.n(q);const j={maxRetries:0,delayMs:0},k=[500,501,502,503,504],P={keepAlive:!0,maxSockets:32,maxFreeSockets:10,timeout:6e4};class I{constructor(t){I.validateConfig(t),this.config=t,this.auth=new _(t),this.endpoints=v[this.config.region],this.userAgent=s(this.config.systemIdentifier),this.axios=this.createAxiosInstance(),this.retry=t.retry||j}createAxiosInstance(){let t;try{t=this.config.httpsAgent?this.config.httpsAgent:new(o(5687).Agent)(P)}catch(t){}const e=x().create({timeout:this.config.timeoutMs||5e3,paramsSerializer:function(t){return A().stringify(t,{arrayFormat:"repeat"})},httpsAgent:t});return e.defaults.headers.common["User-Agent"]=this.userAgent,e}getStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"GET"})}getStoreByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/key=${t.key}`,method:"GET"})}queryStores(t){return this.request({...this.extractCommonRequestOptions(t),path:"/stores",method:"GET"})}createStore(t){return this.request({path:"/stores",method:"POST",data:t.data})}updateStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"POST",data:t.data})}updateStoreByKey(t){return this.request({path:`/stores/key=${t.key}`,method:"POST",data:t.data})}deleteStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteStoreByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}getCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"GET"})}getCategoryByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"GET"})}queryChannels(t){return this.request({...this.extractCommonRequestOptions(t),path:"/channels",method:"GET"})}async importOrder(t){return this.request({...this.extractCommonRequestOptions(t),path:"/orders/import",method:"POST",data:t.data})}getChannelById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/channels/${t.id}`,method:"GET"})}getCategory(t){if(!t.id&&!t.key)throw new m("Either an id, key or slug must be provided");return t.id?this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"GET"}):this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"GET"})}async getCategoryBySlug(t){if(!t.languageCode&&!t.languageCodes)throw new m("Either the `languageCode` or `languageCodes` property must be provided");const e=[];t.languageCodes?e.push(...t.languageCodes):t.languageCode&&e.push(t.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,where:`slug(${e.map((e=>`${e}="${t.slug}"`)).join(" or ")})`}}),path:"/categories",method:"GET"});if(!r.count)throw new m(`No category found with slug [${t.slug}] and language code [${t.languageCode}]`,{options:t},404);return r.results[0]}queryCategories(t){return this.request({...this.extractCommonRequestOptions(t),path:"/categories",method:"GET"})}async getCategoryParents(t){const e=await this.getCategory({...t,params:{...t.params,expand:"ancestors[*]"}}),r=e.ancestors.map((t=>t.obj));return r.push({...e,ancestors:e.ancestors.map((t=>({id:t.id,typeId:t.typeId})))}),r}getProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"GET"})}getProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"GET"})}getProductProjectionById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-projections/${t.id}`,t.storeKey),method:"GET"})}getProductProjectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-projections/key=${t.key}`,t.storeKey),method:"GET"})}async getProductProjectionBySlug(t){if(!t.languageCode&&!t.languageCodes)throw new m("Either the `languageCode` or `languageCodes` property must be provided");const e=[];t.languageCodes?e.push(...t.languageCodes):t.languageCode&&e.push(t.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,where:`slug(${e.map((e=>`${e}="${t.slug}"`)).join(" or ")})`}}),path:"/product-projections",method:"GET"});if(!r.count)throw new m(`No product projection found with slug [${t.slug}] and language code [${t.languageCode}]`,{options:t},404);return r.results[0]}queryProductProjections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-projections",method:"GET"})}searchProductProjections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-projections/search",method:"GET"})}getProductSelectionById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-selections/${t.id}`,t.storeKey),method:"GET"})}getProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-selections/key=${t.key}`,t.storeKey),method:"GET"})}queryProductSelections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-selections",method:"GET"})}createProductSelection(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-selections",method:"POST",data:t.data})}updateProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-selections/key=${t.key}`,method:"POST",data:{version:t.version,actions:t.actions}})}deleteProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-selections/key=${t.key}&version=${t.version}`,method:"DELETE"})}queryProductsInStore(t){return this.request({...this.extractCommonRequestOptions(t),path:`/in-store/key=${t.storeKey}/product-selection-assignments`,method:"GET"})}getCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"GET"})}async queryCarts(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/carts",t?.storeKey),method:"GET"})}async queryMyCarts(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/carts",t.storeKey),method:"GET",accessToken:t.accessToken})}async createCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/carts",t.storeKey),method:"POST",data:t.data})}async updateCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"POST",data:{version:t.version,actions:t.actions}})}async getMyActiveCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/active-cart",t.storeKey),method:"GET",accessToken:t.accessToken})}async getMyCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"GET",accessToken:t.accessToken})}async createMyCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/carts",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}async deleteMyActiveCart(t){const e=await this.getMyActiveCart(t);return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${e.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:e.version},accessToken:t.accessToken})}async deleteMyCartById(t){const e=await this.getMyCartById(t);return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"DELETE",params:{...t.params,version:e.version},accessToken:t.accessToken})}async updateMyActiveCart(t){const e=await this.getMyActiveCart(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${e.id}`,t.storeKey),method:"POST",data:{version:e.version,actions:t.actions},accessToken:t.accessToken})}async createMyOrderFromActiveCart(t){const e=await this.getMyActiveCart(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/orders",t.storeKey),method:"POST",data:{version:e.version,id:e.id},accessToken:t.accessToken})}async deleteCartById(t){return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version}})}createPayment(t){return this.request({...this.extractCommonRequestOptions(t),path:"/payments",method:"POST",data:t.data})}deletePaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}updatePaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"POST",data:t.data})}getPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"GET"})}queryPayments(t){return this.request({...this.extractCommonRequestOptions(t),path:"/payments",method:"GET"})}createMyPayment(t){return this.request({...this.extractCommonRequestOptions(t),path:"/me/payments",method:"POST",data:t.data,accessToken:t.accessToken})}updateMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"POST",data:t.data,accessToken:t.accessToken})}getMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"GET",accessToken:t.accessToken})}queryMyPayments(t){return this.request({...this.extractCommonRequestOptions(t),path:"/me/payments",method:"GET",accessToken:t.accessToken})}getMyOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/orders/${t.id}`,t.storeKey),method:"GET",accessToken:t.accessToken})}queryMyOrders(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/orders",t.storeKey),method:"GET",accessToken:t.accessToken})}updateOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"POST",data:t.data})}updateOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNumber}`,t.storeKey),method:"POST",data:t.data})}getOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"GET"})}getOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNumber}`,t.storeKey),method:"GET"})}deleteOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}deleteOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNo}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}queryOrders(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/orders",t.storeKey),method:"GET"})}createProduct(t){return this.request({...this.extractCommonRequestOptions(t),path:"/products",method:"POST",data:t.data})}updateProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"POST",data:t.data})}updateProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"POST",data:t.data})}async deleteProductById(t){let e=t.version;return t.unpublish&&(e=(await this.unpublishProductById({id:t.id,version:t.version})).version),this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"DELETE",params:{...t.params,version:e}})}async deleteProductByKey(t){let e=t.version;return t.unpublish&&(e=(await this.unpublishProductByKey({key:t.key,version:t.version})).version),this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"DELETE",params:{...t.params,version:e}})}unpublishProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}})}unpublishProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}})}createCategory(t){return this.request({path:"/categories",method:"POST",data:t.data})}updateCategoryByKey(t){return this.request({path:`/categories/key=${t.key}`,method:"POST",data:t.data})}updateCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"POST",data:t.data})}deleteCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteCategoryByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}createAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers",t.storeKey),method:"POST",data:t.data})}deleteCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}deleteCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/key=${t.key}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}createMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/signup",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}loginMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/login",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}login(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/login",t.storeKey),method:"POST",data:t.data})}getMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me",t.storeKey),method:"GET",accessToken:t.accessToken})}updateMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}changeMyPassword(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/password",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}resetMyPassword(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/password/reset",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}getPasswordResetToken(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers/password-token",t.storeKey),method:"POST",data:t.data})}getCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/${t.id}`,t.storeKey),method:"GET"})}getCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/key=${t.key}`,t.storeKey),method:"GET"})}getCustomerByPasswordToken(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/password-token=${t.token}`,t.storeKey),method:"GET"})}queryCustomers(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers",t.storeKey),method:"GET"})}updateCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customers/${t.id}`,method:"POST",data:t.data})}updateCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customers/key=${t.key}`,method:"POST",data:t.data})}getProductTypeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-types/${t.id}`,method:"GET"})}getProductTypeByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-types/key=${t.key}`,method:"GET"})}getTypeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/types/${t.id}`,method:"GET"})}getTypeByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/types/key=${t.key}`,method:"GET"})}getDiscountCodeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/discount-codes/${t.id}`,method:"GET"})}getCartDiscountById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/cart-discounts/${t.id}`,method:"GET"})}getCartDiscountByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/cart-discounts/key=${t.key}`,method:"GET"})}queryCartDiscounts(t){return this.request({...this.extractCommonRequestOptions(t),path:"/cart-discounts",method:"GET"})}getCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.container}/${t.key}`,method:"GET"})}getCustomObjectById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.id}`,method:"GET"})}saveCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:"/custom-objects",method:"POST",data:t.data})}deleteCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.container}/${t.key}`,method:"DELETE"})}getShippingMethodById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/shipping-methods/${t.id}`,method:"GET"})}getShippingMethodByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/shipping-methods/key=${t.key}`,method:"GET"})}getShippingMethodsForLocation(t){return this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,country:t.country,state:t.state,currency:t.currency}}),path:"/shipping-methods/matching-location",method:"GET",accessToken:t.accessToken})}getShippingMethodsForCart(t){return this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,cartId:t.cartId}}),path:"/shipping-methods/matching-cart",method:"GET",accessToken:t.accessToken})}queryShippingMethods(t){return this.request({...this.extractCommonRequestOptions(t),path:"/shipping-methods",method:"GET"})}getCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"GET"})}getCustomerGroupByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/key=${t.key}`,method:"GET"})}queryCustomerGroups(t){return this.request({...this.extractCommonRequestOptions(t),path:"/customer-groups",method:"GET"})}createCustomerGroup(t){return this.request({path:"/customer-groups",method:"POST",data:t.data})}updateCustomerGroupByKey(t){return this.request({path:`/customer-groups/key=${t.key}`,method:"POST",data:t.data})}updateCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"POST",data:t.data})}deleteCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteCustomerGroupByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}graphql(t){return this.request({...this.extractCommonRequestOptions(t),path:"/graphql",method:"POST",data:t.data,accessToken:t.accessToken})}async request(t){const e=await this.getRequestOptions(t),r=this.getRetryConfig(t.retry);let o,n=0;do{if(n>0){const t=this.calculateDelay(n,r);await new Promise((e=>setTimeout(e,t)))}try{return(await this.axios(e)).data}catch(t){if(!this.isRetryableError(t))throw this.transformError(t);o=t}n++}while(n<=r.maxRetries);throw this.transformError(o)}getRetryConfig(t){return t||this.retry}async getRequestOptions(t){let e=t.accessToken;const r=`${this.endpoints.api}/${this.config.projectKey}${t.path}`,o={...t};o.path&&delete o.path,o.accessToken&&delete o.accessToken,e||(e=(await this.auth.getClientGrant()).accessToken);const n={...this.axios.defaults.headers,Authorization:`Bearer ${e}`,...o.headers};return"string"==typeof t.correlationId&&""!==t.correlationId&&(n["X-Correlation-ID"]=t.correlationId,delete t.correlationId),{...o,url:r,headers:n}}calculateDelay(t,e){if(!e||0===t)return 0;const r=e.delayMs*2**(t-1);if(e.jitter){const e=r*(1+1/(t+1));return Math.floor(Math.random()*e)}return r}isRetryableError(t){return!t.isAxiosError||!t.request||!t.response||k.includes(t.response.status)}extractCommonRequestOptions(t){return t?{correlationId:t.correlationId,params:t.params,retry:t.retry}:{}}applyStore(t,e){return"string"==typeof e&&""!==e?`/in-store/key=${e}${t}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${t}`:t}transformError(t){return t.isAxiosError?m.fromAxiosError(t):t}static validateConfig(t){const e=[];if(t?(t.projectKey?"string"!=typeof t.projectKey&&e.push("The `projectKey` property must be a string"):e.push("The `projectKey` property is empty"),t.clientId?"string"!=typeof t.clientId&&e.push("The `clientId` property must be a string"):e.push("The `clientId` property is empty"),t.clientSecret?"string"!=typeof t.clientSecret&&e.push("The `clientSecret` property must be a string"):e.push("The `clientSecret` property is empty"),Array.isArray(t.clientScopes)?0===t.clientScopes.length&&e.push("The `clientScopes` property must have at least 1 scope defined"):e.push("The `clientScopes` property must be an array")):e.push("The config object missing or empty"),e.length)throw new m("The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \n"+e.map((t=>`• ${t}`)).join("\n"))}}})();var s=n.A9,a=n.M_,i=n.Mq,c=n.h4,u=n.Eh,p=n.yp,l=n.hw,h=n.Xp,f=n.dI,d=n.Vl,y=n.KD,m=n.Jy,g=n.s9;export{s as CommercetoolsApi,a as CommercetoolsAuth,i as CommercetoolsError,c as CommercetoolsGrant,u as DEFAULT_MASKING_STRING,p as Region,l as SENSITIVE_HEADER_NAMES,h as SENSITIVE_PROPERTY_NAMES,f as buildUserAgent,d as formatAsKey,y as maskSensitiveData,m as maskSensitiveHeaders,g as maskSensitiveInput};