@yuno-payments/dashboard-api-mfe 0.40.0 → 0.40.2

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.
@@ -46,7 +46,7 @@ function Ka(e){const t=Ha.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,i=Rr,r=o.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=s.exec(e),n=t&&i[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},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 o=e.charset(n);o&&(n+="; charset="+o.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=s.exec(t),o=n&&e.extensions[n[1].toLowerCase()];if(!o||!o.length)return!1;return o[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=r("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(i).forEach(function(e){var o=i[e],r=o.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(i[n[c]].source),l=a.indexOf(o.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}})}(Sr);var Tr=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Ar=function(e){var t=!1;return Tr(function(){t=!0}),function(n,o){t?e(n,o):Tr(function(){e(n,o)})}};var Ir=function(e){Object.keys(e.jobs).forEach(jr.bind(e)),e.jobs={}};function jr(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Or=Ar,Pr=Ir,Lr=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,o){var a;a=2==e.length?e(n,Or(o)):e(n,t,Or(o));return a}(t,a,e[a],function(e,t){a in n.jobs&&(delete n.jobs[a],e?Pr(n):n.results[a]=t,o(e,n.results))})};var Dr=function(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&o.keyedList.sort(n?t:function(n,o){return t(e[n],e[o])});return o};var zr=Ir,qr=Ar,Mr=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,zr(this),qr(e)(null,this.results)};var Nr=Lr,Br=Dr,Ur=Mr,Fr=function(e,t,n){var o=Br(e);for(;o.index<(o.keyedList||e).length;)Nr(e,t,o,function(e,t){e?n(e,t):0!==Object.keys(o.jobs).length||n(null,o.results)}),o.index++;return Ur.bind(o,n)};var Gr={exports:{}},Wr=Lr,Vr=Dr,Hr=Mr;function Kr(e,t){return e<t?-1:e>t?1:0}Gr.exports=function(e,t,n,o){var a=Vr(e,n);return Wr(e,t,a,function n(i,r){i?o(i,r):(a.index++,a.index<(a.keyedList||e).length?Wr(e,t,a,n):o(null,a.results))}),Hr.bind(a,o)},Gr.exports.ascending=Kr,Gr.exports.descending=function(e,t){return-1*Kr(e,t)};var $r=Gr.exports,Qr=$r,Jr=function(e,t,n){return Qr(e,t,null,n)};var Xr={parallel:Fr,serial:Jr,serialOrdered:$r},Yr=Object,Zr=Error,es=EvalError,ts=RangeError,ns=ReferenceError,os=SyntaxError,as=TypeError,is=URIError,rs=Math.abs,ss=Math.floor,cs=Math.max,us=Math.min,ls=Math.pow,ps=Math.round,ds=Number.isNaN||function(e){return e!=e},ms=Object.getOwnPropertyDescriptor;if(ms)try{ms([],"length")}catch(e){ms=null}var hs=ms,fs=Object.defineProperty||!1;if(fs)try{fs({},"a",{value:1})}catch(e){fs=!1}var gs,ys,vs,bs,xs,ks,ws,_s,Es,Cs,Ss,Rs,Ts,As,Is,js,Os=fs;function Ps(){return ys?gs:(ys=1,gs=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 o 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 a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[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 Ls(){return ks?xs:(ks=1,xs="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Ds(){return _s?ws:(_s=1,ws=Yr.getPrototypeOf||null)}function zs(){if(Cs)return Es;Cs=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return Es=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var i,r=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=a.apply(this,n(r,arguments));return Object(e)===e?e:this}return a.apply(o,n(r,arguments))}),a.prototype){var l=function(){};l.prototype=a.prototype,i.prototype=new l,l.prototype=null}return i},Es}function qs(){if(Rs)return Ss;Rs=1;var e=zs();return Ss=Function.prototype.bind||e}function Ms(){return As?Ts:(As=1,Ts=Function.prototype.call)}function Ns(){return js?Is:(js=1,Is=Function.prototype.apply)}var Bs,Us,Fs,Gs,Ws="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Vs=qs(),Hs=Ns(),Ks=Ms(),$s=Ws||Vs.call(Ks,Hs),Qs=qs(),Js=as,Xs=Ms(),Ys=$s,Zs=function(e){if(e.length<1||"function"!=typeof e[0])throw new Js("a function is required");return Ys(Qs,Xs,e)};var ec,tc=Function.prototype.call,nc=Object.prototype.hasOwnProperty,oc=qs().call(tc,nc),ac=Yr,ic=Zr,rc=es,sc=ts,cc=ns,uc=os,lc=as,pc=is,dc=rs,mc=ss,hc=cs,fc=us,gc=ls,yc=ps,vc=function(e){return ds(e)||0===e?e:e<0?-1:1},bc=Function,xc=function(e){try{return bc('"use strict"; return ('+e+").constructor;")()}catch(e){}},kc=hs,wc=Os,_c=function(){throw new lc},Ec=kc?function(){try{return _c}catch(e){try{return kc(arguments,"callee").get}catch(e){return _c}}}():_c,Cc=function(){if(bs)return vs;bs=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ps();return vs=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Sc=function(){if(Gs)return Fs;Gs=1;var e=Ls(),t=Ds(),n=function(){if(Us)return Bs;Us=1;var e,t=Zs,n=hs;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return Bs=o&&"function"==typeof o.get?t([o.get]):"function"==typeof i&&function(e){return i(null==e?e:a(e))}}();return Fs=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}(),Rc=Ds(),Tc=Ls(),Ac=Ns(),Ic=Ms(),jc={},Oc="undefined"!=typeof Uint8Array&&Sc?Sc(Uint8Array):ec,Pc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?ec:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ec:ArrayBuffer,"%ArrayIteratorPrototype%":Cc&&Sc?Sc([][Symbol.iterator]()):ec,"%AsyncFromSyncIteratorPrototype%":ec,"%AsyncFunction%":jc,"%AsyncGenerator%":jc,"%AsyncGeneratorFunction%":jc,"%AsyncIteratorPrototype%":jc,"%Atomics%":"undefined"==typeof Atomics?ec:Atomics,"%BigInt%":"undefined"==typeof BigInt?ec:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ec:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ec:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ec:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ic,"%eval%":eval,"%EvalError%":rc,"%Float16Array%":"undefined"==typeof Float16Array?ec:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?ec:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ec:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ec:FinalizationRegistry,"%Function%":bc,"%GeneratorFunction%":jc,"%Int8Array%":"undefined"==typeof Int8Array?ec:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ec:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ec:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Cc&&Sc?Sc(Sc([][Symbol.iterator]())):ec,"%JSON%":"object"==typeof JSON?JSON:ec,"%Map%":"undefined"==typeof Map?ec:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Cc&&Sc?Sc((new Map)[Symbol.iterator]()):ec,"%Math%":Math,"%Number%":Number,"%Object%":ac,"%Object.getOwnPropertyDescriptor%":kc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ec:Promise,"%Proxy%":"undefined"==typeof Proxy?ec:Proxy,"%RangeError%":sc,"%ReferenceError%":cc,"%Reflect%":"undefined"==typeof Reflect?ec:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ec:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Cc&&Sc?Sc((new Set)[Symbol.iterator]()):ec,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ec:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Cc&&Sc?Sc(""[Symbol.iterator]()):ec,"%Symbol%":Cc?Symbol:ec,"%SyntaxError%":uc,"%ThrowTypeError%":Ec,"%TypedArray%":Oc,"%TypeError%":lc,"%Uint8Array%":"undefined"==typeof Uint8Array?ec:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ec:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ec:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ec:Uint32Array,"%URIError%":pc,"%WeakMap%":"undefined"==typeof WeakMap?ec:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ec:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ec:WeakSet,"%Function.prototype.call%":Ic,"%Function.prototype.apply%":Ac,"%Object.defineProperty%":wc,"%Object.getPrototypeOf%":Rc,"%Math.abs%":dc,"%Math.floor%":mc,"%Math.max%":hc,"%Math.min%":fc,"%Math.pow%":gc,"%Math.round%":yc,"%Math.sign%":vc,"%Reflect.getPrototypeOf%":Tc};if(Sc)try{null.error}catch(e){var Lc=Sc(Sc(e));Pc["%Error.prototype%"]=Lc}var Dc,zc,qc=function e(t){var n;if("%AsyncFunction%"===t)n=xc("async function () {}");else if("%GeneratorFunction%"===t)n=xc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=xc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&Sc&&(n=Sc(a.prototype))}return Pc[t]=n,n},Mc={__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"]},Nc=qs(),Bc=oc,Uc=Nc.call(Ic,Array.prototype.concat),Fc=Nc.call(Ac,Array.prototype.splice),Gc=Nc.call(Ic,String.prototype.replace),Wc=Nc.call(Ic,String.prototype.slice),Vc=Nc.call(Ic,RegExp.prototype.exec),Hc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Kc=/\\(\\)?/g,$c=function(e,t){var n,o=e;if(Bc(Mc,o)&&(o="%"+(n=Mc[o])[0]+"%"),Bc(Pc,o)){var a=Pc[o];if(a===jc&&(a=qc(o)),void 0===a&&!t)throw new lc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new uc("intrinsic "+e+" does not exist!")},Qc=function(e,t){if("string"!=typeof e||0===e.length)throw new lc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new lc('"allowMissing" argument must be a boolean');if(null===Vc(/^%?[^%]*%?$/,e))throw new uc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Wc(e,0,1),n=Wc(e,-1);if("%"===t&&"%"!==n)throw new uc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new uc("invalid intrinsic syntax, expected opening `%`");var o=[];return Gc(e,Hc,function(e,t,n,a){o[o.length]=n?Gc(a,Kc,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",a=$c("%"+o+"%",t),i=a.name,r=a.value,s=!1,c=a.alias;c&&(o=c[0],Fc(n,Uc([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=Wc(p,0,1),m=Wc(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new uc("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Bc(Pc,i="%"+(o+="."+p)+"%"))r=Pc[i];else if(null!=r){if(!(p in r)){if(!t)throw new lc("base intrinsic for "+e+" exists, but the property is not available.");return}if(kc&&u+1>=n.length){var h=kc(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Bc(r,p),r=r[p];l&&!s&&(Pc[i]=r)}}return r};var Jc=Qc("%Object.defineProperty%",!0),Xc=function(){if(zc)return Dc;zc=1;var e=Ps();return Dc=function(){return e()&&!!Symbol.toStringTag}}()(),Yc=oc,Zc=as,eu=Xc?Symbol.toStringTag:null,tu=Er,nu=t,ou=o,au=a,iu=i,ru=r.parse,su=s,cu=n.Stream,uu=c,lu=Sr,pu=Xr,du=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==o&&"boolean"!=typeof o)throw new Zc("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!eu||!n&&Yc(e,eu)||(Jc?Jc(e,eu,{configurable:!o,enumerable:!1,value:t,writable:!1}):e[eu]=t)},mu=oc,hu=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function fu(e){if(!(this instanceof fu))return new fu(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],tu.call(this),e=e||{})this[t]=e[t]}nu.inherits(fu,tu),fu.LINE_BREAK="\r\n",fu.DEFAULT_CONTENT_TYPE="application/octet-stream",fu.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=tu.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 a=this._multiPartHeader(e,t,n),i=this._multiPartFooter();o(a),o(t),o(i),this._trackLength(a,t,n)}},fu.prototype._trackLength=function(e,t,n){var o=0;null!=n.knownLength?o+=Number(n.knownLength):Buffer.isBuffer(t)?o=t.length:"string"==typeof t&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+fu.LINE_BREAK.length,t&&(t.path||t.readable&&mu(t,"httpVersion")||t instanceof cu)&&(n.knownLength||this._valuesToMeasure.push(t))},fu.prototype._lengthRetriever=function(e,t){mu(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):su.stat(e.path,function(n,o){if(n)t(n);else{var a=o.size-(e.start?e.start:0);t(null,a)}}):mu(e,"httpVersion")?t(null,Number(e.headers["content-length"])):mu(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},fu.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var o,a=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&hu(s,n.header),s)if(mu(s,c)){if(null==(o=s[c]))continue;Array.isArray(o)||(o=[o]),o.length&&(r+=c+": "+o.join("; ")+fu.LINE_BREAK)}return"--"+this.getBoundary()+fu.LINE_BREAK+r+fu.LINE_BREAK},fu.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=ou.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=ou.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&mu(e,"httpVersion")&&(n=ou.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},fu.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=lu.lookup(e.name)),!n&&e&&e.path&&(n=lu.lookup(e.path)),!n&&e&&e.readable&&mu(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=lu.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=fu.DEFAULT_CONTENT_TYPE),n},fu.prototype._multiPartFooter=function(){return function(e){var t=fu.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},fu.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+fu.LINE_BREAK},fu.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)mu(e,t)&&(n[t.toLowerCase()]=e[t]);return n},fu.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},fu.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},fu.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,o=this._streams.length;n<o;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(fu.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},fu.prototype._generateBoundary=function(){this._boundary="--------------------------"+uu.randomBytes(12).toString("hex")},fu.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},fu.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},fu.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?pu.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){n?e(n):(o.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},fu.prototype.submit=function(e,t){var n,o,a={method:"post"};return"string"==typeof e?(e=ru(e),o=hu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(o=hu(e,a)).port||(o.port="https:"===o.protocol?443:80),o.headers=this.getHeaders(e.headers),n="https:"===o.protocol?iu.request(o):au.request(o),this.getLength(function(e,o){if(e&&"Unknown stream"!==e)this._error(e);else if(o&&n.setHeader("Content-Length",o),this.pipe(n),t){var a,i=function(e,o){return n.removeListener("error",i),n.removeListener("response",a),t.call(this,e,o)};a=i.bind(this,null),n.on("error",i),n.on("response",a)}}.bind(this)),n},fu.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},fu.prototype.toString=function(){return"[object FormData]"},du(fu,"FormData");var gu=yr(fu);function yu(e){return dr.isPlainObject(e)||dr.isArray(e)}function vu(e){return dr.endsWith(e,"[]")?e.slice(0,-2):e}function bu(e,t,n){return e?e.concat(t).map(function(e,t){return e=vu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const xu=dr.toFlatObject(dr,{},null,function(e){return/^is[A-Z]/.test(e)});function ku(e,t,n){if(!dr.isObject(e))throw new TypeError("target must be an object");t=t||new(gu||FormData);const o=(n=dr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!dr.isUndefined(t[e])})).metaTokens,a=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&dr.isSpecCompliantForm(t);if(!dr.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(dr.isDate(e))return e.toISOString();if(dr.isBoolean(e))return e.toString();if(!s&&dr.isBlob(e))throw new mr("Blob is not supported. Use a Buffer instead.");return dr.isArrayBuffer(e)||dr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(dr.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(dr.isArray(e)&&function(e){return dr.isArray(e)&&!e.some(yu)}(e)||(dr.isFileList(e)||dr.endsWith(n,"[]"))&&(s=dr.toArray(e)))return n=vu(n),s.forEach(function(e,o){!dr.isUndefined(e)&&null!==e&&t.append(!0===r?bu([n],o,i):null===r?n:n+"[]",c(e))}),!1;return!!yu(e)||(t.append(bu(a,n,i),c(e)),!1)}const l=[],p=Object.assign(xu,{defaultVisitor:u,convertValue:c,isVisitable:yu});if(!dr.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!dr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),dr.forEach(n,function(n,i){!0===(!(dr.isUndefined(n)||null===n)&&a.call(t,n,dr.isString(i)?i.trim():i,o,p))&&e(n,o?o.concat(i):[i])}),l.pop()}}(e),t}function wu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function _u(e,t){this._pairs=[],e&&ku(e,this,t)}const Eu=_u.prototype;function Cu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Su(e,t,n){if(!t)return e;const o=n&&n.encode||Cu;dr.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(i=a?a(t,n):dr.isURLSearchParams(t)?t.toString():new _u(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Eu.append=function(e,t){this._pairs.push([e,t])},Eu.toString=function(e){const t=e?function(t){return e.call(this,t,wu)}:wu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ru=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){dr.forEach(this.handlers,function(t){null!==t&&e(t)})}},Tu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Au=r.URLSearchParams;const Iu="abcdefghijklmnopqrstuvwxyz",ju="0123456789",Ou={DIGIT:ju,ALPHA:Iu,ALPHA_DIGIT:Iu+Iu.toUpperCase()+ju};var Pu={isNode:!0,classes:{URLSearchParams:Au,FormData:gu,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Ou,generateString:(e=16,t=Ou.ALPHA_DIGIT)=>{let n="";const{length:o}=t,a=new Uint32Array(e);c.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%o];return n},protocols:["http","https","file","data"]};const Lu="undefined"!=typeof window&&"undefined"!=typeof document,Du="object"==typeof navigator&&navigator||void 0,zu=Lu&&(!Du||["ReactNative","NativeScript","NS"].indexOf(Du.product)<0),qu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Mu=Lu&&window.location.href||"http://localhost";var Nu={...Object.freeze({__proto__:null,hasBrowserEnv:Lu,hasStandardBrowserEnv:zu,hasStandardBrowserWebWorkerEnv:qu,navigator:Du,origin:Mu}),...Pu};function Bu(e){function t(e,n,o,a){let i=e[a++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=a>=e.length;if(i=!i&&dr.isArray(o)?o.length:i,s)return dr.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!r;o[i]&&dr.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],a)&&dr.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let i;for(o=0;o<a;o++)i=n[o],t[i]=e[i];return t}(o[i])),!r}if(dr.isFormData(e)&&dr.isFunction(e.entries)){const n={};return dr.forEachEntry(e,(e,o)=>{t(function(e){return dr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const Uu={transitional:Tu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=dr.isObject(e);a&&dr.isHTMLForm(e)&&(e=new FormData(e));if(dr.isFormData(e))return o?JSON.stringify(Bu(e)):e;if(dr.isArrayBuffer(e)||dr.isBuffer(e)||dr.isStream(e)||dr.isFile(e)||dr.isBlob(e)||dr.isReadableStream(e))return e;if(dr.isArrayBufferView(e))return e.buffer;if(dr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ku(e,new Nu.classes.URLSearchParams,{visitor:function(e,t,n,o){return Nu.isNode&&dr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=dr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ku(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(dr.isString(e))try{return(t||JSON.parse)(e),dr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Uu.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(dr.isResponse(e)||dr.isReadableStream(e))return e;if(e&&dr.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw mr.from(e,mr.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:Nu.classes.FormData,Blob:Nu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dr.forEach(["delete","get","head","post","put","patch"],e=>{Uu.headers[e]={}});var Fu=Uu;const Gu=dr.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 Wu=Symbol("internals");function Vu(e){return e&&String(e).trim().toLowerCase()}function Hu(e){return!1===e||null==e?e:dr.isArray(e)?e.map(Hu):String(e)}function Ku(e,t,n,o,a){return dr.isFunction(o)?o.call(this,t,n):(a&&(t=n),dr.isString(t)?dr.isString(o)?-1!==t.indexOf(o):dr.isRegExp(o)?o.test(t):void 0:void 0)}class $u{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=Vu(t);if(!a)throw new Error("header name must be a non-empty string");const i=dr.findKey(o,a);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=Hu(e))}const i=(e,t)=>dr.forEach(e,(e,n)=>a(e,n,t));if(dr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(dr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&Gu[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(dr.isObject(e)&&dr.isIterable(e)){let n,o,a={};for(const t of e){if(!dr.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?dr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Vu(e)){const n=dr.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 o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(dr.isFunction(t))return t.call(this,e,n);if(dr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vu(e)){const n=dr.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ku(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=Vu(e)){const a=dr.findKey(n,e);!a||t&&!Ku(0,n[a],a,t)||(delete n[a],o=!0)}}return dr.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!Ku(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return dr.forEach(this,(o,a)=>{const i=dr.findKey(n,a);if(i)return t[i]=Hu(o),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();r!==a&&delete t[a],t[r]=Hu(o),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return dr.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&dr.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[Wu]=this[Wu]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Vu(e);t[o]||(!function(e,t){const n=dr.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[o]=!0)}return dr.isArray(e)?e.forEach(o):o(e),this}}$u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors($u.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),dr.freezeMethods($u);var Qu=$u;function Ju(e,t){const n=this||Fu,o=t||n,a=Qu.from(o.headers);let i=o.data;return dr.forEach(e,function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Xu(e){return!(!e||!e.__CANCEL__)}function Yu(e,t,n){mr.call(this,null==e?"canceled":e,mr.ERR_CANCELED,t,n),this.name="CanceledError"}function Zu(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new mr("Request failed with status code "+n.status,[mr.ERR_BAD_REQUEST,mr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function el(e,t,n){let o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}dr.inherits(Yu,mr,{__CANCEL__:!0});var tl={},nl=r.parse,ol={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},al=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function il(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}tl.getProxyForUrl=function(e){var t="string"==typeof e?nl(e):e||{},n=t.protocol,o=t.host,a=t.port;if("string"!=typeof o||!o||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(il("npm_config_no_proxy")||il("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,i=o?parseInt(o[2]):0;return!(!i||i===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!al.call(e,a)):e!==a)})}(o=o.replace(/:\d*$/,""),a=parseInt(a)||ol[n]||0))return"";var i=il("npm_config_"+n+"_proxy")||il(n+"_proxy")||il("npm_config_proxy")||il("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var rl,sl,cl,ul,ll,pl={exports:{}},dl={exports:{}},ml={exports:{}};function hl(){if(sl)return rl;sl=1;var e=1e3,t=60*e,n=60*t,o=24*n,a=7*o,i=365.25*o;function r(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}return rl=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*a;case"days":case"day":case"d":return c*o;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(a){var i=Math.abs(a);if(i>=o)return r(a,i,o,"day");if(i>=n)return r(a,i,n,"hour");if(i>=t)return r(a,i,t,"minute");if(i>=e)return r(a,i,e,"second");return a+" ms"}(s):function(a){var i=Math.abs(a);if(i>=o)return Math.round(a/o)+"d";if(i>=n)return Math.round(a/n)+"h";if(i>=t)return Math.round(a/t)+"m";if(i>=e)return Math.round(a/e)+"s";return a+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},rl}function fl(){if(ul)return cl;return ul=1,cl=function(e){function t(e){let o,a,i,r=null;function s(...e){if(!s.enabled)return;const n=s,a=Number(new Date),i=a-(o||a);n.diff=i,n.prev=o,n.curr=a,o=a,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,(o,a)=>{if("%%"===o)return"%";r++;const i=t.formatters[a];if("function"==typeof i){const t=e[r];o=i.call(n,t),e.splice(r,1),r--}return o}),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:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function o(e,t){let n=0,o=0,a=-1,i=0;for(;n<e.length;)if(o<t.length&&(t[o]===e[n]||"*"===t[o]))"*"===t[o]?(a=o,i=n,o++):(n++,o++);else{if(-1===a)return!1;o=a+1,i++,n=i}for(;o<t.length&&"*"===t[o];)o++;return o===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(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=hl(),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},cl}var gl,yl,vl,bl,xl,kl,wl,_l={exports:{}};function El(){return yl?gl:(yl=1,gl=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(n+e),a=t.indexOf("--");return-1!==o&&(-1===a||o<a)})}function Cl(){return xl||(xl=1,function(e,n){const o=l,a=t;n.init=function(e){e.inspectOpts={};const t=Object.keys(n.inspectOpts);for(let o=0;o<t.length;o++)e.inspectOpts[t[o]]=n.inspectOpts[t[o]]},n.log=function(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+"\n")},n.formatArgs=function(t){const{namespace:o,useColors:a}=this;if(a){const n=this.color,a="[3"+(n<8?n:"8;5;"+n),i=` ${a};1m${o} `;t[0]=i+t[0].split("\n").join("\n"+i),t.push(a+"m+"+e.exports.humanize(this.diff)+"")}else t[0]=function(){if(n.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+o+" "+t[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):o.isatty(process.stderr.fd)},n.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`."),n.colors=[6,2,3,4,5,1];try{const e=function(){if(bl)return vl;bl=1;const e=p,t=l,n=El(),{env:o}=process;let a;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===a)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===a)return 0;const r=a||0;if("dumb"===o.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 o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in o)||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?a=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),vl={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},vl}();e&&(e.stderr||e).level>=2&&(n.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){}n.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 o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[n]=o,e},{}),e.exports=fl()(n);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(_l,_l.exports)),_l.exports}function Sl(){return kl||(kl=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?dl.exports=(ll||(ll=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 o=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(a=o))}),t.splice(a,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=fl()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ml,ml.exports)),ml.exports):dl.exports=Cl()),dl.exports}var Rl,Tl,Al,Il=r,jl=Il.URL,Ol=a,Pl=i,Ll=n.Writable,Dl=u,zl=function(){if(!wl){try{wl=Sl()("follow-redirects")}catch(e){}"function"!=typeof wl&&(wl=function(){})}wl.apply(null,arguments)};Rl="undefined"!=typeof process,Tl="undefined"!=typeof window&&"undefined"!=typeof document,Al=op(Error.captureStackTrace),Rl||!Tl&&Al||console.warn("The follow-redirects package should be excluded from browser builds.");var ql=!1;try{Dl(new jl(""))}catch(_o){ql="ERR_INVALID_URL"===_o.code}var Ml=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Nl=["abort","aborted","connect","error","socket","timeout"],Bl=Object.create(null);Nl.forEach(function(e){Bl[e]=function(t,n,o){this._redirectable.emit(e,t,n,o)}});var Ul=ep("ERR_INVALID_URL","Invalid URL",TypeError),Fl=ep("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Gl=ep("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Fl),Wl=ep("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Vl=ep("ERR_STREAM_WRITE_AFTER_END","write after end"),Hl=Ll.prototype.destroy||Ql;function Kl(e,t){Ll.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 Fl?e:new Fl({cause:e}))}},this._performRequest()}function $l(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(o){var a=o+":",i=n[a]=e[o],r=t[o]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,o,i){var r;return r=e,jl&&r instanceof jl?e=Yl(e):np(e)?e=Yl(Jl(e)):(i=o,o=Xl(e),e={protocol:a}),op(o)&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,np(o.host)||np(o.hostname)||(o.hostname="::1"),Dl.equal(o.protocol,a,"protocol mismatch"),zl("options",o),new Kl(o,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var o=r.request(e,t,n);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})}),t}function Ql(){}function Jl(e){var t;if(ql)t=new jl(e);else if(!np((t=Xl(Il.parse(e))).protocol))throw new Ul({input:e});return t}function Xl(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Ul({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Ul({input:e.href||e});return e}function Yl(e,t){var n=t||{};for(var o of Ml)n[o]=e[o];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 Zl(e,t){var n;for(var o in t)e.test(o)&&(n=t[o],delete t[o]);return null==n?void 0:String(n).trim()}function ep(e,t,n){function o(n){op(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return o.prototype=new(n||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),o}function tp(e,t){for(var n of Nl)e.removeListener(n,Bl[n]);e.on("error",Ql),e.destroy(t)}function np(e){return"string"==typeof e||e instanceof String}function op(e){return"function"==typeof e}Kl.prototype=Object.create(Ll.prototype),Kl.prototype.abort=function(){tp(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Kl.prototype.destroy=function(e){return tp(this._currentRequest,e),Hl.call(this,e),this},Kl.prototype.write=function(e,t,n){if(this._ending)throw new Vl;if(!np(e)&&("object"!=typeof(o=e)||!("length"in o)))throw new TypeError("data should be a string, Buffer or Uint8Array");var o;op(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 Wl),this.abort()):n&&n()},Kl.prototype.end=function(e,t,n){if(op(e)?(n=e,e=t=null):op(t)&&(n=t,t=null),e){var o=this,a=this._currentRequest;this.write(e,t,function(){o._ended=!0,a.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},Kl.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Kl.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Kl.prototype.setTimeout=function(e,t){var n=this;function o(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),i()},e),o(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",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",o),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Kl.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Kl.prototype,e,{get:function(){return this._currentRequest[e]}})}),Kl.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))}},Kl.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 o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(o._redirectable=this,Nl))o.on(a,Bl[a]);if(this._currentUrl=/^\//.test(this._options.path)?Il.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(o===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];o.finished||o.write(n.data,n.encoding,e)}else r._ended&&o.end()}()}},Kl.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,o=e.headers.location;if(!o||!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(tp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Gl;var a=this._options.beforeRedirect;a&&(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=[],Zl(/^content-/i,this._options.headers));var r,s,c=Zl(/^host$/i,this._options.headers),u=Jl(this._currentUrl),l=c||u.host,p=/^\w+:/.test(o)?this._currentUrl:Il.format(Object.assign(u,{host:l})),d=(r=o,s=p,ql?new jl(r,s):Jl(Il.resolve(s,r)));if(zl("redirecting to",d.href),this._isRedirect=!0,Yl(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Dl(np(e)&&np(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&Zl(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),op(a)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};a(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},pl.exports=$l({http:Ol,https:Pl}),pl.exports.wrap=$l;var ap=yr(pl.exports);const ip="1.12.2";function rp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const sp=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const cp=Symbol("internals");class up extends n.Transform{constructor(e){super({readableHighWaterMark:(e=dr.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!dr.isUndefined(t[e]))).chunkSize});const t=this[cp]={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[cp];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const o=this[cp],a=o.maxRate,i=this.readableHighWaterMark,r=o.timeWindow,s=a/(1e3/r),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);o.bytesSeen+=n,o.bytes+=n,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(e)?process.nextTick(t):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(a){const e=Date.now();(!o.ts||(m=e-o.ts)>=r)&&(o.ts=e,l=s-o.bytes,o.bytes=l<0?-l:0,m=0),l=s-o.bytes}if(a){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,o){if(t)return n(t);o?l(o,e):n(null)})}}var lp=up;const{asyncIterator:pp}=Symbol;var dp=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[pp]?yield*e[pp]():yield e};const mp=Nu.ALPHABET.ALPHA_DIGIT+"-_",hp="function"==typeof TextEncoder?new TextEncoder:new t.TextEncoder,fp="\r\n",gp=hp.encode(fp);class yp{constructor(e,t){const{escapeName:n}=this.constructor,o=dr.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!o&&t.name?`; filename="${n(t.name)}"`:""}${fp}`;o?t=hp.encode(String(t).replace(/\r?\n|\r\n?/g,fp)):a+=`Content-Type: ${t.type||"application/octet-stream"}${fp}`,this.headers=hp.encode(a+fp),this.contentLength=o?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;dr.isTypedArray(e)?yield e:yield*dp(e),yield gp}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var vp=(e,t,o)=>{const{tag:a="form-data-boundary",size:i=25,boundary:r=a+"-"+Nu.generateString(i,mp)}=o||{};if(!dr.isFormData(e))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 10-70 characters long");const s=hp.encode("--"+r+fp),c=hp.encode("--"+r+"--"+fp);let u=c.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new yp(e,t);return u+=n.size,n});u+=s.byteLength*l.length,u=dr.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),n.Readable.from(async function*(){for(const e of l)yield s,yield*e.encode();yield c}())};class bp extends n.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 xp=bp;var kp=(e,t)=>dr.isAsyncFn(e)?function(...n){const o=n.pop();e.apply(this,n).then(e=>{try{t?o(null,...t(e)):o(null,e)}catch(e){o(e)}},o)}:e;const wp=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[r];a||(a=c),n[i]=s,o[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-a<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,o,a=0,i=1e3/t;const r=(t,i=Date.now())=>{a=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=i?r(e,t):(n=e,o||(o=setTimeout(()=>{o=null,r(n)},i-s)))},()=>n&&r(n)]}(n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-o,c=a(s);o=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)},_p=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ep=e=>(...t)=>dr.asap(()=>e(...t));const Cp={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},Sp={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},Rp=dr.isFunction(d.createBrotliDecompress),{http:Tp,https:Ap}=ap,Ip=/https:?/,jp=Nu.protocols.map(e=>e+":"),Op=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Pp(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Lp(e,t,n){let o=t;if(!o&&!1!==o){const e=tl.getProxyForUrl(n);e&&(o=new URL(e))}if(o){if(o.username&&(o.auth=(o.username||"")+":"+(o.password||"")),o.auth){(o.auth.username||o.auth.password)&&(o.auth=(o.auth.username||"")+":"+(o.auth.password||""));const t=Buffer.from(o.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=o.hostname||o.host;e.hostname=t,e.host=t,e.port=o.port,e.path=n,o.protocol&&(e.protocol=o.protocol.includes(":")?o.protocol:`${o.protocol}:`)}e.beforeRedirects.proxy=function(e){Lp(e,t,e.href)}}const Dp="undefined"!=typeof process&&"process"===dr.kindOf(process),zp=(e,t)=>(({address:e,family:t})=>{if(!dr.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(dr.isObject(e)?e:{address:e,family:t});var qp=Dp&&function(e){return o=async function(o,r,s){let{data:c,lookup:u,family:l}=e;const{responseType:p,responseEncoding:h}=e,f=e.method.toUpperCase();let g,y,v=!1;if(u){const e=kp(u,e=>dr.isArray(e)?e:[e]);u=(t,n,o)=>{e(t,n,(e,t,a)=>{if(e)return o(e);const i=dr.isArray(t)?t.map(e=>zp(e)):[zp(t,a)];n.all?o(e,i):o(e,i[0].address,i[0].family)})}}const b=new m.EventEmitter,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(k),e.signal&&e.signal.removeEventListener("abort",k),b.removeAllListeners()};function k(t){b.emit("abort",!t||t.type?new Yu(null,e,y):t)}s((e,t)=>{g=!0,t&&(v=!0,x())}),b.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(k),e.signal&&(e.signal.aborted?k():e.signal.addEventListener("abort",k)));const w=el(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,Nu.hasBrowserEnv?Nu.origin:void 0),E=_.protocol||jp[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),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){const t=o.charCodeAt(n+1),a=o.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(e-=2,n+=2)}let n=0,a=t-1;const i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));a>=0&&(61===o.charCodeAt(a)?(n++,a--):i(a)&&(n++,a-=3)),1===n&&a>=0&&(61===o.charCodeAt(a)||i(a))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(o,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return r(new mr("maxContentLength size of "+e.maxContentLength+" exceeded",mr.ERR_BAD_RESPONSE,e))}let t;if("GET"!==f)return Zu(o,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{t=function(e,t,n){const o=n&&n.Blob||Nu.classes.Blob,a=rp(e);if(void 0===t&&o&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=sp.exec(e);if(!n)throw new mr("Invalid URL",mr.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!o)throw new mr("Blob is not supported",mr.ERR_NOT_SUPPORT);return new o([c],{type:i})}return c}throw new mr("Unsupported protocol "+a,mr.ERR_NOT_SUPPORT)}(e.url,"blob"===p,{Blob:e.env&&e.env.Blob})}catch(t){throw mr.from(t,mr.ERR_BAD_REQUEST,e)}return"text"===p?(t=t.toString(h),h&&"utf8"!==h||(t=dr.stripBOM(t))):"stream"===p&&(t=n.Readable.from(t)),Zu(o,r,{data:t,status:200,statusText:"OK",headers:new Qu,config:e})}if(-1===jp.indexOf(E))return r(new mr("Unsupported protocol "+E,mr.ERR_BAD_REQUEST,e));const C=Qu.from(e.headers).normalize();C.set("User-Agent","axios/"+ip,!1);const{onUploadProgress:S,onDownloadProgress:R}=e,T=e.maxRate;let A,I;if(dr.isSpecCompliantForm(c)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);c=vp(c,e=>{C.set(e)},{tag:`axios-${ip}-boundary`,boundary:e&&e[1]||void 0})}else if(dr.isFormData(c)&&dr.isFunction(c.getHeaders)){if(C.set(c.getHeaders()),!C.hasContentLength())try{const e=await t.promisify(c.getLength).call(c);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(dr.isBlob(c)||dr.isFile(c))c.size&&C.setContentType(c.type||"application/octet-stream"),C.setContentLength(c.size||0),c=n.Readable.from(dp(c));else if(c&&!dr.isStream(c)){if(Buffer.isBuffer(c));else if(dr.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!dr.isString(c))return r(new mr("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",mr.ERR_BAD_REQUEST,e));c=Buffer.from(c,"utf-8")}if(C.setContentLength(c.length,!1),e.maxBodyLength>-1&&c.length>e.maxBodyLength)return r(new mr("Request body larger than maxBodyLength limit",mr.ERR_BAD_REQUEST,e))}const j=dr.toFiniteNumber(C.getContentLength());let O,P;dr.isArray(T)?(A=T[0],I=T[1]):A=I=T,c&&(S||A)&&(dr.isStream(c)||(c=n.Readable.from(c,{objectMode:!1})),c=n.pipeline([c,new lp({maxRate:dr.toFiniteNumber(A)})],dr.noop),S&&c.on("progress",Op(c,_p(j,wp(Ep(S),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{P=Su(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,r(n)}C.set("Accept-Encoding","gzip, compress, deflate"+(Rp?", br":""),!1);const L={path:P,method:f,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:l,beforeRedirect:Pp,beforeRedirects:{}};let D;!dr.isUndefined(u)&&(L.lookup=u),e.socketPath?L.socketPath=e.socketPath:(L.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,L.port=_.port,Lp(L,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+L.path));const z=Ip.test(L.protocol);if(L.agent=z?e.httpsAgent:e.httpAgent,e.transport?D=e.transport:0===e.maxRedirects?D=z?i:a:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),D=z?Ap:Tp),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),y=D.request(L,function(t){if(y.destroyed)return;const a=[t],i=+t.headers["content-length"];if(R||I){const e=new lp({maxRate:dr.toFiniteNumber(I)});R&&e.on("progress",Op(e,_p(i,wp(Ep(R),!0,3)))),a.push(e)}let s=t;const c=t.req||y;if(!1!==e.decompress&&t.headers["content-encoding"])switch("HEAD"!==f&&204!==t.statusCode||delete t.headers["content-encoding"],(t.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(d.createUnzip(Cp)),delete t.headers["content-encoding"];break;case"deflate":a.push(new xp),a.push(d.createUnzip(Cp)),delete t.headers["content-encoding"];break;case"br":Rp&&(a.push(d.createBrotliDecompress(Sp)),delete t.headers["content-encoding"])}s=a.length>1?n.pipeline(a,dr.noop):a[0];const u=n.finished(s,()=>{u(),x()}),l={status:t.statusCode,statusText:t.statusMessage,headers:new Qu(t.headers),config:e,request:c};if("stream"===p)l.data=s,Zu(o,r,l);else{const t=[];let n=0;s.on("data",function(o){t.push(o),n+=o.length,e.maxContentLength>-1&&n>e.maxContentLength&&(v=!0,s.destroy(),r(new mr("maxContentLength size of "+e.maxContentLength+" exceeded",mr.ERR_BAD_RESPONSE,e,c)))}),s.on("aborted",function(){if(v)return;const t=new mr("stream has been aborted",mr.ERR_BAD_RESPONSE,e,c);s.destroy(t),r(t)}),s.on("error",function(t){y.destroyed||r(mr.from(t,null,e,c))}),s.on("end",function(){try{let e=1===t.length?t[0]:Buffer.concat(t);"arraybuffer"!==p&&(e=e.toString(h),h&&"utf8"!==h||(e=dr.stripBOM(e))),l.data=e}catch(t){return r(mr.from(t,null,e,l.request,l))}Zu(o,r,l)})}b.once("abort",e=>{s.destroyed||(s.emit("error",e),s.destroy())})}),b.once("abort",e=>{r(e),y.destroy(e)}),y.on("error",function(t){r(mr.from(t,null,e,y))}),y.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void r(new mr("error trying to parse `config.timeout` to int",mr.ERR_BAD_OPTION_VALUE,e,y));y.setTimeout(t,function(){if(g)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||Tu;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new mr(t,n.clarifyTimeoutError?mr.ETIMEDOUT:mr.ECONNABORTED,e,y)),k()})}if(dr.isStream(c)){let t=!1,n=!1;c.on("end",()=>{t=!0}),c.once("error",e=>{n=!0,y.destroy(e)}),c.on("close",()=>{t||n||k(new Yu("Request stream has been aborted",e,y))}),c.pipe(y)}else y.end(c)},new Promise((e,t)=>{let n,a;const i=(e,t)=>{a||(a=!0,n&&n(e,t))},r=e=>{i(e,!0),t(e)};o(t=>{i(t),e(t)},r,e=>n=e).catch(r)});var o},Mp=Nu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Nu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Nu.origin),Nu.navigator&&/(msie|trident)/i.test(Nu.navigator.userAgent)):()=>!0,Np=Nu.hasStandardBrowserEnv?{write(e,t,n,o,a,i){const r=[e+"="+encodeURIComponent(t)];dr.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),dr.isString(o)&&r.push("path="+o),dr.isString(a)&&r.push("domain="+a),!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 Bp=e=>e instanceof Qu?{...e}:e;function Up(e,t){t=t||{};const n={};function o(e,t,n,o){return dr.isPlainObject(e)&&dr.isPlainObject(t)?dr.merge.call({caseless:o},e,t):dr.isPlainObject(t)?dr.merge({},t):dr.isArray(t)?t.slice():t}function a(e,t,n,a){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function i(e,t){if(!dr.isUndefined(t))return o(void 0,t)}function r(e,t){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,i){return i in t?o(n,a):i in e?o(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)=>a(Bp(e),Bp(t),0,!0)};return dr.forEach(Object.keys({...e,...t}),function(o){const i=c[o]||a,r=i(e[o],t[o],o);dr.isUndefined(r)&&i!==s||(n[o]=r)}),n}var Fp=e=>{const t=Up({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=Qu.from(r),t.url=Su(el(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),dr.isFormData(n))if(Nu.hasStandardBrowserEnv||Nu.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(dr.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(Nu.hasStandardBrowserEnv&&(o&&dr.isFunction(o)&&(o=o(t)),o||!1!==o&&Mp(t.url))){const e=a&&i&&Np.read(i);e&&r.set(a,e)}return t};var Gp="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=Fp(e);let a=o.data;const i=Qu.from(o.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=o;function h(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(r),o.signal&&o.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=Qu.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Zu(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:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.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 mr("Request aborted",mr.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new mr(t&&t.message?t.message:"Network Error",mr.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||Tu;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new mr(t,a.clarifyTimeoutError?mr.ETIMEDOUT:mr.ECONNABORTED,e,f)),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&dr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),dr.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),m&&([c,l]=wp(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=wp(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(r=t=>{f&&(n(!t||t.type?new Yu(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(r),o.signal&&(o.signal.aborted?r():o.signal.addEventListener("abort",r)));const y=rp(o.url);y&&-1===Nu.protocols.indexOf(y)?n(new mr("Unsupported protocol "+y+":",mr.ERR_BAD_REQUEST,e)):f.send(a||null)})};var Wp=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;o.abort(t instanceof mr?t:new Yu(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,a(new mr(`timeout ${t} of ms exceeded`,mr.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:s}=o;return s.unsubscribe=()=>dr.asap(r),s}};const Vp=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},Hp=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()}},Kp=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of Hp(e))yield*Vp(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let i=o.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:$p}=dr,Qp=(({Request:e,Response:t})=>({Request:e,Response:t}))(dr.global),{ReadableStream:Jp,TextEncoder:Xp}=dr.global,Yp=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Zp=e=>{e=dr.merge.call({skipUndefined:!0},Qp,e);const{fetch:t,Request:n,Response:o}=e,a=t?$p(t):"function"==typeof fetch,i=$p(n),r=$p(o);if(!a)return!1;const s=a&&$p(Jp),c=a&&("function"==typeof Xp?(e=>t=>e.encode(t))(new Xp):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&Yp(()=>{let e=!1;const t=new n(Nu.origin,{body:new Jp,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=r&&s&&Yp(()=>dr.isReadableStream(new o("").body)),p={stream:l&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new mr(`Response type '${e}' is not supported`,mr.ERR_NOT_SUPPORT,n)})});const d=async(e,t)=>{const o=dr.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e)){const t=new n(Nu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dr.isArrayBufferView(e)||dr.isArrayBuffer(e)?e.byteLength:(dr.isURLSearchParams(e)&&(e+=""),dr.isString(e)?(await c(e)).byteLength:void 0)})(t):o};return async e=>{let{url:a,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:x}=Fp(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let w=Wp([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(a,{method:"POST",body:s,duplex:"half"});if(dr.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=_p(C,wp(Ep(g)));s=Kp(t.body,65536,e,n)}}dr.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(a,c);let m=await(i?k(_,x):k(a,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=dr.toFiniteNumber(m.headers.get("content-length")),[n,a]=f&&_p(t,wp(Ep(f),!0))||[];m=new o(Kp(m.body,65536,n,()=>{a&&a(),E&&E()}),e)}y=y||"text";let S=await p[dr.findKey(p,y)||"text"](m,e);return!h&&E&&E(),await new Promise((t,n)=>{Zu(t,n,{data:S,headers:Qu.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 mr("Network Error",mr.ERR_NETWORK,e,_),{cause:t.cause||t});throw mr.from(t,t&&t.code,e,_)}}},ed=new Map,td=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:a}=t,i=[o,a,n];let r,s,c=i.length,u=ed;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:Zp(t)),u=s;return s};td();const nd={http:qp,xhr:Gp,fetch:{get:td}};dr.forEach(nd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const od=e=>`- ${e}`,ad=e=>dr.isFunction(e)||null===e||!1===e;var id=(e,t)=>{e=dr.isArray(e)?e:[e];const{length:n}=e;let o,a;const i={};for(let r=0;r<n;r++){let n;if(o=e[r],a=o,!ad(o)&&(a=nd[(n=String(o)).toLowerCase()],void 0===a))throw new mr(`Unknown adapter '${n}'`);if(a&&(dr.isFunction(a)||(a=a.get(t))))break;i[n||"#"+r]=a}if(!a){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 mr("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(od).join("\n"):" "+od(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function rd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yu(null,e)}function sd(e){rd(e),e.headers=Qu.from(e.headers),e.data=Ju.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return id(e.adapter||Fu.adapter,e)(e).then(function(t){return rd(e),t.data=Ju.call(e,e.transformResponse,t),t.headers=Qu.from(t.headers),t},function(t){return Xu(t)||(rd(e),t&&t.response&&(t.response.data=Ju.call(e,e.transformResponse,t.response),t.response.headers=Qu.from(t.response.headers))),Promise.reject(t)})}const cd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ud={};cd.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ip+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new mr(o(a," has been removed"+(t?" in "+t:"")),mr.ERR_DEPRECATED);return t&&!ud[a]&&(ud[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},cd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ld={assertOptions:function(e,t,n){if("object"!=typeof e)throw new mr("options must be an object",mr.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new mr("option "+i+" must be "+n,mr.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new mr("Unknown option "+i,mr.ERR_BAD_OPTION)}},validators:cd};const pd=ld.validators;let dd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ru,response:new Ru}}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=Up(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&ld.assertOptions(n,{silentJSONParsing:pd.transitional(pd.boolean),forcedJSONParsing:pd.transitional(pd.boolean),clarifyTimeoutError:pd.transitional(pd.boolean)},!1),null!=o&&(dr.isFunction(o)?t.paramsSerializer={serialize:o}:ld.assertOptions(o,{encode:pd.function,serialize:pd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ld.assertOptions(t,{baseUrl:pd.spelling("baseURL"),withXsrfToken:pd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&dr.merge(a.common,a[t.method]);a&&dr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=Qu.concat(i,a);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=[sd.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=sd.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 Su(el((e=Up(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};dr.forEach(["delete","get","head","options"],function(e){dd.prototype[e]=function(t,n){return this.request(Up(n||{},{method:e,url:t,data:(n||{}).data}))}}),dr.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,a){return this.request(Up(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}dd.prototype[e]=t(),dd.prototype[e+"Form"]=t(!0)});var md=dd;class hd{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 o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,a){n.reason||(n.reason=new Yu(e,o,a),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 hd(function(t){e=t}),cancel:e}}}var fd=hd;const gd={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(gd).forEach(([e,t])=>{gd[t]=e});var yd=gd;const vd=function e(t){const n=new md(t),o=_i(md.prototype.request,n);return dr.extend(o,md.prototype,n,{allOwnKeys:!0}),dr.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Up(t,n))},o}(Fu);vd.Axios=md,vd.CanceledError=Yu,vd.CancelToken=fd,vd.isCancel=Xu,vd.VERSION=ip,vd.toFormData=ku,vd.AxiosError=mr,vd.Cancel=vd.CanceledError,vd.all=function(e){return Promise.all(e)},vd.spread=function(e){return function(t){return e.apply(null,t)}},vd.isAxiosError=function(e){return dr.isObject(e)&&!0===e.isAxiosError},vd.mergeConfig=Up,vd.AxiosHeaders=Qu,vd.formToJSON=e=>Bu(dr.isHTMLForm(e)?new FormData(e):e),vd.getAdapter=id,vd.HttpStatusCode=yd,vd.default=vd;var bd=vd,xd=function(t){function n(n){var o,a,i,r,s=this;return(s=t.call(this,n)||this).token="",null===(a=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===a||a.request.use(function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.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(t){return e.__assign({},t)},function(e){return Promise.reject(e)}),s}return e.__extends(n,t),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=bd.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}(function(e){this.instance=bd.create(e)}),kd=t.inspect,wd="function"==typeof Map&&Map.prototype,_d=Object.getOwnPropertyDescriptor&&wd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ed=wd&&_d&&"function"==typeof _d.get?_d.get:null,Cd=wd&&Map.prototype.forEach,Sd="function"==typeof Set&&Set.prototype,Rd=Object.getOwnPropertyDescriptor&&Sd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Td=Sd&&Rd&&"function"==typeof Rd.get?Rd.get:null,Ad=Sd&&Set.prototype.forEach,Id="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,jd="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Od="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Pd=Boolean.prototype.valueOf,Ld=Object.prototype.toString,Dd=Function.prototype.toString,zd=String.prototype.match,qd=String.prototype.slice,Md=String.prototype.replace,Nd=String.prototype.toUpperCase,Bd=String.prototype.toLowerCase,Ud=RegExp.prototype.test,Fd=Array.prototype.concat,Gd=Array.prototype.join,Wd=Array.prototype.slice,Vd=Math.floor,Hd="function"==typeof BigInt?BigInt.prototype.valueOf:null,Kd=Object.getOwnPropertySymbols,$d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Qd="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Jd="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qd||"symbol")?Symbol.toStringTag:null,Xd=Object.prototype.propertyIsEnumerable,Yd=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Zd(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Ud.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-Vd(-e):Vd(e);if(o!==e){var a=String(o),i=qd.call(t,a.length+1);return Md.call(a,n,"$&_")+"."+Md.call(Md.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Md.call(t,n,"$&_")}var em=kd,tm=em.custom,nm=pm(tm)?tm:null,om={__proto__:null,double:'"',single:"'"},am={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},im=function e(t,n,o,a){var i=n||{};if(mm(i,"quoteStyle")&&!mm(om,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(mm(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=!mm(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(mm(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(mm(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 gm(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?Zd(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?Zd(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return um(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=Gd.call(Array(e.indent+1)," ")}return{base:n,prev:Gd.call(Array(t+1),n)}}(i,o);if(void 0===a)a=[];else if(fm(a,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(a=Wd.call(a)).push(n),r){var s={depth:i.depth};return mm(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,o+1,a)}return e(t,i,o+1,a)}if("function"==typeof t&&!lm(t)){var m=function(e){if(e.name)return e.name;var t=zd.call(Dd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=wm(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Gd.call(h,", ")+" }":"")}if(pm(t)){var f=Qd?Md.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):$d.call(t);return"object"!=typeof t||Qd?f:vm(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="<"+Bd.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+rm(sm(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Bd.call(String(t.nodeName))+">"}if(um(t)){if(0===t.length)return"[]";var b=wm(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(fm(e[t],"\n")>=0)return!1;return!0}(b)?"["+km(b,p)+"]":"[ "+Gd.call(b,", ")+" ]"}if(function(e){return"[object Error]"===hm(e)&&cm(e)}(t)){var x=wm(t,d);return"cause"in Error.prototype||!("cause"in t)||Xd.call(t,"cause")?0===x.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Gd.call(x,", ")+" }":"{ ["+String(t)+"] "+Gd.call(Fd.call("[cause]: "+d(t.cause),x),", ")+" }"}if("object"==typeof t&&r){if(nm&&"function"==typeof t[nm]&&em)return em(t,{depth:l-o});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ed||!e||"object"!=typeof e)return!1;try{Ed.call(e);try{Td.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return Cd&&Cd.call(t,function(e,n){k.push(d(n,t,!0)+" => "+d(e,t))}),xm("Map",Ed.call(t),k,p)}if(function(e){if(!Td||!e||"object"!=typeof e)return!1;try{Td.call(e);try{Ed.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Ad&&Ad.call(t,function(e){w.push(d(e,t))}),xm("Set",Td.call(t),w,p)}if(function(e){if(!Id||!e||"object"!=typeof e)return!1;try{Id.call(e,Id);try{jd.call(e,jd)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return bm("WeakMap");if(function(e){if(!jd||!e||"object"!=typeof e)return!1;try{jd.call(e,jd);try{Id.call(e,Id)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return bm("WeakSet");if(function(e){if(!Od||!e||"object"!=typeof e)return!1;try{return Od.call(e),!0}catch(e){}return!1}(t))return bm("WeakRef");if(function(e){return"[object Number]"===hm(e)&&cm(e)}(t))return vm(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Hd)return!1;try{return Hd.call(e),!0}catch(e){}return!1}(t))return vm(d(Hd.call(t)));if(function(e){return"[object Boolean]"===hm(e)&&cm(e)}(t))return vm(Pd.call(t));if(function(e){return"[object String]"===hm(e)&&cm(e)}(t))return vm(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==gr&&t===gr)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===hm(e)&&cm(e)}(t)&&!lm(t)){var _=wm(t,d),E=Yd?Yd(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&Jd&&Object(t)===t&&Jd in t?qd.call(hm(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Gd.call(Fd.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":p?R+"{"+km(_,p)+"}":R+"{ "+Gd.call(_,", ")+" }"}return String(t)};function rm(e,t,n){var o=n.quoteStyle||t,a=om[o];return a+e+a}function sm(e){return Md.call(String(e),/"/g,"&quot;")}function cm(e){return!Jd||!("object"==typeof e&&(Jd in e||void 0!==e[Jd]))}function um(e){return"[object Array]"===hm(e)&&cm(e)}function lm(e){return"[object RegExp]"===hm(e)&&cm(e)}function pm(e){if(Qd)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!$d)return!1;try{return $d.call(e),!0}catch(e){}return!1}var dm=Object.prototype.hasOwnProperty||function(e){return e in this};function mm(e,t){return dm.call(e,t)}function hm(e){return Ld.call(e)}function fm(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function gm(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return gm(qd.call(e,0,t.maxStringLength),t)+o}var a=am[t.quoteStyle||"single"];return a.lastIndex=0,rm(Md.call(Md.call(e,a,"\\$1"),/[\x00-\x1f]/g,ym),"single",t)}function ym(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":"")+Nd.call(t.toString(16))}function vm(e){return"Object("+e+")"}function bm(e){return e+" { ? }"}function xm(e,t,n,o){return e+" ("+t+") {"+(o?km(n,o):Gd.call(n,", "))+"}"}function km(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Gd.call(e,","+n)+"\n"+t.prev}function wm(e,t){var n=um(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=mm(e,a)?t(e[a],e):""}var i,r="function"==typeof Kd?Kd(e):[];if(Qd){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)mm(e,c)&&(n&&String(Number(c))===c&&c<e.length||Qd&&i["$"+c]instanceof Symbol||(Ud.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof Kd)for(var u=0;u<r.length;u++)Xd.call(e,r[u])&&o.push("["+t(r[u])+"]: "+t(e[r[u]],e));return o}var _m,Em,Cm,Sm,Rm,Tm,Am,Im,jm,Om,Pm,Lm,Dm,zm,qm,Mm,Nm,Bm,Um,Fm,Gm,Wm,Vm=im,Hm=as,Km=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},$m=Qc,Qm=Zs,Jm=Qm([$m("%String.prototype.indexOf%")]),Xm=function(e,t){var n=$m(e,!!t);return"function"==typeof n&&Jm(e,".prototype.")>-1?Qm([n]):n},Ym=Xm,Zm=im,eh=as,th=Qc("%Map%",!0),nh=Ym("Map.prototype.get",!0),oh=Ym("Map.prototype.set",!0),ah=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&&ah(e,t)},set:function(t,n){e||(e=new th),oh(e,t,n)}};return t},ch=Xm,uh=im,lh=sh,ph=as,dh=Qc("%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=as,vh=im,bh=function(){var e,t={assert:function(e){if(!t.has(e))throw new Hm("Side channel does not contain "+Vm(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return Km(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},get:function(t){return function(e,t){if(e){var n=Km(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Km(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=Km(e,t);o?o.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,o){dh&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new dh),hh(e,n,o)):lh&&(t||(t=lh()),t.set(n,o))}};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}(),Ah=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Ih=1024,jh={arrayToObject:Ah,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=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.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 o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){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+=Ih){for(var c=i.length>=Ih?i.slice(s,s+Ih):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||a===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=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Rh(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Sh.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return Rh(t)&&!Rh(n)&&(a=Ah(t,o)),Rh(t)&&Rh(n)?(n.forEach(function(n,a){if(Sh.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,o):t.push(n)}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var i=n[a];return Sh.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t},a)}},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=jh,Lh=Eh,Dh=Object.prototype.hasOwnProperty,zh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},qh=Array.isArray,Mh=Array.prototype.push,Nh=function(e,t){Mh.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},Gh={},Wh=function e(t,n,o,a,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(Gh))&&!_;){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(Gh)&&(w=0)}if("function"==typeof l?x=l(n,x):x instanceof Date?x=m(x):"comma"===o&&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"===o&&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,A=a&&qh(x)&&1===x.length?T+"[]":T;if(i&&qh(x)&&0===x.length)return A+"[]";for(var I=0;I<C.length;++I){var j=C[I],O="object"==typeof j&&void 0!==j.value?j.value:x[j];if(!s||null!==O){var P=d&&c?j.replace(/\./g,"%2E"):j,L=qh(x)?"function"==typeof o?o(A,P):A:A+(d?"."+P:"["+P+"]");v.set(t,w);var D=Oh();D.set(Gh,v),Nh(S,e(O,L,o,a,i,r,s,c,"comma"===o&&g&&qh(x)?null:u,l,p,d,m,h,f,g,y,D))}}return S},Vh=jh,Hh=Object.prototype.hasOwnProperty,Kh=Array.isArray,$h={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Vh.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,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=r?a.slice(0,r.index):a,c=[];if(s){if(!n.plainObjects&&Hh.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&Hh.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("["+a.slice(r.index)+"]")}return function(e,t,n,o){for(var a=o?t:Jh(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);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]=a:"__proto__"!==u&&(r[u]=a):r={0:a}}a=r}return a}(c,t,n,o)}},Yh=function(e,t){var n,o=e,a=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(!Dh.call(Lh.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=Lh.formatters[n],i=Fh.filter;if(("function"==typeof e.filter||qh(e.filter))&&(i=e.filter),o=e.arrayFormat in zh?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:o,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:a,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 a.filter?o=(0,a.filter)("",o):qh(a.filter)&&(n=a.filter);var i=[];if("object"!=typeof o||null===o)return"";var r=zh[a.arrayFormat],s="comma"===r&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var c=Oh(),u=0;u<n.length;++u){var l=n[u];a.skipNulls&&null===o[l]||Nh(i,Wh(o[l],l,r,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,c))}var p=i.join(a.delimiter),d=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.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 $h;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?$h.charset:e.charset,n=void 0===e.duplicates?$h.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||$h.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:$h.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:$h.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:$h.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:$h.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:$h.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:$h.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:$h.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:$h.decoder,delimiter:"string"==typeof e.delimiter||Vh.isRegExp(e.delimiter)?e.delimiter:$h.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:$h.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:$h.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:$h.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:$h.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:$h.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:$h.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=o.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<r.length;++a)0===r[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[a]?c="utf-8":"utf8=%26%2310003%3B"===r[a]&&(c="iso-8859-1"),s=a,a=r.length);for(a=0;a<r.length;++a)if(a!==s){var u,l,p=r[a],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,$h.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),$h.decoder,c,"key"),l=Vh.maybeMap(Jh(p.slice(m+1),t),function(e){return t.decoder(e,$h.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Qh(l)),p.indexOf("[]=")>-1&&(l=Kh(l)?[l]:l);var h=Hh.call(n,u);h&&"combine"===t.duplicates?n[u]=Vh.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},i=Object.keys(o),r=0;r<i.length;++r){var s=i[r],c=Xh(s,o[s],n,"string"==typeof e);a=Vh.merge(a,c,n)}return!0===n.allowSparse?a:Vh.compact(a)},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})}};exports.SendPaymentNotification=void 0,_m=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(Em=_m.NotificationStatus||(_m.NotificationStatus={})).SETTLED="SETTLED",Em.NOT_SETTLED="NOT_SETTLED",(Cm=_m.NotificationReason||(_m.NotificationReason={})).REFUNDED="REFUNDED",Cm.RESOLVED="RESOLVED",Cm.CANCELLED="CANCELLED",Cm.SERVICE_SUSPENDED="SERVICE_SUSPENDED",Cm.ORDER_STOPPED="ORDER_STOPPED",Cm.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(Sm=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",Sm.INSIGHTS="insights",exports.Organization=void 0,Rm=exports.Organization||(exports.Organization={}),(Tm=Rm.CustomClaims||(Rm.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",Tm.USER_CODE="https://dashboard.dev.y.uno/user_code",Tm.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,Am=exports.Country||(exports.Country={}),(Im=Am.CountryCode||(Am.CountryCode={})).COLOMBIA="CO",Im.MEXICO="MX",Im.BRAZIL="BR",Im.ARGENTINA="AR",Im.CHILE="CL",Im.PERU="PE",Im.URUGUAY="UR",Im.ECUADOR="EC",exports.Cms=void 0,jm=exports.Cms||(exports.Cms={}),(Om=jm.Locale||(jm.Locale={})).EN="en",Om.ES="es",Om.PT="pt",(Pm=jm.Target||(jm.Target={})).BLANK="_blank",Pm.PARENT="_parent",Pm.SELF="_self",Pm.TOP="_top",exports.ReportType=void 0,(Lm=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",Lm.TRANSACTIONS="TRANSACTIONS",Lm.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",Lm.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(Dm=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",Dm.DEFAULT="DEFAULT",Dm.CUSTOM="CUSTOM",exports.SmartRouting=void 0,zm=exports.SmartRouting||(exports.SmartRouting={}),(qm=zm.StepType||(zm.StepType={})).FRAUD="FRAUD",qm.PAYMENT="PAYMENT",qm.THREE_D_SECURE="THREE_D_SECURE",qm.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(Mm=zm.DeclineGroupType||(zm.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",Mm.MAC_CODE="MAC_CODE",exports.DataReport=void 0,Nm=exports.DataReport||(exports.DataReport={}),(Bm=Nm.InsightsVolumeMetricsV2Path||(Nm.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Bm.APPROVED_PAYMENTS="approved-payments",Bm.PAYMENT_METHODS="payment-methods",Bm.PROVIDERS="providers",Bm.COUNTRIES="countries",Bm.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Bm.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Nm.OverviewMetricType||(Nm.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(Um=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",Um.SETTLEMENTS="SETTLEMENTS",Um.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",Um.AGENDA="AGENDA",Um.SALES_CONCILIATION="SALES_CONCILIATION",Um.ADVANCEMENTS="ADVANCEMENTS",Um.FEES="FEES",exports.ReconciliationAgendaInsight=void 0,(Fm=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",Fm.DAILY="AGENDA_DAILY_DISTRIBUTION",Fm.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",Fm.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.AI=void 0,Gm=exports.AI||(exports.AI={}),(Wm=Gm.AIGenerateStatus||(Gm.AIGenerateStatus={})).ACCEPTED="ACCEPTED",Wm.REFUSED="REFUSED",Wm.FRONT_FAILED="FRONT_FAILED";var nf=["PAUSED","ACTIVE"],of={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},af="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 o=(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(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[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]=o[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()}(o)}var kf=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},wf=function(t){function n(n){var o=n?e.__assign(e.__assign({},tf),n):tf;return t.call(this,o)||this}return e.__extends(n,t),n.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},n.prototype.updateReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},n.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})},n.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})},n.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})},n.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},n.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},n.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},n.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},n.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},n.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},n.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},n.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},n.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},n.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},n.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},n.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},n.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.postPayouts=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.postPaymentsEvaluated=function(t){t.account_code;var n=e.__rest(t,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/evaluated",n)},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.postTransactions=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("/v2/transactions",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("/fraud-transactions",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},n.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})},n.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,a=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:i})},n.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},n.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},n.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},n.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},n.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(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()}})},n.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},n.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},n.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},n.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},n.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},n.prototype.getAllOrganization=function(){return this.get("/organizations/all")},n.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},n.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})},n.prototype.putCosts=function(t){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.put("/connections/costs",{costs:[t]})]})})},n.prototype.updateOrganizationStatus=function(){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.patch("/organizations/status")]})})},n.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}}:{})},n.prototype.getConnectionsByPaymentMethod=function(t,n){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n))]})})},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},n.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==af)return delete t.status,this.delete(o,{data:t});Object.values(nf).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(of[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.patchConnection=function(t){var n,o=t.payload,a=t.connectionCode,i=localStorage.getItem("account"),r=i?null===(n=JSON.parse(i).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(a),e.__assign({account_code:r},o))},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getDialogs=function(){return this.get("/dialogs")},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},n.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}})},n.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},n.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},n.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},n.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},n.prototype.getMenu=function(){return this.get("/cms/menu")},n.prototype.postWebhookLogs=function(t){var n=t.payload,o=n.account_code,a=e.__rest(n,["account_code"]),i={account_codes:o};return this.post("/v2/webhooks/organization",i,{params:a})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},n.prototype.postApiLogs=function(t){var n=t.payload,o=n.account_code,a=e.__rest(n,["account_code"]),i={account_codes:o};return this.post("/v2/api-logs/organization",i,{params:a})},n.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},n.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},n.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},n.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},n.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},n.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},n.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},n.prototype.getLocales=function(){return this.get("/cms/locales")},n.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},n.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},n.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},n.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},n.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},n.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},n.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},n.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},n.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},n.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},n.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},n.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},n.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},n.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},n.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},n.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},n.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},n.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},n.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},n.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},n.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},n.prototype.getInsightsMetricsConversionRateV2=function(t,n){var o=t.account_code,a=t.connection_name,i=e.__rest(t,["account_code","connection_name"]),r=kf(o);return a&&(r.connection_name=a.split(",")),this.post("/insights/conversion-rate/".concat(n),r,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var o=t.account_code,a=e.__rest(t,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(n),kf(o),{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("/insights/conversion-rate/fallback",kf(n),{params:o})},n.prototype.getInsightsMetricsVolume=function(t,n){var o=n.connection_name,a=e.__rest(n,["connection_name"]),i={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/volume/metrics",i,{params:a})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var a=o.connection_name,i=e.__rest(o,["connection_name"]),r={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return a&&(r=e.__assign(e.__assign({},r),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/volume/".concat(n),r,{params:i})},n.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},n.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},n.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},n.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},n.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},n.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},n.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},n.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},n.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},n.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},n.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},n.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.getInsightOverview=function(t){var n=t.account_code,o=t.connection_name,a=e.__rest(t,["account_code","connection_name"]),i=kf(n);return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/overview",i,{params:a})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,a=t.connection_name,i=e.__rest(t,["account_code","connection_name"]),r=kf(o);return a&&(r=e.__assign(e.__assign({},r),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/overview/".concat(n),r,{params:i})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.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})},n.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})},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},n.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},n.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},n.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},n.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},n.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},n.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},n.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload,i={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",a,{headers:i})},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReportV2=function(e){return this.post("/reports",e)},n.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},n.prototype.reportsList=function(){return this.get("/reports")},n.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},n.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},n.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},n.prototype.getReportTemplates=function(){return this.get("/reports/templates")},n.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},n.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},n.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},n.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},n.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},n.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},n.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},n.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},n.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},n.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},n.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},n.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},n.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},n.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},n.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},n.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},n.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},n.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},n.prototype.getProfile=function(){return this.get("/user")},n.prototype.getUserFull=function(){return this.get("/user-full")},n.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},n.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},n.prototype.getUsersToImpersonate=function(t,n,o,a,i){void 0===o&&(o=1),void 0===a&&(a=10);var r=e.__assign({account_codes:n||[],page:o,page_size:a},i&&{search_value:i});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),r)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},n.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},n.prototype.getAccountsV2=function(){return this.get("/accounts-user")},n.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},n.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},n.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},n.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},n.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},n.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},n.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},n.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},n.prototype.pathNotification=function(e){return this.patch("/notifications",e)},n.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},n.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:a,page_size:i},{headers:r})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},n.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},n.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},n.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},n.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},n.prototype.getFeatureFlagId=function(t){var n=t.name,o=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:o})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.accountCode;return e.__awaiter(this,void 0,void 0,function(){var t,o;return e.__generator(this,function(e){switch(e.label){case 0:return[4,this.get("/feature-flags/names",n?{headers:{"x-account-code":n}}:{})];case 1:return t=e.sent(),o={},t.data.feature_flag_names.forEach(function(e){o[e]=!0}),[2,{data:o,status:200,statusText:"OK",headers:{},config:{}}]}})})},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},n.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},n.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},n.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},n.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},n.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})},n.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},n.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},n.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},n.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},n.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},n.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},n.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},n.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},n.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},n.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},n.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},n.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},n.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},n.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},n.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}}:{})},n.prototype.getBlacklistDetail=function(e,t,n,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(i+="&search=".concat(a)),this.get(i,o?{headers:{"x-account-code":o}}:{})},n.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}}:{})},n.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}})},n.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},n.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},n.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}})},n.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})},n.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}})},n.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})},n.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}})},n.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}})},n.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},n.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},n.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},n.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},n.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}})},n.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},n.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},n.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}})},n.prototype.getVelocityRules=function(t){return this.post("/yuno-fraud-screening-int/velocity-rules-list",e.__assign({},t))},n.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})},n.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=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:o.token}),cancel:function(){return o.cancel()}}},n.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},n.prototype.batchRefundByFile=function(t){var n=t.payload;return this.post("/batch-refund-by-file",e.__assign({},n))},n.prototype.uploadBatchRefundsV2=function(t){var n=t.payload;return this.post("/batch-refunds",e.__assign({},n))},n.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},n.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},n.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},n.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},n.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},n.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},n.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},n.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},n.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},n.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}})},n.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},n.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},n.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},n.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},n.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},n.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},n.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},n.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},n.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},n.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},n.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.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)},n.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},n.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},n.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},n.prototype.getSamlConfig=function(){return this.get("/saml-config")},n.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},n.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},n.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},n.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},n.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},n.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},n.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},n.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},n.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},n.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},n.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},n.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},n.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},n.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},n.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},n.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},n.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},n.prototype.getLanguages=function(){return this.get("/languages")},n.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},n.prototype.getCommunications=function(e){return this.post("/communications",e)},n.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},n.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},n}(xd),_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(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.refreshInstance=function(t){var o;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),null===(o=this.classInstance.instance.interceptors)||void 0===o||o.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},n.getInstance=function(t){var o,a;if(this.classInstance){var i=localStorage.getItem("account");if(i){var r=null===(a=null===(o=JSON.parse(i))||void 0===o?void 0:o.value)||void 0===a?void 0:a.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 n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||_f["BFF_URL_".concat(_f.ENVIRONMENT)]})),this.classInstance},n.setMode=function(t){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return this.classInstance.instance.interceptors.request.use(function(e){return e.headers&&(e.headers["X-Environment"]=t),e},function(e){return Promise.reject(e)}),[2]})})},n}(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 Af(e,t){return Math.max(e+(t||0)-Date.now(),0)}function If(e,t,n){return Gf(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function jf(e,t,n){return Gf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Of(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:i,queryKey:r,stale:s}=e;if(Gf(r))if(o){if(t.queryHash!==Lf(r,t.options))return!1}else if(!zf(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===a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function Pf(e,t){const{exact:n,fetching:o,predicate:a,mutationKey:i}=e;if(Gf(i)){if(!t.options.mutationKey)return!1;if(n){if(Df(t.options.mutationKey)!==Df(i))return!1}else if(!zf(t.options.mutationKey,i))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function Lf(e,t){return((null==t?void 0:t.queryKeyHashFn)||Df)(e)}function Df(e){return JSON.stringify(e,(e,t)=>Uf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function zf(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 Mf(e,t){if(e===t)return e;const n=Bf(e)&&Bf(t);if(n||Uf(e)&&Uf(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,r=n?[]:{};let s=0;for(let o=0;o<i;o++){const i=n?o:a[o];r[i]=Mf(e[i],t[i]),r[i]===e[i]&&s++}return o===i&&s===o?e:r}return t}function Nf(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 Gf(e){return Array.isArray(e)}function Wf(e){return new Promise(t=>{setTimeout(t,e)})}function Vf(e){Wf(0).then(e)}function Hf(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Mf(e,t):t}const Kf=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)}},$f=["online","offline"];const Qf=new class extends Cf{constructor(){super(),this.setup=e=>{if(!Sf&&window.addEventListener){const t=()=>e();return $f.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{$f.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,o,a=!1,i=0,r=!1;const s=new Promise((e,t)=>{n=e,o=t}),c=()=>!Kf.isFocused()||"always"!==e.networkMode&&!Qf.isOnline(),u=o=>{r||(r=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),o(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,o;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Jf,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!a&&h?(i++,null==e.onFail||e.onFail(i,t),Wf(m).then(()=>{if(c())return p()}).then(()=>{a?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:()=>{a=!0},continueRetry:()=>{a=!1}}}const tg=console;const ng=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):Vf(()=>{n(o)})},i=()=>{const t=e;e=[],t.length&&Vf(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class og{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 ag extends og{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,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o: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=Hf(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||!Af(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,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.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==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,o,a;(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==(o=(a=this.cache.config).onSettled)||o.call(a,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,o,a;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==(o=(a=this.cache.config).onSettled)||o.call(a,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,o;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!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return Zf(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,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 o;const a=t.queryKey,i=null!=(o=t.queryHash)?o:Lf(a,t);let r=this.get(i);return r||(r=new ag({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),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]=jf(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Of(n,e))}findAll(e,t){const[n]=jf(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 og{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,o,a,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=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,h,this.state.variables,this.state.context,this)),await(null==(a=(i=this.options).onSuccess)?void 0:a.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 o=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(o),o}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,o,a,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.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,o)=>(h=o?[t,...h]:[...h,t],o?[n,...e]:[...e,n]),v=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:o,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,o,e,a))};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(o=>{if(!s||!d[n]||s(d[n],n,d)){const a=t?m[n]:lg(e.options,o);return v(o,t,a)}return Promise.resolve(y(o,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,o=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"),Nf(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 a=this.hasListeners();a&&hg(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===o&&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(!Nf(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=Af(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||Kf.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,o=this.options,a=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 a=this.hasListeners(),i=!a&&dg(e,t),r=a&&hg(e,n,t,o);(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(a&&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=Hf(null==a?void 0:a.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!=a&&a.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=a.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=Hf(null==a?void 0:a.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,Nf(n,t))return;this.currentResult=n;const o={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 o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)})})()&&(o.listeners=!0),this.notify({...o,...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,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,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 o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&fg(e,t)}return!1}function hg(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.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),Nf(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,o,a;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==(o=(a=this.mutateOptions).onSettled)||o.call(a,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,i=Rr,r=o.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=s.exec(e),n=t&&i[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}e.charset=u,e.charsets={lookup:u},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 o=e.charset(n);o&&(n+="; charset="+o.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=s.exec(t),o=n&&e.extensions[n[1].toLowerCase()];if(!o||!o.length)return!1;return o[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=r("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(i).forEach(function(e){var o=i[e],r=o.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(i[n[c]].source),l=a.indexOf(o.source);if("application/octet-stream"!==n[c]&&(u>l||u===l&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}})}(Sr);var Tr=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},Ar=function(e){var t=!1;return Tr(function(){t=!0}),function(n,o){t?e(n,o):Tr(function(){e(n,o)})}};var Ir=function(e){Object.keys(e.jobs).forEach(jr.bind(e)),e.jobs={}};function jr(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Or=Ar,Pr=Ir,Lr=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,o){var a;a=2==e.length?e(n,Or(o)):e(n,t,Or(o));return a}(t,a,e[a],function(e,t){a in n.jobs&&(delete n.jobs[a],e?Pr(n):n.results[a]=t,o(e,n.results))})};var Dr=function(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&o.keyedList.sort(n?t:function(n,o){return t(e[n],e[o])});return o};var zr=Ir,qr=Ar,Mr=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,zr(this),qr(e)(null,this.results)};var Nr=Lr,Br=Dr,Ur=Mr,Fr=function(e,t,n){var o=Br(e);for(;o.index<(o.keyedList||e).length;)Nr(e,t,o,function(e,t){e?n(e,t):0!==Object.keys(o.jobs).length||n(null,o.results)}),o.index++;return Ur.bind(o,n)};var Gr={exports:{}},Wr=Lr,Vr=Dr,Hr=Mr;function Kr(e,t){return e<t?-1:e>t?1:0}Gr.exports=function(e,t,n,o){var a=Vr(e,n);return Wr(e,t,a,function n(i,r){i?o(i,r):(a.index++,a.index<(a.keyedList||e).length?Wr(e,t,a,n):o(null,a.results))}),Hr.bind(a,o)},Gr.exports.ascending=Kr,Gr.exports.descending=function(e,t){return-1*Kr(e,t)};var $r=Gr.exports,Qr=$r,Jr=function(e,t,n){return Qr(e,t,null,n)};var Xr={parallel:Fr,serial:Jr,serialOrdered:$r},Yr=Object,Zr=Error,es=EvalError,ts=RangeError,ns=ReferenceError,os=SyntaxError,as=TypeError,is=URIError,rs=Math.abs,ss=Math.floor,cs=Math.max,us=Math.min,ls=Math.pow,ps=Math.round,ds=Number.isNaN||function(e){return e!=e},ms=Object.getOwnPropertyDescriptor;if(ms)try{ms([],"length")}catch(e){ms=null}var hs=ms,fs=Object.defineProperty||!1;if(fs)try{fs({},"a",{value:1})}catch(e){fs=!1}var gs,ys,vs,bs,xs,ks,ws,_s,Es,Cs,Ss,Rs,Ts,As,Is,js,Os=fs;function Ps(){return ys?gs:(ys=1,gs=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 o 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 a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[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 Ls(){return ks?xs:(ks=1,xs="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Ds(){return _s?ws:(_s=1,ws=Yr.getPrototypeOf||null)}function zs(){if(Cs)return Es;Cs=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};return Es=function(o){var a=this;if("function"!=typeof a||"[object Function]"!==e.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var i,r=function(e,t){for(var n=[],o=t||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n}(arguments,1),s=t(0,a.length-r.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=a.apply(this,n(r,arguments));return Object(e)===e?e:this}return a.apply(o,n(r,arguments))}),a.prototype){var l=function(){};l.prototype=a.prototype,i.prototype=new l,l.prototype=null}return i},Es}function qs(){if(Rs)return Ss;Rs=1;var e=zs();return Ss=Function.prototype.bind||e}function Ms(){return As?Ts:(As=1,Ts=Function.prototype.call)}function Ns(){return js?Is:(js=1,Is=Function.prototype.apply)}var Bs,Us,Fs,Gs,Ws="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,Vs=qs(),Hs=Ns(),Ks=Ms(),$s=Ws||Vs.call(Ks,Hs),Qs=qs(),Js=as,Xs=Ms(),Ys=$s,Zs=function(e){if(e.length<1||"function"!=typeof e[0])throw new Js("a function is required");return Ys(Qs,Xs,e)};var ec,tc=Function.prototype.call,nc=Object.prototype.hasOwnProperty,oc=qs().call(tc,nc),ac=Yr,ic=Zr,rc=es,sc=ts,cc=ns,uc=os,lc=as,pc=is,dc=rs,mc=ss,hc=cs,fc=us,gc=ls,yc=ps,vc=function(e){return ds(e)||0===e?e:e<0?-1:1},bc=Function,xc=function(e){try{return bc('"use strict"; return ('+e+").constructor;")()}catch(e){}},kc=hs,wc=Os,_c=function(){throw new lc},Ec=kc?function(){try{return _c}catch(e){try{return kc(arguments,"callee").get}catch(e){return _c}}}():_c,Cc=function(){if(bs)return vs;bs=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ps();return vs=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Sc=function(){if(Gs)return Fs;Gs=1;var e=Ls(),t=Ds(),n=function(){if(Us)return Bs;Us=1;var e,t=Zs,n=hs;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return Bs=o&&"function"==typeof o.get?t([o.get]):"function"==typeof i&&function(e){return i(null==e?e:a(e))}}();return Fs=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}(),Rc=Ds(),Tc=Ls(),Ac=Ns(),Ic=Ms(),jc={},Oc="undefined"!=typeof Uint8Array&&Sc?Sc(Uint8Array):ec,Pc={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?ec:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ec:ArrayBuffer,"%ArrayIteratorPrototype%":Cc&&Sc?Sc([][Symbol.iterator]()):ec,"%AsyncFromSyncIteratorPrototype%":ec,"%AsyncFunction%":jc,"%AsyncGenerator%":jc,"%AsyncGeneratorFunction%":jc,"%AsyncIteratorPrototype%":jc,"%Atomics%":"undefined"==typeof Atomics?ec:Atomics,"%BigInt%":"undefined"==typeof BigInt?ec:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ec:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ec:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ec:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ic,"%eval%":eval,"%EvalError%":rc,"%Float16Array%":"undefined"==typeof Float16Array?ec:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?ec:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ec:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ec:FinalizationRegistry,"%Function%":bc,"%GeneratorFunction%":jc,"%Int8Array%":"undefined"==typeof Int8Array?ec:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ec:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ec:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Cc&&Sc?Sc(Sc([][Symbol.iterator]())):ec,"%JSON%":"object"==typeof JSON?JSON:ec,"%Map%":"undefined"==typeof Map?ec:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Cc&&Sc?Sc((new Map)[Symbol.iterator]()):ec,"%Math%":Math,"%Number%":Number,"%Object%":ac,"%Object.getOwnPropertyDescriptor%":kc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ec:Promise,"%Proxy%":"undefined"==typeof Proxy?ec:Proxy,"%RangeError%":sc,"%ReferenceError%":cc,"%Reflect%":"undefined"==typeof Reflect?ec:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ec:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Cc&&Sc?Sc((new Set)[Symbol.iterator]()):ec,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ec:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Cc&&Sc?Sc(""[Symbol.iterator]()):ec,"%Symbol%":Cc?Symbol:ec,"%SyntaxError%":uc,"%ThrowTypeError%":Ec,"%TypedArray%":Oc,"%TypeError%":lc,"%Uint8Array%":"undefined"==typeof Uint8Array?ec:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ec:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ec:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ec:Uint32Array,"%URIError%":pc,"%WeakMap%":"undefined"==typeof WeakMap?ec:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ec:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ec:WeakSet,"%Function.prototype.call%":Ic,"%Function.prototype.apply%":Ac,"%Object.defineProperty%":wc,"%Object.getPrototypeOf%":Rc,"%Math.abs%":dc,"%Math.floor%":mc,"%Math.max%":hc,"%Math.min%":fc,"%Math.pow%":gc,"%Math.round%":yc,"%Math.sign%":vc,"%Reflect.getPrototypeOf%":Tc};if(Sc)try{null.error}catch(e){var Lc=Sc(Sc(e));Pc["%Error.prototype%"]=Lc}var Dc,zc,qc=function e(t){var n;if("%AsyncFunction%"===t)n=xc("async function () {}");else if("%GeneratorFunction%"===t)n=xc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=xc("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&Sc&&(n=Sc(a.prototype))}return Pc[t]=n,n},Mc={__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"]},Nc=qs(),Bc=oc,Uc=Nc.call(Ic,Array.prototype.concat),Fc=Nc.call(Ac,Array.prototype.splice),Gc=Nc.call(Ic,String.prototype.replace),Wc=Nc.call(Ic,String.prototype.slice),Vc=Nc.call(Ic,RegExp.prototype.exec),Hc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Kc=/\\(\\)?/g,$c=function(e,t){var n,o=e;if(Bc(Mc,o)&&(o="%"+(n=Mc[o])[0]+"%"),Bc(Pc,o)){var a=Pc[o];if(a===jc&&(a=qc(o)),void 0===a&&!t)throw new lc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:a}}throw new uc("intrinsic "+e+" does not exist!")},Qc=function(e,t){if("string"!=typeof e||0===e.length)throw new lc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new lc('"allowMissing" argument must be a boolean');if(null===Vc(/^%?[^%]*%?$/,e))throw new uc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Wc(e,0,1),n=Wc(e,-1);if("%"===t&&"%"!==n)throw new uc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new uc("invalid intrinsic syntax, expected opening `%`");var o=[];return Gc(e,Hc,function(e,t,n,a){o[o.length]=n?Gc(a,Kc,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",a=$c("%"+o+"%",t),i=a.name,r=a.value,s=!1,c=a.alias;c&&(o=c[0],Fc(n,Uc([0,1],c)));for(var u=1,l=!0;u<n.length;u+=1){var p=n[u],d=Wc(p,0,1),m=Wc(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new uc("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),Bc(Pc,i="%"+(o+="."+p)+"%"))r=Pc[i];else if(null!=r){if(!(p in r)){if(!t)throw new lc("base intrinsic for "+e+" exists, but the property is not available.");return}if(kc&&u+1>=n.length){var h=kc(r,p);r=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:r[p]}else l=Bc(r,p),r=r[p];l&&!s&&(Pc[i]=r)}}return r};var Jc=Qc("%Object.defineProperty%",!0),Xc=function(){if(zc)return Dc;zc=1;var e=Ps();return Dc=function(){return e()&&!!Symbol.toStringTag}}()(),Yc=oc,Zc=as,eu=Xc?Symbol.toStringTag:null,tu=Er,nu=t,ou=o,au=a,iu=i,ru=r.parse,su=s,cu=n.Stream,uu=c,lu=Sr,pu=Xr,du=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==o&&"boolean"!=typeof o)throw new Zc("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!eu||!n&&Yc(e,eu)||(Jc?Jc(e,eu,{configurable:!o,enumerable:!1,value:t,writable:!1}):e[eu]=t)},mu=oc,hu=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function fu(e){if(!(this instanceof fu))return new fu(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],tu.call(this),e=e||{})this[t]=e[t]}nu.inherits(fu,tu),fu.LINE_BREAK="\r\n",fu.DEFAULT_CONTENT_TYPE="application/octet-stream",fu.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=tu.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 a=this._multiPartHeader(e,t,n),i=this._multiPartFooter();o(a),o(t),o(i),this._trackLength(a,t,n)}},fu.prototype._trackLength=function(e,t,n){var o=0;null!=n.knownLength?o+=Number(n.knownLength):Buffer.isBuffer(t)?o=t.length:"string"==typeof t&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+fu.LINE_BREAK.length,t&&(t.path||t.readable&&mu(t,"httpVersion")||t instanceof cu)&&(n.knownLength||this._valuesToMeasure.push(t))},fu.prototype._lengthRetriever=function(e,t){mu(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):su.stat(e.path,function(n,o){if(n)t(n);else{var a=o.size-(e.start?e.start:0);t(null,a)}}):mu(e,"httpVersion")?t(null,Number(e.headers["content-length"])):mu(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},fu.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var o,a=this._getContentDisposition(t,n),i=this._getContentType(t,n),r="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&hu(s,n.header),s)if(mu(s,c)){if(null==(o=s[c]))continue;Array.isArray(o)||(o=[o]),o.length&&(r+=c+": "+o.join("; ")+fu.LINE_BREAK)}return"--"+this.getBoundary()+fu.LINE_BREAK+r+fu.LINE_BREAK},fu.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=ou.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=ou.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&mu(e,"httpVersion")&&(n=ou.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},fu.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=lu.lookup(e.name)),!n&&e&&e.path&&(n=lu.lookup(e.path)),!n&&e&&e.readable&&mu(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=lu.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=fu.DEFAULT_CONTENT_TYPE),n},fu.prototype._multiPartFooter=function(){return function(e){var t=fu.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},fu.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+fu.LINE_BREAK},fu.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)mu(e,t)&&(n[t.toLowerCase()]=e[t]);return n},fu.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},fu.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},fu.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,o=this._streams.length;n<o;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(fu.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},fu.prototype._generateBoundary=function(){this._boundary="--------------------------"+uu.randomBytes(12).toString("hex")},fu.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},fu.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},fu.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?pu.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){n?e(n):(o.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},fu.prototype.submit=function(e,t){var n,o,a={method:"post"};return"string"==typeof e?(e=ru(e),o=hu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(o=hu(e,a)).port||(o.port="https:"===o.protocol?443:80),o.headers=this.getHeaders(e.headers),n="https:"===o.protocol?iu.request(o):au.request(o),this.getLength(function(e,o){if(e&&"Unknown stream"!==e)this._error(e);else if(o&&n.setHeader("Content-Length",o),this.pipe(n),t){var a,i=function(e,o){return n.removeListener("error",i),n.removeListener("response",a),t.call(this,e,o)};a=i.bind(this,null),n.on("error",i),n.on("response",a)}}.bind(this)),n},fu.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},fu.prototype.toString=function(){return"[object FormData]"},du(fu,"FormData");var gu=yr(fu);function yu(e){return dr.isPlainObject(e)||dr.isArray(e)}function vu(e){return dr.endsWith(e,"[]")?e.slice(0,-2):e}function bu(e,t,n){return e?e.concat(t).map(function(e,t){return e=vu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const xu=dr.toFlatObject(dr,{},null,function(e){return/^is[A-Z]/.test(e)});function ku(e,t,n){if(!dr.isObject(e))throw new TypeError("target must be an object");t=t||new(gu||FormData);const o=(n=dr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!dr.isUndefined(t[e])})).metaTokens,a=n.visitor||u,i=n.dots,r=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&dr.isSpecCompliantForm(t);if(!dr.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(dr.isDate(e))return e.toISOString();if(dr.isBoolean(e))return e.toString();if(!s&&dr.isBlob(e))throw new mr("Blob is not supported. Use a Buffer instead.");return dr.isArrayBuffer(e)||dr.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(dr.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(dr.isArray(e)&&function(e){return dr.isArray(e)&&!e.some(yu)}(e)||(dr.isFileList(e)||dr.endsWith(n,"[]"))&&(s=dr.toArray(e)))return n=vu(n),s.forEach(function(e,o){!dr.isUndefined(e)&&null!==e&&t.append(!0===r?bu([n],o,i):null===r?n:n+"[]",c(e))}),!1;return!!yu(e)||(t.append(bu(a,n,i),c(e)),!1)}const l=[],p=Object.assign(xu,{defaultVisitor:u,convertValue:c,isVisitable:yu});if(!dr.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!dr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),dr.forEach(n,function(n,i){!0===(!(dr.isUndefined(n)||null===n)&&a.call(t,n,dr.isString(i)?i.trim():i,o,p))&&e(n,o?o.concat(i):[i])}),l.pop()}}(e),t}function wu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function _u(e,t){this._pairs=[],e&&ku(e,this,t)}const Eu=_u.prototype;function Cu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Su(e,t,n){if(!t)return e;const o=n&&n.encode||Cu;dr.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(i=a?a(t,n):dr.isURLSearchParams(t)?t.toString():new _u(t,n).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Eu.append=function(e,t){this._pairs.push([e,t])},Eu.toString=function(e){const t=e?function(t){return e.call(this,t,wu)}:wu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ru=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){dr.forEach(this.handlers,function(t){null!==t&&e(t)})}},Tu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Au=r.URLSearchParams;const Iu="abcdefghijklmnopqrstuvwxyz",ju="0123456789",Ou={DIGIT:ju,ALPHA:Iu,ALPHA_DIGIT:Iu+Iu.toUpperCase()+ju};var Pu={isNode:!0,classes:{URLSearchParams:Au,FormData:gu,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Ou,generateString:(e=16,t=Ou.ALPHA_DIGIT)=>{let n="";const{length:o}=t,a=new Uint32Array(e);c.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%o];return n},protocols:["http","https","file","data"]};const Lu="undefined"!=typeof window&&"undefined"!=typeof document,Du="object"==typeof navigator&&navigator||void 0,zu=Lu&&(!Du||["ReactNative","NativeScript","NS"].indexOf(Du.product)<0),qu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Mu=Lu&&window.location.href||"http://localhost";var Nu={...Object.freeze({__proto__:null,hasBrowserEnv:Lu,hasStandardBrowserEnv:zu,hasStandardBrowserWebWorkerEnv:qu,navigator:Du,origin:Mu}),...Pu};function Bu(e){function t(e,n,o,a){let i=e[a++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),s=a>=e.length;if(i=!i&&dr.isArray(o)?o.length:i,s)return dr.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!r;o[i]&&dr.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],a)&&dr.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let i;for(o=0;o<a;o++)i=n[o],t[i]=e[i];return t}(o[i])),!r}if(dr.isFormData(e)&&dr.isFunction(e.entries)){const n={};return dr.forEachEntry(e,(e,o)=>{t(function(e){return dr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const Uu={transitional:Tu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=dr.isObject(e);a&&dr.isHTMLForm(e)&&(e=new FormData(e));if(dr.isFormData(e))return o?JSON.stringify(Bu(e)):e;if(dr.isArrayBuffer(e)||dr.isBuffer(e)||dr.isStream(e)||dr.isFile(e)||dr.isBlob(e)||dr.isReadableStream(e))return e;if(dr.isArrayBufferView(e))return e.buffer;if(dr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ku(e,new Nu.classes.URLSearchParams,{visitor:function(e,t,n,o){return Nu.isNode&&dr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=dr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ku(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(dr.isString(e))try{return(t||JSON.parse)(e),dr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Uu.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(dr.isResponse(e)||dr.isReadableStream(e))return e;if(e&&dr.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw mr.from(e,mr.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:Nu.classes.FormData,Blob:Nu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dr.forEach(["delete","get","head","post","put","patch"],e=>{Uu.headers[e]={}});var Fu=Uu;const Gu=dr.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 Wu=Symbol("internals");function Vu(e){return e&&String(e).trim().toLowerCase()}function Hu(e){return!1===e||null==e?e:dr.isArray(e)?e.map(Hu):String(e)}function Ku(e,t,n,o,a){return dr.isFunction(o)?o.call(this,t,n):(a&&(t=n),dr.isString(t)?dr.isString(o)?-1!==t.indexOf(o):dr.isRegExp(o)?o.test(t):void 0:void 0)}class $u{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=Vu(t);if(!a)throw new Error("header name must be a non-empty string");const i=dr.findKey(o,a);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=Hu(e))}const i=(e,t)=>dr.forEach(e,(e,n)=>a(e,n,t));if(dr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(dr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&Gu[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(dr.isObject(e)&&dr.isIterable(e)){let n,o,a={};for(const t of e){if(!dr.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[o=t[0]]=(n=a[o])?dr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Vu(e)){const n=dr.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 o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(dr.isFunction(t))return t.call(this,e,n);if(dr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vu(e)){const n=dr.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ku(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=Vu(e)){const a=dr.findKey(n,e);!a||t&&!Ku(0,n[a],a,t)||(delete n[a],o=!0)}}return dr.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!Ku(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return dr.forEach(this,(o,a)=>{const i=dr.findKey(n,a);if(i)return t[i]=Hu(o),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();r!==a&&delete t[a],t[r]=Hu(o),n[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return dr.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&dr.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[Wu]=this[Wu]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Vu(e);t[o]||(!function(e,t){const n=dr.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[o]=!0)}return dr.isArray(e)?e.forEach(o):o(e),this}}$u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors($u.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),dr.freezeMethods($u);var Qu=$u;function Ju(e,t){const n=this||Fu,o=t||n,a=Qu.from(o.headers);let i=o.data;return dr.forEach(e,function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Xu(e){return!(!e||!e.__CANCEL__)}function Yu(e,t,n){mr.call(this,null==e?"canceled":e,mr.ERR_CANCELED,t,n),this.name="CanceledError"}function Zu(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new mr("Request failed with status code "+n.status,[mr.ERR_BAD_REQUEST,mr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function el(e,t,n){let o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}dr.inherits(Yu,mr,{__CANCEL__:!0});var tl={},nl=r.parse,ol={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},al=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function il(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}tl.getProxyForUrl=function(e){var t="string"==typeof e?nl(e):e||{},n=t.protocol,o=t.host,a=t.port;if("string"!=typeof o||!o||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(il("npm_config_no_proxy")||il("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,i=o?parseInt(o[2]):0;return!(!i||i===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!al.call(e,a)):e!==a)})}(o=o.replace(/:\d*$/,""),a=parseInt(a)||ol[n]||0))return"";var i=il("npm_config_"+n+"_proxy")||il(n+"_proxy")||il("npm_config_proxy")||il("all_proxy");return i&&-1===i.indexOf("://")&&(i=n+"://"+i),i};var rl,sl,cl,ul,ll,pl={exports:{}},dl={exports:{}},ml={exports:{}};function hl(){if(sl)return rl;sl=1;var e=1e3,t=60*e,n=60*t,o=24*n,a=7*o,i=365.25*o;function r(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}return rl=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*a;case"days":case"day":case"d":return c*o;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(a){var i=Math.abs(a);if(i>=o)return r(a,i,o,"day");if(i>=n)return r(a,i,n,"hour");if(i>=t)return r(a,i,t,"minute");if(i>=e)return r(a,i,e,"second");return a+" ms"}(s):function(a){var i=Math.abs(a);if(i>=o)return Math.round(a/o)+"d";if(i>=n)return Math.round(a/n)+"h";if(i>=t)return Math.round(a/t)+"m";if(i>=e)return Math.round(a/e)+"s";return a+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},rl}function fl(){if(ul)return cl;return ul=1,cl=function(e){function t(e){let o,a,i,r=null;function s(...e){if(!s.enabled)return;const n=s,a=Number(new Date),i=a-(o||a);n.diff=i,n.prev=o,n.curr=a,o=a,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,(o,a)=>{if("%%"===o)return"%";r++;const i=t.formatters[a];if("function"==typeof i){const t=e[r];o=i.call(n,t),e.splice(r,1),r--}return o}),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:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function o(e,t){let n=0,o=0,a=-1,i=0;for(;n<e.length;)if(o<t.length&&(t[o]===e[n]||"*"===t[o]))"*"===t[o]?(a=o,i=n,o++):(n++,o++);else{if(-1===a)return!1;o=a+1,i++,n=i}for(;o<t.length&&"*"===t[o];)o++;return o===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(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=hl(),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},cl}var gl,yl,vl,bl,xl,kl,wl,_l={exports:{}};function El(){return yl?gl:(yl=1,gl=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(n+e),a=t.indexOf("--");return-1!==o&&(-1===a||o<a)})}function Cl(){return xl||(xl=1,function(e,n){const o=l,a=t;n.init=function(e){e.inspectOpts={};const t=Object.keys(n.inspectOpts);for(let o=0;o<t.length;o++)e.inspectOpts[t[o]]=n.inspectOpts[t[o]]},n.log=function(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+"\n")},n.formatArgs=function(t){const{namespace:o,useColors:a}=this;if(a){const n=this.color,a="[3"+(n<8?n:"8;5;"+n),i=` ${a};1m${o} `;t[0]=i+t[0].split("\n").join("\n"+i),t.push(a+"m+"+e.exports.humanize(this.diff)+"")}else t[0]=function(){if(n.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+o+" "+t[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):o.isatty(process.stderr.fd)},n.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`."),n.colors=[6,2,3,4,5,1];try{const e=function(){if(bl)return vl;bl=1;const e=p,t=l,n=El(),{env:o}=process;let a;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function r(t,i){if(0===a)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===a)return 0;const r=a||0;if("dumb"===o.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 o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in o)||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?a=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(a=1),"FORCE_COLOR"in o&&(a="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),vl={supportsColor:function(e){return i(r(e,e&&e.isTTY))},stdout:i(r(!0,t.isatty(1))),stderr:i(r(!0,t.isatty(2)))},vl}();e&&(e.stderr||e).level>=2&&(n.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){}n.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 o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[n]=o,e},{}),e.exports=fl()(n);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}}(_l,_l.exports)),_l.exports}function Sl(){return kl||(kl=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?dl.exports=(ll||(ll=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 o=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(a=o))}),t.splice(a,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=fl()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ml,ml.exports)),ml.exports):dl.exports=Cl()),dl.exports}var Rl,Tl,Al,Il=r,jl=Il.URL,Ol=a,Pl=i,Ll=n.Writable,Dl=u,zl=function(){if(!wl){try{wl=Sl()("follow-redirects")}catch(e){}"function"!=typeof wl&&(wl=function(){})}wl.apply(null,arguments)};Rl="undefined"!=typeof process,Tl="undefined"!=typeof window&&"undefined"!=typeof document,Al=op(Error.captureStackTrace),Rl||!Tl&&Al||console.warn("The follow-redirects package should be excluded from browser builds.");var ql=!1;try{Dl(new jl(""))}catch(_o){ql="ERR_INVALID_URL"===_o.code}var Ml=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Nl=["abort","aborted","connect","error","socket","timeout"],Bl=Object.create(null);Nl.forEach(function(e){Bl[e]=function(t,n,o){this._redirectable.emit(e,t,n,o)}});var Ul=ep("ERR_INVALID_URL","Invalid URL",TypeError),Fl=ep("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Gl=ep("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Fl),Wl=ep("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Vl=ep("ERR_STREAM_WRITE_AFTER_END","write after end"),Hl=Ll.prototype.destroy||Ql;function Kl(e,t){Ll.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 Fl?e:new Fl({cause:e}))}},this._performRequest()}function $l(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(o){var a=o+":",i=n[a]=e[o],r=t[o]=Object.create(i);Object.defineProperties(r,{request:{value:function(e,o,i){var r;return r=e,jl&&r instanceof jl?e=Yl(e):np(e)?e=Yl(Jl(e)):(i=o,o=Xl(e),e={protocol:a}),op(o)&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,np(o.host)||np(o.hostname)||(o.hostname="::1"),Dl.equal(o.protocol,a,"protocol mismatch"),zl("options",o),new Kl(o,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var o=r.request(e,t,n);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})}),t}function Ql(){}function Jl(e){var t;if(ql)t=new jl(e);else if(!np((t=Xl(Il.parse(e))).protocol))throw new Ul({input:e});return t}function Xl(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Ul({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Ul({input:e.href||e});return e}function Yl(e,t){var n=t||{};for(var o of Ml)n[o]=e[o];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 Zl(e,t){var n;for(var o in t)e.test(o)&&(n=t[o],delete t[o]);return null==n?void 0:String(n).trim()}function ep(e,t,n){function o(n){op(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return o.prototype=new(n||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),o}function tp(e,t){for(var n of Nl)e.removeListener(n,Bl[n]);e.on("error",Ql),e.destroy(t)}function np(e){return"string"==typeof e||e instanceof String}function op(e){return"function"==typeof e}Kl.prototype=Object.create(Ll.prototype),Kl.prototype.abort=function(){tp(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Kl.prototype.destroy=function(e){return tp(this._currentRequest,e),Hl.call(this,e),this},Kl.prototype.write=function(e,t,n){if(this._ending)throw new Vl;if(!np(e)&&("object"!=typeof(o=e)||!("length"in o)))throw new TypeError("data should be a string, Buffer or Uint8Array");var o;op(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 Wl),this.abort()):n&&n()},Kl.prototype.end=function(e,t,n){if(op(e)?(n=e,e=t=null):op(t)&&(n=t,t=null),e){var o=this,a=this._currentRequest;this.write(e,t,function(){o._ended=!0,a.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},Kl.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Kl.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Kl.prototype.setTimeout=function(e,t){var n=this;function o(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),i()},e),o(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",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",o),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Kl.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Kl.prototype,e,{get:function(){return this._currentRequest[e]}})}),Kl.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))}},Kl.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 o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(o._redirectable=this,Nl))o.on(a,Bl[a]);if(this._currentUrl=/^\//.test(this._options.path)?Il.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,s=this._requestBodyBuffers;!function e(t){if(o===r._currentRequest)if(t)r.emit("error",t);else if(i<s.length){var n=s[i++];o.finished||o.write(n.data,n.encoding,e)}else r._ended&&o.end()}()}},Kl.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,o=e.headers.location;if(!o||!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(tp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Gl;var a=this._options.beforeRedirect;a&&(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=[],Zl(/^content-/i,this._options.headers));var r,s,c=Zl(/^host$/i,this._options.headers),u=Jl(this._currentUrl),l=c||u.host,p=/^\w+:/.test(o)?this._currentUrl:Il.format(Object.assign(u,{host:l})),d=(r=o,s=p,ql?new jl(r,s):Jl(Il.resolve(s,r)));if(zl("redirecting to",d.href),this._isRedirect=!0,Yl(d,this._options),(d.protocol!==u.protocol&&"https:"!==d.protocol||d.host!==l&&!function(e,t){Dl(np(e)&&np(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,l))&&Zl(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),op(a)){var m={headers:e.headers,statusCode:t},h={url:p,method:i,headers:n};a(this._options,m,h),this._sanitizeOptions(this._options)}this._performRequest()},pl.exports=$l({http:Ol,https:Pl}),pl.exports.wrap=$l;var ap=yr(pl.exports);const ip="1.12.2";function rp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const sp=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const cp=Symbol("internals");class up extends n.Transform{constructor(e){super({readableHighWaterMark:(e=dr.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!dr.isUndefined(t[e]))).chunkSize});const t=this[cp]={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[cp];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const o=this[cp],a=o.maxRate,i=this.readableHighWaterMark,r=o.timeWindow,s=a/(1e3/r),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*s):0,u=(e,t)=>{const n=Buffer.byteLength(e);o.bytesSeen+=n,o.bytes+=n,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(e)?process.nextTick(t):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=i,m=0;if(a){const e=Date.now();(!o.ts||(m=e-o.ts)>=r)&&(o.ts=e,l=s-o.bytes,o.bytes=l<0?-l:0,m=0),l=s-o.bytes}if(a){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,o){if(t)return n(t);o?l(o,e):n(null)})}}var lp=up;const{asyncIterator:pp}=Symbol;var dp=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[pp]?yield*e[pp]():yield e};const mp=Nu.ALPHABET.ALPHA_DIGIT+"-_",hp="function"==typeof TextEncoder?new TextEncoder:new t.TextEncoder,fp="\r\n",gp=hp.encode(fp);class yp{constructor(e,t){const{escapeName:n}=this.constructor,o=dr.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!o&&t.name?`; filename="${n(t.name)}"`:""}${fp}`;o?t=hp.encode(String(t).replace(/\r?\n|\r\n?/g,fp)):a+=`Content-Type: ${t.type||"application/octet-stream"}${fp}`,this.headers=hp.encode(a+fp),this.contentLength=o?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;dr.isTypedArray(e)?yield e:yield*dp(e),yield gp}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var vp=(e,t,o)=>{const{tag:a="form-data-boundary",size:i=25,boundary:r=a+"-"+Nu.generateString(i,mp)}=o||{};if(!dr.isFormData(e))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 10-70 characters long");const s=hp.encode("--"+r+fp),c=hp.encode("--"+r+"--"+fp);let u=c.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new yp(e,t);return u+=n.size,n});u+=s.byteLength*l.length,u=dr.toFiniteNumber(u);const p={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(u)&&(p["Content-Length"]=u),t&&t(p),n.Readable.from(async function*(){for(const e of l)yield s,yield*e.encode();yield c}())};class bp extends n.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 xp=bp;var kp=(e,t)=>dr.isAsyncFn(e)?function(...n){const o=n.pop();e.apply(this,n).then(e=>{try{t?o(null,...t(e)):o(null,e)}catch(e){o(e)}},o)}:e;const wp=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,i=0,r=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=o[r];a||(a=c),n[i]=s,o[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-a<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,o,a=0,i=1e3/t;const r=(t,i=Date.now())=>{a=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=i?r(e,t):(n=e,o||(o=setTimeout(()=>{o=null,r(n)},i-s)))},()=>n&&r(n)]}(n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,s=i-o,c=a(s);o=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)},_p=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ep=e=>(...t)=>dr.asap(()=>e(...t));const Cp={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH},Sp={flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH},Rp=dr.isFunction(d.createBrotliDecompress),{http:Tp,https:Ap}=ap,Ip=/https:?/,jp=Nu.protocols.map(e=>e+":"),Op=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Pp(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Lp(e,t,n){let o=t;if(!o&&!1!==o){const e=tl.getProxyForUrl(n);e&&(o=new URL(e))}if(o){if(o.username&&(o.auth=(o.username||"")+":"+(o.password||"")),o.auth){(o.auth.username||o.auth.password)&&(o.auth=(o.auth.username||"")+":"+(o.auth.password||""));const t=Buffer.from(o.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=o.hostname||o.host;e.hostname=t,e.host=t,e.port=o.port,e.path=n,o.protocol&&(e.protocol=o.protocol.includes(":")?o.protocol:`${o.protocol}:`)}e.beforeRedirects.proxy=function(e){Lp(e,t,e.href)}}const Dp="undefined"!=typeof process&&"process"===dr.kindOf(process),zp=(e,t)=>(({address:e,family:t})=>{if(!dr.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(dr.isObject(e)?e:{address:e,family:t});var qp=Dp&&function(e){return o=async function(o,r,s){let{data:c,lookup:u,family:l}=e;const{responseType:p,responseEncoding:h}=e,f=e.method.toUpperCase();let g,y,v=!1;if(u){const e=kp(u,e=>dr.isArray(e)?e:[e]);u=(t,n,o)=>{e(t,n,(e,t,a)=>{if(e)return o(e);const i=dr.isArray(t)?t.map(e=>zp(e)):[zp(t,a)];n.all?o(e,i):o(e,i[0].address,i[0].family)})}}const b=new m.EventEmitter,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(k),e.signal&&e.signal.removeEventListener("abort",k),b.removeAllListeners()};function k(t){b.emit("abort",!t||t.type?new Yu(null,e,y):t)}s((e,t)=>{g=!0,t&&(v=!0,x())}),b.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(k),e.signal&&(e.signal.aborted?k():e.signal.addEventListener("abort",k)));const w=el(e.baseURL,e.url,e.allowAbsoluteUrls),_=new URL(w,Nu.hasBrowserEnv?Nu.origin:void 0),E=_.protocol||jp[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),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){const t=o.charCodeAt(n+1),a=o.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(e-=2,n+=2)}let n=0,a=t-1;const i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));a>=0&&(61===o.charCodeAt(a)?(n++,a--):i(a)&&(n++,a-=3)),1===n&&a>=0&&(61===o.charCodeAt(a)||i(a))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}return Buffer.byteLength(o,"utf8")}(String(e.url||w||""));if(t>e.maxContentLength)return r(new mr("maxContentLength size of "+e.maxContentLength+" exceeded",mr.ERR_BAD_RESPONSE,e))}let t;if("GET"!==f)return Zu(o,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{t=function(e,t,n){const o=n&&n.Blob||Nu.classes.Blob,a=rp(e);if(void 0===t&&o&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=sp.exec(e);if(!n)throw new mr("Invalid URL",mr.ERR_INVALID_URL);const i=n[1],r=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),r?"base64":"utf8");if(t){if(!o)throw new mr("Blob is not supported",mr.ERR_NOT_SUPPORT);return new o([c],{type:i})}return c}throw new mr("Unsupported protocol "+a,mr.ERR_NOT_SUPPORT)}(e.url,"blob"===p,{Blob:e.env&&e.env.Blob})}catch(t){throw mr.from(t,mr.ERR_BAD_REQUEST,e)}return"text"===p?(t=t.toString(h),h&&"utf8"!==h||(t=dr.stripBOM(t))):"stream"===p&&(t=n.Readable.from(t)),Zu(o,r,{data:t,status:200,statusText:"OK",headers:new Qu,config:e})}if(-1===jp.indexOf(E))return r(new mr("Unsupported protocol "+E,mr.ERR_BAD_REQUEST,e));const C=Qu.from(e.headers).normalize();C.set("User-Agent","axios/"+ip,!1);const{onUploadProgress:S,onDownloadProgress:R}=e,T=e.maxRate;let A,I;if(dr.isSpecCompliantForm(c)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);c=vp(c,e=>{C.set(e)},{tag:`axios-${ip}-boundary`,boundary:e&&e[1]||void 0})}else if(dr.isFormData(c)&&dr.isFunction(c.getHeaders)){if(C.set(c.getHeaders()),!C.hasContentLength())try{const e=await t.promisify(c.getLength).call(c);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(dr.isBlob(c)||dr.isFile(c))c.size&&C.setContentType(c.type||"application/octet-stream"),C.setContentLength(c.size||0),c=n.Readable.from(dp(c));else if(c&&!dr.isStream(c)){if(Buffer.isBuffer(c));else if(dr.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!dr.isString(c))return r(new mr("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",mr.ERR_BAD_REQUEST,e));c=Buffer.from(c,"utf-8")}if(C.setContentLength(c.length,!1),e.maxBodyLength>-1&&c.length>e.maxBodyLength)return r(new mr("Request body larger than maxBodyLength limit",mr.ERR_BAD_REQUEST,e))}const j=dr.toFiniteNumber(C.getContentLength());let O,P;dr.isArray(T)?(A=T[0],I=T[1]):A=I=T,c&&(S||A)&&(dr.isStream(c)||(c=n.Readable.from(c,{objectMode:!1})),c=n.pipeline([c,new lp({maxRate:dr.toFiniteNumber(A)})],dr.noop),S&&c.on("progress",Op(c,_p(j,wp(Ep(S),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&_.username&&(O=_.username+":"+_.password),O&&C.delete("authorization");try{P=Su(_.pathname+_.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,r(n)}C.set("Accept-Encoding","gzip, compress, deflate"+(Rp?", br":""),!1);const L={path:P,method:f,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:E,family:l,beforeRedirect:Pp,beforeRedirects:{}};let D;!dr.isUndefined(u)&&(L.lookup=u),e.socketPath?L.socketPath=e.socketPath:(L.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,L.port=_.port,Lp(L,e.proxy,E+"//"+_.hostname+(_.port?":"+_.port:"")+L.path));const z=Ip.test(L.protocol);if(L.agent=z?e.httpsAgent:e.httpAgent,e.transport?D=e.transport:0===e.maxRedirects?D=z?i:a:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),D=z?Ap:Tp),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),y=D.request(L,function(t){if(y.destroyed)return;const a=[t],i=+t.headers["content-length"];if(R||I){const e=new lp({maxRate:dr.toFiniteNumber(I)});R&&e.on("progress",Op(e,_p(i,wp(Ep(R),!0,3)))),a.push(e)}let s=t;const c=t.req||y;if(!1!==e.decompress&&t.headers["content-encoding"])switch("HEAD"!==f&&204!==t.statusCode||delete t.headers["content-encoding"],(t.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(d.createUnzip(Cp)),delete t.headers["content-encoding"];break;case"deflate":a.push(new xp),a.push(d.createUnzip(Cp)),delete t.headers["content-encoding"];break;case"br":Rp&&(a.push(d.createBrotliDecompress(Sp)),delete t.headers["content-encoding"])}s=a.length>1?n.pipeline(a,dr.noop):a[0];const u=n.finished(s,()=>{u(),x()}),l={status:t.statusCode,statusText:t.statusMessage,headers:new Qu(t.headers),config:e,request:c};if("stream"===p)l.data=s,Zu(o,r,l);else{const t=[];let n=0;s.on("data",function(o){t.push(o),n+=o.length,e.maxContentLength>-1&&n>e.maxContentLength&&(v=!0,s.destroy(),r(new mr("maxContentLength size of "+e.maxContentLength+" exceeded",mr.ERR_BAD_RESPONSE,e,c)))}),s.on("aborted",function(){if(v)return;const t=new mr("stream has been aborted",mr.ERR_BAD_RESPONSE,e,c);s.destroy(t),r(t)}),s.on("error",function(t){y.destroyed||r(mr.from(t,null,e,c))}),s.on("end",function(){try{let e=1===t.length?t[0]:Buffer.concat(t);"arraybuffer"!==p&&(e=e.toString(h),h&&"utf8"!==h||(e=dr.stripBOM(e))),l.data=e}catch(t){return r(mr.from(t,null,e,l.request,l))}Zu(o,r,l)})}b.once("abort",e=>{s.destroyed||(s.emit("error",e),s.destroy())})}),b.once("abort",e=>{r(e),y.destroy(e)}),y.on("error",function(t){r(mr.from(t,null,e,y))}),y.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void r(new mr("error trying to parse `config.timeout` to int",mr.ERR_BAD_OPTION_VALUE,e,y));y.setTimeout(t,function(){if(g)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||Tu;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new mr(t,n.clarifyTimeoutError?mr.ETIMEDOUT:mr.ECONNABORTED,e,y)),k()})}if(dr.isStream(c)){let t=!1,n=!1;c.on("end",()=>{t=!0}),c.once("error",e=>{n=!0,y.destroy(e)}),c.on("close",()=>{t||n||k(new Yu("Request stream has been aborted",e,y))}),c.pipe(y)}else y.end(c)},new Promise((e,t)=>{let n,a;const i=(e,t)=>{a||(a=!0,n&&n(e,t))},r=e=>{i(e,!0),t(e)};o(t=>{i(t),e(t)},r,e=>n=e).catch(r)});var o},Mp=Nu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Nu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Nu.origin),Nu.navigator&&/(msie|trident)/i.test(Nu.navigator.userAgent)):()=>!0,Np=Nu.hasStandardBrowserEnv?{write(e,t,n,o,a,i){const r=[e+"="+encodeURIComponent(t)];dr.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),dr.isString(o)&&r.push("path="+o),dr.isString(a)&&r.push("domain="+a),!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 Bp=e=>e instanceof Qu?{...e}:e;function Up(e,t){t=t||{};const n={};function o(e,t,n,o){return dr.isPlainObject(e)&&dr.isPlainObject(t)?dr.merge.call({caseless:o},e,t):dr.isPlainObject(t)?dr.merge({},t):dr.isArray(t)?t.slice():t}function a(e,t,n,a){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function i(e,t){if(!dr.isUndefined(t))return o(void 0,t)}function r(e,t){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,i){return i in t?o(n,a):i in e?o(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)=>a(Bp(e),Bp(t),0,!0)};return dr.forEach(Object.keys({...e,...t}),function(o){const i=c[o]||a,r=i(e[o],t[o],o);dr.isUndefined(r)&&i!==s||(n[o]=r)}),n}var Fp=e=>{const t=Up({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:r,auth:s}=t;if(t.headers=r=Qu.from(r),t.url=Su(el(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),dr.isFormData(n))if(Nu.hasStandardBrowserEnv||Nu.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(dr.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(Nu.hasStandardBrowserEnv&&(o&&dr.isFunction(o)&&(o=o(t)),o||!1!==o&&Mp(t.url))){const e=a&&i&&Np.read(i);e&&r.set(a,e)}return t};var Gp="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=Fp(e);let a=o.data;const i=Qu.from(o.headers).normalize();let r,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=o;function h(){u&&u(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(r),o.signal&&o.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=Qu.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Zu(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:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.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 mr("Request aborted",mr.ECONNABORTED,e,f)),f=null)},f.onerror=function(t){const o=new mr(t&&t.message?t.message:"Network Error",mr.ERR_NETWORK,e,f);o.event=t||null,n(o),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||Tu;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new mr(t,a.clarifyTimeoutError?mr.ETIMEDOUT:mr.ECONNABORTED,e,f)),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&dr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),dr.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),p&&"json"!==p&&(f.responseType=o.responseType),m&&([c,l]=wp(m,!0),f.addEventListener("progress",c)),d&&f.upload&&([s,u]=wp(d),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(r=t=>{f&&(n(!t||t.type?new Yu(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(r),o.signal&&(o.signal.aborted?r():o.signal.addEventListener("abort",r)));const y=rp(o.url);y&&-1===Nu.protocols.indexOf(y)?n(new mr("Unsupported protocol "+y+":",mr.ERR_BAD_REQUEST,e)):f.send(a||null)})};var Wp=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;o.abort(t instanceof mr?t:new Yu(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,a(new mr(`timeout ${t} of ms exceeded`,mr.ETIMEDOUT))},t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:s}=o;return s.unsubscribe=()=>dr.asap(r),s}};const Vp=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},Hp=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()}},Kp=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of Hp(e))yield*Vp(n,t)}(e,t);let i,r=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let i=o.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:$p}=dr,Qp=(({Request:e,Response:t})=>({Request:e,Response:t}))(dr.global),{ReadableStream:Jp,TextEncoder:Xp}=dr.global,Yp=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Zp=e=>{e=dr.merge.call({skipUndefined:!0},Qp,e);const{fetch:t,Request:n,Response:o}=e,a=t?$p(t):"function"==typeof fetch,i=$p(n),r=$p(o);if(!a)return!1;const s=a&&$p(Jp),c=a&&("function"==typeof Xp?(e=>t=>e.encode(t))(new Xp):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&Yp(()=>{let e=!1;const t=new n(Nu.origin,{body:new Jp,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=r&&s&&Yp(()=>dr.isReadableStream(new o("").body)),p={stream:l&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new mr(`Response type '${e}' is not supported`,mr.ERR_NOT_SUPPORT,n)})});const d=async(e,t)=>{const o=dr.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e)){const t=new n(Nu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dr.isArrayBufferView(e)||dr.isArrayBuffer(e)?e.byteLength:(dr.isURLSearchParams(e)&&(e+=""),dr.isString(e)?(await c(e)).byteLength:void 0)})(t):o};return async e=>{let{url:a,method:r,data:s,signal:c,cancelToken:m,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:x}=Fp(e),k=t||fetch;y=y?(y+"").toLowerCase():"text";let w=Wp([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(a,{method:"POST",body:s,duplex:"half"});if(dr.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=_p(C,wp(Ep(g)));s=Kp(t.body,65536,e,n)}}dr.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(a,c);let m=await(i?k(_,x):k(a,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=dr.toFiniteNumber(m.headers.get("content-length")),[n,a]=f&&_p(t,wp(Ep(f),!0))||[];m=new o(Kp(m.body,65536,n,()=>{a&&a(),E&&E()}),e)}y=y||"text";let S=await p[dr.findKey(p,y)||"text"](m,e);return!h&&E&&E(),await new Promise((t,n)=>{Zu(t,n,{data:S,headers:Qu.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 mr("Network Error",mr.ERR_NETWORK,e,_),{cause:t.cause||t});throw mr.from(t,t&&t.code,e,_)}}},ed=new Map,td=e=>{let t=e?e.env:{};const{fetch:n,Request:o,Response:a}=t,i=[o,a,n];let r,s,c=i.length,u=ed;for(;c--;)r=i[c],s=u.get(r),void 0===s&&u.set(r,s=c?new Map:Zp(t)),u=s;return s};td();const nd={http:qp,xhr:Gp,fetch:{get:td}};dr.forEach(nd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const od=e=>`- ${e}`,ad=e=>dr.isFunction(e)||null===e||!1===e;var id=(e,t)=>{e=dr.isArray(e)?e:[e];const{length:n}=e;let o,a;const i={};for(let r=0;r<n;r++){let n;if(o=e[r],a=o,!ad(o)&&(a=nd[(n=String(o)).toLowerCase()],void 0===a))throw new mr(`Unknown adapter '${n}'`);if(a&&(dr.isFunction(a)||(a=a.get(t))))break;i[n||"#"+r]=a}if(!a){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 mr("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(od).join("\n"):" "+od(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function rd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yu(null,e)}function sd(e){rd(e),e.headers=Qu.from(e.headers),e.data=Ju.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return id(e.adapter||Fu.adapter,e)(e).then(function(t){return rd(e),t.data=Ju.call(e,e.transformResponse,t),t.headers=Qu.from(t.headers),t},function(t){return Xu(t)||(rd(e),t&&t.response&&(t.response.data=Ju.call(e,e.transformResponse,t.response),t.response.headers=Qu.from(t.response.headers))),Promise.reject(t)})}const cd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ud={};cd.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ip+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new mr(o(a," has been removed"+(t?" in "+t:"")),mr.ERR_DEPRECATED);return t&&!ud[a]&&(ud[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},cd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ld={assertOptions:function(e,t,n){if("object"!=typeof e)throw new mr("options must be an object",mr.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],r=t[i];if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new mr("option "+i+" must be "+n,mr.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new mr("Unknown option "+i,mr.ERR_BAD_OPTION)}},validators:cd};const pd=ld.validators;let dd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ru,response:new Ru}}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=Up(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&ld.assertOptions(n,{silentJSONParsing:pd.transitional(pd.boolean),forcedJSONParsing:pd.transitional(pd.boolean),clarifyTimeoutError:pd.transitional(pd.boolean)},!1),null!=o&&(dr.isFunction(o)?t.paramsSerializer={serialize:o}:ld.assertOptions(o,{encode:pd.function,serialize:pd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ld.assertOptions(t,{baseUrl:pd.spelling("baseURL"),withXsrfToken:pd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&dr.merge(a.common,a[t.method]);a&&dr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=Qu.concat(i,a);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=[sd.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=sd.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 Su(el((e=Up(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};dr.forEach(["delete","get","head","options"],function(e){dd.prototype[e]=function(t,n){return this.request(Up(n||{},{method:e,url:t,data:(n||{}).data}))}}),dr.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,a){return this.request(Up(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}dd.prototype[e]=t(),dd.prototype[e+"Form"]=t(!0)});var md=dd;class hd{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 o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,a){n.reason||(n.reason=new Yu(e,o,a),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 hd(function(t){e=t}),cancel:e}}}var fd=hd;const gd={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(gd).forEach(([e,t])=>{gd[t]=e});var yd=gd;const vd=function e(t){const n=new md(t),o=_i(md.prototype.request,n);return dr.extend(o,md.prototype,n,{allOwnKeys:!0}),dr.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Up(t,n))},o}(Fu);vd.Axios=md,vd.CanceledError=Yu,vd.CancelToken=fd,vd.isCancel=Xu,vd.VERSION=ip,vd.toFormData=ku,vd.AxiosError=mr,vd.Cancel=vd.CanceledError,vd.all=function(e){return Promise.all(e)},vd.spread=function(e){return function(t){return e.apply(null,t)}},vd.isAxiosError=function(e){return dr.isObject(e)&&!0===e.isAxiosError},vd.mergeConfig=Up,vd.AxiosHeaders=Qu,vd.formToJSON=e=>Bu(dr.isHTMLForm(e)?new FormData(e):e),vd.getAdapter=id,vd.HttpStatusCode=yd,vd.default=vd;var bd=vd,xd=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var a=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(a))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))}),t.join("&")},kd=function(t){function n(n){var o,a,i,r,s=this;return(s=t.call(this,n)||this).token="",null===(a=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===a||a.request.use(function(t){return e.__assign(e.__assign({},t),{defaults:{headers:e.__assign(e.__assign({},t.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(t){return e.__assign({},t)},function(e){return Promise.reject(e)}),s}return e.__extends(n,t),n.prototype.getToken=function(){return"Bearer ".concat(this.token)},n.prototype.setToken=function(e){this.token=e},n.prototype.getUri=function(e){return this.instance.getUri(e)},n.prototype.getCancelTokenSource=function(){var e;return this.cancelToken&&this.cancelToken.cancel(),this.cancelToken=null===(e=bd.CancelToken)||void 0===e?void 0:e.source(),this.cancelToken},n.prototype.request=function(e){var t;return e.cancelToken=null===(t=this.getCancelTokenSource())||void 0===t?void 0:t.token,this.instance.request(e)},n.prototype.get=function(e,t){return this.instance.get(e,t)},n.prototype.options=function(e,t){return this.instance.options(e,t)},n.prototype.delete=function(e,t){return this.instance.delete(e,t)},n.prototype.head=function(e,t){return this.instance.head(e,t)},n.prototype.post=function(e,t,n){return this.instance.post(e,t,n)},n.prototype.put=function(e,t,n){return this.instance.put(e,t,n)},n.prototype.patch=function(e,t,n){return this.instance.patch(e,t,n)},n.prototype.success=function(e){return null==e?void 0:e.data},n.prototype.error=function(e){throw e},n}(function(e){this.instance=bd.create(e)}),wd=t.inspect,_d="function"==typeof Map&&Map.prototype,Ed=Object.getOwnPropertyDescriptor&&_d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Cd=_d&&Ed&&"function"==typeof Ed.get?Ed.get:null,Sd=_d&&Map.prototype.forEach,Rd="function"==typeof Set&&Set.prototype,Td=Object.getOwnPropertyDescriptor&&Rd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ad=Rd&&Td&&"function"==typeof Td.get?Td.get:null,Id=Rd&&Set.prototype.forEach,jd="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Od="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Pd="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ld=Boolean.prototype.valueOf,Dd=Object.prototype.toString,zd=Function.prototype.toString,qd=String.prototype.match,Md=String.prototype.slice,Nd=String.prototype.replace,Bd=String.prototype.toUpperCase,Ud=String.prototype.toLowerCase,Fd=RegExp.prototype.test,Gd=Array.prototype.concat,Wd=Array.prototype.join,Vd=Array.prototype.slice,Hd=Math.floor,Kd="function"==typeof BigInt?BigInt.prototype.valueOf:null,$d=Object.getOwnPropertySymbols,Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Jd="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Xd="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Jd||"symbol")?Symbol.toStringTag:null,Yd=Object.prototype.propertyIsEnumerable,Zd=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function em(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Fd.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-Hd(-e):Hd(e);if(o!==e){var a=String(o),i=Md.call(t,a.length+1);return Nd.call(a,n,"$&_")+"."+Nd.call(Nd.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Nd.call(t,n,"$&_")}var tm=wd,nm=tm.custom,om=dm(nm)?nm:null,am={__proto__:null,double:'"',single:"'"},im={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},rm=function e(t,n,o,a){var i=n||{};if(hm(i,"quoteStyle")&&!hm(am,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hm(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=!hm(i,"customInspect")||i.customInspect;if("boolean"!=typeof r&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hm(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(hm(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 ym(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return s?em(t,c):c}if("bigint"==typeof t){var u=String(t)+"n";return s?em(t,u):u}var l=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return lm(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=Wd.call(Array(e.indent+1)," ")}return{base:n,prev:Wd.call(Array(t+1),n)}}(i,o);if(void 0===a)a=[];else if(gm(a,t)>=0)return"[Circular]";function d(t,n,r){if(n&&(a=Vd.call(a)).push(n),r){var s={depth:i.depth};return hm(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,o+1,a)}return e(t,i,o+1,a)}if("function"==typeof t&&!pm(t)){var m=function(e){if(e.name)return e.name;var t=qd.call(zd.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=_m(t,d);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Wd.call(h,", ")+" }":"")}if(dm(t)){var f=Jd?Nd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Qd.call(t);return"object"!=typeof t||Jd?f:bm(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="<"+Ud.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)g+=" "+y[v].name+"="+sm(cm(y[v].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Ud.call(String(t.nodeName))+">"}if(lm(t)){if(0===t.length)return"[]";var b=_m(t,d);return p&&!function(e){for(var t=0;t<e.length;t++)if(gm(e[t],"\n")>=0)return!1;return!0}(b)?"["+wm(b,p)+"]":"[ "+Wd.call(b,", ")+" ]"}if(function(e){return"[object Error]"===fm(e)&&um(e)}(t)){var x=_m(t,d);return"cause"in Error.prototype||!("cause"in t)||Yd.call(t,"cause")?0===x.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Wd.call(x,", ")+" }":"{ ["+String(t)+"] "+Wd.call(Gd.call("[cause]: "+d(t.cause),x),", ")+" }"}if("object"==typeof t&&r){if(om&&"function"==typeof t[om]&&tm)return tm(t,{depth:l-o});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Cd||!e||"object"!=typeof e)return!1;try{Cd.call(e);try{Ad.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var k=[];return Sd&&Sd.call(t,function(e,n){k.push(d(n,t,!0)+" => "+d(e,t))}),km("Map",Cd.call(t),k,p)}if(function(e){if(!Ad||!e||"object"!=typeof e)return!1;try{Ad.call(e);try{Cd.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return Id&&Id.call(t,function(e){w.push(d(e,t))}),km("Set",Ad.call(t),w,p)}if(function(e){if(!jd||!e||"object"!=typeof e)return!1;try{jd.call(e,jd);try{Od.call(e,Od)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return xm("WeakMap");if(function(e){if(!Od||!e||"object"!=typeof e)return!1;try{Od.call(e,Od);try{jd.call(e,jd)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return xm("WeakSet");if(function(e){if(!Pd||!e||"object"!=typeof e)return!1;try{return Pd.call(e),!0}catch(e){}return!1}(t))return xm("WeakRef");if(function(e){return"[object Number]"===fm(e)&&um(e)}(t))return bm(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Kd)return!1;try{return Kd.call(e),!0}catch(e){}return!1}(t))return bm(d(Kd.call(t)));if(function(e){return"[object Boolean]"===fm(e)&&um(e)}(t))return bm(Ld.call(t));if(function(e){return"[object String]"===fm(e)&&um(e)}(t))return bm(d(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==gr&&t===gr)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===fm(e)&&um(e)}(t)&&!pm(t)){var _=_m(t,d),E=Zd?Zd(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&Xd&&Object(t)===t&&Xd in t?Md.call(fm(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+Wd.call(Gd.call([],S||[],C||[]),": ")+"] ":"");return 0===_.length?R+"{}":p?R+"{"+wm(_,p)+"}":R+"{ "+Wd.call(_,", ")+" }"}return String(t)};function sm(e,t,n){var o=n.quoteStyle||t,a=am[o];return a+e+a}function cm(e){return Nd.call(String(e),/"/g,"&quot;")}function um(e){return!Xd||!("object"==typeof e&&(Xd in e||void 0!==e[Xd]))}function lm(e){return"[object Array]"===fm(e)&&um(e)}function pm(e){return"[object RegExp]"===fm(e)&&um(e)}function dm(e){if(Jd)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Qd)return!1;try{return Qd.call(e),!0}catch(e){}return!1}var mm=Object.prototype.hasOwnProperty||function(e){return e in this};function hm(e,t){return mm.call(e,t)}function fm(e){return Dd.call(e)}function gm(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function ym(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return ym(Md.call(e,0,t.maxStringLength),t)+o}var a=im[t.quoteStyle||"single"];return a.lastIndex=0,sm(Nd.call(Nd.call(e,a,"\\$1"),/[\x00-\x1f]/g,vm),"single",t)}function vm(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":"")+Bd.call(t.toString(16))}function bm(e){return"Object("+e+")"}function xm(e){return e+" { ? }"}function km(e,t,n,o){return e+" ("+t+") {"+(o?wm(n,o):Wd.call(n,", "))+"}"}function wm(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Wd.call(e,","+n)+"\n"+t.prev}function _m(e,t){var n=lm(e),o=[];if(n){o.length=e.length;for(var a=0;a<e.length;a++)o[a]=hm(e,a)?t(e[a],e):""}var i,r="function"==typeof $d?$d(e):[];if(Jd){i={};for(var s=0;s<r.length;s++)i["$"+r[s]]=r[s]}for(var c in e)hm(e,c)&&(n&&String(Number(c))===c&&c<e.length||Jd&&i["$"+c]instanceof Symbol||(Fd.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof $d)for(var u=0;u<r.length;u++)Yd.call(e,r[u])&&o.push("["+t(r[u])+"]: "+t(e[r[u]],e));return o}var Em,Cm,Sm,Rm,Tm,Am,Im,jm,Om,Pm,Lm,Dm,zm,qm,Mm,Nm,Bm,Um,Fm,Gm,Wm,Vm,Hm=rm,Km=as,$m=function(e,t,n){for(var o,a=e;null!=(o=a.next);a=o)if(o.key===t)return a.next=o.next,n||(o.next=e.next,e.next=o),o},Qm=Qc,Jm=Zs,Xm=Jm([Qm("%String.prototype.indexOf%")]),Ym=function(e,t){var n=Qm(e,!!t);return"function"==typeof n&&Xm(e,".prototype.")>-1?Jm([n]):n},Zm=Ym,eh=rm,th=as,nh=Qc("%Map%",!0),oh=Zm("Map.prototype.get",!0),ah=Zm("Map.prototype.set",!0),ih=Zm("Map.prototype.has",!0),rh=Zm("Map.prototype.delete",!0),sh=Zm("Map.prototype.size",!0),ch=!!nh&&function(){var e,t={assert:function(e){if(!t.has(e))throw new th("Side channel does not contain "+eh(e))},delete:function(t){if(e){var n=rh(e,t);return 0===sh(e)&&(e=void 0),n}return!1},get:function(t){if(e)return oh(e,t)},has:function(t){return!!e&&ih(e,t)},set:function(t,n){e||(e=new nh),ah(e,t,n)}};return t},uh=Ym,lh=rm,ph=ch,dh=as,mh=Qc("%WeakMap%",!0),hh=uh("WeakMap.prototype.get",!0),fh=uh("WeakMap.prototype.set",!0),gh=uh("WeakMap.prototype.has",!0),yh=uh("WeakMap.prototype.delete",!0),vh=as,bh=rm,xh=function(){var e,t={assert:function(e){if(!t.has(e))throw new Km("Side channel does not contain "+Hm(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return $m(e,t,!0)}(e,t);return o&&n&&n===o&&(e=void 0),!!o},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 o=$m(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},kh=(mh?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new dh("Side channel does not contain "+lh(e))},delete:function(n){if(mh&&n&&("object"==typeof n||"function"==typeof n)){if(e)return yh(e,n)}else if(ph&&t)return t.delete(n);return!1},get:function(n){return mh&&n&&("object"==typeof n||"function"==typeof n)&&e?hh(e,n):t&&t.get(n)},has:function(n){return mh&&n&&("object"==typeof n||"function"==typeof n)&&e?gh(e,n):!!t&&t.has(n)},set:function(n,o){mh&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new mh),fh(e,n,o)):ph&&(t||(t=ph()),t.set(n,o))}};return n}:ph)||ch||xh,wh=String.prototype.replace,_h=/%20/g,Eh="RFC3986",Ch={default:Eh,formatters:{RFC1738:function(e){return wh.call(e,_h,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Eh},Sh=Ch,Rh=Object.prototype.hasOwnProperty,Th=Array.isArray,Ah=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):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},jh=1024,Oh={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=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.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(Th(n)){for(var o=[],a=0;a<n.length;++a)void 0!==n[a]&&o.push(n[a]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,o,a){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||a===Sh.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(l):p<128?u[u.length]=Ah[p]:p<2048?u[u.length]=Ah[192|p>>6]+Ah[128|63&p]:p<55296||p>=57344?u[u.length]=Ah[224|p>>12]+Ah[128|p>>6&63]+Ah[128|63&p]:(l+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(l)),u[u.length]=Ah[240|p>>18]+Ah[128|p>>12&63]+Ah[128|p>>6&63]+Ah[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(Th(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(Th(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!Rh.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return Th(t)&&!Th(n)&&(a=Ih(t,o)),Th(t)&&Th(n)?(n.forEach(function(n,a){if(Rh.call(t,a)){var i=t[a];i&&"object"==typeof i&&n&&"object"==typeof n?t[a]=e(i,n,o):t.push(n)}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var i=n[a];return Rh.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t},a)}},Ph=function(){var e,t={assert:function(e){if(!t.has(e))throw new vh("Side channel does not contain "+bh(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=kh()),e.set(t,n)}};return t},Lh=Oh,Dh=Ch,zh=Object.prototype.hasOwnProperty,qh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Mh=Array.isArray,Nh=Array.prototype.push,Bh=function(e,t){Nh.apply(e,Mh(t)?t:[t])},Uh=Date.prototype.toISOString,Fh=Dh.default,Gh={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Lh.encode,encodeValuesOnly:!1,format:Fh,formatter:Dh.formatters[Fh],indices:!1,serializeDate:function(e){return Uh.call(e)},skipNulls:!1,strictNullHandling:!1},Wh={},Vh=function e(t,n,o,a,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"===o&&Mh(x)&&(x=Lh.maybeMap(x,function(e){return e instanceof Date?m(e):e})),null===x){if(r)return u&&!g?u(n,Gh.encoder,y,"key",h):n;x=""}if("string"==typeof(b=x)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Lh.isBuffer(x))return u?[f(g?n:u(n,Gh.encoder,y,"key",h))+"="+f(u(x,Gh.encoder,y,"value",h))]:[f(n)+"="+f(String(x))];var C,S=[];if(void 0===x)return S;if("comma"===o&&Mh(x))g&&u&&(x=Lh.maybeMap(x,u)),C=[{value:x.length>0?x.join(",")||null:void 0}];else if(Mh(l))C=l;else{var R=Object.keys(x);C=p?R.sort(p):R}var T=c?n.replace(/\./g,"%2E"):n,A=a&&Mh(x)&&1===x.length?T+"[]":T;if(i&&Mh(x)&&0===x.length)return A+"[]";for(var I=0;I<C.length;++I){var j=C[I],O="object"==typeof j&&void 0!==j.value?j.value:x[j];if(!s||null!==O){var P=d&&c?j.replace(/\./g,"%2E"):j,L=Mh(x)?"function"==typeof o?o(A,P):A:A+(d?"."+P:"["+P+"]");v.set(t,w);var D=Ph();D.set(Wh,v),Bh(S,e(O,L,o,a,i,r,s,c,"comma"===o&&g&&Mh(x)?null:u,l,p,d,m,h,f,g,y,D))}}return S},Hh=Oh,Kh=Object.prototype.hasOwnProperty,$h=Array.isArray,Qh={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Hh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Jh=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Xh=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Yh=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,r=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=r?a.slice(0,r.index):a,c=[];if(s){if(!n.plainObjects&&Kh.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;n.depth>0&&null!==(r=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&Kh.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("["+a.slice(r.index)+"]")}return function(e,t,n,o){for(var a=o?t:Xh(t,n),i=e.length-1;i>=0;--i){var r,s=e[i];if("[]"===s&&n.parseArrays)r=n.allowEmptyArrays&&(""===a||n.strictNullHandling&&null===a)?[]:[].concat(a);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]=a:"__proto__"!==u&&(r[u]=a):r={0:a}}a=r}return a}(c,t,n,o)}},Zh=function(e,t){var n,o=e,a=function(e){if(!e)return Gh;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||Gh.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=Dh.default;if(void 0!==e.format){if(!zh.call(Dh.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,a=Dh.formatters[n],i=Gh.filter;if(("function"==typeof e.filter||Mh(e.filter))&&(i=e.filter),o=e.arrayFormat in qh?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":Gh.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||Gh.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Gh.addQueryPrefix,allowDots:r,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Gh.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Gh.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?Gh.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Gh.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:Gh.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:Gh.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Gh.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Gh.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Gh.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Gh.strictNullHandling}}(t);"function"==typeof a.filter?o=(0,a.filter)("",o):Mh(a.filter)&&(n=a.filter);var i=[];if("object"!=typeof o||null===o)return"";var r=qh[a.arrayFormat],s="comma"===r&&a.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var c=Ph(),u=0;u<n.length;++u){var l=n[u];a.skipNulls&&null===o[l]||Bh(i,Vh(o[l],l,r,s,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,c))}var p=i.join(a.delimiter),d=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},ef=function(e,t){var n=function(e){if(!e)return Qh;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?Qh.charset:e.charset,n=void 0===e.duplicates?Qh.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||Qh.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Qh.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Qh.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Qh.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Qh.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Qh.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Qh.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Qh.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Qh.decoder,delimiter:"string"==typeof e.delimiter||Hh.isRegExp(e.delimiter)?e.delimiter:Qh.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Qh.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Qh.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Qh.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Qh.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Qh.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Qh.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){var n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a,i=t.parameterLimit===1/0?void 0:t.parameterLimit,r=o.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<r.length;++a)0===r[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===r[a]?c="utf-8":"utf8=%26%2310003%3B"===r[a]&&(c="iso-8859-1"),s=a,a=r.length);for(a=0;a<r.length;++a)if(a!==s){var u,l,p=r[a],d=p.indexOf("]="),m=-1===d?p.indexOf("="):d+1;-1===m?(u=t.decoder(p,Qh.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,m),Qh.decoder,c,"key"),l=Hh.maybeMap(Xh(p.slice(m+1),t),function(e){return t.decoder(e,Qh.decoder,c,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Jh(l)),p.indexOf("[]=")>-1&&(l=$h(l)?[l]:l);var h=Kh.call(n,u);h&&"combine"===t.duplicates?n[u]=Hh.combine(n[u],l):h&&"last"!==t.duplicates||(n[u]=l)}return n}(e,n):e,a=n.plainObjects?Object.create(null):{},i=Object.keys(o),r=0;r<i.length;++r){var s=i[r],c=Yh(s,o[s],n,"string"==typeof e);a=Hh.merge(a,c,n)}return!0===n.allowSparse?a:Hh.compact(a)},tf={formats:Ch,parse:ef,stringify:Zh},nf={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 tf.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,Em=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(Cm=Em.NotificationStatus||(Em.NotificationStatus={})).SETTLED="SETTLED",Cm.NOT_SETTLED="NOT_SETTLED",(Sm=Em.NotificationReason||(Em.NotificationReason={})).REFUNDED="REFUNDED",Sm.RESOLVED="RESOLVED",Sm.CANCELLED="CANCELLED",Sm.SERVICE_SUSPENDED="SERVICE_SUSPENDED",Sm.ORDER_STOPPED="ORDER_STOPPED",Sm.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(Rm=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",Rm.INSIGHTS="insights",exports.Organization=void 0,Tm=exports.Organization||(exports.Organization={}),(Am=Tm.CustomClaims||(Tm.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",Am.USER_CODE="https://dashboard.dev.y.uno/user_code",Am.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,Im=exports.Country||(exports.Country={}),(jm=Im.CountryCode||(Im.CountryCode={})).COLOMBIA="CO",jm.MEXICO="MX",jm.BRAZIL="BR",jm.ARGENTINA="AR",jm.CHILE="CL",jm.PERU="PE",jm.URUGUAY="UR",jm.ECUADOR="EC",exports.Cms=void 0,Om=exports.Cms||(exports.Cms={}),(Pm=Om.Locale||(Om.Locale={})).EN="en",Pm.ES="es",Pm.PT="pt",(Lm=Om.Target||(Om.Target={})).BLANK="_blank",Lm.PARENT="_parent",Lm.SELF="_self",Lm.TOP="_top",exports.ReportType=void 0,(Dm=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",Dm.TRANSACTIONS="TRANSACTIONS",Dm.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",Dm.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(zm=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",zm.DEFAULT="DEFAULT",zm.CUSTOM="CUSTOM",exports.SmartRouting=void 0,qm=exports.SmartRouting||(exports.SmartRouting={}),(Mm=qm.StepType||(qm.StepType={})).FRAUD="FRAUD",Mm.PAYMENT="PAYMENT",Mm.THREE_D_SECURE="THREE_D_SECURE",Mm.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(Nm=qm.DeclineGroupType||(qm.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",Nm.MAC_CODE="MAC_CODE",exports.DataReport=void 0,Bm=exports.DataReport||(exports.DataReport={}),(Um=Bm.InsightsVolumeMetricsV2Path||(Bm.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",Um.APPROVED_PAYMENTS="approved-payments",Um.PAYMENT_METHODS="payment-methods",Um.PROVIDERS="providers",Um.COUNTRIES="countries",Um.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",Um.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(Bm.OverviewMetricType||(Bm.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(Fm=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",Fm.SETTLEMENTS="SETTLEMENTS",Fm.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",Fm.AGENDA="AGENDA",Fm.SALES_CONCILIATION="SALES_CONCILIATION",Fm.ADVANCEMENTS="ADVANCEMENTS",Fm.FEES="FEES",exports.ReconciliationAgendaInsight=void 0,(Gm=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",Gm.DAILY="AGENDA_DAILY_DISTRIBUTION",Gm.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",Gm.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.AI=void 0,Wm=exports.AI||(exports.AI={}),(Vm=Wm.AIGenerateStatus||(Wm.AIGenerateStatus={})).ACCEPTED="ACCEPTED",Vm.REFUSED="REFUSED",Vm.FRONT_FAILED="FRONT_FAILED";var of=["PAUSED","ACTIVE"],af={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},rf="DELETED",sf={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},cf=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},uf=[{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"}],lf=[{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"}],pf=[{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"}],df=[{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:""}}],mf=[{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"}],hf={docs_url:"https://docs.y.uno/reference/api-reference-overview"},ff={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}]},gf=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const yf=[];for(let e=0;e<256;++e)yf.push((e+256).toString(16).slice(1));let vf;const bf=new Uint8Array(16);var xf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kf(e,t,n){if(xf.randomUUID&&!t&&!e)return xf.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!vf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vf=crypto.getRandomValues.bind(crypto)}return vf(bf)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[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]=o[e];return t}return function(e,t=0){return(yf[e[t+0]]+yf[e[t+1]]+yf[e[t+2]]+yf[e[t+3]]+"-"+yf[e[t+4]]+yf[e[t+5]]+"-"+yf[e[t+6]]+yf[e[t+7]]+"-"+yf[e[t+8]]+yf[e[t+9]]+"-"+yf[e[t+10]]+yf[e[t+11]]+yf[e[t+12]]+yf[e[t+13]]+yf[e[t+14]]+yf[e[t+15]]).toLowerCase()}(o)}var wf=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}},_f=function(t){function n(n){var o=n?e.__assign(e.__assign({},nf),n):nf;return t.call(this,o)||this}return e.__extends(n,t),n.prototype.simulateAxiosError=function(){return new Promise(function(e,t){t({name:"AxiosError"})})},n.prototype.updateReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.put("/v1/reconciliation/reports/templates",o)},n.prototype.createReconciliationReportTemplate=function(t){var n=t.type===exports.ReconciliationReportType.TRANSACTIONS?"TRANSACTIONS":t.type,o=e.__assign(e.__assign({},t),{type:n});return this.post("/v1/reconciliation/reports/templates",o)},n.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})},n.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})},n.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})},n.prototype.getReconciliationFilters=function(){return this.get("/reconciliation/filters")},n.prototype.getReconciliationsReportColumns=function(e,t){return this.get("/v1/reconciliation/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReconciliationReportTemplates=function(){return this.get("/v1/reconciliation/reports/templates")},n.prototype.getAllTableColumns=function(e){return this.get("/v1/reconciliation/table/".concat(e,"/columns"))},n.prototype.getReconciliationActive=function(){return this.get("/v1/reconciliation/status")},n.prototype.getReconciliationAlerts=function(e,t){return this.post("/reconciliation/alerts/list",e,{params:t})},n.prototype.postReconciliationAlert=function(e){return this.post("/reconciliation/alerts",e)},n.prototype.updateReconciliationAlert=function(e){return this.patch("/reconciliation/alerts",e)},n.prototype.deleteReconciliationAlert=function(e){return this.delete("/reconciliation/alerts",{params:e})},n.prototype.getReconciliationAgenda=function(e,t){return this.post("/reconciliation/agenda/list",e,{params:t})},n.prototype.getReconciliationAgendaInsightByKey=function(e,t){return this.post("/reconciliation/agenda/insights",e,{params:t})},n.prototype.getReconciliationSales=function(e,t){return this.post("/reconciliation/sales/list",e,{params:t})},n.prototype.getReconciliationAdvancements=function(e,t){return this.post("/reconciliation/advancements/list",e,{params:t})},n.prototype.getReconciliationFees=function(e,t){return this.post("/reconciliation/fees/list",e,{params:t})},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payments/lazy",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.postPayouts=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return o.start_date||(o.start_date=new Date),o.end_date||(o.end_date=new Date),this.post("/payouts",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.getPayoutsFilters=function(e){return this.get("/payouts/filters",{headers:{"x-organization-code":e}})},n.prototype.postPaymentsEvaluated=function(t){t.account_code;var n=e.__rest(t,["account_code"]);return n.start_date||(n.start_date=new Date),n.end_date||(n.end_date=new Date),this.post("/payments/evaluated",n)},n.prototype.getPaymentV2=function(e){return this.get("/payments/v2/".concat(e))},n.prototype.postTransactions=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("/v2/transactions",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("/fraud-transactions",{account_codes:(null==n?void 0:n.split(","))||[]},{params:o})},n.prototype.getPayoutDetails=function(e){var t={"x-organization-code":e.organization_code};return this.get("/payouts/detail/".concat(e.payout_code),{headers:t})},n.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})},n.prototype.getPayoutHistoryDetails=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e.payout_code,"/history"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,a=localStorage.getItem("x-organization-code"),i={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),a?{}:{headers:i})},n.prototype.getOrgByName=function(e){return this.post("/organizations/get-by-name",{org_name:e})},n.prototype.createOperationTransaction=function(e,t,n,o){return this.post("/payments/".concat(n,"/transactions/").concat(t,"/").concat(o),e)},n.prototype.getPaymentMethodsAndProviders=function(){return this.get("/payments/payment-methods/providers")},n.prototype.getTransactionDetailsV2=function(e){return this.get("/payments/".concat(e.payment_code,"/transactions/details"),{params:{payment_code:e.payment_code,size:99}})},n.prototype.getTransactionRawResponse=function(e){return this.get("/transactions/".concat(e.transaction_code,"/raw-response"))},n.prototype.uploadChargebacks=function(e,t,n,o){return this.post("/chargebacks/upload-file/payment/".concat(t,"/transaction/").concat(n),e,{onUploadProgress:function(e){o(e.total?Math.round(100*e.loaded/e.total):0)},headers:{"x-account-code":null==e?void 0:e.account_id,"x-idempotency-key":kf()}})},n.prototype.getPaymentTransactionsDetails=function(e){var t=e.transaction_code;return this.get("/transactions/".concat(t,"/details"))},n.prototype.getTransactionHistoryByPaymentCode=function(e){var t=e.payment_code;return this.get("/transactions/by-payment/".concat(t,"/history"))},n.prototype.getDeveloperCredentials=function(e,t){return this.get("/v2/developers/credentials",{headers:{"x-password":e,"x-account-code":t}})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getAllowedIps=function(){return this.get("/allowlist-ips")},n.prototype.patchAllowedIps=function(e){return this.patch("/allowlist-ips",e)},n.prototype.getOrganization=function(){return this.get("/organizations",{headers:{"x-organization-code":""}})},n.prototype.getAllOrganization=function(){return this.get("/organizations/all")},n.prototype.getProviderParams=function(e,t){var n,o=localStorage.getItem("x-organization-code"),a={"x-organization-code":o?null===(n=JSON.parse(o))||void 0===n?void 0:n.value:t};return this.get("/organizations/provider-params/".concat(e.id),{headers:a})},n.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})},n.prototype.putCosts=function(t){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.put("/connections/costs",{costs:[t]})]})})},n.prototype.updateOrganizationStatus=function(){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.patch("/organizations/status")]})})},n.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}}:{})},n.prototype.getConnectionsByPaymentMethod=function(t,n){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n))]})})},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.postValidateStatusConnection=function(e){var t=e.payload,n={"x-account-code":e.accountCode};return this.post("/connections/validate-status",t,{headers:n})},n.prototype.postChangeStatusConnection=function(e){var t=e.payload,n=e.accountCode,o="/connections/change-status";if(t.status==rf)return delete t.status,this.delete(o,{data:t});Object.values(of).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(af[t.status]),delete t.status);var a={"x-account-code":n};return this.post(o,t,{headers:a})},n.prototype.postMultiConnection=function(e){var t=e.payload;return this.post("/connections/multi-accounts",t)},n.prototype.postMultiConnectionValidate=function(){return this.get("/connection/valid-accounts")},n.prototype.patchConnection=function(t){var n,o=t.payload,a=t.connectionCode,i=localStorage.getItem("account"),r=i?null===(n=JSON.parse(i).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(a),e.__assign({account_code:r},o))},n.prototype.postDefaultRoutes=function(e){var t=e.payload;return this.post("/connections/default-routes",t)},n.prototype.getDialogs=function(){return this.get("/dialogs")},n.prototype.getWebhookParamsV2=function(){return this.get("/accounts/webhooks-v2/params-catalog")},n.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}})},n.prototype.getWebhooksV2Detail=function(e){var t=e.accountCode;return this.get("/accounts/webhooks-v2/detail/".concat(t))},n.prototype.postWebhookV2MultiAccount=function(e){var t=e.payload;return this.post("/accounts/webhooks/multi-account",t)},n.prototype.deleteWebhookV2=function(e,t){return this.delete("/accounts/webhooks-v2/".concat(e,"/").concat(t))},n.prototype.updateWebhookV2=function(e,t,n){return this.patch("/accounts/webhooks-v2/".concat(e,"/").concat(n),t)},n.prototype.getMenu=function(){return this.get("/cms/menu")},n.prototype.postWebhookLogs=function(t){var n=t.payload,o=n.account_code,a=e.__rest(n,["account_code"]),i={account_codes:o};return this.post("/v2/webhooks/organization",i,{params:a,paramsSerializer:xd})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.prototype.postExportApiLogs=function(e){return this.post("/v1/api-logs/organization/export",e)},n.prototype.postApiLogs=function(t){var n=t.payload,o=n.account_code,a=e.__rest(n,["account_code"]),i={account_codes:o};return this.post("/v2/api-logs/organization",i,{params:a,paramsSerializer:xd})},n.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v2/api-logs/payment/".concat(e,"/details"))},n.prototype.useGetPaymentStatusesStyles=function(){return this.get("/cms/payment/statuses")},n.prototype.useGetTransactionStatusesStyles=function(){return this.get("/cms/transaction/statuses")},n.prototype.useGetReconciliationTransactionStatusesStyles=function(){return this.get("/cms/reconciliation/transaction/statuses")},n.prototype.useGetCountriesConfig=function(){return this.get("/country-data-api/v1/config")},n.prototype.useGetCountriesConfigV2=function(e){var t=e?{"accept-language":e}:{};return this.get("/country-data/v2/config",{params:t})},n.prototype.useGetTimeZoneCatalog=function(){return this.get("/cms/timezone/catalog")},n.prototype.useGetAuditLogsFilters=function(){return this.get("/cms/audit-logs-filters")},n.prototype.getDashboardStaticContents=function(){return this.get("/cms/static-contents")},n.prototype.getLocales=function(){return this.get("/cms/locales")},n.prototype.getSmartRoutingMethods=function(e){return this.get("/smart-routing/methods/".concat(e))},n.prototype.putSmartRoutingToggleMethod=function(e,t,n){return this.put("/smart-routing/methods/".concat(e,"/").concat(t),{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t){return this.get("/smart-routing/condition-types/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingConditionPaymentMethod=function(e,t){var n={"x-account-code":e};return this.get("/smart-routing/payment-methods/".concat(t,"/conditions"),{headers:n})},n.prototype.getSmartRoutingConditionTypesValues=function(e,t){return this.get("/smart-routing/condition-types-values/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingNextSteps=function(e,t,n){return this.get("/smart-routing/next-route/".concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t){return this.get("/smart-routing/workflow-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingWorkflow=function(e,t){return this.get("/smart-routing/workflow/".concat(e,"/").concat(t))},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t){return this.put("/smart-routing/update-workflow/".concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t){return this.put("/smart-routing/workflow/".concat(e,"/edit-name"),t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t){return this.post("/smart-routing/create-workflow/".concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n){var o={"x-organization-code":n};return this.post("/smart-routing/publish-version/".concat(e,"/").concat(t),{},{headers:o})},n.prototype.deleteSmartRoutingVersion=function(e,t){return this.delete("/smart-routing/delete-version/".concat(e,"/").concat(t))},n.prototype.postSmartRoutingDuplicateVersion=function(e,t){return this.post("/smart-routing/duplicate-version/".concat(e,"/").concat(t))},n.prototype.getSmartRoutingDeclinedGroup=function(e){return this.get("/smart-routing/declined-groups/".concat(e))},n.prototype.updateSmartRoutingDeclinedGroup=function(e,t,n){return this.put("/smart-routing/declined-groups/".concat(e,"/").concat(t),n)},n.prototype.createSmartRoutingDeclinedGroup=function(e,t){return this.post("/smart-routing/declined-groups/".concat(e),t)},n.prototype.getSmartRoutingPaymentRoute=function(e,t){return this.get("/smart-routing/payment-route/".concat(e,"/").concat(t))},n.prototype.updateSmartRoutingFavorite=function(e,t,n){return this.put("/smart-routing/favorite/".concat(e,"/").concat(t),{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e){return this.get("/smart-routing/condition-types-values-list/".concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n){return this.post("/smart-routing/simulate-transaction/".concat(e,"/").concat(t),n)},n.prototype.getSmartRoutingSearchConditionValues=function(e,t){return this.get("/smart-routing/search-condition-values/".concat(e,"/").concat(t))},n.prototype.getProviderConversionRatesData=function(){return this.get("/smart-routing/conversion-rates/all")},n.prototype.updateMonitorRedistribution=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/monitor-redistribution",t,{headers:n})},n.prototype.removeDeclinedGroup=function(e,t){var n={"x-organization-code":e};return this.delete("/smart-routing/declined-groups/".concat(t),{headers:n})},n.prototype.multiAccountDeclinedGroupCreate=function(e,t){var n={"x-organization-code":e};return this.post("/smart-routing/declined-groups/massive/create",t,{headers:n})},n.prototype.generateAIWorkflowRoutes=function(e,t){var n={"x-organization-code":e};return this.post("/ai/generate-route",t,{headers:n})},n.prototype.postAIGenerationFeedback=function(e){return this.post("/ai/generation-feedback",e)},n.prototype.getRoutingMonitorsTemplates=function(e){var t={"x-organization-code":e};return this.get("/routing-monitor/templates",{headers:t})},n.prototype.getRoutingMonitorsTemplate=function(e,t){var n={"x-organization-code":t};return this.get("/routing-monitor/template/".concat(e),{headers:n})},n.prototype.createMonitorThreshold=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/threshold",e,{headers:n})},n.prototype.createMonitorTemplate=function(e,t){var n={"x-organization-code":t};return this.post("/routing-monitor/template",e,{headers:n})},n.prototype.getSmartRoutingDataReport=function(e){return this.get("/data-report",{params:e})},n.prototype.getInsightsMetricsConversionRateV2=function(t,n){var o=t.account_code,a=t.connection_name,i=e.__rest(t,["account_code","connection_name"]),r=wf(o);return a&&(r.connection_name=a.split(",")),this.post("/insights/conversion-rate/".concat(n),r,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var o=t.account_code,a=e.__rest(t,["account_code"]);return this.post("/insights/conversion-rate/cards/metrics/".concat(n),wf(o),{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("/insights/conversion-rate/fallback",wf(n),{params:o})},n.prototype.getInsightsMetricsVolume=function(t,n){var o=n.connection_name,a=e.__rest(n,["connection_name"]),i={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/volume/metrics",i,{params:a})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var a=o.connection_name,i=e.__rest(o,["connection_name"]),r={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return a&&(r=e.__assign(e.__assign({},r),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/volume/".concat(n),r,{params:i})},n.prototype.getInsightsFraudScreeningVolumeAndCountTx=function(e,t){return this.post("/insights/fraud-screening/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsFraudScreeningConversionRate=function(e,t){return this.post("/insights/fraud-screening/conversion-rate",e,{params:t})},n.prototype.getInsights3dsVolumeAndCountTx=function(e,t){return this.post("/insights/3ds/volume-and-count-tx",e,{params:t})},n.prototype.getInsights3dsConversionRateAndEvolution=function(e,t){return this.post("/insights/3ds/conversion-rate-and-evolution",e,{params:t})},n.prototype.getInsights3dsDeclineReasons=function(e,t){return this.post("/insights/3ds/decline-reasons",e,{params:t})},n.prototype.getInsights3dsFrictionlessVsChallenge=function(e,t){return this.post("/insights/3ds/frictionless-vs-challenge",e,{params:t})},n.prototype.getInsightsChargebacksVolumeAndCountTx=function(e,t){return this.post("/insights/chargebacks/volume-and-count-tx",e,{params:t})},n.prototype.getInsightsChargebacksTotalRateAndEvolution=function(e,t){return this.post("/insights/chargebacks/total-rate-and-evolution",e,{params:t})},n.prototype.getInsightsChargebacksWinRate=function(e,t){return this.post("/insights/chargebacks/win-rate",e,{params:t})},n.prototype.getInsightsChargebacksDisputed=function(e,t){return this.post("/insights/chargebacks/disputed",e,{params:t})},n.prototype.getInsightsChargebacksByProviderAndCardBrand=function(e,t){return this.post("/insights/chargebacks/by-provider-and-card-brand",e,{params:t})},n.prototype.getInsightsChargebacksReasonsDistribution=function(e,t){return this.post("/insights/chargebacks/reasons-distribution",e,{params:t})},n.prototype.getInsightsChargebacksStatusDistribution=function(e,t){return this.post("/insights/chargebacks/status-distribution",e,{params:t})},n.prototype.getInsightsChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.getInsightOverview=function(t){var n=t.account_code,o=t.connection_name,a=e.__rest(t,["account_code","connection_name"]),i=wf(n);return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),this.post("/insights/overview",i,{params:a})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,a=t.connection_name,i=e.__rest(t,["account_code","connection_name"]),r=wf(o);return a&&(r=e.__assign(e.__assign({},r),{connection_name:null==a?void 0:a.split(",")})),this.post("/insights/overview/".concat(n),r,{params:i})},n.prototype.getInsighstHomeMetrics=function(e){return this.post("/insights/dashboard-home-metrics",e)},n.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})},n.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})},n.prototype.getCheckouts=function(e){var t=e.accountCode;return this.get("/checkouts/".concat(t))},n.prototype.getCheckoutTemplate=function(e){var t=e.accountCode;return this.get("/v2/checkouts/template/".concat(t))},n.prototype.getNameAndIcon=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/icon-name?type=").concat(n))},n.prototype.getRequiredFields=function(e){var t=e.paymentMethodType,n=e.type;return this.get("/checkouts/payment-methods/".concat(t,"/required-fields?type=").concat(n))},n.prototype.updateCheckoutTemplate=function(e){var t=e.accountCode,n=e.template;return this.post("/v2/checkouts/template",{account_code:t,template:n})},n.prototype.updateIsActiveCheckout=function(e){var t,n=localStorage.getItem("account"),o=n?null===(t=JSON.parse(n).value)||void 0===t?void 0:t.code:"";return this.patch("/checkouts/publish",e,{headers:{"x-account-code":o}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingTheme=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkouts/styling/theme",{headers:t})},n.prototype.updateStylingTheme=function(e){var t=e.accountCode,n=e.theme,o={"x-account-code":t};return this.patch("/checkouts/styling/theme",n,{headers:o})},n.prototype.getStylingSettings=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o={"x-account-code":t,"x-environment":void 0===n?"live":n};return this.get("/v1/checkouts/builder/settings",{headers:o})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload,i={"x-account-code":t,"x-environment":o,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",a,{headers:i})},n.prototype.emailVerification=function(e){return this.get("/user/email-verification/".concat(e))},n.prototype.createReconciliationsReportV2=function(e){return this.post("/v2/reports/create",e)},n.prototype.createReportV2=function(e){return this.post("/reports",e)},n.prototype.getTotalRowsForExport=function(e){return this.post("/reports/count",e)},n.prototype.reportsList=function(){return this.get("/reports")},n.prototype.reportsListMultiEnv=function(){return this.get("/reports/multi-environment")},n.prototype.downloadReports=function(e){return this.get("/reports-redirect/".concat(e))},n.prototype.cancelReport=function(e){return this.patch("/reports/".concat(e))},n.prototype.getReportTemplates=function(){return this.get("/reports/templates")},n.prototype.createReportTemplate=function(e){return this.post("/reports/templates",e)},n.prototype.updateReportTemplate=function(e){return this.put("/reports/templates",e)},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.getReportTemplatesList=function(e){return this.get("/template-reporting/report-templates",{params:{module:e.module}})},n.prototype.getReportTemplateById=function(e){return this.get("/template-reporting/report-templates/".concat(e))},n.prototype.createTemplateReporting=function(e){return this.post("/template-reporting/report-templates",e)},n.prototype.cloneReportTemplate=function(e,t){return this.post("/template-reporting/report-templates/".concat(e,"/clone"),t)},n.prototype.updateTemplateSelection=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/selection"),t)},n.prototype.changeTemplateStatus=function(e,t){return this.patch("/template-reporting/report-templates/".concat(e,"/status"),t)},n.prototype.deleteReportTemplate=function(e){return this.delete("/template-reporting/report-templates/".concat(e))},n.prototype.getReportSchedulesList=function(){return this.get("/template-reporting/report-schedules")},n.prototype.getReportScheduleById=function(e){return this.get("/template-reporting/report-schedules/".concat(e))},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.deactivateReportSchedule=function(e){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"))},n.prototype.deleteReportSchedule=function(e){return this.delete("/template-reporting/report-schedules/".concat(e))},n.prototype.getRefundPdf=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/refund-pdf/".concat(e),{headers:o})},n.prototype.getProofOfCancel=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-cancel"),{headers:o})},n.prototype.getProofOfPayment=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/transactions/".concat(e,"/proof-of-payment"),{headers:o})},n.prototype.getScheduledReport=function(e){return this.get("/scheduled-reports?reportType=".concat(e))},n.prototype.postScheduledReport=function(e){return this.post("/scheduled-reports",e)},n.prototype.updateScheduledReport=function(e,t){return this.patch("/scheduled-reports/".concat(e),t)},n.prototype.deleteScheduledReport=function(e){return this.delete("/scheduled-reports/".concat(e))},n.prototype.getProfile=function(){return this.get("/user")},n.prototype.getUserFull=function(){return this.get("/user-full")},n.prototype.getImpersonationUsers=function(){return this.get("/impersonation/user")},n.prototype.getImpersonationEnabled=function(){return this.get("/impersonation/enabled")},n.prototype.getUsersToImpersonate=function(t,n,o,a,i){void 0===o&&(o=1),void 0===a&&(a=10);var r=e.__assign({account_codes:n||[],page:o,page_size:a},i&&{search_value:i});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),r)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.updateProfile=function(e){return this.patch("/user",e)},n.prototype.inviteUsersMassive=function(e,t){var n={"x-organization-code":t};return this.post("user/invite/massive",e,{headers:n})},n.prototype.unInviteUsersV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/user/uninvite/".concat(t),{headers:n})},n.prototype.getAccounts=function(e){var t={"x-organization-code":e};return this.get("/accounts-user",{headers:t})},n.prototype.getAccountsV2=function(){return this.get("/accounts-user")},n.prototype.getAccountsByUser=function(e){return this.get("/accounts-user/user/".concat(e))},n.prototype.putAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.put("/accounts-user/role/massive/user/".concat(t),n,{headers:o})},n.prototype.deleteAccountsUserMassive=function(e,t,n){var o={"x-organization-code":e};return this.delete("/accounts-user/role/massive/user/".concat(t),{data:n,headers:o})},n.prototype.postAccount=function(e,t){return this.post("/accounts",{name:e,principal:t})},n.prototype.patchAccountV2=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/with-principal",{name:t,principal:o},{headers:{"x-account-code":n}})},n.prototype.putAccountPrincipal=function(e){var t=e.account_code;return this.put("/user-accounts/principal",{account_code:t})},n.prototype.getMergedNotifications=function(){return this.get("/notifications-all")},n.prototype.getNotificationsCustomer=function(e){return this.get("/notifications/".concat(e))},n.prototype.getValidateOpsgenieKey=function(e){return this.get("/notifications/opsgenie/validate/".concat(e))},n.prototype.postSlackMessageChannel=function(e){return this.post("/slack-channel-message",e)},n.prototype.pathNotification=function(e){return this.patch("/notifications",e)},n.prototype.getNotificationsNumber=function(e){return this.get("/notifications/".concat(e,"/number"))},n.prototype.teamsFiltersMembers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/teams/filters/members",{headers:t})},n.prototype.postMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,email:o,page:a,page_size:i},{headers:r})},n.prototype.getRoles=function(){return this.get("/teams/roles")},n.prototype.setCustodian=function(){return this.post("/teams/custodian")},n.prototype.deleteUserTeamV2=function(e){var t=e.userCode,n={"x-organization-code":e.organizationCode};return this.delete("/v2/teams/".concat(t),{headers:n})},n.prototype.createRoles=function(e,t){return this.post("/teams/roles",e,{headers:{"x-account-code":t}})},n.prototype.editRoles=function(e,t){var n=e.payload,o=e.id;return this.patch("/teams/roles/".concat(o),n,{headers:{"x-account-code":t}})},n.prototype.deleteRoles=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getRolesPermissions=function(){return this.get("/teams/permissions")},n.prototype.getFeatureFlagId=function(t){var n=t.name,o=e.__rest(t,["name"]);return this.post("/feature-flags/evaluate",{name:n,parameters:o})},n.prototype.getFeatureFlagIdAll=function(t){var n=t.accountCode;return e.__awaiter(this,void 0,void 0,function(){var t,o;return e.__generator(this,function(e){switch(e.label){case 0:return[4,this.get("/feature-flags/names",n?{headers:{"x-account-code":n}}:{})];case 1:return t=e.sent(),o={},t.data.feature_flag_names.forEach(function(e){o[e]=!0}),[2,{data:o,status:200,statusText:"OK",headers:{},config:{}}]}})})},n.prototype.getPermissionsCatalog=function(){return this.get("/teams/permissions-catalog")},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.getCardBrands=function(){return this.get("/catalog/card-brands")},n.prototype.getPaymentFilters=function(e){return this.get("/payments/filters?section=".concat(e))},n.prototype.getPaymentMetricsFilters=function(){return this.get("/payments/metrics/filters")},n.prototype.sendPaymentNotification=function(e,t){return this.post("/payments/".concat(e.paymentCode,"/transactions/").concat(e.transactionCode,"/settle"),t)},n.prototype.postAuditMonitors=function(e){return this.post("/routing-monitor/audit",e)},n.prototype.getAuditMonitorDetail=function(e){return this.get("/routing-monitor/audit-monitors-details/".concat(e))},n.prototype.getAuditEvents=function(t){var n=t.account_code,o=e.__rest(t,["account_code"]);return this.post("v2/events/organization",{account_codes:n},{params:o,paramsSerializer:xd})},n.prototype.getPaymentLinks=function(e,t){return this.get("/v2/payment-links/".concat(t),{params:e})},n.prototype.getPaymentLinksByCode=function(e){return this.get("/v2/payment-links/by-code/".concat(e))},n.prototype.postPaymentLinks=function(e){var t=e.payload,n=e.accountCode;return this.post("/v2/payment-links/".concat(n),t)},n.prototype.patchPaymentLinks=function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return this.patch("/v2/payment-links/".concat(n,"/").concat(o),t)},n.prototype.postDeletePaymentLink=function(e){var t=e.code;return this.post("/v2/payment-links/cancel/".concat(t))},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.firebaseUserSubscribe=function(e){return this.post("/firebase/user/subscribe",e)},n.prototype.postUserSettings=function(e){return this.patch("/user-settings",e)},n.prototype.postUserSettingsTables=function(e,t){return this.patch("/user-settings/".concat(t),e)},n.prototype.postUserSettingsPinned=function(e){return this.patch("/user-settings/pinned_sections",e)},n.prototype.postUserThemeSettings=function(e){return this.patch("/user-settings/theme",e)},n.prototype.getMfaTokenValidation=function(e,t){return this.post("/mfa/token",{password:e,otp_input:t,user_code:""})},n.prototype.getEmailOtp=function(){return this.post("/mfa/send-otp",{})},n.prototype.confirmMfaOtp=function(e){return this.post("/mfa/confirm/otp",e)},n.prototype.unrollMfa=function(e){return this.post("/mfa/unroll/otp",{password:e})},n.prototype.sendOTPForMFA=function(){return this.post("/mfa/send-otp")},n.prototype.getConfigAllowlist=function(e){var t={"x-account-code":e};return this.get("/yuno-fraud-screening-int/allow-lists/config",{headers:t})},n.prototype.getBlackListType=function(e){var t={"x-account-code":e};return this.get("/blacklist",{headers:t})},n.prototype.postBlockList=function(e,t,n,o){var a={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",a)},n.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}}:{})},n.prototype.getBlacklistDetail=function(e,t,n,o,a){void 0===n&&(n=26),void 0===o&&(o=null),void 0===a&&(a=null);var i="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return a&&(null==a?void 0:a.length)>0&&(i+="&search=".concat(a)),this.get(i,o?{headers:{"x-account-code":o}}:{})},n.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}}:{})},n.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}})},n.prototype.postGetAllowlist=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/pageable",t)},n.prototype.postCreateAllowlistMultiAccount=function(e){var t=e.payload;return this.post("/yuno-fraud-screening-int/allow-lists/massive",t)},n.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}})},n.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})},n.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}})},n.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})},n.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}})},n.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}})},n.prototype.postBlackListMultiAccount=function(e){var t=e.payload;return this.post("/blacklist/create/multi-account",t,t.account&&{headers:{"x-account-code":t.account}})},n.prototype.putBlackListType=function(e){return this.put("/blacklist/edit",e)},n.prototype.changeBlackListStatus=function(e){return this.put("/blacklist/change-status",e)},n.prototype.changeBlackListStatusItem=function(e){return this.put("/blacklist/change-item-status",e)},n.prototype.postBlackListItems=function(e){var t=e.payload;return this.post("/blacklist/items",t)},n.prototype.postBlackListBatch=function(e){var t=e.blacklist_code,n=e.expiration_days,o=e.file,a=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){a(e.total?Math.round(100*e.loaded/e.total):0)}})},n.prototype.deleteBlackListType=function(e){var t=e.black_list_code;return this.delete("/blacklist/delete/".concat(t))},n.prototype.deleteBlockListItem=function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return this.delete("/blacklist/".concat(t,"/items/").concat(n),{headers:{"x-account-code":o}})},n.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}})},n.prototype.getVelocityRules=function(t){return this.post("/yuno-fraud-screening-int/velocity-rules-list",e.__assign({},t))},n.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})},n.prototype.uploadFileS3ClientBatchRefunds=function(e){var t=e.payload,n=e.handleSetProgress,o=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:o.token}),cancel:function(){return o.cancel()}}},n.prototype.uploadFileS3ClientChargeBacks=function(e){var t=e.payload,n=e.handleSetProgress,o=this.getCancelTokenSource();return{promise:this.post("/chargebacks/upload-s3-file",t,{cancelToken:o.token,onUploadProgress:function(e){null==n||n(e.total?Math.round(100*e.loaded/e.total):0)}}),cancel:function(){return o.cancel()}}},n.prototype.batchRefundByFile=function(t){var n=t.payload;return this.post("/batch-refund-by-file",e.__assign({},n))},n.prototype.uploadBatchRefundsV2=function(t){var n=t.payload;return this.post("/batch-refunds",e.__assign({},n))},n.prototype.getBatchRefunds=function(e,t){return this.get("/batch-refunds?limit=".concat(e,"&offset=").concat(t))},n.prototype.getBatchRefundProcessedFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/processed-file-download"),{headers:o})},n.prototype.getBatchRefundUserFileDownload=function(e,t,n){var o={"x-organization-code":t,"x-account-code":n};return this.get("/batch-refunds/".concat(e,"/user-file-download"),{headers:o})},n.prototype.getMFAConfig=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/config",{headers:t})},n.prototype.getMFAExcludedUsers=function(e){var t={"x-organization-code":e.organizationCode};return this.get("/organization-settings/mfa/excluded-users",{headers:t})},n.prototype.getMFAEnforcementStatus=function(){return this.get("/mfa/enforcement-status")},n.prototype.updateMFAConfig=function(e,t){return this.post("/organization-settings/mfa/config",e,{headers:{"x-organization-code":t}})},n.prototype.mfaExcludeUsers=function(e,t){return this.post("/organization-settings/mfa/exclude-users",e,{headers:{"x-organization-code":t}})},n.prototype.getAllConfigRules=function(){return this.get("/yuno-fraud-screening-int/velocity-rules/config/all")},n.prototype.getConditionalConfigRules=function(e){return this.get("/yuno-fraud-screening-int/velocity-rules/config/conditional/".concat(e))},n.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}})},n.prototype.postCreateRuleMultiAccount=function(e,t){return this.post("/yuno-fraud-screening-int/velocity-rules/multi-account",e,{headers:{"x-account-code":t}})},n.prototype.postEditRule=function(e,t,n){return this.patch("/yuno-fraud-screening-int/velocity-rules/".concat(t),e,{headers:{"x-account-code":n}})},n.prototype.postApiKeysRoll=function(e,t,n){return this.post("/credentials-manager/v1/keys/roll/".concat(t),e,{headers:{"x-password":n}})},n.prototype.patchApiKeysEditNote=function(e,t){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e)},n.prototype.getCustomizedApiKeysMembers=function(){return this.get("/organization-user/resources/users/customized-keys")},n.prototype.getCustomizedApiKeysAccounts=function(){return this.get("/organization-user/resources/accounts/customized-keys")},n.prototype.postCreateCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys",e)},n.prototype.pathCreateCustomizedApiKeys=function(e,t){return this.patch("/credentials-manager/key/".concat(t),e)},n.prototype.postCustomizedApiKeys=function(e){return this.post("/credentials-manager/keys/retrieve",{account_codes:e})},n.prototype.getCustomizedApiKeysProducts=function(){return this.get("/credentials-manager/product-list")},n.prototype.getCustomizedApiKeysToken=function(e,t){return this.get("/credentials-manager/keys/show-token/".concat(e),{headers:{"x-password":t}})},n.prototype.validatePasswordStatus=function(){return this.get("/validate-password-status")},n.prototype.deleteCustomizedApiKeys=function(e){return this.delete("/credentials-manager/key/".concat(e))},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(sf[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(sf[null==e?void 0:e.type],"/export");return this.post(t,e)},n.prototype.getInsightsReport=function(e){return this.get("/insights/conversion-rate/exports/".concat(null==e?void 0:e.type,"/by-user"))},n.prototype.getInsightsReportAgain=function(e){return this.get("/insights/conversion-rate/exports/".concat(e.code))},n.prototype.createUserAuth0=function(e){return this.post("/user/auth0",e)},n.prototype.getSamlConfig=function(){return this.get("/saml-config")},n.prototype.createSamlConfig=function(e){return this.post("/saml-config",e)},n.prototype.updateSamlConfig=function(e){return this.patch("/saml-config",e)},n.prototype.deleteSamlConfig=function(){return this.delete("/saml-config")},n.prototype.postCall=function(e){return this.post("/ai-agent-caller/demo",e)},n.prototype.getLoginMethods=function(){return this.get("/organization/login-methods")},n.prototype.changeLoginMethods=function(e){return this.patch("/organization/login-methods/".concat(e.methodCode),{enabled:e.enabled})},n.prototype.postValidateCredentials=function(e){var t=e.payload;return this.post("/connections/validate-credentials",t)},n.prototype.getInsightsConversionRateOverview=function(e,t){return this.post("/v3/insights/conversion-rate/overview",e,{params:t})},n.prototype.getInsightsConversionRateOverviewFraud3ds=function(e,t){return this.post("/v3/insights/conversion-rate/overview-fraud-3ds",e,{params:t})},n.prototype.getConversionRateChargebacksByCardBrand=function(e,t){return this.post("/insights/chargebacks/by-card-brand",e,{params:t})},n.prototype.get3DSExemptions=function(){return this.get("/routing/3ds-exemptions")},n.prototype.getNetworkTokensOnboarding=function(){return this.get("/network-tokens/onboarding")},n.prototype.getNetworkTokensOnboardingByOrganization=function(e){return this.get("network-tokens/organization/onboarding/".concat(e))},n.prototype.postNetworkTokensOnboarding=function(e,t){return this.post("/network-tokens/organization/onboarding/".concat(t),e)},n.prototype.createChartGPTChart=function(e){return this.post("/data-assistant/charts",e)},n.prototype.deleteChartGPTChart=function(e){return this.delete("/data-assistant/charts/".concat(e))},n.prototype.getChartById=function(e){return this.get("/data-assistant/charts/".concat(e))},n.prototype.patchChartGPTChart=function(e,t){return this.patch("/data-assistant/charts/".concat(e),t)},n.prototype.executeChartGPTChart=function(e){return void 0===e&&(e=""),this.get("/data-assistant/charts/".concat(e,"/execute"))},n.prototype.getChartsByUser=function(){return this.get("/data-assistant/user/charts")},n.prototype.getLanguages=function(){return this.get("/languages")},n.prototype.getTranslations=function(e){return this.get("/translations?language=".concat(e))},n.prototype.getCommunications=function(e){return this.post("/communications",e)},n.prototype.getCommunicationsFilters=function(){return this.get("/communications/filters")},n.prototype.getCommunicationDetails=function(e,t){var n={"x-account-code":t};return this.get("/communications/".concat(e,"/details"),{headers:n})},n}(kd),Ef={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},Cf=function(t){function n(e){return t.call(this,e)||this}return e.__extends(n,t),n.refreshInstance=function(t){var o;return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:Ef["BFF_URL_".concat(Ef.ENVIRONMENT)]})),null===(o=this.classInstance.instance.interceptors)||void 0===o||o.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},n.getInstance=function(t){var o,a;if(this.classInstance){var i=localStorage.getItem("account");if(i){var r=null===(a=null===(o=JSON.parse(i))||void 0===o?void 0:o.value)||void 0===a?void 0:a.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 n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||Ef["BFF_URL_".concat(Ef.ENVIRONMENT)]})),this.classInstance},n.setMode=function(t){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return this.classInstance.instance.interceptors.request.use(function(e){return e.headers&&(e.headers["X-Environment"]=t),e},function(e){return Promise.reject(e)}),[2]})})},n}(_f);class Sf{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 Rf="undefined"==typeof window||"Deno"in window;function Tf(){}function Af(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 Of(e,t,n){return Wf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Pf(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:i,queryKey:r,stale:s}=e;if(Wf(r))if(o){if(t.queryHash!==Df(r,t.options))return!1}else if(!qf(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===a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function Lf(e,t){const{exact:n,fetching:o,predicate:a,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(!qf(t.options.mutationKey,i))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(a&&!a(t))}function Df(e,t){return((null==t?void 0:t.queryKeyHashFn)||zf)(e)}function zf(e){return JSON.stringify(e,(e,t)=>Ff(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function qf(e,t){return Mf(e,t)}function Mf(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!Mf(e[n],t[n])))}function Nf(e,t){if(e===t)return e;const n=Uf(e)&&Uf(t);if(n||Ff(e)&&Ff(t)){const o=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,r=n?[]:{};let s=0;for(let o=0;o<i;o++){const i=n?o:a[o];r[i]=Nf(e[i],t[i]),r[i]===e[i]&&s++}return o===i&&s===o?e:r}return t}function Bf(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Uf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ff(e){if(!Gf(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Gf(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Gf(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wf(e){return Array.isArray(e)}function Vf(e){return new Promise(t=>{setTimeout(t,e)})}function Hf(e){Vf(0).then(e)}function Kf(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 Sf{constructor(){super(),this.setup=e=>{if(!Rf&&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)}},Qf=["online","offline"];const Jf=new class extends Sf{constructor(){super(),this.setup=e=>{if(!Rf&&window.addEventListener){const t=()=>e();return Qf.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Qf.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 Xf(e){return Math.min(1e3*2**e,3e4)}function Yf(e){return"online"!==(null!=e?e:"online")||Jf.isOnline()}class Zf{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function eg(e){return e instanceof Zf}function tg(e){let t,n,o,a=!1,i=0,r=!1;const s=new Promise((e,t)=>{n=e,o=t}),c=()=>!$f.isFocused()||"always"!==e.networkMode&&!Jf.isOnline(),u=o=>{r||(r=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{r||(r=!0,null==e.onError||e.onError(n),null==t||t(),o(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,o;if(r)return;const s=null!=(n=e.retry)?n:3,u=null!=(o=e.retryDelay)?o:Xf,m="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!a&&h?(i++,null==e.onFail||e.onFail(i,t),Vf(m).then(()=>{if(c())return p()}).then(()=>{a?l(t):d()})):l(t)})};return Yf(e.networkMode)?d():p().then(d),{promise:s,cancel:t=>{r||(l(new Zf(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}const ng=console;const og=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):Hf(()=>{n(o)})},i=()=>{const t=e;e=[],t.length&&Hf(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class ag{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Af(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Rf?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ig 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||ng,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,o=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=o?o: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=Kf(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(Tf).catch(Tf):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,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.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==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const l=e=>{var t,n,o,a;(eg(e)&&e.silent||this.dispatch({type:"error",error:e}),eg(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(a=this.cache.config).onSettled)||o.call(a,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=tg({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,o,a;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==(o=(a=this.cache.config).onSettled)||o.call(a,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,o;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:Yf(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(o=e.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return eg(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),og.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class rg extends Sf{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const a=t.queryKey,i=null!=(o=t.queryHash)?o:Df(a,t);let r=this.get(i);return r||(r=new ig({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),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(){og.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Of(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Pf(n,e))}findAll(e,t){const[n]=Of(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Pf(n,e)):this.queries}notify(e){og.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){og.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){og.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class sg extends ag{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ng,this.observers=[],this.state=e.state||cg(),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=tg({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,o,a,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=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,h,this.state.variables,this.state.context,this)),await(null==(a=(i=this.options).onSuccess)?void 0:a.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:!Yf(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),og.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function cg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class ug extends Sf{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new sg({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(o),o}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(){og.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=>Lf(e,t))}findAll(e){return this.mutations.filter(t=>Lf(e,t))}notify(e){og.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 og.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Tf)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function lg(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,a,i,r;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(o=e.fetchOptions)||null==(a=o.meta)?void 0:a.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,o)=>(h=o?[t,...h]:[...h,t],o?[n,...e]:[...e,n]),v=(t,n,o,a)=>{if(f)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:o,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,o,e,a))};let b;if(d.length)if(l){const t=void 0!==u,n=t?u:pg(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(o=>{if(!s||!d[n]||s(d[n],n,d)){const a=t?m[n]:pg(e.options,o);return v(o,t,a)}return Promise.resolve(y(o,m[n],d[n]))})}else b=v([]);var x,k;const w=b.then(e=>({pages:e,pageParams:h}));return w}}}}function pg(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class dg extends Sf{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),mg(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hg(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hg(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,o=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"),Bf(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 a=this.hasListeners();a&&fg(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===o&&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(!Bf(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(Tf)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Rf||this.currentResult.isStale||!Af(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,!Rf&&!1!==this.options.enabled&&Af(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,o=this.options,a=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 a=this.hasListeners(),i=!a&&mg(e,t),r=a&&fg(e,n,t,o);(i||r)&&(f=Yf(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(a&&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=Kf(null==a?void 0:a.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!=a&&a.isPlaceholderData&&t.placeholderData===(null==r?void 0:r.placeholderData))e=a.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=Kf(null==a?void 0:a.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:gg(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,Bf(n,t))return;this.currentResult=n;const o={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 o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&o.has(n)})})()&&(o.listeners=!0),this.notify({...o,...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||eg(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){og.batch(()=>{var t,n,o,a;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(a=this.options).onSettled)||o.call(a,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 mg(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&&hg(e,t,t.refetchOnMount)}function hg(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&gg(e,t)}return!1}function fg(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&gg(e,n)}function gg(e,t){return e.isStaleByTime(t.staleTime)}class yg extends Sf{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),Bf(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){og.batch(()=>{var t,n,o,a;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==(o=(a=this.mutateOptions).onSettled)||o.call(a,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 vg,bg={exports:{}},xg={};var kg,wg={};
50
50
  /**
51
51
  * @license React
52
52
  * use-sync-external-store-shim.development.js
@@ -55,7 +55,7 @@ function Ka(e){const t=Ha.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=h,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,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}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 a(function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})},[e,s,t]),o(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 o=t();return!n(e,o)}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=h,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=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=o({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]),a(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=g.createContext(void 0),Cg=g.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=g.useContext(Sg(e,g.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:o=!1})=>{g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Sg(n,o);return g.createElement(Cg.Provider,{value:!n&&o},g.createElement(a.Provider,{value:e},t))},Ag=g.createContext(!1);Ag.Provider;const Ig=g.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function jg(e,t){return"function"==typeof e?e(...t):!!e}function Og(e,t){const n=Rg({context:e.context}),o=g.useContext(Ag),a=g.useContext(Ig),i=n.defaultQueryOptions(e);i._optimisticResults=o?"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,a),(e=>{g.useEffect(()=>{e.clearReset()},[e])})(a);const[r]=g.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(_g(g.useCallback(e=>{const t=o?()=>{}:r.subscribe(ng.batchCalls(e));return r.updateResult(),t},[r,o]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),g.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,o))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,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&jg(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pg(e,t,n){return Og(If(e,t,n),pg)}function Lg(e,t,n){const o=function(e,t,n){return Gf(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Rg({context:o.context}),[i]=g.useState(()=>new gg(a,o));g.useEffect(()=>{i.setOptions(o)},[i,o]);const r=_g(g.useCallback(e=>i.subscribe(ng.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=g.useCallback((e,t)=>{i.mutate(e,t).catch(Dg)},[i]);if(r.error&&jg(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function Dg(){}var zg=new ig({}),qg=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=Kf.subscribe(()=>{Kf.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]=jf(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 o=If(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=If(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...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]=jf(e,t),o=this.queryCache;ng.batch(()=>{o.findAll(n).forEach(e=>{o.remove(e)})})}resetQueries(e,t,n){const[o,a]=jf(e,t,n),i=this.queryCache,r={type:"active",...o};return ng.batch(()=>(i.findAll(o).forEach(e=>{e.reset()}),this.refetchQueries(r,a)))}cancelQueries(e,t,n){const[o,a={}]=jf(e,t,n);void 0===a.revert&&(a.revert=!0);const i=ng.batch(()=>this.queryCache.findAll(o).map(e=>e.cancel(a)));return Promise.all(i).then(Rf).catch(Rf)}invalidateQueries(e,t,n){const[o,a]=jf(e,t,n);return ng.batch(()=>{var e,t;if(this.queryCache.findAll(o).forEach(e=>{e.invalidate()}),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)})}refetchQueries(e,t,n){const[o,a]=jf(e,t,n),i=ng.batch(()=>this.queryCache.findAll(o).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}));let r=Promise.all(i).then(Rf);return null!=a&&a.throwOnError||(r=r.catch(Rf)),r}fetchQuery(e,t,n){const o=If(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rf).catch(Rf)}fetchInfiniteQuery(e,t,n){const o=If(e,t,n);return o.behavior=ug(),this.fetchQuery(o)}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=>Df(e)===Df(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>zf(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>zf(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=>Df(e)===Df(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>zf(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>zf(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:zg});var Mg=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=h.useState(t&&JSON.parse(t)),o=n[0],a=n[1];return h.useEffect(function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};var Ng=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Bg=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]};var Ug={key:"metadata_fields",name:"metadata_fields"};function Fg(){return Fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fg.apply(this,arguments)}
58
+ */"production"===process.env.NODE_ENV?bg.exports=function(){if(vg)return xg;vg=1;var e=h,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,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}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 a(function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})},[e,s,t]),o(function(){return r(u)&&l({inst:u}),e(function(){r(u)&&l({inst:u})})},[e]),i(s),s};return xg.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,xg}():bg.exports=(kg||(kg=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}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=h,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=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=o({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]),a(function(){return e(m)&&h({inst:m}),u(function(){e(m)&&h({inst:m})})},[u]),r(p),p};wg.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())}()),wg);var _g=bg.exports;const Eg=_g.useSyncExternalStore,Cg=g.createContext(void 0),Sg=g.createContext(!1);function Rg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cg),window.ReactQueryClientContext):Cg)}const Tg=({context:e}={})=>{const t=g.useContext(Rg(e,g.useContext(Sg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ag=({client:e,children:t,context:n,contextSharing:o=!1})=>{g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Rg(n,o);return g.createElement(Sg.Provider,{value:!n&&o},g.createElement(a.Provider,{value:e},t))},Ig=g.createContext(!1);Ig.Provider;const jg=g.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Og(e,t){return"function"==typeof e?e(...t):!!e}function Pg(e,t){const n=Tg({context:e.context}),o=g.useContext(Ig),a=g.useContext(jg),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=og.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=og.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=og.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,a),(e=>{g.useEffect(()=>{e.clearReset()},[e])})(a);const[r]=g.useState(()=>new t(n,i)),s=r.getOptimisticResult(i);if(Eg(g.useCallback(e=>{const t=o?()=>{}:r.subscribe(og.batchCalls(e));return r.updateResult(),t},[r,o]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),g.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,o))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,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&Og(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Lg(e,t,n){return Pg(jf(e,t,n),dg)}function Dg(e,t,n){const o=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),a=Tg({context:o.context}),[i]=g.useState(()=>new yg(a,o));g.useEffect(()=>{i.setOptions(o)},[i,o]);const r=Eg(g.useCallback(e=>i.subscribe(og.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=g.useCallback((e,t)=>{i.mutate(e,t).catch(zg)},[i]);if(r.error&&Og(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function zg(){}var qg=new rg({}),Mg=new class{constructor(e={}){this.queryCache=e.queryCache||new rg,this.mutationCache=e.mutationCache||new ug,this.logger=e.logger||ng,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=Jf.subscribe(()=>{Jf.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]=Of(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 o=jf(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=jf(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return og.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]=Of(e,t),o=this.queryCache;og.batch(()=>{o.findAll(n).forEach(e=>{o.remove(e)})})}resetQueries(e,t,n){const[o,a]=Of(e,t,n),i=this.queryCache,r={type:"active",...o};return og.batch(()=>(i.findAll(o).forEach(e=>{e.reset()}),this.refetchQueries(r,a)))}cancelQueries(e,t,n){const[o,a={}]=Of(e,t,n);void 0===a.revert&&(a.revert=!0);const i=og.batch(()=>this.queryCache.findAll(o).map(e=>e.cancel(a)));return Promise.all(i).then(Tf).catch(Tf)}invalidateQueries(e,t,n){const[o,a]=Of(e,t,n);return og.batch(()=>{var e,t;if(this.queryCache.findAll(o).forEach(e=>{e.invalidate()}),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)})}refetchQueries(e,t,n){const[o,a]=Of(e,t,n),i=og.batch(()=>this.queryCache.findAll(o).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}));let r=Promise.all(i).then(Tf);return null!=a&&a.throwOnError||(r=r.catch(Tf)),r}fetchQuery(e,t,n){const o=jf(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Tf).catch(Tf)}fetchInfiniteQuery(e,t,n){const o=jf(e,t,n);return o.behavior=lg(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Tf).catch(Tf)}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=>qf(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>qf(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=>qf(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>qf(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=Df(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:qg});var Ng=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=h.useState(t&&JSON.parse(t)),o=n[0],a=n[1];return h.useEffect(function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};var Bg=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Ug=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]};var Fg={key:"metadata_fields",name:"metadata_fields"};function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Gg.apply(this,arguments)}
59
59
  /**
60
60
  * match-sorter-utils
61
61
  *
@@ -65,12 +65,12 @@ function Ka(e){const t=Ha.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
65
65
  * LICENSE.md file in the root directory of this source tree.
66
66
  *
67
67
  * @license MIT
68
- */const Gg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Wg=Object.keys(Gg).join("|"),Vg=new RegExp(Wg,"g");
68
+ */const Wg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Vg=Object.keys(Wg).join("|"),Hg=new RegExp(Vg,"g");
69
69
  /**
70
70
  * @name match-sorter
71
71
  * @license MIT license.
72
72
  * @copyright (c) 2099 Kent C. Dodds
73
73
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
74
74
  */
75
- const Hg=7,Kg=6,$g=5,Qg=4,Jg=3,Xg=2,Yg=1,Zg=0;function ey(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Yg,!n.accessors){const o=ty(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=iy(a),r=oy(e,a);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Zg,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=ty(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=Yg?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function ty(e,t,n){return e=ny(e,n),(t=ny(t,n)).length>e.length?Zg:e===t?Hg:(e=e.toLowerCase())===(t=t.toLowerCase())?Kg:e.startsWith(t)?$g:e.includes(` ${t}`)?Qg:e.includes(t)?Jg:1===t.length?Zg:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?Xg:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return Yg+a*o}const r=a(t[0],e,0);if(r<0)return Zg;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Zg}const s=o-r;return i(s)}(e,t)}function ny(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Vg,e=>Gg[e])),e}function oy(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const ay={maxRanking:1/0,minRanking:-1/0};function iy(e){return"function"==typeof e?ay:{...ay,...e}}function ry(e,t){const[n,o]=g.useState();g.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,g.useCallback(t=>{o(n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o})},[e])]}var sy,cy=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),uy=function(){function e(e){this.generateIdentifier=e,this.kv=new cy}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),ly=(sy=function(e,t){return sy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},sy(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}sy(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),py=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return ly(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(uy),dy=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function my(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function hy(e,t){Object.entries(e).forEach(function(e){var n=dy(e,2),o=n[0],a=n[1];return t(a,o)})}function fy(e,t){return-1!==e.indexOf(t)}function gy(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var yy=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return my(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),vy=function(e){return void 0===e},by=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},xy=function(e){return by(e)&&0===Object.keys(e).length},ky=function(e){return Array.isArray(e)},wy=function(e){return e instanceof Map},_y=function(e){return e instanceof Set},Ey=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Cy=function(e){return"number"==typeof e&&isNaN(e)},Sy=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||vy(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Ey(e)},Ry=function(e){return e.replace(/\./g,"\\.")},Ty=function(e){return e.map(String).map(Ry).join(".")},Ay=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},Iy=function(){return Iy=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Iy.apply(this,arguments)},jy=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Oy=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Py(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Ly=[Py(vy,"undefined",function(){return null},function(){}),Py(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),Py(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Py(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),Py(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Py(_y,"set",function(e){return Oy([],jy(e.values()))},function(e){return new Set(e)}),Py(wy,"map",function(e){return Oy([],jy(e.entries()))},function(e){return new Map(e)}),Py(function(e){return Cy(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return Cy(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Py(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),Py(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Dy(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var zy=Dy(function(e,t){return!!Ey(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),qy=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),My=Dy(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return Oy([],jy(e))},function(e,t){var n=qy[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Ny(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var By=Dy(Ny,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Iy({},e);var o={};return n.forEach(function(t){o[t]=e[t]}),o},function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)}),Uy=Dy(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Fy=[By,zy,Uy,My],Gy=function(e,t){var n=gy(Fy,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=gy(Ly,function(n){return n.isApplicable(e,t)});return o?{value:o.transform(e,t),type:o.annotation}:void 0},Wy={};Ly.forEach(function(e){Wy[e.annotation]=e});var Vy=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Hy(e){if(fy(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(fy(e,"prototype"))throw new Error("prototype is not allowed as a property");if(fy(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Ky=function(e,t,n){if(Hy(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(ky(o))o=o[+i];else if(by(o))o=o[i];else if(_y(o)){o=Vy(o,r=+i)}else if(wy(o)){if(a===t.length-2)break;var r=+i,s=0===+t[++a]?"key":"value",c=Vy(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(ky(o)?o[+u]=n(o[+u]):by(o)&&(o[u]=n(o[u])),_y(o)){var l=Vy(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(wy(o)){r=+t[t.length-2];var d=Vy(o,r);switch(s=0===+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},$y=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Qy=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Jy(e,t,n){if(void 0===n&&(n=[]),e)if(ky(e)){var o=$y(e,2),a=o[0],i=o[1];i&&hy(i,function(e,o){Jy(e,t,Qy(Qy([],$y(n)),$y(Ay(o))))}),t(a,n)}else hy(e,function(e,o){return Jy(e,t,Qy(Qy([],$y(n)),$y(Ay(o))))})}function Xy(e,t,n){return Jy(t,function(t,o){e=Ky(e,o,function(e){return function(e,t,n){if(!ky(t)){var o=Wy[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return zy.untransform(e,t,n);case"class":return By.untransform(e,t,n);case"custom":return Uy.untransform(e,t,n);case"typed-array":return My.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function Yy(e,t){function n(t,n){var o=function(e,t){Hy(t);for(var n=0;n<t.length;n++){var o=t[n];if(_y(e))e=Vy(e,+o);else if(wy(e)){var a=+o,i=0===+t[++n]?"key":"value",r=Vy(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,Ay(n));t.map(Ay).forEach(function(t){e=Ky(e,t,function(){return o})})}if(ky(t)){var o=$y(t,2),a=o[0],i=o[1];a.forEach(function(t){e=Ky(e,Ay(t),function(){return e})}),i&&hy(i,n)}else hy(t,n);return e}var Zy=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=Sy(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return by(e)||ky(e)||wy(e)||_y(e)||Ny(e,t)}(e,n)){var l=Gy(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(fy(i,e))return{transformedValue:null};var d=Gy(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=ky(m)?[]:{},f={};hy(m,function(s,c){var u=Zy(s,t,n,o,Qy(Qy([],$y(a)),[c]),Qy(Qy([],$y(i)),[e]),r);h[c]=u.transformedValue,ky(u.annotations)?f[c]=u.annotations:by(u.annotations)&&hy(u.annotations,function(e,t){f[Ry(c)+"."+t]=e})});var g=xy(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function ev(e){return Object.prototype.toString.call(e).slice(8,-1)}function tv(e){return"Array"===ev(e)}function nv(e,t={}){if(tv(e))return e.map(e=>nv(e,t));if(!function(e){if("Object"!==ev(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,o)=>{if(tv(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,nv(e[o],t),e,t.nonenumerable),n},{})}var ov=function(){return ov=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ov.apply(this,arguments)},av=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},iv=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},rv=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new py,this.symbolRegistry=new uy(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new yy,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Zy(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=ov(ov({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.forEach(function(e){if(!(e.length<=1)){i||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=$y(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Ty):r[Ty(n)]=o.map(Ty)}}),s?xy(r)?[s]:[s,r]:xy(r)?void 0:r);return c&&(o.meta=ov(ov({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=nv(t);return(null==n?void 0:n.values)&&(o=Xy(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Yy(o,n.referentialEqualities)),o},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(ov({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,iv([],av(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const sv={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},cv=g.createContext(sv);function uv({theme:e,...t}){return g.createElement(cv.Provider,Fg({value:e},t))}function lv({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function pv(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function dv(e,t,n={}){return g.forwardRef(({style:o,...a},i)=>{const r=g.useContext(cv),s=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=g.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return g.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e,{});return g.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})})}const mv=(e,t=!1)=>{const{json:n}=rv.serialize(e);return JSON.stringify(n,null,t?2:void 0)},hv=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,fv=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,gv={"Status > Last Updated":(e,t)=>hv(e)===hv(t)?fv(e,t):hv(e)>hv(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":fv},yv=500,vv={top:"bottom",bottom:"top",left:"right",right:"left"};function bv(e){return["left","right"].includes(e)}function xv(e){return vv[e]}function kv(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function wv(e="bottom"){const t=bv(e),n=xv(e),o=kv("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const _v=dv("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),Ev=dv("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Cv=dv("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),Sv=dv("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),Rv=dv("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Tv=dv("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Av=dv("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),Iv=dv("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function jv({text:e}){return g.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Ov=dv("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Pv=dv("span",{color:"white"}),Lv=dv("button",{cursor:"pointer",color:"white"}),Dv=dv("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),zv=({value:e})=>{const[t,n]=g.useState("NoCopy");return g.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(rv.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?g.createElement(Uv,null):"SuccessCopy"===t?g.createElement(Gv,null):g.createElement(Fv,null))},qv=dv("span",(e,t)=>({color:t.danger})),Mv=dv("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Nv=dv("span",{color:"grey",fontSize:".7em"}),Bv=({expanded:e,style:t={}})=>g.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Uv=()=>g.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},g.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),g.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),Fv=()=>g.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},g.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),g.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Gv=()=>g.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},g.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},g.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const Wv=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=g.useState([]);return g.createElement(Ov,{key:t},a.length?g.createElement(g.Fragment,null,g.createElement(Dv,{onClick:()=>c()},g.createElement(Bv,{expanded:r})," ",t," ",g.createElement(Nv,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?g.createElement(zv,{value:n}):null,r?1===a.length?g.createElement(Mv,null,o.map(e)):g.createElement(Mv,null,a.map((t,n)=>g.createElement("div",{key:n},g.createElement(Ov,null,g.createElement(Lv,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},g.createElement(Bv,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?g.createElement(Mv,null,t.map(e)):null)))):null):g.createElement(g.Fragment,null,g.createElement(Pv,null,t,":")," ",g.createElement(qv,null,mv(n))))};function Vv({value:e,defaultExpanded:t,renderer:n=Wv,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=g.useState(Boolean(t)),c=g.useCallback(()=>s(e=>!e),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>g.createElement(Vv,Fg({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Hv(e){return g.createElement("svg",Fg({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),g.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(-33.000000, 0.000000)"},g.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),g.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),g.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const Kv=(e,t,n=!1)=>wg.useSyncExternalStore(g.useCallback(t=>n?()=>{}:e.subscribe(ng.batchCalls(t)),[e,n]),t,t),$v=g.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Rg({context:i}),y=f.getQueryCache(),[v,b]=ry("reactQueryDevtoolsSortFn",Object.keys(gv)[0]),[x,k]=ry("reactQueryDevtoolsFilter",""),[w,_]=ry("reactQueryDevtoolsBaseSort",1),E=g.useMemo(()=>gv[v],[v]),C=Kv(y,()=>y.getAll().length,!n),[S,R]=ry("reactQueryDevtoolsActiveQueryHash",""),T=g.useMemo(()=>{const e=y.getAll();if(0===C)return[];const t=x?e.filter(e=>ey(e.queryHash,x).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,x,C,y]),[A,I]=g.useState(!1);return g.createElement(uv,{theme:sv},g.createElement(_v,Fg({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:yv,position:"relative",...d.style}}),g.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+sv.backgroundAlt+" "+sv.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+sv.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+sv.gray+";\n border-radius: .5em;\n border: 3px solid "+sv.backgroundAlt+";\n }\n "}}),g.createElement("div",{style:wv(u),onMouseDown:r}),n&&g.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+sv.grayAlt,display:"flex",flexDirection:"column"}},g.createElement("div",{style:{padding:".5em",background:sv.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},g.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},g.createElement(Hv,{"aria-hidden":!0}),g.createElement(jv,{text:"Close React Query Devtools"})),g.createElement("div",{style:{display:"flex",flexDirection:"column"}},g.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},g.createElement(Jv,{queryCache:y}),u&&s?g.createElement(Iv,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},g.createElement("option",{value:"left"},"Left"),g.createElement("option",{value:"right"},"Right"),g.createElement("option",{value:"top"},"Top"),g.createElement("option",{value:"bottom"},"Bottom")):null),g.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},g.createElement(Av,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=x?x:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),g.createElement(Iv,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(gv).map(e=>g.createElement("option",{key:e,value:e},"Sort by ",e))),g.createElement(Cv,{type:"button",onClick:()=>_(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),g.createElement(Cv,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),g.createElement(Cv,{type:"button",onClick:()=>{A?(Qf.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Qf.setOnline(!1),I(!0))},"aria-label":A?"Restore offline mock":"Mock offline behavior",title:A?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:A?sv.danger:"currentColor",fill:"none"},A?g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),g.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),g.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),g.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),g.createElement(jv,{text:A?"Restore offline mock":"Mock offline behavior"}))))),g.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map(e=>g.createElement(Xv,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y})))),S&&n?g.createElement(Qv,{activeQueryHash:S,queryCache:y,queryClient:f,errorTypes:p}):null,c?g.createElement(Cv,Fg({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))}),Qv=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=Kv(e,()=>e.getAll().find(e=>e.queryHash===t)),s=Kv(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),c=null!=(a=Kv(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&a,u=null!=(i=Kv(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?i:0,l=h.useMemo(()=>{if(r&&null!=s&&s.error){const e=o.find(e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())});return null==e?void 0:e.name}},[r,null==s?void 0:s.error,o]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return g.createElement(Ev,null,g.createElement("div",{style:{padding:".5em",background:sv.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),g.createElement("div",{style:{padding:".5em"}},g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},g.createElement(Tv,{style:{lineHeight:"1.8em"}},g.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},mv(r.queryKey,!0))),g.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:lv({queryState:s,isStale:c,observerCount:u,theme:sv}),flexShrink:0}},pv(r))),g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",g.createElement(Tv,null,u)),g.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",g.createElement(Tv,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),g.createElement("div",{style:{background:sv.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),g.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},g.createElement(Cv,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(Yv)},disabled:"fetching"===s.fetchStatus,style:{background:sv.active}},"Refetch")," ",g.createElement(Cv,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:sv.warning,color:sv.inputTextColor}},"Invalidate")," ",g.createElement(Cv,{type:"button",onClick:()=>n.resetQueries(r),style:{background:sv.gray}},"Reset")," ",g.createElement(Cv,{type:"button",onClick:()=>n.removeQueries(r),style:{background:sv.danger}},"Remove")," ",g.createElement(Cv,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:sv.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?g.createElement(Cv,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:sv.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):g.createElement("label",null,"Trigger error:",g.createElement(Iv,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find(t=>t.name===e.target.value);p(t)}},g.createElement("option",{key:"",value:""}),o.map(e=>g.createElement("option",{key:e.name,value:e.name},e.name))))),g.createElement("div",{style:{background:sv.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Vv,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),g.createElement("div",{style:{background:sv.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Vv,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},Jv=({queryCache:e})=>{const t=Kv(e,()=>e.getAll().filter(e=>"fresh"===pv(e)).length),n=Kv(e,()=>e.getAll().filter(e=>"fetching"===pv(e)).length),o=Kv(e,()=>e.getAll().filter(e=>"paused"===pv(e)).length),a=Kv(e,()=>e.getAll().filter(e=>"stale"===pv(e)).length),i=Kv(e,()=>e.getAll().filter(e=>"inactive"===pv(e)).length);return g.createElement(Sv,null,g.createElement(Rv,{style:{background:sv.success,opacity:t?1:.3}},"fresh ",g.createElement(Tv,null,"(",t,")"))," ",g.createElement(Rv,{style:{background:sv.active,opacity:n?1:.3}},"fetching ",g.createElement(Tv,null,"(",n,")"))," ",g.createElement(Rv,{style:{background:sv.paused,opacity:o?1:.3}},"paused ",g.createElement(Tv,null,"(",o,")"))," ",g.createElement(Rv,{style:{background:sv.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",g.createElement(Tv,null,"(",a,")"))," ",g.createElement(Rv,{style:{background:sv.gray,opacity:i?1:.3}},"inactive ",g.createElement(Tv,null,"(",i,")")))},Xv=g.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=Kv(o,()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash}))?a:"",u=Kv(o,()=>{var t;return null==(t=o.find(e))?void 0:t.state}),l=null!=(i=Kv(o,()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()}))&&i,p=null!=(r=Kv(o,()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()}))&&r,d=null!=(s=Kv(o,()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()}))?s:0;return u?g.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+sv.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},g.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:lv({queryState:u,isStale:l,observerCount:d,theme:sv}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?g.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:sv.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,g.createElement(Tv,{style:{padding:".5em"}},""+c)):null});function Yv(){}Xv.displayName="QueryRow";const Zv="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=g.useRef(null),p=g.useRef(null),[d,m]=ry("reactQueryDevtoolsOpen",e),[h,f]=ry("reactQueryDevtoolsHeight",yv),[y,v]=ry("reactQueryDevtoolsWidth",yv),[b="bottom",x]=ry("reactQueryDevtoolsPanelPosition",c),[k,w]=g.useState(!1),[_,E]=g.useState(!1),C=function(){const e=g.useRef(!1),t=g.useCallback(()=>e.current,[]);return g.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();g.useEffect(()=>{w(null!=d&&d)},[d,k,w]),g.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),g.useEffect(()=>{var e;if(k&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=kv("padding",b),n=bv(b),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:h)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach(([t,n])=>{e.style[t]=n})}}},[k,b,h,y]);const{style:S={},...R}=t,{style:T={},onClick:A,...I}=o,j=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=xv(e),c=kv("border",s),u=bv(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:yv}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:yv}}}({position:b,devtoolsTheme:sv,isOpen:k,height:h,width:y,isResizing:_,panelStyle:S});return C()?g.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},g.createElement(uv,{theme:sv},g.createElement($v,Fg({ref:p,context:r,styleNonce:s,position:b,onPositionChange:x,showCloseButton:!0,closeButtonProps:n},R,{style:j,isOpen:k,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=bv(b);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===b?i-e.clientX:e.clientX-i),v(s)):(s=o+("bottom"===b?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{_&&E(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:u}))),k?null:g.createElement("button",Fg({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==A||A(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...T}}),g.createElement(Hv,{"aria-hidden":!0}),g.createElement(jv,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var eb,tb={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(eb=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",eb.ETIMEDOUT="ETIMEDOUT",eb.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var nb=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&nb&&function(){e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:if(!wi())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,bi.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),console.error("Error starting MSW:",t),[3,4];case 4:return[2]}})})}(),exports.Api=wf,exports.ApiProvider=function(t){var n=this,o=t.children,a=process.env.ENVIRONMENT,i=h.useMemo(function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"},[a]),r=h.useState(!1),s=r[0],c=r[1],u=h.useCallback(function(t){return e.__awaiter(n,void 0,void 0,function(){var n,o,a,r,s;return e.__generator(this,function(c){switch(c.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),s=r?JSON.parse(r).value:"",[4,Ef.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":a||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return c.sent(),[2]}})})},[i]);h.useEffect(function(){return addEventListener("ACCOUNT_CHANGED",u),function(){window.removeEventListener("ACCOUNT_CHANGED",u)}},[u]);var l=h.useCallback(function(t){return e.__awaiter(n,void 0,void 0,function(){var n,o,a,r,s,u,l;return e.__generator(this,function(p){switch(p.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),s=r?null===(l=JSON.parse(r).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,Ef.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":t||i,"x-organization-code":u,"x-account-code":s,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:p.sent(),qg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),p.label=2;case 2:return[2]}})})},[i,c]);return h.useEffect(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?l(n):"token"===t.key&&l(e)}}),l(e)},[c,l]),s?React.createElement(Tg,{client:qg},o,React.createElement(Zv,{initialIsOpen:!1})):React.createElement("div",{style:tb})},exports.ApiSingleton=Ef,exports.getQueryKeyGetNameAndIcon=Ng,exports.getQueryKeyRequiredFields=Bg,exports.queryCache=zg,exports.queryClient=qg,exports.use3DSExemptions=function(){var t=this;return Pg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Lg(function(e){return Ef.getInstance().generateAIWorkflowRoutes(t,e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAllFeatureFlags=function(t){var n=this,o=Pg({queryKey:["all-feature-flags",Object.values(t).filter(Boolean)],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getFeatureFlagIdAll({accountCode:t.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!t.account_code&&!!t.organization_code&&!!t.email,cacheTime:9e5,useErrorBoundary:!1}),a=Rg();return h.useEffect(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o},exports.useAllowListDetail=function(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})},exports.useBlackListDetail=function(e,t,n,o,a,i){return Pg(["black-list-detail",e,t,o,a,i],function(){return Ef.getInstance().getBlacklistDetail(e,t,n,o,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})},exports.useCachedFeatureFlag=function(t){var n,o,a=Rg(),i=a.getQueryState(["cached-feature-flags"]),r=Boolean(!(null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.status)),s=Pg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(e){var n;return{result:null===(n=null==e?void 0:e.data)||void 0===n?void 0:n[t]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return e.__assign(e.__assign({},s),{isLoading:r})},exports.useCancelReport=function(){return Lg(function(e){return Ef.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})},exports.useChangePasswordV2=function(){var t=this;return Lg(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().changePasswordV2(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useChangePaymentsWebhook=function(){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})})},exports.useChangeStatusBlackList=function(){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})})},exports.useChangeStatusItemBlackList=function(){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})})},exports.useChangeStylingSettings=function(){return Lg(function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Ef.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useChangeTemplateStatus=function(){var t=this;return Lg(["POST/template-reporting/report-templates/status"],function(n){var o=n.templateId,a=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Lg(function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Ef.getInstance().uploadChargebacks(t,n,o,a)})},exports.useChartAssistantSocket=function(){var e=h.useRef(null),t=h.useRef(null),n=h.useRef(null),o=h.useState(!1),a=o[0],i=o[1],r=h.useState(null),s=r[0],c=r[1],u=h.useState(null),l=u[0],p=u[1],d=h.useCallback(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),m=h.useCallback(function(){var o;if((null===(o=e.current)||void 0===o?void 0:o.readyState)!==WebSocket.OPEN){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),p(null);try{var a=new WebSocket("".concat(_f["WS_URL_".concat(_f.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=a,a.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&a.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){a.readyState===WebSocket.OPEN?a.send(JSON.stringify({type:"ping"})):(d(),i(!1))},3e4)},a.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){p("Failed to parse server response")}},a.onerror=function(e){p("Connection error occurred"),i(!1)},a.onclose=function(e){i(!1),d(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){m()},5e3))}}catch(e){p("Failed to establish connection")}}},[]),f=h.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),g=h.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),y=h.useCallback(function(){c(null)},[]),v=h.useCallback(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return h.useEffect(function(){return m(),function(){d(),v()}},[]),{subscribe:f,unsubscribe:g,disconnect:v,connect:m,clearChartData:y,isConnected:a,chartData:s,connectionError:l}},exports.useChartExecute=function(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})},exports.useCloneTemplate=function(){var t=this;return Lg(["POST/template-reporting/report-templates/clone"],function(n){var o=n.templateId,a=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(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})},exports.useCommunications=function(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})},exports.useCommunicationsFilters=function(){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})},exports.useConfirmedOtpMfa=function(){return Lg(function(e){return Ef.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})},exports.useCountRowsForReport=function(){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})},exports.useCreateAndExecuteChart=function(){var t=this;return Lg(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,o,a,i,r;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(i=null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==i?i:null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}})})},{useErrorBoundary:!1})},exports.useCreateChart=function(){return Lg(function(e){return Ef.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateMonitorTemplate=function(e){return Lg(function(t){return Ef.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})},exports.useCreateMonitorThreshold=function(e){return Lg(function(t){return Ef.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},exports.useCreateOperationTransaction=function(){return Lg(function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Ef.getInstance().createOperationTransaction(t,n,o,a)})},exports.useCreatePaymentLinks=function(){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})})},exports.useCreateReconciliationAlert=function(){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(){qg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Lg(function(){return Ef.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return e.__awaiter(n,void 0,void 0,function(){var n,o;return e.__generator(this,function(a){switch(a.label){case 0:return[4,qg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return a.sent(),n=null===(o=qg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,qg.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e.__spreadArray(e.__spreadArray([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){qg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){qg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Lg(function(e){return Ef.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Lg(function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return e.__awaiter(n,void 0,void 0,function(){var n;return e.__generator(this,function(o){switch(o.label){case 0:return[4,qg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=qg.getQueryData(["GET/reports/templates"]),qg.setQueryData(["GET/reports/templates"],function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){qg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){qg.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Lg(function(e){return Ef.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRoles=function(){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})},exports.useCreateSamlConfig=function(){return Lg(function(e){return Ef.getInstance().createSamlConfig(e)})},exports.useCreateSchedule=function(){var t=this;return Lg(["POST/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().createReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){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})})},exports.useCreateTemplate=function(){var t=this;return Lg(["POST/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().createTemplateReporting(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useCreateUserAuth0=function(){return Lg(function(e){return Ef.getInstance().createUserAuth0(e)})},exports.useCreateWorkflow=function(t,n,o){var a=this;return void 0===o&&(o=null),Lg(function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().postSmartRoutingCreateWorkflow(t,n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},o)},exports.useDeactivateSchedule=function(){var t=this;return Lg(["POST/template-reporting/report-schedules/deactivate"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().deactivateReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})},exports.useDeleteAccountsUserMassive=function(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Ef.getInstance().deleteAccountsUserMassive(t,n,o)})},exports.useDeleteAllowlistItem=function(){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})})},exports.useDeleteBlackListType=function(){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})})},exports.useDeleteBlockListItem=function(){return Lg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Ef.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteChart=function(){return Lg(function(e){return Ef.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){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})})},exports.useDeletePaymentLink=function(){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})})},exports.useDeleteReconciliationAlert=function(){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(){qg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteRoles=function(){return Lg(function(e){return Ef.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteSamlConfig=function(){return Lg(function(){return Ef.getInstance().deleteSamlConfig()})},exports.useDeleteSchedule=function(){var t=this;return Lg(["DELETE/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().deleteReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Lg(function(e){return Ef.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteTemplate=function(){var t=this;return Lg(["DELETE/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().deleteReportTemplate(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){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})})},exports.useDeleteVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().deleteSmartRoutingVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)},exports.useDeleteWebhookV2=function(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})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().postSmartRoutingDuplicateVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)},exports.useEditPaymentLinks=function(){return Lg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Ef.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then(function(e){return null==e?void 0:e.data})})},exports.useEditRoles=function(){var t=this;return Lg(function(n){var o=n.payload,a=n.id,i=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEmailVerification=function(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})},exports.useExcludeUsers=function(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().mfaExcludeUsers(t,n)})},exports.useExportApiLogs=function(){return Lg(function(e){return Ef.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useFeatureFlags=function(t){var n=this,o=Object.values(t).filter(Boolean);return Pg(["feature-flags",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getFeatureFlagId(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})},exports.useFirebaseUserSubscribe=function(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Lg(function(e){return Ef.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},t),{useErrorBoundary:!1}))},exports.useGetAccounts=function(e){var t,n=Mg(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pg({queryKey:["accounts",o],queryFn:function(){return Ef.getInstance().getAccounts(o).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})},exports.useGetAccountsByUser=function(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})},exports.useGetAccountsForImpersonation=function(t,n){var o=this;return Pg({queryKey:["accounts-for-impersonation",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getAccountsForImpersonation(t).then(function(e){var t,o;return(null===(o=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===o?void 0:o.map(function(e){return{label:e.name,value:n?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetAccountsV2=function(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})},exports.useGetAllConfigRules=function(){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})},exports.useGetAllOrganizations=function(){return Pg(["fetch-all-organizations",Mg()],function(){return Ef.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,o=e.enabled;return Pg(["GET/reconciliation/advancements/list",t,n],function(){return Ef.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,o=e.enabled;return Pg(["GET/reconciliation/agenda/list",t,n],function(){return Ef.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,o=e.enabled;return Pg(["GET/reconciliation/alerts/list",t,n],function(){return Ef.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,o=e.enabled;return Pg(["GET/reconciliation/fees/list",t,n],function(){return Ef.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,o=e.enabled;return Pg(["GET/reconciliation/sales/list",t,n],function(){return Ef.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(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})})},exports.useGetAllowedIps=function(){return Pg(["developers-get-allowed-ips"],function(){return Ef.getInstance().getAllowedIps().then(function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null}).catch(function(t){return e.__assign(e.__assign({},t),{isError:!0})})},{enabled:!1,cacheTime:0})},exports.useGetApiLogsDetailByPaymentCode=function(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})},exports.useGetAuditEvents=function(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})},exports.useGetAuditLogsFilters=function(){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})})},exports.useGetAuditMonitorEventDetail=function(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})},exports.useGetBatchRefundProcessedFileDownload=function(){var t=this;return Lg(function(n){var o=n.batchRefundId,a=n.organizationCode,i=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Lg(function(n){var o=n.batchRefundId,a=n.organizationCode,i=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefunds=function(t,n){var o=this;return void 0===t&&(t=26),void 0===n&&(n=0),Pg(["batch-refunds",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getBatchRefunds(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})},exports.useGetBlackList=function(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})},exports.useGetBlockListSummary=function(e,t,n){return Pg(["get-block-list-summary",e,t,n],function(){var o=Ef.getInstance();return n?o.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})},exports.useGetCardBrands=function(){return Pg(["GET/catalog/card-brands"],function(){return Ef.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetChartsByUser=function(){return Pg(["chartgpt-user-charts"],function(){return Ef.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Pg(["chartgpt-user-charts-with-results"],function(){return e.__awaiter(t,void 0,void 0,function(){var t,n,o,a=this;return e.__generator(this,function(i){switch(i.label){case 0:return[4,(t=Ef.getInstance()).getChartsByUser()];case 1:return n=i.sent(),o=(null==n?void 0:n.data)||[],[4,Promise.all(o.map(function(n){return e.__awaiter(a,void 0,void 0,function(){var o,a,i,r,s,c,u,l;return e.__generator(this,function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return o=p.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(r=null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.user_prompt)&&void 0!==r?r:n.user_prompt,unit_to_display:null!==(c=null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==c?c:n.unit_to_display,results:null!==(l=null===(u=null==o?void 0:o.data)||void 0===u?void 0:u.results)&&void 0!==l?l:[]})];case 2:return a=p.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),a),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,i.sent()]}})})})},exports.useGetCheckoutTemplate=function(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)})},exports.useGetCheckouts=function(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)})},exports.useGetConditionalConfigRules=function(){return Lg(function(e){return Ef.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetConfigAllowlist=function(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})},exports.useGetConnections=function(){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})},exports.useGetConnectionsByPaymentMethod=function(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})},exports.useGetCountriesConfigPaymentLink=function(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})},exports.useGetCountriesConfigPaymentLinkV2=function(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})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode;return Pg(["developers"],function(){return Ef.getInstance().getDeveloperCredentials(n,o).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCredentialsMFA=function(){return Lg(function(t){var n=t.password,o=t.accountCode;return Ef.getInstance().getDeveloperCredentials(n,o).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.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}})})},exports.useGetCustomizedApiKeys=function(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)})},exports.useGetCustomizedApiKeysAccounts=function(){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})},exports.useGetCustomizedApiKeysMembers=function(){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})},exports.useGetCustomizedApiKeysProducts=function(){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})},exports.useGetCustomizedApiKeysToken=function(){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})})},exports.useGetDashboardStaticContents=function(){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})},exports.useGetDialogs=function(){return Pg(["dialogs"],function(){return Ef.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})},exports.useGetDownloadReport=function(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})},exports.useGetEmailOtp=function(){return Lg(function(){return Ef.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})},exports.useGetHashPylon=function(){var t=this;return Pg(["fetch-hash-pylon"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){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})},exports.useGetImpersonationUsers=function(){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})},exports.useGetInsightsReport=function(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})},exports.useGetInsightsReportAgain=function(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})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=Mg();return Pg(["organizations-account-integrations",t,n],function(){return Ef.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Pg(["integration-params",t,o],function(){return t.includes("undefined")?{}:Ef.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})},exports.useGetLanguages=function(){return Pg(["languages"],function(){return Ef.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})},exports.useGetLocales=function(){return Pg(["/cms/locales"],function(){return Ef.getInstance().getLocales().then(function(e){return sf(e)?ff:e.data}).catch(function(){return ff})})},exports.useGetLoginMethods=function(){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})}})},exports.useGetMFAConfig=function(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})},exports.useGetMFAExcludedUsers=function(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})},exports.useGetMFAStatus=function(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})},exports.useGetMenu=function(){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})})},exports.useGetMergedNotifications=function(){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})},exports.useGetNameAndIcon=function(e,t){var n=e.paymentMethodType,o=e.type;return Pg(Ng({paymentMethodType:n,type:o}),function(){return Ef.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetNotificationsCustomer=function(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})},exports.useGetNotificationsNumberMutation=function(){return Lg(function(e){return Ef.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetOrganization=function(){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})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.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})},exports.useGetPaymentLinkByCode=function(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})},exports.useGetPaymentLinks=function(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})},exports.useGetPaymentMethodsAndProviders=function(){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})},exports.useGetPaymentMetricsFilters=function(){return Pg(["payment-metrics-filters"],function(){return Ef.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){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})})},exports.useGetPaymentTransactionsDetails=function(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})},exports.useGetPaymentV2=function(t){var n=this,o=t.paymentCode,a=t.enabled,i=void 0===a||a,r=Ef.getInstance();return Pg(["get-payment-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,r.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=Mg();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})},exports.useGetPayoutDetail=function(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})},exports.useGetPayoutHistoryDetail=function(e){var t=Mg();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})},exports.useGetPayoutTransactionDetail=function(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})},exports.useGetPermissions=function(e,t){return Pg(["fetch-permissions",e,t],function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);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}}))||[]})},exports.useGetPermissionsCatalog=function(){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})},exports.useGetProfile=function(){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})},exports.useGetProofOfCancel=function(t,n){var o=this,a=Mg();return Pg(["GET/useGetProofOfCancel",a,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getProofOfCancel(t,a,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!a&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var o=this,a=Mg();return Pg(["GET/useGetProofOfPayment",a,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getProofOfPayment(t,a,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!a&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=Mg();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})},exports.useGetReconciliationActive=function(){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})})},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return Pg(["GET/reconciliation/agenda/insights",t,n],function(){return Ef.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Pg(["GET-reconciliation-filters"],function(){return Ef.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(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})},exports.useGetReconciliationTransactionStatusesStyles=function(){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})})},exports.useGetReconciliationTransactions=function(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})},exports.useGetReconciliationsReportColumns=function(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})},exports.useGetReconciliationsReportTemplates=function(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})},exports.useGetRefundPdf=function(t,n){var o=this,a=Mg();return Pg(["getRefundPdf",t,a,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getRefundPdf(t,a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!t&&!!a,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){var a=this;return Pg(["GET/reports/columns/".concat(n,"/").concat(o)],function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(t){return[2,Ef.getInstance().getReportColumns(n,o).then(function(t){return n===exports.TemplateType.ALL&&o===exports.ReportType.PAYMENTS?e.__spreadArray(e.__spreadArray([],null==t?void 0:t.data,!0),[Ug],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(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})},exports.useGetReportsList=function(){return Pg(["reports"],function(){return Ef.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(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})},exports.useGetRequiredFields=function(e,t){var n=e.paymentMethodType,o=e.type;return Pg(Bg({paymentMethodType:n,type:o}),function(){return Ef.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetRoles=function(){return Pg(["fetch-roles"],function(){return Ef.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetRolesPermissions=function(){return Pg(["fetch-rolespermissions"],function(){return Ef.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetRoutingMonitorsTemplate=function(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})},exports.useGetRoutingMonitorsTemplates=function(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})},exports.useGetRule=function(){return Lg(function(e){return Ef.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetSamlConfig=function(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})},exports.useGetScheduleById=function(t,n){var o=this;return Pg(["GET/template-reporting/schedule-by-id",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getReportScheduleById(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetScheduledReportsList=function(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})},exports.useGetSchedulesList=function(t){var n=this;return Pg(["GET/template-reporting/schedules"],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1,cacheTime:0})},exports.useGetSettlements=function(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})},exports.useGetSmartRoutingConditionPaymentMethod=function(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})},exports.useGetSmartRoutingConditionTypes=function(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})},exports.useGetSmartRoutingConditionTypesValues=function(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})},exports.useGetSmartRoutingDataReport=function(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})},exports.useGetSmartRoutingDeclineGroups=function(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})},exports.useGetSmartRoutingMethods=function(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})},exports.useGetSmartRoutingNextRoute=function(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})},exports.useGetSmartRoutingPaymentRoute=function(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})},exports.useGetSmartRoutingSearchConditionValues=function(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})},exports.useGetSmartRoutingSimulateConditionTypeValues=function(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})},exports.useGetSmartRoutingWorkflow=function(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})},exports.useGetSmartRoutingWorkflowVersion=function(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})},exports.useGetStylingSdkDynamic=function(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})},exports.useGetStylingSettings=function(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})},exports.useGetStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Pg(["styling-settings-v2",t],function(){return Ef.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingTheme=function(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})},exports.useGetTeamsFiltersMembers=function(){var e=Mg();return Pg(["teams-filters-members"],function(){return Ef.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetTemplateById=function(t,n){var o=this;return Pg(["GET/template-reporting/template-by-id",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getReportTemplateById(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetTemplatesList=function(t,n){var o=this;return Pg(["GET/template-reporting/templates",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getReportTemplatesList(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1,cacheTime:0})},exports.useGetTimeZoneCatalog=function(){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})})},exports.useGetTimezonePaymentLink=function(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})},exports.useGetTokenValidation=function(){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})})},exports.useGetTransactionDetailsV2=function(t){var n=this,o=t.payment_code,a=t.enabled,i=void 0===a||a,r=Ef.getInstance();return Pg(["get-payment-transaction-details-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,r.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(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})},exports.useGetTransactionRawResponse=function(t){var n=this,o=t.transaction_code,a=t.enabled,i=void 0===a||a,r=Ef.getInstance();return Pg(["get-payment-transaction-raw-response",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,r.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionStatusesStyles=function(){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})},exports.useGetTranslations=function(){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})},exports.useGetUserFull=function(){var t=this;return Pg(["get-user-full"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,o,a,i){var r=this;return void 0===o&&(o=1),void 0===a&&(a=10),Pg(["get-users-to-impersonate",t,n,o,a,i],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().getUsersToImpersonate(t,n,o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetValidateOpsgenieKey=function(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})},exports.useGetWebhookParamsV2=function(){return Pg(["params-catalog"],function(){return Ef.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})},exports.useGetWebhooksV2Detail=function(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})},exports.useGetWebhooksV3=function(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})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksTotalRateAndEvolution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksTotalRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetricsV2=function(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})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(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})},exports.useInsightsFallbackMetrics=function(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})},exports.useInsightsFraudScreeningConversionRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Pg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(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})},exports.useInsightsOverviewMetrics=function(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})},exports.useInsightsOverviewMetricsV3=function(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})},exports.useInsightsTotalPaymentsAndFraudMetrics=function(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})},exports.useInsightsVolumeMetrics=function(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})},exports.useInsightsVolumeMetricsV2=function(e,t,n,o){return void 0===o&&(o=!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:o,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsersMultiaccountMassive=function(){return Lg(function(e){return Ef.getInstance().inviteUsersMassive(e,e.organizationCode)})},exports.useIsTesting=function(){var e=h.useState("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return h.useEffect(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}},exports.useLoginMethods=function(){return Lg(function(e){return Ef.getInstance().changeLoginMethods(e)})},exports.useNetworkTokensOnboarding=function(){var t=this;return Pg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){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})},exports.usePatchAccountV2=function(){return Lg(function(e){var t=e.name,n=e.code,o=e.principal;return Ef.getInstance().patchAccountV2({name:t,code:n,principal:o})})},exports.usePatchAddAllowlistItems=function(){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})})},exports.usePatchAllowedIps=function(){return Lg(["developers-patch-allowed-ips"],function(t){return Ef.getInstance().patchAllowedIps(t).then(function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null}).catch(function(t){return e.__assign(e.__assign({},t),{isError:!0})})},{cacheTime:0})},exports.usePatchAllowlist=function(){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})})},exports.usePatchAndExecuteChart=function(t,n,o){var a=this;return void 0===o&&(o=!0),Pg(["chartgpt-patch-and-execute",t,n],function(){return e.__awaiter(a,void 0,void 0,function(){var o,a,i,r,s;return e.__generator(this,function(e){switch(e.label){case 0:return[4,(o=Ef.getInstance()).patchChartGPTChart(t,n)];case 1:return a=e.sent(),i=null==a?void 0:a.data,[4,o.executeChartGPTChart(t)];case 2:return r=e.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){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})})},exports.usePatchChangeStatusAllowlist=function(){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})})},exports.usePatchChangeStatusAllowlistItem=function(){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})})},exports.usePatchChartName=function(){return Lg(function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,i=void 0===a?"":a;return Ef.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePatchConnection=function(){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})})},exports.usePathCreateCustomizedApiKeys=function(){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})})},exports.usePathNotifications=function(){var t=this;return Lg(function(n){return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})})},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=Mg();return Pg(["getPayoutsFilters",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(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:t&&!!o})},exports.usePayoutsList=function(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})},exports.usePostAccount=function(){return Lg(function(e){var t=e.name,n=e.principal;return Ef.getInstance().postAccount(t,n)})},exports.usePostAllowlistMultiAccount=function(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})},exports.usePostApiKeysRoll=function(){return Lg(function(e){var t=e.payload,n=e.code,o=e.password;return Ef.getInstance().postApiKeysRoll(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePostApiLogs=function(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})},exports.usePostAuditMonitors=function(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Lg(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().batchRefundByFile({payload:n}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.usePostBlackListBatch=function(e){var t=e.handleSetProgress;return Lg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Ef.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListItems=function(){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})})},exports.usePostBlackListMultiAccount=function(){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})})},exports.usePostBlockList=function(e,t,n,o){var a;return Pg(["post-black-list",e],function(){return Ef.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Lg(function(e){return Ef.getInstance().postCall(e)})},exports.usePostChangeStatusConnection=function(){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})})},exports.usePostConnectionMultiAccount=function(){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})})},exports.usePostCreateAllowlistMultiAccount=function(){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})})},exports.usePostCreateCustomizedApiKeys=function(){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})})},exports.usePostCreateInsightsReport=function(){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})})},exports.usePostCreateRuleMultiAccount=function(){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})})},exports.usePostCredentialsValidatePassword=function(){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})})},exports.usePostDefaultRoutes=function(){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})})},exports.usePostEditRule=function(){return Lg(function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Ef.getInstance().postEditRule(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostFraudTransactions=function(t){var n=this;return Pg(["POST/fraud-transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().postFraudTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostGetAllowlistItems=function(){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})})},exports.usePostGetAllowlistMultiAccount=function(){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})})},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=Mg();return Pg(["fetch-post-members-v2",t,n,o,a,i],function(){return Ef.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostPaymentsEvaluated=function(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})},exports.usePostPaymentsLazy=function(t){var n=this;return Pg(["fetch-payments-lazy",t],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().postPaymentsLazy(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostSlackMessageChannel=function(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostTransactions=function(t){var n=this;return Pg(["POST/transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().postTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=function(){return Lg(function(e){var t=e.payload;return Ef.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(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})}})},exports.usePostUserSettingsTables=function(){return Lg(function(e){var t=e.payload,n=e.section;return Ef.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(t){var n=qg.getQueryData(["fetch-profile"]);t.data&&qg.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Lg(function(e){return Ef.getInstance().postUserThemeSettings(e)})},exports.usePostValideStatusConnection=function(){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})})},exports.usePostVelocityRules=function(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})},exports.usePostWebhookLogs=function(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})},exports.usePostWebhookMultiAccount=function(e){return Lg(function(e){var t=e.payload;return Ef.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){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})},exports.usePublishVersion=function(t,n){var o=this,a=t.versionCode,i=t.accountCode,r=t.organizationCode;return void 0===n&&(n=null),Lg(function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Ef.getInstance().postSmartRoutingPublishVersion(i,a,r).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},n)},exports.usePutAccountPrincipal=function(){return Lg(function(e){var t=e.account_code;return Ef.getInstance().putAccountPrincipal({account_code:t})})},exports.usePutAccountsUserMassive=function(){return Lg(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Ef.getInstance().putAccountsUserMassive(t,n,o)})},exports.usePutBlackListType=function(){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})})},exports.usePutCosts=function(){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})},exports.useResendWebhooks=function(){return Lg(function(e){var t=e.codes;return Ef.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflow(o,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)},exports.useSendPaymentNotification=function(t,n,o){var a=this,i=Ef.getInstance();return Pg(["send-payment-notification",t,n],function(){return e.__awaiter(a,void 0,void 0,function(){var a,r;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i.sendPaymentNotification(t,n)];case 1:return a=e.sent(),o.onSuccess(),[2,a.data];case 2:throw r=e.sent(),o.onError(),r;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Lg(function(){return Ef.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})},exports.useSmartRoutingCreateDeclinedGroup=function(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)},exports.useSmartRoutingEditWorkflowName=function(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Lg(function(e){var n=e.payload;return Ef.getInstance().multiAccountDeclinedGroupCreate(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingRemoveDeclinedGroup=function(t,n){return void 0===n&&(n={}),Lg(function(e){var n=e.declinedGroupCode;return Ef.getInstance().removeDeclinedGroup(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingSimulateTransaction=function(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Lg(function(e){return Ef.getInstance().simulateSmartRoutingTransaction(n,o,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=!1),Ef.getInstance().updateSmartRoutingFavorite(o,n,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Lg(function(e){return void 0===e&&(e=null),Ef.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(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)},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Lg(function(){return Ef.getInstance().putSmartRoutingToggleMethod(a,n,o).then(function(e){return null==e?void 0:e.data})},t)},exports.useUnInviteUsersV2=function(){return Lg(function(e){var t=e.userCode,n=e.organizationCode;return Ef.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})},exports.useUnrollUserV2=function(){return Lg(function(e){return Ef.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateCheckoutTemplate=function(){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})})},exports.useUpdateIsActiveCheckout=function(e){return Lg(function(e){return Ef.getInstance().updateIsActiveCheckout(e)},e)},exports.useUpdateMFAConfig=function(){return Lg(function(e){var t=e.payload,n=e.organizationCode;return Ef.getInstance().updateMFAConfig(t,n)})},exports.useUpdateOrganizationStatus=function(){return Lg(["patch-organizations"],function(){return Ef.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})},exports.useUpdateProfile=function(e){return Lg(function(e){return Ef.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){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(){qg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(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})},exports.useUpdateReportTemplate=function(e){return Lg(function(){return Ef.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateSamlConfig=function(){return Lg(function(e){return Ef.getInstance().updateSamlConfig(e)})},exports.useUpdateScheduledReport=function(){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})})},exports.useUpdateStylingTheme=function(){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})})},exports.useUpdateTemplateSelection=function(){var t=this;return Lg(["POST/template-reporting/report-templates/selection"],function(n){var o=n.templateId,a=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Ef.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){qg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Lg(function(e){var t=e.code,n=e.payload,o=e.accountCode;return Ef.getInstance().updateWebhookV2(t,n,o)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=h.useState(0),i=a[0],r=a[1],s=h.useRef({cancel:function(){return null}}),c=Lg(["upload-file-chargeback",t],function(e){var t=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==o||o(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Lg(function(e){return Ef.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=h.useRef({cancel:function(){return null}}),t=Lg(["upload-file"],function(t){var n=Ef.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}},exports.useValiateAllowlistItems=function(){return Lg(["validate-allowlist-items"],function(e){return Ef.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})},exports.useValidateBlockListItems=function(){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})})},exports.useValidateCredentials=function(){return Lg(function(e){return Ef.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useValidateOrgName=function(){return Lg(function(e){return Ef.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})},exports.useValidatePasswordStatus=function(){return Lg(function(){return Ef.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})},exports.useViewMoreMetrics=function(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})};
75
+ const Kg=7,$g=6,Qg=5,Jg=4,Xg=3,Yg=2,Zg=1,ey=0;function ty(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Zg,!n.accessors){const o=ny(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=ry(a),r=ay(e,a);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:ey,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=ny(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=Zg?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function ny(e,t,n){return e=oy(e,n),(t=oy(t,n)).length>e.length?ey:e===t?Kg:(e=e.toLowerCase())===(t=t.toLowerCase())?$g:e.startsWith(t)?Qg:e.includes(` ${t}`)?Jg:e.includes(t)?Xg:1===t.length?ey:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?Yg:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return Zg+a*o}const r=a(t[0],e,0);if(r<0)return ey;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return ey}const s=o-r;return i(s)}(e,t)}function oy(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Hg,e=>Wg[e])),e}function ay(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const iy={maxRanking:1/0,minRanking:-1/0};function ry(e){return"function"==typeof e?iy:{...iy,...e}}function sy(e,t){const[n,o]=g.useState();g.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,g.useCallback(t=>{o(n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o})},[e])]}var cy,uy=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),ly=function(){function e(e){this.generateIdentifier=e,this.kv=new uy}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),py=(cy=function(e,t){return cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},cy(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}cy(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),dy=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return py(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(ly),my=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function hy(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function fy(e,t){Object.entries(e).forEach(function(e){var n=my(e,2),o=n[0],a=n[1];return t(a,o)})}function gy(e,t){return-1!==e.indexOf(t)}function yy(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var vy=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return hy(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),by=function(e){return void 0===e},xy=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},ky=function(e){return xy(e)&&0===Object.keys(e).length},wy=function(e){return Array.isArray(e)},_y=function(e){return e instanceof Map},Ey=function(e){return e instanceof Set},Cy=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Sy=function(e){return"number"==typeof e&&isNaN(e)},Ry=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||by(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Cy(e)},Ty=function(e){return e.replace(/\./g,"\\.")},Ay=function(e){return e.map(String).map(Ty).join(".")},Iy=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},jy=function(){return jy=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},jy.apply(this,arguments)},Oy=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Py=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Ly(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Dy=[Ly(by,"undefined",function(){return null},function(){}),Ly(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),Ly(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Ly(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),Ly(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Ly(Ey,"set",function(e){return Py([],Oy(e.values()))},function(e){return new Set(e)}),Ly(_y,"map",function(e){return Py([],Oy(e.entries()))},function(e){return new Map(e)}),Ly(function(e){return Sy(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return Sy(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Ly(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),Ly(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function zy(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var qy=zy(function(e,t){return!!Cy(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),My=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Ny=zy(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return Py([],Oy(e))},function(e,t){var n=My[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function By(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Uy=zy(By,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return jy({},e);var o={};return n.forEach(function(t){o[t]=e[t]}),o},function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)}),Fy=zy(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Gy=[Uy,qy,Fy,Ny],Wy=function(e,t){var n=yy(Gy,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=yy(Dy,function(n){return n.isApplicable(e,t)});return o?{value:o.transform(e,t),type:o.annotation}:void 0},Vy={};Dy.forEach(function(e){Vy[e.annotation]=e});var Hy=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Ky(e){if(gy(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(gy(e,"prototype"))throw new Error("prototype is not allowed as a property");if(gy(e,"constructor"))throw new Error("constructor is not allowed as a property")}var $y=function(e,t,n){if(Ky(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(wy(o))o=o[+i];else if(xy(o))o=o[i];else if(Ey(o)){o=Hy(o,r=+i)}else if(_y(o)){if(a===t.length-2)break;var r=+i,s=0===+t[++a]?"key":"value",c=Hy(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(wy(o)?o[+u]=n(o[+u]):xy(o)&&(o[u]=n(o[u])),Ey(o)){var l=Hy(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(_y(o)){r=+t[t.length-2];var d=Hy(o,r);switch(s=0===+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},Qy=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Jy=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Xy(e,t,n){if(void 0===n&&(n=[]),e)if(wy(e)){var o=Qy(e,2),a=o[0],i=o[1];i&&fy(i,function(e,o){Xy(e,t,Jy(Jy([],Qy(n)),Qy(Iy(o))))}),t(a,n)}else fy(e,function(e,o){return Xy(e,t,Jy(Jy([],Qy(n)),Qy(Iy(o))))})}function Yy(e,t,n){return Xy(t,function(t,o){e=$y(e,o,function(e){return function(e,t,n){if(!wy(t)){var o=Vy[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return qy.untransform(e,t,n);case"class":return Uy.untransform(e,t,n);case"custom":return Fy.untransform(e,t,n);case"typed-array":return Ny.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function Zy(e,t){function n(t,n){var o=function(e,t){Ky(t);for(var n=0;n<t.length;n++){var o=t[n];if(Ey(e))e=Hy(e,+o);else if(_y(e)){var a=+o,i=0===+t[++n]?"key":"value",r=Hy(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,Iy(n));t.map(Iy).forEach(function(t){e=$y(e,t,function(){return o})})}if(wy(t)){var o=Qy(t,2),a=o[0],i=o[1];a.forEach(function(t){e=$y(e,Iy(t),function(){return e})}),i&&fy(i,n)}else fy(t,n);return e}var ev=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=Ry(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return xy(e)||wy(e)||_y(e)||Ey(e)||By(e,t)}(e,n)){var l=Wy(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(gy(i,e))return{transformedValue:null};var d=Wy(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=wy(m)?[]:{},f={};fy(m,function(s,c){var u=ev(s,t,n,o,Jy(Jy([],Qy(a)),[c]),Jy(Jy([],Qy(i)),[e]),r);h[c]=u.transformedValue,wy(u.annotations)?f[c]=u.annotations:xy(u.annotations)&&fy(u.annotations,function(e,t){f[Ty(c)+"."+t]=e})});var g=ky(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function tv(e){return Object.prototype.toString.call(e).slice(8,-1)}function nv(e){return"Array"===tv(e)}function ov(e,t={}){if(nv(e))return e.map(e=>ov(e,t));if(!function(e){if("Object"!==tv(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,o)=>{if(nv(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,ov(e[o],t),e,t.nonenumerable),n},{})}var av=function(){return av=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},av.apply(this,arguments)},iv=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},rv=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},sv=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new dy,this.symbolRegistry=new ly(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new vy,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=ev(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=av(av({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.forEach(function(e){if(!(e.length<=1)){i||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=Qy(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Ay):r[Ay(n)]=o.map(Ay)}}),s?ky(r)?[s]:[s,r]:ky(r)?void 0:r);return c&&(o.meta=av(av({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=ov(t);return(null==n?void 0:n.values)&&(o=Yy(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Zy(o,n.referentialEqualities)),o},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(av({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,rv([],iv(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const cv={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},uv=g.createContext(cv);function lv({theme:e,...t}){return g.createElement(uv.Provider,Gg({value:e},t))}function pv({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function dv(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function mv(e,t,n={}){return g.forwardRef(({style:o,...a},i)=>{const r=g.useContext(uv),s=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=g.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return g.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e,{});return g.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})})}const hv=(e,t=!1)=>{const{json:n}=sv.serialize(e);return JSON.stringify(n,null,t?2:void 0)},fv=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,gv=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,yv={"Status > Last Updated":(e,t)=>fv(e)===fv(t)?gv(e,t):fv(e)>fv(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":gv},vv=500,bv={top:"bottom",bottom:"top",left:"right",right:"left"};function xv(e){return["left","right"].includes(e)}function kv(e){return bv[e]}function wv(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function _v(e="bottom"){const t=xv(e),n=kv(e),o=wv("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const Ev=mv("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),Cv=mv("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Sv=mv("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),Rv=mv("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),Tv=mv("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Av=mv("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Iv=mv("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),jv=mv("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function Ov({text:e}){return g.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Pv=mv("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Lv=mv("span",{color:"white"}),Dv=mv("button",{cursor:"pointer",color:"white"}),zv=mv("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),qv=({value:e})=>{const[t,n]=g.useState("NoCopy");return g.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(sv.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?g.createElement(Fv,null):"SuccessCopy"===t?g.createElement(Wv,null):g.createElement(Gv,null))},Mv=mv("span",(e,t)=>({color:t.danger})),Nv=mv("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Bv=mv("span",{color:"grey",fontSize:".7em"}),Uv=({expanded:e,style:t={}})=>g.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Fv=()=>g.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},g.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),g.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),Gv=()=>g.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},g.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},g.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),g.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Wv=()=>g.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},g.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},g.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const Vv=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=g.useState([]);return g.createElement(Pv,{key:t},a.length?g.createElement(g.Fragment,null,g.createElement(zv,{onClick:()=>c()},g.createElement(Uv,{expanded:r})," ",t," ",g.createElement(Bv,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?g.createElement(qv,{value:n}):null,r?1===a.length?g.createElement(Nv,null,o.map(e)):g.createElement(Nv,null,a.map((t,n)=>g.createElement("div",{key:n},g.createElement(Pv,null,g.createElement(Dv,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},g.createElement(Uv,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?g.createElement(Nv,null,t.map(e)):null)))):null):g.createElement(g.Fragment,null,g.createElement(Lv,null,t,":")," ",g.createElement(Mv,null,hv(n))))};function Hv({value:e,defaultExpanded:t,renderer:n=Vv,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=g.useState(Boolean(t)),c=g.useCallback(()=>s(e=>!e),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>g.createElement(Hv,Gg({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Kv(e){return g.createElement("svg",Gg({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),g.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(-33.000000, 0.000000)"},g.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),g.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),g.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const $v=(e,t,n=!1)=>_g.useSyncExternalStore(g.useCallback(t=>n?()=>{}:e.subscribe(og.batchCalls(t)),[e,n]),t,t),Qv=g.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Tg({context:i}),y=f.getQueryCache(),[v,b]=sy("reactQueryDevtoolsSortFn",Object.keys(yv)[0]),[x,k]=sy("reactQueryDevtoolsFilter",""),[w,_]=sy("reactQueryDevtoolsBaseSort",1),E=g.useMemo(()=>yv[v],[v]),C=$v(y,()=>y.getAll().length,!n),[S,R]=sy("reactQueryDevtoolsActiveQueryHash",""),T=g.useMemo(()=>{const e=y.getAll();if(0===C)return[];const t=x?e.filter(e=>ty(e.queryHash,x).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,x,C,y]),[A,I]=g.useState(!1);return g.createElement(lv,{theme:cv},g.createElement(Ev,Gg({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:vv,position:"relative",...d.style}}),g.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+cv.backgroundAlt+" "+cv.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+cv.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+cv.gray+";\n border-radius: .5em;\n border: 3px solid "+cv.backgroundAlt+";\n }\n "}}),g.createElement("div",{style:_v(u),onMouseDown:r}),n&&g.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+cv.grayAlt,display:"flex",flexDirection:"column"}},g.createElement("div",{style:{padding:".5em",background:cv.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},g.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},g.createElement(Kv,{"aria-hidden":!0}),g.createElement(Ov,{text:"Close React Query Devtools"})),g.createElement("div",{style:{display:"flex",flexDirection:"column"}},g.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},g.createElement(Xv,{queryCache:y}),u&&s?g.createElement(jv,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},g.createElement("option",{value:"left"},"Left"),g.createElement("option",{value:"right"},"Right"),g.createElement("option",{value:"top"},"Top"),g.createElement("option",{value:"bottom"},"Bottom")):null),g.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},g.createElement(Iv,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=x?x:"",onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&k("")},style:{flex:"1",width:"100%"}}),g.createElement(jv,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(yv).map(e=>g.createElement("option",{key:e,value:e},"Sort by ",e))),g.createElement(Sv,{type:"button",onClick:()=>_(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),g.createElement(Sv,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),g.createElement(Sv,{type:"button",onClick:()=>{A?(Jf.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Jf.setOnline(!1),I(!0))},"aria-label":A?"Restore offline mock":"Mock offline behavior",title:A?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:A?cv.danger:"currentColor",fill:"none"},A?g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),g.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),g.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):g.createElement(g.Fragment,null,g.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),g.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),g.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),g.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),g.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),g.createElement(Ov,{text:A?"Restore offline mock":"Mock offline behavior"}))))),g.createElement("div",{style:{overflowY:"auto",flex:"1"}},T.map(e=>g.createElement(Yv,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y})))),S&&n?g.createElement(Jv,{activeQueryHash:S,queryCache:y,queryClient:f,errorTypes:p}):null,c?g.createElement(Sv,Gg({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))}),Jv=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=$v(e,()=>e.getAll().find(e=>e.queryHash===t)),s=$v(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),c=null!=(a=$v(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&a,u=null!=(i=$v(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?i:0,l=h.useMemo(()=>{if(r&&null!=s&&s.error){const e=o.find(e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())});return null==e?void 0:e.name}},[r,null==s?void 0:s.error,o]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return g.createElement(Cv,null,g.createElement("div",{style:{padding:".5em",background:cv.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),g.createElement("div",{style:{padding:".5em"}},g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},g.createElement(Av,{style:{lineHeight:"1.8em"}},g.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},hv(r.queryKey,!0))),g.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:pv({queryState:s,isStale:c,observerCount:u,theme:cv}),flexShrink:0}},dv(r))),g.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",g.createElement(Av,null,u)),g.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",g.createElement(Av,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),g.createElement("div",{style:{background:cv.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),g.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},g.createElement(Sv,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(Zv)},disabled:"fetching"===s.fetchStatus,style:{background:cv.active}},"Refetch")," ",g.createElement(Sv,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:cv.warning,color:cv.inputTextColor}},"Invalidate")," ",g.createElement(Sv,{type:"button",onClick:()=>n.resetQueries(r),style:{background:cv.gray}},"Reset")," ",g.createElement(Sv,{type:"button",onClick:()=>n.removeQueries(r),style:{background:cv.danger}},"Remove")," ",g.createElement(Sv,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:cv.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?g.createElement(Sv,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:cv.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):g.createElement("label",null,"Trigger error:",g.createElement(jv,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find(t=>t.name===e.target.value);p(t)}},g.createElement("option",{key:"",value:""}),o.map(e=>g.createElement("option",{key:e.name,value:e.name},e.name))))),g.createElement("div",{style:{background:cv.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Hv,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),g.createElement("div",{style:{background:cv.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),g.createElement("div",{style:{padding:".5em"}},g.createElement(Hv,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},Xv=({queryCache:e})=>{const t=$v(e,()=>e.getAll().filter(e=>"fresh"===dv(e)).length),n=$v(e,()=>e.getAll().filter(e=>"fetching"===dv(e)).length),o=$v(e,()=>e.getAll().filter(e=>"paused"===dv(e)).length),a=$v(e,()=>e.getAll().filter(e=>"stale"===dv(e)).length),i=$v(e,()=>e.getAll().filter(e=>"inactive"===dv(e)).length);return g.createElement(Rv,null,g.createElement(Tv,{style:{background:cv.success,opacity:t?1:.3}},"fresh ",g.createElement(Av,null,"(",t,")"))," ",g.createElement(Tv,{style:{background:cv.active,opacity:n?1:.3}},"fetching ",g.createElement(Av,null,"(",n,")"))," ",g.createElement(Tv,{style:{background:cv.paused,opacity:o?1:.3}},"paused ",g.createElement(Av,null,"(",o,")"))," ",g.createElement(Tv,{style:{background:cv.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",g.createElement(Av,null,"(",a,")"))," ",g.createElement(Tv,{style:{background:cv.gray,opacity:i?1:.3}},"inactive ",g.createElement(Av,null,"(",i,")")))},Yv=g.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=$v(o,()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash}))?a:"",u=$v(o,()=>{var t;return null==(t=o.find(e))?void 0:t.state}),l=null!=(i=$v(o,()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()}))&&i,p=null!=(r=$v(o,()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()}))&&r,d=null!=(s=$v(o,()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()}))?s:0;return u?g.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+cv.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},g.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:pv({queryState:u,isStale:l,observerCount:d,theme:cv}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?g.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:cv.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,g.createElement(Av,{style:{padding:".5em"}},""+c)):null});function Zv(){}Yv.displayName="QueryRow";const eb="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=g.useRef(null),p=g.useRef(null),[d,m]=sy("reactQueryDevtoolsOpen",e),[h,f]=sy("reactQueryDevtoolsHeight",vv),[y,v]=sy("reactQueryDevtoolsWidth",vv),[b="bottom",x]=sy("reactQueryDevtoolsPanelPosition",c),[k,w]=g.useState(!1),[_,E]=g.useState(!1),C=function(){const e=g.useRef(!1),t=g.useCallback(()=>e.current,[]);return g.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();g.useEffect(()=>{w(null!=d&&d)},[d,k,w]),g.useEffect(()=>{const e=p.current;if(e){const t=()=>{k&&(e.style.visibility="visible")},n=()=>{k||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[k]),g.useEffect(()=>{var e;if(k&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=wv("padding",b),n=xv(b),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:h)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach(([t,n])=>{e.style[t]=n})}}},[k,b,h,y]);const{style:S={},...R}=t,{style:T={},onClick:A,...I}=o,j=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=kv(e),c=wv("border",s),u=xv(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:vv}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:vv}}}({position:b,devtoolsTheme:cv,isOpen:k,height:h,width:y,isResizing:_,panelStyle:S});return C()?g.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},g.createElement(lv,{theme:cv},g.createElement(Qv,Gg({ref:p,context:r,styleNonce:s,position:b,onPositionChange:x,showCloseButton:!0,closeButtonProps:n},R,{style:j,isOpen:k,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=xv(b);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===b?i-e.clientX:e.clientX-i),v(s)):(s=o+("bottom"===b?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{_&&E(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:u}))),k?null:g.createElement("button",Gg({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!0),null==A||A(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...T}}),g.createElement(Kv,{"aria-hidden":!0}),g.createElement(Ov,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var tb,nb={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(tb=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",tb.ETIMEDOUT="ETIMEDOUT",tb.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var ob=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&ob&&function(){e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:if(!wi())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,bi.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),console.error("Error starting MSW:",t),[3,4];case 4:return[2]}})})}(),exports.Api=_f,exports.ApiProvider=function(t){var n=this,o=t.children,a=process.env.ENVIRONMENT,i=h.useMemo(function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"},[a]),r=h.useState(!1),s=r[0],c=r[1],u=h.useCallback(function(t){return e.__awaiter(n,void 0,void 0,function(){var n,o,a,r,s;return e.__generator(this,function(c){switch(c.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),s=r?JSON.parse(r).value:"",[4,Cf.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":a||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return c.sent(),[2]}})})},[i]);h.useEffect(function(){return addEventListener("ACCOUNT_CHANGED",u),function(){window.removeEventListener("ACCOUNT_CHANGED",u)}},[u]);var l=h.useCallback(function(t){return e.__awaiter(n,void 0,void 0,function(){var n,o,a,r,s,u,l;return e.__generator(this,function(p){switch(p.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),s=r?null===(l=JSON.parse(r).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,Cf.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":t||i,"x-organization-code":u,"x-account-code":s,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:p.sent(),Mg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),p.label=2;case 2:return[2]}})})},[i,c]);return h.useEffect(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?l(n):"token"===t.key&&l(e)}}),l(e)},[c,l]),s?React.createElement(Ag,{client:Mg},o,React.createElement(eb,{initialIsOpen:!1})):React.createElement("div",{style:nb})},exports.ApiSingleton=Cf,exports.getQueryKeyGetNameAndIcon=Bg,exports.getQueryKeyRequiredFields=Ug,exports.queryCache=qg,exports.queryClient=Mg,exports.use3DSExemptions=function(){var t=this;return Lg({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Dg(function(e){return Cf.getInstance().generateAIWorkflowRoutes(t,e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAllFeatureFlags=function(t){var n=this,o=Lg({queryKey:["all-feature-flags",Object.values(t).filter(Boolean)],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getFeatureFlagIdAll({accountCode:t.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!t.account_code&&!!t.organization_code&&!!t.email,cacheTime:9e5,useErrorBoundary:!1}),a=Tg();return h.useEffect(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o},exports.useAllowListDetail=function(e,t,n){return Lg(["allow-list-detail",e],function(){return Cf.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})},exports.useBlackListDetail=function(e,t,n,o,a,i){return Lg(["black-list-detail",e,t,o,a,i],function(){return Cf.getInstance().getBlacklistDetail(e,t,n,o,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&i,cacheTime:0})},exports.useCachedFeatureFlag=function(t){var n,o,a=Tg(),i=a.getQueryState(["cached-feature-flags"]),r=Boolean(!(null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.status)),s=Lg({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(e){var n;return{result:null===(n=null==e?void 0:e.data)||void 0===n?void 0:n[t]}},initialData:function(){var e=a.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return e.__assign(e.__assign({},s),{isLoading:r})},exports.useCancelReport=function(){return Dg(function(e){return Cf.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})},exports.useChangePasswordV2=function(){var t=this;return Dg(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().changePasswordV2(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useChangePaymentsWebhook=function(){return Dg(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Cf.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusBlackList=function(){return Dg(["change-blacklist"],function(e){return Cf.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusItemBlackList=function(){return Dg(["change-blacklist-item"],function(e){return Cf.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStylingSettings=function(){return Dg(function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Cf.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useChangeTemplateStatus=function(){var t=this;return Dg(["POST/template-reporting/report-templates/status"],function(n){var o=n.templateId,a=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Dg(function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Cf.getInstance().uploadChargebacks(t,n,o,a)})},exports.useChartAssistantSocket=function(){var e=h.useRef(null),t=h.useRef(null),n=h.useRef(null),o=h.useState(!1),a=o[0],i=o[1],r=h.useState(null),s=r[0],c=r[1],u=h.useState(null),l=u[0],p=u[1],d=h.useCallback(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),m=h.useCallback(function(){var o;if((null===(o=e.current)||void 0===o?void 0:o.readyState)!==WebSocket.OPEN){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),p(null);try{var a=new WebSocket("".concat(Ef["WS_URL_".concat(Ef.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=a,a.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&a.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){a.readyState===WebSocket.OPEN?a.send(JSON.stringify({type:"ping"})):(d(),i(!1))},3e4)},a.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){p("Failed to parse server response")}},a.onerror=function(e){p("Connection error occurred"),i(!1)},a.onclose=function(e){i(!1),d(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){m()},5e3))}}catch(e){p("Failed to establish connection")}}},[]),f=h.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),g=h.useCallback(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),y=h.useCallback(function(){c(null)},[]),v=h.useCallback(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return h.useEffect(function(){return m(),function(){d(),v()}},[]),{subscribe:f,unsubscribe:g,disconnect:v,connect:m,clearChartData:y,isConnected:a,chartData:s,connectionError:l}},exports.useChartExecute=function(e){return Lg(["chartgpt-chart-execute",e],function(){return Cf.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})},exports.useCloneTemplate=function(){var t=this;return Dg(["POST/template-reporting/report-templates/clone"],function(n){var o=n.templateId,a=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(e,t){return Lg(["fetch-communication-details",e],function(){return Cf.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})},exports.useCommunications=function(e){var t;return Lg(["fetch-communications",e],function(){return Cf.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})},exports.useCommunicationsFilters=function(){return Lg(["fetch-communications-filters"],function(){return Cf.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useConfirmedOtpMfa=function(){return Dg(function(e){return Cf.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})},exports.useCountRowsForReport=function(){return Dg(function(e){return Cf.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useCreateAndExecuteChart=function(){var t=this;return Dg(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,o,a,i,r;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(i=null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==i?i:null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}})})},{useErrorBoundary:!1})},exports.useCreateAndExecuteChartWithTimezone=function(){var t=this;return Dg(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,o,a,i,r;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(i=null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==i?i:null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}})})},{useErrorBoundary:!1})},exports.useCreateChart=function(){return Dg(function(e){return Cf.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateChartWithTimezone=function(){return Dg(function(e){return Cf.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateMonitorTemplate=function(e){return Dg(function(t){return Cf.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})},exports.useCreateMonitorThreshold=function(e){return Dg(function(t){return Cf.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},exports.useCreateOperationTransaction=function(){return Dg(function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Cf.getInstance().createOperationTransaction(t,n,o,a)})},exports.useCreatePaymentLinks=function(){return Dg(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.useCreateReconciliationAlert=function(){return Dg(["POST/reconciliation/alerts"],function(e){return Cf.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Dg(function(){return Cf.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return e.__awaiter(n,void 0,void 0,function(){var n,o;return e.__generator(this,function(a){switch(a.label){case 0:return[4,Mg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return a.sent(),n=null===(o=Mg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Mg.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e.__spreadArray(e.__spreadArray([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Mg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Mg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Dg(function(e){return Cf.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Dg(function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return e.__awaiter(n,void 0,void 0,function(){var n;return e.__generator(this,function(o){switch(o.label){case 0:return[4,Mg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=Mg.getQueryData(["GET/reports/templates"]),Mg.setQueryData(["GET/reports/templates"],function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Mg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Mg.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Dg(function(e){return Cf.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRoles=function(){return Dg(function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return Dg(function(e){return Cf.getInstance().createSamlConfig(e)})},exports.useCreateSchedule=function(){var t=this;return Dg(["POST/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().createReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){return Dg(function(e){var t=e.payload;return Cf.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})},exports.useCreateTemplate=function(){var t=this;return Dg(["POST/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().createTemplateReporting(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useCreateUserAuth0=function(){return Dg(function(e){return Cf.getInstance().createUserAuth0(e)})},exports.useCreateWorkflow=function(t,n,o){var a=this;return void 0===o&&(o=null),Dg(function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().postSmartRoutingCreateWorkflow(t,n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},o)},exports.useDeactivateSchedule=function(){var t=this;return Dg(["POST/template-reporting/report-schedules/deactivate"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().deactivateReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})},exports.useDeleteAccountsUserMassive=function(){return Dg(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Cf.getInstance().deleteAccountsUserMassive(t,n,o)})},exports.useDeleteAllowlistItem=function(){return Dg(["delete-allowlist-item"],function(e){return Cf.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteBlackListType=function(){return Dg(["delete-blacklist"],function(e){var t=e.black_list_code;return Cf.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteBlockListItem=function(){return Dg(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Cf.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteChart=function(){return Dg(function(e){return Cf.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){return Dg(function(e){var t=e.code;return Cf.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeletePaymentLink=function(){return Dg(["post-delete-payment-link"],function(e){var t=e.code;return Cf.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteReconciliationAlert=function(){return Dg(["DELETE/reconciliation/alerts"],function(e){return Cf.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteRoles=function(){return Dg(function(e){return Cf.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteSamlConfig=function(){return Dg(function(){return Cf.getInstance().deleteSamlConfig()})},exports.useDeleteSchedule=function(){var t=this;return Dg(["DELETE/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().deleteReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/schedules"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Dg(function(e){return Cf.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useDeleteTemplate=function(){var t=this;return Dg(["DELETE/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().deleteReportTemplate(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){return Dg(function(e){var t=e.userCode,n=e.organizationCode;return Cf.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Dg(function(){return Cf.getInstance().deleteSmartRoutingVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)},exports.useDeleteWebhookV2=function(e){return Dg(function(e){var t=e.code,n=e.accountCode;return Cf.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Dg(function(){return Cf.getInstance().postSmartRoutingDuplicateVersion(o,n).then(function(e){return null==e?void 0:e.data})},t)},exports.useEditPaymentLinks=function(){return Dg(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Cf.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then(function(e){return null==e?void 0:e.data})})},exports.useEditRoles=function(){var t=this;return Dg(function(n){var o=n.payload,a=n.id,i=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return Lg(["email-verification",e],function(){return Cf.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})},exports.useExcludeUsers=function(){return Dg(function(e){var t=e.payload,n=e.organizationCode;return Cf.getInstance().mfaExcludeUsers(t,n)})},exports.useExportApiLogs=function(){return Dg(function(e){return Cf.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useFeatureFlags=function(t){var n=this,o=Object.values(t).filter(Boolean);return Lg(["feature-flags",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getFeatureFlagId(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})},exports.useFirebaseUserSubscribe=function(e){return Dg(function(e){var t=e.payload;return Cf.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Dg(function(e){return Cf.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},t),{useErrorBoundary:!1}))},exports.useGetAccounts=function(e){var t,n=Ng(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Lg({queryKey:["accounts",o],queryFn:function(){return Cf.getInstance().getAccounts(o).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})},exports.useGetAccountsByUser=function(e){return Lg(["accountsV2-by-user",e],function(){return e?Cf.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})},exports.useGetAccountsForImpersonation=function(t,n){var o=this;return Lg({queryKey:["accounts-for-impersonation",t,n],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getAccountsForImpersonation(t).then(function(e){var t,o;return(null===(o=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===o?void 0:o.map(function(e){return{label:e.name,value:n?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetAccountsV2=function(e){return Lg(["accountsV2",e],function(){return Cf.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})},exports.useGetAllConfigRules=function(){return Lg(["config-rules"],function(){return Cf.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})},exports.useGetAllOrganizations=function(){return Lg(["fetch-all-organizations",Ng()],function(){return Cf.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetAllReconciliationsAdvancements=function(e){var t=e.body,n=e.params,o=e.enabled;return Lg(["GET/reconciliation/advancements/list",t,n],function(){return Cf.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAgenda=function(e){var t=e.body,n=e.params,o=e.enabled;return Lg(["GET/reconciliation/agenda/list",t,n],function(){return Cf.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsAlerts=function(e){var t=e.body,n=e.params,o=e.enabled;return Lg(["GET/reconciliation/alerts/list",t,n],function(){return Cf.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsFees=function(e){var t=e.body,n=e.params,o=e.enabled;return Lg(["GET/reconciliation/fees/list",t,n],function(){return Cf.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllReconciliationsSales=function(e){var t=e.body,n=e.params,o=e.enabled;return Lg(["GET/reconciliation/sales/list",t,n],function(){return Cf.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return Lg(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Cf.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useGetAllowedIps=function(){return Lg(["developers-get-allowed-ips"],function(){return Cf.getInstance().getAllowedIps().then(function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null}).catch(function(t){return e.__assign(e.__assign({},t),{isError:!0})})},{enabled:!1,cacheTime:0})},exports.useGetApiLogsDetailByPaymentCode=function(e){return Lg(["api-logs-detail",e],function(){return Cf.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditEvents=function(e){return Lg(["events",e],function(){return Cf.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})},exports.useGetAuditLogsFilters=function(){return Lg(["/cms/audit-logs-filters"],function(){return Cf.getInstance().useGetAuditLogsFilters().then(function(e){return cf(e)?mf:null==e?void 0:e.data}).catch(function(){return mf})})},exports.useGetAuditMonitorEventDetail=function(e){return Lg(["audit-monitor-event-detail",e],function(){return Cf.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})},exports.useGetBatchRefundProcessedFileDownload=function(){var t=this;return Dg(function(n){var o=n.batchRefundId,a=n.organizationCode,i=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Dg(function(n){var o=n.batchRefundId,a=n.organizationCode,i=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefunds=function(t,n){var o=this;return void 0===t&&(t=26),void 0===n&&(n=0),Lg(["batch-refunds",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getBatchRefunds(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})},exports.useGetBlackList=function(e){return Lg(["get-black-list",e],function(){return Cf.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e})},exports.useGetBlockListSummary=function(e,t,n){return Lg(["get-block-list-summary",e,t,n],function(){var o=Cf.getInstance();return n?o.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})},exports.useGetCardBrands=function(){return Lg(["GET/catalog/card-brands"],function(){return Cf.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetChartsByUser=function(){return Lg(["chartgpt-user-charts"],function(){return Cf.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Lg(["chartgpt-user-charts-with-results"],function(){return e.__awaiter(t,void 0,void 0,function(){var t,n,o,a=this;return e.__generator(this,function(i){switch(i.label){case 0:return[4,(t=Cf.getInstance()).getChartsByUser()];case 1:return n=i.sent(),o=(null==n?void 0:n.data)||[],[4,Promise.all(o.map(function(n){return e.__awaiter(a,void 0,void 0,function(){var o,a,i,r,s,c,u,l;return e.__generator(this,function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return o=p.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(r=null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.user_prompt)&&void 0!==r?r:n.user_prompt,unit_to_display:null!==(c=null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==c?c:n.unit_to_display,results:null!==(l=null===(u=null==o?void 0:o.data)||void 0===u?void 0:u.results)&&void 0!==l?l:[]})];case 2:return a=p.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),a),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,i.sent()]}})})})},exports.useGetCheckoutTemplate=function(e){var t=e.accountCode;return Lg(["checkouts-template"],function(){return Cf.getInstance().getCheckoutTemplate({accountCode:t}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(t)})},exports.useGetCheckouts=function(e){var t=e.accountCode;return Lg(["checkouts",t],function(){return Cf.getInstance().getCheckouts({accountCode:t}).then(function(e){return e.data})},{cacheTime:0,enabled:Boolean(t)})},exports.useGetConditionalConfigRules=function(){return Dg(function(e){return Cf.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetConfigAllowlist=function(e,t){return Lg(["get-cofig-allow-list",e],function(){return Cf.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})},exports.useGetConnections=function(){return Lg(["connections"],function(){return Cf.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useGetConnectionsByPaymentMethod=function(e){var t=e.accountCode,n=e.paymentMethod;return Lg(["fetch-connections-by-payment-method",n,t],function(){return Cf.getInstance().getConnectionsByPaymentMethod(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetCountriesConfigPaymentLink=function(e){return void 0===e&&(e=!0),Lg(["countries",e],function(){return Cf.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})},exports.useGetCountriesConfigPaymentLinkV2=function(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Lg(["countries-v2",n],function(){return Cf.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode;return Lg(["developers"],function(){return Cf.getInstance().getDeveloperCredentials(n,o).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.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})},exports.useGetCredentialsMFA=function(){return Dg(function(t){var n=t.password,o=t.accountCode;return Cf.getInstance().getDeveloperCredentials(n,o).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.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}})})},exports.useGetCustomizedApiKeys=function(e){return Lg(["fetch-customized-api-keys",e],function(){return Cf.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)})},exports.useGetCustomizedApiKeysAccounts=function(){return Lg(["fetch-customized-api-keys-accounts"],function(){return Cf.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return Lg(["fetch-customized-api-keys-members"],function(){return Cf.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return Lg(["fetch-customized-api-keys-products"],function(){return Cf.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})},exports.useGetCustomizedApiKeysToken=function(){return Dg(function(e){var t=e.code,n=e.password;return Cf.getInstance().getCustomizedApiKeysToken(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.useGetDashboardStaticContents=function(){return Lg(["/cms/static-contents"],function(){return Cf.getInstance().getDashboardStaticContents().then(function(e){var t,n;return cf(e)?hf:(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})},exports.useGetDialogs=function(){return Lg(["dialogs"],function(){return Cf.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})},exports.useGetDownloadReport=function(e,t,n){return void 0===t&&(t=!1),Lg(["reports/".concat(e)],function(){return Cf.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return Dg(function(){return Cf.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})},exports.useGetHashPylon=function(){var t=this;return Lg(["fetch-hash-pylon"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){return Lg(["fetch-impersonation-enabled"],function(){return Cf.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetImpersonationUsers=function(){return Lg(["fetch-impersonation-users"],function(){return Cf.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})},exports.useGetInsightsReport=function(e){return Lg(["get-insights-reports",e],function(){return Cf.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})},exports.useGetInsightsReportAgain=function(e){return Lg(["get-insights-reports-again",e],function(){return Cf.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})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=Ng();return Lg(["organizations-account-integrations",t,n],function(){return Cf.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})},exports.useGetIntegrationParams=function(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Lg(["integration-params",t,o],function(){return t.includes("undefined")?{}:Cf.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})},exports.useGetLanguages=function(){return Lg(["languages"],function(){return Cf.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})},exports.useGetLocales=function(){return Lg(["/cms/locales"],function(){return Cf.getInstance().getLocales().then(function(e){return cf(e)?gf:e.data}).catch(function(){return gf})})},exports.useGetLoginMethods=function(){return Lg({queryKey:["get-login-methods"],queryFn:function(){return Cf.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})},exports.useGetMFAConfig=function(e,t){var n=e.organizationCode;return Lg(["mfa-config",n],function(){return Cf.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})},exports.useGetMFAExcludedUsers=function(e,t){var n=e.organizationCode;return Lg(["mfa-excluded-users",n],function(){return Cf.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})},exports.useGetMFAStatus=function(e,t){return Lg(["mfa-enforcement-status",e.accountCode],function(){return Cf.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})},exports.useGetMenu=function(){return Lg(["menu"],function(){return Cf.getInstance().getMenu().then(function(e){return cf(e)?ff:null==e?void 0:e.data}).catch(function(){return ff})})},exports.useGetMergedNotifications=function(){return Lg(["notifications-merged"],function(){return Cf.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})},exports.useGetNameAndIcon=function(e,t){var n=e.paymentMethodType,o=e.type;return Lg(Bg({paymentMethodType:n,type:o}),function(){return Cf.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetNetworkTokensOnboardingByOrganization=function(t){var n=this;return Lg({queryKey:["network-tokens-onboarding",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getNetworkTokensOnboardingByOrganization(t)];case 1:return[2,e.sent().data]}})})},enabled:!!t,useErrorBoundary:!1})},exports.useGetNotificationsCustomer=function(e){return Lg(["notifications-customer",e],function(){return Cf.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})},exports.useGetNotificationsNumberMutation=function(){return Dg(function(e){return Cf.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetOrganization=function(){return Lg(["fetch-organizations"],function(){return Cf.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.PAYMENTS),Lg(["payment-filters",e,t],function(){return Cf.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})},exports.useGetPaymentLinkByCode=function(e){return Lg(["payment-link"],function(){return Cf.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})},exports.useGetPaymentLinks=function(e,t){return Lg(["fetch-payment-links",e,t],function(){return Cf.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodsAndProviders=function(){return Lg({queryKey:["/payment-methods/providers"],queryFn:function(){return Cf.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})},exports.useGetPaymentMetricsFilters=function(){return Lg(["payment-metrics-filters"],function(){return Cf.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){return Lg(["/payment/statuses/style"],function(){return Cf.getInstance().useGetPaymentStatusesStyles().then(function(e){return cf(e)?uf:null==e?void 0:e.data}).catch(function(){return uf})})},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return Lg(["payment-transaction-details",t],function(){return Cf.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetPaymentV2=function(t){var n=this,o=t.paymentCode,a=t.enabled,i=void 0===a||a,r=Cf.getInstance();return Lg(["get-payment-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,r.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=Ng();return Lg(["payment-methods",e],function(){return Cf.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})},exports.useGetPayoutDetail=function(e){return Lg(["GET/payout-detail",JSON.stringify(e)],function(){var t=Cf.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})},exports.useGetPayoutHistoryDetail=function(e){var t=Ng();return Lg(["GET/payout-history-detail",JSON.stringify(e)],function(){return Cf.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})},exports.useGetPayoutTransactionDetail=function(e){return Lg(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Cf.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})},exports.useGetPermissions=function(e,t){return Lg(["fetch-permissions",e,t],function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);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}}))||[]})},exports.useGetPermissionsCatalog=function(){return Lg(["fetch-permissions-catalog"],function(){return Cf.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useGetProfile=function(){return Lg(["fetch-profile"],function(){return Cf.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})},exports.useGetProofOfCancel=function(t,n){var o=this,a=Ng();return Lg(["GET/useGetProofOfCancel",a,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getProofOfCancel(t,a,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!a&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var o=this,a=Ng();return Lg(["GET/useGetProofOfPayment",a,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getProofOfPayment(t,a,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!a&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=Ng();return Lg(["organizations-provider-params",e],function(e){var n=e.queryKey;return Cf.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return Lg(["GET/v1/reconciliation/active"],function(){return Cf.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return Lg(["GET/reconciliation/agenda/insights",t,n],function(){return Cf.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Lg(["GET-reconciliation-filters"],function(){return Cf.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return Lg(["fetch-reconciliation-metrics",e],function(){return Cf.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})},exports.useGetReconciliationTransactionStatusesStyles=function(){return Lg(["/reconciliation/transaction/statuses/style"],function(){return Cf.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return cf(e)?pf:null==e?void 0:e.data}).catch(function(){return pf})})},exports.useGetReconciliationTransactions=function(e,t){return Lg(["fetch-reconciliation-transaction",e],function(){return Cf.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})},exports.useGetReconciliationsReportColumns=function(e,t,n){return Lg(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Cf.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})},exports.useGetReconciliationsReportTemplates=function(e){return Lg(["GET/reconciliation/reports/templates"],function(){return Cf.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})},exports.useGetRefundPdf=function(t,n){var o=this,a=Ng();return Lg(["getRefundPdf",t,a,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getRefundPdf(t,a,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!t&&!!a,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){var a=this;return Lg(["GET/reports/columns/".concat(n,"/").concat(o)],function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(t){return[2,Cf.getInstance().getReportColumns(n,o).then(function(t){return n===exports.TemplateType.ALL&&o===exports.ReportType.PAYMENTS?e.__spreadArray(e.__spreadArray([],null==t?void 0:t.data,!0),[Fg],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return Lg(["GET/reports/templates"],function(){return Cf.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})},exports.useGetReportsList=function(){return Lg(["reports"],function(){return Cf.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),Lg(["reports-multi-env"],function(){return Cf.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})},exports.useGetRequiredFields=function(e,t){var n=e.paymentMethodType,o=e.type;return Lg(Ug({paymentMethodType:n,type:o}),function(){return Cf.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetRoles=function(){return Lg(["fetch-roles"],function(){return Cf.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetRolesPermissions=function(){return Lg(["fetch-rolespermissions"],function(){return Cf.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetRoutingMonitorsTemplate=function(e,t){return Lg(["fetch-routing-monitors-template",e],function(){return Cf.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})},exports.useGetRoutingMonitorsTemplates=function(e){return Lg(["fetch-routing-monitors-templates",e],function(){return Cf.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return Dg(function(e){return Cf.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetSamlConfig=function(e){return Lg(["fetch-organization-saml-config",e],function(){return Cf.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduleById=function(t,n){var o=this;return Lg(["GET/template-reporting/schedule-by-id",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getReportScheduleById(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetScheduledReportsList=function(e){return Lg(["GET/scheduled-reports",e],function(){return Cf.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetSchedulesList=function(t){var n=this;return Lg(["GET/template-reporting/schedules"],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getReportSchedulesList().then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1,cacheTime:0})},exports.useGetSettlements=function(e,t){return Lg(["fetch-reconciliation-settlements",e],function(){return Cf.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})},exports.useGetSmartRoutingConditionPaymentMethod=function(e,t){return Lg(["smart-routing-condition-payment-method",e,t],function(){return Cf.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})},exports.useGetSmartRoutingConditionTypes=function(e,t){return Lg(["smart-routing-condition-types",e,t],function(){return Cf.getInstance().getSmartRoutingConditionTypes(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return Lg(["smart-routing-condition-types-values",t,e],function(){return Cf.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingDataReport=function(e){return Lg(["data-report",e],function(){return Cf.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e){return Lg(["smart-routing-decline-groups",e],function(){return Cf.getInstance().getSmartRoutingDeclinedGroup(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e){return Lg(["smart-routing-methods",e],function(){return Cf.getInstance().getSmartRoutingMethods(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingNextRoute=function(e,t,n){return Lg(["smart-routing-next-route",e,n,t],function(){return Cf.getInstance().getSmartRoutingNextSteps(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})},exports.useGetSmartRoutingPaymentRoute=function(e,t){return Lg(["smart-routing-payment-route",e,t],function(){return Cf.getInstance().getSmartRoutingPaymentRoute(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!t,cacheTime:0})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return Lg(["smart-routing-search-condition-values",t,n],function(){return Cf.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})},exports.useGetSmartRoutingSimulateConditionTypeValues=function(e){return Lg(["smart-routing-simulate-condition-type-values",e],function(){return Cf.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t){return Lg(["smart-routing-workflow",t,e],function(){return Cf.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})},exports.useGetSmartRoutingWorkflowVersion=function(e){var t=e.accountCode,n=e.workflowVersionId;return Lg(["smart-routing-workflow-version",n,t],function(){return Cf.getInstance().getSmartRoutingWorkflowVersion(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})},exports.useGetStylingSdkDynamic=function(e){var t=e.accountCode;return Lg(["styling-sdk-dynamic",t],function(){return Cf.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})},exports.useGetStylingSettings=function(e){var t=e.accountCode;return Lg(["styling-settings",t],function(){return Cf.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})},exports.useGetStylingSettingsV2=function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Lg(["styling-settings-v2",t],function(){return Cf.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})},exports.useGetStylingTheme=function(e){var t=e.accountCode;return Lg(["styling-theme",t],function(){return Cf.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})},exports.useGetTeamsFiltersMembers=function(){var e=Ng();return Lg(["teams-filters-members"],function(){return Cf.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetTemplateById=function(t,n){var o=this;return Lg(["GET/template-reporting/template-by-id",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getReportTemplateById(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n&&!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetTemplatesList=function(t,n){var o=this;return Lg(["GET/template-reporting/templates",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getReportTemplatesList(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1,cacheTime:0})},exports.useGetTimeZoneCatalog=function(){return Lg(["timezone-catalog"],function(){return Cf.getInstance().useGetTimeZoneCatalog().then(function(e){return cf(e)?df:null==e?void 0:e.data}).catch(function(){return df})})},exports.useGetTimezonePaymentLink=function(e){return Lg(["timezone"],function(){return Cf.getInstance().getTimezone(e).then(function(e){return cf(e)?df:null==e?void 0:e.data}).catch(function(){return df})},{enabled:!0,keepPreviousData:!0})},exports.useGetTokenValidation=function(){return Dg(function(e){var t=e.password,n=e.otp;return Cf.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useGetTransactionDetailsV2=function(t){var n=this,o=t.payment_code,a=t.enabled,i=void 0===a||a,r=Cf.getInstance();return Lg(["get-payment-transaction-details-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,r.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return Lg(["transaction-history",t],function(){return Cf.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetTransactionRawResponse=function(t){var n=this,o=t.transaction_code,a=t.enabled,i=void 0===a||a,r=Cf.getInstance();return Lg(["get-payment-transaction-raw-response",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,r.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionStatusesStyles=function(){return Lg(["/transaction/statuses/style"],function(){return Cf.getInstance().useGetTransactionStatusesStyles().then(function(e){return cf(e)?lf:null==e?void 0:e.data}).catch(function(){return lf})},{cacheTime:36e5,useErrorBoundary:!1})},exports.useGetTranslations=function(){var e=localStorage.getItem("lang")||"en";return Lg(["translations",e],function(){return Cf.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})},exports.useGetUserFull=function(){var t=this;return Lg(["get-user-full"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,o,a,i){var r=this;return void 0===o&&(o=1),void 0===a&&(a=10),Lg(["get-users-to-impersonate",t,n,o,a,i],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getUsersToImpersonate(t,n,o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetValidateOpsgenieKey=function(e){return Lg(["validate-opsgenie-key",e],function(){return Cf.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})},exports.useGetWebhookParamsV2=function(){return Lg(["params-catalog"],function(){return Cf.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return Lg(["webhooks-detail",t],function(){return Cf.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})},exports.useGetWebhooksV3=function(e){var t=e.accountCode,n=e.name;return Lg(["webhooks",t,n],function(){return Cf.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})},exports.useInsights3dsConversionRateAndEvolution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsights3dsConversionRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsDeclineReasons=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsights3dsDeclineReasons(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsFrictionlessVsChallenge=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsights3dsFrictionlessVsChallenge(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsights3dsVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsights3dsVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksByCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksByProviderAndCardBrand=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksByProviderAndCardBrand(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksDisputed=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksDisputed(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksReasonsDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksReasonsDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksStatusDistribution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksStatusDistribution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksTotalRateAndEvolution=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksTotalRateAndEvolution(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsChargebacksWinRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsChargebacksWinRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsConversionRateMetricsV2=function(e,t,n){return void 0===n&&(n=!0),Lg(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Cf.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})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lg(["get-insights-customer-payment-fraud-metrics",t,e],function(){return Cf.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFallbackMetrics=function(e){return Lg(["get-insights-conversion-rate-fallback-metrics",e],function(){return Cf.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningConversionRate=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsFraudScreeningConversionRate(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsFraudScreeningVolumeAndCountTx=function(t,n,o){var a=this;return void 0===o&&(o={enabled:!0}),Lg({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(a,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getInsightsFraudScreeningVolumeAndCountTx(t,n)];case 1:return[2,e.sent()]}})})},enabled:o.enabled&&void 0!==t.account_codes,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsHomeMetrics=function(e){return Lg(["get-insights-home-metrics",e],function(){return Cf.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})},exports.useInsightsOverviewMetrics=function(e){return Lg(["get-insights-overview",e],function(){return Cf.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})},exports.useInsightsOverviewMetricsV3=function(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Lg(["get-insights-overview-v3",e,t],function(){return Cf.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})},exports.useInsightsTotalPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lg(["get-insights-total-payment-fraud-metrics",t,e],function(){return Cf.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Lg(["get-insights-volume-metrics",t,e],function(){return Cf.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})},exports.useInsightsVolumeMetricsV2=function(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Lg(["get-insights-volume-metrics-v2",t,e,n],function(){return Cf.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:o,cacheTime:200,useErrorBoundary:!1})},exports.useInviteUsersMultiaccountMassive=function(){return Dg(function(e){return Cf.getInstance().inviteUsersMassive(e,e.organizationCode)})},exports.useIsTesting=function(){var e=h.useState("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return h.useEffect(function(){window.addEventListener("storage",function(e){"isTesting"===e.key&&n("ON"===e.newValue)})},[]),{isTesting:t}},exports.useLoginMethods=function(){return Dg(function(e){return Cf.getInstance().changeLoginMethods(e)})},exports.useNetworkTokensOnboarding=function(){var t=this;return Lg({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){return Dg(["new-post-connection-validate"],function(){return Cf.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.usePatchAccountV2=function(){return Dg(function(e){var t=e.name,n=e.code,o=e.principal;return Cf.getInstance().patchAccountV2({name:t,code:n,principal:o})})},exports.usePatchAddAllowlistItems=function(){return Dg(["post-add-allowlist-items"],function(e){var t=e.payload;return Cf.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAllowedIps=function(){return Dg(["developers-patch-allowed-ips"],function(t){return Cf.getInstance().patchAllowedIps(t).then(function(t){return(null==t?void 0:t.data)?e.__assign(e.__assign({},null==t?void 0:t.data),{isError:!1}):null}).catch(function(t){return e.__assign(e.__assign({},t),{isError:!0})})},{cacheTime:0})},exports.usePatchAllowlist=function(){return Dg(["patch-allowlist"],function(e){var t=e.payload;return Cf.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAndExecuteChart=function(t,n,o){var a=this;return void 0===o&&(o=!0),Lg(["chartgpt-patch-and-execute",t,n],function(){return e.__awaiter(a,void 0,void 0,function(){var o,a,i,r,s;return e.__generator(this,function(e){switch(e.label){case 0:return[4,(o=Cf.getInstance()).patchChartGPTChart(t,n)];case 1:return a=e.sent(),i=null==a?void 0:a.data,[4,o.executeChartGPTChart(t)];case 2:return r=e.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}})})},{enabled:o&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){return Dg(function(e){var t=e.payload,n=e.code;return Cf.getInstance().patchApiKeysEditNote(t,n).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlist=function(){return Dg(["patch-change-status-allowlist"],function(e){var t=e.payload;return Cf.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlistItem=function(){return Dg(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Cf.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChartName=function(){return Dg(function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,i=void 0===a?"":a;return Cf.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:i}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePatchConnection=function(){return Dg(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Cf.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.usePathCreateCustomizedApiKeys=function(){return Dg(function(e){var t=e.payload,n=e.code;return Cf.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePathNotifications=function(){var t=this;return Dg(function(n){return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})})},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=Ng();return Lg(["getPayoutsFilters",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:t&&!!o})},exports.usePayoutsList=function(e){return Lg(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Cf.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})},exports.usePostAccount=function(){return Dg(function(e){var t=e.name,n=e.principal;return Cf.getInstance().postAccount(t,n)})},exports.usePostAllowlistMultiAccount=function(e){return Lg(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Cf.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.usePostApiKeysRoll=function(){return Dg(function(e){var t=e.payload,n=e.code,o=e.password;return Cf.getInstance().postApiKeysRoll(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePostApiLogs=function(e){return Lg(["api-logs",e],function(){return Cf.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostAuditMonitors=function(e){return Dg(function(e){var t=e.payload;return Cf.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Dg(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().batchRefundByFile({payload:n}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.usePostBlackListBatch=function(e){var t=e.handleSetProgress;return Dg(["post-blacklist-batch"],function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Cf.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListItems=function(){return Dg(["post-blacklist-items"],function(e){var t=e.payload;return Cf.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListMultiAccount=function(){return Dg(["post-blacklist-multi-account"],function(e){var t=e.payload;return Cf.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostBlockList=function(e,t,n,o){var a;return Lg(["post-black-list",e],function(){return Cf.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Dg(function(e){return Cf.getInstance().postCall(e)})},exports.usePostChangeStatusConnection=function(){return Dg(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePostConnectionMultiAccount=function(){return Dg(["post-connection"],function(e){var t=e.payload;return Cf.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})},exports.usePostCreateAllowlistMultiAccount=function(){return Dg(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Cf.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateCustomizedApiKeys=function(){return Dg(function(e){var t=e.payload;return Cf.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateInsightsReport=function(){return Dg(function(e){var t=e.payload;return Cf.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateRuleMultiAccount=function(){return Dg(function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCredentialsValidatePassword=function(){return Dg(function(e){var t=e.passwordOtp;return Cf.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostDefaultRoutes=function(){return Dg(function(e){var t=e.payload;return Cf.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostEditRule=function(){return Dg(function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Cf.getInstance().postEditRule(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostFraudTransactions=function(t){var n=this;return Lg(["POST/fraud-transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().postFraudTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostGetAllowlistItems=function(){return Dg(["post-get-allowlist-items"],function(e){var t=e.payload;return Cf.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostGetAllowlistMultiAccount=function(){return Dg(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Cf.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostMembersPaginatedV2=function(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=Ng();return Lg(["fetch-post-members-v2",t,n,o,a,i],function(){return Cf.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostNetworkTokensOnboarding=function(){var t=this;return Dg(function(n){var o=n.payload,a=n.organizationCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().postNetworkTokensOnboarding(o,a)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})},exports.usePostPaymentsEvaluated=function(e){return Lg(["fetch-payments-evaluated",e],function(){return Cf.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostPaymentsLazy=function(t){var n=this;return Lg(["fetch-payments-lazy",t],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().postPaymentsLazy(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&Object.keys(t).length>0,cacheTime:0,useErrorBoundary:!1})},exports.usePostSlackMessageChannel=function(){return Dg(function(e){var t=e.payload;return Cf.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostTransactions=function(t){var n=this;return Lg(["POST/transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().postTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=function(){return Dg(function(e){var t=e.payload;return Cf.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(e){return Dg(["pinned-sections"],function(e){var t=e.payload;return Cf.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return Dg(function(e){var t=e.payload,n=e.section;return Cf.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(t){var n=Mg.getQueryData(["fetch-profile"]);t.data&&Mg.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Dg(function(e){return Cf.getInstance().postUserThemeSettings(e)})},exports.usePostValideStatusConnection=function(){return Dg(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Cf.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostVelocityRules=function(e){return Lg(["velocity-rules",e],function(){var t=Cf.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})},exports.usePostWebhookLogs=function(e){var t=e.params;return Lg(["webhook-logs",t],function(){return Cf.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})},exports.usePostWebhookMultiAccount=function(e){return Dg(function(e){var t=e.payload;return Cf.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return Lg(["smart-routing-conversion-rates"],function(){return Cf.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})},exports.usePublishVersion=function(t,n){var o=this,a=t.versionCode,i=t.accountCode,r=t.organizationCode;return void 0===n&&(n=null),Dg(function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,Cf.getInstance().postSmartRoutingPublishVersion(i,a,r).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},n)},exports.usePutAccountPrincipal=function(){return Dg(function(e){var t=e.account_code;return Cf.getInstance().putAccountPrincipal({account_code:t})})},exports.usePutAccountsUserMassive=function(){return Dg(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Cf.getInstance().putAccountsUserMassive(t,n,o)})},exports.usePutBlackListType=function(){return Dg(["put-blacklist"],function(e){return Cf.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePutCosts=function(){return Dg(function(e){return Cf.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useResendWebhooks=function(){return Dg(function(e){var t=e.codes;return Cf.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Dg(function(){return Cf.getInstance().putSmartRoutingUpdateWorkflow(o,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)},exports.useSendPaymentNotification=function(t,n,o){var a=this,i=Cf.getInstance();return Lg(["send-payment-notification",t,n],function(){return e.__awaiter(a,void 0,void 0,function(){var a,r;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,i.sendPaymentNotification(t,n)];case 1:return a=e.sent(),o.onSuccess(),[2,a.data];case 2:throw r=e.sent(),o.onError(),r;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Dg(function(){return Cf.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return Dg(function(e){return void 0===e&&(e=null),Cf.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)},exports.useSmartRoutingEditWorkflowName=function(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Dg(function(){return Cf.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Dg(function(e){var n=e.payload;return Cf.getInstance().multiAccountDeclinedGroupCreate(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingRemoveDeclinedGroup=function(t,n){return void 0===n&&(n={}),Dg(function(e){var n=e.declinedGroupCode;return Cf.getInstance().removeDeclinedGroup(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useSmartRoutingSimulateTransaction=function(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Dg(function(e){return Cf.getInstance().simulateSmartRoutingTransaction(n,o,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Dg(function(e){return void 0===e&&(e=!1),Cf.getInstance().updateSmartRoutingFavorite(o,n,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateDeclinedGroup=function(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Dg(function(e){return void 0===e&&(e=null),Cf.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingUpdateMonitorRedistribution=function(e,t){return void 0===t&&(t=null),Dg(function(t){return Cf.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Dg(function(){return Cf.getInstance().putSmartRoutingToggleMethod(a,n,o).then(function(e){return null==e?void 0:e.data})},t)},exports.useUnInviteUsersV2=function(){return Dg(function(e){var t=e.userCode,n=e.organizationCode;return Cf.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})},exports.useUnrollUserV2=function(){return Dg(function(e){return Cf.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateCheckoutTemplate=function(){return Dg(function(e){var t=e.accountCode,n=e.template;return Cf.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateIsActiveCheckout=function(e){return Dg(function(e){return Cf.getInstance().updateIsActiveCheckout(e)},e)},exports.useUpdateMFAConfig=function(){return Dg(function(e){var t=e.payload,n=e.organizationCode;return Cf.getInstance().updateMFAConfig(t,n)})},exports.useUpdateOrganizationStatus=function(){return Dg(["patch-organizations"],function(){return Cf.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})},exports.useUpdateProfile=function(e){return Dg(function(e){return Cf.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){return Dg(["UPDATE/reconciliation/alerts"],function(e){return Cf.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Mg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return Dg(function(){return Cf.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useUpdateReportTemplate=function(e){return Dg(function(){return Cf.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateSamlConfig=function(){return Dg(function(e){return Cf.getInstance().updateSamlConfig(e)})},exports.useUpdateScheduledReport=function(){return Dg(function(e){var t=e.reportCode,n=e.payload;return Cf.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useUpdateStylingTheme=function(){return Dg(function(e){var t=e.accountCode,n=e.theme;return Cf.getInstance().updateStylingTheme({accountCode:t,theme:n}).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateTemplateSelection=function(){var t=this;return Dg(["POST/template-reporting/report-templates/selection"],function(n){var o=n.templateId,a=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,Cf.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Mg.invalidateQueries({queryKey:["GET/template-reporting/templates"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Dg(function(e){var t=e.code,n=e.payload,o=e.accountCode;return Cf.getInstance().updateWebhookV2(t,n,o)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=h.useState(0),i=a[0],r=a[1],s=h.useRef({cancel:function(){return null}}),c=Dg(["upload-file-chargeback",t],function(e){var t=Cf.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==o||o(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Dg(function(e){return Cf.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=h.useRef({cancel:function(){return null}}),t=Dg(["upload-file"],function(t){var n=Cf.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}},exports.useValiateAllowlistItems=function(){return Dg(["validate-allowlist-items"],function(e){return Cf.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})},exports.useValidateBlockListItems=function(){return Dg(["valiate-blacklist-items"],function(e){return Cf.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useValidateCredentials=function(){return Dg(function(e){return Cf.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useValidateOrgName=function(){return Dg(function(e){return Cf.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})},exports.useValidatePasswordStatus=function(){return Dg(function(){return Cf.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})},exports.useViewMoreMetrics=function(e,t){return Lg(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Cf.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})};
76
76
  //# sourceMappingURL=index.js.map