@yuno-payments/dashboard-api-mfe 0.38.2 → 0.38.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.types.d.ts +12 -0
- package/build/cjs/types/types/data-report/data-report.d.ts +23 -8
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.types.d.ts +12 -0
- package/build/esm/types/types/data-report/data-report.d.ts +23 -8
- package/build/index.d.ts +35 -8
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -46,7 +46,7 @@ function ai(e){const t=ni.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
46
46
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
47
47
|
* MIT Licensed
|
|
48
48
|
*/
|
|
49
|
-
!function(e){var t,n,a,o=qr,i=u.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var t=r.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!s.test(t[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var a=e.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),a=n&&e.extensions[n[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=i("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=e.types,a=["nginx","apache",void 0,"iana"],Object.keys(o).forEach(function(e){var i=o[e],r=i.extensions;if(r&&r.length){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(n[c]){var u=a.indexOf(o[n[c]].source),l=a.indexOf(i.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}})}(Dr);var Nr=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Mr=function(e){var t=!1;return Nr(function(){t=!0}),function(n,a){t?e(n,a):Nr(function(){e(n,a)})}};var Br=function(e){Object.keys(e.jobs).forEach(Ur.bind(e)),e.jobs={}};function Ur(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Fr=Mr,Wr=Br,Hr=function(e,t,n,a){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=function(e,t,n,a){var o;o=2==e.length?e(n,Fr(a)):e(n,t,Fr(a));return o}(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?Wr(n):n.results[o]=t,a(e,n.results))})};var Gr=function(e,t){var n=!Array.isArray(e),a={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&a.keyedList.sort(n?t:function(n,a){return t(e[n],e[a])});return a};var Vr=Br,$r=Mr,Kr=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Vr(this),$r(e)(null,this.results)};var Qr=Hr,Jr=Gr,Xr=Kr,Yr=function(e,t,n){var a=Jr(e);for(;a.index<(a.keyedList||e).length;)Qr(e,t,a,function(e,t){e?n(e,t):0!==Object.keys(a.jobs).length||n(null,a.results)}),a.index++;return Xr.bind(a,n)};var Zr={exports:{}},es=Hr,ts=Gr,ns=Kr;function as(e,t){return e<t?-1:e>t?1:0}Zr.exports=function(e,t,n,a){var o=ts(e,n);return es(e,t,o,function n(i,r){i?a(i,r):(o.index++,o.index<(o.keyedList||e).length?es(e,t,o,n):a(null,o.results))}),ns.bind(o,a)},Zr.exports.ascending=as,Zr.exports.descending=function(e,t){return-1*as(e,t)};var os=Zr.exports,is=os,rs=function(e,t,n){return is(e,t,null,n)};var ss={parallel:Yr,serial:rs,serialOrdered:os},cs=Object,us=Error,ls=EvalError,ps=RangeError,ds=ReferenceError,ms=SyntaxError,hs=TypeError,fs=URIError,gs=Math.abs,ys=Math.floor,vs=Math.max,bs=Math.min,xs=Math.pow,ks=Math.round,ws=Number.isNaN||function(e){return e!=e},_s=Object.getOwnPropertyDescriptor;if(_s)try{_s([],"length")}catch(e){_s=null}var Es=_s,Cs=Object.defineProperty||!1;if(Cs)try{Cs({},"a",{value:1})}catch(e){Cs=!1}var Ss,Rs,Ts,Is,js,As,Os,Ps,Ls,zs,Ds,qs,Ns,Ms,Bs,Us,Fs=Cs;function Ws(){return Rs?Ss:(Rs=1,Ss=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=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(n))return!1;for(var a 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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0})}function Hs(){return As?js:(As=1,js="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Gs(){return Ps?Os:(Ps=1,Os=cs.getPrototypeOf||null)}function Vs(){if(zs)return Ls;zs=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return Ls=function(a){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,r=function(e,t){for(var n=[],a=t||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n}(arguments,1),s=t(0,o.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",a=0;a<e.length;a+=1)n+=e[a],a+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,n(r,arguments));return Object(e)===e?e:this}return o.apply(a,n(r,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Ls}function $s(){if(qs)return Ds;qs=1;var e=Vs();return Ds=Function.prototype.bind||e}function Ks(){return Ms?Ns:(Ms=1,Ns=Function.prototype.call)}function Qs(){return Us?Bs:(Us=1,Bs=Function.prototype.apply)}var Js,Xs,Ys,Zs,ec="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,tc=$s(),nc=Qs(),ac=Ks(),oc=ec||tc.call(ac,nc),ic=$s(),rc=hs,sc=Ks(),cc=oc,uc=function(e){if(e.length<1||"function"!=typeof e[0])throw new rc("a function is required");return cc(ic,sc,e)};var lc,pc=Function.prototype.call,dc=Object.prototype.hasOwnProperty,mc=$s().call(pc,dc),hc=cs,fc=us,gc=ls,yc=ps,vc=ds,bc=ms,xc=hs,kc=fs,wc=gs,_c=ys,Ec=vs,Cc=bs,Sc=xs,Rc=ks,Tc=function(e){return ws(e)||0===e?e:e<0?-1:1},Ic=Function,jc=function(e){try{return Ic('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ac=Es,Oc=Fs,Pc=function(){throw new xc},Lc=Ac?function(){try{return Pc}catch(e){try{return Ac(arguments,"callee").get}catch(e){return Pc}}}():Pc,zc=function(){if(Is)return Ts;Is=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ws();return Ts=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Dc=function(){if(Zs)return Ys;Zs=1;var e=Hs(),t=Gs(),n=function(){if(Xs)return Js;Xs=1;var e,t=uc,n=Es;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Js=a&&"function"==typeof a.get?t([a.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return Ys=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),qc=Gs(),Nc=Hs(),Mc=Qs(),Bc=Ks(),Uc={},Fc="undefined"!=typeof Uint8Array&&Dc?Dc(Uint8Array):lc,Wc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?lc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?lc:ArrayBuffer,"%ArrayIteratorPrototype%":zc&&Dc?Dc([][Symbol.iterator]()):lc,"%AsyncFromSyncIteratorPrototype%":lc,"%AsyncFunction%":Uc,"%AsyncGenerator%":Uc,"%AsyncGeneratorFunction%":Uc,"%AsyncIteratorPrototype%":Uc,"%Atomics%":"undefined"==typeof Atomics?lc:Atomics,"%BigInt%":"undefined"==typeof BigInt?lc:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?lc:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?lc:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?lc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fc,"%eval%":eval,"%EvalError%":gc,"%Float16Array%":"undefined"==typeof Float16Array?lc:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?lc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?lc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?lc:FinalizationRegistry,"%Function%":Ic,"%GeneratorFunction%":Uc,"%Int8Array%":"undefined"==typeof Int8Array?lc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?lc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?lc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zc&&Dc?Dc(Dc([][Symbol.iterator]())):lc,"%JSON%":"object"==typeof JSON?JSON:lc,"%Map%":"undefined"==typeof Map?lc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&zc&&Dc?Dc((new Map)[Symbol.iterator]()):lc,"%Math%":Math,"%Number%":Number,"%Object%":hc,"%Object.getOwnPropertyDescriptor%":Ac,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?lc:Promise,"%Proxy%":"undefined"==typeof Proxy?lc:Proxy,"%RangeError%":yc,"%ReferenceError%":vc,"%Reflect%":"undefined"==typeof Reflect?lc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?lc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&zc&&Dc?Dc((new Set)[Symbol.iterator]()):lc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?lc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zc&&Dc?Dc(""[Symbol.iterator]()):lc,"%Symbol%":zc?Symbol:lc,"%SyntaxError%":bc,"%ThrowTypeError%":Lc,"%TypedArray%":Fc,"%TypeError%":xc,"%Uint8Array%":"undefined"==typeof Uint8Array?lc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?lc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?lc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?lc:Uint32Array,"%URIError%":kc,"%WeakMap%":"undefined"==typeof WeakMap?lc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?lc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?lc:WeakSet,"%Function.prototype.call%":Bc,"%Function.prototype.apply%":Mc,"%Object.defineProperty%":Oc,"%Object.getPrototypeOf%":qc,"%Math.abs%":wc,"%Math.floor%":_c,"%Math.max%":Ec,"%Math.min%":Cc,"%Math.pow%":Sc,"%Math.round%":Rc,"%Math.sign%":Tc,"%Reflect.getPrototypeOf%":Nc};if(Dc)try{null.error}catch(e){var Hc=Dc(Dc(e));Wc["%Error.prototype%"]=Hc}var Gc,Vc,$c=function e(t){var n;if("%AsyncFunction%"===t)n=jc("async function () {}");else if("%GeneratorFunction%"===t)n=jc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=jc("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Dc&&(n=Dc(o.prototype))}return Wc[t]=n,n},Kc={__proto__:null,"%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"]},Qc=$s(),Jc=mc,Xc=Qc.call(Bc,Array.prototype.concat),Yc=Qc.call(Mc,Array.prototype.splice),Zc=Qc.call(Bc,String.prototype.replace),eu=Qc.call(Bc,String.prototype.slice),tu=Qc.call(Bc,RegExp.prototype.exec),nu=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,au=/\\(\\)?/g,ou=function(e,t){var n,a=e;if(Jc(Kc,a)&&(a="%"+(n=Kc[a])[0]+"%"),Jc(Wc,a)){var o=Wc[a];if(o===Uc&&(o=$c(a)),void 0===o&&!t)throw new xc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new bc("intrinsic "+e+" does not exist!")},iu=function(e,t){if("string"!=typeof e||0===e.length)throw new xc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new xc('"allowMissing" argument must be a boolean');if(null===tu(/^%?[^%]*%?$/,e))throw new bc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=eu(e,0,1),n=eu(e,-1);if("%"===t&&"%"!==n)throw new bc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new bc("invalid intrinsic syntax, expected opening `%`");var a=[];return Zc(e,nu,function(e,t,n,o){a[a.length]=n?Zc(o,au,"$1"):t||e}),a}(e),a=n.length>0?n[0]:"",o=ou("%"+a+"%",t),i=o.name,r=o.value,s=!1,c=o.alias;c&&(a=c[0],Yc(n,Xc([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=eu(p,0,1),m=eu(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new bc("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Jc(Wc,i="%"+(a+="."+p)+"%"))r=Wc[i];else if(null!=r){if(!(p in r)){if(!t)throw new xc("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ac&&u+1>=n.length){var h=Ac(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Jc(r,p),r=r[p];l&&!s&&(Wc[i]=r)}}return r};var ru=iu("%Object.defineProperty%",!0),su=function(){if(Vc)return Gc;Vc=1;var e=Ws();return Gc=function(){return e()&&!!Symbol.toStringTag}}()(),cu=mc,uu=hs,lu=su?Symbol.toStringTag:null,pu=Lr,du=r,mu=u,hu=l,fu=p,gu=d.parse,yu=m,vu=s.Stream,bu=h,xu=Dr,ku=ss,wu=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==a&&"boolean"!=typeof a)throw new uu("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!lu||!n&&cu(e,lu)||(ru?ru(e,lu,{configurable:!a,enumerable:!1,value:t,writable:!1}):e[lu]=t)},_u=mc,Eu=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function Cu(e){if(!(this instanceof Cu))return new Cu(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],pu.call(this),e=e||{})this[t]=e[t]}du.inherits(Cu,pu),Cu.LINE_BREAK="\r\n",Cu.DEFAULT_CONTENT_TYPE="application/octet-stream",Cu.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var a=pu.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),i=this._multiPartFooter();a(o),a(t),a(i),this._trackLength(o,t,n)}},Cu.prototype._trackLength=function(e,t,n){var a=0;null!=n.knownLength?a+=Number(n.knownLength):Buffer.isBuffer(t)?a=t.length:"string"==typeof t&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+Cu.LINE_BREAK.length,t&&(t.path||t.readable&&_u(t,"httpVersion")||t instanceof vu)&&(n.knownLength||this._valuesToMeasure.push(t))},Cu.prototype._lengthRetriever=function(e,t){_u(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):yu.stat(e.path,function(n,a){if(n)t(n);else{var o=a.size-(e.start?e.start:0);t(null,o)}}):_u(e,"httpVersion")?t(null,Number(e.headers["content-length"])):_u(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},Cu.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,o=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&Eu(s,n.header),s)if(_u(s,c)){if(null==(a=s[c]))continue;Array.isArray(a)||(a=[a]),a.length&&(r+=c+": "+a.join("; ")+Cu.LINE_BREAK)}return"--"+this.getBoundary()+Cu.LINE_BREAK+r+Cu.LINE_BREAK},Cu.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=mu.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=mu.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&_u(e,"httpVersion")&&(n=mu.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},Cu.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=xu.lookup(e.name)),!n&&e&&e.path&&(n=xu.lookup(e.path)),!n&&e&&e.readable&&_u(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=xu.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=Cu.DEFAULT_CONTENT_TYPE),n},Cu.prototype._multiPartFooter=function(){return function(e){var t=Cu.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Cu.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Cu.LINE_BREAK},Cu.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)_u(e,t)&&(n[t.toLowerCase()]=e[t]);return n},Cu.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},Cu.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Cu.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,a=this._streams.length;n<a;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(Cu.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Cu.prototype._generateBoundary=function(){this._boundary="--------------------------"+bu.randomBytes(12).toString("hex")},Cu.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},Cu.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Cu.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?ku.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,a){n?e(n):(a.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},Cu.prototype.submit=function(e,t){var n,a,o={method:"post"};return"string"==typeof e?(e=gu(e),a=Eu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(a=Eu(e,o)).port||(a.port="https:"===a.protocol?443:80),a.headers=this.getHeaders(e.headers),n="https:"===a.protocol?fu.request(a):hu.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var o,i=function(e,a){return n.removeListener("error",i),n.removeListener("response",o),t.call(this,e,a)};o=i.bind(this,null),n.on("error",i),n.on("response",o)}}.bind(this)),n},Cu.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Cu.prototype.toString=function(){return"[object FormData]"},wu(Cu,"FormData");var Su=Rr(Cu);function Ru(e){return wr.isPlainObject(e)||wr.isArray(e)}function Tu(e){return wr.endsWith(e,"[]")?e.slice(0,-2):e}function Iu(e,t,n){return e?e.concat(t).map(function(e,t){return e=Tu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ju=wr.toFlatObject(wr,{},null,function(e){return/^is[A-Z]/.test(e)});function Au(e,t,n){if(!wr.isObject(e))throw new TypeError("target must be an object");t=t||new(Su||FormData);const a=(n=wr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!wr.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wr.isSpecCompliantForm(t);if(!wr.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(wr.isDate(e))return e.toISOString();if(wr.isBoolean(e))return e.toString();if(!s&&wr.isBlob(e))throw new _r("Blob is not supported. Use a Buffer instead.");return wr.isArrayBuffer(e)||wr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(wr.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(wr.isArray(e)&&function(e){return wr.isArray(e)&&!e.some(Ru)}(e)||(wr.isFileList(e)||wr.endsWith(n,"[]"))&&(s=wr.toArray(e)))return n=Tu(n),s.forEach(function(e,a){!wr.isUndefined(e)&&null!==e&&t.append(!0===r?Iu([n],a,i):null===r?n:n+"[]",c(e))}),!1;return!!Ru(e)||(t.append(Iu(o,n,i),c(e)),!1)}const l=[],p=Object.assign(ju,{defaultVisitor:u,convertValue:c,isVisitable:Ru});if(!wr.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!wr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+a.join("."));l.push(n),wr.forEach(n,function(n,i){!0===(!(wr.isUndefined(n)||null===n)&&o.call(t,n,wr.isString(i)?i.trim():i,a,p))&&e(n,a?a.concat(i):[i])}),l.pop()}}(e),t}function Ou(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Pu(e,t){this._pairs=[],e&&Au(e,this,t)}const Lu=Pu.prototype;function zu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Du(e,t,n){if(!t)return e;const a=n&&n.encode||zu;wr.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):wr.isURLSearchParams(t)?t.toString():new Pu(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Lu.append=function(e,t){this._pairs.push([e,t])},Lu.toString=function(e){const t=e?function(t){return e.call(this,t,Ou)}:Ou;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var qu=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){wr.forEach(this.handlers,function(t){null!==t&&e(t)})}},Nu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mu=d.URLSearchParams;const Bu="abcdefghijklmnopqrstuvwxyz",Uu="0123456789",Fu={DIGIT:Uu,ALPHA:Bu,ALPHA_DIGIT:Bu+Bu.toUpperCase()+Uu};var Wu={isNode:!0,classes:{URLSearchParams:Mu,FormData:Su,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Fu,generateString:(e=16,t=Fu.ALPHA_DIGIT)=>{let n="";const{length:a}=t,o=new Uint32Array(e);h.randomFillSync(o);for(let i=0;i<e;i++)n+=t[o[i]%a];return n},protocols:["http","https","file","data"]};const Hu="undefined"!=typeof window&&"undefined"!=typeof document,Gu="object"==typeof navigator&&navigator||void 0,Vu=Hu&&(!Gu||["ReactNative","NativeScript","NS"].indexOf(Gu.product)<0),$u="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ku=Hu&&window.location.href||"http://localhost";var Qu={...Object.freeze({__proto__:null,hasBrowserEnv:Hu,hasStandardBrowserEnv:Vu,hasStandardBrowserWebWorkerEnv:$u,navigator:Gu,origin:Ku}),...Wu};function Ju(e){function t(e,n,a,o){let i=e[o++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=o>=e.length;if(i=!i&&wr.isArray(a)?a.length:i,s)return wr.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!r;a[i]&&wr.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],o)&&wr.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const o=n.length;let i;for(a=0;a<o;a++)i=n[a],t[i]=e[i];return t}(a[i])),!r}if(wr.isFormData(e)&&wr.isFunction(e.entries)){const n={};return wr.forEachEntry(e,(e,a)=>{t(function(e){return wr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null}const Xu={transitional:Nu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=wr.isObject(e);o&&wr.isHTMLForm(e)&&(e=new FormData(e));if(wr.isFormData(e))return a?JSON.stringify(Ju(e)):e;if(wr.isArrayBuffer(e)||wr.isBuffer(e)||wr.isStream(e)||wr.isFile(e)||wr.isBlob(e)||wr.isReadableStream(e))return e;if(wr.isArrayBufferView(e))return e.buffer;if(wr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Au(e,new Qu.classes.URLSearchParams,{visitor:function(e,t,n,a){return Qu.isNode&&wr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=wr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Au(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),function(e,t,n){if(wr.isString(e))try{return(t||JSON.parse)(e),wr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Xu.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(wr.isResponse(e)||wr.isReadableStream(e))return e;if(e&&wr.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw _r.from(e,_r.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qu.classes.FormData,Blob:Qu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wr.forEach(["delete","get","head","post","put","patch"],e=>{Xu.headers[e]={}});var Yu=Xu;const Zu=wr.toObjectSet(["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"]);const el=Symbol("internals");function tl(e){return e&&String(e).trim().toLowerCase()}function nl(e){return!1===e||null==e?e:wr.isArray(e)?e.map(nl):String(e)}function al(e,t,n,a,o){return wr.isFunction(a)?a.call(this,t,n):(o&&(t=n),wr.isString(t)?wr.isString(a)?-1!==t.indexOf(a):wr.isRegExp(a)?a.test(t):void 0:void 0)}class ol{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(e,t,n){const o=tl(t);if(!o)throw new Error("header name must be a non-empty string");const i=wr.findKey(a,o);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=nl(e))}const i=(e,t)=>wr.forEach(e,(e,n)=>o(e,n,t));if(wr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(wr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,a,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),a=e.substring(o+1).trim(),!n||t[n]&&Zu[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t})(e),t);else if(wr.isObject(e)&&wr.isIterable(e)){let n,a,o={};for(const t of e){if(!wr.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[a=t[0]]=(n=o[a])?wr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=tl(e)){const n=wr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(wr.isFunction(t))return t.call(this,e,n);if(wr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tl(e)){const n=wr.findKey(this,e);return!(!n||void 0===this[n]||t&&!al(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function o(e){if(e=tl(e)){const o=wr.findKey(n,e);!o||t&&!al(0,n[o],o,t)||(delete n[o],a=!0)}}return wr.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const o=t[n];e&&!al(0,this[o],o,e,!0)||(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return wr.forEach(this,(a,o)=>{const i=wr.findKey(n,o);if(i)return t[i]=nl(a),void delete t[o];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();r!==o&&delete t[o],t[r]=nl(a),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return wr.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&wr.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[el]=this[el]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=tl(e);t[a]||(!function(e,t){const n=wr.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,o){return this[a].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[a]=!0)}return wr.isArray(e)?e.forEach(a):a(e),this}}ol.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wr.reduceDescriptors(ol.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),wr.freezeMethods(ol);var il=ol;function rl(e,t){const n=this||Yu,a=t||n,o=il.from(a.headers);let i=a.data;return wr.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function sl(e){return!(!e||!e.__CANCEL__)}function cl(e,t,n){_r.call(this,null==e?"canceled":e,_r.ERR_CANCELED,t,n),this.name="CanceledError"}function ul(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ll(e,t,n){let a=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(a||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}wr.inherits(cl,_r,{__CANCEL__:!0});var pl={},dl=d.parse,ml={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},hl=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function fl(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}pl.getProxyForUrl=function(e){var t="string"==typeof e?dl(e):e||{},n=t.protocol,a=t.host,o=t.port;if("string"!=typeof a||!a||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(fl("npm_config_no_proxy")||fl("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),o=a?a[1]:n,i=a?parseInt(a[2]):0;return!(!i||i===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!hl.call(e,o)):e!==o)})}(a=a.replace(/:\d*$/,""),o=parseInt(o)||ml[n]||0))return"";var i=fl("npm_config_"+n+"_proxy")||fl(n+"_proxy")||fl("npm_config_proxy")||fl("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var gl,yl,vl,bl,xl,kl={exports:{}},wl={exports:{}},_l={exports:{}};function El(){if(yl)return gl;yl=1;var e=1e3,t=60*e,n=60*t,a=24*n,o=7*a,i=365.25*a;function r(e,t,n,a){var o=t>=1.5*n;return Math.round(e/n)+" "+a+(o?"s":"")}return gl=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function(r){if((r=String(r)).length>100)return;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(r);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function(o){var i=Math.abs(o);if(i>=a)return r(o,i,a,"day");if(i>=n)return r(o,i,n,"hour");if(i>=t)return r(o,i,t,"minute");if(i>=e)return r(o,i,e,"second");return o+" ms"}(s):function(o){var i=Math.abs(o);if(i>=a)return Math.round(o/a)+"d";if(i>=n)return Math.round(o/n)+"h";if(i>=t)return Math.round(o/t)+"m";if(i>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},gl}function Cl(){if(bl)return vl;return bl=1,vl=function(e){function t(e){let a,o,i,r=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(a||o);n.diff=i,n.prev=a,n.curr=o,a=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,o)=>{if("%%"===a)return"%";r++;const i=t.formatters[o];if("function"==typeof i){const t=e[r];a=i.call(n,t),e.splice(r,1),r--}return a}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function a(e,t){let n=0,a=0,o=-1,i=0;for(;n<e.length;)if(a<t.length&&(t[a]===e[n]||"*"===t[a]))"*"===t[a]?(o=a,i=n,a++):(n++,a++);else{if(-1===o)return!1;a=o+1,i++,n=i}for(;a<t.length&&"*"===t[a];)a++;return a===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(a(e,n))return!1;for(const n of t.names)if(a(e,n))return!0;return!1},t.humanize=El(),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(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},vl}var Sl,Rl,Tl,Il,jl,Al,Ol,Pl={exports:{}};function Ll(){return Rl?Sl:(Rl=1,Sl=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),o=t.indexOf("--");return-1!==a&&(-1===o||a<o)})}function zl(){return jl||(jl=1,function(e,t){const n=g,a=r;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:a,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),i=` ${o};1m${a} [0m`;n[0]=i+n[0].split("\n").join("\n"+i),n.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+n[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):n.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=function(){if(Il)return Tl;Il=1;const e=y,t=g,n=Ll(),{env:a}=process;let o;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===o)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!i&&void 0===o)return 0;const r=o||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){const t=e.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(e=>e 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 e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=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}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?o=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=1),"FORCE_COLOR"in a&&(o="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),Tl={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},Tl}();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 n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let a=process.env[t];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[n]=a,e},{}),e.exports=Cl()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(Pl,Pl.exports)),Pl.exports}function Dl(){return Al||(Al=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?wl.exports=(xl||(xl=1,function(e,t){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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(a++,"%c"===e&&(o=a))}),t.splice(o,0,n)},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")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[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=Cl()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(_l,_l.exports)),_l.exports):wl.exports=zl()),wl.exports}var ql,Nl,Ml,Bl=d,Ul=Bl.URL,Fl=l,Wl=p,Hl=s.Writable,Gl=f,Vl=function(){if(!Ol){try{Ol=Dl()("follow-redirects")}catch(e){}"function"!=typeof Ol&&(Ol=function(){})}Ol.apply(null,arguments)};ql="undefined"!=typeof process,Nl="undefined"!=typeof window&&"undefined"!=typeof document,Ml=mp(Error.captureStackTrace),ql||!Nl&&Ml||console.warn("The follow-redirects package should be excluded from browser builds.");var $l=!1;try{Gl(new Ul(""))}catch(Oa){$l="ERR_INVALID_URL"===Oa.code}var Kl=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ql=["abort","aborted","connect","error","socket","timeout"],Jl=Object.create(null);Ql.forEach(function(e){Jl[e]=function(t,n,a){this._redirectable.emit(e,t,n,a)}});var Xl=lp("ERR_INVALID_URL","Invalid URL",TypeError),Yl=lp("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Zl=lp("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Yl),ep=lp("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),tp=lp("ERR_STREAM_WRITE_AFTER_END","write after end"),np=Hl.prototype.destroy||ip;function ap(e,t){Hl.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 n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof Yl?e:new Yl({cause:e}))}},this._performRequest()}function op(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(a){var o=a+":",i=n[o]=e[a],r=t[a]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,a,i){var r;return r=e,Ul&&r instanceof Ul?e=cp(e):dp(e)?e=cp(rp(e)):(i=a,a=sp(e),e={protocol:o}),mp(a)&&(i=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=n,dp(a.host)||dp(a.hostname)||(a.hostname="::1"),Gl.equal(a.protocol,o,"protocol mismatch"),Vl("options",a),new ap(a,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var a=r.request(e,t,n);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})}),t}function ip(){}function rp(e){var t;if($l)t=new Ul(e);else if(!dp((t=sp(Bl.parse(e))).protocol))throw new Xl({input:e});return t}function sp(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Xl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Xl({input:e.href||e});return e}function cp(e,t){var n=t||{};for(var a of Kl)n[a]=e[a];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function up(e,t){var n;for(var a in t)e.test(a)&&(n=t[a],delete t[a]);return null==n?void 0:String(n).trim()}function lp(e,t,n){function a(n){mp(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(n||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function pp(e,t){for(var n of Ql)e.removeListener(n,Jl[n]);e.on("error",ip),e.destroy(t)}function dp(e){return"string"==typeof e||e instanceof String}function mp(e){return"function"==typeof e}ap.prototype=Object.create(Hl.prototype),ap.prototype.abort=function(){pp(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},ap.prototype.destroy=function(e){return pp(this._currentRequest,e),np.call(this,e),this},ap.prototype.write=function(e,t,n){if(this._ending)throw new tp;if(!dp(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;mp(t)&&(n=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,n)):(this.emit("error",new ep),this.abort()):n&&n()},ap.prototype.end=function(e,t,n){if(mp(e)?(n=e,e=t=null):mp(t)&&(n=t,t=null),e){var a=this,o=this._currentRequest;this.write(e,t,function(){a._ended=!0,o.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},ap.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},ap.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},ap.prototype.setTimeout=function(e,t){var n=this;function a(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),i()},e),a(t)}function i(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",i),n.removeListener("error",i),n.removeListener("response",i),n.removeListener("close",i),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",a),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){ap.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(ap.prototype,e,{get:function(){return this._currentRequest[e]}})}),ap.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))}},ap.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(a._redirectable=this,Ql))a.on(o,Jl[o]);if(this._currentUrl=/^\//.test(this._options.path)?Bl.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(a===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];a.finished||a.write(n.data,n.encoding,e)}else r._ended&&a.end()}()}},ap.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,a=e.headers.location;if(!a||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(pp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Zl;var o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],up(/^content-/i,this._options.headers));var r,s,c=up(/^host$/i,this._options.headers),u=rp(this._currentUrl),l=c||u.host,p=/^\w+:/.test(a)?this._currentUrl:Bl.format(Object.assign(u,{host:l})),d=(r=a,s=p,$l?new Ul(r,s):rp(Bl.resolve(s,r)));if(Vl("redirecting to",d.href),this._isRedirect=!0,cp(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Gl(dp(e)&&dp(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&up(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),mp(o)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};o(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},kl.exports=op({http:Fl,https:Wl}),kl.exports.wrap=op;var hp=Rr(kl.exports);const fp="1.12.2";function gp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const yp=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const vp=Symbol("internals");class bp extends s.Transform{constructor(e){super({readableHighWaterMark:(e=wr.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!wr.isUndefined(t[e]))).chunkSize});const t=this[vp]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[vp];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const a=this[vp],o=a.maxRate,i=this.readableHighWaterMark,r=a.timeWindow,s=o/(1e3/r),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);a.bytesSeen+=n,a.bytes+=n,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(t):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(o){const e=Date.now();(!a.ts||(m=e-a.ts)>=r)&&(a.ts=e,l=s-a.bytes,a.bytes=l<0?-l:0,m=0),l=s-a.bytes}if(o){if(l<=0)return setTimeout(()=>{t(null,e)},r-m);l<d&&(d=l)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),u(e,p?()=>{process.nextTick(t,null,p)}:t)};l(e,function e(t,a){if(t)return n(t);a?l(a,e):n(null)})}}var xp=bp;const{asyncIterator:kp}=Symbol;var wp=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[kp]?yield*e[kp]():yield e};const _p=Qu.ALPHABET.ALPHA_DIGIT+"-_",Ep="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Cp="\r\n",Sp=Ep.encode(Cp);class Rp{constructor(e,t){const{escapeName:n}=this.constructor,a=wr.isString(t);let o=`Content-Disposition: form-data; name="${n(e)}"${!a&&t.name?`; filename="${n(t.name)}"`:""}${Cp}`;a?t=Ep.encode(String(t).replace(/\r?\n|\r\n?/g,Cp)):o+=`Content-Type: ${t.type||"application/octet-stream"}${Cp}`,this.headers=Ep.encode(o+Cp),this.contentLength=a?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;wr.isTypedArray(e)?yield e:yield*wp(e),yield Sp}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var Tp=(e,t,n)=>{const{tag:a="form-data-boundary",size:o=25,boundary:i=a+"-"+Qu.generateString(o,_p)}=n||{};if(!wr.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const r=Ep.encode("--"+i+Cp),s=Ep.encode("--"+i+"--"+Cp);let u=s.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new Rp(e,t);return u+=n.size,n});u+=r.byteLength*l.length,u=wr.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),c.from(async function*(){for(const e of l)yield r,yield*e.encode();yield s}())};class Ip extends s.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}var jp=Ip;var Ap=(e,t)=>wr.isAsyncFn(e)?function(...n){const a=n.pop();e.apply(this,n).then(e=>{try{t?a(null,...t(e)):a(null,e)}catch(e){a(e)}},a)}:e;const Op=(e,t,n=3)=>{let a=0;const o=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=a[r];o||(o=c),n[i]=s,a[i]=c;let l=r,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,a,o=0,i=1e3/t;const r=(t,i=Date.now())=>{o=i,n=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?r(e,t):(n=e,a||(a=setTimeout(()=>{a=null,r(n)},i-s)))},()=>n&&r(n)]}(n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-a,c=o(s);a=i;e({loaded:i,total:r,progress:r?i/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&i<=r?(r-i)/c:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})},n)},Pp=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},Lp=e=>(...t)=>wr.asap(()=>e(...t));const zp={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Dp={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},qp=wr.isFunction(v.createBrotliDecompress),{http:Np,https:Mp}=hp,Bp=/https:?/,Up=Qu.protocols.map(e=>e+":"),Fp=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Wp(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Hp(e,t,n){let a=t;if(!a&&!1!==a){const e=pl.getProxyForUrl(n);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const t=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=a.hostname||a.host;e.hostname=t,e.host=t,e.port=a.port,e.path=n,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Hp(e,t,e.href)}}const Gp="undefined"!=typeof process&&"process"===wr.kindOf(process),Vp=(e,t)=>(({address:e,family:t})=>{if(!wr.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(wr.isObject(e)?e:{address:e,family:t});var $p=Gp&&function(e){return t=async function(t,n,a){let{data:o,lookup:i,family:c}=e;const{responseType:u,responseEncoding:d}=e,m=e.method.toUpperCase();let h,f,g=!1;if(i){const e=Ap(i,e=>wr.isArray(e)?e:[e]);i=(t,n,a)=>{e(t,n,(e,t,o)=>{if(e)return a(e);const i=wr.isArray(t)?t.map(e=>Vp(e)):[Vp(t,o)];n.all?a(e,i):a(e,i[0].address,i[0].family)})}}const y=new b,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(k),e.signal&&e.signal.removeEventListener("abort",k),y.removeAllListeners()};function k(t){y.emit("abort",!t||t.type?new cl(null,e,f):t)}a((e,t)=>{h=!0,t&&(g=!0,x())}),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(k),e.signal&&(e.signal.aborted?k():e.signal.addEventListener("abort",k)));const w=ll(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,Qu.hasBrowserEnv?Qu.origin:void 0),E=_.protocol||Up[0];if("data:"===E){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(n)){let e=a.length;const t=a.length;for(let n=0;n<t;n++)if(37===a.charCodeAt(n)&&n+2<t){const t=a.charCodeAt(n+1),o=a.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===a.charCodeAt(e-2)&&51===a.charCodeAt(e-1)&&(68===a.charCodeAt(e)||100===a.charCodeAt(e));o>=0&&(61===a.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===a.charCodeAt(o)||i(o))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(a,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e))}let a;if("GET"!==m)return ul(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,t,n){const a=n&&n.Blob||Qu.classes.Blob,o=gp(e);if(void 0===t&&a&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const n=yp.exec(e);if(!n)throw new _r("Invalid URL",_r.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!a)throw new _r("Blob is not supported",_r.ERR_NOT_SUPPORT);return new a([c],{type:i})}return c}throw new _r("Unsupported protocol "+o,_r.ERR_NOT_SUPPORT)}(e.url,"blob"===u,{Blob:e.env&&e.env.Blob})}catch(t){throw _r.from(t,_r.ERR_BAD_REQUEST,e)}return"text"===u?(a=a.toString(d),d&&"utf8"!==d||(a=wr.stripBOM(a))):"stream"===u&&(a=s.Readable.from(a)),ul(t,n,{data:a,status:200,statusText:"OK",headers:new il,config:e})}if(-1===Up.indexOf(E))return n(new _r("Unsupported protocol "+E,_r.ERR_BAD_REQUEST,e));const C=il.from(e.headers).normalize();C.set("User-Agent","axios/"+fp,!1);const{onUploadProgress:S,onDownloadProgress:R}=e,T=e.maxRate;let I,j;if(wr.isSpecCompliantForm(o)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);o=Tp(o,e=>{C.set(e)},{tag:`axios-${fp}-boundary`,boundary:e&&e[1]||void 0})}else if(wr.isFormData(o)&&wr.isFunction(o.getHeaders)){if(C.set(o.getHeaders()),!C.hasContentLength())try{const e=await r.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(wr.isBlob(o)||wr.isFile(o))o.size&&C.setContentType(o.type||"application/octet-stream"),C.setContentLength(o.size||0),o=s.Readable.from(wp(o));else if(o&&!wr.isStream(o)){if(Buffer.isBuffer(o));else if(wr.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!wr.isString(o))return n(new _r("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",_r.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(C.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return n(new _r("Request body larger than maxBodyLength limit",_r.ERR_BAD_REQUEST,e))}const A=wr.toFiniteNumber(C.getContentLength());let O,P;wr.isArray(T)?(I=T[0],j=T[1]):I=j=T,o&&(S||I)&&(wr.isStream(o)||(o=s.Readable.from(o,{objectMode:!1})),o=s.pipeline([o,new xp({maxRate:wr.toFiniteNumber(I)})],wr.noop),S&&o.on("progress",Fp(o,Pp(A,Op(Lp(S),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{P=Du(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const a=new Error(t.message);return a.config=e,a.url=e.url,a.exists=!0,n(a)}C.set("Accept-Encoding","gzip, compress, deflate"+(qp?", br":""),!1);const L={path:P,method:m,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:c,beforeRedirect:Wp,beforeRedirects:{}};let z;!wr.isUndefined(i)&&(L.lookup=i),e.socketPath?L.socketPath=e.socketPath:(L.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,L.port=_.port,Hp(L,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+L.path));const D=Bp.test(L.protocol);if(L.agent=D?e.httpsAgent:e.httpAgent,e.transport?z=e.transport:0===e.maxRedirects?z=D?p:l:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),z=D?Mp:Np),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),f=z.request(L,function(a){if(f.destroyed)return;const o=[a],i=+a.headers["content-length"];if(R||j){const e=new xp({maxRate:wr.toFiniteNumber(j)});R&&e.on("progress",Fp(e,Pp(i,Op(Lp(R),!0,3)))),o.push(e)}let r=a;const c=a.req||f;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==m&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"deflate":o.push(new jp),o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"br":qp&&(o.push(v.createBrotliDecompress(Dp)),delete a.headers["content-encoding"])}r=o.length>1?s.pipeline(o,wr.noop):o[0];const l=s.finished(r,()=>{l(),x()}),p={status:a.statusCode,statusText:a.statusMessage,headers:new il(a.headers),config:e,request:c};if("stream"===u)p.data=r,ul(t,n,p);else{const a=[];let o=0;r.on("data",function(t){a.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(g=!0,r.destroy(),n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e,c)))}),r.on("aborted",function(){if(g)return;const t=new _r("stream has been aborted",_r.ERR_BAD_RESPONSE,e,c);r.destroy(t),n(t)}),r.on("error",function(t){f.destroyed||n(_r.from(t,null,e,c))}),r.on("end",function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==u&&(e=e.toString(d),d&&"utf8"!==d||(e=wr.stripBOM(e))),p.data=e}catch(t){return n(_r.from(t,null,e,p.request,p))}ul(t,n,p)})}y.once("abort",e=>{r.destroyed||(r.emit("error",e),r.destroy())})}),y.once("abort",e=>{n(e),f.destroy(e)}),f.on("error",function(t){n(_r.from(t,null,e,f))}),f.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new _r("error trying to parse `config.timeout` to int",_r.ERR_BAD_OPTION_VALUE,e,f));f.setTimeout(t,function(){if(h)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Nu;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new _r(t,a.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),k()})}if(wr.isStream(o)){let t=!1,n=!1;o.on("end",()=>{t=!0}),o.once("error",e=>{n=!0,f.destroy(e)}),o.on("close",()=>{t||n||k(new cl("Request stream has been aborted",e,f))}),o.pipe(f)}else f.end(o)},new Promise((e,n)=>{let a,o;const i=(e,t)=>{o||(o=!0,a&&a(e,t))},r=e=>{i(e,!0),n(e)};t(t=>{i(t),e(t)},r,e=>a=e).catch(r)});var t},Kp=Qu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qu.origin),Qu.navigator&&/(msie|trident)/i.test(Qu.navigator.userAgent)):()=>!0,Qp=Qu.hasStandardBrowserEnv?{write(e,t,n,a,o,i){const r=[e+"="+encodeURIComponent(t)];wr.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),wr.isString(a)&&r.push("path="+a),wr.isString(o)&&r.push("domain="+o),!0===i&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Jp=e=>e instanceof il?{...e}:e;function Xp(e,t){t=t||{};const n={};function a(e,t,n,a){return wr.isPlainObject(e)&&wr.isPlainObject(t)?wr.merge.call({caseless:a},e,t):wr.isPlainObject(t)?wr.merge({},t):wr.isArray(t)?t.slice():t}function o(e,t,n,o){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e,0,o):a(e,t,0,o)}function i(e,t){if(!wr.isUndefined(t))return a(void 0,t)}function r(e,t){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,o,i){return i in t?a(n,o):i in e?a(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t,n)=>o(Jp(e),Jp(t),0,!0)};return wr.forEach(Object.keys({...e,...t}),function(a){const i=c[a]||o,r=i(e[a],t[a],a);wr.isUndefined(r)&&i!==s||(n[a]=r)}),n}var Yp=e=>{const t=Xp({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=il.from(r),t.url=Du(ll(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),wr.isFormData(n))if(Qu.hasStandardBrowserEnv||Qu.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(wr.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&r.set(e,n)})}if(Qu.hasStandardBrowserEnv&&(a&&wr.isFunction(a)&&(a=a(t)),a||!1!==a&&Kp(t.url))){const e=o&&i&&Qp.read(i);e&&r.set(o,e)}return t};var Zp="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=Yp(e);let o=a.data;const i=il.from(a.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=a;function h(){u&&u(),l&&l(),a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const a=il.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ul(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new _r("Request aborted",_r.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const a=new _r(t&&t.message?t.message:"Network Error",_r.ERR_NETWORK,e,f);a.event=t||null,n(a),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const o=a.transitional||Nu;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new _r(t,o.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),f=null},void 0===o&&i.setContentType(null),"setRequestHeader"in f&&wr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),wr.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),p&&"json"!==p&&(f.responseType=a.responseType),m&&([c,l]=Op(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=Op(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(r=t=>{f&&(n(!t||t.type?new cl(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const y=gp(a.url);y&&-1===Qu.protocols.indexOf(y)?n(new _r("Unsupported protocol "+y+":",_r.ERR_BAD_REQUEST,e)):f.send(o||null)})};var ed=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,a=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;a.abort(t instanceof _r?t:new cl(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new _r(`timeout ${t} of ms exceeded`,_r.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=a;return s.unsubscribe=()=>wr.asap(r),s}};const td=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,o=0;for(;o<n;)a=o+t,yield e.slice(o,a),o=a},nd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ad=(e,t,n,a)=>{const o=async function*(e,t){for await(const n of nd(e))yield*td(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await o.next();if(t)return s(),void e.close();let i=a.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(a))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:od}=wr,id=(({Request:e,Response:t})=>({Request:e,Response:t}))(wr.global),{ReadableStream:rd,TextEncoder:sd}=wr.global,cd=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ud=e=>{e=wr.merge.call({skipUndefined:!0},id,e);const{fetch:t,Request:n,Response:a}=e,o=t?od(t):"function"==typeof fetch,i=od(n),r=od(a);if(!o)return!1;const s=o&&od(rd),c=o&&("function"==typeof sd?(e=>t=>e.encode(t))(new sd):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&cd(()=>{let e=!1;const t=new n(Qu.origin,{body:new rd,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=r&&s&&cd(()=>wr.isReadableStream(new a("").body)),p={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let a=t&&t[e];if(a)return a.call(t);throw new _r(`Response type '${e}' is not supported`,_r.ERR_NOT_SUPPORT,n)})});const d=async(e,t)=>{const a=wr.toFiniteNumber(e.getContentLength());return null==a?(async e=>{if(null==e)return 0;if(wr.isBlob(e))return e.size;if(wr.isSpecCompliantForm(e)){const t=new n(Qu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return wr.isArrayBufferView(e)||wr.isArrayBuffer(e)?e.byteLength:(wr.isURLSearchParams(e)&&(e+=""),wr.isString(e)?(await c(e)).byteLength:void 0)})(t):a};return async e=>{let{url:o,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:x}=Yp(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let w=ed([c,m&&m.toAbortSignal()],h),_=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(g&&u&&"get"!==r&&"head"!==r&&0!==(C=await d(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(wr.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Pp(C,Op(Lp(g)));s=ad(t.body,65536,e,n)}}wr.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,c={...x,signal:w,method:r.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};_=i&&new n(o,c);let m=await(i?k(_,x):k(o,c));const h=l&&("stream"===y||"response"===y);if(l&&(f||h&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=wr.toFiniteNumber(m.headers.get("content-length")),[n,o]=f&&Pp(t,Op(Lp(f),!0))||[];m=new a(ad(m.body,65536,n,()=>{o&&o(),E&&E()}),e)}y=y||"text";let S=await p[wr.findKey(p,y)||"text"](m,e);return!h&&E&&E(),await new Promise((t,n)=>{ul(t,n,{data:S,headers:il.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:_})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new _r("Network Error",_r.ERR_NETWORK,e,_),{cause:t.cause||t});throw _r.from(t,t&&t.code,e,_)}}},ld=new Map,pd=e=>{let t=e?e.env:{};const{fetch:n,Request:a,Response:o}=t,i=[a,o,n];let r,s,c=i.length,u=ld;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:ud(t)),u=s;return s};pd();const dd={http:$p,xhr:Zp,fetch:{get:pd}};wr.forEach(dd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const md=e=>`- ${e}`,hd=e=>wr.isFunction(e)||null===e||!1===e;var fd=(e,t)=>{e=wr.isArray(e)?e:[e];const{length:n}=e;let a,o;const i={};for(let r=0;r<n;r++){let n;if(a=e[r],o=a,!hd(a)&&(o=dd[(n=String(a)).toLowerCase()],void 0===o))throw new _r(`Unknown adapter '${n}'`);if(o&&(wr.isFunction(o)||(o=o.get(t))))break;i[n||"#"+r]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new _r("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(md).join("\n"):" "+md(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function gd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function yd(e){gd(e),e.headers=il.from(e.headers),e.data=rl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fd(e.adapter||Yu.adapter,e)(e).then(function(t){return gd(e),t.data=rl.call(e,e.transformResponse,t),t.headers=il.from(t.headers),t},function(t){return sl(t)||(gd(e),t&&t.response&&(t.response.data=rl.call(e,e.transformResponse,t.response),t.response.headers=il.from(t.response.headers))),Promise.reject(t)})}const vd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const bd={};vd.transitional=function(e,t,n){function a(e,t){return"[Axios v"+fp+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _r(a(o," has been removed"+(t?" in "+t:"")),_r.ERR_DEPRECATED);return t&&!bd[o]&&(bd[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},vd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var xd={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const i=a[o],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new _r("option "+i+" must be "+n,_r.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new _r("Unknown option "+i,_r.ERR_BAD_OPTION)}},validators:vd};const kd=xd.validators;let wd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new qu,response:new qu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xp(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:o}=t;void 0!==n&&xd.assertOptions(n,{silentJSONParsing:kd.transitional(kd.boolean),forcedJSONParsing:kd.transitional(kd.boolean),clarifyTimeoutError:kd.transitional(kd.boolean)},!1),null!=a&&(wr.isFunction(a)?t.paramsSerializer={serialize:a}:xd.assertOptions(a,{encode:kd.function,serialize:kd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xd.assertOptions(t,{baseUrl:kd.spelling("baseURL"),withXsrfToken:kd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&wr.merge(o.common,o[t.method]);o&&wr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=il.concat(i,o);const r=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,p=0;if(!s){const e=[yd.bind(this),void 0];for(e.unshift(...r),e.push(...c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=r.length;let d=t;for(;p<l;){const e=r[p++],t=r[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=yd.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return Du(ll((e=Xp(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};wr.forEach(["delete","get","head","options"],function(e){wd.prototype[e]=function(t,n){return this.request(Xp(n||{},{method:e,url:t,data:(n||{}).data}))}}),wr.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,o){return this.request(Xp(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}wd.prototype[e]=t(),wd.prototype[e+"Form"]=t(!0)});var _d=wd;class Ed{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,o){n.reason||(n.reason=new cl(e,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ed(function(t){e=t}),cancel:e}}}var Cd=Ed;const Sd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sd).forEach(([e,t])=>{Sd[t]=e});var Rd=Sd;const Td=function e(t){const n=new _d(t),a=Pi(_d.prototype.request,n);return wr.extend(a,_d.prototype,n,{allOwnKeys:!0}),wr.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(Xp(t,n))},a}(Yu);Td.Axios=_d,Td.CanceledError=cl,Td.CancelToken=Cd,Td.isCancel=sl,Td.VERSION=fp,Td.toFormData=Au,Td.AxiosError=_r,Td.Cancel=Td.CanceledError,Td.all=function(e){return Promise.all(e)},Td.spread=function(e){return function(t){return e.apply(null,t)}},Td.isAxiosError=function(e){return wr.isObject(e)&&!0===e.isAxiosError},Td.mergeConfig=Xp,Td.AxiosHeaders=il,Td.formToJSON=e=>Ju(wr.isHTMLForm(e)?new FormData(e):e),Td.getAdapter=fd,Td.HttpStatusCode=Rd,Td.default=Td;var Id=Td,jd=function(e){function t(t){var n,a,i,r,s=this;return(s=e.call(this,t)||this).token="",null===(a=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===a||a.request.use(function(e){return o(o({},e),{defaults:{headers:o(o({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(r=null===(i=s.instance)||void 0===i?void 0:i.interceptors)||void 0===r||r.response.use(function(e){return o({},e)},function(e){return Promise.reject(e)}),s}return a(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Id.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}(function(e){this.instance=Id.create(e)}),Ad=r.inspect,Od="function"==typeof Map&&Map.prototype,Pd=Object.getOwnPropertyDescriptor&&Od?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ld=Od&&Pd&&"function"==typeof Pd.get?Pd.get:null,zd=Od&&Map.prototype.forEach,Dd="function"==typeof Set&&Set.prototype,qd=Object.getOwnPropertyDescriptor&&Dd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Nd=Dd&&qd&&"function"==typeof qd.get?qd.get:null,Md=Dd&&Set.prototype.forEach,Bd="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ud="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Fd="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Wd=Boolean.prototype.valueOf,Hd=Object.prototype.toString,Gd=Function.prototype.toString,Vd=String.prototype.match,$d=String.prototype.slice,Kd=String.prototype.replace,Qd=String.prototype.toUpperCase,Jd=String.prototype.toLowerCase,Xd=RegExp.prototype.test,Yd=Array.prototype.concat,Zd=Array.prototype.join,em=Array.prototype.slice,tm=Math.floor,nm="function"==typeof BigInt?BigInt.prototype.valueOf:null,am=Object.getOwnPropertySymbols,om="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,im="function"==typeof Symbol&&"object"==typeof Symbol.iterator,rm="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===im||"symbol")?Symbol.toStringTag:null,sm=Object.prototype.propertyIsEnumerable,cm=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function um(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Xd.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var a=e<0?-tm(-e):tm(e);if(a!==e){var o=String(a),i=$d.call(t,o.length+1);return Kd.call(o,n,"$&_")+"."+Kd.call(Kd.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Kd.call(t,n,"$&_")}var lm=Ad,pm=lm.custom,dm=km(pm)?pm:null,mm={__proto__:null,double:'"',single:"'"},hm={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},fm=function e(t,n,a,o){var i=n||{};if(_m(i,"quoteStyle")&&!_m(mm,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_m(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 r=!_m(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_m(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(_m(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.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 Sm(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?um(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?um(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===a&&(a=0),a>=l&&l>0&&"object"==typeof t)return bm(t)?"[Array]":"[Object]";var p=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Zd.call(Array(e.indent+1)," ")}return{base:n,prev:Zd.call(Array(t+1),n)}}(i,a);if(void 0===o)o=[];else if(Cm(o,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(o=em.call(o)).push(n),r){var s={depth:i.depth};return _m(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,a+1,o)}return e(t,i,a+1,o)}if("function"==typeof t&&!xm(t)){var m=function(e){if(e.name)return e.name;var t=Vd.call(Gd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=Om(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Zd.call(h,", ")+" }":"")}if(km(t)){var f=im?Kd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):om.call(t);return"object"!=typeof t||im?f:Tm(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+Jd.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+gm(ym(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Jd.call(String(t.nodeName))+">"}if(bm(t)){if(0===t.length)return"[]";var b=Om(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Cm(e[t],"\n")>=0)return!1;return!0}(b)?"["+Am(b,p)+"]":"[ "+Zd.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Em(e)&&vm(e)}(t)){var x=Om(t,d);return"cause"in Error.prototype||!("cause"in t)||sm.call(t,"cause")?0===x.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Zd.call(x,", ")+" }":"{ ["+String(t)+"] "+Zd.call(Yd.call("[cause]: "+d(t.cause),x),", ")+" }"}if("object"==typeof t&&r){if(dm&&"function"==typeof t[dm]&&lm)return lm(t,{depth:l-a});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ld||!e||"object"!=typeof e)return!1;try{Ld.call(e);try{Nd.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return zd&&zd.call(t,function(e,n){k.push(d(n,t,!0)+" => "+d(e,t))}),jm("Map",Ld.call(t),k,p)}if(function(e){if(!Nd||!e||"object"!=typeof e)return!1;try{Nd.call(e);try{Ld.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Md&&Md.call(t,function(e){w.push(d(e,t))}),jm("Set",Nd.call(t),w,p)}if(function(e){if(!Bd||!e||"object"!=typeof e)return!1;try{Bd.call(e,Bd);try{Ud.call(e,Ud)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Im("WeakMap");if(function(e){if(!Ud||!e||"object"!=typeof e)return!1;try{Ud.call(e,Ud);try{Bd.call(e,Bd)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Im("WeakSet");if(function(e){if(!Fd||!e||"object"!=typeof e)return!1;try{return Fd.call(e),!0}catch(e){}return!1}(t))return Im("WeakRef");if(function(e){return"[object Number]"===Em(e)&&vm(e)}(t))return Tm(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!nm)return!1;try{return nm.call(e),!0}catch(e){}return!1}(t))return Tm(d(nm.call(t)));if(function(e){return"[object Boolean]"===Em(e)&&vm(e)}(t))return Tm(Wd.call(t));if(function(e){return"[object String]"===Em(e)&&vm(e)}(t))return Tm(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Sr&&t===Sr)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Em(e)&&vm(e)}(t)&&!xm(t)){var _=Om(t,d),E=cm?cm(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&rm&&Object(t)===t&&rm in t?$d.call(Em(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Zd.call(Yd.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":p?R+"{"+Am(_,p)+"}":R+"{ "+Zd.call(_,", ")+" }"}return String(t)};function gm(e,t,n){var a=n.quoteStyle||t,o=mm[a];return o+e+o}function ym(e){return Kd.call(String(e),/"/g,""")}function vm(e){return!rm||!("object"==typeof e&&(rm in e||void 0!==e[rm]))}function bm(e){return"[object Array]"===Em(e)&&vm(e)}function xm(e){return"[object RegExp]"===Em(e)&&vm(e)}function km(e){if(im)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!om)return!1;try{return om.call(e),!0}catch(e){}return!1}var wm=Object.prototype.hasOwnProperty||function(e){return e in this};function _m(e,t){return wm.call(e,t)}function Em(e){return Hd.call(e)}function Cm(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1}function Sm(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return Sm($d.call(e,0,t.maxStringLength),t)+a}var o=hm[t.quoteStyle||"single"];return o.lastIndex=0,gm(Kd.call(Kd.call(e,o,"\\$1"),/[\x00-\x1f]/g,Rm),"single",t)}function Rm(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Qd.call(t.toString(16))}function Tm(e){return"Object("+e+")"}function Im(e){return e+" { ? }"}function jm(e,t,n,a){return e+" ("+t+") {"+(a?Am(n,a):Zd.call(n,", "))+"}"}function Am(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Zd.call(e,","+n)+"\n"+t.prev}function Om(e,t){var n=bm(e),a=[];if(n){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=_m(e,o)?t(e[o],e):""}var i,r="function"==typeof am?am(e):[];if(im){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)_m(e,c)&&(n&&String(Number(c))===c&&c<e.length||im&&i["$"+c]instanceof Symbol||(Xd.call(/[^\w$]/,c)?a.push(t(c,e)+": "+t(e[c],e)):a.push(c+": "+t(e[c],e))));if("function"==typeof am)for(var u=0;u<r.length;u++)sm.call(e,r[u])&&a.push("["+t(r[u])+"]: "+t(e[r[u]],e));return a}var Pm,Lm,zm,Dm,qm,Nm,Mm,Bm,Um,Fm,Wm,Hm,Gm=fm,Vm=hs,$m=function(e,t,n){for(var a,o=e;null!=(a=o.next);o=a)if(a.key===t)return o.next=a.next,n||(a.next=e.next,e.next=a),a},Km=iu,Qm=uc,Jm=Qm([Km("%String.prototype.indexOf%")]),Xm=function(e,t){var n=Km(e,!!t);return"function"==typeof n&&Jm(e,".prototype.")>-1?Qm([n]):n},Ym=Xm,Zm=fm,eh=hs,th=iu("%Map%",!0),nh=Ym("Map.prototype.get",!0),ah=Ym("Map.prototype.set",!0),oh=Ym("Map.prototype.has",!0),ih=Ym("Map.prototype.delete",!0),rh=Ym("Map.prototype.size",!0),sh=!!th&&function(){var e,t={assert:function(e){if(!t.has(e))throw new eh("Side channel does not contain "+Zm(e))},delete:function(t){if(e){var n=ih(e,t);return 0===rh(e)&&(e=void 0),n}return!1},get:function(t){if(e)return nh(e,t)},has:function(t){return!!e&&oh(e,t)},set:function(t,n){e||(e=new th),ah(e,t,n)}};return t},ch=Xm,uh=fm,lh=sh,ph=hs,dh=iu("%WeakMap%",!0),mh=ch("WeakMap.prototype.get",!0),hh=ch("WeakMap.prototype.set",!0),fh=ch("WeakMap.prototype.has",!0),gh=ch("WeakMap.prototype.delete",!0),yh=hs,vh=fm,bh=function(){var e,t={assert:function(e){if(!t.has(e))throw new Vm("Side channel does not contain "+Gm(e))},delete:function(t){var n=e&&e.next,a=function(e,t){if(e)return $m(e,t,!0)}(e,t);return a&&n&&n===a&&(e=void 0),!!a},get:function(t){return function(e,t){if(e){var n=$m(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!$m(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var a=$m(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},xh=(dh?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new ph("Side channel does not contain "+uh(e))},delete:function(n){if(dh&&n&&("object"==typeof n||"function"==typeof n)){if(e)return gh(e,n)}else if(lh&&t)return t.delete(n);return!1},get:function(n){return dh&&n&&("object"==typeof n||"function"==typeof n)&&e?mh(e,n):t&&t.get(n)},has:function(n){return dh&&n&&("object"==typeof n||"function"==typeof n)&&e?fh(e,n):!!t&&t.has(n)},set:function(n,a){dh&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new dh),hh(e,n,a)):lh&&(t||(t=lh()),t.set(n,a))}};return n}:lh)||sh||bh,kh=String.prototype.replace,wh=/%20/g,_h="RFC3986",Eh={default:_h,formatters:{RFC1738:function(e){return kh.call(e,wh,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:_h},Ch=Eh,Sh=Object.prototype.hasOwnProperty,Rh=Array.isArray,Th=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ih=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)void 0!==e[a]&&(n[a]=e[a]);return n},jh=1024,Ah={arrayToObject:Ih,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],i=o.obj[o.prop],r=Object.keys(i),s=0;s<r.length;++s){var c=r[s],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Rh(n)){for(var a=[],o=0;o<n.length;++o)void 0!==n[o]&&a.push(n[o]);t.obj[t.prop]=a}}}(t),e},decode:function(e,t,n){var a=e.replace(/\+/g," ");if("iso-8859-1"===n)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(e){return a}},encode:function(e,t,n,a,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var r="",s=0;s<i.length;s+=jh){for(var c=i.length>=jh?i.slice(s,s+jh):i,u=[],l=0;l<c.length;++l){var p=c.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===Ch.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=Th[p]:p<2048?u[u.length]=Th[192|p>>6]+Th[128|63&p]:p<55296||p>=57344?u[u.length]=Th[224|p>>12]+Th[128|p>>6&63]+Th[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=Th[240|p>>18]+Th[128|p>>12&63]+Th[128|p>>6&63]+Th[128|63&p])}r+=u.join("")}return r},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(Rh(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},merge:function e(t,n,a){if(!n)return t;if("object"!=typeof n){if(Rh(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(a&&(a.plainObjects||a.allowPrototypes)||!Sh.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return Rh(t)&&!Rh(n)&&(o=Ih(t,a)),Rh(t)&&Rh(n)?(n.forEach(function(n,o){if(Sh.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,a):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var i=n[o];return Sh.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t},o)}},Oh=function(){var e,t={assert:function(e){if(!t.has(e))throw new yh("Side channel does not contain "+vh(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=xh()),e.set(t,n)}};return t},Ph=Ah,Lh=Eh,zh=Object.prototype.hasOwnProperty,Dh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},qh=Array.isArray,Nh=Array.prototype.push,Mh=function(e,t){Nh.apply(e,qh(t)?t:[t])},Bh=Date.prototype.toISOString,Uh=Lh.default,Fh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ph.encode,encodeValuesOnly:!1,format:Uh,formatter:Lh.formatters[Uh],indices:!1,serializeDate:function(e){return Bh.call(e)},skipNulls:!1,strictNullHandling:!1},Wh={},Hh=function e(t,n,a,o,i,r,s,c,u,l,p,d,m,h,f,g,y,v){for(var b,x=t,k=v,w=0,_=!1;void 0!==(k=k.get(Wh))&&!_;){var E=k.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===k.get(Wh)&&(w=0)}if("function"==typeof l?x=l(n,x):x instanceof Date?x=m(x):"comma"===a&&qh(x)&&(x=Ph.maybeMap(x,function(e){return e instanceof Date?m(e):e})),null===x){if(r)return u&&!g?u(n,Fh.encoder,y,"key",h):n;x=""}if("string"==typeof(b=x)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Ph.isBuffer(x))return u?[f(g?n:u(n,Fh.encoder,y,"key",h))+"="+f(u(x,Fh.encoder,y,"value",h))]:[f(n)+"="+f(String(x))];var C,S=[];if(void 0===x)return S;if("comma"===a&&qh(x))g&&u&&(x=Ph.maybeMap(x,u)),C=[{value:x.length>0?x.join(",")||null:void 0}];else if(qh(l))C=l;else{var R=Object.keys(x);C=p?R.sort(p):R}var T=c?n.replace(/\./g,"%2E"):n,I=o&&qh(x)&&1===x.length?T+"[]":T;if(i&&qh(x)&&0===x.length)return I+"[]";for(var j=0;j<C.length;++j){var A=C[j],O="object"==typeof A&&void 0!==A.value?A.value:x[A];if(!s||null!==O){var P=d&&c?A.replace(/\./g,"%2E"):A,L=qh(x)?"function"==typeof a?a(I,P):I:I+(d?"."+P:"["+P+"]");v.set(t,w);var z=Oh();z.set(Wh,v),Mh(S,e(O,L,a,o,i,r,s,c,"comma"===a&&g&&qh(x)?null:u,l,p,d,m,h,f,g,y,z))}}return S},Gh=Ah,Vh=Object.prototype.hasOwnProperty,$h=Array.isArray,Kh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Gh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Qh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Jh=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Xh=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=r?o.slice(0,r.index):o,c=[];if(s){if(!n.plainObjects&&Vh.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(o))&&u<n.depth;){if(u+=1,!n.plainObjects&&Vh.call(Object.prototype,r[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(r[1])}if(r){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+o.slice(r.index)+"]")}return function(e,t,n,a){for(var o=a?t:Jh(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{r=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(r=[])[l]=o:"__proto__"!==u&&(r[u]=o):r={0:o}}o=r}return o}(c,t,n,a)}},Yh=function(e,t){var n,a=e,o=function(e){if(!e)return Fh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");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||Fh.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 n=Lh.default;if(void 0!==e.format){if(!zh.call(Lh.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a,o=Lh.formatters[n],i=Fh.filter;if(("function"==typeof e.filter||qh(e.filter))&&(i=e.filter),a=e.arrayFormat in Dh?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Fh.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var r=void 0===e.allowDots?!0===e.encodeDotInKeys||Fh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Fh.addQueryPrefix,allowDots:r,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Fh.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Fh.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Fh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Fh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Fh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Fh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Fh.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Fh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Fh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Fh.strictNullHandling}}(t);"function"==typeof o.filter?a=(0,o.filter)("",a):qh(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof a||null===a)return"";var r=Dh[o.arrayFormat],s="comma"===r&&o.commaRoundTrip;n||(n=Object.keys(a)),o.sort&&n.sort(o.sort);for(var c=Oh(),u=0;u<n.length;++u){var l=n[u];o.skipNulls&&null===a[l]||Mh(i,Hh(a[l],l,r,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},Zh=function(e,t){var n=function(e){if(!e)return Kh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");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?Kh.charset:e.charset,n=void 0===e.duplicates?Kh.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Kh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Kh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Kh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Kh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Kh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Kh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Kh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Kh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Kh.decoder,delimiter:"string"==typeof e.delimiter||Gh.isRegExp(e.delimiter)?e.delimiter:Kh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Kh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Kh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Kh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Kh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Kh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Kh.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var a="string"==typeof e?function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=a.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(o=0;o<r.length;++o)0===r[o].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[o]?c="utf-8":"utf8=%26%2310003%3B"===r[o]&&(c="iso-8859-1"),s=o,o=r.length);for(o=0;o<r.length;++o)if(o!==s){var u,l,p=r[o],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,Kh.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),Kh.decoder,c,"key"),l=Gh.maybeMap(Jh(p.slice(m+1),t),function(e){return t.decoder(e,Kh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Qh(l)),p.indexOf("[]=")>-1&&(l=$h(l)?[l]:l);var h=Vh.call(n,u);h&&"combine"===t.duplicates?n[u]=Gh.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(a),r=0;r<i.length;++r){var s=i[r],c=Xh(s,a[s],n,"string"==typeof e);o=Gh.merge(o,c,n)}return!0===n.allowSparse?o:Gh.compact(o)},ef={formats:Eh,parse:Zh,stringify:Yh},tf={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return ef.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Pm||(Pm={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(Lm||(Lm={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(zm||(zm={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(Dm||(Dm={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(qm||(qm={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Nm||(Nm={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Mm||(Mm={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Bm||(Bm={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Um||(Um={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.ADVANCEMENTS="ADVANCEMENTS",e.FEES="FEES"}(Fm||(Fm={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Wm||(Wm={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Hm||(Hm={}));var nf=["PAUSED","ACTIVE"],af={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},of="DELETED",rf={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},sf=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},cf=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],uf=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],lf=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],pf=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],df=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],mf={docs_url:"https://docs.y.uno/reference/api-reference-overview"},hf={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},ff=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const gf=[];for(let e=0;e<256;++e)gf.push((e+256).toString(16).slice(1));let yf;const vf=new Uint8Array(16);var bf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xf(e,t,n){if(bf.randomUUID&&!t&&!e)return bf.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!yf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yf=crypto.getRandomValues.bind(crypto)}return yf(vf)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return function(e,t=0){return(gf[e[t+0]]+gf[e[t+1]]+gf[e[t+2]]+gf[e[t+3]]+"-"+gf[e[t+4]]+gf[e[t+5]]+"-"+gf[e[t+6]]+gf[e[t+7]]+"-"+gf[e[t+8]]+gf[e[t+9]]+"-"+gf[e[t+10]]+gf[e[t+11]]+gf[e[t+12]]+gf[e[t+13]]+gf[e[t+14]]+gf[e[t+15]]).toLowerCase()}(a)}var kf=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},wf=function(e){function r(t){var n=t?o(o({},tf),t):tf;return e.call(this,n)||this}return a(r,e),r.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},r.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Fm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},r.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Fm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},r.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},r.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},r.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},r.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},r.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},r.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},r.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},r.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},r.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},r.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},r.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},r.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},r.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},r.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=i(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/lazy",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.postPayouts=function(e){var t=e.account_code,n=i(e,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payouts",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},r.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=i(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},r.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},r.prototype.postTransactions=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/v2/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.postFraudTransactions=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/fraud-transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:n})},r.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},r.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},r.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},r.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,a=e.country,o=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(a),o?{}:{headers:i})},r.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},r.prototype.createOperationTransaction=function(e,t,n,a){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(a),e)},r.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},r.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},r.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},r.prototype.uploadChargebacks=function(e,t,n,a){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":xf()}})},r.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},r.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},r.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},r.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},r.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},r.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},r.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},r.prototype.getAllOrganization=function(){return this.get("/organizations/all")},r.prototype.getProviderParams=function(e,t){var n,a=localStorage.getItem("x-organization-code"),o={"x-organization-code":a?null===(n=JSON.parse(a))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:o})},r.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},r.prototype.putCosts=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},r.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,function(){return n(this,function(e){return[2,this.patch("/organizations/status")]})})},r.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},r.prototype.getConnectionsByPaymentMethod=function(e,a){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(a))]})})},r.prototype.getHashPylon=function(){return this.get("/pylon-hash")},r.prototype.getConnections=function(){return this.get("/connections")},r.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},r.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,a="/connections/change-status";if(t.status==of)return delete t.status,this.delete(a,{data:t});Object.values(nf).includes(null==t?void 0:t.status)&&(a="".concat(a,"/").concat(af[t.status]),delete t.status);var o={"x-account-code":n};return this.post(a,t,{headers:o})},r.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},r.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},r.prototype.patchConnection=function(e){var t,n=e.payload,a=e.connectionCode,i=localStorage.getItem("account"),r=i?null===(t=JSON.parse(i).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(a),o({account_code:r},n))},r.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},r.prototype.getDialogs=function(){return this.get("/dialogs")},r.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},r.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},r.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},r.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},r.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},r.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},r.prototype.getMenu=function(){return this.get("/cms/menu")},r.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/webhooks/organization",o,{params:a})},r.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},r.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},r.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/api-logs/organization",o,{params:a})},r.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},r.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},r.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},r.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},r.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},r.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},r.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},r.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},r.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},r.prototype.getLocales=function(){return this.get("/cms/locales")},r.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},r.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},r.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},r.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},r.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},r.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},r.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},r.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},r.prototype.postSmartRoutingPublishVersion=function(e,t,n){var a={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:a})},r.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},r.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},r.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},r.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},r.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},r.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},r.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},r.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},r.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},r.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},r.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},r.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},r.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},r.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},r.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},r.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},r.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},r.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},r.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},r.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},r.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,a=e.connection_name,o=i(e,["account_code","connection_name"]),r=kf(n);return a&&(r.connection_name=a.split(",")),this.post("/insights/conversion-rate/".concat(t),r,{params:o})},r.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,a=i(e,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(t),kf(n),{params:a})},r.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=i(e,["account_code"]);return this.post("/insights/conversion-rate/fallback",kf(t),{params:n})},r.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,a=i(t,["connection_name"]),r={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(r=o(o({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/volume/metrics",r,{params:a})},r.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var a=n.connection_name,r=i(n,["connection_name"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return a&&(s=o(o({},s),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/volume/".concat(t),s,{params:r})},r.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},r.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},r.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},r.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},r.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},r.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},r.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},r.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},r.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},r.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},r.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},r.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,a=i(e,["account_code","connection_name"]),r=kf(t);return n&&(r=o(o({},r),{connection_name:null==n?void 0:n.split(",")})),this.post("/insights/overview",r,{params:a})},r.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,a=e.connection_name,r=i(e,["account_code","connection_name"]),s=kf(n);return a&&(s=o(o({},s),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/overview/".concat(t),s,{params:r})},r.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},r.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},r.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},r.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},r.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},r.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},r.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),a=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":a}})},r.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},r.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,a={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:a})},r.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,a={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:a})},r.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload,i={"x-account-code":t,"x-environment":a,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",o,{headers:i})},r.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},r.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},r.prototype.createReportV2=function(e){return this.post("/reports",e)},r.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},r.prototype.reportsList=function(){return this.get("/reports")},r.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},r.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},r.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},r.prototype.getReportTemplates=function(){return this.get("/reports/templates")},r.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},r.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},r.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},r.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},r.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},r.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},r.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},r.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},r.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},r.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},r.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},r.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},r.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},r.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},r.prototype.getRefundPdf=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:a})},r.prototype.getProofOfCancel=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:a})},r.prototype.getProofOfPayment=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:a})},r.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},r.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},r.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},r.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},r.prototype.getProfile=function(){return this.get("/user")},r.prototype.getUserFull=function(){return this.get("/user-full")},r.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},r.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},r.prototype.getUsersToImpersonate=function(e,t,n,a,i){void 0===n&&(n=1),void 0===a&&(a=10);var r=o({account_codes:t||[],page:n,page_size:a},i&&{search_value:i});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),r)},r.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},r.prototype.updateProfile=function(e){return this.patch("/user",e)},r.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},r.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},r.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},r.prototype.getAccountsV2=function(){return this.get("/accounts-user")},r.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},r.prototype.putAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:a})},r.prototype.deleteAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:a})},r.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},r.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,a=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:a},{headers:{"x-account-code":n}})},r.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},r.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},r.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},r.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},r.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},r.prototype.pathNotification=function(e){return this.patch("/notifications",e)},r.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},r.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},r.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:a,page:o,page_size:i},{headers:r})},r.prototype.getRoles=function(){return this.get("/teams/roles")},r.prototype.setCustodian=function(){return this.post("/teams/custodian")},r.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},r.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},r.prototype.editRoles=function(e,t){var n=e.payload,a=e.id;return this.patch("/teams/roles/".concat(a),n,{headers:{"x-account-code":t}})},r.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},r.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},r.prototype.getFeatureFlagId=function(e){var t=e.name,n=i(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},r.prototype.getFeatureFlagIdAll=function(e){var a=e.accountCode;return t(this,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",a?{headers:{"x-account-code":a}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach(function(e){t[e]=!0}),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}})})},r.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},r.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},r.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},r.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},r.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},r.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},r.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},r.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},r.prototype.getAuditEvents=function(e){return this.post("v2/events/organization?time_zone=".concat(null==e?void 0:e.time_zone,"&now=").concat(null==e?void 0:e.now,"&page=").concat(null==e?void 0:e.page,"&size=").concat(null==e?void 0:e.size,"&periodicity=").concat(e.periodicity,"&event=").concat(e.event,"&source=").concat(e.source,"&search=").concat(e.search,"&start_date=").concat(e.start_date,"&end_date=").concat(e.end_date),{account_codes:null==e?void 0:e.account_code})},r.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},r.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},r.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},r.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(a),t)},r.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},r.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},r.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},r.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},r.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},r.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},r.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},r.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},r.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},r.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},r.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},r.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},r.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},r.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},r.prototype.postBlockList=function(e,t,n,a){var o={name:t,account_codes:e,page:n,size:a};return this.post("/blacklist",o)},r.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},r.prototype.getBlacklistDetail=function(e,t,n,a,o){void 0===n&&(n=26),void 0===a&&(a=null),void 0===o&&(o=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(i+="&search=".concat(o)),this.get(i,a?{headers:{"x-account-code":a}}:{})},r.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},r.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},r.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},r.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},r.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},r.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},r.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},r.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},r.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},r.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},r.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,a=e.file,o=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:a},{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},r.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},r.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":a}})},r.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",o({},e))},r.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},r.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:a.token}),cancel:function(){return a.cancel()}}},r.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:a.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return a.cancel()}}},r.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",o({},t))},r.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",o({},t))},r.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},r.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:a})},r.prototype.getBatchRefundUserFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:a})},r.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},r.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},r.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},r.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},r.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},r.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},r.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},r.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},r.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},r.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},r.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},r.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},r.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},r.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},r.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},r.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},r.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},r.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},r.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},r.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},r.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},r.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(rf[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(rf[null==e?void 0:e.type],"/export");return this.post(t,e)},r.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},r.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},r.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},r.prototype.getSamlConfig=function(){return this.get("/saml-config")},r.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},r.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},r.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},r.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},r.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},r.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},r.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},r.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},r.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},r.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},r.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},r.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},r.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},r.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},r.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},r.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},r.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},r.prototype.getLanguages=function(){return this.get("/languages")},r.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},r.prototype.getCommunications=function(e){return this.post("/communications",e)},r.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},r.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},r}(jd),_f={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},Ef=function(e){function i(t){return e.call(this,t)||this}return a(i,e),i.refreshInstance=function(e){var t;return this.classInstance=new i(o(o({},e),{baseURL:_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},i.getInstance=function(e){var t,n;if(this.classInstance){var a=localStorage.getItem("account");if(a){var r=null===(n=null===(t=JSON.parse(a))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!r&&""!==r&&r!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=r)}return this.classInstance}return this.classInstance=new i(o(o({},e),{baseURL:(null==e?void 0:e.baseURL)||_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),this.classInstance},i.setMode=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},i}(wf);class Cf{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Sf="undefined"==typeof window||"Deno"in window;function Rf(){}function Tf(e){return"number"==typeof e&&e>=0&&e!==1/0}function If(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jf(e,t,n){return Wf(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Af(e,t,n){return Wf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Of(e,t){const{type:n="all",exact:a,fetchStatus:o,predicate:i,queryKey:r,stale:s}=e;if(Wf(r))if(a){if(t.queryHash!==Lf(r,t.options))return!1}else if(!Df(t.queryKey,r))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Pf(e,t){const{exact:n,fetching:a,predicate:o,mutationKey:i}=e;if(Wf(i)){if(!t.options.mutationKey)return!1;if(n){if(zf(t.options.mutationKey)!==zf(i))return!1}else if(!Df(t.options.mutationKey,i))return!1}return("boolean"!=typeof a||"loading"===t.state.status===a)&&!(o&&!o(t))}function Lf(e,t){return((null==t?void 0:t.queryKeyHashFn)||zf)(e)}function zf(e){return JSON.stringify(e,(e,t)=>Uf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Df(e,t){return qf(e,t)}function qf(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!qf(e[n],t[n])))}function Nf(e,t){if(e===t)return e;const n=Bf(e)&&Bf(t);if(n||Uf(e)&&Uf(t)){const a=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,r=n?[]:{};let s=0;for(let a=0;a<i;a++){const i=n?a:o[a];r[i]=Nf(e[i],t[i]),r[i]===e[i]&&s++}return a===i&&s===a?e:r}return t}function Mf(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Bf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uf(e){if(!Ff(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ff(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ff(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wf(e){return Array.isArray(e)}function Hf(e){return new Promise(t=>{setTimeout(t,e)})}function Gf(e){Hf(0).then(e)}function Vf(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Nf(e,t):t}const $f=new class extends Cf{constructor(){super(),this.setup=e=>{if(!Sf&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Kf=["online","offline"];const Qf=new class extends Cf{constructor(){super(),this.setup=e=>{if(!Sf&&window.addEventListener){const t=()=>e();return Kf.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Kf.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Jf(e){return Math.min(1e3*2**e,3e4)}function Xf(e){return"online"!==(null!=e?e:"online")||Qf.isOnline()}class Yf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Zf(e){return e instanceof Yf}function eg(e){let t,n,a,o=!1,i=0,r=!1;const s=new Promise((e,t)=>{n=e,a=t}),c=()=>!$f.isFocused()||"always"!==e.networkMode&&!Qf.isOnline(),u=a=>{r||(r=!0,null==e.onSuccess||e.onSuccess(a),null==t||t(),n(a))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),a(n))},p=()=>new Promise(n=>{t=e=>{const t=r||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,r||null==e.onContinue||e.onContinue()}),d=()=>{if(r)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,a;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(a=e.retryDelay)?a:Jf,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!o&&h?(i++,null==e.onFail||e.onFail(i,t),Hf(m).then(()=>{if(c())return p()}).then(()=>{o?l(t):d()})):l(t)})};return Xf(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{r||(l(new Yf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const tg=console;const ng=function(){let e=[],t=0,n=e=>{e()},a=e=>{e()};const o=a=>{t?e.push(a):Gf(()=>{n(a)})},i=()=>{const t=e;e=[],t.length&&Gf(()=>{a(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e}}}();class ag{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tf(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Sf?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class og extends ag{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||tg,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,a=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=a?a:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Vf(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Rf).catch(Rf):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!If(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,a;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=function(){if("function"==typeof AbortController)return new AbortController}(),r={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(r);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(r)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(a=c.fetchOptions)?void 0:a.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,a,o;(Zf(e)&&e.silent||this.dispatch({type:"error",error:e}),Zf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=eg({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,a,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,a;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Xf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(a=e.dataUpdatedAt)?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Zf(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ng.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class ig extends Cf{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var a;const o=t.queryKey,i=null!=(a=t.queryHash)?a:Lf(o,t);let r=this.get(i);return r||(r=new og({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(r)),r}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ng.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Af(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Of(n,e))}findAll(e,t){const[n]=Af(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Of(n,e)):this.queries}notify(e){ng.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ng.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ng.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class rg extends ag{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||tg,this.observers=[],this.state=e.state||sg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=eg({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,a,o,i,r,s,c,u;if(!t){var l,p,d,m;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(p=this.mutationCache.config).onMutate)?void 0:l.call(p,this.state.variables,this));const e=await(null==(d=(m=this.options).onMutate)?void 0:d.call(m,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(a=this.mutationCache.config).onSuccess)?void 0:n.call(a,h,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,h,this.state.variables,this.state.context)),await(null==(r=(s=this.mutationCache.config).onSettled)?void 0:r.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,f,g,y,v,b,x,k;throw await(null==(h=(f=this.mutationCache.config).onError)?void 0:h.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(k=this.options).onSettled)?void 0:x.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Xf(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),ng.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function sg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class cg extends Cf{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const a=new rg({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(a),a}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ng.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Pf(e,t))}findAll(e){return this.mutations.filter(t=>Pf(e,t))}notify(e){ng.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return ng.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Rf)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function ug(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,a,o,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(a=e.fetchOptions)||null==(o=a.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),d=(null==(i=e.state.data)?void 0:i.pages)||[],m=(null==(r=e.state.data)?void 0:r.pageParams)||[];let h=m,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,a)=>(h=a?[t,...h]:[...h,t],a?[n,...e]:[...e,n]),v=(t,n,a,o)=>{if(f)return Promise.reject("Cancelled");if(void 0===a&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:a,meta:e.options.meta};var r;r=i,Object.defineProperty(r,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{f=!0}),e.signal}});const s=g(i);return Promise.resolve(s).then(e=>y(t,a,e,o))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:lg(e.options,d);b=v(d,t,n)}else if(p){const t=void 0!==u,n=t?u:(x=e.options,k=d,null==x.getPreviousPageParam?void 0:x.getPreviousPageParam(k[0],k));b=v(d,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=!s||!d[0]||s(d[0],0,d)?v([],t,m[0]):Promise.resolve(y([],m[0],d[0]));for(let n=1;n<d.length;n++)b=b.then(a=>{if(!s||!d[n]||s(d[n],n,d)){const o=t?m[n]:lg(e.options,a);return v(a,t,o)}return Promise.resolve(y(a,m[n],d[n]))})}else b=v([]);var x,k;const w=b.then(e=>({pages:e,pageParams:h}));return w}}}}function lg(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class pg extends Cf{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),dg(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mg(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mg(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Mf(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&hg(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===a&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===a&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Mf(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Rf)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Sf||this.currentResult.isStale||!Tf(this.options.staleTime))return;const e=If(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Sf&&!1!==this.options.enabled&&Tf(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||$f.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,a=this.options,o=this.currentResult,i=this.currentResultState,r=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let p,{dataUpdatedAt:d,error:m,errorUpdatedAt:h,fetchStatus:f,status:g}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&dg(e,t),r=o&&hg(e,n,t,a);(i||r)&&(f=Xf(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)p=u.data,d=u.dataUpdatedAt,g=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==i?void 0:i.data)&&t.select===this.selectFn)p=this.selectResult;else try{this.selectFn=t.select,p=t.select(l.data),p=Vf(null==o?void 0:o.data,p,t),this.selectResult=p,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else p=l.data;if(void 0!==t.placeholderData&&void 0===p&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",p=Vf(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(m=this.selectError,p=this.selectResult,h=Date.now(),g="error");const b="fetching"===f,x="loading"===g,k="error"===g;return{status:g,fetchStatus:f,isLoading:x,isSuccess:"success"===g,isError:k,isInitialLoading:x&&b,data:p,dataUpdatedAt:d,error:m,errorUpdatedAt:h,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:k&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:v,isPreviousData:y,isRefetchError:k&&0!==l.dataUpdatedAt,isStale:fg(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Mf(n,t))return;this.currentResult=n;const a={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const a=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&a.has(n)})})()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Zf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ng.batch(()=>{var t,n,a,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(a=(o=this.options).onSettled)||a.call(o,this.currentResult.data,null);else if(e.onError){var i,r,s,c;null==(i=(r=this.options).onError)||i.call(r,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function dg(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&mg(e,t,t.refetchOnMount)}function mg(e,t,n){if(!1!==t.enabled){const a="function"==typeof n?n(e):n;return"always"===a||!1!==a&&fg(e,t)}return!1}function hg(e,t,n,a){return!1!==n.enabled&&(e!==t||!1===a.enabled)&&(!n.suspense||"error"!==e.state.status)&&fg(e,n)}function fg(e,t){return e.isStaleByTime(t.staleTime)}class gg extends Cf{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Mf(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){ng.batch(()=>{var t,n,a,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,r,s,c;null==(i=(r=this.mutateOptions).onError)||i.call(r,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var yg,vg={exports:{}},bg={};var xg,kg={};
|
|
49
|
+
!function(e){var t,n,a,o=qr,i=u.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var t=r.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!s.test(t[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var a=e.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),a=n&&e.extensions[n[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=i("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),t=e.extensions,n=e.types,a=["nginx","apache",void 0,"iana"],Object.keys(o).forEach(function(e){var i=o[e],r=i.extensions;if(r&&r.length){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(n[c]){var u=a.indexOf(o[n[c]].source),l=a.indexOf(i.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}})}(Dr);var Nr=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Mr=function(e){var t=!1;return Nr(function(){t=!0}),function(n,a){t?e(n,a):Nr(function(){e(n,a)})}};var Br=function(e){Object.keys(e.jobs).forEach(Ur.bind(e)),e.jobs={}};function Ur(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Fr=Mr,Wr=Br,Hr=function(e,t,n,a){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=function(e,t,n,a){var o;o=2==e.length?e(n,Fr(a)):e(n,t,Fr(a));return o}(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?Wr(n):n.results[o]=t,a(e,n.results))})};var Gr=function(e,t){var n=!Array.isArray(e),a={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&a.keyedList.sort(n?t:function(n,a){return t(e[n],e[a])});return a};var Vr=Br,$r=Mr,Kr=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Vr(this),$r(e)(null,this.results)};var Qr=Hr,Jr=Gr,Xr=Kr,Yr=function(e,t,n){var a=Jr(e);for(;a.index<(a.keyedList||e).length;)Qr(e,t,a,function(e,t){e?n(e,t):0!==Object.keys(a.jobs).length||n(null,a.results)}),a.index++;return Xr.bind(a,n)};var Zr={exports:{}},es=Hr,ts=Gr,ns=Kr;function as(e,t){return e<t?-1:e>t?1:0}Zr.exports=function(e,t,n,a){var o=ts(e,n);return es(e,t,o,function n(i,r){i?a(i,r):(o.index++,o.index<(o.keyedList||e).length?es(e,t,o,n):a(null,o.results))}),ns.bind(o,a)},Zr.exports.ascending=as,Zr.exports.descending=function(e,t){return-1*as(e,t)};var os=Zr.exports,is=os,rs=function(e,t,n){return is(e,t,null,n)};var ss={parallel:Yr,serial:rs,serialOrdered:os},cs=Object,us=Error,ls=EvalError,ps=RangeError,ds=ReferenceError,ms=SyntaxError,hs=TypeError,fs=URIError,gs=Math.abs,ys=Math.floor,vs=Math.max,bs=Math.min,xs=Math.pow,ks=Math.round,ws=Number.isNaN||function(e){return e!=e},_s=Object.getOwnPropertyDescriptor;if(_s)try{_s([],"length")}catch(e){_s=null}var Es=_s,Cs=Object.defineProperty||!1;if(Cs)try{Cs({},"a",{value:1})}catch(e){Cs=!1}var Ss,Rs,Ts,Is,js,As,Os,Ps,Ls,zs,Ds,qs,Ns,Ms,Bs,Us,Fs=Cs;function Ws(){return Rs?Ss:(Rs=1,Ss=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=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(n))return!1;for(var a 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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0})}function Hs(){return As?js:(As=1,js="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Gs(){return Ps?Os:(Ps=1,Os=cs.getPrototypeOf||null)}function Vs(){if(zs)return Ls;zs=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return Ls=function(a){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,r=function(e,t){for(var n=[],a=t||0,o=0;a<e.length;a+=1,o+=1)n[o]=e[a];return n}(arguments,1),s=t(0,o.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",a=0;a<e.length;a+=1)n+=e[a],a+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,n(r,arguments));return Object(e)===e?e:this}return o.apply(a,n(r,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Ls}function $s(){if(qs)return Ds;qs=1;var e=Vs();return Ds=Function.prototype.bind||e}function Ks(){return Ms?Ns:(Ms=1,Ns=Function.prototype.call)}function Qs(){return Us?Bs:(Us=1,Bs=Function.prototype.apply)}var Js,Xs,Ys,Zs,ec="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,tc=$s(),nc=Qs(),ac=Ks(),oc=ec||tc.call(ac,nc),ic=$s(),rc=hs,sc=Ks(),cc=oc,uc=function(e){if(e.length<1||"function"!=typeof e[0])throw new rc("a function is required");return cc(ic,sc,e)};var lc,pc=Function.prototype.call,dc=Object.prototype.hasOwnProperty,mc=$s().call(pc,dc),hc=cs,fc=us,gc=ls,yc=ps,vc=ds,bc=ms,xc=hs,kc=fs,wc=gs,_c=ys,Ec=vs,Cc=bs,Sc=xs,Rc=ks,Tc=function(e){return ws(e)||0===e?e:e<0?-1:1},Ic=Function,jc=function(e){try{return Ic('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ac=Es,Oc=Fs,Pc=function(){throw new xc},Lc=Ac?function(){try{return Pc}catch(e){try{return Ac(arguments,"callee").get}catch(e){return Pc}}}():Pc,zc=function(){if(Is)return Ts;Is=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ws();return Ts=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Dc=function(){if(Zs)return Ys;Zs=1;var e=Hs(),t=Gs(),n=function(){if(Xs)return Js;Xs=1;var e,t=uc,n=Es;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Js=a&&"function"==typeof a.get?t([a.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return Ys=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),qc=Gs(),Nc=Hs(),Mc=Qs(),Bc=Ks(),Uc={},Fc="undefined"!=typeof Uint8Array&&Dc?Dc(Uint8Array):lc,Wc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?lc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?lc:ArrayBuffer,"%ArrayIteratorPrototype%":zc&&Dc?Dc([][Symbol.iterator]()):lc,"%AsyncFromSyncIteratorPrototype%":lc,"%AsyncFunction%":Uc,"%AsyncGenerator%":Uc,"%AsyncGeneratorFunction%":Uc,"%AsyncIteratorPrototype%":Uc,"%Atomics%":"undefined"==typeof Atomics?lc:Atomics,"%BigInt%":"undefined"==typeof BigInt?lc:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?lc:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?lc:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?lc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fc,"%eval%":eval,"%EvalError%":gc,"%Float16Array%":"undefined"==typeof Float16Array?lc:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?lc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?lc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?lc:FinalizationRegistry,"%Function%":Ic,"%GeneratorFunction%":Uc,"%Int8Array%":"undefined"==typeof Int8Array?lc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?lc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?lc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zc&&Dc?Dc(Dc([][Symbol.iterator]())):lc,"%JSON%":"object"==typeof JSON?JSON:lc,"%Map%":"undefined"==typeof Map?lc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&zc&&Dc?Dc((new Map)[Symbol.iterator]()):lc,"%Math%":Math,"%Number%":Number,"%Object%":hc,"%Object.getOwnPropertyDescriptor%":Ac,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?lc:Promise,"%Proxy%":"undefined"==typeof Proxy?lc:Proxy,"%RangeError%":yc,"%ReferenceError%":vc,"%Reflect%":"undefined"==typeof Reflect?lc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?lc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&zc&&Dc?Dc((new Set)[Symbol.iterator]()):lc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?lc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zc&&Dc?Dc(""[Symbol.iterator]()):lc,"%Symbol%":zc?Symbol:lc,"%SyntaxError%":bc,"%ThrowTypeError%":Lc,"%TypedArray%":Fc,"%TypeError%":xc,"%Uint8Array%":"undefined"==typeof Uint8Array?lc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?lc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?lc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?lc:Uint32Array,"%URIError%":kc,"%WeakMap%":"undefined"==typeof WeakMap?lc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?lc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?lc:WeakSet,"%Function.prototype.call%":Bc,"%Function.prototype.apply%":Mc,"%Object.defineProperty%":Oc,"%Object.getPrototypeOf%":qc,"%Math.abs%":wc,"%Math.floor%":_c,"%Math.max%":Ec,"%Math.min%":Cc,"%Math.pow%":Sc,"%Math.round%":Rc,"%Math.sign%":Tc,"%Reflect.getPrototypeOf%":Nc};if(Dc)try{null.error}catch(e){var Hc=Dc(Dc(e));Wc["%Error.prototype%"]=Hc}var Gc,Vc,$c=function e(t){var n;if("%AsyncFunction%"===t)n=jc("async function () {}");else if("%GeneratorFunction%"===t)n=jc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=jc("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Dc&&(n=Dc(o.prototype))}return Wc[t]=n,n},Kc={__proto__:null,"%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"]},Qc=$s(),Jc=mc,Xc=Qc.call(Bc,Array.prototype.concat),Yc=Qc.call(Mc,Array.prototype.splice),Zc=Qc.call(Bc,String.prototype.replace),eu=Qc.call(Bc,String.prototype.slice),tu=Qc.call(Bc,RegExp.prototype.exec),nu=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,au=/\\(\\)?/g,ou=function(e,t){var n,a=e;if(Jc(Kc,a)&&(a="%"+(n=Kc[a])[0]+"%"),Jc(Wc,a)){var o=Wc[a];if(o===Uc&&(o=$c(a)),void 0===o&&!t)throw new xc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new bc("intrinsic "+e+" does not exist!")},iu=function(e,t){if("string"!=typeof e||0===e.length)throw new xc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new xc('"allowMissing" argument must be a boolean');if(null===tu(/^%?[^%]*%?$/,e))throw new bc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=eu(e,0,1),n=eu(e,-1);if("%"===t&&"%"!==n)throw new bc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new bc("invalid intrinsic syntax, expected opening `%`");var a=[];return Zc(e,nu,function(e,t,n,o){a[a.length]=n?Zc(o,au,"$1"):t||e}),a}(e),a=n.length>0?n[0]:"",o=ou("%"+a+"%",t),i=o.name,r=o.value,s=!1,c=o.alias;c&&(a=c[0],Yc(n,Xc([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=eu(p,0,1),m=eu(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new bc("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Jc(Wc,i="%"+(a+="."+p)+"%"))r=Wc[i];else if(null!=r){if(!(p in r)){if(!t)throw new xc("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ac&&u+1>=n.length){var h=Ac(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Jc(r,p),r=r[p];l&&!s&&(Wc[i]=r)}}return r};var ru=iu("%Object.defineProperty%",!0),su=function(){if(Vc)return Gc;Vc=1;var e=Ws();return Gc=function(){return e()&&!!Symbol.toStringTag}}()(),cu=mc,uu=hs,lu=su?Symbol.toStringTag:null,pu=Lr,du=r,mu=u,hu=l,fu=p,gu=d.parse,yu=m,vu=s.Stream,bu=h,xu=Dr,ku=ss,wu=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==a&&"boolean"!=typeof a)throw new uu("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!lu||!n&&cu(e,lu)||(ru?ru(e,lu,{configurable:!a,enumerable:!1,value:t,writable:!1}):e[lu]=t)},_u=mc,Eu=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function Cu(e){if(!(this instanceof Cu))return new Cu(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],pu.call(this),e=e||{})this[t]=e[t]}du.inherits(Cu,pu),Cu.LINE_BREAK="\r\n",Cu.DEFAULT_CONTENT_TYPE="application/octet-stream",Cu.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var a=pu.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),i=this._multiPartFooter();a(o),a(t),a(i),this._trackLength(o,t,n)}},Cu.prototype._trackLength=function(e,t,n){var a=0;null!=n.knownLength?a+=Number(n.knownLength):Buffer.isBuffer(t)?a=t.length:"string"==typeof t&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+Cu.LINE_BREAK.length,t&&(t.path||t.readable&&_u(t,"httpVersion")||t instanceof vu)&&(n.knownLength||this._valuesToMeasure.push(t))},Cu.prototype._lengthRetriever=function(e,t){_u(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):yu.stat(e.path,function(n,a){if(n)t(n);else{var o=a.size-(e.start?e.start:0);t(null,o)}}):_u(e,"httpVersion")?t(null,Number(e.headers["content-length"])):_u(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},Cu.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,o=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&Eu(s,n.header),s)if(_u(s,c)){if(null==(a=s[c]))continue;Array.isArray(a)||(a=[a]),a.length&&(r+=c+": "+a.join("; ")+Cu.LINE_BREAK)}return"--"+this.getBoundary()+Cu.LINE_BREAK+r+Cu.LINE_BREAK},Cu.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=mu.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=mu.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&_u(e,"httpVersion")&&(n=mu.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},Cu.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=xu.lookup(e.name)),!n&&e&&e.path&&(n=xu.lookup(e.path)),!n&&e&&e.readable&&_u(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=xu.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=Cu.DEFAULT_CONTENT_TYPE),n},Cu.prototype._multiPartFooter=function(){return function(e){var t=Cu.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Cu.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Cu.LINE_BREAK},Cu.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)_u(e,t)&&(n[t.toLowerCase()]=e[t]);return n},Cu.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},Cu.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Cu.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,a=this._streams.length;n<a;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(Cu.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Cu.prototype._generateBoundary=function(){this._boundary="--------------------------"+bu.randomBytes(12).toString("hex")},Cu.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},Cu.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Cu.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?ku.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,a){n?e(n):(a.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},Cu.prototype.submit=function(e,t){var n,a,o={method:"post"};return"string"==typeof e?(e=gu(e),a=Eu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(a=Eu(e,o)).port||(a.port="https:"===a.protocol?443:80),a.headers=this.getHeaders(e.headers),n="https:"===a.protocol?fu.request(a):hu.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var o,i=function(e,a){return n.removeListener("error",i),n.removeListener("response",o),t.call(this,e,a)};o=i.bind(this,null),n.on("error",i),n.on("response",o)}}.bind(this)),n},Cu.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Cu.prototype.toString=function(){return"[object FormData]"},wu(Cu,"FormData");var Su=Rr(Cu);function Ru(e){return wr.isPlainObject(e)||wr.isArray(e)}function Tu(e){return wr.endsWith(e,"[]")?e.slice(0,-2):e}function Iu(e,t,n){return e?e.concat(t).map(function(e,t){return e=Tu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ju=wr.toFlatObject(wr,{},null,function(e){return/^is[A-Z]/.test(e)});function Au(e,t,n){if(!wr.isObject(e))throw new TypeError("target must be an object");t=t||new(Su||FormData);const a=(n=wr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!wr.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wr.isSpecCompliantForm(t);if(!wr.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(wr.isDate(e))return e.toISOString();if(wr.isBoolean(e))return e.toString();if(!s&&wr.isBlob(e))throw new _r("Blob is not supported. Use a Buffer instead.");return wr.isArrayBuffer(e)||wr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(wr.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(wr.isArray(e)&&function(e){return wr.isArray(e)&&!e.some(Ru)}(e)||(wr.isFileList(e)||wr.endsWith(n,"[]"))&&(s=wr.toArray(e)))return n=Tu(n),s.forEach(function(e,a){!wr.isUndefined(e)&&null!==e&&t.append(!0===r?Iu([n],a,i):null===r?n:n+"[]",c(e))}),!1;return!!Ru(e)||(t.append(Iu(o,n,i),c(e)),!1)}const l=[],p=Object.assign(ju,{defaultVisitor:u,convertValue:c,isVisitable:Ru});if(!wr.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!wr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+a.join("."));l.push(n),wr.forEach(n,function(n,i){!0===(!(wr.isUndefined(n)||null===n)&&o.call(t,n,wr.isString(i)?i.trim():i,a,p))&&e(n,a?a.concat(i):[i])}),l.pop()}}(e),t}function Ou(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Pu(e,t){this._pairs=[],e&&Au(e,this,t)}const Lu=Pu.prototype;function zu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Du(e,t,n){if(!t)return e;const a=n&&n.encode||zu;wr.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):wr.isURLSearchParams(t)?t.toString():new Pu(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Lu.append=function(e,t){this._pairs.push([e,t])},Lu.toString=function(e){const t=e?function(t){return e.call(this,t,Ou)}:Ou;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var qu=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){wr.forEach(this.handlers,function(t){null!==t&&e(t)})}},Nu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mu=d.URLSearchParams;const Bu="abcdefghijklmnopqrstuvwxyz",Uu="0123456789",Fu={DIGIT:Uu,ALPHA:Bu,ALPHA_DIGIT:Bu+Bu.toUpperCase()+Uu};var Wu={isNode:!0,classes:{URLSearchParams:Mu,FormData:Su,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Fu,generateString:(e=16,t=Fu.ALPHA_DIGIT)=>{let n="";const{length:a}=t,o=new Uint32Array(e);h.randomFillSync(o);for(let i=0;i<e;i++)n+=t[o[i]%a];return n},protocols:["http","https","file","data"]};const Hu="undefined"!=typeof window&&"undefined"!=typeof document,Gu="object"==typeof navigator&&navigator||void 0,Vu=Hu&&(!Gu||["ReactNative","NativeScript","NS"].indexOf(Gu.product)<0),$u="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ku=Hu&&window.location.href||"http://localhost";var Qu={...Object.freeze({__proto__:null,hasBrowserEnv:Hu,hasStandardBrowserEnv:Vu,hasStandardBrowserWebWorkerEnv:$u,navigator:Gu,origin:Ku}),...Wu};function Ju(e){function t(e,n,a,o){let i=e[o++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=o>=e.length;if(i=!i&&wr.isArray(a)?a.length:i,s)return wr.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!r;a[i]&&wr.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],o)&&wr.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const o=n.length;let i;for(a=0;a<o;a++)i=n[a],t[i]=e[i];return t}(a[i])),!r}if(wr.isFormData(e)&&wr.isFunction(e.entries)){const n={};return wr.forEachEntry(e,(e,a)=>{t(function(e){return wr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null}const Xu={transitional:Nu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=wr.isObject(e);o&&wr.isHTMLForm(e)&&(e=new FormData(e));if(wr.isFormData(e))return a?JSON.stringify(Ju(e)):e;if(wr.isArrayBuffer(e)||wr.isBuffer(e)||wr.isStream(e)||wr.isFile(e)||wr.isBlob(e)||wr.isReadableStream(e))return e;if(wr.isArrayBufferView(e))return e.buffer;if(wr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Au(e,new Qu.classes.URLSearchParams,{visitor:function(e,t,n,a){return Qu.isNode&&wr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=wr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Au(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||a?(t.setContentType("application/json",!1),function(e,t,n){if(wr.isString(e))try{return(t||JSON.parse)(e),wr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Xu.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(wr.isResponse(e)||wr.isReadableStream(e))return e;if(e&&wr.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw _r.from(e,_r.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qu.classes.FormData,Blob:Qu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wr.forEach(["delete","get","head","post","put","patch"],e=>{Xu.headers[e]={}});var Yu=Xu;const Zu=wr.toObjectSet(["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"]);const el=Symbol("internals");function tl(e){return e&&String(e).trim().toLowerCase()}function nl(e){return!1===e||null==e?e:wr.isArray(e)?e.map(nl):String(e)}function al(e,t,n,a,o){return wr.isFunction(a)?a.call(this,t,n):(o&&(t=n),wr.isString(t)?wr.isString(a)?-1!==t.indexOf(a):wr.isRegExp(a)?a.test(t):void 0:void 0)}class ol{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function o(e,t,n){const o=tl(t);if(!o)throw new Error("header name must be a non-empty string");const i=wr.findKey(a,o);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=nl(e))}const i=(e,t)=>wr.forEach(e,(e,n)=>o(e,n,t));if(wr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(wr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,a,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),a=e.substring(o+1).trim(),!n||t[n]&&Zu[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t})(e),t);else if(wr.isObject(e)&&wr.isIterable(e)){let n,a,o={};for(const t of e){if(!wr.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[a=t[0]]=(n=o[a])?wr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=tl(e)){const n=wr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(wr.isFunction(t))return t.call(this,e,n);if(wr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tl(e)){const n=wr.findKey(this,e);return!(!n||void 0===this[n]||t&&!al(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function o(e){if(e=tl(e)){const o=wr.findKey(n,e);!o||t&&!al(0,n[o],o,t)||(delete n[o],a=!0)}}return wr.isArray(e)?e.forEach(o):o(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const o=t[n];e&&!al(0,this[o],o,e,!0)||(delete this[o],a=!0)}return a}normalize(e){const t=this,n={};return wr.forEach(this,(a,o)=>{const i=wr.findKey(n,o);if(i)return t[i]=nl(a),void delete t[o];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();r!==o&&delete t[o],t[r]=nl(a),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return wr.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&wr.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[el]=this[el]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=tl(e);t[a]||(!function(e,t){const n=wr.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,o){return this[a].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[a]=!0)}return wr.isArray(e)?e.forEach(a):a(e),this}}ol.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wr.reduceDescriptors(ol.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),wr.freezeMethods(ol);var il=ol;function rl(e,t){const n=this||Yu,a=t||n,o=il.from(a.headers);let i=a.data;return wr.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function sl(e){return!(!e||!e.__CANCEL__)}function cl(e,t,n){_r.call(this,null==e?"canceled":e,_r.ERR_CANCELED,t,n),this.name="CanceledError"}function ul(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ll(e,t,n){let a=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(a||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}wr.inherits(cl,_r,{__CANCEL__:!0});var pl={},dl=d.parse,ml={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},hl=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function fl(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}pl.getProxyForUrl=function(e){var t="string"==typeof e?dl(e):e||{},n=t.protocol,a=t.host,o=t.port;if("string"!=typeof a||!a||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(fl("npm_config_no_proxy")||fl("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),o=a?a[1]:n,i=a?parseInt(a[2]):0;return!(!i||i===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!hl.call(e,o)):e!==o)})}(a=a.replace(/:\d*$/,""),o=parseInt(o)||ml[n]||0))return"";var i=fl("npm_config_"+n+"_proxy")||fl(n+"_proxy")||fl("npm_config_proxy")||fl("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var gl,yl,vl,bl,xl,kl={exports:{}},wl={exports:{}},_l={exports:{}};function El(){if(yl)return gl;yl=1;var e=1e3,t=60*e,n=60*t,a=24*n,o=7*a,i=365.25*a;function r(e,t,n,a){var o=t>=1.5*n;return Math.round(e/n)+" "+a+(o?"s":"")}return gl=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function(r){if((r=String(r)).length>100)return;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(r);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function(o){var i=Math.abs(o);if(i>=a)return r(o,i,a,"day");if(i>=n)return r(o,i,n,"hour");if(i>=t)return r(o,i,t,"minute");if(i>=e)return r(o,i,e,"second");return o+" ms"}(s):function(o){var i=Math.abs(o);if(i>=a)return Math.round(o/a)+"d";if(i>=n)return Math.round(o/n)+"h";if(i>=t)return Math.round(o/t)+"m";if(i>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},gl}function Cl(){if(bl)return vl;return bl=1,vl=function(e){function t(e){let a,o,i,r=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(a||o);n.diff=i,n.prev=a,n.curr=o,a=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,o)=>{if("%%"===a)return"%";r++;const i=t.formatters[o];if("function"==typeof i){const t=e[r];a=i.call(n,t),e.splice(r,1),r--}return a}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function a(e,t){let n=0,a=0,o=-1,i=0;for(;n<e.length;)if(a<t.length&&(t[a]===e[n]||"*"===t[a]))"*"===t[a]?(o=a,i=n,a++):(n++,a++);else{if(-1===o)return!1;a=o+1,i++,n=i}for(;a<t.length&&"*"===t[a];)a++;return a===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(a(e,n))return!1;for(const n of t.names)if(a(e,n))return!0;return!1},t.humanize=El(),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(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},vl}var Sl,Rl,Tl,Il,jl,Al,Ol,Pl={exports:{}};function Ll(){return Rl?Sl:(Rl=1,Sl=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),o=t.indexOf("--");return-1!==a&&(-1===o||a<o)})}function zl(){return jl||(jl=1,function(e,t){const n=g,a=r;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:a,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),i=` ${o};1m${a} [0m`;n[0]=i+n[0].split("\n").join("\n"+i),n.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+n[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):n.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=function(){if(Il)return Tl;Il=1;const e=y,t=g,n=Ll(),{env:a}=process;let o;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===o)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!i&&void 0===o)return 0;const r=o||0;if("dumb"===a.TERM)return r;if("win32"===process.platform){const t=e.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(e=>e 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 e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=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}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?o=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=1),"FORCE_COLOR"in a&&(o="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),Tl={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},Tl}();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 n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let a=process.env[t];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[n]=a,e},{}),e.exports=Cl()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(Pl,Pl.exports)),Pl.exports}function Dl(){return Al||(Al=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?wl.exports=(xl||(xl=1,function(e,t){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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(a++,"%c"===e&&(o=a))}),t.splice(o,0,n)},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")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[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=Cl()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(_l,_l.exports)),_l.exports):wl.exports=zl()),wl.exports}var ql,Nl,Ml,Bl=d,Ul=Bl.URL,Fl=l,Wl=p,Hl=s.Writable,Gl=f,Vl=function(){if(!Ol){try{Ol=Dl()("follow-redirects")}catch(e){}"function"!=typeof Ol&&(Ol=function(){})}Ol.apply(null,arguments)};ql="undefined"!=typeof process,Nl="undefined"!=typeof window&&"undefined"!=typeof document,Ml=mp(Error.captureStackTrace),ql||!Nl&&Ml||console.warn("The follow-redirects package should be excluded from browser builds.");var $l=!1;try{Gl(new Ul(""))}catch(Oa){$l="ERR_INVALID_URL"===Oa.code}var Kl=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ql=["abort","aborted","connect","error","socket","timeout"],Jl=Object.create(null);Ql.forEach(function(e){Jl[e]=function(t,n,a){this._redirectable.emit(e,t,n,a)}});var Xl=lp("ERR_INVALID_URL","Invalid URL",TypeError),Yl=lp("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Zl=lp("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Yl),ep=lp("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),tp=lp("ERR_STREAM_WRITE_AFTER_END","write after end"),np=Hl.prototype.destroy||ip;function ap(e,t){Hl.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 n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof Yl?e:new Yl({cause:e}))}},this._performRequest()}function op(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(a){var o=a+":",i=n[o]=e[a],r=t[a]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,a,i){var r;return r=e,Ul&&r instanceof Ul?e=cp(e):dp(e)?e=cp(rp(e)):(i=a,a=sp(e),e={protocol:o}),mp(a)&&(i=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=n,dp(a.host)||dp(a.hostname)||(a.hostname="::1"),Gl.equal(a.protocol,o,"protocol mismatch"),Vl("options",a),new ap(a,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var a=r.request(e,t,n);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})}),t}function ip(){}function rp(e){var t;if($l)t=new Ul(e);else if(!dp((t=sp(Bl.parse(e))).protocol))throw new Xl({input:e});return t}function sp(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Xl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Xl({input:e.href||e});return e}function cp(e,t){var n=t||{};for(var a of Kl)n[a]=e[a];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function up(e,t){var n;for(var a in t)e.test(a)&&(n=t[a],delete t[a]);return null==n?void 0:String(n).trim()}function lp(e,t,n){function a(n){mp(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(n||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function pp(e,t){for(var n of Ql)e.removeListener(n,Jl[n]);e.on("error",ip),e.destroy(t)}function dp(e){return"string"==typeof e||e instanceof String}function mp(e){return"function"==typeof e}ap.prototype=Object.create(Hl.prototype),ap.prototype.abort=function(){pp(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},ap.prototype.destroy=function(e){return pp(this._currentRequest,e),np.call(this,e),this},ap.prototype.write=function(e,t,n){if(this._ending)throw new tp;if(!dp(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;mp(t)&&(n=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,n)):(this.emit("error",new ep),this.abort()):n&&n()},ap.prototype.end=function(e,t,n){if(mp(e)?(n=e,e=t=null):mp(t)&&(n=t,t=null),e){var a=this,o=this._currentRequest;this.write(e,t,function(){a._ended=!0,o.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},ap.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},ap.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},ap.prototype.setTimeout=function(e,t){var n=this;function a(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),i()},e),a(t)}function i(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",i),n.removeListener("error",i),n.removeListener("response",i),n.removeListener("close",i),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",a),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){ap.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(ap.prototype,e,{get:function(){return this._currentRequest[e]}})}),ap.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))}},ap.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(a._redirectable=this,Ql))a.on(o,Jl[o]);if(this._currentUrl=/^\//.test(this._options.path)?Bl.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(a===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];a.finished||a.write(n.data,n.encoding,e)}else r._ended&&a.end()}()}},ap.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,a=e.headers.location;if(!a||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(pp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Zl;var o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],up(/^content-/i,this._options.headers));var r,s,c=up(/^host$/i,this._options.headers),u=rp(this._currentUrl),l=c||u.host,p=/^\w+:/.test(a)?this._currentUrl:Bl.format(Object.assign(u,{host:l})),d=(r=a,s=p,$l?new Ul(r,s):rp(Bl.resolve(s,r)));if(Vl("redirecting to",d.href),this._isRedirect=!0,cp(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Gl(dp(e)&&dp(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&up(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),mp(o)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};o(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},kl.exports=op({http:Fl,https:Wl}),kl.exports.wrap=op;var hp=Rr(kl.exports);const fp="1.12.2";function gp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const yp=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const vp=Symbol("internals");class bp extends s.Transform{constructor(e){super({readableHighWaterMark:(e=wr.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!wr.isUndefined(t[e]))).chunkSize});const t=this[vp]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[vp];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const a=this[vp],o=a.maxRate,i=this.readableHighWaterMark,r=a.timeWindow,s=o/(1e3/r),c=!1!==a.minChunkSize?Math.max(a.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);a.bytesSeen+=n,a.bytes+=n,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(e)?process.nextTick(t):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(o){const e=Date.now();(!a.ts||(m=e-a.ts)>=r)&&(a.ts=e,l=s-a.bytes,a.bytes=l<0?-l:0,m=0),l=s-a.bytes}if(o){if(l<=0)return setTimeout(()=>{t(null,e)},r-m);l<d&&(d=l)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),u(e,p?()=>{process.nextTick(t,null,p)}:t)};l(e,function e(t,a){if(t)return n(t);a?l(a,e):n(null)})}}var xp=bp;const{asyncIterator:kp}=Symbol;var wp=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[kp]?yield*e[kp]():yield e};const _p=Qu.ALPHABET.ALPHA_DIGIT+"-_",Ep="function"==typeof TextEncoder?new TextEncoder:new r.TextEncoder,Cp="\r\n",Sp=Ep.encode(Cp);class Rp{constructor(e,t){const{escapeName:n}=this.constructor,a=wr.isString(t);let o=`Content-Disposition: form-data; name="${n(e)}"${!a&&t.name?`; filename="${n(t.name)}"`:""}${Cp}`;a?t=Ep.encode(String(t).replace(/\r?\n|\r\n?/g,Cp)):o+=`Content-Type: ${t.type||"application/octet-stream"}${Cp}`,this.headers=Ep.encode(o+Cp),this.contentLength=a?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;wr.isTypedArray(e)?yield e:yield*wp(e),yield Sp}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var Tp=(e,t,n)=>{const{tag:a="form-data-boundary",size:o=25,boundary:i=a+"-"+Qu.generateString(o,_p)}=n||{};if(!wr.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const r=Ep.encode("--"+i+Cp),s=Ep.encode("--"+i+"--"+Cp);let u=s.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new Rp(e,t);return u+=n.size,n});u+=r.byteLength*l.length,u=wr.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),c.from(async function*(){for(const e of l)yield r,yield*e.encode();yield s}())};class Ip extends s.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}var jp=Ip;var Ap=(e,t)=>wr.isAsyncFn(e)?function(...n){const a=n.pop();e.apply(this,n).then(e=>{try{t?a(null,...t(e)):a(null,e)}catch(e){a(e)}},a)}:e;const Op=(e,t,n=3)=>{let a=0;const o=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=a[r];o||(o=c),n[i]=s,a[i]=c;let l=r,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,a,o=0,i=1e3/t;const r=(t,i=Date.now())=>{o=i,n=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?r(e,t):(n=e,a||(a=setTimeout(()=>{a=null,r(n)},i-s)))},()=>n&&r(n)]}(n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-a,c=o(s);a=i;e({loaded:i,total:r,progress:r?i/r:void 0,bytes:s,rate:c||void 0,estimated:c&&r&&i<=r?(r-i)/c:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})},n)},Pp=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},Lp=e=>(...t)=>wr.asap(()=>e(...t));const zp={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Dp={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},qp=wr.isFunction(v.createBrotliDecompress),{http:Np,https:Mp}=hp,Bp=/https:?/,Up=Qu.protocols.map(e=>e+":"),Fp=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Wp(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Hp(e,t,n){let a=t;if(!a&&!1!==a){const e=pl.getProxyForUrl(n);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const t=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=a.hostname||a.host;e.hostname=t,e.host=t,e.port=a.port,e.path=n,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){Hp(e,t,e.href)}}const Gp="undefined"!=typeof process&&"process"===wr.kindOf(process),Vp=(e,t)=>(({address:e,family:t})=>{if(!wr.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(wr.isObject(e)?e:{address:e,family:t});var $p=Gp&&function(e){return t=async function(t,n,a){let{data:o,lookup:i,family:c}=e;const{responseType:u,responseEncoding:d}=e,m=e.method.toUpperCase();let h,f,g=!1;if(i){const e=Ap(i,e=>wr.isArray(e)?e:[e]);i=(t,n,a)=>{e(t,n,(e,t,o)=>{if(e)return a(e);const i=wr.isArray(t)?t.map(e=>Vp(e)):[Vp(t,o)];n.all?a(e,i):a(e,i[0].address,i[0].family)})}}const y=new b,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(k),e.signal&&e.signal.removeEventListener("abort",k),y.removeAllListeners()};function k(t){y.emit("abort",!t||t.type?new cl(null,e,f):t)}a((e,t)=>{h=!0,t&&(g=!0,x())}),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(k),e.signal&&(e.signal.aborted?k():e.signal.addEventListener("abort",k)));const w=ll(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,Qu.hasBrowserEnv?Qu.origin:void 0),E=_.protocol||Up[0];if("data:"===E){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(n)){let e=a.length;const t=a.length;for(let n=0;n<t;n++)if(37===a.charCodeAt(n)&&n+2<t){const t=a.charCodeAt(n+1),o=a.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===a.charCodeAt(e-2)&&51===a.charCodeAt(e-1)&&(68===a.charCodeAt(e)||100===a.charCodeAt(e));o>=0&&(61===a.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===a.charCodeAt(o)||i(o))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(a,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e))}let a;if("GET"!==m)return ul(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,t,n){const a=n&&n.Blob||Qu.classes.Blob,o=gp(e);if(void 0===t&&a&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const n=yp.exec(e);if(!n)throw new _r("Invalid URL",_r.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!a)throw new _r("Blob is not supported",_r.ERR_NOT_SUPPORT);return new a([c],{type:i})}return c}throw new _r("Unsupported protocol "+o,_r.ERR_NOT_SUPPORT)}(e.url,"blob"===u,{Blob:e.env&&e.env.Blob})}catch(t){throw _r.from(t,_r.ERR_BAD_REQUEST,e)}return"text"===u?(a=a.toString(d),d&&"utf8"!==d||(a=wr.stripBOM(a))):"stream"===u&&(a=s.Readable.from(a)),ul(t,n,{data:a,status:200,statusText:"OK",headers:new il,config:e})}if(-1===Up.indexOf(E))return n(new _r("Unsupported protocol "+E,_r.ERR_BAD_REQUEST,e));const C=il.from(e.headers).normalize();C.set("User-Agent","axios/"+fp,!1);const{onUploadProgress:S,onDownloadProgress:R}=e,T=e.maxRate;let I,j;if(wr.isSpecCompliantForm(o)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);o=Tp(o,e=>{C.set(e)},{tag:`axios-${fp}-boundary`,boundary:e&&e[1]||void 0})}else if(wr.isFormData(o)&&wr.isFunction(o.getHeaders)){if(C.set(o.getHeaders()),!C.hasContentLength())try{const e=await r.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(wr.isBlob(o)||wr.isFile(o))o.size&&C.setContentType(o.type||"application/octet-stream"),C.setContentLength(o.size||0),o=s.Readable.from(wp(o));else if(o&&!wr.isStream(o)){if(Buffer.isBuffer(o));else if(wr.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!wr.isString(o))return n(new _r("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",_r.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(C.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return n(new _r("Request body larger than maxBodyLength limit",_r.ERR_BAD_REQUEST,e))}const A=wr.toFiniteNumber(C.getContentLength());let O,P;wr.isArray(T)?(I=T[0],j=T[1]):I=j=T,o&&(S||I)&&(wr.isStream(o)||(o=s.Readable.from(o,{objectMode:!1})),o=s.pipeline([o,new xp({maxRate:wr.toFiniteNumber(I)})],wr.noop),S&&o.on("progress",Fp(o,Pp(A,Op(Lp(S),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{P=Du(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const a=new Error(t.message);return a.config=e,a.url=e.url,a.exists=!0,n(a)}C.set("Accept-Encoding","gzip, compress, deflate"+(qp?", br":""),!1);const L={path:P,method:m,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:c,beforeRedirect:Wp,beforeRedirects:{}};let z;!wr.isUndefined(i)&&(L.lookup=i),e.socketPath?L.socketPath=e.socketPath:(L.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,L.port=_.port,Hp(L,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+L.path));const D=Bp.test(L.protocol);if(L.agent=D?e.httpsAgent:e.httpAgent,e.transport?z=e.transport:0===e.maxRedirects?z=D?p:l:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),z=D?Mp:Np),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),f=z.request(L,function(a){if(f.destroyed)return;const o=[a],i=+a.headers["content-length"];if(R||j){const e=new xp({maxRate:wr.toFiniteNumber(j)});R&&e.on("progress",Fp(e,Pp(i,Op(Lp(R),!0,3)))),o.push(e)}let r=a;const c=a.req||f;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==m&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"deflate":o.push(new jp),o.push(v.createUnzip(zp)),delete a.headers["content-encoding"];break;case"br":qp&&(o.push(v.createBrotliDecompress(Dp)),delete a.headers["content-encoding"])}r=o.length>1?s.pipeline(o,wr.noop):o[0];const l=s.finished(r,()=>{l(),x()}),p={status:a.statusCode,statusText:a.statusMessage,headers:new il(a.headers),config:e,request:c};if("stream"===u)p.data=r,ul(t,n,p);else{const a=[];let o=0;r.on("data",function(t){a.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(g=!0,r.destroy(),n(new _r("maxContentLength size of "+e.maxContentLength+" exceeded",_r.ERR_BAD_RESPONSE,e,c)))}),r.on("aborted",function(){if(g)return;const t=new _r("stream has been aborted",_r.ERR_BAD_RESPONSE,e,c);r.destroy(t),n(t)}),r.on("error",function(t){f.destroyed||n(_r.from(t,null,e,c))}),r.on("end",function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==u&&(e=e.toString(d),d&&"utf8"!==d||(e=wr.stripBOM(e))),p.data=e}catch(t){return n(_r.from(t,null,e,p.request,p))}ul(t,n,p)})}y.once("abort",e=>{r.destroyed||(r.emit("error",e),r.destroy())})}),y.once("abort",e=>{n(e),f.destroy(e)}),f.on("error",function(t){n(_r.from(t,null,e,f))}),f.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new _r("error trying to parse `config.timeout` to int",_r.ERR_BAD_OPTION_VALUE,e,f));f.setTimeout(t,function(){if(h)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||Nu;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new _r(t,a.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),k()})}if(wr.isStream(o)){let t=!1,n=!1;o.on("end",()=>{t=!0}),o.once("error",e=>{n=!0,f.destroy(e)}),o.on("close",()=>{t||n||k(new cl("Request stream has been aborted",e,f))}),o.pipe(f)}else f.end(o)},new Promise((e,n)=>{let a,o;const i=(e,t)=>{o||(o=!0,a&&a(e,t))},r=e=>{i(e,!0),n(e)};t(t=>{i(t),e(t)},r,e=>a=e).catch(r)});var t},Kp=Qu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qu.origin),Qu.navigator&&/(msie|trident)/i.test(Qu.navigator.userAgent)):()=>!0,Qp=Qu.hasStandardBrowserEnv?{write(e,t,n,a,o,i){const r=[e+"="+encodeURIComponent(t)];wr.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),wr.isString(a)&&r.push("path="+a),wr.isString(o)&&r.push("domain="+o),!0===i&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};const Jp=e=>e instanceof il?{...e}:e;function Xp(e,t){t=t||{};const n={};function a(e,t,n,a){return wr.isPlainObject(e)&&wr.isPlainObject(t)?wr.merge.call({caseless:a},e,t):wr.isPlainObject(t)?wr.merge({},t):wr.isArray(t)?t.slice():t}function o(e,t,n,o){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e,0,o):a(e,t,0,o)}function i(e,t){if(!wr.isUndefined(t))return a(void 0,t)}function r(e,t){return wr.isUndefined(t)?wr.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,o,i){return i in t?a(n,o):i in e?a(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(e,t,n)=>o(Jp(e),Jp(t),0,!0)};return wr.forEach(Object.keys({...e,...t}),function(a){const i=c[a]||o,r=i(e[a],t[a],a);wr.isUndefined(r)&&i!==s||(n[a]=r)}),n}var Yp=e=>{const t=Xp({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=il.from(r),t.url=Du(ll(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),wr.isFormData(n))if(Qu.hasStandardBrowserEnv||Qu.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(wr.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&r.set(e,n)})}if(Qu.hasStandardBrowserEnv&&(a&&wr.isFunction(a)&&(a=a(t)),a||!1!==a&&Kp(t.url))){const e=o&&i&&Qp.read(i);e&&r.set(o,e)}return t};var Zp="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=Yp(e);let o=a.data;const i=il.from(a.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=a;function h(){u&&u(),l&&l(),a.cancelToken&&a.cancelToken.unsubscribe(r),a.signal&&a.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const a=il.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ul(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new _r("Request aborted",_r.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const a=new _r(t&&t.message?t.message:"Network Error",_r.ERR_NETWORK,e,f);a.event=t||null,n(a),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const o=a.transitional||Nu;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new _r(t,o.clarifyTimeoutError?_r.ETIMEDOUT:_r.ECONNABORTED,e,f)),f=null},void 0===o&&i.setContentType(null),"setRequestHeader"in f&&wr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),wr.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),p&&"json"!==p&&(f.responseType=a.responseType),m&&([c,l]=Op(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=Op(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(a.cancelToken||a.signal)&&(r=t=>{f&&(n(!t||t.type?new cl(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(r),a.signal&&(a.signal.aborted?r():a.signal.addEventListener("abort",r)));const y=gp(a.url);y&&-1===Qu.protocols.indexOf(y)?n(new _r("Unsupported protocol "+y+":",_r.ERR_BAD_REQUEST,e)):f.send(o||null)})};var ed=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,a=new AbortController;const o=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;a.abort(t instanceof _r?t:new cl(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new _r(`timeout ${t} of ms exceeded`,_r.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=a;return s.unsubscribe=()=>wr.asap(r),s}};const td=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,o=0;for(;o<n;)a=o+t,yield e.slice(o,a),o=a},nd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ad=(e,t,n,a)=>{const o=async function*(e,t){for await(const n of nd(e))yield*td(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await o.next();if(t)return s(),void e.close();let i=a.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(a))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:od}=wr,id=(({Request:e,Response:t})=>({Request:e,Response:t}))(wr.global),{ReadableStream:rd,TextEncoder:sd}=wr.global,cd=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ud=e=>{e=wr.merge.call({skipUndefined:!0},id,e);const{fetch:t,Request:n,Response:a}=e,o=t?od(t):"function"==typeof fetch,i=od(n),r=od(a);if(!o)return!1;const s=o&&od(rd),c=o&&("function"==typeof sd?(e=>t=>e.encode(t))(new sd):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&cd(()=>{let e=!1;const t=new n(Qu.origin,{body:new rd,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=r&&s&&cd(()=>wr.isReadableStream(new a("").body)),p={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let a=t&&t[e];if(a)return a.call(t);throw new _r(`Response type '${e}' is not supported`,_r.ERR_NOT_SUPPORT,n)})});const d=async(e,t)=>{const a=wr.toFiniteNumber(e.getContentLength());return null==a?(async e=>{if(null==e)return 0;if(wr.isBlob(e))return e.size;if(wr.isSpecCompliantForm(e)){const t=new n(Qu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return wr.isArrayBufferView(e)||wr.isArrayBuffer(e)?e.byteLength:(wr.isURLSearchParams(e)&&(e+=""),wr.isString(e)?(await c(e)).byteLength:void 0)})(t):a};return async e=>{let{url:o,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:x}=Yp(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let w=ed([c,m&&m.toAbortSignal()],h),_=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(g&&u&&"get"!==r&&"head"!==r&&0!==(C=await d(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(wr.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Pp(C,Op(Lp(g)));s=ad(t.body,65536,e,n)}}wr.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,c={...x,signal:w,method:r.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};_=i&&new n(o,c);let m=await(i?k(_,x):k(o,c));const h=l&&("stream"===y||"response"===y);if(l&&(f||h&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=wr.toFiniteNumber(m.headers.get("content-length")),[n,o]=f&&Pp(t,Op(Lp(f),!0))||[];m=new a(ad(m.body,65536,n,()=>{o&&o(),E&&E()}),e)}y=y||"text";let S=await p[wr.findKey(p,y)||"text"](m,e);return!h&&E&&E(),await new Promise((t,n)=>{ul(t,n,{data:S,headers:il.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:_})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new _r("Network Error",_r.ERR_NETWORK,e,_),{cause:t.cause||t});throw _r.from(t,t&&t.code,e,_)}}},ld=new Map,pd=e=>{let t=e?e.env:{};const{fetch:n,Request:a,Response:o}=t,i=[a,o,n];let r,s,c=i.length,u=ld;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:ud(t)),u=s;return s};pd();const dd={http:$p,xhr:Zp,fetch:{get:pd}};wr.forEach(dd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const md=e=>`- ${e}`,hd=e=>wr.isFunction(e)||null===e||!1===e;var fd=(e,t)=>{e=wr.isArray(e)?e:[e];const{length:n}=e;let a,o;const i={};for(let r=0;r<n;r++){let n;if(a=e[r],o=a,!hd(a)&&(o=dd[(n=String(a)).toLowerCase()],void 0===o))throw new _r(`Unknown adapter '${n}'`);if(o&&(wr.isFunction(o)||(o=o.get(t))))break;i[n||"#"+r]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new _r("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(md).join("\n"):" "+md(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function gd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function yd(e){gd(e),e.headers=il.from(e.headers),e.data=rl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fd(e.adapter||Yu.adapter,e)(e).then(function(t){return gd(e),t.data=rl.call(e,e.transformResponse,t),t.headers=il.from(t.headers),t},function(t){return sl(t)||(gd(e),t&&t.response&&(t.response.data=rl.call(e,e.transformResponse,t.response),t.response.headers=il.from(t.response.headers))),Promise.reject(t)})}const vd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const bd={};vd.transitional=function(e,t,n){function a(e,t){return"[Axios v"+fp+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _r(a(o," has been removed"+(t?" in "+t:"")),_r.ERR_DEPRECATED);return t&&!bd[o]&&(bd[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},vd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var xd={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const i=a[o],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new _r("option "+i+" must be "+n,_r.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new _r("Unknown option "+i,_r.ERR_BAD_OPTION)}},validators:vd};const kd=xd.validators;let wd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new qu,response:new qu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xp(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:o}=t;void 0!==n&&xd.assertOptions(n,{silentJSONParsing:kd.transitional(kd.boolean),forcedJSONParsing:kd.transitional(kd.boolean),clarifyTimeoutError:kd.transitional(kd.boolean)},!1),null!=a&&(wr.isFunction(a)?t.paramsSerializer={serialize:a}:xd.assertOptions(a,{encode:kd.function,serialize:kd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xd.assertOptions(t,{baseUrl:kd.spelling("baseURL"),withXsrfToken:kd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&wr.merge(o.common,o[t.method]);o&&wr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=il.concat(i,o);const r=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,p=0;if(!s){const e=[yd.bind(this),void 0];for(e.unshift(...r),e.push(...c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=r.length;let d=t;for(;p<l;){const e=r[p++],t=r[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=yd.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return Du(ll((e=Xp(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};wr.forEach(["delete","get","head","options"],function(e){wd.prototype[e]=function(t,n){return this.request(Xp(n||{},{method:e,url:t,data:(n||{}).data}))}}),wr.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,o){return this.request(Xp(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}wd.prototype[e]=t(),wd.prototype[e+"Form"]=t(!0)});var _d=wd;class Ed{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,o){n.reason||(n.reason=new cl(e,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ed(function(t){e=t}),cancel:e}}}var Cd=Ed;const Sd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sd).forEach(([e,t])=>{Sd[t]=e});var Rd=Sd;const Td=function e(t){const n=new _d(t),a=Pi(_d.prototype.request,n);return wr.extend(a,_d.prototype,n,{allOwnKeys:!0}),wr.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(Xp(t,n))},a}(Yu);Td.Axios=_d,Td.CanceledError=cl,Td.CancelToken=Cd,Td.isCancel=sl,Td.VERSION=fp,Td.toFormData=Au,Td.AxiosError=_r,Td.Cancel=Td.CanceledError,Td.all=function(e){return Promise.all(e)},Td.spread=function(e){return function(t){return e.apply(null,t)}},Td.isAxiosError=function(e){return wr.isObject(e)&&!0===e.isAxiosError},Td.mergeConfig=Xp,Td.AxiosHeaders=il,Td.formToJSON=e=>Ju(wr.isHTMLForm(e)?new FormData(e):e),Td.getAdapter=fd,Td.HttpStatusCode=Rd,Td.default=Td;var Id=Td,jd=function(e){function t(t){var n,a,i,r,s=this;return(s=e.call(this,t)||this).token="",null===(a=null===(n=s.instance)||void 0===n?void 0:n.interceptors)||void 0===a||a.request.use(function(e){return o(o({},e),{defaults:{headers:o(o({},e.headers),{Authorization:"Bearer ".concat(s.getToken())})}})},function(e){return Promise.reject(e)}),null===(r=null===(i=s.instance)||void 0===i?void 0:i.interceptors)||void 0===r||r.response.use(function(e){return o({},e)},function(e){return Promise.reject(e)}),s}return a(t,e),t.prototype.getToken=function(){return"Bearer ".concat(this.token)},t.prototype.setToken=function(e){this.token=e},t.prototype.getUri=function(e){return this.instance.getUri(e)},t.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=Id.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},t.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},t.prototype.get=function(e,t){return this.instance.get(e,t)},t.prototype.options=function(e,t){return this.instance.options(e,t)},t.prototype.delete=function(e,t){return this.instance.delete(e,t)},t.prototype.head=function(e,t){return this.instance.head(e,t)},t.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},t.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},t.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},t.prototype.success=function(e){return null==e?void 0:e.data},t.prototype.error=function(e){throw e},t}(function(e){this.instance=Id.create(e)}),Ad=r.inspect,Od="function"==typeof Map&&Map.prototype,Pd=Object.getOwnPropertyDescriptor&&Od?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ld=Od&&Pd&&"function"==typeof Pd.get?Pd.get:null,zd=Od&&Map.prototype.forEach,Dd="function"==typeof Set&&Set.prototype,qd=Object.getOwnPropertyDescriptor&&Dd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Nd=Dd&&qd&&"function"==typeof qd.get?qd.get:null,Md=Dd&&Set.prototype.forEach,Bd="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ud="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Fd="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Wd=Boolean.prototype.valueOf,Hd=Object.prototype.toString,Gd=Function.prototype.toString,Vd=String.prototype.match,$d=String.prototype.slice,Kd=String.prototype.replace,Qd=String.prototype.toUpperCase,Jd=String.prototype.toLowerCase,Xd=RegExp.prototype.test,Yd=Array.prototype.concat,Zd=Array.prototype.join,em=Array.prototype.slice,tm=Math.floor,nm="function"==typeof BigInt?BigInt.prototype.valueOf:null,am=Object.getOwnPropertySymbols,om="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,im="function"==typeof Symbol&&"object"==typeof Symbol.iterator,rm="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===im||"symbol")?Symbol.toStringTag:null,sm=Object.prototype.propertyIsEnumerable,cm=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function um(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Xd.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var a=e<0?-tm(-e):tm(e);if(a!==e){var o=String(a),i=$d.call(t,o.length+1);return Kd.call(o,n,"$&_")+"."+Kd.call(Kd.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Kd.call(t,n,"$&_")}var lm=Ad,pm=lm.custom,dm=km(pm)?pm:null,mm={__proto__:null,double:'"',single:"'"},hm={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},fm=function e(t,n,a,o){var i=n||{};if(_m(i,"quoteStyle")&&!_m(mm,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_m(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 r=!_m(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_m(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(_m(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.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 Sm(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?um(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?um(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===a&&(a=0),a>=l&&l>0&&"object"==typeof t)return bm(t)?"[Array]":"[Object]";var p=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Zd.call(Array(e.indent+1)," ")}return{base:n,prev:Zd.call(Array(t+1),n)}}(i,a);if(void 0===o)o=[];else if(Cm(o,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(o=em.call(o)).push(n),r){var s={depth:i.depth};return _m(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,a+1,o)}return e(t,i,a+1,o)}if("function"==typeof t&&!xm(t)){var m=function(e){if(e.name)return e.name;var t=Vd.call(Gd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=Om(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Zd.call(h,", ")+" }":"")}if(km(t)){var f=im?Kd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):om.call(t);return"object"!=typeof t||im?f:Tm(f)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+Jd.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+gm(ym(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Jd.call(String(t.nodeName))+">"}if(bm(t)){if(0===t.length)return"[]";var b=Om(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(Cm(e[t],"\n")>=0)return!1;return!0}(b)?"["+Am(b,p)+"]":"[ "+Zd.call(b,", ")+" ]"}if(function(e){return"[object Error]"===Em(e)&&vm(e)}(t)){var x=Om(t,d);return"cause"in Error.prototype||!("cause"in t)||sm.call(t,"cause")?0===x.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Zd.call(x,", ")+" }":"{ ["+String(t)+"] "+Zd.call(Yd.call("[cause]: "+d(t.cause),x),", ")+" }"}if("object"==typeof t&&r){if(dm&&"function"==typeof t[dm]&&lm)return lm(t,{depth:l-a});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ld||!e||"object"!=typeof e)return!1;try{Ld.call(e);try{Nd.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return zd&&zd.call(t,function(e,n){k.push(d(n,t,!0)+" => "+d(e,t))}),jm("Map",Ld.call(t),k,p)}if(function(e){if(!Nd||!e||"object"!=typeof e)return!1;try{Nd.call(e);try{Ld.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Md&&Md.call(t,function(e){w.push(d(e,t))}),jm("Set",Nd.call(t),w,p)}if(function(e){if(!Bd||!e||"object"!=typeof e)return!1;try{Bd.call(e,Bd);try{Ud.call(e,Ud)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Im("WeakMap");if(function(e){if(!Ud||!e||"object"!=typeof e)return!1;try{Ud.call(e,Ud);try{Bd.call(e,Bd)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Im("WeakSet");if(function(e){if(!Fd||!e||"object"!=typeof e)return!1;try{return Fd.call(e),!0}catch(e){}return!1}(t))return Im("WeakRef");if(function(e){return"[object Number]"===Em(e)&&vm(e)}(t))return Tm(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!nm)return!1;try{return nm.call(e),!0}catch(e){}return!1}(t))return Tm(d(nm.call(t)));if(function(e){return"[object Boolean]"===Em(e)&&vm(e)}(t))return Tm(Wd.call(t));if(function(e){return"[object String]"===Em(e)&&vm(e)}(t))return Tm(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Sr&&t===Sr)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Em(e)&&vm(e)}(t)&&!xm(t)){var _=Om(t,d),E=cm?cm(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&rm&&Object(t)===t&&rm in t?$d.call(Em(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Zd.call(Yd.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":p?R+"{"+Am(_,p)+"}":R+"{ "+Zd.call(_,", ")+" }"}return String(t)};function gm(e,t,n){var a=n.quoteStyle||t,o=mm[a];return o+e+o}function ym(e){return Kd.call(String(e),/"/g,""")}function vm(e){return!rm||!("object"==typeof e&&(rm in e||void 0!==e[rm]))}function bm(e){return"[object Array]"===Em(e)&&vm(e)}function xm(e){return"[object RegExp]"===Em(e)&&vm(e)}function km(e){if(im)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!om)return!1;try{return om.call(e),!0}catch(e){}return!1}var wm=Object.prototype.hasOwnProperty||function(e){return e in this};function _m(e,t){return wm.call(e,t)}function Em(e){return Hd.call(e)}function Cm(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1}function Sm(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return Sm($d.call(e,0,t.maxStringLength),t)+a}var o=hm[t.quoteStyle||"single"];return o.lastIndex=0,gm(Kd.call(Kd.call(e,o,"\\$1"),/[\x00-\x1f]/g,Rm),"single",t)}function Rm(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Qd.call(t.toString(16))}function Tm(e){return"Object("+e+")"}function Im(e){return e+" { ? }"}function jm(e,t,n,a){return e+" ("+t+") {"+(a?Am(n,a):Zd.call(n,", "))+"}"}function Am(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Zd.call(e,","+n)+"\n"+t.prev}function Om(e,t){var n=bm(e),a=[];if(n){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=_m(e,o)?t(e[o],e):""}var i,r="function"==typeof am?am(e):[];if(im){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)_m(e,c)&&(n&&String(Number(c))===c&&c<e.length||im&&i["$"+c]instanceof Symbol||(Xd.call(/[^\w$]/,c)?a.push(t(c,e)+": "+t(e[c],e)):a.push(c+": "+t(e[c],e))));if("function"==typeof am)for(var u=0;u<r.length;u++)sm.call(e,r[u])&&a.push("["+t(r[u])+"]: "+t(e[r[u]],e));return a}var Pm,Lm,zm,Dm,qm,Nm,Mm,Bm,Um,Fm,Wm,Hm,Gm=fm,Vm=hs,$m=function(e,t,n){for(var a,o=e;null!=(a=o.next);o=a)if(a.key===t)return o.next=a.next,n||(a.next=e.next,e.next=a),a},Km=iu,Qm=uc,Jm=Qm([Km("%String.prototype.indexOf%")]),Xm=function(e,t){var n=Km(e,!!t);return"function"==typeof n&&Jm(e,".prototype.")>-1?Qm([n]):n},Ym=Xm,Zm=fm,eh=hs,th=iu("%Map%",!0),nh=Ym("Map.prototype.get",!0),ah=Ym("Map.prototype.set",!0),oh=Ym("Map.prototype.has",!0),ih=Ym("Map.prototype.delete",!0),rh=Ym("Map.prototype.size",!0),sh=!!th&&function(){var e,t={assert:function(e){if(!t.has(e))throw new eh("Side channel does not contain "+Zm(e))},delete:function(t){if(e){var n=ih(e,t);return 0===rh(e)&&(e=void 0),n}return!1},get:function(t){if(e)return nh(e,t)},has:function(t){return!!e&&oh(e,t)},set:function(t,n){e||(e=new th),ah(e,t,n)}};return t},ch=Xm,uh=fm,lh=sh,ph=hs,dh=iu("%WeakMap%",!0),mh=ch("WeakMap.prototype.get",!0),hh=ch("WeakMap.prototype.set",!0),fh=ch("WeakMap.prototype.has",!0),gh=ch("WeakMap.prototype.delete",!0),yh=hs,vh=fm,bh=function(){var e,t={assert:function(e){if(!t.has(e))throw new Vm("Side channel does not contain "+Gm(e))},delete:function(t){var n=e&&e.next,a=function(e,t){if(e)return $m(e,t,!0)}(e,t);return a&&n&&n===a&&(e=void 0),!!a},get:function(t){return function(e,t){if(e){var n=$m(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!$m(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var a=$m(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},xh=(dh?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new ph("Side channel does not contain "+uh(e))},delete:function(n){if(dh&&n&&("object"==typeof n||"function"==typeof n)){if(e)return gh(e,n)}else if(lh&&t)return t.delete(n);return!1},get:function(n){return dh&&n&&("object"==typeof n||"function"==typeof n)&&e?mh(e,n):t&&t.get(n)},has:function(n){return dh&&n&&("object"==typeof n||"function"==typeof n)&&e?fh(e,n):!!t&&t.has(n)},set:function(n,a){dh&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new dh),hh(e,n,a)):lh&&(t||(t=lh()),t.set(n,a))}};return n}:lh)||sh||bh,kh=String.prototype.replace,wh=/%20/g,_h="RFC3986",Eh={default:_h,formatters:{RFC1738:function(e){return kh.call(e,wh,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:_h},Ch=Eh,Sh=Object.prototype.hasOwnProperty,Rh=Array.isArray,Th=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ih=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)void 0!==e[a]&&(n[a]=e[a]);return n},jh=1024,Ah={arrayToObject:Ih,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],i=o.obj[o.prop],r=Object.keys(i),s=0;s<r.length;++s){var c=r[s],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:i,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Rh(n)){for(var a=[],o=0;o<n.length;++o)void 0!==n[o]&&a.push(n[o]);t.obj[t.prop]=a}}}(t),e},decode:function(e,t,n){var a=e.replace(/\+/g," ");if("iso-8859-1"===n)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(e){return a}},encode:function(e,t,n,a,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var r="",s=0;s<i.length;s+=jh){for(var c=i.length>=jh?i.slice(s,s+jh):i,u=[],l=0;l<c.length;++l){var p=c.charCodeAt(l);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===Ch.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=Th[p]:p<2048?u[u.length]=Th[192|p>>6]+Th[128|63&p]:p<55296||p>=57344?u[u.length]=Th[224|p>>12]+Th[128|p>>6&63]+Th[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=Th[240|p>>18]+Th[128|p>>12&63]+Th[128|p>>6&63]+Th[128|63&p])}r+=u.join("")}return r},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(Rh(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},merge:function e(t,n,a){if(!n)return t;if("object"!=typeof n){if(Rh(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(a&&(a.plainObjects||a.allowPrototypes)||!Sh.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return Rh(t)&&!Rh(n)&&(o=Ih(t,a)),Rh(t)&&Rh(n)?(n.forEach(function(n,o){if(Sh.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,a):t.push(n)}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var i=n[o];return Sh.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t},o)}},Oh=function(){var e,t={assert:function(e){if(!t.has(e))throw new yh("Side channel does not contain "+vh(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=xh()),e.set(t,n)}};return t},Ph=Ah,Lh=Eh,zh=Object.prototype.hasOwnProperty,Dh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},qh=Array.isArray,Nh=Array.prototype.push,Mh=function(e,t){Nh.apply(e,qh(t)?t:[t])},Bh=Date.prototype.toISOString,Uh=Lh.default,Fh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ph.encode,encodeValuesOnly:!1,format:Uh,formatter:Lh.formatters[Uh],indices:!1,serializeDate:function(e){return Bh.call(e)},skipNulls:!1,strictNullHandling:!1},Wh={},Hh=function e(t,n,a,o,i,r,s,c,u,l,p,d,m,h,f,g,y,v){for(var b,x=t,k=v,w=0,_=!1;void 0!==(k=k.get(Wh))&&!_;){var E=k.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");_=!0}void 0===k.get(Wh)&&(w=0)}if("function"==typeof l?x=l(n,x):x instanceof Date?x=m(x):"comma"===a&&qh(x)&&(x=Ph.maybeMap(x,function(e){return e instanceof Date?m(e):e})),null===x){if(r)return u&&!g?u(n,Fh.encoder,y,"key",h):n;x=""}if("string"==typeof(b=x)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Ph.isBuffer(x))return u?[f(g?n:u(n,Fh.encoder,y,"key",h))+"="+f(u(x,Fh.encoder,y,"value",h))]:[f(n)+"="+f(String(x))];var C,S=[];if(void 0===x)return S;if("comma"===a&&qh(x))g&&u&&(x=Ph.maybeMap(x,u)),C=[{value:x.length>0?x.join(",")||null:void 0}];else if(qh(l))C=l;else{var R=Object.keys(x);C=p?R.sort(p):R}var T=c?n.replace(/\./g,"%2E"):n,I=o&&qh(x)&&1===x.length?T+"[]":T;if(i&&qh(x)&&0===x.length)return I+"[]";for(var j=0;j<C.length;++j){var A=C[j],O="object"==typeof A&&void 0!==A.value?A.value:x[A];if(!s||null!==O){var P=d&&c?A.replace(/\./g,"%2E"):A,L=qh(x)?"function"==typeof a?a(I,P):I:I+(d?"."+P:"["+P+"]");v.set(t,w);var z=Oh();z.set(Wh,v),Mh(S,e(O,L,a,o,i,r,s,c,"comma"===a&&g&&qh(x)?null:u,l,p,d,m,h,f,g,y,z))}}return S},Gh=Ah,Vh=Object.prototype.hasOwnProperty,$h=Array.isArray,Kh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Gh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Qh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Jh=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Xh=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=r?o.slice(0,r.index):o,c=[];if(s){if(!n.plainObjects&&Vh.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(o))&&u<n.depth;){if(u+=1,!n.plainObjects&&Vh.call(Object.prototype,r[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(r[1])}if(r){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+o.slice(r.index)+"]")}return function(e,t,n,a){for(var o=a?t:Jh(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{r=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(r=[])[l]=o:"__proto__"!==u&&(r[u]=o):r={0:o}}o=r}return o}(c,t,n,a)}},Yh=function(e,t){var n,a=e,o=function(e){if(!e)return Fh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");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||Fh.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 n=Lh.default;if(void 0!==e.format){if(!zh.call(Lh.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a,o=Lh.formatters[n],i=Fh.filter;if(("function"==typeof e.filter||qh(e.filter))&&(i=e.filter),a=e.arrayFormat in Dh?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Fh.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var r=void 0===e.allowDots?!0===e.encodeDotInKeys||Fh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Fh.addQueryPrefix,allowDots:r,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Fh.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Fh.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Fh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Fh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Fh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Fh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Fh.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Fh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Fh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Fh.strictNullHandling}}(t);"function"==typeof o.filter?a=(0,o.filter)("",a):qh(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof a||null===a)return"";var r=Dh[o.arrayFormat],s="comma"===r&&o.commaRoundTrip;n||(n=Object.keys(a)),o.sort&&n.sort(o.sort);for(var c=Oh(),u=0;u<n.length;++u){var l=n[u];o.skipNulls&&null===a[l]||Mh(i,Hh(a[l],l,r,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},Zh=function(e,t){var n=function(e){if(!e)return Kh;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");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?Kh.charset:e.charset,n=void 0===e.duplicates?Kh.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Kh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Kh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Kh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Kh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Kh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Kh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Kh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Kh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Kh.decoder,delimiter:"string"==typeof e.delimiter||Gh.isRegExp(e.delimiter)?e.delimiter:Kh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Kh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Kh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Kh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Kh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Kh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Kh.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var a="string"==typeof e?function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=a.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(o=0;o<r.length;++o)0===r[o].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[o]?c="utf-8":"utf8=%26%2310003%3B"===r[o]&&(c="iso-8859-1"),s=o,o=r.length);for(o=0;o<r.length;++o)if(o!==s){var u,l,p=r[o],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,Kh.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),Kh.decoder,c,"key"),l=Gh.maybeMap(Jh(p.slice(m+1),t),function(e){return t.decoder(e,Kh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Qh(l)),p.indexOf("[]=")>-1&&(l=$h(l)?[l]:l);var h=Vh.call(n,u);h&&"combine"===t.duplicates?n[u]=Gh.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(a),r=0;r<i.length;++r){var s=i[r],c=Xh(s,a[s],n,"string"==typeof e);o=Gh.merge(o,c,n)}return!0===n.allowSparse?o:Gh.compact(o)},ef={formats:Eh,parse:Zh,stringify:Yh},tf={withCredentials:!0,timeout:9e4,baseURL:"https://jsonplaceholder.typicode.com/",headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache","Content-Type":"application/json",Accept:"application/json"},paramsSerializer:function(e){return ef.stringify(e,{indices:!1})}};!function(e){var t,n;(t=e.NotificationStatus||(e.NotificationStatus={})).SETTLED="SETTLED",t.NOT_SETTLED="NOT_SETTLED",(n=e.NotificationReason||(e.NotificationReason={})).REFUNDED="REFUNDED",n.RESOLVED="RESOLVED",n.CANCELLED="CANCELLED",n.SERVICE_SUSPENDED="SERVICE_SUSPENDED",n.ORDER_STOPPED="ORDER_STOPPED",n.DISMISS="DISMISS"}(Pm||(Pm={})),function(e){e.PAYMENTS="payments",e.INSIGHTS="insights"}(Lm||(Lm={})),function(e){var t;(t=e.CustomClaims||(e.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",t.USER_CODE="https://dashboard.dev.y.uno/user_code",t.USER_EMAIL="https://dashboard.dev.y.uno/user_email"}(zm||(zm={})),function(e){var t;(t=e.CountryCode||(e.CountryCode={})).COLOMBIA="CO",t.MEXICO="MX",t.BRAZIL="BR",t.ARGENTINA="AR",t.CHILE="CL",t.PERU="PE",t.URUGUAY="UR",t.ECUADOR="EC"}(Dm||(Dm={})),function(e){var t,n;(t=e.Locale||(e.Locale={})).EN="en",t.ES="es",t.PT="pt",(n=e.Target||(e.Target={})).BLANK="_blank",n.PARENT="_parent",n.SELF="_self",n.TOP="_top"}(qm||(qm={})),function(e){e.PAYMENTS="PAYMENTS",e.TRANSACTIONS="TRANSACTIONS",e.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",e.PAYOUTS="PAYOUTS"}(Nm||(Nm={})),function(e){e.ALL="ALL",e.DEFAULT="DEFAULT",e.CUSTOM="CUSTOM"}(Mm||(Mm={})),function(e){var t,n;(t=e.StepType||(e.StepType={})).FRAUD="FRAUD",t.PAYMENT="PAYMENT",t.THREE_D_SECURE="THREE_D_SECURE",t.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(n=e.DeclineGroupType||(e.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",n.MAC_CODE="MAC_CODE"}(Bm||(Bm={})),function(e){var t;(t=e.InsightsVolumeMetricsV2Path||(e.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",t.APPROVED_PAYMENTS="approved-payments",t.PAYMENT_METHODS="payment-methods",t.PROVIDERS="providers",t.COUNTRIES="countries",t.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",t.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(e.OverviewMetricType||(e.OverviewMetricType={}))}(Um||(Um={})),function(e){e.TRANSACTIONS="TRANSACTION_RECONCILIATION",e.SETTLEMENTS="SETTLEMENTS",e.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",e.AGENDA="AGENDA",e.SALES_CONCILIATION="SALES_CONCILIATION",e.ADVANCEMENTS="ADVANCEMENTS",e.FEES="FEES"}(Fm||(Fm={})),function(e){e.TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",e.DAILY="AGENDA_DAILY_DISTRIBUTION",e.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",e.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION"}(Wm||(Wm={})),function(e){var t;(t=e.AIGenerateStatus||(e.AIGenerateStatus={})).ACCEPTED="ACCEPTED",t.REFUSED="REFUSED",t.FRONT_FAILED="FRONT_FAILED"}(Hm||(Hm={}));var nf=["PAUSED","ACTIVE"],af={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},of="DELETED",rf={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},sf=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},cf=[{status:"CREATED",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Created",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"CREATED",sub_status:"REJECTED",icon:"WarningCircle",type:"error",label:"Created",sub_status_icon:"WarningCircle",sub_status_label:"Rejected"},{status:"ERROR",sub_status:"CREATED",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Created"},{status:"ERROR",sub_status:"ERROR",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Error"},{status:"ERROR",sub_status:"TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Timeout"},{status:"ERROR",sub_status:"PENDING_REVERSE",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Pending reverse"},{status:"ERROR",sub_status:"REVERSED_BY_TIMEOUT",icon:"WarningCircle",type:"error",label:"Error",sub_status_icon:"WarningCircle",sub_status_label:"Reversed by timeout"},{status:"SUCCEEDED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"SUCCEEDED",sub_status:"PARTIALLY_APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially approved"},{status:"SUCCEEDED",sub_status:"APPROVED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Approved"},{status:"SUCCEEDED",sub_status:"CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CAPTURED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially captured"},{status:"SUCCEEDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Succeeded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"CANCELED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"CANCELED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"info",label:"Cancellation pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"CANCELED",sub_status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled",sub_status_icon:"Prohibit",sub_status_label:"Canceled"},{status:"DECLINED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"DECLINED",sub_status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Declined"},{status:"REJECTED",sub_status:"CREATED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Created"},{status:"REJECTED",sub_status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Rejected"},{status:"REFUNDED",sub_status:"CREATED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Created"},{status:"REFUNDED",sub_status:"PARTIALLY_REFUNDED",icon:"ArrowCircleLeft",type:"success",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Partially refunded"},{status:"REFUNDED",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"secondary",label:"Refunded",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"REFUNDED",sub_status:"REFUNDED",icon:"ArrowCircleLeft",type:"secondary",label:"Refunded",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Refunded"},{status:"PENDING",sub_status:"CREATED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"PENDING",sub_status:"AUTHORIZED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Authorized"},{status:"PENDING",sub_status:"WAITING_ADDITIONAL_STEP",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Waiting additional step"},{status:"PENDING",sub_status:"PENDING_PROVIDER_CONFIRMATION",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending provider confirmation"},{status:"VERIFIED",sub_status:"CREATED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Created"},{status:"VERIFIED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Verified",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"READY_TO_PAY",sub_status:"CREATED",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Created"},{status:"READY_TO_PAY",sub_status:"READY_TO_PAY",icon:"FlagBanner",type:"info",label:"Ready to pay",sub_status_icon:"FlagBanner",sub_status_label:"Ready to pay"},{status:"EXPIRED",sub_status:"CREATED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Created"},{status:"EXPIRED",sub_status:"EXPIRED",icon:"Clock",type:"error",label:"Expired",sub_status_icon:"Clock",sub_status_label:"Expired"},{status:"PENDING",sub_status:"IN_PROCESS",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"In process"},{status:"PENDING",sub_status:"PENDING_FRAUD_REVIEW",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Clock",sub_status_label:"Pending fraud review"},{status:"REJECTED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Rejected",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"DECLINED",sub_status:"FRAUD_DECLINED",icon:"Prohibit",type:"error",label:"Declined",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"FRAUD_VERIFIED",sub_status:"FRAUD_SCREENING_VERIFIED",icon:"CheckCircle",type:"success",label:"Fraud verified",sub_status_icon:"CheckCircle",sub_status_label:"Fraud screening verified"},{status:"SUCCEEDED",sub_status:"PARTIALLY_CHARGEBACKED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Partially chargebacked"},{status:"IN_DISPUTE",sub_status:"RECEIVED",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Received"},{status:"IN_DISPUTE",sub_status:"PENDING_REVIEW",icon:"ArrowCircleLeft",type:"secondary",label:"In dispute",sub_status_icon:"ArrowCircleLeft",sub_status_label:"Pending review"},{status:"CHARGEBACK",sub_status:"LOST",icon:"Prohibit",type:"error",label:"Chargeback",sub_status_icon:"Prohibit",sub_status_label:"Lost"},{status:"SUCCEEDED",sub_status:"VERIFIED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"CheckCircle",sub_status_label:"Verified"},{status:"SUCCEEDED",sub_status:"FRAUD_DECLINED",icon:"CheckCircle",type:"success",label:"Succeeded",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"},{status:"PENDING",sub_status:"FRAUD_DECLINED",icon:"Clock",type:"warning",label:"Pending",sub_status_icon:"Prohibit",sub_status_label:"Fraud declined"}],uf=[{status:"SUCCEEDED",icon:"CheckCircle",type:"success",label:"Succeeded"},{status:"CREATED",icon:"FlagBanner",type:"info",label:"Created"},{status:"ERROR",icon:"WarningCircle",type:"error",label:"Error"},{status:"EXPIRED",icon:"Clock",type:"error",label:"Expired"},{status:"CANCELED",icon:"Prohibit",type:"error",label:"Canceled"},{status:"DECLINED",icon:"Prohibit",type:"error",label:"Declined"},{status:"PENDING",icon:"Clock",type:"warning",label:"Pending"},{status:"REJECTED",icon:"Prohibit",type:"error",label:"Rejected"},{status:"WON",icon:"CheckCircle",type:"success",label:"Won"},{status:"LOST",icon:"WarningCircle",type:"error",label:"Lost"}],lf=[{id:1,status:"RECONCILED",sub_status:"AUTOMATICALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Automatically",sub_status_icon:"CheckCircle"},{id:2,status:"RECONCILED",sub_status:"MANUALLY",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Manually",sub_status_icon:"CheckCircle"},{id:3,status:"NOT_RECONCILED",sub_status:"PENDING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Pending",sub_status_icon:"Clock"},{id:4,status:"NOT_RECONCILED",sub_status:"MISSING",type:"warning",label:"Not reconciled",icon:"Clock",sub_status_label:"Missing",sub_status_icon:"Clock"},{id:5,status:"RECONCILED",sub_status:"STATUS_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Status conflict",sub_status_icon:"CheckCircle"},{id:6,status:"RECONCILED",sub_status:"DATE_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Date conflict",sub_status_icon:"CheckCircle"},{id:7,status:"RECONCILED",sub_status:"AMOUNT_CONFLICT",type:"success",label:"Reconciled",icon:"CheckCircle",sub_status_label:"Amount conflict",sub_status_icon:"CheckCircle"},{id:8,status:"RECONCILING_INSTALLMENTS",sub_status:"PENDING_INSTALLMENTS",type:"warning",label:"Reconciling installments",icon:"Clock",sub_status_label:"Pending installments",sub_status_icon:"Clock"},{id:9,status:"NON_RECONCILABLE",sub_status:"AUTOMATICALLY",type:"warning",label:"Non Reconciliable",icon:"Clock",sub_status_label:"Automatically",sub_status_icon:"Clock"}],pf=[{identifier:"America/Argentina/Buenos_Aires",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Asuncion",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Bogota",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Caracas",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Chicago",utc_offset:{dst:"-05:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Costa_Rica",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/El_Salvador",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guatemala",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Guayaquil",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Havana",utc_offset:{dst:"-05:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/La_Paz",utc_offset:{dst:"-04:00",std:"-04:00"},abbreviation:{dst:"GMT",std:"-4"}},{identifier:"America/Lima",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Managua",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"America/Mexico_City",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Montevideo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Panama",utc_offset:{dst:"-05:00",std:"-05:00"},abbreviation:{dst:"GMT",std:"-5"}},{identifier:"America/Phoenix",utc_offset:{dst:"-07:00",std:"-07:00"},abbreviation:{dst:"GMT",std:"-7"}},{identifier:"America/Santiago",utc_offset:{dst:"-04:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Sao_Paulo",utc_offset:{dst:"-03:00",std:"-03:00"},abbreviation:{dst:"GMT",std:"-3"}},{identifier:"America/Tegucigalpa",utc_offset:{dst:"-06:00",std:"-06:00"},abbreviation:{dst:"GMT",std:"-6"}},{identifier:"Asia/Famagusta",utc_offset:{dst:"+02:00",std:"+03:00"},abbreviation:{dst:"EET",std:""}},{identifier:"Asia/Seoul",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"KST",std:""}},{identifier:"Asia/Shanghai",utc_offset:{dst:"+08:00",std:"+08:00"},abbreviation:{dst:"CST",std:""}},{identifier:"Asia/Tokyo",utc_offset:{dst:"+09:00",std:"+09:00"},abbreviation:{dst:"JST",std:""}},{identifier:"Australia/Sydney",utc_offset:{dst:"+10:00",std:"+11:00"},abbreviation:{dst:"AEST",std:""}},{identifier:"Coordinated Universal Time",utc_offset:{dst:"+00:00",std:"+00:00"},abbreviation:{dst:"UTC",std:""}},{identifier:"Europe/Madrid",utc_offset:{dst:"+01:00",std:"+01:00"},abbreviation:{dst:"GMT",std:"+1"}},{identifier:"Europe/Moscow",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"MSK",std:""}},{identifier:"India",utc_offset:{dst:"+03:00",std:"+03:00"},abbreviation:{dst:"IST",std:""}}],df=[{id:1,value:"ACCOUNTS",type:"source"},{id:2,value:"CHECKOUT",type:"source"},{id:3,value:"CREATE",type:"event"},{id:4,value:"UPDATE",type:"event"},{id:5,value:"CONNECTIONS",type:"source"},{id:6,value:"ROLES",type:"source"},{id:7,value:"ROUTING",type:"source"},{id:8,value:"TEAMS",type:"source"},{id:9,value:"WEBHOOKS",type:"source"},{id:10,value:"PAYMENT_LINKS",type:"source"},{id:11,value:"DELETE",type:"event"}],mf={docs_url:"https://docs.y.uno/reference/api-reference-overview"},hf={en:[{text:"Home",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"en",submenues:null},{text:"Payments",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"en",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Payment links",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"Connections",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"en",submenues:null},{text:"Reconciliations",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"en",submenues:null},{text:"Routing",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"en",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"en",submenues:null},{text:"Developers",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"en",submenues:null},{text:"SUPPORT",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"en",submenues:null},{text:"API Reference",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"en",submenues:null},{text:"Audit logs",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"en",submenues:null}],pt:[{text:"Pagamentos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"pt",submenues:null},{text:"Início",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"pt",submenues:null},{text:"ASSISTÊNCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"pt",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"pt",submenues:null},{text:"Programadores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Links de pagamento",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"Reconciliações",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"pt",submenues:null},{text:"Auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"pt",submenues:null},{text:"API referência",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"pt",submenues:null},{text:"Conexões",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"pt",submenues:null},{text:"Roteamento",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"pt",submenues:null}],es:[{text:"Insights",pathname:"/insights",position:2,icon:"ChartLine",type:null,target:null,permission:"access_actionable_payment_insights",locale:"es",submenues:null},{text:"Inicio",pathname:"/",position:1,icon:"Monitor",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Pagos",pathname:"/payments",position:3,icon:"ArrowsLeftRight",type:null,target:null,permission:"view_payment_transactions",locale:"es",submenues:null},{text:"Ruteo",pathname:"/routing",position:8,icon:"TreeStructure",type:null,target:null,permission:"view_your_processing_routes",locale:"es",submenues:null},{text:"Checkout builder",pathname:"/checkout-builder",position:9,icon:"ShoppingCart",type:null,target:null,permission:"view_your_checkout",locale:"es",submenues:null},{text:"Desarrolladores",pathname:"/developers",position:10,icon:"Code",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Registros de auditoria",pathname:"/audit",position:14,icon:"FileSearch",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"ASISTENCIA",pathname:null,position:11,icon:"Monitor",type:"SUB_HEADER",target:null,permission:"all",locale:"es",submenues:null},{text:"Risk conditions",pathname:"/risk-conditions",position:4,icon:"ShieldWarning",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Documentación de la API",pathname:"https://docs.y.uno/reference/introduction",position:13,icon:"TerminalWindow",type:null,target:"_blank",permission:"all",locale:"es",submenues:null},{text:"Enlaces de pago",pathname:"/payment-links",position:5,icon:"LinkSimple",type:null,target:null,permission:"all",locale:"es",submenues:null},{text:"Conexiones",pathname:"/connections",position:6,icon:"BoundingBox",type:null,target:null,permission:"view_connections",locale:"es",submenues:null},{text:"Conciliaciones",pathname:"/reconciliations",position:7,icon:"Swap",type:null,target:null,permission:"view_settlement_reports",locale:"es",submenues:null}]},ff=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const gf=[];for(let e=0;e<256;++e)gf.push((e+256).toString(16).slice(1));let yf;const vf=new Uint8Array(16);var bf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xf(e,t,n){if(bf.randomUUID&&!t&&!e)return bf.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!yf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yf=crypto.getRandomValues.bind(crypto)}return yf(vf)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return function(e,t=0){return(gf[e[t+0]]+gf[e[t+1]]+gf[e[t+2]]+gf[e[t+3]]+"-"+gf[e[t+4]]+gf[e[t+5]]+"-"+gf[e[t+6]]+gf[e[t+7]]+"-"+gf[e[t+8]]+gf[e[t+9]]+"-"+gf[e[t+10]]+gf[e[t+11]]+gf[e[t+12]]+gf[e[t+13]]+gf[e[t+14]]+gf[e[t+15]]).toLowerCase()}(a)}var kf=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},wf=function(e){function r(t){var n=t?o(o({},tf),t):tf;return e.call(this,n)||this}return a(r,e),r.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},r.prototype.updateReconciliationReportTemplate=function(e){var t=e.type===Fm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.put("/v1/reconciliation/reports/templates",n)},r.prototype.createReconciliationReportTemplate=function(e){var t=e.type===Fm.TRANSACTIONS?"TRANSACTIONS":e.type,n=o(o({},e),{type:t});return this.post("/v1/reconciliation/reports/templates",n)},r.prototype.getReconciliationTransactions=function(e){var t=e.account_code;return delete e.account_code,this.post("v2/reconciliation/transactions",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationSettlements=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/settlements",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationMetrics=function(e){var t=e.account_code;return delete e.account_code,this.post("/reconciliation/reports",{account_codes:(null==t?void 0:t.split(","))||[]},{params:e})},r.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},r.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},r.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},r.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},r.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},r.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},r.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},r.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},r.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},r.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},r.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},r.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},r.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},r.prototype.postPaymentsLazy=function(e){var t=e.account_code,n=e.metadata,a=i(e,["account_code","metadata"]);return a.start_date||(a.start_date=new Date),a.end_date||(a.end_date=new Date),this.post("/payments/lazy",o({account_codes:(null==t?void 0:t.split(","))||[]},n&&{metadata_filters:n.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})}),{params:a})},r.prototype.postPayouts=function(e){var t=e.account_code,n=e.metadata,a=i(e,["account_code","metadata"]);return a.start_date||(a.start_date=new Date),a.end_date||(a.end_date=new Date),this.post("/payouts",o({account_codes:(null==t?void 0:t.split(","))||[]},n&&{metadata_filters:n.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})}),{params:a})},r.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},r.prototype.postPaymentsEvaluated=function(e){e.account_code;var t=i(e,["account_code"]);return t.start_date||(t.start_date=new Date),t.end_date||(t.end_date=new Date),this.post("/payments/evaluated",t)},r.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},r.prototype.postTransactions=function(e){var t=e.account_code,n=e.metadata,a=i(e,["account_code","metadata"]);return this.post("/v2/transactions",o({account_codes:(null==t?void 0:t.split(","))||[]},n&&{metadata_filters:n.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})}),{params:a})},r.prototype.postFraudTransactions=function(e){var t=e.account_code,n=e.metadata,a=i(e,["account_code","metadata"]);return this.post("/fraud-transactions",o({account_codes:(null==t?void 0:t.split(","))||[]},n&&{metadata_filters:n.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})}),{params:a})},r.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},r.prototype.getPayoutTransactionDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/".concat(e.payout_code,"/transaction/").concat(e.transaction_code,"/detail"),{headers:t})},r.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},r.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,a=e.country,o=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(a),o?{}:{headers:i})},r.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},r.prototype.createOperationTransaction=function(e,t,n,a){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(a),e)},r.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},r.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},r.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},r.prototype.uploadChargebacks=function(e,t,n,a){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":xf()}})},r.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},r.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},r.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},r.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},r.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},r.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},r.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},r.prototype.getAllOrganization=function(){return this.get("/organizations/all")},r.prototype.getProviderParams=function(e,t){var n,a=localStorage.getItem("x-organization-code"),o={"x-organization-code":a?null===(n=JSON.parse(a))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:o})},r.prototype.getIntegrationByAccountV2=function(e){var t=e.accountCode,n={"x-organization-code":e.organizationCode,"x-account-code":t};return this.post("/connections/my-connections",{account_code:t},{headers:n})},r.prototype.putCosts=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.put("/connections/costs",{costs:[e]})]})})},r.prototype.updateOrganizationStatus=function(){return t(this,void 0,void 0,function(){return n(this,function(e){return[2,this.patch("/organizations/status")]})})},r.prototype.getIntegrationParams=function(e){var t=e.accountCode,n=e.integration_code;return this.get("/connections/integration-params/".concat(n),t?{headers:{"x-account-code":t}}:{})},r.prototype.getConnectionsByPaymentMethod=function(e,a){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.get("/organizations/connections/".concat(e,"/").concat(a))]})})},r.prototype.getHashPylon=function(){return this.get("/pylon-hash")},r.prototype.getConnections=function(){return this.get("/connections")},r.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},r.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,a="/connections/change-status";if(t.status==of)return delete t.status,this.delete(a,{data:t});Object.values(nf).includes(null==t?void 0:t.status)&&(a="".concat(a,"/").concat(af[t.status]),delete t.status);var o={"x-account-code":n};return this.post(a,t,{headers:o})},r.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},r.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},r.prototype.patchConnection=function(e){var t,n=e.payload,a=e.connectionCode,i=localStorage.getItem("account"),r=i?null===(t=JSON.parse(i).value)||void 0===t?void 0:t.code:"";return this.patch("/connections/".concat(a),o({account_code:r},n))},r.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},r.prototype.getDialogs=function(){return this.get("/dialogs")},r.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},r.prototype.getWebhooksV3=function(e){var t=e.accountCode,n=e.name;return this.post("/accounts/webhooks-v2/search",{name:n},{headers:{"x-account-code":t}})},r.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},r.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},r.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},r.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},r.prototype.getMenu=function(){return this.get("/cms/menu")},r.prototype.postWebhookLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/webhooks/organization",o,{params:a})},r.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},r.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},r.prototype.postApiLogs=function(e){var t=e.payload,n=t.account_code,a=i(t,["account_code"]),o={account_codes:n};return this.post("/v2/api-logs/organization",o,{params:a})},r.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},r.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},r.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},r.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},r.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},r.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},r.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},r.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},r.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},r.prototype.getLocales=function(){return this.get("/cms/locales")},r.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},r.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},r.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},r.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},r.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},r.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},r.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},r.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},r.prototype.postSmartRoutingPublishVersion=function(e,t,n){var a={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:a})},r.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},r.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},r.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},r.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},r.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},r.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},r.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},r.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},r.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},r.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},r.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},r.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},r.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},r.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},r.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},r.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},r.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},r.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},r.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},r.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},r.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},r.prototype.getInsightsMetricsConversionRateV2=function(e,t){var n=e.account_code,a=e.connection_name,r=e.metadata,s=i(e,["account_code","connection_name","metadata"]),c=kf(n);return a&&(c.connection_name=a.split(",")),r&&(c=o(o({},c),{metadata_filters:r.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})})),this.post("/insights/conversion-rate/".concat(t),c,{params:s})},r.prototype.getInsightsMetricsConversionRateViewMore=function(e,t){var n=e.account_code,a=e.metadata,r=i(e,["account_code","metadata"]),s=kf(n);return a&&(s=o(o({},s),{metadata_filters:a.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})})),this.post("/insights/conversion-rate/cards/metrics/".concat(t),s,{params:r})},r.prototype.getInsightFallbackMetrics=function(e){var t=e.account_code,n=e.metadata,a=i(e,["account_code","metadata"]),r=kf(t);return n&&(r=o(o({},r),{metadata_filters:n.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})})),this.post("/insights/conversion-rate/fallback",r,{params:a})},r.prototype.getInsightsMetricsVolume=function(e,t){var n=t.connection_name,a=t.metadata,r=i(t,["connection_name","metadata"]),s={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return n&&(s=o(o({},s),{connection_name:null==n?void 0:n.split(",")})),a&&(s=o(o({},s),{metadata_filters:a.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})})),this.post("/insights/volume/metrics",s,{params:r})},r.prototype.getInsightsMetricsVolumeV2=function(e,t,n){var a=n.connection_name,r=n.metadata,s=i(n,["connection_name","metadata"]),c={account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]};return a&&(c=o(o({},c),{connection_name:null==a?void 0:a.split(",")})),r&&(c=o(o({},c),{metadata_filters:r.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})})),this.post("/insights/volume/".concat(t),c,{params:s})},r.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},r.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},r.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},r.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},r.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},r.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},r.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},r.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},r.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},r.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},r.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},r.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},r.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.getInsightOverview=function(e){var t=e.account_code,n=e.connection_name,a=e.metadata,r=i(e,["account_code","connection_name","metadata"]),s=kf(t);return n&&(s=o(o({},s),{connection_name:null==n?void 0:n.split(",")})),a&&(s=o(o({},s),{metadata_filters:a.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})})),this.post("/insights/overview",s,{params:r})},r.prototype.getInsightOverviewV3=function(e,t){var n=e.account_code,a=e.connection_name,r=e.metadata,s=i(e,["account_code","connection_name","metadata"]),c=kf(n);return a&&(c=o(o({},c),{connection_name:null==a?void 0:a.split(",")})),r&&(c=o(o({},c),{metadata_filters:r.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})})),this.post("/insights/overview/".concat(t),c,{params:s})},r.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},r.prototype.getInsightsMetricsTotalPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/payments",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getInsightsMetricsCustomerPaymentsAndFraud=function(e,t){return this.post("/insights/payments-and-fraud/customer",{account_codes:(null==e?void 0:e.length)?null==e?void 0:e.split(","):[]},{params:t})},r.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},r.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},r.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},r.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},r.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},r.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),a=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":a}})},r.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},r.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,a={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:a})},r.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},r.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,a={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:a})},r.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload,i={"x-account-code":t,"x-environment":a,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",o,{headers:i})},r.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},r.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},r.prototype.createReportV2=function(e){return this.post("/reports",e)},r.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},r.prototype.reportsList=function(){return this.get("/reports")},r.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},r.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},r.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},r.prototype.getReportTemplates=function(){return this.get("/reports/templates")},r.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},r.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},r.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},r.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},r.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},r.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},r.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},r.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},r.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},r.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},r.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},r.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},r.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},r.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},r.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},r.prototype.getRefundPdf=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:a})},r.prototype.getProofOfCancel=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:a})},r.prototype.getProofOfPayment=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:a})},r.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},r.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},r.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},r.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},r.prototype.getProfile=function(){return this.get("/user")},r.prototype.getUserFull=function(){return this.get("/user-full")},r.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},r.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},r.prototype.getUsersToImpersonate=function(e,t,n,a,i){void 0===n&&(n=1),void 0===a&&(a=10);var r=o({account_codes:t||[],page:n,page_size:a},i&&{search_value:i});return this.post("/impersonation/user/organization/".concat(e,"/users-to-impersonate"),r)},r.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},r.prototype.updateProfile=function(e){return this.patch("/user",e)},r.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},r.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},r.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},r.prototype.getAccountsV2=function(){return this.get("/accounts-user")},r.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},r.prototype.putAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:a})},r.prototype.deleteAccountsUserMassive=function(e,t,n){var a={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:a})},r.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},r.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,a=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:a},{headers:{"x-account-code":n}})},r.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},r.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},r.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},r.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},r.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},r.prototype.pathNotification=function(e){return this.patch("/notifications",e)},r.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},r.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},r.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:a,page:o,page_size:i},{headers:r})},r.prototype.getRoles=function(){return this.get("/teams/roles")},r.prototype.setCustodian=function(){return this.post("/teams/custodian")},r.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},r.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},r.prototype.editRoles=function(e,t){var n=e.payload,a=e.id;return this.patch("/teams/roles/".concat(a),n,{headers:{"x-account-code":t}})},r.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},r.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},r.prototype.getFeatureFlagId=function(e){var t=e.name,n=i(e,["name"]);return this.post("/feature-flags/evaluate",{name:t,parameters:n})},r.prototype.getFeatureFlagIdAll=function(e){var a=e.accountCode;return t(this,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return[4,this.get("/feature-flags/names",a?{headers:{"x-account-code":a}}:{})];case 1:return e=n.sent(),t={},e.data.feature_flag_names.forEach(function(e){t[e]=!0}),[2,{data:t,status:200,statusText:"OK",headers:{},config:{}}]}})})},r.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},r.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},r.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},r.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},r.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},r.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},r.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},r.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},r.prototype.getAuditEvents=function(e){return this.post("v2/events/organization?time_zone=".concat(null==e?void 0:e.time_zone,"&now=").concat(null==e?void 0:e.now,"&page=").concat(null==e?void 0:e.page,"&size=").concat(null==e?void 0:e.size,"&periodicity=").concat(e.periodicity,"&event=").concat(e.event,"&source=").concat(e.source,"&search=").concat(e.search,"&start_date=").concat(e.start_date,"&end_date=").concat(e.end_date),{account_codes:null==e?void 0:e.account_code})},r.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},r.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},r.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},r.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(a),t)},r.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},r.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},r.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},r.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},r.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},r.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},r.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},r.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},r.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},r.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},r.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},r.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},r.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},r.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},r.prototype.postBlockList=function(e,t,n,a){var o={name:t,account_codes:e,page:n,size:a};return this.post("/blacklist",o)},r.prototype.getBlackListSummary=function(e,t){return void 0===t&&(t=null),this.get("/blacklist/get-one/".concat(e,"/summary"),t?{headers:{"x-account-code":t}}:{})},r.prototype.getBlacklistDetail=function(e,t,n,a,o){void 0===n&&(n=26),void 0===a&&(a=null),void 0===o&&(o=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return o&&(null==o?void 0:o.length)>0&&(i+="&search=".concat(o)),this.get(i,a?{headers:{"x-account-code":a}}:{})},r.prototype.getAllowlistDetail=function(e,t){return void 0===t&&(t=null),this.get("/yuno-fraud-screening-int/allow-lists/".concat(e),t?{headers:{"x-account-code":t}}:{})},r.prototype.postAllowlistItems=function(e){var t=e.payload;return this.post("yuno-fraud-screening-int/allow-lists/".concat(t.code,"/items/pageable"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},r.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},r.prototype.patchChangeStatusAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.code),{active:t.active},(null==t?void 0:t.account)&&{headers:{"x-account-code":null==t?void 0:t.account}})},r.prototype.patchChangeStatusAllowlistItem=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.item_allowlist_code),{active:t.active})},r.prototype.patchAddAllowlistItems=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items"),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.deleteAllowlistItem=function(e){var t=e.payload,n={"x-account-code":t.account_code};return this.delete("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/items/").concat(t.allowlist_item_id),{headers:n})},r.prototype.validateAllowlistItems=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.patchAllowlist=function(e){var t=e.payload;return this.patch("/yuno-fraud-screening-int/allow-lists/".concat(t.allowlist_code),t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},r.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},r.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},r.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},r.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},r.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,a=e.file,o=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:a},{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)}})},r.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},r.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":a}})},r.prototype.valiateBlockListItems=function(e){var t=e.payload;return this.post("/blacklist/".concat(t.blocklist_code,"/validate/duplicate-items"),t,{headers:{"x-account-code":t.account_code}})},r.prototype.getVelocityRules=function(e){return this.post("/yuno-fraud-screening-int/velocity-rules-list",o({},e))},r.prototype.postChangePaymentsWebhook=function(e){var t=e.status,n=e.paymentCode;return this.post("/yuno-fraud-screening-int/payments/webhook",{status:t,payment_code:n})},r.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/batch-refunds/upload-s3-file",t,{onUploadProgress:function(e){return null==n?void 0:n(e.total?Math.round(100*e.loaded/e.total):0)},cancelToken:a.token}),cancel:function(){return a.cancel()}}},r.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,a=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:a.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return a.cancel()}}},r.prototype.batchRefundByFile=function(e){var t=e.payload;return this.post("/batch-refund-by-file",o({},t))},r.prototype.uploadBatchRefundsV2=function(e){var t=e.payload;return this.post("/batch-refunds",o({},t))},r.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},r.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:a})},r.prototype.getBatchRefundUserFileDownload=function(e,t,n){var a={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:a})},r.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},r.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},r.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},r.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},r.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},r.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},r.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},r.prototype.getRule=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/".concat(e.idRule),(null==e?void 0:e.accountCode)&&{headers:{"x-account-code":null==e?void 0:e.accountCode}})},r.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},r.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},r.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},r.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},r.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},r.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},r.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},r.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},r.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},r.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},r.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},r.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},r.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},r.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(rf[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(rf[null==e?void 0:e.type],"/export");return this.post(t,e)},r.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},r.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},r.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},r.prototype.getSamlConfig=function(){return this.get("/saml-config")},r.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},r.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},r.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},r.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},r.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},r.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},r.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},r.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},r.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},r.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},r.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},r.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},r.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},r.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},r.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},r.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},r.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},r.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},r.prototype.getLanguages=function(){return this.get("/languages")},r.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},r.prototype.getCommunications=function(e){return this.post("/communications",e)},r.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},r.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},r}(jd),_f={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:process.env.BFF_URL_PROD,BFF_URL_SBX:process.env.BFF_URL_SBX,BFF_URL_STG:process.env.BFF_URL_STG,BFF_URL_DEV:process.env.BFF_URL_DEV,BFF_URL_LOCAL:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:process.env.WS_URL_LOCAL,WS_URL_PROD:process.env.WS_URL_PROD,WS_URL_SBX:process.env.WS_URL_SBX,WS_URL_STG:process.env.WS_URL_STG,WS_URL_DEV:process.env.WS_URL_DEV},Ef=function(e){function i(t){return e.call(this,t)||this}return a(i,e),i.refreshInstance=function(e){var t;return this.classInstance=new i(o(o({},e),{baseURL:_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),null===(t=this.classInstance.instance.interceptors)||void 0===t||t.response.use(function(e){return e},function(e){var t;if(401!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status))return Promise.reject(e);window.location.href="/auth/logout"}),this.classInstance},i.getInstance=function(e){var t,n;if(this.classInstance){var a=localStorage.getItem("account");if(a){var r=null===(n=null===(t=JSON.parse(a))||void 0===t?void 0:t.value)||void 0===n?void 0:n.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!r&&""!==r&&r!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=r)}return this.classInstance}return this.classInstance=new i(o(o({},e),{baseURL:(null==e?void 0:e.baseURL)||_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),this.classInstance},i.setMode=function(e){return t(this,void 0,void 0,function(){return n(this,function(t){return this.classInstance.instance.interceptors.request.use(function(t){return t.headers&&(t.headers["X-Environment"]=e),t},function(e){return Promise.reject(e)}),[2]})})},i}(wf);class Cf{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Sf="undefined"==typeof window||"Deno"in window;function Rf(){}function Tf(e){return"number"==typeof e&&e>=0&&e!==1/0}function If(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jf(e,t,n){return Wf(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Af(e,t,n){return Wf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Of(e,t){const{type:n="all",exact:a,fetchStatus:o,predicate:i,queryKey:r,stale:s}=e;if(Wf(r))if(a){if(t.queryHash!==Lf(r,t.options))return!1}else if(!Df(t.queryKey,r))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Pf(e,t){const{exact:n,fetching:a,predicate:o,mutationKey:i}=e;if(Wf(i)){if(!t.options.mutationKey)return!1;if(n){if(zf(t.options.mutationKey)!==zf(i))return!1}else if(!Df(t.options.mutationKey,i))return!1}return("boolean"!=typeof a||"loading"===t.state.status===a)&&!(o&&!o(t))}function Lf(e,t){return((null==t?void 0:t.queryKeyHashFn)||zf)(e)}function zf(e){return JSON.stringify(e,(e,t)=>Uf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Df(e,t){return qf(e,t)}function qf(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!qf(e[n],t[n])))}function Nf(e,t){if(e===t)return e;const n=Bf(e)&&Bf(t);if(n||Uf(e)&&Uf(t)){const a=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,r=n?[]:{};let s=0;for(let a=0;a<i;a++){const i=n?a:o[a];r[i]=Nf(e[i],t[i]),r[i]===e[i]&&s++}return a===i&&s===a?e:r}return t}function Mf(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Bf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uf(e){if(!Ff(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ff(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Ff(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wf(e){return Array.isArray(e)}function Hf(e){return new Promise(t=>{setTimeout(t,e)})}function Gf(e){Hf(0).then(e)}function Vf(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Nf(e,t):t}const $f=new class extends Cf{constructor(){super(),this.setup=e=>{if(!Sf&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Kf=["online","offline"];const Qf=new class extends Cf{constructor(){super(),this.setup=e=>{if(!Sf&&window.addEventListener){const t=()=>e();return Kf.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Kf.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Jf(e){return Math.min(1e3*2**e,3e4)}function Xf(e){return"online"!==(null!=e?e:"online")||Qf.isOnline()}class Yf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Zf(e){return e instanceof Yf}function eg(e){let t,n,a,o=!1,i=0,r=!1;const s=new Promise((e,t)=>{n=e,a=t}),c=()=>!$f.isFocused()||"always"!==e.networkMode&&!Qf.isOnline(),u=a=>{r||(r=!0,null==e.onSuccess||e.onSuccess(a),null==t||t(),n(a))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),a(n))},p=()=>new Promise(n=>{t=e=>{const t=r||!c();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,r||null==e.onContinue||e.onContinue()}),d=()=>{if(r)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,a;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(a=e.retryDelay)?a:Jf,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!o&&h?(i++,null==e.onFail||e.onFail(i,t),Hf(m).then(()=>{if(c())return p()}).then(()=>{o?l(t):d()})):l(t)})};return Xf(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{r||(l(new Yf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const tg=console;const ng=function(){let e=[],t=0,n=e=>{e()},a=e=>{e()};const o=a=>{t?e.push(a):Gf(()=>{n(a)})},i=()=>{const t=e;e=[],t.length&&Gf(()=>{a(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e}}}();class ag{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tf(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Sf?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class og extends ag{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||tg,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,a=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=a?a:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Vf(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Rf).catch(Rf):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!If(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,a;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=function(){if("function"==typeof AbortController)return new AbortController}(),r={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(r);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(r)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;(s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(a=c.fetchOptions)?void 0:a.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,a,o;(Zf(e)&&e.silent||this.dispatch({type:"error",error:e}),Zf(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=eg({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,a,o;if(void 0===e)return"production"!==process.env.NODE_ENV&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),void l(new Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(a=(o=this.cache.config).onSettled)||a.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,a;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Xf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(a=e.dataUpdatedAt)?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Zf(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ng.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class ig extends Cf{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var a;const o=t.queryKey,i=null!=(a=t.queryHash)?a:Lf(o,t);let r=this.get(i);return r||(r=new og({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(r)),r}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ng.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Af(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Of(n,e))}findAll(e,t){const[n]=Af(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Of(n,e)):this.queries}notify(e){ng.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ng.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ng.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class rg extends ag{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||tg,this.observers=[],this.state=e.state||sg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=eg({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,a,o,i,r,s,c,u;if(!t){var l,p,d,m;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(p=this.mutationCache.config).onMutate)?void 0:l.call(p,this.state.variables,this));const e=await(null==(d=(m=this.options).onMutate)?void 0:d.call(m,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(a=this.mutationCache.config).onSuccess)?void 0:n.call(a,h,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,h,this.state.variables,this.state.context)),await(null==(r=(s=this.mutationCache.config).onSettled)?void 0:r.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,f,g,y,v,b,x,k;throw await(null==(h=(f=this.mutationCache.config).onError)?void 0:h.call(f,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(k=this.options).onSettled)?void 0:x.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Xf(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),ng.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function sg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class cg extends Cf{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const a=new rg({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(a),a}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ng.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>Pf(e,t))}findAll(e){return this.mutations.filter(t=>Pf(e,t))}notify(e){ng.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return ng.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Rf)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function ug(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,a,o,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(a=e.fetchOptions)||null==(o=a.meta)?void 0:o.fetchMore,u=null==c?void 0:c.pageParam,l="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),d=(null==(i=e.state.data)?void 0:i.pages)||[],m=(null==(r=e.state.data)?void 0:r.pageParams)||[];let h=m,f=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,a)=>(h=a?[t,...h]:[...h,t],a?[n,...e]:[...e,n]),v=(t,n,a,o)=>{if(f)return Promise.reject("Cancelled");if(void 0===a&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:a,meta:e.options.meta};var r;r=i,Object.defineProperty(r,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?f=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{f=!0}),e.signal}});const s=g(i);return Promise.resolve(s).then(e=>y(t,a,e,o))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:lg(e.options,d);b=v(d,t,n)}else if(p){const t=void 0!==u,n=t?u:(x=e.options,k=d,null==x.getPreviousPageParam?void 0:x.getPreviousPageParam(k[0],k));b=v(d,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=!s||!d[0]||s(d[0],0,d)?v([],t,m[0]):Promise.resolve(y([],m[0],d[0]));for(let n=1;n<d.length;n++)b=b.then(a=>{if(!s||!d[n]||s(d[n],n,d)){const o=t?m[n]:lg(e.options,a);return v(a,t,o)}return Promise.resolve(y(a,m[n],d[n]))})}else b=v([]);var x,k;const w=b.then(e=>({pages:e,pageParams:h}));return w}}}}function lg(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class pg extends Cf{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),dg(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mg(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mg(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),"production"!==process.env.NODE_ENV&&void 0!==(null==e?void 0:e.isDataEqual)&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Mf(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&hg(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===a&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===a&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Mf(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Rf)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Sf||this.currentResult.isStale||!Tf(this.options.staleTime))return;const e=If(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Sf&&!1!==this.options.enabled&&Tf(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||$f.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,a=this.options,o=this.currentResult,i=this.currentResultState,r=this.currentResultOptions,s=e!==n,c=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:l}=e;let p,{dataUpdatedAt:d,error:m,errorUpdatedAt:h,fetchStatus:f,status:g}=l,y=!1,v=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&dg(e,t),r=o&&hg(e,n,t,a);(i||r)&&(f=Xf(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)p=u.data,d=u.dataUpdatedAt,g=u.status,y=!0;else if(t.select&&void 0!==l.data)if(o&&l.data===(null==i?void 0:i.data)&&t.select===this.selectFn)p=this.selectResult;else try{this.selectFn=t.select,p=t.select(l.data),p=Vf(null==o?void 0:o.data,p,t),this.selectResult=p,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else p=l.data;if(void 0!==t.placeholderData&&void 0===p&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}void 0!==e&&(g="success",p=Vf(null==o?void 0:o.data,e,t),v=!0)}this.selectError&&(m=this.selectError,p=this.selectResult,h=Date.now(),g="error");const b="fetching"===f,x="loading"===g,k="error"===g;return{status:g,fetchStatus:f,isLoading:x,isSuccess:"success"===g,isError:k,isInitialLoading:x&&b,data:p,dataUpdatedAt:d,error:m,errorUpdatedAt:h,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:k&&0===l.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:v,isPreviousData:y,isRefetchError:k&&0!==l.dataUpdatedAt,isStale:fg(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Mf(n,t))return;this.currentResult=n;const a={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const a=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&a.has(n)})})()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Zf(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ng.batch(()=>{var t,n,a,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(a=(o=this.options).onSettled)||a.call(o,this.currentResult.data,null);else if(e.onError){var i,r,s,c;null==(i=(r=this.options).onError)||i.call(r,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function dg(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&mg(e,t,t.refetchOnMount)}function mg(e,t,n){if(!1!==t.enabled){const a="function"==typeof n?n(e):n;return"always"===a||!1!==a&&fg(e,t)}return!1}function hg(e,t,n,a){return!1!==n.enabled&&(e!==t||!1===a.enabled)&&(!n.suspense||"error"!==e.state.status)&&fg(e,n)}function fg(e,t){return e.isStaleByTime(t.staleTime)}class gg extends Cf{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Mf(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t="loading"===e.status,n={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){ng.batch(()=>{var t,n,a,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,r,s,c;null==(i=(r=this.mutateOptions).onError)||i.call(r,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var yg,vg={exports:{}},bg={};var xg,kg={};
|
|
50
50
|
/**
|
|
51
51
|
* @license React
|
|
52
52
|
* use-sync-external-store-shim.development.js
|
|
@@ -55,7 +55,7 @@ function ai(e){const t=ni.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/"production"===process.env.NODE_ENV?vg.exports=function(){if(yg)return bg;yg=1;var e=k,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!t(e,a)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})},[e,s,t]),a(function(){return r(u)&&l({inst:u}),e(function(){r(u)&&l({inst:u})})},[e]),i(s),s};return bg.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,bg}():vg.exports=(xg||(xg=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,o=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=a({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i(function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})},[u,p,l]),o(function(){return e(m)&&h({inst:m}),u(function(){e(m)&&h({inst:m})})},[u]),r(p),p};kg.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),kg);var wg=vg.exports;const _g=wg.useSyncExternalStore,Eg=x.createContext(void 0),Cg=x.createContext(!1);function Sg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Eg),window.ReactQueryClientContext):Eg)}const Rg=({context:e}={})=>{const t=x.useContext(Sg(e,x.useContext(Cg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tg=({client:e,children:t,context:n,contextSharing:a=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&a&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Sg(n,a);return x.createElement(Cg.Provider,{value:!n&&a},x.createElement(o.Provider,{value:e},t))},Ig=x.createContext(!1);Ig.Provider;const jg=x.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Ag(e,t){return"function"==typeof e?e(...t):!!e}function Og(e,t){const n=Rg({context:e.context}),a=x.useContext(Ig),o=x.useContext(jg),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",i.onError&&(i.onError=ng.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ng.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ng.batchCalls(i.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{x.useEffect(()=>{e.clearReset()},[e])})(o);const[r]=x.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(_g(x.useCallback(e=>{const t=a?()=>{}:r.subscribe(ng.batchCalls(e));return r.updateResult(),t},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),x.useEffect(()=>{r.setOptions(i,{listeners:!1})},[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,a))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(i,r,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:a})=>e.isError&&!t.isReset()&&!e.isFetching&&Ag(n,[e.error,a]))({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pg(e,t,n){return Og(jf(e,t,n),pg)}function Lg(e,t,n){const a=function(e,t,n){return Wf(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Rg({context:a.context}),[i]=x.useState(()=>new gg(o,a));x.useEffect(()=>{i.setOptions(a)},[i,a]);const r=_g(x.useCallback(e=>i.subscribe(ng.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=x.useCallback((e,t)=>{i.mutate(e,t).catch(zg)},[i]);if(r.error&&Ag(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function zg(){}function Dg(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function qg(e){return Lg(function(e){var t=e.code,n=e.accountCode;return Ef.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ng(e){return Lg(function(e){var t=e.code,n=e.payload,a=e.accountCode;return Ef.getInstance().updateWebhookV2(t,n,a)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mg(){return Lg(function(e){var t=e.name,n=e.principal;return Ef.getInstance().postAccount(t,n)})}function Bg(){return Lg(function(e){var t=e.name,n=e.code,a=e.principal;return Ef.getInstance().patchAccountV2({name:t,code:n,principal:a})})}function Ug(){return Lg(function(e){var t=e.account_code;return Ef.getInstance().putAccountPrincipal({account_code:t})})}function Fg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().putAccountsUserMassive(t,n,a)})}function Wg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().deleteAccountsUserMassive(t,n,a)})}function Hg(){return Lg(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Gg(){return Lg(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vg(){return Lg(function(e){return Ef.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function $g(){return Lg(["post-connection"],function(e){var t=e.payload;return Ef.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Kg(){return Lg(["new-post-connection-validate"],function(){return Ef.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Qg(){return Lg(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Ef.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Jg(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Xg(){return Lg(function(e){return Ef.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Yg(){return Lg(["patch-organizations"],function(){return Ef.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function Zg(){return Lg(function(e){return Ef.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function ey(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().changePasswordV2(a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ty(e){return Lg(function(e){return Ef.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ny(){return Lg(function(e){return Ef.getInstance().inviteUsersMassive(e,e.organizationCode)})}function ay(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function oy(){return Lg(function(e){return Ef.getInstance().createUserAuth0(e)})}function iy(){return Lg(function(e){return Ef.getInstance().postCall(e)})}function ry(){return Lg(function(e){return Ef.getInstance().changeLoginMethods(e)})}function sy(e){return Lg(function(e){return Ef.getInstance().updateIsActiveCheckout(e)},e)}function cy(){return Lg(function(e){var t=e.accountCode,n=e.template;return Ef.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function uy(){return Lg(function(e){var t=e.accountCode,n=e.theme;return Ef.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function ly(){return Lg(function(e){var t=e.payload,n=e.transactionId,a=e.paymentId,o=e.action;return Ef.getInstance().createOperationTransaction(t,n,a,o)})}function py(){return Lg(function(e){var t=e.payload,n=e.paymentId,a=e.transactionId,o=e.handleSetProgress;return Ef.getInstance().uploadChargebacks(t,n,a,o)})}var dy=new ig({}),my=new class{constructor(e={}){this.queryCache=e.queryCache||new ig,this.mutationCache=e.mutationCache||new cg,this.logger=e.logger||tg,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=$f.subscribe(()=>{$f.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Qf.subscribe(()=>{Qf.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Af(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const a=jf(e,t,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const a=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==a?void 0:a.state.data);if(void 0===o)return;const i=jf(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ng.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Af(e,t),a=this.queryCache;ng.batch(()=>{a.findAll(n).forEach(e=>{a.remove(e)})})}resetQueries(e,t,n){const[a,o]=Af(e,t,n),i=this.queryCache,r={type:"active",...a};return ng.batch(()=>(i.findAll(a).forEach(e=>{e.reset()}),this.refetchQueries(r,o)))}cancelQueries(e,t,n){const[a,o={}]=Af(e,t,n);void 0===o.revert&&(o.revert=!0);const i=ng.batch(()=>this.queryCache.findAll(a).map(e=>e.cancel(o)));return Promise.all(i).then(Rf).catch(Rf)}invalidateQueries(e,t,n){const[a,o]=Af(e,t,n);return ng.batch(()=>{var e,t;if(this.queryCache.findAll(a).forEach(e=>{e.invalidate()}),"none"===a.refetchType)return Promise.resolve();const n={...a,type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[a,o]=Af(e,t,n),i=ng.batch(()=>this.queryCache.findAll(a).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:a.refetchPage}})}));let r=Promise.all(i).then(Rf);return null!=o&&o.throwOnError||(r=r.catch(Rf)),r}fetchQuery(e,t,n){const a=jf(e,t,n),o=this.defaultQueryOptions(a);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rf).catch(Rf)}fetchInfiniteQuery(e,t,n){const a=jf(e,t,n);return a.behavior=ug(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Rf).catch(Rf)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>zf(e)===zf(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Df(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Df(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>zf(e)===zf(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Df(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Df(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Lf(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:dy});function hy(){return Lg(function(e){return Ef.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fy(){return Lg(function(e){return Ef.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function gy(){return Lg(function(e){return Ef.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yy(){return Lg(function(e){return Ef.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function vy(a){var o=this;return Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=my.getQueryData(["GET/reports/templates"]),my.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[a],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function by(e){return Lg(function(){return Ef.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function xy(e,a,o){var i=this;return void 0===o&&(o=null),Lg(function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().postSmartRoutingCreateWorkflow(e,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},o)}function ky(e,a){var o=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===a&&(a=null),Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().postSmartRoutingPublishVersion(r,i,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},a)}function wy(e,t){var n=e.data,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflow(a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function _y(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().deleteSmartRoutingVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Ey(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().postSmartRoutingDuplicateVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Cy(e,t){var n=e.paymentMethod,a=e.active,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingToggleMethod(o,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Sy(e,t){var n=e.declinedId,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().updateSmartRoutingDeclinedGroup(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Ry(e){var t=e.accountCode;return Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Ty(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=!1),Ef.getInstance().updateSmartRoutingFavorite(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Iy(e,t){var n=e.code,a=e.name,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:a}).then(function(e){return null==e?void 0:e.data})},t)}function jy(e,t){var n=e.accountCode,a=e.workflowVersionCode;return void 0===t&&(t=null),Lg(function(e){return Ef.getInstance().simulateSmartRoutingTransaction(n,a,e).then(function(e){return null==e?void 0:e.data})},t)}function Ay(e,t){return void 0===t&&(t=null),Lg(function(t){return Ef.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Oy(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.declinedGroupCode;return Ef.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}function Py(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.payload;return Ef.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}var Ly=function(e){return Lg(function(t){return Ef.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},zy=function(e){return Lg(function(t){return Ef.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Dy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function qy(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function Ny(){return Lg(function(){return Ef.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function My(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function By(){var e=this;return Lg(function(a){var o=a.payload,i=a.id,r=a.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().editRoles({payload:o,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Uy(){return Lg(function(e){return Ef.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Fy(){return Lg(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Wy(){return Lg(["post-delete-payment-link"],function(e){var t=e.code;return Ef.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Hy(){return Lg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return Ef.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:a}).then(function(e){return null==e?void 0:e.data})})}function Gy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Vy(){return Lg(function(e){return Ef.getInstance().postUserThemeSettings(e)})}function $y(){return Lg(function(e){var t=e.payload,n=e.section;return Ef.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=my.getQueryData(["fetch-profile"]);e.data&&my.setQueryData(["fetch-profile"],o(o({},t),{settings:e.data}))}})}function Ky(e){return Lg(["pinned-sections"],function(e){var t=e.payload;return Ef.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Qy(){return Lg(function(e){var t=e.password,n=e.otp;return Ef.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Jy(){return Lg(function(){return Ef.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Xy(){return Lg(function(e){return Ef.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Yy(){return Lg(function(e){return Ef.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Zy(){return Lg(function(){return Ef.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function ev(){return Lg(["post-get-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tv(){return Lg(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function nv(){return Lg(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function av(){return Lg(["patch-change-status-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ov(){return Lg(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iv(){return Lg(["post-add-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rv(){return Lg(["patch-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sv(){return Lg(["post-blacklist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cv(){return Lg(["put-blacklist"],function(e){return Ef.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uv(){return Lg(["change-blacklist"],function(e){return Ef.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function lv(){return Lg(["change-blacklist-item"],function(e){return Ef.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pv(){return Lg(["post-blacklist-items"],function(e){var t=e.payload;return Ef.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dv(){return Lg(["delete-blacklist"],function(e){var t=e.black_list_code;return Ef.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mv(e){var t=e.handleSetProgress;return Lg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,a=e.expiration_days,o=e.file;return Ef.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:a,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hv(){return Lg(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Ef.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fv(){return Lg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return Ef.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gv(){return Lg(["valiate-blacklist-items"],function(e){return Ef.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yv(){return Lg(["delete-allowlist-item"],function(e){return Ef.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vv(){return Lg(["validate-allowlist-items"],function(e){return Ef.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function bv(e){var t=e.fileName,n=e.onSuccess,a=e.onError,o=w(0),i=o[0],r=o[1],s=_({cancel:function(){return null}}),c=Lg(["upload-file-chargeback",t],function(e){var t=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),o=t.promise,i=t.cancel;return s.current.cancel=i,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==a||a(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function xv(){return Lg(function(e){return Ef.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function kv(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().batchRefundByFile({payload:a}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function wv(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundProcessedFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function _v(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundUserFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ev(){var e=_({cancel:function(){return null}}),t=Lg(["upload-file"],function(t){var n=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),a=n.promise,o=n.cancel;return e.current.cancel=o,a.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Cv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().updateMFAConfig(t,n)})}function Sv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().mfaExcludeUsers(t,n)})}function Rv(e){return Pg(["GET/scheduled-reports",e],function(){return Ef.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Tv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Iv(){return Lg(function(e){var t=e.reportCode,n=e.payload;return Ef.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function jv(){return Lg(function(e){return Ef.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Av(){return Lg(function(e){return Ef.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ov(){return Lg(function(e){return Ef.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pv(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Lv(){return Lg(function(e){var t=e.payload,n=e.ruleId,a=e.accountCode;return Ef.getInstance().postEditRule(t,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Dv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qv(){return Lg(function(e){var t=e.code,n=e.password;return Ef.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Nv(){return Lg(function(e){var t=e.passwordOtp;return Ef.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Mv(){return Lg(function(e){var t=e.code;return Ef.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Bv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Uv(){return Lg(function(e){var t=e.payload,n=e.code,a=e.password;return Ef.getInstance().postApiKeysRoll(t,n,a).then(function(e){return e.data}).catch(function(e){return e})})}function Fv(){return Lg(function(e){var t=e.password,n=e.accountCode;return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})})}function Wv(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Hv(){return Lg(function(e){var t=e.codes;return Ef.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Gv(){return Lg(function(e){return Ef.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Vv(a){var o=this;return Lg(function(){return Ef.getInstance().createReconciliationReportTemplate(a).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t,o;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(o=my.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,my.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[a],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function $v(e){return Lg(function(){return Ef.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Kv(){return Lg(["POST/reconciliation/alerts"],function(e){return Ef.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qv(){return Lg(["DELETE/reconciliation/alerts"],function(e){return Ef.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Jv(){return Lg(["UPDATE/reconciliation/alerts"],function(e){return Ef.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Yv(){return Lg(function(e){return Ef.getInstance().createSamlConfig(e)})}function Zv(){return Lg(function(e){return Ef.getInstance().updateSamlConfig(e)})}function eb(){return Lg(function(){return Ef.getInstance().deleteSamlConfig()})}function tb(e,t){return void 0===t&&(t={}),Lg(function(t){return Ef.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},o(o({},t),{useErrorBoundary:!1}))}function nb(e){return void 0===e&&(e={}),Lg(function(e){return Ef.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},o(o({},e),{useErrorBoundary:!1}))}function ab(){return Lg(function(e){return Ef.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ob(){return Lg(function(e){return Ef.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ib(){return Lg(function(e){var t=e.chart_id,n=e.type,a=e.name,o=e.user_prompt,i=void 0===o?"":o;return Ef.getInstance().patchChartGPTChart(t,{type:n,name:a,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function rb(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e,t,o,i,r;return n(this,function(n){switch(n.label){case 0:return[4,Ef.getInstance().createChartGPTChart(a)];case 1:if(e=n.sent(),!(t=null!==(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==i?i:null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}})})},{useErrorBoundary:!1})}function sb(){var e=this;return Lg(["POST/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createTemplateReporting(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function cb(){var e=this;return Lg(["POST/template-reporting/report-templates/clone"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().cloneReportTemplate(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function ub(){var e=this;return Lg(["POST/template-reporting/report-templates/selection"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().updateTemplateSelection(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function lb(){var e=this;return Lg(["POST/template-reporting/report-templates/status"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().changeTemplateStatus(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function pb(){var e=this;return Lg(["DELETE/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deleteReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function db(){var e=this;return Lg(["POST/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function mb(){var e=this;return Lg(["POST/template-reporting/report-schedules/deactivate"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deactivateReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function hb(){var e=this;return Lg(["DELETE/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deleteReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}var fb=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),a=n[0],o=n[1];return E(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),a}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function gb(e){var a=this;return Pg(["fetch-payments-lazy",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function yb(e){return Pg(["fetch-payments-evaluated",e],function(){return Ef.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function vb(e){var a=this,o=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:r,cacheTime:500,useErrorBoundary:!1})}function bb(e){var a=this,o=e.payment_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-details-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function xb(e){var a=this,o=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-raw-response",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function kb(e){var t=fb();return Pg(["payment-methods",e],function(){return Ef.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function wb(){return Pg({queryKey:["/payment-methods/providers"],queryFn:function(){return Ef.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function _b(){return Pg(["GET/catalog/card-brands"],function(){return Ef.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Eb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Lm.PAYMENTS),Pg(["payment-filters",e,t],function(){return Ef.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Cb(){return Pg(["payment-metrics-filters"],function(){return Ef.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Sb(e){var t=e.transaction_code,n=e.enabled;return Pg(["payment-transaction-details",t],function(){return Ef.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Rb(e){var t=e.payment_code,n=e.enabled;return Pg(["transaction-history",t],function(){return Ef.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Tb(e){var a=this;return Pg(["POST/transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Ib(e){var a=this;return Pg(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function jb(e){return Pg(["GET/payout-detail",JSON.stringify(e)],function(){var t=Ef.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Ab(e){return Pg(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Ef.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Ob(e){var t=fb();return Pg(["GET/payout-history-detail",JSON.stringify(e)],function(){return Ef.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Pb(e,a){var o=this,i=fb();return Pg(["GET/useGetProofOfCancel",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfCancel(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Lb(e,a){var o=this,i=fb();return Pg(["GET/useGetProofOfPayment",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfPayment(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function zb(e,a,o){var i=this,r=Ef.getInstance();return Pg(["send-payment-notification",e,a],function(){return t(i,void 0,void 0,function(){var t,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,a)];case 1:return t=n.sent(),o.onSuccess(),[2,t.data];case 2:throw i=n.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function Db(e){return Pg(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Ef.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function qb(e){var a=this;void 0===e&&(e=!0);var o=fb();return Pg(["getPayoutsFilters",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Nb(e){var t=e.password,n=e.accountCode;return Pg(["developers"],function(){return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function Mb(){return Pg(["fetch-customized-api-keys-members"],function(){return Ef.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Bb(){return Pg(["developers-get-allowed-ips"],function(){return Ef.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Ub(){return Pg(["fetch-customized-api-keys-accounts"],function(){return Ef.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Fb(e){return Pg(["fetch-customized-api-keys",e],function(){return Ef.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function Wb(){return Pg(["fetch-customized-api-keys-products"],function(){return Ef.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Hb(){return Lg(["developers-patch-allowed-ips"],function(e){return Ef.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{cacheTime:0})}function Gb(){return Pg(["fetch-organizations"],function(){return Ef.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Vb(){return Pg(["fetch-all-organizations",fb()],function(){return Ef.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function $b(e){var t=fb();return Pg(["organizations-provider-params",e],function(e){var n=e.queryKey;return Ef.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Kb(e){var t=e.integration_code,n=e.enabled,a=e.accountCode;return Pg(["integration-params",t,a],function(){return t.includes("undefined")?{}:Ef.getInstance().getIntegrationParams({accountCode:a,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Qb(e){var t=e.accountCode,n=e.organizationCode,a=fb();return Pg(["organizations-account-integrations",t,n],function(){return Ef.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||a}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Jb(e){var t=e.accountCode,n=e.paymentMethod;return Pg(["fetch-connections-by-payment-method",n,t],function(){return Ef.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Xb(){var e=this;return Pg(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Yb(){return Pg(["connections"],function(){return Ef.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Zb(){return Pg(["dialogs"],function(){return Ef.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function ex(){return Pg(["params-catalog"],function(){return Ef.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function tx(e){var t=e.accountCode,n=e.name;return Pg(["webhooks",t,n],function(){return Ef.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function nx(e){var t=e.accountCode,n=e.enabled;return Pg(["webhooks-detail",t],function(){return Ef.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function ax(e){var t,n=fb(),a=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pg({queryKey:["accounts",a],queryFn:function(){return Ef.getInstance().getAccounts(a).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!a})}function ox(e){return Pg(["accountsV2",e],function(){return Ef.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function ix(e){return Pg(["accountsV2-by-user",e],function(){return e?Ef.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function rx(e,a){var o=this;return Pg({queryKey:["accounts-for-impersonation",e,a],queryFn:function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getAccountsForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:a?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function sx(){return Pg(["menu"],function(){return Ef.getInstance().getMenu().then(function(e){return sf(e)?hf:null==e?void 0:e.data}).catch(function(){return hf})})}function cx(){return Pg(["/payment/statuses/style"],function(){return Ef.getInstance().useGetPaymentStatusesStyles().then(function(e){return sf(e)?cf:null==e?void 0:e.data}).catch(function(){return cf})})}function ux(){return Pg(["/transaction/statuses/style"],function(){return Ef.getInstance().useGetTransactionStatusesStyles().then(function(e){return sf(e)?uf:null==e?void 0:e.data}).catch(function(){return uf})},{cacheTime:36e5,useErrorBoundary:!1})}function lx(){return Pg(["/reconciliation/transaction/statuses/style"],function(){return Ef.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return sf(e)?lf:null==e?void 0:e.data}).catch(function(){return lf})})}function px(){return Pg(["timezone-catalog"],function(){return Ef.getInstance().useGetTimeZoneCatalog().then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})})}function dx(){return Pg(["/cms/audit-logs-filters"],function(){return Ef.getInstance().useGetAuditLogsFilters().then(function(e){return sf(e)?df:null==e?void 0:e.data}).catch(function(){return df})})}function mx(){return Pg(["/cms/static-contents"],function(){return Ef.getInstance().getDashboardStaticContents().then(function(e){var t,n;return sf(e)?mf:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function hx(){return Pg(["/cms/locales"],function(){return Ef.getInstance().getLocales().then(function(e){return sf(e)?ff:e.data}).catch(function(){return ff})})}var fx=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return E(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function gx(e){return Pg(["smart-routing-methods",e],function(){return Ef.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function yx(e,t){return Pg(["smart-routing-workflow",t,e],function(){return Ef.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function vx(e,t){return Pg(["smart-routing-condition-types",e,t],function(){return Ef.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function bx(e,t){return Pg(["smart-routing-condition-payment-method",e,t],function(){return Ef.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function xx(e,t){return Pg(["smart-routing-condition-types-values",t,e],function(){return Ef.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function kx(e){var t=e.accountCode,n=e.workflowVersionId;return Pg(["smart-routing-workflow-version",n,t],function(){return Ef.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function wx(e,t,n){return Pg(["smart-routing-next-route",e,n,t],function(){return Ef.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function _x(e){return Pg(["smart-routing-decline-groups",e],function(){return Ef.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Ex(e,t){return Pg(["smart-routing-payment-route",e,t],function(){return Ef.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function Cx(e){return Pg(["smart-routing-simulate-condition-type-values",e],function(){return Ef.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Sx(e){var t=e.text,n=e.conditionType;return Pg(["smart-routing-search-condition-values",t,n],function(){return Ef.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Rx(){return Pg(["smart-routing-conversion-rates"],function(){return Ef.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function Tx(){var e=this;return Pg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Ix(){var e=this;return Pg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function jx(e){return Pg(["fetch-routing-monitors-templates",e],function(){return Ef.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ax(e,t){return Pg(["fetch-routing-monitors-template",e],function(){return Ef.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Ox(e){var t=e.accountCode;return Pg(["checkouts",t],function(){return Ef.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function Px(e){var t=e.accountCode;return Pg(["checkouts-template"],function(){return Ef.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var Lx=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},zx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Lx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getNameAndIcon({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)},Dx=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},qx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Dx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getRequiredFields({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)};function Nx(e){var t=e.accountCode;return Pg(["styling-sdk-dynamic",t],function(){return Ef.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Mx(e){var t=e.accountCode;return Pg(["styling-theme",t],function(){return Ef.getInstance().getStylingTheme({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Bx(e){var t=e.accountCode;return Pg(["styling-settings",t],function(){return Ef.getInstance().getStylingSettings({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ux(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n;return Pg(["styling-settings-v2",t],function(){return Ef.getInstance().getStylingSettingsV2({accountCode:t,environment:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Fx(){return Lg(function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload;return Ef.getInstance().changeStylingSettings({accountCode:t,environment:a,payload:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Wx(){return Pg(["fetch-profile"],function(){return Ef.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Hx(){var e=this;return Pg(["get-user-full"],function(){return t(e,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:e=Ef.getInstance(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.getUserFull()];case 2:return t=n.sent(),[2,null==t?void 0:t.data];case 3:throw n.sent();case 4:return[2]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Gx(e,t){return Pg(["fetch-permissions",e,t],function(){var e,t,n,a=localStorage.getItem("account"),o=localStorage.getItem("user"),i=a&&JSON.parse(a),r=o&&JSON.parse(o);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Vx(e){return Pg(["email-verification",e],function(){return Ef.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function $x(){return Pg({queryKey:["get-login-methods"],queryFn:function(){return Ef.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Kx(){return Pg(["fetch-impersonation-users"],function(){return Ef.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Qx(){return Pg(["fetch-impersonation-enabled"],function(){return Ef.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Jx(e,a,o,i,r){var s=this;return void 0===o&&(o=1),void 0===i&&(i=10),Pg(["get-users-to-impersonate",e,a,o,i,r],function(){return t(s,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getUsersToImpersonate(e,a,o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Xx(e){var t;return Pg(["fetch-communications",e],function(){return Ef.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Yx(){return Pg(["fetch-communications-filters"],function(){return Ef.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zx(e,t){return Pg(["fetch-communication-details",e],function(){return Ef.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function ek(e){return Pg(["notifications-customer",e],function(){return Ef.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function tk(e){return Pg(["validate-opsgenie-key",e],function(){return Ef.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function nk(){return Pg(["notifications-merged"],function(){return Ef.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function ak(){return Lg(function(e){return Ef.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ok(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().pathNotification(a)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var ik={key:"metadata_fields",name:"metadata_fields"};function rk(){return Pg(["reports"],function(){return Ef.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sk(e){return void 0===e&&(e=!0),Pg(["reports-multi-env"],function(){return Ef.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function ck(e,t,n){return void 0===t&&(t=!1),Pg(["reports/".concat(e)],function(){return Ef.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function uk(e){return Pg(["GET/reports/templates"],function(){return Ef.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function lk(a,o,i){var r=this;return Pg(["GET/reports/columns/".concat(o,"/").concat(i)],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportColumns(o,i).then(function(t){return o===Mm.ALL&&i===Nm.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[ik],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:a,useErrorBoundary:!1})}function pk(e,a){var o=this,i=fb();return Pg(["getRefundPdf",e,i,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getRefundPdf(e,i,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!i,useErrorBoundary:!1})}function dk(){var e=fb();return Pg(["teams-filters-members"],function(){return Ef.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function mk(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r=fb();return Pg(["fetch-post-members-v2",t,n,a,o,i],function(){return Ef.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:a,page:o,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function hk(){return Pg(["fetch-roles"],function(){return Ef.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fk(){return Pg(["fetch-rolespermissions"],function(){return Ef.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function gk(){return Pg(["fetch-permissions-catalog"],function(){return Ef.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yk(e){return Pg(["data-report",e],function(){return Ef.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function vk(e,t,n){return void 0===n&&(n=!0),Pg(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Ef.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function bk(e,t){return Pg(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function xk(e){return Pg(["get-insights-conversion-rate-fallback-metrics",e],function(){return Ef.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function kk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-volume-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function wk(e,t,n,a){return void 0===a&&(a=!0),delete t.account_code,Pg(["get-insights-volume-metrics-v2",t,e,n],function(){return Ef.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:a,cacheTime:200,useErrorBoundary:!1})}function _k(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-total-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ek(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-customer-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ck(e){return Pg(["get-insights-overview",e],function(){return Ef.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function Sk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Pg(["get-insights-overview-v3",e,t],function(){return Ef.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Rk(e){return Pg(["get-insights-home-metrics",e],function(){return Ef.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Tk(e){return Pg(["get-insights-reports",e],function(){return Ef.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function Ik(e){return Pg(["get-insights-reports-again",e],function(){return Ef.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function jk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-conversion-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningConversionRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-volume-and-count-tx",a,e],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Pk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsConversionRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-decline-reasons",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsDeclineReasons(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsFrictionlessVsChallenge(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-win-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksWinRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-disputed",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksDisputed(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Bk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Uk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-reasons-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksReasonsDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-status-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksStatusDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Wk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Hk(e,t){return Pg(["fetch-reconciliation-transaction",e],function(){return Ef.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Gk(e,t){return Pg(["fetch-reconciliation-settlements",e],function(){return Ef.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Vk(e,t){return Pg(["fetch-reconciliation-metrics",e],function(){return Ef.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function $k(){return Pg(["GET-reconciliation-filters"],function(){return Ef.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Kk(e){return Pg(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Ef.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Qk(){return Pg(["GET/v1/reconciliation/active"],function(){return Ef.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Jk(e,t,n){return Pg(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Ef.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Xk(e){return Pg(["GET/reconciliation/reports/templates"],function(){return Ef.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Yk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/alerts/list",t,n],function(){return Ef.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Zk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/list",t,n],function(){return Ef.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function ew(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/insights",t,n],function(){return Ef.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function tw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/sales/list",t,n],function(){return Ef.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/advancements/list",t,n],function(){return Ef.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function aw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/fees/list",t,n],function(){return Ef.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function ow(e){var a=this,o=Object.values(e).filter(Boolean);return Pg(["feature-flags",o],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function iw(e){var a=this,o=Pg({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),i=Rg();return E(function(){i.setQueryData(["cached-feature-flags"],o)},[o,i]),o}function rw(e){var t,n,a=Rg(),i=a.getQueryState(["cached-feature-flags"]),r=Boolean(!(null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.status)),s=Pg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return o(o({},s),{isLoading:r})}function sw(e){return Pg(["events",e],function(){return Ef.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function cw(e){return Pg(["audit-monitor-event-detail",e],function(){return Ef.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function uw(e){return Pg(["api-logs",e],function(){return Ef.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function lw(e){var t=e.params;return Pg(["webhook-logs",t],function(){return Ef.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function pw(e){return Pg(["api-logs-detail",e],function(){return Ef.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function dw(e,t){return Pg(["fetch-payment-links",e,t],function(){return Ef.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function mw(e){return Pg(["payment-link"],function(){return Ef.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function hw(e){return void 0===e&&(e=!0),Pg(["countries",e],function(){return Ef.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function fw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Pg(["countries-v2",n],function(){return Ef.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function gw(e){return Pg(["timezone"],function(){return Ef.getInstance().getTimezone(e).then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})},{enabled:!0,keepPreviousData:!0})}function yw(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function vw(e,t){return Pg(["get-cofig-allow-list",e],function(){return Ef.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function bw(e){return Pg(["get-black-list",e],function(){return Ef.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function xw(e,t,n,a){var o;return Pg(["post-black-list",e],function(){return Ef.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=a?a:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function kw(e,t,n){return Pg(["get-block-list-summary",e,t,n],function(){var a=Ef.getInstance();return n?a.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function ww(e,t,n,a,o,i){return Pg(["black-list-detail",e,t,a,o,i],function(){return Ef.getInstance().getBlacklistDetail(e,t,n,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})}function _w(e,t,n){return Pg(["allow-list-detail",e],function(){return Ef.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Ew(e){return Pg(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Ef.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Cw(e,a){var o=this;return void 0===e&&(e=26),void 0===a&&(a=0),Pg(["batch-refunds",e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getBatchRefunds(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Sw(e){return Pg(["velocity-rules",e],function(){var t=Ef.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Rw(){return Pg(["config-rules"],function(){return Ef.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Tw(e,t){var n=e.organizationCode;return Pg(["mfa-excluded-users",n],function(){return Ef.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Iw(e,t){var n=e.organizationCode;return Pg(["mfa-config",n],function(){return Ef.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function jw(e,t){return Pg(["mfa-enforcement-status",e.accountCode],function(){return Ef.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Aw(e){return Pg(["fetch-organization-saml-config",e],function(){return Ef.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ow(e){return Pg(["chartgpt-chart-execute",e],function(){return Ef.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function Pw(){return Pg(["chartgpt-user-charts"],function(){return Ef.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Lw(){var e=this;return Pg(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,a,i,r=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=Ef.getInstance()).getChartsByUser()];case 1:return a=s.sent(),i=(null==a?void 0:a.data)||[],[4,Promise.all(i.map(function(a){return t(r,void 0,void 0,function(){var t,i,r,s,c,u,l,p;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return t=n.sent(),[2,o(o({},a),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:a.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),i),[2,o(o({},a),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function zw(e,a,o){var i=this;return void 0===o&&(o=!0),Pg(["chartgpt-patch-and-execute",e,a],function(){return t(i,void 0,void 0,function(){var t,o,i,r,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=Ef.getInstance()).patchChartGPTChart(e,a)];case 1:return o=n.sent(),i=null==o?void 0:o.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function Dw(){return Pg(["languages"],function(){return Ef.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function qw(){var e=localStorage.getItem("lang")||"en";return Pg(["translations",e],function(){return Ef.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Nw(e,a){var o=this;return Pg(["GET/template-reporting/templates",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportTemplatesList(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a,useErrorBoundary:!1,cacheTime:0})}function Mw(e,a){var o=this;return Pg(["GET/template-reporting/template-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportTemplateById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Bw(e){var a=this;return Pg(["GET/template-reporting/schedules"],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:e,useErrorBoundary:!1,cacheTime:0})}function Uw(e,a){var o=this;return Pg(["GET/template-reporting/schedule-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportScheduleById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Fw(){return Fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fw.apply(this,arguments)}
|
|
58
|
+
*/"production"===process.env.NODE_ENV?vg.exports=function(){if(yg)return bg;yg=1;var e=k,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!t(e,a)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})},[e,s,t]),a(function(){return r(u)&&l({inst:u}),e(function(){r(u)&&l({inst:u})})},[e]),i(s),s};return bg.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,bg}():vg.exports=(xg||(xg=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,o=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=a({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i(function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})},[u,p,l]),o(function(){return e(m)&&h({inst:m}),u(function(){e(m)&&h({inst:m})})},[u]),r(p),p};kg.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),kg);var wg=vg.exports;const _g=wg.useSyncExternalStore,Eg=x.createContext(void 0),Cg=x.createContext(!1);function Sg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Eg),window.ReactQueryClientContext):Eg)}const Rg=({context:e}={})=>{const t=x.useContext(Sg(e,x.useContext(Cg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tg=({client:e,children:t,context:n,contextSharing:a=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&a&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Sg(n,a);return x.createElement(Cg.Provider,{value:!n&&a},x.createElement(o.Provider,{value:e},t))},Ig=x.createContext(!1);Ig.Provider;const jg=x.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Ag(e,t){return"function"==typeof e?e(...t):!!e}function Og(e,t){const n=Rg({context:e.context}),a=x.useContext(Ig),o=x.useContext(jg),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",i.onError&&(i.onError=ng.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ng.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ng.batchCalls(i.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{x.useEffect(()=>{e.clearReset()},[e])})(o);const[r]=x.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(_g(x.useCallback(e=>{const t=a?()=>{}:r.subscribe(ng.batchCalls(e));return r.updateResult(),t},[r,a]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),x.useEffect(()=>{r.setOptions(i,{listeners:!1})},[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,a))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(i,r,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:a})=>e.isError&&!t.isReset()&&!e.isFetching&&Ag(n,[e.error,a]))({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pg(e,t,n){return Og(jf(e,t,n),pg)}function Lg(e,t,n){const a=function(e,t,n){return Wf(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Rg({context:a.context}),[i]=x.useState(()=>new gg(o,a));x.useEffect(()=>{i.setOptions(a)},[i,a]);const r=_g(x.useCallback(e=>i.subscribe(ng.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=x.useCallback((e,t)=>{i.mutate(e,t).catch(zg)},[i]);if(r.error&&Ag(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function zg(){}function Dg(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function qg(e){return Lg(function(e){var t=e.code,n=e.accountCode;return Ef.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ng(e){return Lg(function(e){var t=e.code,n=e.payload,a=e.accountCode;return Ef.getInstance().updateWebhookV2(t,n,a)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mg(){return Lg(function(e){var t=e.name,n=e.principal;return Ef.getInstance().postAccount(t,n)})}function Bg(){return Lg(function(e){var t=e.name,n=e.code,a=e.principal;return Ef.getInstance().patchAccountV2({name:t,code:n,principal:a})})}function Ug(){return Lg(function(e){var t=e.account_code;return Ef.getInstance().putAccountPrincipal({account_code:t})})}function Fg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().putAccountsUserMassive(t,n,a)})}function Wg(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,a=e.payload;return Ef.getInstance().deleteAccountsUserMassive(t,n,a)})}function Hg(){return Lg(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Gg(){return Lg(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Vg(){return Lg(function(e){return Ef.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function $g(){return Lg(["post-connection"],function(e){var t=e.payload;return Ef.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Kg(){return Lg(["new-post-connection-validate"],function(){return Ef.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Qg(){return Lg(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Ef.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function Jg(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Xg(){return Lg(function(e){return Ef.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Yg(){return Lg(["patch-organizations"],function(){return Ef.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function Zg(){return Lg(function(e){return Ef.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function ey(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().changePasswordV2(a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ty(e){return Lg(function(e){return Ef.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ny(){return Lg(function(e){return Ef.getInstance().inviteUsersMassive(e,e.organizationCode)})}function ay(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function oy(){return Lg(function(e){return Ef.getInstance().createUserAuth0(e)})}function iy(){return Lg(function(e){return Ef.getInstance().postCall(e)})}function ry(){return Lg(function(e){return Ef.getInstance().changeLoginMethods(e)})}function sy(e){return Lg(function(e){return Ef.getInstance().updateIsActiveCheckout(e)},e)}function cy(){return Lg(function(e){var t=e.accountCode,n=e.template;return Ef.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})}function uy(){return Lg(function(e){var t=e.accountCode,n=e.theme;return Ef.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})}function ly(){return Lg(function(e){var t=e.payload,n=e.transactionId,a=e.paymentId,o=e.action;return Ef.getInstance().createOperationTransaction(t,n,a,o)})}function py(){return Lg(function(e){var t=e.payload,n=e.paymentId,a=e.transactionId,o=e.handleSetProgress;return Ef.getInstance().uploadChargebacks(t,n,a,o)})}var dy=new ig({}),my=new class{constructor(e={}){this.queryCache=e.queryCache||new ig,this.mutationCache=e.mutationCache||new cg,this.logger=e.logger||tg,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=$f.subscribe(()=>{$f.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Qf.subscribe(()=>{Qf.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Af(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const a=jf(e,t,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const a=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==a?void 0:a.state.data);if(void 0===o)return;const i=jf(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ng.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Af(e,t),a=this.queryCache;ng.batch(()=>{a.findAll(n).forEach(e=>{a.remove(e)})})}resetQueries(e,t,n){const[a,o]=Af(e,t,n),i=this.queryCache,r={type:"active",...a};return ng.batch(()=>(i.findAll(a).forEach(e=>{e.reset()}),this.refetchQueries(r,o)))}cancelQueries(e,t,n){const[a,o={}]=Af(e,t,n);void 0===o.revert&&(o.revert=!0);const i=ng.batch(()=>this.queryCache.findAll(a).map(e=>e.cancel(o)));return Promise.all(i).then(Rf).catch(Rf)}invalidateQueries(e,t,n){const[a,o]=Af(e,t,n);return ng.batch(()=>{var e,t;if(this.queryCache.findAll(a).forEach(e=>{e.invalidate()}),"none"===a.refetchType)return Promise.resolve();const n={...a,type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[a,o]=Af(e,t,n),i=ng.batch(()=>this.queryCache.findAll(a).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:a.refetchPage}})}));let r=Promise.all(i).then(Rf);return null!=o&&o.throwOnError||(r=r.catch(Rf)),r}fetchQuery(e,t,n){const a=jf(e,t,n),o=this.defaultQueryOptions(a);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rf).catch(Rf)}fetchInfiniteQuery(e,t,n){const a=jf(e,t,n);return a.behavior=ug(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Rf).catch(Rf)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>zf(e)===zf(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Df(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Df(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>zf(e)===zf(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Df(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Df(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Lf(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:dy});function hy(){return Lg(function(e){return Ef.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fy(){return Lg(function(e){return Ef.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function gy(){return Lg(function(e){return Ef.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yy(){return Lg(function(e){return Ef.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function vy(a){var o=this;return Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=my.getQueryData(["GET/reports/templates"]),my.setQueryData(["GET/reports/templates"],function(t){return e(e([],t,!0),[a],!1)}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function by(e){return Lg(function(){return Ef.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function xy(e,a,o){var i=this;return void 0===o&&(o=null),Lg(function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().postSmartRoutingCreateWorkflow(e,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,t.sent()]}})})},o)}function ky(e,a){var o=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===a&&(a=null),Lg(function(){return t(o,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().postSmartRoutingPublishVersion(r,i,s).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},a)}function wy(e,t){var n=e.data,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflow(a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function _y(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().deleteSmartRoutingVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Ey(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().postSmartRoutingDuplicateVersion(a,n).then(function(e){return null==e?void 0:e.data})},t)}function Cy(e,t){var n=e.paymentMethod,a=e.active,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingToggleMethod(o,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Sy(e,t){var n=e.declinedId,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().updateSmartRoutingDeclinedGroup(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Ry(e){var t=e.accountCode;return Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function Ty(e,t){var n=e.versionCode,a=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=!1),Ef.getInstance().updateSmartRoutingFavorite(a,n,e).then(function(e){return null==e?void 0:e.data})},t)}function Iy(e,t){var n=e.code,a=e.name,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:a}).then(function(e){return null==e?void 0:e.data})},t)}function jy(e,t){var n=e.accountCode,a=e.workflowVersionCode;return void 0===t&&(t=null),Lg(function(e){return Ef.getInstance().simulateSmartRoutingTransaction(n,a,e).then(function(e){return null==e?void 0:e.data})},t)}function Ay(e,t){return void 0===t&&(t=null),Lg(function(t){return Ef.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function Oy(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.declinedGroupCode;return Ef.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}function Py(e,t){return void 0===t&&(t={}),Lg(function(t){var n=t.payload;return Ef.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},o(o({},t),{useErrorBoundary:!1}))}var Ly=function(e){return Lg(function(t){return Ef.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},zy=function(e){return Lg(function(t){return Ef.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function Dy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function qy(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function Ny(){return Lg(function(){return Ef.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function My(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function By(){var e=this;return Lg(function(a){var o=a.payload,i=a.id,r=a.accountCode;return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().editRoles({payload:o,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Uy(){return Lg(function(e){return Ef.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Fy(){return Lg(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Wy(){return Lg(["post-delete-payment-link"],function(e){var t=e.code;return Ef.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Hy(){return Lg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,a=e.paymentLinkCode;return Ef.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:a}).then(function(e){return null==e?void 0:e.data})})}function Gy(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Vy(){return Lg(function(e){return Ef.getInstance().postUserThemeSettings(e)})}function $y(){return Lg(function(e){var t=e.payload,n=e.section;return Ef.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var t=my.getQueryData(["fetch-profile"]);e.data&&my.setQueryData(["fetch-profile"],o(o({},t),{settings:e.data}))}})}function Ky(e){return Lg(["pinned-sections"],function(e){var t=e.payload;return Ef.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Qy(){return Lg(function(e){var t=e.password,n=e.otp;return Ef.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Jy(){return Lg(function(){return Ef.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Xy(){return Lg(function(e){return Ef.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Yy(){return Lg(function(e){return Ef.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Zy(){return Lg(function(){return Ef.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function ev(){return Lg(["post-get-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function tv(){return Lg(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function nv(){return Lg(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function av(){return Lg(["patch-change-status-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ov(){return Lg(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Ef.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iv(){return Lg(["post-add-allowlist-items"],function(e){var t=e.payload;return Ef.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function rv(){return Lg(["patch-allowlist"],function(e){var t=e.payload;return Ef.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sv(){return Lg(["post-blacklist-multi-account"],function(e){var t=e.payload;return Ef.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cv(){return Lg(["put-blacklist"],function(e){return Ef.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uv(){return Lg(["change-blacklist"],function(e){return Ef.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function lv(){return Lg(["change-blacklist-item"],function(e){return Ef.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function pv(){return Lg(["post-blacklist-items"],function(e){var t=e.payload;return Ef.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dv(){return Lg(["delete-blacklist"],function(e){var t=e.black_list_code;return Ef.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function mv(e){var t=e.handleSetProgress;return Lg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,a=e.expiration_days,o=e.file;return Ef.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:a,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hv(){return Lg(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Ef.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fv(){return Lg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,a=e.account_code;return Ef.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gv(){return Lg(["valiate-blacklist-items"],function(e){return Ef.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yv(){return Lg(["delete-allowlist-item"],function(e){return Ef.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vv(){return Lg(["validate-allowlist-items"],function(e){return Ef.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function bv(e){var t=e.fileName,n=e.onSuccess,a=e.onError,o=w(0),i=o[0],r=o[1],s=_({cancel:function(){return null}}),c=Lg(["upload-file-chargeback",t],function(e){var t=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),o=t.promise,i=t.cancel;return s.current.cancel=i,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==a||a(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function xv(){return Lg(function(e){return Ef.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function kv(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().batchRefundByFile({payload:a}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function wv(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundProcessedFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function _v(){var e=this;return Lg(function(a){var o=a.batchRefundId,i=a.organizationCode,r=a.accountCode;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getBatchRefundUserFileDownload(o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ev(){var e=_({cancel:function(){return null}}),t=Lg(["upload-file"],function(t){var n=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),a=n.promise,o=n.cancel;return e.current.cancel=o,a.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Cv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().updateMFAConfig(t,n)})}function Sv(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().mfaExcludeUsers(t,n)})}function Rv(e){return Pg(["GET/scheduled-reports",e],function(){return Ef.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Tv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Iv(){return Lg(function(e){var t=e.reportCode,n=e.payload;return Ef.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function jv(){return Lg(function(e){return Ef.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Av(){return Lg(function(e){return Ef.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ov(){return Lg(function(e){return Ef.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Pv(){return Lg(function(e){var t=e.payload,n=e.accountCode;return Ef.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Lv(){return Lg(function(e){var t=e.payload,n=e.ruleId,a=e.accountCode;return Ef.getInstance().postEditRule(t,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Dv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function qv(){return Lg(function(e){var t=e.code,n=e.password;return Ef.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Nv(){return Lg(function(e){var t=e.passwordOtp;return Ef.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Mv(){return Lg(function(e){var t=e.code;return Ef.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Bv(){return Lg(function(e){var t=e.payload,n=e.code;return Ef.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})}function Uv(){return Lg(function(e){var t=e.payload,n=e.code,a=e.password;return Ef.getInstance().postApiKeysRoll(t,n,a).then(function(e){return e.data}).catch(function(e){return e})})}function Fv(){return Lg(function(e){var t=e.password,n=e.accountCode;return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})})}function Wv(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Hv(){return Lg(function(e){var t=e.codes;return Ef.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Gv(){return Lg(function(e){return Ef.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Vv(a){var o=this;return Lg(function(){return Ef.getInstance().createReconciliationReportTemplate(a).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(a){return t(o,void 0,void 0,function(){var t,o;return n(this,function(n){switch(n.label){case 0:return[4,my.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(o=my.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,my.setQueryData(["GET/reconciliation/reports/templates"],function(t){return{templates:e(e([],t.templates,!0),[a],!1)}}),[2,{previousTemplates:t}]}})})},onError:function(e,t,n){my.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){my.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function $v(e){return Lg(function(){return Ef.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Kv(){return Lg(["POST/reconciliation/alerts"],function(e){return Ef.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qv(){return Lg(["DELETE/reconciliation/alerts"],function(e){return Ef.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Jv(){return Lg(["UPDATE/reconciliation/alerts"],function(e){return Ef.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){my.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xv(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Yv(){return Lg(function(e){return Ef.getInstance().createSamlConfig(e)})}function Zv(){return Lg(function(e){return Ef.getInstance().updateSamlConfig(e)})}function eb(){return Lg(function(){return Ef.getInstance().deleteSamlConfig()})}function tb(e,t){return void 0===t&&(t={}),Lg(function(t){return Ef.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},o(o({},t),{useErrorBoundary:!1}))}function nb(e){return void 0===e&&(e={}),Lg(function(e){return Ef.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},o(o({},e),{useErrorBoundary:!1}))}function ab(){return Lg(function(e){return Ef.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ob(){return Lg(function(e){return Ef.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ib(){return Lg(function(e){var t=e.chart_id,n=e.type,a=e.name,o=e.user_prompt,i=void 0===o?"":o;return Ef.getInstance().patchChartGPTChart(t,{type:n,name:a,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function rb(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e,t,o,i,r;return n(this,function(n){switch(n.label){case 0:return[4,Ef.getInstance().createChartGPTChart(a)];case 1:if(e=n.sent(),!(t=null!==(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==i?i:null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}})})},{useErrorBoundary:!1})}function sb(){var e=this;return Lg(["POST/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createTemplateReporting(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function cb(){var e=this;return Lg(["POST/template-reporting/report-templates/clone"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().cloneReportTemplate(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function ub(){var e=this;return Lg(["POST/template-reporting/report-templates/selection"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().updateTemplateSelection(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function lb(){var e=this;return Lg(["POST/template-reporting/report-templates/status"],function(a){var o=a.templateId,i=a.payload;return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().changeTemplateStatus(o,i).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function pb(){var e=this;return Lg(["DELETE/template-reporting/report-templates"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deleteReportTemplate(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})}function db(){var e=this;return Lg(["POST/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().createReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function mb(){var e=this;return Lg(["POST/template-reporting/report-schedules/deactivate"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deactivateReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}function hb(){var e=this;return Lg(["DELETE/template-reporting/report-schedules"],function(a){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().deleteReportSchedule(a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){my.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})}var fb=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),a=n[0],o=n[1];return E(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),a}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function gb(e){var a=this;return Pg(["fetch-payments-lazy",e],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function yb(e){return Pg(["fetch-payments-evaluated",e],function(){return Ef.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function vb(e){var a=this,o=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:r,cacheTime:500,useErrorBoundary:!1})}function bb(e){var a=this,o=e.payment_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-details-v2",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function xb(e){var a=this,o=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Ef.getInstance();return Pg(["get-payment-transaction-raw-response",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&r,cacheTime:0,useErrorBoundary:!1})}function kb(e){var t=fb();return Pg(["payment-methods",e],function(){return Ef.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function wb(){return Pg({queryKey:["/payment-methods/providers"],queryFn:function(){return Ef.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function _b(){return Pg(["GET/catalog/card-brands"],function(){return Ef.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Eb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Lm.PAYMENTS),Pg(["payment-filters",e,t],function(){return Ef.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Cb(){return Pg(["payment-metrics-filters"],function(){return Ef.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Sb(e){var t=e.transaction_code,n=e.enabled;return Pg(["payment-transaction-details",t],function(){return Ef.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Rb(e){var t=e.payment_code,n=e.enabled;return Pg(["transaction-history",t],function(){return Ef.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Tb(e){var a=this;return Pg(["POST/transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Ib(e){var a=this;return Pg(["POST/fraud-transactions",JSON.stringify(e)],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function jb(e){return Pg(["GET/payout-detail",JSON.stringify(e)],function(){var t=Ef.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Ab(e){return Pg(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Ef.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Ob(e){var t=fb();return Pg(["GET/payout-history-detail",JSON.stringify(e)],function(){return Ef.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Pb(e,a){var o=this,i=fb();return Pg(["GET/useGetProofOfCancel",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfCancel(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function Lb(e,a){var o=this,i=fb();return Pg(["GET/useGetProofOfPayment",i,e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getProofOfPayment(e,i,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!i&&!!a,cacheTime:0,useErrorBoundary:!1})}function zb(e,a,o){var i=this,r=Ef.getInstance();return Pg(["send-payment-notification",e,a],function(){return t(i,void 0,void 0,function(){var t,i;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,a)];case 1:return t=n.sent(),o.onSuccess(),[2,t.data];case 2:throw i=n.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function Db(e){return Pg(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Ef.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function qb(e){var a=this;void 0===e&&(e=!0);var o=fb();return Pg(["getPayoutsFilters",o],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Nb(e){var t=e.password,n=e.accountCode;return Pg(["developers"],function(){return Ef.getInstance().getDeveloperCredentials(t,n).then(function(e){return o(o({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function Mb(){return Pg(["fetch-customized-api-keys-members"],function(){return Ef.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Bb(){return Pg(["developers-get-allowed-ips"],function(){return Ef.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Ub(){return Pg(["fetch-customized-api-keys-accounts"],function(){return Ef.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Fb(e){return Pg(["fetch-customized-api-keys",e],function(){return Ef.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function Wb(){return Pg(["fetch-customized-api-keys-products"],function(){return Ef.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Hb(){return Lg(["developers-patch-allowed-ips"],function(e){return Ef.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?o(o({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return o(o({},e),{isError:!0})})},{cacheTime:0})}function Gb(){return Pg(["fetch-organizations"],function(){return Ef.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Vb(){return Pg(["fetch-all-organizations",fb()],function(){return Ef.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function $b(e){var t=fb();return Pg(["organizations-provider-params",e],function(e){var n=e.queryKey;return Ef.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Kb(e){var t=e.integration_code,n=e.enabled,a=e.accountCode;return Pg(["integration-params",t,a],function(){return t.includes("undefined")?{}:Ef.getInstance().getIntegrationParams({accountCode:a,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Qb(e){var t=e.accountCode,n=e.organizationCode,a=fb();return Pg(["organizations-account-integrations",t,n],function(){return Ef.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||a}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Jb(e){var t=e.accountCode,n=e.paymentMethod;return Pg(["fetch-connections-by-payment-method",n,t],function(){return Ef.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Xb(){var e=this;return Pg(["fetch-hash-pylon"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Yb(){return Pg(["connections"],function(){return Ef.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Zb(){return Pg(["dialogs"],function(){return Ef.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function ex(){return Pg(["params-catalog"],function(){return Ef.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function tx(e){var t=e.accountCode,n=e.name;return Pg(["webhooks",t,n],function(){return Ef.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function nx(e){var t=e.accountCode,n=e.enabled;return Pg(["webhooks-detail",t],function(){return Ef.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function ax(e){var t,n=fb(),a=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pg({queryKey:["accounts",a],queryFn:function(){return Ef.getInstance().getAccounts(a).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!a})}function ox(e){return Pg(["accountsV2",e],function(){return Ef.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function ix(e){return Pg(["accountsV2-by-user",e],function(){return e?Ef.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function rx(e,a){var o=this;return Pg({queryKey:["accounts-for-impersonation",e,a],queryFn:function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getAccountsForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:a?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function sx(){return Pg(["menu"],function(){return Ef.getInstance().getMenu().then(function(e){return sf(e)?hf:null==e?void 0:e.data}).catch(function(){return hf})})}function cx(){return Pg(["/payment/statuses/style"],function(){return Ef.getInstance().useGetPaymentStatusesStyles().then(function(e){return sf(e)?cf:null==e?void 0:e.data}).catch(function(){return cf})})}function ux(){return Pg(["/transaction/statuses/style"],function(){return Ef.getInstance().useGetTransactionStatusesStyles().then(function(e){return sf(e)?uf:null==e?void 0:e.data}).catch(function(){return uf})},{cacheTime:36e5,useErrorBoundary:!1})}function lx(){return Pg(["/reconciliation/transaction/statuses/style"],function(){return Ef.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return sf(e)?lf:null==e?void 0:e.data}).catch(function(){return lf})})}function px(){return Pg(["timezone-catalog"],function(){return Ef.getInstance().useGetTimeZoneCatalog().then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})})}function dx(){return Pg(["/cms/audit-logs-filters"],function(){return Ef.getInstance().useGetAuditLogsFilters().then(function(e){return sf(e)?df:null==e?void 0:e.data}).catch(function(){return df})})}function mx(){return Pg(["/cms/static-contents"],function(){return Ef.getInstance().getDashboardStaticContents().then(function(e){var t,n;return sf(e)?mf:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function hx(){return Pg(["/cms/locales"],function(){return Ef.getInstance().getLocales().then(function(e){return sf(e)?ff:e.data}).catch(function(){return ff})})}var fx=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return E(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}};function gx(e){return Pg(["smart-routing-methods",e],function(){return Ef.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function yx(e,t){return Pg(["smart-routing-workflow",t,e],function(){return Ef.getInstance().getSmartRoutingWorkflow(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function vx(e,t){return Pg(["smart-routing-condition-types",e,t],function(){return Ef.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function bx(e,t){return Pg(["smart-routing-condition-payment-method",e,t],function(){return Ef.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function xx(e,t){return Pg(["smart-routing-condition-types-values",t,e],function(){return Ef.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function kx(e){var t=e.accountCode,n=e.workflowVersionId;return Pg(["smart-routing-workflow-version",n,t],function(){return Ef.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function wx(e,t,n){return Pg(["smart-routing-next-route",e,n,t],function(){return Ef.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function _x(e){return Pg(["smart-routing-decline-groups",e],function(){return Ef.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Ex(e,t){return Pg(["smart-routing-payment-route",e,t],function(){return Ef.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})}function Cx(e){return Pg(["smart-routing-simulate-condition-type-values",e],function(){return Ef.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Sx(e){var t=e.text,n=e.conditionType;return Pg(["smart-routing-search-condition-values",t,n],function(){return Ef.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function Rx(){return Pg(["smart-routing-conversion-rates"],function(){return Ef.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function Tx(){var e=this;return Pg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Ix(){var e=this;return Pg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function jx(e){return Pg(["fetch-routing-monitors-templates",e],function(){return Ef.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ax(e,t){return Pg(["fetch-routing-monitors-template",e],function(){return Ef.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Ox(e){var t=e.accountCode;return Pg(["checkouts",t],function(){return Ef.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})}function Px(e){var t=e.accountCode;return Pg(["checkouts-template"],function(){return Ef.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})}var Lx=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},zx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Lx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getNameAndIcon({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)},Dx=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},qx=function(e,t){var n=e.paymentMethodType,a=e.type;return Pg(Dx({paymentMethodType:n,type:a}),function(){return Ef.getInstance().getRequiredFields({paymentMethodType:n,type:a}).then(function(e){return null==e?void 0:e.data})},t)};function Nx(e){var t=e.accountCode;return Pg(["styling-sdk-dynamic",t],function(){return Ef.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Mx(e){var t=e.accountCode;return Pg(["styling-theme",t],function(){return Ef.getInstance().getStylingTheme({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Bx(e){var t=e.accountCode;return Pg(["styling-settings",t],function(){return Ef.getInstance().getStylingSettings({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ux(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n;return Pg(["styling-settings-v2",t],function(){return Ef.getInstance().getStylingSettingsV2({accountCode:t,environment:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Fx(){return Lg(function(e){var t=e.accountCode,n=e.environment,a=void 0===n?"live":n,o=e.payload;return Ef.getInstance().changeStylingSettings({accountCode:t,environment:a,payload:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Wx(){return Pg(["fetch-profile"],function(){return Ef.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Hx(){var e=this;return Pg(["get-user-full"],function(){return t(e,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!0})}function Gx(e,t){return Pg(["fetch-permissions",e,t],function(){var e,t,n,a=localStorage.getItem("account"),o=localStorage.getItem("user"),i=a&&JSON.parse(a),r=o&&JSON.parse(o);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Vx(e){return Pg(["email-verification",e],function(){return Ef.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function $x(){return Pg({queryKey:["get-login-methods"],queryFn:function(){return Ef.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Kx(){return Pg(["fetch-impersonation-users"],function(){return Ef.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Qx(){return Pg(["fetch-impersonation-enabled"],function(){return Ef.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Jx(e,a,o,i,r){var s=this;return void 0===o&&(o=1),void 0===i&&(i=10),Pg(["get-users-to-impersonate",e,a,o,i,r],function(){return t(s,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getUsersToImpersonate(e,a,o,i,r).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Xx(e){var t;return Pg(["fetch-communications",e],function(){return Ef.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Yx(){return Pg(["fetch-communications-filters"],function(){return Ef.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zx(e,t){return Pg(["fetch-communication-details",e],function(){return Ef.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function ek(e){return Pg(["notifications-customer",e],function(){return Ef.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function tk(e){return Pg(["validate-opsgenie-key",e],function(){return Ef.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function nk(){return Pg(["notifications-merged"],function(){return Ef.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function ak(){return Lg(function(e){return Ef.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ok(){var e=this;return Lg(function(a){return t(e,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().pathNotification(a)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})})}var ik={key:"metadata_fields",name:"metadata_fields"};function rk(){return Pg(["reports"],function(){return Ef.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sk(e){return void 0===e&&(e=!0),Pg(["reports-multi-env"],function(){return Ef.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function ck(e,t,n){return void 0===t&&(t=!1),Pg(["reports/".concat(e)],function(){return Ef.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function uk(e){return Pg(["GET/reports/templates"],function(){return Ef.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function lk(a,o,i){var r=this;return Pg(["GET/reports/columns/".concat(o,"/").concat(i)],function(){return t(r,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportColumns(o,i).then(function(t){return o===Mm.ALL&&i===Nm.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[ik],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:a,useErrorBoundary:!1})}function pk(e,a){var o=this,i=fb();return Pg(["getRefundPdf",e,i,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getRefundPdf(e,i,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!i,useErrorBoundary:!1})}function dk(){var e=fb();return Pg(["teams-filters-members"],function(){return Ef.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function mk(e){var t=e.organizationCode,n=e.accountCodes,a=e.email,o=e.page,i=e.pageSize,r=fb();return Pg(["fetch-post-members-v2",t,n,a,o,i],function(){return Ef.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:a,page:o,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function hk(){return Pg(["fetch-roles"],function(){return Ef.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fk(){return Pg(["fetch-rolespermissions"],function(){return Ef.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function gk(){return Pg(["fetch-permissions-catalog"],function(){return Ef.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yk(e){return Pg(["data-report",e],function(){return Ef.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function vk(e,t,n){return void 0===n&&(n=!0),Pg(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Ef.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function bk(e,t){return Pg(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function xk(e){return Pg(["get-insights-conversion-rate-fallback-metrics",e],function(){return Ef.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function kk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-volume-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function wk(e,t,n,a){return void 0===a&&(a=!0),delete t.account_code,Pg(["get-insights-volume-metrics-v2",t,e,n],function(){return Ef.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:a,cacheTime:200,useErrorBoundary:!1})}function _k(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-total-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ek(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pg(["get-insights-customer-payment-fraud-metrics",t,e],function(){return Ef.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ck(e){return Pg(["get-insights-overview",e],function(){return Ef.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function Sk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Pg(["get-insights-overview-v3",e,t],function(){return Ef.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Rk(e){return Pg(["get-insights-home-metrics",e],function(){return Ef.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function Tk(e){return Pg(["get-insights-reports",e],function(){return Ef.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function Ik(e){return Pg(["get-insights-reports-again",e],function(){return Ef.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function jk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-conversion-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningConversionRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-volume-and-count-tx",a,e],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Pk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsConversionRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-decline-reasons",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsDeclineReasons(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsights3dsFrictionlessVsChallenge(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksVolumeAndCountTx(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Nk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-win-rate",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksWinRate(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Mk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-disputed",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksDisputed(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Bk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Uk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-reasons-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksReasonsDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Fk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-status-distribution",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksStatusDistribution(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Wk(e,a,o){var i=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-card-brand",e,a],queryFn:function(){return t(i,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByCardBrand(e,a)];case 1:return[2,t.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Hk(e,t){return Pg(["fetch-reconciliation-transaction",e],function(){return Ef.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Gk(e,t){return Pg(["fetch-reconciliation-settlements",e],function(){return Ef.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function Vk(e,t){return Pg(["fetch-reconciliation-metrics",e],function(){return Ef.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function $k(){return Pg(["GET-reconciliation-filters"],function(){return Ef.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Kk(e){return Pg(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Ef.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Qk(){return Pg(["GET/v1/reconciliation/active"],function(){return Ef.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Jk(e,t,n){return Pg(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Ef.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Xk(e){return Pg(["GET/reconciliation/reports/templates"],function(){return Ef.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function Yk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/alerts/list",t,n],function(){return Ef.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function Zk(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/list",t,n],function(){return Ef.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function ew(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/agenda/insights",t,n],function(){return Ef.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function tw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/sales/list",t,n],function(){return Ef.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/advancements/list",t,n],function(){return Ef.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function aw(e){var t=e.body,n=e.params,a=e.enabled;return Pg(["GET/reconciliation/fees/list",t,n],function(){return Ef.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:a,useErrorBoundary:!1})}function ow(e){var a=this,o=Object.values(e).filter(Boolean);return Pg(["feature-flags",o],function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function iw(e){var a=this,o=Pg({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(a,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),i=Rg();return E(function(){i.setQueryData(["cached-feature-flags"],o)},[o,i]),o}function rw(e){var t,n,a=Rg(),i=a.getQueryState(["cached-feature-flags"]),r=Boolean(!(null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.status)),s=Pg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return o(o({},s),{isLoading:r})}function sw(e){return Pg(["events",e],function(){return Ef.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function cw(e){return Pg(["audit-monitor-event-detail",e],function(){return Ef.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function uw(e){return Pg(["api-logs",e],function(){return Ef.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function lw(e){var t=e.params;return Pg(["webhook-logs",t],function(){return Ef.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function pw(e){return Pg(["api-logs-detail",e],function(){return Ef.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function dw(e,t){return Pg(["fetch-payment-links",e,t],function(){return Ef.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function mw(e){return Pg(["payment-link"],function(){return Ef.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function hw(e){return void 0===e&&(e=!0),Pg(["countries",e],function(){return Ef.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function fw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Pg(["countries-v2",n],function(){return Ef.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function gw(e){return Pg(["timezone"],function(){return Ef.getInstance().getTimezone(e).then(function(e){return sf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})},{enabled:!0,keepPreviousData:!0})}function yw(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function vw(e,t){return Pg(["get-cofig-allow-list",e],function(){return Ef.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function bw(e){return Pg(["get-black-list",e],function(){return Ef.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})}function xw(e,t,n,a){var o;return Pg(["post-black-list",e],function(){return Ef.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=a?a:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function kw(e,t,n){return Pg(["get-block-list-summary",e,t,n],function(){var a=Ef.getInstance();return n?a.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function ww(e,t,n,a,o,i){return Pg(["black-list-detail",e,t,a,o,i],function(){return Ef.getInstance().getBlacklistDetail(e,t,n,a,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})}function _w(e,t,n){return Pg(["allow-list-detail",e],function(){return Ef.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Ew(e){return Pg(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Ef.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Cw(e,a){var o=this;return void 0===e&&(e=26),void 0===a&&(a=0),Pg(["batch-refunds",e,a],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getBatchRefunds(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Sw(e){return Pg(["velocity-rules",e],function(){var t=Ef.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Rw(){return Pg(["config-rules"],function(){return Ef.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Tw(e,t){var n=e.organizationCode;return Pg(["mfa-excluded-users",n],function(){return Ef.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Iw(e,t){var n=e.organizationCode;return Pg(["mfa-config",n],function(){return Ef.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function jw(e,t){return Pg(["mfa-enforcement-status",e.accountCode],function(){return Ef.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Aw(e){return Pg(["fetch-organization-saml-config",e],function(){return Ef.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ow(e){return Pg(["chartgpt-chart-execute",e],function(){return Ef.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function Pw(){return Pg(["chartgpt-user-charts"],function(){return Ef.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Lw(){var e=this;return Pg(["chartgpt-user-charts-with-results"],function(){return t(e,void 0,void 0,function(){var e,a,i,r=this;return n(this,function(s){switch(s.label){case 0:return[4,(e=Ef.getInstance()).getChartsByUser()];case 1:return a=s.sent(),i=(null==a?void 0:a.data)||[],[4,Promise.all(i.map(function(a){return t(r,void 0,void 0,function(){var t,i,r,s,c,u,l,p;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(a.code)];case 1:return t=n.sent(),[2,o(o({},a),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:a.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:a.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(a.chart_id,":"),i),[2,o(o({},a),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function zw(e,a,o){var i=this;return void 0===o&&(o=!0),Pg(["chartgpt-patch-and-execute",e,a],function(){return t(i,void 0,void 0,function(){var t,o,i,r,s;return n(this,function(n){switch(n.label){case 0:return[4,(t=Ef.getInstance()).patchChartGPTChart(e,a)];case 1:return o=n.sent(),i=null==o?void 0:o.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function Dw(){return Pg(["languages"],function(){return Ef.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function qw(){var e=localStorage.getItem("lang")||"en";return Pg(["translations",e],function(){return Ef.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Nw(e,a){var o=this;return Pg(["GET/template-reporting/templates",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportTemplatesList(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a,useErrorBoundary:!1,cacheTime:0})}function Mw(e,a){var o=this;return Pg(["GET/template-reporting/template-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportTemplateById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Bw(e){var a=this;return Pg(["GET/template-reporting/schedules"],function(){return t(a,void 0,void 0,function(){return n(this,function(e){return[2,Ef.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:e,useErrorBoundary:!1,cacheTime:0})}function Uw(e,a){var o=this;return Pg(["GET/template-reporting/schedule-by-id",e],function(){return t(o,void 0,void 0,function(){return n(this,function(t){return[2,Ef.getInstance().getReportScheduleById(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Fw(){return Fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fw.apply(this,arguments)}
|
|
59
59
|
/**
|
|
60
60
|
* match-sorter-utils
|
|
61
61
|
*
|