@yuno-payments/dashboard-api-mfe 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +2 -0
- package/build/cjs/types/mutations/security/security.mutation.d.ts +1 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +1 -1
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/security/index.d.ts +1 -0
- package/build/cjs/types/queries/security/security.query.d.ts +8 -0
- package/build/cjs/types/types/audit/audit.d.ts +7 -0
- package/build/cjs/types/types/webhook/webhook.d.ts +2 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +2 -0
- package/build/esm/types/mutations/security/security.mutation.d.ts +1 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +1 -1
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/security/index.d.ts +1 -0
- package/build/esm/types/queries/security/security.query.d.ts +8 -0
- package/build/esm/types/types/audit/audit.d.ts +7 -0
- package/build/esm/types/types/webhook/webhook.d.ts +2 -0
- package/build/index.d.ts +24 -3
- package/package.json +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -38,7 +38,7 @@ statuses/index.js:
|
|
|
38
38
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
39
39
|
* MIT Licensed
|
|
40
40
|
*)
|
|
41
|
-
*/function ut(e){if(st.test(e)||""===e.trim())throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var ct=[String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(9),String.fromCharCode(32)],lt=new RegExp(`(^[${ct.join("")}]|$[${ct.join("")}])`,"g");function dt(e){return e.replace(lt,"")}function pt(e){if("string"!=typeof e)return!1;if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>127||!ht(n))return!1}return!0}function ht(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function ft(e){if("string"!=typeof e)return!1;if(e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(0===n||10===n||13===n)return!1}return!0}var gt,mt,yt,vt=Symbol("normalizedHeaders"),bt=Symbol("rawHeaderNames"),kt=class e{constructor(t){if(this[gt]={},this[mt]=new Map,this[yt]="Headers",["Headers","HeadersPolyfill"].includes(t?.constructor.name)||t instanceof e||void 0!==globalThis.Headers&&t instanceof globalThis.Headers){t.forEach((e,t)=>{this.append(t,e)},this)}else Array.isArray(t)?t.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(", "):t)}):t&&Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e];this.append(e,Array.isArray(n)?n.join(", "):n)})}[(gt=vt,mt=bt,yt=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[vt]).sort((e,t)=>e.localeCompare(t));for(const t of e)if("set-cookie"===t)for(const e of this.getSetCookie())yield[t,e];else yield[t,this.get(t)]}has(e){if(!pt(e))throw new TypeError(`Invalid header name "${e}"`);return this[vt].hasOwnProperty(ut(e))}get(e){if(!pt(e))throw TypeError(`Invalid header name "${e}"`);return this[vt][ut(e)]??null}set(e,t){if(!pt(e)||!ft(t))return;const n=ut(e),o=dt(t);this[vt][n]=dt(o),this[bt].set(n,e)}append(e,t){if(!pt(e)||!ft(t))return;const n=ut(e),o=dt(t);let r=this.has(n)?`${this.get(n)}, ${o}`:o;this.set(e,r)}delete(e){if(!pt(e))return;if(!this.has(e))return;const t=ut(e);delete this[vt][t],this[bt].delete(t)}forEach(e,t){for(const[n,o]of this.entries())e.call(t,o,n,this)}getSetCookie(){const e=this.get("set-cookie");return null===e?[]:""===e?[""]:(0,it.splitCookiesString)(e)}};const{message:_t}=Xe,wt=Symbol("kSetCookie");function xt(e={}){const t=e?.status||200,n=e?.statusText||_t[t]||"",o=new Headers(e?.headers);return{...e,headers:o,status:t,statusText:n}}async function Et(e,t,n,o,r,a){if(r.emit("request:start",{request:e,requestId:t}),e.headers.get("accept")?.includes("msw/passthrough"))return r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(()=>(async({request:e,requestId:t,handlers:n,resolutionContext:o})=>{let r=null,a=null;for(const i of n)if(a=await i.run({request:e,requestId:t,resolutionContext:o}),null!==a&&(r=i),a?.response)break;return r?{handler:r,parsedResult:a?.parsedResult,response:a?.response}:null})({request:e,requestId:t,handlers:n,resolutionContext:a?.resolutionContext}));if(i)throw r.emit("unhandledException",{error:i,request:e,requestId:t}),i;if(!s)return await y(e,o.onUnhandledRequest),r.emit("request:unhandled",{request:e,requestId:t}),r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const{response:u}=s;if(!u)return r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);if(302===u.status&&"passthrough"===u.headers.get("x-msw-intention"))return r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);await async function(e,t){const n=Reflect.get(t,wt);n&&await Ne.setCookie(n,e.url)}(e,u),r.emit("request:match",{request:e,requestId:t});const c=s;return a?.onMockedResponse?.(u,c),r.emit("request:end",{request:e,requestId:t}),u}function Ct(e){return t=>null!=t&&"object"==typeof t&&"__kind"in t&&t.__kind===e}var St=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},Rt=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=Rt.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...o)=>(this.removeListener(e,n),t.apply(this,o));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new St(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const o=[t].concat(n);this.events.set(e,o)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},It=Rt;It.defaultMaxListeners=10;class Tt{subscriptions=[];dispose(){let e;for(;e=this.subscriptions.shift();)e()}}class At{constructor(e){this.initialHandlers=e,this.handlers=[...e]}handlers;prepend(e){this.handlers.unshift(...e)}reset(e){this.handlers=e.length>0?[...e]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Ot extends Tt{handlersController;emitter;publicEmitter;events;constructor(...e){super(),c(this.validateHandlers(e),d.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new At(e),this.emitter=new It,this.publicEmitter=new It,function(e,t){const n=e.emit;if(n._isPiped)return;const o=function(e,...o){return t.emit(e,...o),n.call(this,e,...o)};o._isPiped=!0,e.emit=o}(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(e){return e.every(e=>!Array.isArray(e))}use(...e){c(this.validateHandlers(e),d.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(e)}restoreHandlers(){this.handlersController.currentHandlers().forEach(e=>{"isUsed"in e&&(e.isUsed=!1)})}resetHandlers(...e){this.handlersController.reset(e)}listHandlers(){return function(e){const t=[...e];return Object.freeze(t),t}(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...e)=>this.publicEmitter.on(...e),removeListener:(...e)=>this.publicEmitter.removeListener(...e),removeAllListeners:(...e)=>this.publicEmitter.removeAllListeners(...e)}}}var Pt=Object.defineProperty,Dt={};function Lt(e){return`[33m${e}[0m`}function jt(e){return`[34m${e}[0m`}function zt(e){return`[90m${e}[0m`}function Nt(e){return`[31m${e}[0m`}function qt(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)Pt(e,n,{get:t[n],enumerable:!0})})(Dt,{blue:()=>jt,gray:()=>zt,green:()=>qt,red:()=>Nt,yellow:()=>Lt});var Ut=v(),Mt=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=Ht("DEBUG"),n=Ht("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=Kt(n,"debug")?Ft:this.debug,this.info=Kt(n,"info")?Ft:this.info,this.success=Kt(n,"success")?Ft:this.success,this.warning=Kt(n,"warning")?Ft:this.warning,this.error=Kt(n,"error")?Ft:this.error):(this.info=Ft,this.success=Ft,this.warning=Ft,this.error=Ft,this.only=Ft)}prefix;extend(e){return new Mt(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:zt(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new Bt;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${zt(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:o,colors:r,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:Dt[r?.timestamp||"gray"],prefix:Dt[r?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=o?s.prefix(o):[]).concat($t(n)).join(" "),...a.map($t))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return Gt;case"warning":return Wt;case"error":return Vt}}},Bt=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},Ft=()=>{};function Gt(e,...t){Ut?process.stdout.write(s(e,...t)+"\n"):console.log(e,...t)}function Wt(e,...t){Ut?process.stderr.write(s(e,...t)+"\n"):console.warn(e,...t)}function Vt(e,...t){Ut?process.stderr.write(s(e,...t)+"\n"):console.error(e,...t)}function Ht(e){return Ut?process.env[e]:globalThis[e]?.toString()}function Kt(e,t){return void 0!==e&&e!==t}function $t(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}function Qt(e){return globalThis[e]||void 0}let Yt=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({});var Jt=class{constructor(e){this.symbol=e,this.readyState=Yt.INACTIVE,this.emitter=new It,this.subscriptions=[],this.logger=new Mt(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===Yt.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=Yt.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,o)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,o),this.subscriptions.push(()=>{t.emitter.removeListener(n,o),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=Yt.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=Yt.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===Yt.DISPOSING||this.readyState===Yt.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==Yt.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=Yt.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",Qt(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=Yt.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=Qt(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Xt(e){if("string"==typeof e)return Xt(new URL(e,"undefined"!=typeof location?location.href:void 0));if("http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),"ws:"!==e.protocol&&"wss:"!==e.protocol)throw new SyntaxError(`Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. '${e.protocol}' is not allowed.`);if(""!==e.hash)throw new SyntaxError(`Failed to construct 'WebSocket': The URL contains a fragment identifier ('${e.hash}'). Fragment identifiers are not allowed in WebSocket URLs.`);return e.href}var Zt=class extends Promise{#o;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,o)=>{t(n,o),e?.(t.resolve,t.reject)}),this.#o=t,this.resolve=this.#o.resolve,this.reject=this.#o.reject}get state(){return this.#o.state}get rejectionReason(){return this.#o.rejectionReason}then(e,t){return this.#r(super.then(e,t))}catch(e){return this.#r(super.catch(e))}finally(e){return this.#r(super.finally(e))}#r(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}};function en(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}const tn=Symbol("kCancelable"),nn=Symbol("kDefaultPrevented");var on=class extends MessageEvent{constructor(e,t){super(e,t),this[tn]=!!t.cancelable,this[nn]=!1}get cancelable(){return this[tn]}set cancelable(e){this[tn]=e}get defaultPrevented(){return this[nn]}set defaultPrevented(e){this[nn]=e}preventDefault(){this.cancelable&&!this[nn]&&(this[nn]=!0)}},rn=class extends Event{constructor(e,t={}){super(e,t),this.code=void 0===t.code?0:t.code,this.reason=void 0===t.reason?"":t.reason,this.wasClean=void 0!==t.wasClean&&t.wasClean}},an=class extends rn{constructor(e,t={}){super(e,t),this[tn]=!!t.cancelable,this[nn]=!1}get cancelable(){return this[tn]}set cancelable(e){this[tn]=e}get defaultPrevented(){return this[nn]}set defaultPrevented(e){this[nn]=e}preventDefault(){this.cancelable&&!this[nn]&&(this[nn]=!0)}};const sn=Symbol("kEmitter"),un=Symbol("kBoundListener");var cn=class{constructor(e,t){this.socket=e,this.transport=t,this.id=Math.random().toString(16).slice(2),this.url=new URL(e.url),this[sn]=new EventTarget,this.transport.addEventListener("outgoing",e=>{const t=en(this.socket,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[sn].dispatchEvent(t),t.defaultPrevented&&e.preventDefault()}),this.transport.addEventListener("close",e=>{this[sn].dispatchEvent(en(this.socket,new rn("close",e)))})}addEventListener(e,t,n){if(!Reflect.has(t,un)){const e=t.bind(this.socket);Object.defineProperty(t,un,{value:e,enumerable:!1,configurable:!1})}this[sn].addEventListener(e,Reflect.get(t,un),n)}removeEventListener(e,t,n){this[sn].removeEventListener(e,Reflect.get(t,un),n)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}};const ln="InvalidAccessError: close code out of user configurable range",dn=Symbol("kPassthroughPromise"),pn=Symbol("kOnSend"),hn=Symbol("kClose");var fn=class extends EventTarget{static{this.CONNECTING=0}static{this.OPEN=1}static{this.CLOSING=2}static{this.CLOSED=3}constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=Xt(e),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[dn]=new Zt,queueMicrotask(async()=>{await this[dn]||(this.protocol="string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(en(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,null!==e&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,null!==e&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,null!==e&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,null!==e&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.bufferedAmount+=function(e){return"string"==typeof e?e.length:e instanceof Blob?e.size:e.byteLength}(e),queueMicrotask(()=>{this.bufferedAmount=0,this[pn]?.(e)}))}close(e=1e3,t){c(e,ln),c(1e3===e||e>=3e3&&e<=4999,ln),this[hn](e,t)}[hn](e=1e3,t,n=!0){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(en(this,new rn("close",{code:e,reason:t,wasClean:n}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,n){return super.addEventListener(e,t,n)}removeEventListener(e,t,n){return super.removeEventListener(e,t,n)}};const gn=Symbol("kEmitter"),mn=Symbol("kBoundListener"),yn=Symbol("kSend");var vn=class{constructor(e,t,n){this.client=e,this.transport=t,this.createConnection=n,this[gn]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",e=>{void 0!==this.realWebSocket&&queueMicrotask(()=>{e.defaultPrevented||this[yn](e.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return c(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){c(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",e=>{this[gn].dispatchEvent(en(this.realWebSocket,new Event("open",e)))},{once:!0}),e.addEventListener("message",e=>{this.transport.dispatchEvent(en(this.realWebSocket,new MessageEvent("incoming",{data:e.data,origin:e.origin})))}),this.client.addEventListener("close",e=>{this.handleMockClose(e)},{signal:this.mockCloseController.signal}),e.addEventListener("close",e=>{this.handleRealClose(e)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=en(e,new Event("error",{cancelable:!0}));this[gn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(en(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,n){if(!Reflect.has(t,mn)){const e=t.bind(this.client);Object.defineProperty(t,mn,{value:e,enumerable:!1})}this[gn].addEventListener(e,Reflect.get(t,mn),n)}removeEventListener(e,t,n){this[gn].removeEventListener(e,Reflect.get(t,mn),n)}send(e){this[yn](e)}[yn](e){const{realWebSocket:t}=this;c(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),t.readyState!==WebSocket.CLOSING&&t.readyState!==WebSocket.CLOSED&&(t.readyState!==WebSocket.CONNECTING?t.send(e):t.addEventListener("open",()=>{t.send(e)},{once:!0}))}close(){const{realWebSocket:e}=this;c(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),e.readyState!==WebSocket.CLOSING&&e.readyState!==WebSocket.CLOSED&&(e.close(),queueMicrotask(()=>{this[gn].dispatchEvent(en(this.realWebSocket,new an("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=en(e.target,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[gn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(en(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=en(this.realWebSocket,new an("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[gn].dispatchEvent(t),t.defaultPrevented||this.client[hn](e.code,e.reason)}},bn=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",e=>{this.dispatchEvent(en(this.socket,new rn("close",e)))}),this.socket[pn]=e=>{this.dispatchEvent(en(this.socket,new on("outgoing",{data:e,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,n){return super.addEventListener(e,t,n)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(en(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[hn](e,t)}},kn=class e extends Jt{static{this.symbol=Symbol("websocket")}constructor(){super(e.symbol)}checkEnvironment(){return function(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return!(void 0===t||"function"==typeof t.get&&void 0===t.get()||void 0===t.get&&null==t.value||void 0===t.set&&!t.configurable&&(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),1))}("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(e,t,n)=>{const[o,r]=t,a=()=>Reflect.construct(e,t,n),i=new fn(o,r),s=new bn(i);return queueMicrotask(async()=>{try{const e=new vn(i,s,a),t=this.emitter.listenerCount("connection")>0;await async function(e,t,...n){const o=e.listeners(t);if(0!==o.length)for(const t of o)await t.apply(e,n)}(this.emitter,"connection",{client:new cn(i,s),server:e,info:{protocols:r}}),t?i[dn].resolve(!1):(i[dn].resolve(!0),e.connect(),e.addEventListener("open",()=>{i.dispatchEvent(en(i,new Event("open"))),e.realWebSocket&&(i.protocol=e.realWebSocket.protocol)}))}catch(e){e instanceof Error&&(i.dispatchEvent(new Event("error")),i.readyState!==WebSocket.CLOSING&&i.readyState!==WebSocket.CLOSED&&i[hn](1011,e.message,!1),console.error(e))}}),i}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}};const _n=new kn;function wn(e){const t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e?.milliseconds?`${n}.${t.getMilliseconds().toString().padStart(3,"0")}`:n}function xn(e){return e instanceof Blob?e.size:r(e)&&"byteLength"in e?e.byteLength:new Blob([e]).size}function En(e){return e.length<=24?e:`${e.slice(0,24)}…`}async function Cn(e){if(e instanceof Blob){return`Blob(${En(await e.text())})`}if(r(e)){return`ArrayBuffer(${En((new TextDecoder).decode(e))})`}return En(e)}const Sn="#3b82f6",Rn="#22c55e",In="#ef4444",Tn="#ff6a33";function An(e){const{client:t,server:n}=e;!function(e){const t=m(e.url);console.groupCollapsed(d.formatMessage(`${wn()} %c▶%c ${t}`),`color:${Sn}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}(t),t.addEventListener("message",e=>{!async function(e){const t=xn(e.data),n=await Cn(e.data),o=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c${o}%c ${n} %c${t}%c`),`color:${Rn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)}),t.addEventListener("close",e=>{!function(e){const t=e.target,n=m(t.url);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c■%c ${n}`),`color:${Sn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.socket.addEventListener("error",e=>{!function(e){const t=e.target,n=m(t.url);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c×%c ${n}`),`color:${Sn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.send=new Proxy(t.send,{apply(e,n,o){const[r]=o,a=new MessageEvent("message",{data:r});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{!async function(e){const t=xn(e.data),n=await Cn(e.data);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c⬇%c ${n} %c${t}%c`),`color:${Tn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a)}),Reflect.apply(e,n,o)}}),n.addEventListener("open",()=>{n.addEventListener("message",e=>{!async function(e){const t=xn(e.data),n=await Cn(e.data),o=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c${o}%c ${n} %c${t}%c`),`color:${In}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)})},{once:!0}),n.send=new Proxy(n.send,{apply(e,t,o){const[r]=o,a=new MessageEvent("message",{data:r});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:n.socket},target:{enumerable:!0,writable:!1,value:n.socket}}),async function(e){const t=xn(e.data),n=await Cn(e.data);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c⬆%c ${n} %c${t}%c`),`color:${Tn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a),Reflect.apply(e,t,o)}})}var On=/(%?)(%([sdijo]))/g;function Pn(e,...t){if(0===t.length)return e;let n=0,o=e.replace(On,(e,o,r,a)=>{const i=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;const t=JSON.stringify(e);return"{}"===t||"[]"===t||/^\[object .+?\]$/.test(t)?e:t}}}(t[n],a);return o?e:(n++,i)});return n<t.length&&(o+=` ${t.slice(n).join(" ")}`),o=o.replace(/%{2,2}/g,"%"),o}var Dn=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Pn(e,...t),function(e){if(!e.stack)return;const t=e.stack.split("\n");t.splice(1,2),e.stack=t.join("\n")}(this)}},Ln=(e,t,...n)=>{if(!e)throw new Dn(t,...n)};function jn(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if("undefined"!=typeof process){const e=process.type;return"renderer"!==e&&"worker"!==e&&!(!process.versions||!process.versions.node)}return!1}Ln.as=(e,t,n,...o)=>{if(!t){const t=0===o.length?n:Pn(n,...o);let r;try{r=Reflect.construct(e,[t])}catch(n){r=e(t)}throw r}};var zn=class extends Promise{#o;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,o)=>{t(n,o),e?.(t.resolve,t.reject)}),this.#o=t,this.resolve=this.#o.resolve,this.reject=this.#o.reject}get state(){return this.#o.state}get rejectionReason(){return this.#o.rejectionReason}then(e,t){return this.#r(super.then(e,t))}catch(e){return this.#r(super.catch(e))}finally(e){return this.#r(super.finally(e))}#r(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}},Nn={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:(e,t)=>e===t};function qn(e,t,n){return[e.active,e.installing,e.waiting].filter(e=>null!=e).find(e=>n(e.scriptURL,t))||null}var Un=async(e,t={},n)=>{const o=new URL(e,location.href).href;const r=await navigator.serviceWorker.getRegistrations().then(e=>e.filter(e=>qn(e,o,n)));!navigator.serviceWorker.controller&&r.length>0&&location.reload();const[a]=r;if(a)return a.update(),[qn(a,o,n),a];const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(async()=>{const r=await navigator.serviceWorker.register(e,t);return[qn(r,o,n),r]});if(i){if(i.message.includes("(404)")){const e=new URL(t?.scope||"/",location.href);throw new Error(d.formatMessage(`Failed to register a Service Worker for scope ('${e.href}') with script ('${o}'): Service Worker script does not exist at the given path.\n\nDid you forget to run "npx msw init <PUBLIC_DIR>"?\n\nLearn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw new Error(d.formatMessage("Failed to register the Service Worker:\n\n%s",i.message))}return s};function Mn(e={}){if(e.quiet)return;const t=e.message||"Mocking enabled.";console.groupCollapsed(`%c${d.formatMessage(t)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),e.workerUrl&&console.log("Worker script URL:",e.workerUrl),e.workerScope&&console.log("Worker scope:",e.workerScope),e.client&&console.log("Client ID: %s (%s)",e.client.id,e.client.frameType),console.groupEnd()}function Bn(e){if(!["HEAD","GET"].includes(e.method))return e.body}function Fn(e){return new Request(e.url,{...e,body:Bn(e)})}function Gn(){return"undefined"!=typeof navigator&&"serviceWorker"in navigator&&"undefined"!=typeof location&&"file:"!==location.protocol}var Wn=function(){try{const e=new ReadableStream({start:e=>e.close()});return(new MessageChannel).port1.postMessage(e,[e]),!0}catch{return!1}}(),Vn=(e,t)=>async n=>{if(!e.isMockingEnabled&&e.workerStoppedAt&&n.data.interceptedAt>e.workerStoppedAt)return void n.postMessage("PASSTHROUGH");const o=n.data.id,r=Fn(n.data),a=r.clone(),i=r.clone();g.cache.set(r,i);try{await Et(r,o,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onPassthroughResponse(){n.postMessage("PASSTHROUGH")},async onMockedResponse(o,{handler:r,parsedResult:i}){const s=o.clone(),u=o.clone(),c=function(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}(o);if(Wn){const e=o.body;n.postMessage("MOCK_RESPONSE",{...c,body:e},e?[e]:void 0)}else{const e=null===o.body?null:await s.arrayBuffer();n.postMessage("MOCK_RESPONSE",{...c,body:e})}t.quiet||e.emitter.once("response:mocked",()=>{r.log({request:a,response:u,parsedResult:i})})}})}catch(e){e instanceof Error&&(d.error('Uncaught exception in the request handler for "%s %s":\n\n%s\n\nThis exception has been gracefully handled as a 500 response, however, it\'s strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/http/mocking-responses/error-responses',r.method,r.url,e.stack??e),n.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,message:e.message,stack:e.stack})}))}};var Hn=Symbol("isPatchedModule"),Kn=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}},$n=class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new zn}get#a(){return this.handled}async passthrough(){Ln.as(Kn,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){Ln.as(Kn,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){Ln.as(Kn,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}};function Qn(e){try{return new URL(e),!0}catch(e){return!1}}function Yn(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}var Jn=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!Qn(e))return;const n=Yn("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const o=n.status??200,r=e.isConfigurableStatusCode(o)?o:200;if(super(e.isResponseWithBody(o)?t:null,{status:r,statusText:n.statusText,headers:n.headers}),o!==r){const e=Yn("state",this);e?e.status=o:Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}},Xn=Symbol("kRawRequest");function Zn(e,t){Reflect.set(e,Xn,t)}var eo=Object.defineProperty,to={};function no(e){return`[33m${e}[0m`}function oo(e){return`[34m${e}[0m`}function ro(e){return`[90m${e}[0m`}function ao(e){return`[31m${e}[0m`}function io(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)eo(e,n,{get:t[n],enumerable:!0})})(to,{blue:()=>oo,gray:()=>ro,green:()=>io,red:()=>ao,yellow:()=>no});var so=jn(),uo=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=go("DEBUG"),n=go("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=mo(n,"debug")?lo:this.debug,this.info=mo(n,"info")?lo:this.info,this.success=mo(n,"success")?lo:this.success,this.warning=mo(n,"warning")?lo:this.warning,this.error=mo(n,"error")?lo:this.error):(this.info=lo,this.success=lo,this.warning=lo,this.error=lo,this.only=lo)}prefix;extend(e){return new uo(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:ro(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new co;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${ro(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:o,colors:r,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:to[r?.timestamp||"gray"],prefix:to[r?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=o?s.prefix(o):[]).concat(yo(n)).join(" "),...a.map(yo))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return po;case"warning":return ho;case"error":return fo}}},co=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},lo=()=>{};function po(e,...t){so?process.stdout.write(Pn(e,...t)+"\n"):console.log(e,...t)}function ho(e,...t){so?process.stderr.write(Pn(e,...t)+"\n"):console.warn(e,...t)}function fo(e,...t){so?process.stderr.write(Pn(e,...t)+"\n"):console.error(e,...t)}function go(e){return so?process.env[e]:globalThis[e]?.toString()}function mo(e,t){return void 0!==e&&e!==t}function yo(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}var vo=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},bo=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=bo.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...o)=>(this.removeListener(e,n),t.apply(this,o));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new vo(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const o=[t].concat(n);this.events.set(e,o)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},ko=bo;ko.defaultMaxListeners=10;function _o(e){return globalThis[e]||void 0}var wo=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({}),xo=class{constructor(e){this.symbol=e,this.readyState=wo.INACTIVE,this.emitter=new ko,this.subscriptions=[],this.logger=new uo(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===wo.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=wo.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,o)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,o),this.subscriptions.push(()=>{t.emitter.removeListener(n,o),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=wo.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=wo.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===wo.DISPOSING||this.readyState===wo.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==wo.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=wo.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",_o(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=wo.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=_o(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Eo(){return Math.random().toString(16).slice(2)}var Co=new TextEncoder;var So=class e extends xo{constructor(t){e.symbol=Symbol(t.name),super(e.symbol),this.interceptors=t.interceptors}setup(){const e=this.logger.extend("setup");e.info("applying all %d interceptors...",this.interceptors.length);for(const t of this.interceptors)e.info('applying "%s" interceptor...',t.constructor.name),t.apply(),e.info("adding interceptor dispose subscription"),this.subscriptions.push(()=>t.dispose())}on(e,t){for(const n of this.interceptors)n.on(e,t);return this}once(e,t){for(const n of this.interceptors)n.once(e,t);return this}off(e,t){for(const n of this.interceptors)n.off(e,t);return this}removeAllListeners(e){for(const t of this.interceptors)t.removeAllListeners(e);return this}};var Ro=e=>function(t,n){const o=(async()=>{e.workerChannel.removeAllListeners(),e.workerChannel.on("REQUEST",Vn(e,t)),e.workerChannel.on("RESPONSE",function(e){return t=>{const n=t.data,o=Fn(n.request);if(n.response.type?.includes("opaque"))return;const r=0===n.response.status?Response.error():new Jn(Jn.isResponseWithBody(n.response.status)?n.response.body:null,{...n.response,url:o.url});e.emitter.emit(n.isMockedResponse?"response:mocked":"response:bypass",{requestId:n.request.id,request:o,response:r})}}(e));const o=await Un(t.serviceWorker.url,t.serviceWorker.options,t.findWorker),[r,a]=o;if(!r){const e=n?.findWorker?d.formatMessage('Failed to locate the Service Worker registration using a custom "findWorker" predicate.\n\nPlease ensure that the custom predicate properly locates the Service Worker registration at "%s".\nMore details: https://mswjs.io/docs/api/setup-worker/start#findworker\n',t.serviceWorker.url):d.formatMessage('Failed to locate the Service Worker registration.\n\nThis most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.\n\nPlease consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start',t.serviceWorker.url,location.host);throw new Error(e)}return e.workerPromise.resolve(r),e.registration=a,window.addEventListener("beforeunload",()=>{"redundant"!==r.state&&e.workerChannel.postMessage("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"})}),await function(e){const t=new zn;return e.workerChannel.postMessage("INTEGRITY_CHECK_REQUEST"),e.workerChannel.once("INTEGRITY_CHECK_RESPONSE",e=>{const{checksum:n,packageVersion:o}=e.data;"4db4a41e972cec1b64cc569c66952d82"!==n&&d.warn(`The currently registered Service Worker has been generated by a different version of MSW (${o}) and may not be fully compatible with the installed version.\n\nIt's recommended you update your worker script by running this command:\n\n • npx msw init <PUBLIC_DIR>\n\nYou can also automate this process and make the worker script update automatically upon the library installations. Read more: https://mswjs.io/docs/cli/init.`),t.resolve()}),t}(e).catch(e=>{d.error("Error while checking the worker script integrity. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),console.error(e)}),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.postMessage("KEEPALIVE_REQUEST"),5e3),function(e,t){t?.quiet||location.href.startsWith(e.scope)||d.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${e.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue.\n\n- (Recommended) Register the worker at the root level ("/") of your application.\n- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`)}(a,e.startOptions),a})().then(async n=>{const o=n.installing||n.waiting;if(o){const e=new zn;o.addEventListener("statechange",()=>{"activated"===o.state&&e.resolve()}),await e}return await function(e,t){const n=new zn;return e.workerChannel.postMessage("MOCK_ACTIVATE"),e.workerChannel.once("MOCKING_ENABLED",async o=>{e.isMockingEnabled=!0;const r=await e.workerPromise;Mn({quiet:t.quiet,workerScope:e.registration?.scope,workerUrl:r.scriptURL,client:o.data.client}),n.resolve(!0)}),n}(e,t).catch(e=>{throw d.error("Failed to enable mocking. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),e}),n});return o},Io=class{#i;#s;constructor(){this.#i=[],this.#s=new Map}get[Symbol.iterator](){return this.#i[Symbol.iterator].bind(this.#i)}entries(){return this.#s.entries()}get(e){return this.#s.get(e)||[]}getAll(){return this.#i.map(([,e])=>e)}append(e,t){this.#i.push([e,t]),this.#u(e,e=>e.push(t))}prepend(e,t){this.#i.unshift([e,t]),this.#u(e,e=>e.unshift(t))}delete(e,t){if(0!==this.size){this.#i=this.#i.filter(e=>e[1]!==t);for(const[n,o]of this.#s)n===e&&o.includes(t)&&o.splice(o.indexOf(t),1)}}deleteAll(e){0!==this.size&&(this.#i=this.#i.filter(t=>t[0]!==e),this.#s.delete(e))}get size(){return this.#i.length}clear(){0!==this.size&&(this.#i.length=0,this.#s.clear())}#u(e,t){t(this.#s.get(e)||this.#s.set(e,[]).get(e))}},To=Symbol("kDefaultPrevented"),Ao=Symbol("kPropagationStopped"),Oo=Symbol("kImmediatePropagationStopped"),Po=class extends MessageEvent{#c;[To];[Ao];[Oo];constructor(...e){super(e[0],e[1]),this[To]=!1}get defaultPrevented(){return this[To]}preventDefault(){super.preventDefault(),this[To]=!0}stopImmediatePropagation(){super.stopImmediatePropagation(),this[Oo]=!0}},Do=Symbol("kListenerOptions"),Lo=class{#l;constructor(){this.#l=new Io}on(e,t,n){return this.#d(e,t,n),this}once(e,t,n){return this.on(e,t,{...n||{},once:!0})}earlyOn(e,t,n){return this.#d(e,t,n,"prepend"),this}earlyOnce(e,t,n){return this.earlyOn(e,t,{...n||{},once:!0})}emit(e){if(0===this.#l.size)return!1;const t=this.listenerCount(e.type)>0,n=this.#p(e);for(const t of this.#h(e.type)){if(null!=n.event[Ao]&&n.event[Ao]!==this)return n.revoke(),!1;if(n.event[Oo])break;this.#f(n.event,t)}return n.revoke(),t}async emitAsPromise(e){if(0===this.#l.size)return[];const t=[],n=this.#p(e);for(const o of this.#h(e.type)){if(null!=n.event[Ao]&&n.event[Ao]!==this)return n.revoke(),[];if(n.event[Oo])break;const e=await Promise.resolve(this.#f(n.event,o));this.#g(o)||t.push(e)}return n.revoke(),Promise.allSettled(t).then(e=>e.map(e=>"fulfilled"===e.status?e.value:e.reason))}*emitAsGenerator(e){if(0===this.#l.size)return;const t=this.#p(e);for(const n of this.#h(e.type)){if(null!=t.event[Ao]&&t.event[Ao]!==this)return void t.revoke();if(t.event[Oo])break;const e=this.#f(t.event,n);this.#g(n)||(yield e)}t.revoke()}removeListener(e,t){this.#l.delete(e,t)}removeAllListeners(e){null!=e?this.#l.deleteAll(e):this.#l.clear()}listeners(e){return null==e?this.#l.getAll():this.#l.get(e)}listenerCount(e){return null==e?this.#l.size:this.listeners(e).length}#d(e,t,n,o="append"){"prepend"===o?this.#l.prepend(e,t):this.#l.append(e,t),n&&(Object.defineProperty(t,Do,{value:n,enumerable:!1,writable:!1}),n.signal&&n.signal.addEventListener("abort",()=>{this.removeListener(e,t)},{once:!0}))}#p(e){const{stopPropagation:t}=e;return e.stopPropagation=new Proxy(e.stopPropagation,{apply:(t,n,o)=>(e[Ao]=this,Reflect.apply(t,n,o))}),{event:e,revoke(){e.stopPropagation=t}}}#f(e,t){const n=t.call(this,e);if(t[Do]?.once){const n=this.#g(t)?"*":e.type;this.#l.delete(n,t)}return n}*#h(e){for(const[t,n]of this.#l)"*"!==t&&t!==e||(yield n)}#g(e){return this.#l.get("*").includes(e)}},jo=Gn(),zo=class extends Po{#m;constructor(e){super(e.data.type,{data:e.data.payload}),this.#m=e}get ports(){return this.#m.ports}postMessage(e,...t){this.#m.ports[0].postMessage({type:e,data:t[0]},{transfer:t[1]})}},No=class extends Lo{constructor(e){super(),this.options=e,jo&&navigator.serviceWorker.addEventListener("message",async e=>{const t=await this.options.worker;null!=e.source&&e.source!==t||e.data&&r(e.data)&&"type"in e.data&&this.emit(new zo(e))})}postMessage(e){Ln(jo,"Failed to post message on a WorkerChannel: the Service Worker API is unavailable in this context. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.options.worker.then(t=>{t.postMessage(e)})}};async function qo(e,t,...n){const o=e.listeners(t);if(0!==o.length)for(const t of o)await t.apply(e,n)}function Uo(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==t&&(("function"!=typeof t.get||void 0!==t.get())&&((void 0!==t.get||null!=t.value)&&(!(void 0===t.set&&!t.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}var Mo=async e=>{try{return{error:null,data:await e().catch(e=>{throw e})}}catch(e){return{error:e,data:null}}};function Bo(e,t=!1){return t?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function Fo(e,t){try{return e[t],!0}catch{return!1}}function Go(e){return null!=e&&e instanceof Response&&Fo(e,"type")&&"error"===e.type}async function Wo(e){const t=async t=>{return t instanceof Error?(await e.controller.errorWith(t),!0):Go(t)?(await e.controller.respondWith(t),!0):Bo(n=t,!0)&&Fo(n,"status")&&Fo(n,"statusText")&&Fo(n,"bodyUsed")?(await e.controller.respondWith(t),!0):!!Bo(t)&&(await e.controller.errorWith(t),!0);var n},n=async n=>{if(n instanceof Kn)throw r.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(n)?(await e.controller.errorWith(n),!0):n instanceof Response&&await t(n)},o=new zn;if(e.request.signal){if(e.request.signal.aborted)return void await e.controller.errorWith(e.request.signal.reason);e.request.signal.addEventListener("abort",()=>{o.reject(e.request.signal.reason)},{once:!0})}const r=await Mo(async()=>{const t=qo(e.emitter,"request",{requestId:e.requestId,request:e.request,controller:e.controller});await Promise.race([o,t,e.controller.handled])});if("rejected"!==o.state){var a;if(!r.error)return e.controller.readyState===$n.PENDING?await e.controller.passthrough():e.controller.handled;if(await n(r.error))return;if(e.emitter.listenerCount("unhandledException")>0){const n=new $n(e.request,{passthrough(){},async respondWith(e){await t(e)},async errorWith(t){await e.controller.errorWith(t)}});if(await qo(e.emitter,"unhandledException",{error:r.error,request:e.request,requestId:e.requestId,controller:n}),n.readyState!==$n.PENDING)return}await e.controller.respondWith((a=r.error,new Response(JSON.stringify(a instanceof Error?{name:a.name,message:a.message,stack:a.stack}:a),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await e.controller.errorWith(o.rejectionReason)}function Vo(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}var Ho=["content-encoding","content-language","content-location","content-type","content-length"],Ko=Symbol("kRedirectCount");function $o(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var Qo=class extends TransformStream{constructor(){console.warn("[Interceptors]: Brotli decompression of response streams is not supported in the browser"),super({transform(e,t){t.enqueue(e)}})}},Yo=class extends TransformStream{constructor(e,...t){super({},...t);const n=[super.readable,...e].reduce((e,t)=>e.pipeThrough(t));Object.defineProperty(this,"readable",{get:()=>n})}};function Jo(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map(e=>e.trim())}(e);return 0===t.length?null:new Yo(t.reduceRight((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new Qo):(e.length=0,e),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var Xo=class e extends xo{static{this.symbol=Symbol("fetch")}constructor(){super(e.symbol)}checkEnvironment(){return Uo("fetch")}async setup(){const e=globalThis.fetch;Ln(!e[Hn],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(t,n)=>{const o=Eo(),r="string"!=typeof t||"undefined"==typeof location||Qn(t)?t:new URL(t,location.href),a=new Request(r,n);t instanceof Request&&Zn(a,t);const i=new zn,s=new $n(a,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const t=a.clone(),{error:n,data:r}=await Mo(()=>e(a));if(n)return i.reject(n);if(this.logger.info("original fetch performed",r),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const e=r.clone();await qo(this.emitter,"response",{response:e,isMockedResponse:!1,request:t,requestId:o})}i.resolve(r)},respondWith:async e=>{if(Go(e))return this.logger.info("request has errored!",{response:e}),void i.reject(Vo(e));this.logger.info("received mocked response!",{rawResponse:e});const t=Jo(e),n=null===t?e:new Jn(t,e);if(Jn.setUrl(a.url,n),Jn.isRedirectResponse(n.status)){if("error"===a.redirect)return void i.reject(Vo("unexpected redirect"));if("follow"===a.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(Vo());const n=new URL(e.url);let o;try{o=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(Vo(e))}if("http:"!==o.protocol&&"https:"!==o.protocol)return Promise.reject(Vo("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,Ko)>20)return Promise.reject(Vo("redirect count exceeded"));if(Object.defineProperty(e,Ko,{value:(Reflect.get(e,Ko)||0)+1}),"cors"===e.mode&&(o.username||o.password)&&!$o(n,o))return Promise.reject(Vo('cross origin not allowed for request mode "cors"'));const r={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(r.method="GET",r.body=null,Ho.forEach(t=>{e.headers.delete(t)})),$o(n,o)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),r.headers=e.headers;const a=await fetch(new Request(o,r));return Object.defineProperty(a,"redirected",{value:!0,configurable:!0}),a}(a,n).then(e=>{i.resolve(e)},e=>{i.reject(e)})}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await qo(this.emitter,"response",{response:n.clone(),isMockedResponse:!0,request:a,requestId:o})),i.resolve(n)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),i.reject(e)}});return this.logger.info("[%s] %s",a.method,a.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await Wo({request:a,requestId:o,emitter:this.emitter,controller:s}),i},Object.defineProperty(globalThis.fetch,Hn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.fetch,Hn,{value:void 0}),globalThis.fetch=e,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)})}};var Zo=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=t?.target||null,this.currentTarget=t?.currentTarget||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},er=class extends Zo{constructor(e,t){super(e),this.lengthComputable=t?.lengthComputable||!1,this.composed=t?.composed||!1,this.loaded=t?.loaded||0,this.total=t?.total||0}},tr="undefined"!=typeof ProgressEvent;function nr(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const n=Reflect.getPrototypeOf(e);return n?nr(n,t):null}function or(e,t){return new Proxy(e,function(e){const{constructorCall:t,methodCall:n,getProperty:o,setProperty:r}=e,a={};void 0!==t&&(a.construct=function(e,n,o){const r=Reflect.construct.bind(null,e,n,o);return t.call(o,n,r)});return a.set=function(e,t,n){const o=()=>{const o=nr(e,t)||e,r=Reflect.getOwnPropertyDescriptor(o,t);return void 0!==r?.set?(r.set.apply(e,[n]),!0):Reflect.defineProperty(o,t,{writable:!0,enumerable:!0,configurable:!0,value:n})};return void 0!==r?r.call(e,[t,n],o):o()},a.get=function(e,t,r){const a=()=>e[t],i=void 0!==o?o.call(e,[t,r],a):a();return"function"==typeof i?(...o)=>{const r=i.bind(e,...o);return void 0!==n?n.call(e,[t,o],r):r()}:i},a}(t))}function rr(e){const t=new Headers,n=e.split(/[\r\n]+/);for(const e of n){if(""===e.trim())continue;const[n,...o]=e.split(": "),r=o.join(": ");t.append(n,r)}return t}async function ar(e){const t=e.headers.get("content-length");return null!=t&&""!==t?Number(t):(await e.arrayBuffer()).byteLength}var ir=Symbol("kIsRequestHandled"),sr=jn(),ur=Symbol("kFetchRequest"),cr=class{constructor(e,t){this.initialRequest=e,this.logger=t,this.method="GET",this.url=null,this[ir]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=Eo(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=or(e,{setProperty:([e,t],n)=>{if("ontimeout"===e){const o=e.slice(2);return this.request.addEventListener(o,t),n()}return n()},methodCall:([e,t],n)=>{switch(e){case"open":{const[e,o]=t;return void 0===o?(this.method="GET",this.url=lr(e)):(this.method=e,this.url=lr(o)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),n()}case"addEventListener":{const[e,o]=t;return this.registerEvent(e,o),this.logger.info("addEventListener",e,o),n()}case"setRequestHeader":{const[e,o]=t;return this.requestHeaders.set(e,o),this.logger.info("setRequestHeader",e,o),n()}case"send":{const[e]=t;this.request.addEventListener("load",()=>{if(void 0!==this.onResponse){const e=function(e,t){return new Jn(Jn.isResponseWithBody(e.status)?t:null,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:rr(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[ir],request:a,requestId:this.requestId})}});const r="string"==typeof e?(o=e,Co.encode(o)):e,a=this.toFetchApiRequest(r);this[ur]=a.clone(),queueMicrotask(()=>{(this.onRequest?.call(this,{request:a,requestId:this.requestId})||Promise.resolve()).finally(()=>{if(!this[ir])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),sr&&this.request.setRequestHeader("x-interceptors-internal-request-id",this.requestId),n()})});break}default:return n()}var o}}),dr(this.request,"upload",or(this.request.upload,{setProperty:([e,t],n)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const n=e.slice(2);this.registerUploadEvent(n,t)}}return n()},methodCall:([e,t],n)=>{if("addEventListener"===e){const[e,o]=t;return this.registerUploadEvent(e,o),this.logger.info("upload.addEventListener",e,o),n()}}}))}registerEvent(e,t){const n=(this.events.get(e)||[]).concat(t);this.events.set(e,n),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const n=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,n),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[ir]=!0,this[ur]){const e=await ar(this[ur]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),dr(this.request,"status",e.status),dr(this.request,"statusText",e.statusText),dr(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,n,o)=>{if(this.logger.info("getResponseHeader",o[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const r=e.headers.get(o[0]);return this.logger.info('resolved response header "%s" to',o[0],r),r}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map(([e,t])=>`${e}: ${t}`).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await ar(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const n=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const o=e.body.getReader(),r=async()=>{const{value:e,done:a}=await o.read();if(a)return this.logger.info("response body stream done!"),void n();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),r()};r()}else n()}responseBufferToText(){return e=this.responseBuffer,new TextDecoder(t).decode(e);var e,t}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const t=(e=this.responseBuffer).buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return this.logger.info("resolved response ArrayBuffer",t),t}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}var e}get responseText(){if(Ln(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(Ln(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):function(e){return["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some(t=>e.startsWith(t))}(e)?(new DOMParser).parseFromString(this.responseBufferToText(),e):null}errorWith(e){this[ir]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(dr(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,n){const o=t[`on${e}`],r=function(e,t,n){const o=tr?ProgressEvent:er;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new o(t,{lengthComputable:!0,loaded:n?.loaded||0,total:n?.total||0}):new Zo(t,{target:e,currentTarget:e})}(t,e,n);this.logger.info('trigger "%s"',e,n||""),"function"==typeof o&&(this.logger.info('found a direct "%s" callback, calling...',e),o.call(t,r));const a=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[n,o]of a)n===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',o.length,e),o.forEach(e=>e.call(t,r)))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,n=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t});return dr(n,"headers",or(n.headers,{methodCall:([e,t],o)=>{switch(e){case"append":case"set":{const[e,n]=t;this.request.setRequestHeader(e,n);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${n.method} ${n.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return o()}})),Zn(n,this.request),this.logger.info("converted request to a Fetch API Request!",n),n}};function lr(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function dr(e,t,n){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:n})}var pr=class e extends xo{static{this.interceptorSymbol=Symbol("xhr")}constructor(){super(e.interceptorSymbol)}checkEnvironment(){return Uo("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;Ln(!t[Hn],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(n,o,r){t.info("constructed new XMLHttpRequest");const a=Reflect.construct(n,o,r),i=Object.getOwnPropertyDescriptors(n.prototype);for(const e in i)Reflect.defineProperty(a,e,i[e]);const s=new cr(a,t);return s.onRequest=async function({request:t,requestId:n}){const o=new $n(t,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{Go(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await Wo({request:t,requestId:n,controller:o,emitter:e})},s.onResponse=async function({response:t,isMockedResponse:n,request:o,requestId:r}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:n,request:o,requestId:r})},s.request}})}({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,Hn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.XMLHttpRequest,Hn,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)})}};var hr=class extends Ot{context;constructor(...e){super(...e),Ln(!jn(),d.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.context=this.createWorkerContext()}createWorkerContext(){const e=new zn;return{isMockingEnabled:!1,startOptions:null,workerPromise:e,registration:void 0,getRequestHandlers:()=>this.handlersController.currentHandlers(),emitter:this.emitter,workerChannel:new No({worker:e})}}async start(e={}){if("waitUntilReady"in e&&d.warn('The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'),this.context.isMockingEnabled)return d.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.'),this.context.registration;if(this.context.workerStoppedAt=void 0,this.context.startOptions=a(Nn,e),function(e){_n.on("connection",async t=>{const n=e.getHandlers().filter(Ct("EventHandler"));if(n.length>0)return e?.onMockedConnection(t),void await Promise.all(n.map(e=>e.run(t)));const o=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await y(o,e.getUnhandledRequestStrategy()).catch(e=>{const n=new Event("error");Object.defineProperty(n,"cause",{enumerable:!0,configurable:!1,value:e}),t.client.socket.dispatchEvent(n)}),e?.onPassthroughConnection(t),t.server.connect()})}({getUnhandledRequestStrategy:()=>this.context.startOptions.onUnhandledRequest,getHandlers:()=>this.handlersController.currentHandlers(),onMockedConnection:e=>{this.context.startOptions.quiet||An(e)},onPassthroughConnection(){}}),_n.apply(),this.subscriptions.push(()=>{_n.dispose()}),!Gn()){const e=function(e,t){const n=new So({name:"fallback",interceptors:[new Xo,new pr]});return n.on("request",async({request:n,requestId:o,controller:r})=>{const a=n.clone(),i=await Et(n,o,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onMockedResponse(n,{handler:o,parsedResult:r}){t.quiet||e.emitter.once("response:mocked",({response:e})=>{o.log({request:a,response:e,parsedResult:r})})}});i&&r.respondWith(i)}),n.on("response",({response:t,isMockedResponse:n,request:o,requestId:r})=>{e.emitter.emit(n?"response:mocked":"response:bypass",{response:t,request:o,requestId:r})}),n.apply(),n}(this.context,this.context.startOptions);return this.subscriptions.push(()=>{e.dispose()}),this.context.isMockingEnabled=!0,void Mn({message:"Mocking enabled (fallback mode).",quiet:this.context.startOptions.quiet})}const t=Ro(this.context),n=await t(this.context.startOptions,e);return this.context.isMockingEnabled=!0,n}stop(){super.dispose(),this.context.isMockingEnabled?(this.context.isMockingEnabled=!1,this.context.workerStoppedAt=Date.now(),this.context.emitter.removeAllListeners(),Gn()&&(this.context.workerChannel.removeAllListeners("RESPONSE"),window.clearInterval(this.context.keepAliveInterval)),window.postMessage({type:"msw/worker:stop"}),function(e={}){e.quiet||console.log(`%c${d.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}({quiet:this.context.startOptions?.quiet})):d.warn('Found a redundant "worker.stop()" call. Notice that stopping the worker after it has already been stopped has no effect. Consider removing this "worker.stop()" call.')}};const{message:fr}=Xe;function gr(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var o=e[n];if("*"!==o&&"+"!==o&&"?"!==o)if("\\"!==o)if("{"!==o)if("}"!==o)if(":"!==o)if("("!==o)t.push({type:"CHAR",index:n,value:e[n++]});else{var r=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--r){s++;break}}else if("("===e[s]&&(r++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(r)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var i="",s=n+1;s<e.length;){var u=e.charCodeAt(s);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=t.prefixes,r=void 0===o?"./":o,a=t.delimiter,i=void 0===a?"/#?":a,s=[],u=0,c=0,l="",d=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var o=n[c],r=o.type,a=o.index;throw new TypeError("Unexpected ".concat(r," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},f=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=i;t<n.length;t++){var o=n[t];if(e.indexOf(o)>-1)return!0}return!1}(n)?"[^".concat(yr(i),"]+?"):"(?:(?!".concat(yr(n),")[^").concat(yr(i),"])+?")};c<n.length;){var g=d("CHAR"),m=d("NAME"),y=d("PATTERN");if(m||y){var v=g||"";-1===r.indexOf(v)&&(l+=v,v=""),l&&(s.push(l),l=""),s.push({name:m||u++,prefix:v,suffix:"",pattern:y||f(v),modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)l+=b;else if(l&&(s.push(l),l=""),d("OPEN")){v=h();var k=d("NAME")||"",_=d("PATTERN")||"",w=h();p("CLOSE"),s.push({name:k||(_?u++:""),pattern:k&&!_?f(v):_,prefix:v,suffix:w,modifier:d("MODIFIER")||""})}else p("END")}}return s}function mr(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var o=n.decode,r=void 0===o?function(e){return e}:o;return function(n){var o=e.exec(n);if(!o)return!1;for(var a=o[0],i=o.index,s=Object.create(null),u=function(e){if(void 0===o[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=o[e].split(n.prefix+n.suffix).map(function(e){return r(e,n)}):s[n.name]=r(o[e],n)},c=1;c<o.length;c++)u(c);return{path:a,index:i,params:s}}}(kr(e,n,t),n,t)}function yr(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function vr(e){return e&&e.sensitive?"":"i"}function br(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var o=n.strict,r=void 0!==o&&o,a=n.start,i=void 0===a||a,s=n.end,u=void 0===s||s,c=n.encode,l=void 0===c?function(e){return e}:c,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(yr(void 0===h?"":h),"]|$"),g="[".concat(yr(p),"]"),m=i?"^":"",y=0,v=e;y<v.length;y++){var b=v[y];if("string"==typeof b)m+=yr(l(b));else{var k=yr(l(b.prefix)),_=yr(l(b.suffix));if(b.pattern)if(t&&t.push(b),k||_)if("+"===b.modifier||"*"===b.modifier){var w="*"===b.modifier?"?":"";m+="(?:".concat(k,"((?:").concat(b.pattern,")(?:").concat(_).concat(k,"(?:").concat(b.pattern,"))*)").concat(_,")").concat(w)}else m+="(?:".concat(k,"(").concat(b.pattern,")").concat(_,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw new TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));m+="(".concat(b.pattern,")").concat(b.modifier)}else m+="(?:".concat(k).concat(_,")").concat(b.modifier)}}if(u)r||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(f,")"):"$";else{var x=e[e.length-1],E="string"==typeof x?g.indexOf(x[x.length-1])>-1:void 0===x;r||(m+="(?:".concat(g,"(?=").concat(f,"))?")),E||(m+="(?=".concat(g,"|").concat(f,")"))}return new RegExp(m,vr(n))}(gr(e,n),t,n)}function kr(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,o=0,r=n.exec(e.source);r;)t.push({name:r[1]||o++,prefix:"",suffix:"",modifier:"",pattern:""}),r=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var o=e.map(function(e){return kr(e,t,n).source});return new RegExp("(?:".concat(o.join("|"),")"),vr(n))}(e,t,n):br(e,t,n)}var _r=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}};function wr(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}(class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new Zt}get#a(){return this.handled}async passthrough(){c.as(_r,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){c.as(_r,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){c.as(_r,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}});var xr=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return;const n=wr("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const o=n.status??200,r=e.isConfigurableStatusCode(o)?o:200;if(super(e.isResponseWithBody(o)?t:null,{status:r,statusText:n.statusText,headers:n.headers}),o!==r){const e=wr("state",this);e?e.status=o:Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}};new TextEncoder;const Er=/[?|#].*$/g;function Cr(e){return e.endsWith("?")?e:e.replace(Er,"")}function Sr(e,t){if(e instanceof RegExp)return e;const n=function(e,t){if(/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e))return e;if(e.startsWith("*"))return e;const n=t||"undefined"!=typeof location&&location.href;return n?decodeURI(new URL(encodeURI(e),n).href):e}(e,t);return Cr(n)}function Rr(e,t,n){const o=Sr(t,n),r="string"==typeof o?function(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,n)=>{const o="(.*)";return t?t.startsWith(":")?`${t}${n}`:`${t}${o}`:o}).replace(/([^/])(:)(?=\d+)/,"$1\\$2").replace(/^([^/]+)(:)(?=\/\/)/,"$1\\$2")}(o):o,a=function(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}(e),i=mr(r,{decode:decodeURIComponent})(a);return{matches:!1!==i,params:i&&i.params||{}}}var Ir=Object.create,Tr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,Or=Object.getOwnPropertyNames,Pr=Object.getPrototypeOf,Dr=Object.prototype.hasOwnProperty,Lr=((e,t)=>function(){return t||(0,e[Or(e)[0]])((t={exports:{}}).exports,t),t.exports})({"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(e,t){const n=new i,o=e.length;if(o<2)return n;const r=t?.decode||c;let a=0;do{const t=e.indexOf("=",a);if(-1===t)break;const i=e.indexOf(";",a),c=-1===i?o:i;if(t>c){a=e.lastIndexOf(";",t-1)+1;continue}const l=s(e,a,t),d=u(e,t,l),p=e.slice(l,d);if(void 0===n[p]){let o=s(e,t+1,c),a=u(e,c,o);const i=r(e.slice(o,a));n[p]=i}a=c+1}while(a<o);return n},e.serialize=function(e,i,s){const u=s?.encode||encodeURIComponent;if(!t.test(e))throw new TypeError(`argument name is invalid: ${e}`);const c=u(i);if(!n.test(c))throw new TypeError(`argument val is invalid: ${i}`);let l=e+"="+c;if(!s)return l;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);l+="; Max-Age="+s.maxAge}if(s.domain){if(!o.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);l+="; Domain="+s.domain}if(s.path){if(!r.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);l+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);l+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(l+="; HttpOnly");s.secure&&(l+="; Secure");s.partitioned&&(l+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}}return l};var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function s(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function u(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function c(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}}}),jr=((e,t,n)=>(n=null!=e?Ir(Pr(e)):{},((e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of Or(t))Dr.call(e,r)||r===n||Tr(e,r,{get:()=>t[r],enumerable:!(o=Ar(t,r))||o.enumerable});return e})(!t&&e&&e.__esModule?n:Tr(n,"default",{value:e,enumerable:!0}),e)))(Lr(),1),zr=jr.default||jr,Nr=zr.parse,qr=zr.serialize;function Ur(e){const t=Nr(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Mr(){return Ur(document.cookie)}function Br(e){const t=e.headers.get("cookie"),n=t?Ur(t):{},o=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Mr():{}}case"include":return Mr();default:return{}}}(e);for(const t in o)e.headers.append("cookie",qr(t,o[t]));const r=Ne.getCookies(e.url),a=Object.fromEntries(r.map(e=>[e.key,e.value]));for(const t of r)e.headers.append("cookie",t.toString());return{...o,...a,...n}}var Fr=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Fr||{});class Gr extends g{constructor(e,t,n,o){const r="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${r?` ${r}`:""}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;Cr(t)!==t&&d.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=Br(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?Rr(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=m(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||fr[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),r=(a=o.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(d.formatMessage(`${wn()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${r}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Wr(e){return(t,n,o={})=>new Gr(e,t,n,o)}const Vr={all:Wr(/.+/),head:Wr(Fr.HEAD),get:Wr(Fr.GET),post:Wr(Fr.POST),put:Wr(Fr.PUT),delete:Wr(Fr.DELETE),patch:Wr(Fr.PATCH),options:Wr(Fr.OPTIONS)},Hr=Symbol("bodyType");class Kr extends xr{[Hr]=null;constructor(e,t){const n=xt(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,wt,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=kt.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new Kr(e,n)}static json(e,t){const n=xt(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new Kr(o,n)}static xml(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new Kr(e,n)}static html(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new Kr(e,n)}static arrayBuffer(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new Kr(e,n)}static formData(e,t){return new Kr(e,xt(t))}}c("undefined"!=typeof URL,d.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var $r,Qr={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},Yr={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Jr={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Xr={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Zr=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ea={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},ta=[Vr.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return Kr.json(Qr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return Kr.json(Yr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return Kr.json(Jr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return Kr.json(Xr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return Kr.json(Zr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return Kr.json(ea)})],na={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},oa={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},ra={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}($r||($r={}));var aa={sales_volume_metric_group:ra.sales_volume_metric_group,total_payments:ra.total_payments},ia=Vr.get("/api/insights/overview-metrics",function(){return Kr.json(aa)}),sa=[Vr.get("/api/v3/insights/overview-metrics/".concat($r.GENERAL),function(){return Kr.json({sales_volume_metric_group:aa.sales_volume_metric_group})}),Vr.get("/api/v3/insights/overview-metrics/".concat($r.LATENCY),function(){return Kr.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),Vr.get("/api/v3/insights/overview-metrics/".concat($r.STATUS),function(){return Kr.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),Vr.get("/api/v3/insights/overview-metrics/".concat($r.SUBSCRIPTIONS),function(){return Kr.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],ua=e.__spreadArray([ia],sa,!0),ca=e.__spreadArray([Vr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return Kr.json(na)}),Vr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return Kr.json(oa)}),Vr.get("*/dialogs",function(){return Kr.json({})}),Vr.get("*/accounts/webhooks/:accountCode",function(){return Kr.json({})}),Vr.get("*/accounts/webhooks/params-catalog",function(){return Kr.json({})}),Vr.get("*/accounts/webhooks-v2/:accountCode",function(){return Kr.json({})})],ua,!0),la={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},da={total:100,page:1,page_size:10,total_pages:10},pa={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},ha={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},fa={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},ga=la,ma={data:[pa,e.__assign(e.__assign({},pa),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:da},ya=e.__assign(e.__assign({},la),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),va={data:[e.__assign(e.__assign({},pa),{reconciliation_status:"STATUS_CONFLICT"})],pagination:e.__assign(e.__assign({},da),{total:20,total_pages:2})},ba=e.__assign(e.__assign({},la),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),ka={data:[e.__assign(e.__assign({},pa),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:e.__assign(e.__assign({},da),{total:10,total_pages:1})},_a={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},wa=e.__assign(e.__assign({},la),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),xa={data:[e.__assign(e.__assign({},pa),{reconciliation_status:"DATE_CONFLICT"})],pagination:e.__assign(e.__assign({},da),{total:55,total_pages:6})},Ea={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Ca=e.__assign(e.__assign({},la),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),Sa={data:[e.__assign(e.__assign({},ha),{fee_status:"MISMATCH"}),e.__assign(e.__assign({},ha),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:e.__assign(e.__assign({},da),{total:15,total_pages:2})},Ra={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},Ia={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},Ta=e.__assign(e.__assign({},la),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Aa={data:[ha],pagination:e.__assign(e.__assign({},da),{total:800,total_pages:80})},Oa={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Pa=e.__assign(e.__assign({},la),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),Da={data:[e.__assign(e.__assign({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:e.__assign(e.__assign({},da),{total:25,total_pages:3})},La={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},ja="*/reconciliations/insights",za=[Vr.post("".concat(ja,"/conflicts/summary"),function(){return Kr.json(fa)}),Vr.post("".concat(ja,"/not-reconciled/aggregators"),function(){return Kr.json(ga)}),Vr.post("".concat(ja,"/not-reconciled/list"),function(){return Kr.json(ma)}),Vr.post("".concat(ja,"/status-conflict/aggregators"),function(){return Kr.json(ya)}),Vr.post("".concat(ja,"/status-conflict/list"),function(){return Kr.json(va)}),Vr.post("".concat(ja,"/amount-conflict/aggregators"),function(){return Kr.json(ba)}),Vr.post("".concat(ja,"/amount-conflict/list"),function(){return Kr.json(ka)}),Vr.post("".concat(ja,"/conflict-date/summary"),function(){return Kr.json(_a)}),Vr.post("".concat(ja,"/conflict-date/aggregators"),function(){return Kr.json(wa)}),Vr.post("".concat(ja,"/conflict-date/list"),function(){return Kr.json(xa)}),Vr.post("".concat(ja,"/incorrect-fees/summary"),function(){return Kr.json(Ea)}),Vr.post("".concat(ja,"/incorrect-fees/aggregators"),function(){return Kr.json(Ca)}),Vr.post("".concat(ja,"/incorrect-fees/list"),function(){return Kr.json(Sa)}),Vr.post("".concat(ja,"/fees-charged/summary"),function(){return Kr.json(Ra)}),Vr.post("".concat(ja,"/reconciled/summary"),function(){return Kr.json(Ia)}),Vr.post("".concat(ja,"/reconciled/aggregators"),function(){return Kr.json(Ta)}),Vr.post("".concat(ja,"/reconciled/list"),function(){return Kr.json(Aa)}),Vr.post("".concat(ja,"/not-confirm/summary"),function(){return Kr.json(Oa)}),Vr.post("".concat(ja,"/not-confirm/aggregators"),function(){return Kr.json(Pa)}),Vr.post("".concat(ja,"/not-confirm/list"),function(){return Kr.json(Da)}),Vr.post("".concat(ja,"/amount-to-be-settled/summary"),function(){return Kr.json(La)}),Vr.post("".concat(ja,"/reconciliation-rate/summary/by-provider"),function(){return Kr.json({total:{total_transactions:0,transactions_percentage:0},data:[]})}),Vr.post("".concat(ja,"/reconciliation-rate/summary/by-account"),function(){return Kr.json([])}),Vr.post("".concat(ja,"/reconciliation-rate/summary/by-currency"),function(){return Kr.json([])})],Na=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],qa={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},Ua={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Ma={deleted:!0},Ba=[Vr.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return Kr.json(Na)}),Vr.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return Kr.json(qa)}),Vr.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return Kr.json(Ua)}),Vr.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return Kr.json(Ma)})],Fa={data:[{code:"api-log-001",url:"/api/v1/payments",method:"POST",source:"dashboard",headers:{"Content-Type":"application/json",Authorization:"Bearer token123"},request:{amount:"100.00",currency:"USD"},response:{status:"success",payment_id:"pay_123"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-123-456",created_at:"2024-03-01T10:00:00Z",payment_code:"PAY001",transaction_code:"TXN001"},{code:"api-log-002",url:"/api/v1/payments/PAY001",method:"GET",source:"api",headers:{"Content-Type":"application/json"},request:{},response:{payment_code:"PAY001",amount:"100.00"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-789-012",created_at:"2024-03-01T10:05:00Z"}],page:1,size:10,total_rows:2,total_pages:1},Ga=[Vr.post("https://dev.y.uno/dashboard-bff/api/v3/api-logs/organization",function(){return Kr.json(Fa)})],Wa={data:[{id:1,organization_code:"ORG001",account_code:"ACC001",type:"payment.succeeded",created_at:"2024-03-01T10:00:00Z",updated_at:"2024-03-01T10:00:00Z",time:250,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.succeeded",payment_code:"PAY001"}),response:JSON.stringify({received:!0}),response_status:200,connect_timeout:5e3,read_timeout:1e4,exception:"",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-001",origin_id:"origin-001",payment_code:"PAY001",transaction_code:"TXN001"},{id:2,organization_code:"ORG001",account_code:"ACC001",type:"payment.failed",created_at:"2024-03-01T10:05:00Z",updated_at:"2024-03-01T10:05:00Z",time:300,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.failed",payment_code:"PAY002"}),response:"",response_status:500,connect_timeout:5e3,read_timeout:1e4,exception:"Connection timeout",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-002",origin_id:"origin-002",payment_code:"PAY002"}],page:1,size:10,total_rows:2,total_pages:1},Va=[Vr.post("https://dev.y.uno/dashboard-bff/api/v3/webhooks/timeline",function(){return Kr.json(Wa)})],Ha=e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray([],ta,!0),ca,!0),za,!0),Ba,!0),Ga,!0),Va,!0),Ka=function(...e){return new hr(...e)}.apply(void 0,Ha),$a="MSW_ENABLED";function Qa(e){e?(localStorage.setItem($a,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem($a),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function Ya(){return"true"===localStorage.getItem($a)}function Ja(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return Qa(!0)},window.disableMSW=function(){return Qa(!1)},window.isMSWEnabled=Ya);const{toString:Xa}=Object.prototype,{getPrototypeOf:Za}=Object,{iterator:ei,toStringTag:ti}=Symbol,ni=(oi=Object.create(null),e=>{const t=Xa.call(e);return oi[t]||(oi[t]=t.slice(8,-1).toLowerCase())});var oi;const ri=e=>(e=e.toLowerCase(),t=>ni(t)===e),ai=e=>t=>typeof t===e,{isArray:ii}=Array,si=ai("undefined");function ui(e){return null!==e&&!si(e)&&null!==e.constructor&&!si(e.constructor)&&di(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ci=ri("ArrayBuffer");const li=ai("string"),di=ai("function"),pi=ai("number"),hi=e=>null!==e&&"object"==typeof e,fi=e=>{if("object"!==ni(e))return!1;const t=Za(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ti in e||ei in e)},gi=ri("Date"),mi=ri("File"),yi=ri("Blob"),vi=ri("FileList"),bi=ri("URLSearchParams"),[ki,_i,wi,xi]=["ReadableStream","Request","Response","Headers"].map(ri);function Ei(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),ii(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(ui(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function Ci(e,t){if(ui(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Si="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ri=e=>!si(e)&&e!==Si;const Ii=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Za(Uint8Array)),Ti=ri("HTMLFormElement"),Ai=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Oi=ri("RegExp"),Pi=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ei(n,(n,r)=>{let a;!1!==(a=t(n,r,e))&&(o[r]=a||n)}),Object.defineProperties(e,o)};const Di=ri("AsyncFunction"),Li=(ji="function"==typeof setImmediate,zi=di(Si.postMessage),ji?setImmediate:zi?(Ni=`axios@${Math.random()}`,qi=[],Si.addEventListener("message",({source:e,data:t})=>{e===Si&&t===Ni&&qi.length&&qi.shift()()},!1),e=>{qi.push(e),Si.postMessage(Ni,"*")}):e=>setTimeout(e));var ji,zi,Ni,qi;const Ui="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Si):"undefined"!=typeof process&&process.nextTick||Li;var Mi={isArray:ii,isArrayBuffer:ci,isBuffer:ui,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||di(e.append)&&("formdata"===(t=ni(e))||"object"===t&&di(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ci(e.buffer),t},isString:li,isNumber:pi,isBoolean:e=>!0===e||!1===e,isObject:hi,isPlainObject:fi,isEmptyObject:e=>{if(!hi(e)||ui(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ki,isRequest:_i,isResponse:wi,isHeaders:xi,isUndefined:si,isDate:gi,isFile:mi,isBlob:yi,isRegExp:Oi,isFunction:di,isStream:e=>hi(e)&&di(e.pipe),isURLSearchParams:bi,isTypedArray:Ii,isFileList:vi,forEach:Ei,merge:function e(){const{caseless:t,skipUndefined:n}=Ri(this)&&this||{},o={},r=(r,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=t&&Ci(o,a)||a;fi(o[i])&&fi(r)?o[i]=e(o[i],r):fi(r)?o[i]=e({},r):ii(r)?o[i]=r.slice():n&&si(r)||(o[i]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ei(arguments[e],r);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Ei(t,(t,o)=>{n&&di(t)?Object.defineProperty(e,o,{value:Ja(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,a,i;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)i=r[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Za(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ni,kindOfTest:ri,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(ii(e))return e;let t=e.length;if(!pi(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ei]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:Ti,hasOwnProperty:Ai,hasOwnProp:Ai,reduceDescriptors:Pi,freezeMethods:e=>{Pi(e,(t,n)=>{if(di(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];di(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach(e=>{n[e]=!0})};return ii(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ci,global:Si,isContextDefined:Ri,isSpecCompliantForm:function(e){return!!(e&&di(e.append)&&"FormData"===e[ti]&&e[ei])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(hi(e)){if(t.indexOf(e)>=0)return;if(ui(e))return e;if(!("toJSON"in e)){t[o]=e;const r=ii(e)?[]:{};return Ei(e,(e,t)=>{const a=n(e,o+1);!si(a)&&(r[t]=a)}),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:Di,isThenable:e=>e&&(hi(e)||di(e))&&di(e.then)&&di(e.catch),setImmediate:Li,asap:Ui,isIterable:e=>null!=e&&di(e[ei])};class Bi extends Error{static from(e,t,n,o,r,a){const i=new Bi(e.message,t||e.code,n,o,r);return i.cause=e,i.name=e.name,a&&Object.assign(i,a),i}constructor(e,t,n,o,r){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Mi.toJSONObject(this.config),code:this.code,status:this.status}}}Bi.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Bi.ERR_BAD_OPTION="ERR_BAD_OPTION",Bi.ECONNABORTED="ECONNABORTED",Bi.ETIMEDOUT="ETIMEDOUT",Bi.ERR_NETWORK="ERR_NETWORK",Bi.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Bi.ERR_DEPRECATED="ERR_DEPRECATED",Bi.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Bi.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Bi.ERR_CANCELED="ERR_CANCELED",Bi.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Bi.ERR_INVALID_URL="ERR_INVALID_URL";var Fi=Bi;function Gi(e){return Mi.isPlainObject(e)||Mi.isArray(e)}function Wi(e){return Mi.endsWith(e,"[]")?e.slice(0,-2):e}function Vi(e,t,n){return e?e.concat(t).map(function(e,t){return e=Wi(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Hi=Mi.toFlatObject(Mi,{},null,function(e){return/^is[A-Z]/.test(e)});function Ki(e,t,n){if(!Mi.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=Mi.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Mi.isUndefined(t[e])})).metaTokens,r=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Mi.isSpecCompliantForm(t);if(!Mi.isFunction(r))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Mi.isDate(e))return e.toISOString();if(Mi.isBoolean(e))return e.toString();if(!s&&Mi.isBlob(e))throw new Fi("Blob is not supported. Use a Buffer instead.");return Mi.isArrayBuffer(e)||Mi.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(Mi.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Mi.isArray(e)&&function(e){return Mi.isArray(e)&&!e.some(Gi)}(e)||(Mi.isFileList(e)||Mi.endsWith(n,"[]"))&&(s=Mi.toArray(e)))return n=Wi(n),s.forEach(function(e,o){!Mi.isUndefined(e)&&null!==e&&t.append(!0===i?Vi([n],o,a):null===i?n:n+"[]",u(e))}),!1;return!!Gi(e)||(t.append(Vi(r,n,a),u(e)),!1)}const l=[],d=Object.assign(Hi,{defaultVisitor:c,convertValue:u,isVisitable:Gi});if(!Mi.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!Mi.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),Mi.forEach(n,function(n,a){!0===(!(Mi.isUndefined(n)||null===n)&&r.call(t,n,Mi.isString(a)?a.trim():a,o,d))&&e(n,o?o.concat(a):[a])}),l.pop()}}(e),t}function $i(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Qi(e,t){this._pairs=[],e&&Ki(e,this,t)}const Yi=Qi.prototype;function Ji(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xi(e,t,n){if(!t)return e;const o=n&&n.encode||Ji,r=Mi.isFunction(n)?{serialize:n}:n,a=r&&r.serialize;let i;if(i=a?a(t,r):Mi.isURLSearchParams(t)?t.toString():new Qi(t,r).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Yi.append=function(e,t){this._pairs.push([e,t])},Yi.toString=function(e){const t=e?function(t){return e.call(this,t,$i)}:$i;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Zi=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){Mi.forEach(this.handlers,function(t){null!==t&&e(t)})}},es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ts={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Qi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ns="undefined"!=typeof window&&"undefined"!=typeof document,os="object"==typeof navigator&&navigator||void 0,rs=ns&&(!os||["ReactNative","NativeScript","NS"].indexOf(os.product)<0),as="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,is=ns&&window.location.href||"http://localhost";var ss={...Object.freeze({__proto__:null,hasBrowserEnv:ns,hasStandardBrowserEnv:rs,hasStandardBrowserWebWorkerEnv:as,navigator:os,origin:is}),...ts};function us(e){function t(e,n,o,r){let a=e[r++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=r>=e.length;if(a=!a&&Mi.isArray(o)?o.length:a,s)return Mi.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!i;o[a]&&Mi.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&Mi.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o<r;o++)a=n[o],t[a]=e[a];return t}(o[a])),!i}if(Mi.isFormData(e)&&Mi.isFunction(e.entries)){const n={};return Mi.forEachEntry(e,(e,o)=>{t(function(e){return Mi.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const cs={transitional:es,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=Mi.isObject(e);r&&Mi.isHTMLForm(e)&&(e=new FormData(e));if(Mi.isFormData(e))return o?JSON.stringify(us(e)):e;if(Mi.isArrayBuffer(e)||Mi.isBuffer(e)||Mi.isStream(e)||Mi.isFile(e)||Mi.isBlob(e)||Mi.isReadableStream(e))return e;if(Mi.isArrayBufferView(e))return e.buffer;if(Mi.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ki(e,new ss.classes.URLSearchParams,{visitor:function(e,t,n,o){return ss.isNode&&Mi.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=Mi.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ki(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(Mi.isString(e))try{return(t||JSON.parse)(e),Mi.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||cs.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Mi.isResponse(e)||Mi.isReadableStream(e))return e;if(e&&Mi.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 Fi.from(e,Fi.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:ss.classes.FormData,Blob:ss.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Mi.forEach(["delete","get","head","post","put","patch"],e=>{cs.headers[e]={}});var ls=cs;const ds=Mi.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 ps=Symbol("internals");function hs(e){return e&&String(e).trim().toLowerCase()}function fs(e){return!1===e||null==e?e:Mi.isArray(e)?e.map(fs):String(e)}function gs(e,t,n,o,r){return Mi.isFunction(o)?o.call(this,t,n):(r&&(t=n),Mi.isString(t)?Mi.isString(o)?-1!==t.indexOf(o):Mi.isRegExp(o)?o.test(t):void 0:void 0)}class ms{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=hs(t);if(!r)throw new Error("header name must be a non-empty string");const a=Mi.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=fs(e))}const a=(e,t)=>Mi.forEach(e,(e,n)=>r(e,n,t));if(Mi.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Mi.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&ds[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(Mi.isObject(e)&&Mi.isIterable(e)){let n,o,r={};for(const t of e){if(!Mi.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?Mi.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=hs(e)){const n=Mi.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(Mi.isFunction(t))return t.call(this,e,n);if(Mi.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=hs(e)){const n=Mi.findKey(this,e);return!(!n||void 0===this[n]||t&&!gs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=hs(e)){const r=Mi.findKey(n,e);!r||t&&!gs(0,n[r],r,t)||(delete n[r],o=!0)}}return Mi.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!gs(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return Mi.forEach(this,(o,r)=>{const a=Mi.findKey(n,r);if(a)return t[a]=fs(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();i!==r&&delete t[r],t[i]=fs(o),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Mi.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Mi.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[ps]=this[ps]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=hs(e);t[o]||(!function(e,t){const n=Mi.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[o]=!0)}return Mi.isArray(e)?e.forEach(o):o(e),this}}ms.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Mi.reduceDescriptors(ms.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Mi.freezeMethods(ms);var ys=ms;function vs(e,t){const n=this||ls,o=t||n,r=ys.from(o.headers);let a=o.data;return Mi.forEach(e,function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function bs(e){return!(!e||!e.__CANCEL__)}var ks=class extends Fi{constructor(e,t,n){super(null==e?"canceled":e,Fi.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function _s(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Fi("Request failed with status code "+n.status,[Fi.ERR_BAD_REQUEST,Fi.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ws=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];r||(r=u),n[a]=s,o[a]=u;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-r<t)return;const p=c&&u-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,o,r=0,a=1e3/t;const i=(t,a=Date.now())=>{r=a,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=a?i(e,t):(n=e,o||(o=setTimeout(()=>{o=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-o,u=r(s);o=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&a<=i?(i-a)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},xs=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Es=e=>(...t)=>Mi.asap(()=>e(...t));var Cs=ss.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ss.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ss.origin),ss.navigator&&/(msie|trident)/i.test(ss.navigator.userAgent)):()=>!0,Ss=ss.hasStandardBrowserEnv?{write(e,t,n,o,r,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Mi.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Mi.isString(o)&&s.push(`path=${o}`),Mi.isString(r)&&s.push(`domain=${r}`),!0===a&&s.push("secure"),Mi.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Rs(e,t,n){let o=!("string"==typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));var r;return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Is=e=>e instanceof ys?{...e}:e;function Ts(e,t){t=t||{};const n={};function o(e,t,n,o){return Mi.isPlainObject(e)&&Mi.isPlainObject(t)?Mi.merge.call({caseless:o},e,t):Mi.isPlainObject(t)?Mi.merge({},t):Mi.isArray(t)?t.slice():t}function r(e,t,n,r){return Mi.isUndefined(t)?Mi.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function a(e,t){if(!Mi.isUndefined(t))return o(void 0,t)}function i(e,t){return Mi.isUndefined(t)?Mi.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>r(Is(e),Is(t),0,!0)};return Mi.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;const a=Mi.hasOwnProp(u,o)?u[o]:r,i=a(e[o],t[o],o);Mi.isUndefined(i)&&a!==s||(n[o]=i)}),n}var As=e=>{const t=Ts({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=ys.from(i),t.url=Xi(Rs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Mi.isFormData(n))if(ss.hasStandardBrowserEnv||ss.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Mi.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(ss.hasStandardBrowserEnv&&(o&&Mi.isFunction(o)&&(o=o(t)),o||!1!==o&&Cs(t.url))){const e=r&&a&&Ss.read(a);e&&i.set(r,e)}return t};var Os="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=As(e);let r=o.data;const a=ys.from(o.headers).normalize();let i,s,u,c,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function f(){c&&c(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function m(){if(!g)return;const o=ys.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());_s(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:e,request:g}),g=null}g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Fi("Request aborted",Fi.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const o=t&&t.message?t.message:"Network Error",r=new Fi(o,Fi.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||es;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Fi(t,r.clarifyTimeoutError?Fi.ETIMEDOUT:Fi.ECONNABORTED,e,g)),g=null},void 0===r&&a.setContentType(null),"setRequestHeader"in g&&Mi.forEach(a.toJSON(),function(e,t){g.setRequestHeader(t,e)}),Mi.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),d&&"json"!==d&&(g.responseType=o.responseType),h&&([u,l]=ws(h,!0),g.addEventListener("progress",u)),p&&g.upload&&([s,c]=ws(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===ss.protocols.indexOf(y)?n(new Fi("Unsupported protocol "+y+":",Fi.ERR_BAD_REQUEST,e)):g.send(r||null)})};var Ps=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Fi?t:new ks(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,r(new Fi(`timeout of ${t}ms exceeded`,Fi.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:s}=o;return s.unsubscribe=()=>Mi.asap(i),s}};const Ds=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Ls=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()}},js=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of Ls(e))yield*Ds(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return s(),void e.close();let a=o.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:zs}=Mi,Ns=(({Request:e,Response:t})=>({Request:e,Response:t}))(Mi.global),{ReadableStream:qs,TextEncoder:Us}=Mi.global,Ms=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Bs=e=>{e=Mi.merge.call({skipUndefined:!0},Ns,e);const{fetch:t,Request:n,Response:o}=e,r=t?zs(t):"function"==typeof fetch,a=zs(n),i=zs(o);if(!r)return!1;const s=r&&zs(qs),u=r&&("function"==typeof Us?(e=>t=>e.encode(t))(new Us):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&s&&Ms(()=>{let e=!1;const t=new n(ss.origin,{body:new qs,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=i&&s&&Ms(()=>Mi.isReadableStream(new o("").body)),d={stream:l&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new Fi(`Response type '${e}' is not supported`,Fi.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const o=Mi.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(Mi.isBlob(e))return e.size;if(Mi.isSpecCompliantForm(e)){const t=new n(ss.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Mi.isArrayBufferView(e)||Mi.isArrayBuffer(e)?e.byteLength:(Mi.isURLSearchParams(e)&&(e+=""),Mi.isString(e)?(await u(e)).byteLength:void 0)})(t):o};return async e=>{let{url:r,method:i,data:s,signal:u,cancelToken:h,timeout:f,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=As(e),_=t||fetch;y=y?(y+"").toLowerCase():"text";let w=Ps([u,h&&h.toAbortSignal()],f),x=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(m&&c&&"get"!==i&&"head"!==i&&0!==(C=await p(v,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(Mi.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=xs(C,ws(Es(m)));s=js(t.body,65536,e,n)}}Mi.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,u={...k,signal:w,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};x=a&&new n(r,u);let h=await(a?_(x,k):_(r,u));const f=l&&("stream"===y||"response"===y);if(l&&(g||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=Mi.toFiniteNumber(h.headers.get("content-length")),[n,r]=g&&xs(t,ws(Es(g),!0))||[];h=new o(js(h.body,65536,n,()=>{r&&r(),E&&E()}),e)}y=y||"text";let S=await d[Mi.findKey(d,y)||"text"](h,e);return!f&&E&&E(),await new Promise((t,n)=>{_s(t,n,{data:S,headers:ys.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:x})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Fi("Network Error",Fi.ERR_NETWORK,e,x,t&&t.response),{cause:t.cause||t});throw Fi.from(t,t&&t.code,e,x,t&&t.response)}}},Fs=new Map,Gs=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t,a=[o,r,n];let i,s,u=a.length,c=Fs;for(;u--;)i=a[u],s=c.get(i),void 0===s&&c.set(i,s=u?new Map:Bs(t)),c=s;return s};Gs();const Ws={http:null,xhr:Os,fetch:{get:Gs}};Mi.forEach(Ws,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Vs=e=>`- ${e}`,Hs=e=>Mi.isFunction(e)||null===e||!1===e;var Ks={getAdapter:function(e,t){e=Mi.isArray(e)?e:[e];const{length:n}=e;let o,r;const a={};for(let i=0;i<n;i++){let n;if(o=e[i],r=o,!Hs(o)&&(r=Ws[(n=String(o)).toLowerCase()],void 0===r))throw new Fi(`Unknown adapter '${n}'`);if(r&&(Mi.isFunction(r)||(r=r.get(t))))break;a[n||"#"+i]=r}if(!r){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Vs).join("\n"):" "+Vs(e[0]):"as no adapter specified";throw new Fi("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:Ws};function $s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Qs(e){$s(e),e.headers=ys.from(e.headers),e.data=vs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ks.getAdapter(e.adapter||ls.adapter,e)(e).then(function(t){return $s(e),t.data=vs.call(e,e.transformResponse,t),t.headers=ys.from(t.headers),t},function(t){return bs(t)||($s(e),t&&t.response&&(t.response.data=vs.call(e,e.transformResponse,t.response),t.response.headers=ys.from(t.response.headers))),Promise.reject(t)})}const Ys="1.13.5",Js={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Js[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Xs={};Js.transitional=function(e,t,n){function o(e,t){return"[Axios v"+Ys+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new Fi(o(r," has been removed"+(t?" in "+t:"")),Fi.ERR_DEPRECATED);return t&&!Xs[r]&&(Xs[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},Js.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Zs={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Fi("options must be an object",Fi.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new Fi("option "+a+" must be "+n,Fi.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Fi("Unknown option "+a,Fi.ERR_BAD_OPTION)}},validators:Js};const eu=Zs.validators;let tu=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zi,response:new Zi}}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=Ts(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&Zs.assertOptions(n,{silentJSONParsing:eu.transitional(eu.boolean),forcedJSONParsing:eu.transitional(eu.boolean),clarifyTimeoutError:eu.transitional(eu.boolean),legacyInterceptorReqResOrdering:eu.transitional(eu.boolean)},!1),null!=o&&(Mi.isFunction(o)?t.paramsSerializer={serialize:o}:Zs.assertOptions(o,{encode:eu.function,serialize:eu.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Zs.assertOptions(t,{baseUrl:eu.spelling("baseURL"),withXsrfToken:eu.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&Mi.merge(r.common,r[t.method]);r&&Mi.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=ys.concat(a,r);const i=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||es;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const u=[];let c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[Qs.bind(this),void 0];for(e.unshift(...i),e.push(...u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}l=i.length;let p=t;for(;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Qs.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return Xi(Rs((e=Ts(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Mi.forEach(["delete","get","head","options"],function(e){tu.prototype[e]=function(t,n){return this.request(Ts(n||{},{method:e,url:t,data:(n||{}).data}))}}),Mi.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,r){return this.request(Ts(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}tu.prototype[e]=t(),tu.prototype[e+"Form"]=t(!0)});var nu=tu;class ou{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,r){n.reason||(n.reason=new ks(e,o,r),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 ou(function(t){e=t}),cancel:e}}}var ru=ou;const au={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(au).forEach(([e,t])=>{au[t]=e});var iu=au;const su=function e(t){const n=new nu(t),o=Ja(nu.prototype.request,n);return Mi.extend(o,nu.prototype,n,{allOwnKeys:!0}),Mi.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ts(t,n))},o}(ls);su.Axios=nu,su.CanceledError=ks,su.CancelToken=ru,su.isCancel=bs,su.VERSION=Ys,su.toFormData=Ki,su.AxiosError=Fi,su.Cancel=su.CanceledError,su.all=function(e){return Promise.all(e)},su.spread=function(e){return function(t){return e.apply(null,t)}},su.isAxiosError=function(e){return Mi.isObject(e)&&!0===e.isAxiosError},su.mergeConfig=Ts,su.AxiosHeaders=ys,su.formToJSON=e=>us(Mi.isHTMLForm(e)?new FormData(e):e),su.getAdapter=Ks.getAdapter,su.HttpStatusCode=iu,su.default=su;var uu=su,cu=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var r=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(r))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))}),t.join("&")},lu=function(t){function n(n){var o,r,a,i,s=this;return(s=t.call(this,n)||this).token="",null===(r=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===r||r.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===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.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=uu.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=uu.create(e)}),du="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pu(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var hu=TypeError,fu=pu(Object.freeze({__proto__:null,default:{}})),gu="function"==typeof Map&&Map.prototype,mu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,yu=gu&&mu&&"function"==typeof mu.get?mu.get:null,vu=gu&&Map.prototype.forEach,bu="function"==typeof Set&&Set.prototype,ku=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_u=bu&&ku&&"function"==typeof ku.get?ku.get:null,wu=bu&&Set.prototype.forEach,xu="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Eu="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Cu="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Su=Boolean.prototype.valueOf,Ru=Object.prototype.toString,Iu=Function.prototype.toString,Tu=String.prototype.match,Au=String.prototype.slice,Ou=String.prototype.replace,Pu=String.prototype.toUpperCase,Du=String.prototype.toLowerCase,Lu=RegExp.prototype.test,ju=Array.prototype.concat,zu=Array.prototype.join,Nu=Array.prototype.slice,qu=Math.floor,Uu="function"==typeof BigInt?BigInt.prototype.valueOf:null,Mu=Object.getOwnPropertySymbols,Bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Fu="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Gu="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fu||"symbol")?Symbol.toStringTag:null,Wu=Object.prototype.propertyIsEnumerable,Vu=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Hu(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Lu.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-qu(-e):qu(e);if(o!==e){var r=String(o),a=Au.call(t,r.length+1);return Ou.call(r,n,"$&_")+"."+Ou.call(Ou.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ou.call(t,n,"$&_")}var Ku=fu,$u=Ku.custom,Qu=rc($u)?$u:null,Yu={__proto__:null,double:'"',single:"'"},Ju={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Xu=function e(t,n,o,r){var a=n||{};if(ic(a,"quoteStyle")&&!ic(Yu,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ic(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!ic(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ic(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ic(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.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 cc(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?Hu(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?Hu(t,c):c}var l=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return nc(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=zu.call(Array(e.indent+1)," ")}return{base:n,prev:zu.call(Array(t+1),n)}}(a,o);if(void 0===r)r=[];else if(uc(r,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(r=Nu.call(r)).push(n),i){var s={depth:a.depth};return ic(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,r)}return e(t,a,o+1,r)}if("function"==typeof t&&!oc(t)){var h=function(e){if(e.name)return e.name;var t=Tu.call(Iu.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=gc(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+zu.call(f,", ")+" }":"")}if(rc(t)){var g=Fu?Ou.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Bu.call(t);return"object"!=typeof t||Fu?g:dc(g)}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 m="<"+Du.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)m+=" "+y[v].name+"="+Zu(ec(y[v].value),"double",a);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+Du.call(String(t.nodeName))+">"}if(nc(t)){if(0===t.length)return"[]";var b=gc(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(uc(e[t],"\n")>=0)return!1;return!0}(b)?"["+fc(b,d)+"]":"[ "+zu.call(b,", ")+" ]"}if(function(e){return"[object Error]"===sc(e)&&tc(e)}(t)){var k=gc(t,p);return"cause"in Error.prototype||!("cause"in t)||Wu.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+zu.call(k,", ")+" }":"{ ["+String(t)+"] "+zu.call(ju.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(Qu&&"function"==typeof t[Qu]&&Ku)return Ku(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!yu||!e||"object"!=typeof e)return!1;try{yu.call(e);try{_u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var _=[];return vu&&vu.call(t,function(e,n){_.push(p(n,t,!0)+" => "+p(e,t))}),hc("Map",yu.call(t),_,d)}if(function(e){if(!_u||!e||"object"!=typeof e)return!1;try{_u.call(e);try{yu.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return wu&&wu.call(t,function(e){w.push(p(e,t))}),hc("Set",_u.call(t),w,d)}if(function(e){if(!xu||!e||"object"!=typeof e)return!1;try{xu.call(e,xu);try{Eu.call(e,Eu)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return pc("WeakMap");if(function(e){if(!Eu||!e||"object"!=typeof e)return!1;try{Eu.call(e,Eu);try{xu.call(e,xu)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return pc("WeakSet");if(function(e){if(!Cu||!e||"object"!=typeof e)return!1;try{return Cu.call(e),!0}catch(e){}return!1}(t))return pc("WeakRef");if(function(e){return"[object Number]"===sc(e)&&tc(e)}(t))return dc(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Uu)return!1;try{return Uu.call(e),!0}catch(e){}return!1}(t))return dc(p(Uu.call(t)));if(function(e){return"[object Boolean]"===sc(e)&&tc(e)}(t))return dc(Su.call(t));if(function(e){return"[object String]"===sc(e)&&tc(e)}(t))return dc(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==du&&t===du)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===sc(e)&&tc(e)}(t)&&!oc(t)){var x=gc(t,p),E=Vu?Vu(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&Gu&&Object(t)===t&&Gu in t?Au.call(sc(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+zu.call(ju.call([],S||[],C||[]),": ")+"] ":"");return 0===x.length?R+"{}":d?R+"{"+fc(x,d)+"}":R+"{ "+zu.call(x,", ")+" }"}return String(t)};function Zu(e,t,n){var o=n.quoteStyle||t,r=Yu[o];return r+e+r}function ec(e){return Ou.call(String(e),/"/g,""")}function tc(e){return!Gu||!("object"==typeof e&&(Gu in e||void 0!==e[Gu]))}function nc(e){return"[object Array]"===sc(e)&&tc(e)}function oc(e){return"[object RegExp]"===sc(e)&&tc(e)}function rc(e){if(Fu)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Bu)return!1;try{return Bu.call(e),!0}catch(e){}return!1}var ac=Object.prototype.hasOwnProperty||function(e){return e in this};function ic(e,t){return ac.call(e,t)}function sc(e){return Ru.call(e)}function uc(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 cc(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return cc(Au.call(e,0,t.maxStringLength),t)+o}var r=Ju[t.quoteStyle||"single"];return r.lastIndex=0,Zu(Ou.call(Ou.call(e,r,"\\$1"),/[\x00-\x1f]/g,lc),"single",t)}function lc(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":"")+Pu.call(t.toString(16))}function dc(e){return"Object("+e+")"}function pc(e){return e+" { ? }"}function hc(e,t,n,o){return e+" ("+t+") {"+(o?fc(n,o):zu.call(n,", "))+"}"}function fc(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+zu.call(e,","+n)+"\n"+t.prev}function gc(e,t){var n=nc(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=ic(e,r)?t(e[r],e):""}var a,i="function"==typeof Mu?Mu(e):[];if(Fu){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var u in e)ic(e,u)&&(n&&String(Number(u))===u&&u<e.length||Fu&&a["$"+u]instanceof Symbol||(Lu.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof Mu)for(var c=0;c<i.length;c++)Wu.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var mc=Xu,yc=hu,vc=function(e,t,n){for(var o,r=e;null!=(o=r.next);r=o)if(o.key===t)return r.next=o.next,n||(o.next=e.next,e.next=o),o},bc=Object,kc=Error,_c=EvalError,wc=RangeError,xc=ReferenceError,Ec=SyntaxError,Cc=URIError,Sc=Math.abs,Rc=Math.floor,Ic=Math.max,Tc=Math.min,Ac=Math.pow,Oc=Math.round,Pc=Number.isNaN||function(e){return e!=e},Dc=Object.getOwnPropertyDescriptor;if(Dc)try{Dc([],"length")}catch(e){Dc=null}var Lc=Dc,jc=Object.defineProperty||!1;if(jc)try{jc({},"a",{value:1})}catch(e){jc=!1}var zc,Nc,qc,Uc,Mc,Bc,Fc,Gc,Wc,Vc,Hc,Kc,$c,Qc,Yc,Jc,Xc=jc;function Zc(){return Bc?Mc:(Bc=1,Mc="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function el(){return Gc?Fc:(Gc=1,Fc=bc.getPrototypeOf||null)}function tl(){if(Vc)return Wc;Vc=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 r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return Wc=function(o){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var a,i=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),s=t(0,r.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(a=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}(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=r.apply(this,n(i,arguments));return Object(e)===e?e:this}return r.apply(o,n(i,arguments))}),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},Wc}function nl(){if(Kc)return Hc;Kc=1;var e=tl();return Hc=Function.prototype.bind||e}function ol(){return Qc?$c:(Qc=1,$c=Function.prototype.call)}function rl(){return Jc?Yc:(Jc=1,Yc=Function.prototype.apply)}var al,il,sl,ul,cl,ll,dl,pl="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,hl=nl(),fl=rl(),gl=ol(),ml=pl||hl.call(gl,fl),yl=nl(),vl=hu,bl=ol(),kl=ml,_l=function(e){if(e.length<1||"function"!=typeof e[0])throw new vl("a function is required");return kl(yl,bl,e)};var wl=bc,xl=kc,El=_c,Cl=wc,Sl=xc,Rl=Ec,Il=hu,Tl=Cc,Al=Sc,Ol=Rc,Pl=Ic,Dl=Tc,Ll=Ac,jl=Oc,zl=function(e){return Pc(e)||0===e?e:e<0?-1:1},Nl=Function,ql=function(e){try{return Nl('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ul=Lc,Ml=Xc,Bl=function(){throw new Il},Fl=Ul?function(){try{return Bl}catch(e){try{return Ul(arguments,"callee").get}catch(e){return Bl}}}():Bl,Gl=function(){if(Uc)return qc;Uc=1;var e="undefined"!=typeof Symbol&&Symbol,t=Nc?zc:(Nc=1,zc=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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return qc=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Wl=function(){if(ul)return sl;ul=1;var e=Zc(),t=el(),n=function(){if(il)return al;il=1;var e,t=_l,n=Lc;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__"),r=Object,a=r.getPrototypeOf;return al=o&&"function"==typeof o.get?t([o.get]):"function"==typeof a&&function(e){return a(null==e?e:r(e))}}();return sl=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}(),Vl=el(),Hl=Zc(),Kl=rl(),$l=ol(),Ql={},Yl="undefined"!=typeof Uint8Array&&Wl?Wl(Uint8Array):dl,Jl={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?dl:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?dl:ArrayBuffer,"%ArrayIteratorPrototype%":Gl&&Wl?Wl([][Symbol.iterator]()):dl,"%AsyncFromSyncIteratorPrototype%":dl,"%AsyncFunction%":Ql,"%AsyncGenerator%":Ql,"%AsyncGeneratorFunction%":Ql,"%AsyncIteratorPrototype%":Ql,"%Atomics%":"undefined"==typeof Atomics?dl:Atomics,"%BigInt%":"undefined"==typeof BigInt?dl:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?dl:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?dl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?dl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":xl,"%eval%":eval,"%EvalError%":El,"%Float16Array%":"undefined"==typeof Float16Array?dl:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?dl:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?dl:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?dl:FinalizationRegistry,"%Function%":Nl,"%GeneratorFunction%":Ql,"%Int8Array%":"undefined"==typeof Int8Array?dl:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?dl:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?dl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gl&&Wl?Wl(Wl([][Symbol.iterator]())):dl,"%JSON%":"object"==typeof JSON?JSON:dl,"%Map%":"undefined"==typeof Map?dl:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Gl&&Wl?Wl((new Map)[Symbol.iterator]()):dl,"%Math%":Math,"%Number%":Number,"%Object%":wl,"%Object.getOwnPropertyDescriptor%":Ul,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?dl:Promise,"%Proxy%":"undefined"==typeof Proxy?dl:Proxy,"%RangeError%":Cl,"%ReferenceError%":Sl,"%Reflect%":"undefined"==typeof Reflect?dl:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?dl:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Gl&&Wl?Wl((new Set)[Symbol.iterator]()):dl,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?dl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gl&&Wl?Wl(""[Symbol.iterator]()):dl,"%Symbol%":Gl?Symbol:dl,"%SyntaxError%":Rl,"%ThrowTypeError%":Fl,"%TypedArray%":Yl,"%TypeError%":Il,"%Uint8Array%":"undefined"==typeof Uint8Array?dl:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?dl:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?dl:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?dl:Uint32Array,"%URIError%":Tl,"%WeakMap%":"undefined"==typeof WeakMap?dl:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?dl:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?dl:WeakSet,"%Function.prototype.call%":$l,"%Function.prototype.apply%":Kl,"%Object.defineProperty%":Ml,"%Object.getPrototypeOf%":Vl,"%Math.abs%":Al,"%Math.floor%":Ol,"%Math.max%":Pl,"%Math.min%":Dl,"%Math.pow%":Ll,"%Math.round%":jl,"%Math.sign%":zl,"%Reflect.getPrototypeOf%":Hl};if(Wl)try{null.error}catch(e){var Xl=Wl(Wl(e));Jl["%Error.prototype%"]=Xl}var Zl,ed,td,nd,od,rd,ad,id,sd,ud,cd,ld,dd,pd,hd,fd,gd,md,yd,vd,bd,kd,_d,wd,xd,Ed,Cd=function e(t){var n;if("%AsyncFunction%"===t)n=ql("async function () {}");else if("%GeneratorFunction%"===t)n=ql("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=ql("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&Wl&&(n=Wl(r.prototype))}return Jl[t]=n,n},Sd={__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"]},Rd=nl(),Id=function(){if(ll)return cl;ll=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=nl();return cl=n.call(e,t)}(),Td=Rd.call($l,Array.prototype.concat),Ad=Rd.call(Kl,Array.prototype.splice),Od=Rd.call($l,String.prototype.replace),Pd=Rd.call($l,String.prototype.slice),Dd=Rd.call($l,RegExp.prototype.exec),Ld=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,jd=/\\(\\)?/g,zd=function(e,t){var n,o=e;if(Id(Sd,o)&&(o="%"+(n=Sd[o])[0]+"%"),Id(Jl,o)){var r=Jl[o];if(r===Ql&&(r=Cd(o)),void 0===r&&!t)throw new Il("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new Rl("intrinsic "+e+" does not exist!")},Nd=function(e,t){if("string"!=typeof e||0===e.length)throw new Il("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Il('"allowMissing" argument must be a boolean');if(null===Dd(/^%?[^%]*%?$/,e))throw new Rl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Pd(e,0,1),n=Pd(e,-1);if("%"===t&&"%"!==n)throw new Rl("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Rl("invalid intrinsic syntax, expected opening `%`");var o=[];return Od(e,Ld,function(e,t,n,r){o[o.length]=n?Od(r,jd,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",r=zd("%"+o+"%",t),a=r.name,i=r.value,s=!1,u=r.alias;u&&(o=u[0],Ad(n,Td([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var d=n[c],p=Pd(d,0,1),h=Pd(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Rl("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Id(Jl,a="%"+(o+="."+d)+"%"))i=Jl[a];else if(null!=i){if(!(d in i)){if(!t)throw new Il("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ul&&c+1>=n.length){var f=Ul(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=Id(i,d),i=i[d];l&&!s&&(Jl[a]=i)}}return i},qd=Nd,Ud=_l,Md=Ud([qd("%String.prototype.indexOf%")]),Bd=function(e,t){var n=qd(e,!!t);return"function"==typeof n&&Md(e,".prototype.")>-1?Ud([n]):n},Fd=Bd,Gd=Xu,Wd=hu,Vd=Nd("%Map%",!0),Hd=Fd("Map.prototype.get",!0),Kd=Fd("Map.prototype.set",!0),$d=Fd("Map.prototype.has",!0),Qd=Fd("Map.prototype.delete",!0),Yd=Fd("Map.prototype.size",!0),Jd=!!Vd&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Wd("Side channel does not contain "+Gd(e))},delete:function(t){if(e){var n=Qd(e,t);return 0===Yd(e)&&(e=void 0),n}return!1},get:function(t){if(e)return Hd(e,t)},has:function(t){return!!e&&$d(e,t)},set:function(t,n){e||(e=new Vd),Kd(e,t,n)}};return t},Xd=Bd,Zd=Xu,ep=Jd,tp=hu,np=Nd("%WeakMap%",!0),op=Xd("WeakMap.prototype.get",!0),rp=Xd("WeakMap.prototype.set",!0),ap=Xd("WeakMap.prototype.has",!0),ip=Xd("WeakMap.prototype.delete",!0),sp=hu,up=Xu,cp=(np?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new tp("Side channel does not contain "+Zd(e))},delete:function(n){if(np&&n&&("object"==typeof n||"function"==typeof n)){if(e)return ip(e,n)}else if(ep&&t)return t.delete(n);return!1},get:function(n){return np&&n&&("object"==typeof n||"function"==typeof n)&&e?op(e,n):t&&t.get(n)},has:function(n){return np&&n&&("object"==typeof n||"function"==typeof n)&&e?ap(e,n):!!t&&t.has(n)},set:function(n,o){np&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new np),rp(e,n,o)):ep&&(t||(t=ep()),t.set(n,o))}};return n}:ep)||Jd||function(){var e,t={assert:function(e){if(!t.has(e))throw new yc("Side channel does not contain "+mc(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return vc(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=vc(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!vc(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=vc(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},lp=function(){var e,t={assert:function(e){if(!t.has(e))throw new sp("Side channel does not contain "+up(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=cp()),e.set(t,n)}};return t},dp=String.prototype.replace,pp=/%20/g,hp="RFC3986",fp={default:hp,formatters:{RFC1738:function(e){return dp.call(e,pp,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:hp},gp=fp,mp=lp,yp=Object.prototype.hasOwnProperty,vp=Array.isArray,bp=mp(),kp=function(e,t){return bp.set(e,t),e},_p=function(e){return bp.has(e)},wp=function(e){return bp.get(e)},xp=function(e,t){bp.set(e,t)},Ep=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Cp=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Sp=1024,Rp={arrayToObject:Cp,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,o){if(_p(e)){var r=wp(e)+1;return e[r]=t,xp(e,r),e}var a=[].concat(e,t);return a.length>n?kp(Cp(a,{plainObjects:o}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],i=Object.keys(a),s=0;s<i.length;++s){var u=i[s],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t[t.length]={obj:a,prop:u},n[n.length]=c)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(vp(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&(o[o.length]=n[r]);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,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Sp){for(var u=a.length>=Sp?a.slice(s,s+Sp):a,c=[],l=0;l<u.length;++l){var d=u.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===gp.RFC1738&&(40===d||41===d)?c[c.length]=u.charAt(l):d<128?c[c.length]=Ep[d]:d<2048?c[c.length]=Ep[192|d>>6]+Ep[128|63&d]:d<55296||d>=57344?c[c.length]=Ep[224|d>>12]+Ep[128|d>>6&63]+Ep[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(l)),c[c.length]=Ep[240|d>>18]+Ep[128|d>>12&63]+Ep[128|d>>6&63]+Ep[128|63&d])}i+=c.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:_p,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:kp,maybeMap:function(e,t){if(vp(e)){for(var n=[],o=0;o<e.length;o+=1)n[n.length]=t(e[o]);return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(vp(t)){var r=t.length;if(o&&"number"==typeof o.arrayLimit&&r>o.arrayLimit)return kp(Cp(t.concat(n),o),r);t[r]=n}else{if(!t||"object"!=typeof t)return[t,n];if(_p(t)){var a=wp(t)+1;t[a]=n,xp(t,a)}else(o&&(o.plainObjects||o.allowPrototypes)||!yp.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t){if(_p(n)){for(var i=Object.keys(n),s=o&&o.plainObjects?{__proto__:null,0:t}:{0:t},u=0;u<i.length;u++){s[parseInt(i[u],10)+1]=n[i[u]]}return kp(s,wp(n)+1)}var c=[t].concat(n);return o&&"number"==typeof o.arrayLimit&&c.length>o.arrayLimit?kp(Cp(c,o),c.length-1):c}var l=t;return vp(t)&&!vp(n)&&(l=Cp(t,o)),vp(t)&&vp(n)?(n.forEach(function(n,r){if(yp.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,o):t[t.length]=n}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var a=n[r];if(yp.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,_p(n)&&!_p(t)&&kp(t,wp(n)),_p(t)){var i=parseInt(r,10);String(i)===r&&i>=0&&i>wp(t)&&xp(t,i)}return t},l)}},Ip=lp,Tp=Rp,Ap=fp,Op=Object.prototype.hasOwnProperty,Pp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Dp=Array.isArray,Lp=Array.prototype.push,jp=function(e,t){Lp.apply(e,Dp(t)?t:[t])},zp=Date.prototype.toISOString,Np=Ap.default,qp={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Tp.encode,encodeValuesOnly:!1,filter:void 0,format:Np,formatter:Ap.formatters[Np],indices:!1,serializeDate:function(e){return zp.call(e)},skipNulls:!1,strictNullHandling:!1},Up={},Mp=function e(t,n,o,r,a,i,s,u,c,l,d,p,h,f,g,m,y,v){for(var b,k=t,_=v,w=0,x=!1;void 0!==(_=_.get(Up))&&!x;){var E=_.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");x=!0}void 0===_.get(Up)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===o&&Dp(k)&&(k=Tp.maybeMap(k,function(e){return e instanceof Date?h(e):e})),null===k){if(i)return c&&!m?c(n,qp.encoder,y,"key",f):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Tp.isBuffer(k))return c?[g(m?n:c(n,qp.encoder,y,"key",f))+"="+g(c(k,qp.encoder,y,"value",f))]:[g(n)+"="+g(String(k))];var C,S=[];if(void 0===k)return S;if("comma"===o&&Dp(k))m&&c&&(k=Tp.maybeMap(k,c)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(Dp(l))C=l;else{var R=Object.keys(k);C=d?R.sort(d):R}var I=u?String(n).replace(/\./g,"%2E"):String(n),T=r&&Dp(k)&&1===k.length?I+"[]":I;if(a&&Dp(k)&&0===k.length)return T+"[]";for(var A=0;A<C.length;++A){var O=C[A],P="object"==typeof O&&O&&void 0!==O.value?O.value:k[O];if(!s||null!==P){var D=p&&u?String(O).replace(/\./g,"%2E"):String(O),L=Dp(k)?"function"==typeof o?o(T,D):T:T+(p?"."+D:"["+D+"]");v.set(t,w);var j=Ip();j.set(Up,v),jp(S,e(P,L,o,r,a,i,s,u,"comma"===o&&m&&Dp(k)?null:c,l,d,p,h,f,g,m,y,j))}}return S},Bp=Rp,Fp=Object.prototype.hasOwnProperty,Gp=Array.isArray,Wp={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Bp.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Vp=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Hp=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},Kp=function(e,t,n,o){if(e){var r=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&Fp.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var o=/(\[[^[\]]*])/g,r=/(\[[^[\]]*])/.exec(n),a=r?n.slice(0,r.index):n,i=[];if(a){if(!t.plainObjects&&Fp.call(Object.prototype,a)&&!t.allowPrototypes)return;i[i.length]=a}for(var s=0;null!==(r=o.exec(n))&&s<t.depth;){s+=1;var u=r[1].slice(1,-1);if(!t.plainObjects&&Fp.call(Object.prototype,u)&&!t.allowPrototypes)return;i[i.length]=r[1]}if(r){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+n.slice(r.index)+"]"}return i}(e,n);if(r)return function(e,t,n,o){var r=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");r=Array.isArray(t)&&t[a]?t[a].length:0}for(var i=o?t:Hp(t,n,r),s=e.length-1;s>=0;--s){var u,c=e[s];if("[]"===c&&n.parseArrays)u=Bp.isOverflow(i)?i:n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:Bp.combine([],i,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,d=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10),h=!isNaN(p)&&c!==d&&String(p)===d&&p>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(h&&p<n.arrayLimit)(u=[])[p]=i;else{if(h&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");h?(u[p]=i,Bp.markOverflow(u,p)):"__proto__"!==d&&(u[d]=i)}else u={0:i}}i=u}return i}(r,t,n,o)}},$p=function(e,t){var n,o=e,r=function(e){if(!e)return qp;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||qp.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=Ap.default;if(void 0!==e.format){if(!Op.call(Ap.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,r=Ap.formatters[n],a=qp.filter;if(("function"==typeof e.filter||Dp(e.filter))&&(a=e.filter),o=e.arrayFormat in Pp?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":qp.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||qp.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:qp.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:qp.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qp.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?qp.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:qp.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:qp.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:qp.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:qp.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:qp.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:qp.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qp.strictNullHandling}}(t);"function"==typeof r.filter?o=(0,r.filter)("",o):Dp(r.filter)&&(n=r.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=Pp[r.arrayFormat],s="comma"===i&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var u=Ip(),c=0;c<n.length;++c){var l=n[c],d=o[l];r.skipNulls&&null===d||jp(a,Mp(d,l,i,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var p=a.join(r.delimiter),h=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""},Qp=function(e,t){var n=function(e){if(!e)return Wp;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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?Wp.charset:e.charset,n=void 0===e.duplicates?Wp.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||Wp.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Wp.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Wp.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Wp.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Wp.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Wp.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Wp.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Wp.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Wp.decoder,delimiter:"string"==typeof e.delimiter||Bp.isRegExp(e.delimiter)?e.delimiter:Wp.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Wp.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Wp.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Wp.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Wp.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Wp.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Wp.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__: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 r=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,t.throwOnLimitExceeded?r+1:r);if(t.throwOnLimitExceeded&&a.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(1===r?"":"s")+" allowed.");var i,s=-1,u=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?u="utf-8":"utf8=%26%2310003%3B"===a[i]&&(u="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var c,l,d=a[i],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;if(-1===h?(c=t.decoder(d,Wp.decoder,u,"key"),l=t.strictNullHandling?null:""):null!==(c=t.decoder(d.slice(0,h),Wp.decoder,u,"key"))&&(l=Bp.maybeMap(Hp(d.slice(h+1),t,Gp(n[c])?n[c].length:0),function(e){return t.decoder(e,Wp.decoder,u,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=Vp(String(l))),d.indexOf("[]=")>-1&&(l=Gp(l)?[l]:l),t.comma&&Gp(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=Bp.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==c){var f=Fp.call(n,c);f&&"combine"===t.duplicates?n[c]=Bp.combine(n[c],l,t.arrayLimit,t.plainObjects):f&&"last"!==t.duplicates||(n[c]=l)}}return n}(e,n):e,r=n.plainObjects?{__proto__:null}:{},a=Object.keys(o),i=0;i<a.length;++i){var s=a[i],u=Kp(s,o[s],n,"string"==typeof e);r=Bp.merge(r,u,n)}return!0===n.allowSparse?r:Bp.compact(r)},Yp={formats:fp,parse:Qp,stringify:$p},Jp={withCredentials:!1,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 Yp.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,Zl=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(ed=Zl.NotificationStatus||(Zl.NotificationStatus={})).SETTLED="SETTLED",ed.NOT_SETTLED="NOT_SETTLED",(td=Zl.NotificationReason||(Zl.NotificationReason={})).REFUNDED="REFUNDED",td.RESOLVED="RESOLVED",td.CANCELLED="CANCELLED",td.SERVICE_SUSPENDED="SERVICE_SUSPENDED",td.ORDER_STOPPED="ORDER_STOPPED",td.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(nd=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",nd.INSIGHTS="insights",exports.Organization=void 0,od=exports.Organization||(exports.Organization={}),(rd=od.CustomClaims||(od.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",rd.USER_CODE="https://dashboard.dev.y.uno/user_code",rd.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,ad=exports.Country||(exports.Country={}),(id=ad.CountryCode||(ad.CountryCode={})).COLOMBIA="CO",id.MEXICO="MX",id.BRAZIL="BR",id.ARGENTINA="AR",id.CHILE="CL",id.PERU="PE",id.URUGUAY="UR",id.ECUADOR="EC",exports.Cms=void 0,sd=exports.Cms||(exports.Cms={}),(ud=sd.Locale||(sd.Locale={})).EN="en",ud.ES="es",ud.PT="pt",(cd=sd.Target||(sd.Target={})).BLANK="_blank",cd.PARENT="_parent",cd.SELF="_self",cd.TOP="_top",exports.ReportType=void 0,(ld=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",ld.TRANSACTIONS="TRANSACTIONS",ld.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",ld.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(dd=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",dd.DEFAULT="DEFAULT",dd.CUSTOM="CUSTOM",exports.SmartRouting=void 0,(pd=exports.SmartRouting||(exports.SmartRouting={})).DEFAULT_ROUTING_TYPE="smart-routing",(hd=pd.StepType||(pd.StepType={})).FRAUD="FRAUD",hd.PAYMENT="PAYMENT",hd.THREE_D_SECURE="THREE_D_SECURE",hd.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(fd=pd.DeclineGroupType||(pd.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",fd.MAC_CODE="MAC_CODE",exports.DataReport=void 0,gd=exports.DataReport||(exports.DataReport={}),(md=gd.InsightsVolumeMetricsV2Path||(gd.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",md.APPROVED_PAYMENTS="approved-payments",md.PAYMENT_METHODS="payment-methods",md.PROVIDERS="providers",md.COUNTRIES="countries",md.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",md.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(gd.OverviewMetricType||(gd.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(yd=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",yd.SETTLEMENTS="SETTLEMENTS",yd.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",yd.AGENDA="AGENDA",yd.SALES_CONCILIATION="SALES_CONCILIATION",yd.FEES="FEES",yd.ADVANCEMENTS="ADVANCEMENTS",yd.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",yd.SETTLEMENTS_FEES="SETTLEMENTS_FEES",yd.CASHFLOW="CASHFLOW",yd.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS",exports.ReconciliationAgendaInsight=void 0,(vd=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",vd.DAILY="AGENDA_DAILY_DISTRIBUTION",vd.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",vd.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.Audit=void 0,bd=exports.Audit||(exports.Audit={}),(kd=bd.AuditExportReportType||(bd.AuditExportReportType={})).DASHBOARD="DASHBOARD",kd.API="API",kd.WEBHOOKS="WEBHOOKS",kd.MONITORS="MONITORS",exports.AI=void 0,_d=exports.AI||(exports.AI={}),(wd=_d.AIGenerateStatus||(_d.AIGenerateStatus={})).ACCEPTED="ACCEPTED",wd.REFUSED="REFUSED",wd.FRONT_FAILED="FRONT_FAILED",exports.OrganizationConfig=void 0,xd=exports.OrganizationConfig||(exports.OrganizationConfig={}),(Ed=xd.ConfigType||(xd.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",Ed.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",Ed.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN";var Xp=["PAUSED","ACTIVE"],Zp={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},eh="DELETED",th={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},nh=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},oh=[{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"}],rh=[{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"}],ah=[{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"}],ih=[{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:""}}],sh=[{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"}],uh={docs_url:"https://docs.y.uno/reference/api-reference-overview"},ch={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}]},lh=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const dh=[];for(let e=0;e<256;++e)dh.push((e+256).toString(16).slice(1));let ph;const hh=new Uint8Array(16);var fh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function gh(e,t,n){if(fh.randomUUID&&!t&&!e)return fh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!ph){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ph=crypto.getRandomValues.bind(crypto)}return ph(hh)}();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(dh[e[t+0]]+dh[e[t+1]]+dh[e[t+2]]+dh[e[t+3]]+"-"+dh[e[t+4]]+dh[e[t+5]]+"-"+dh[e[t+6]]+dh[e[t+7]]+"-"+dh[e[t+8]]+dh[e[t+9]]+"-"+dh[e[t+10]]+dh[e[t+11]]+dh[e[t+12]]+dh[e[t+13]]+dh[e[t+14]]+dh[e[t+15]]).toLowerCase()}(o)}var mh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function yh(e){return e&&0!==e.length?{metadata_filters:e.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})}:{}}var vh=function(t){function n(n){var o=n?e.__assign(e.__assign({},Jp),n):Jp;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.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},n.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},n.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},n.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},n.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},n.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},n.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},n.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},n.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},n.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},n.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(o).length>0?{params:o}:void 0)},n.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(o).length>0?{params:o}:void 0)},n.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},n.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},n.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},n.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},n.prototype.getReconciliationInsightsReconciliationRateByProvider=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-provider",e)},n.prototype.getReconciliationInsightsReconciliationRateByAccount=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-account",e)},n.prototype.getReconciliationInsightsReconciliationRateByCurrency=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-currency",e)},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payments/lazy",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},n.prototype.postPayouts=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payouts",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},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=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/v2/transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/fraud-transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},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.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,r=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),r?{}:{headers:a})},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.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},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":gh()}})},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,n,o){var r={};return e&&(r["x-password"]=e),t&&(r["x-account-code"]=t),n&&(r["x-otp"]=n),o&&(r["x-mfa-token"]=o),this.get("/v2/developers/credentials",{headers:r})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{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"),r={"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:r})},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.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},n.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},n.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},n.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},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,o){return void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE),e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n).concat("routing-payouts"===o?"?flow_type=PAYOUT":""))]})})},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.getOnboardingStatus=function(e){return this.get("/onboarding/status/".concat(e))},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==eh)return delete t.status,this.delete(o,{data:t});Object.values(Xp).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(Zp[t.status]),delete t.status);var r={"x-account-code":n};return this.post(o,t,{headers:r})},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,r=t.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(r),e.__assign({account_code:i},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,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/webhooks/organization",a,{params:r,paramsSerializer:cu})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:cu})},n.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:cu})},n.prototype.getApiLogsV3=function(e){return this.get("/v3/api-logs/payment/".concat(e))},n.prototype.getWebhookTimeline=function(e){return this.get("/v3/webhooks/payment/".concat(e))},n.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:cu})},n.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:cu})},n.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},n.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},n.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},n.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},n.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},n.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},n.prototype.postApiLogs=function(t){var n=t.payload,o=n.account_code,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/api-logs/organization",a,{params:r,paramsSerializer:cu})},n.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v3/api-logs/payment/".concat(e))},n.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},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,t){void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var n="routing-payouts"===t?"/".concat(t,"/config/withdrawal-methods"):"/".concat(t,"/methods/").concat(e);return this.get(n)},n.prototype.putSmartRoutingToggleMethod=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="/".concat(o,"/methods/").concat(e,"/").concat(t);return this.put(r,{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/config/condition-types/").concat(t):"/".concat(n,"/condition-types/").concat(e,"/").concat(t);return this.get(o)},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,o){return void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===o?this.post("/".concat(o,"/config/next-steps"),{step_type:t,status:n}):this.get("/".concat(o,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflow-version/").concat(t):"/".concat(n,"/workflow-version/").concat(e,"/").concat(t);return this.get(o)},n.prototype.getSmartRoutingWorkflow=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/workflow/").concat(e,"/").concat(t);return this.get(o)},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){var o;if(void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n){var r=(null===(o=t.version)||void 0===o?void 0:o.code)||t.code;return this.put("/".concat(n,"/workflows/").concat(r),t)}return this.put("/".concat(n,"/update-workflow/").concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/name/").concat(t.code):"/".concat(n,"/workflow/").concat(e,"/edit-name");return this.put(o,t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n?this.post("/".concat(n,"/workflows"),t):this.post("/".concat(n,"/create-workflow/").concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r={"x-organization-code":n},a="routing-payouts"===o?"/".concat(o,"/workflows/").concat(t,"/publish"):"/".concat(o,"/publish-version/").concat(e,"/").concat(t);return this.post(a,{},{headers:r})},n.prototype.deleteSmartRoutingVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/delete-version/").concat(e,"/").concat(t);return this.delete(o)},n.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t,"/duplicate"):"/".concat(n,"/duplicate-version/").concat(e,"/").concat(t);return this.post(o,{})},n.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/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,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/payments/").concat(t,"/route"):"/".concat(n,"/payment-route/").concat(e,"/").concat(t);return this.get(o)},n.prototype.updateSmartRoutingFavorite=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===o?"/".concat(o,"/workflows/favorite/").concat(t):"/".concat(o,"/favorite/").concat(e,"/").concat(t);return this.put(r,{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===o?"/".concat(o,"/workflows/").concat(t,"/simulate"):"/".concat(o,"/simulate-transaction/").concat(e,"/").concat(t);return this.post(r,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,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=mh(o);return r&&(s.connection_name=r.split(",")),a&&(s=e.__assign(e.__assign({},s),yh(a))),this.post("/insights/conversion-rate/".concat(n),s,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var o=t.account_code,r=t.metadata,a=e.__rest(t,["account_code","metadata"]),i=mh(o);return r&&(i=e.__assign(e.__assign({},i),yh(r))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),i,{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]),a=mh(n);return o&&(a=e.__assign(e.__assign({},a),yh(o))),this.post("/insights/conversion-rate/fallback",a,{params:r})},n.prototype.getInsightsMetricsVolume=function(t,n){var o=n.connection_name,r=n.metadata,a=e.__rest(n,["connection_name","metadata"]),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(",")})),r&&(i=e.__assign(e.__assign({},i),yh(r))),this.post("/insights/volume/metrics",i,{params:a})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var r=o.connection_name,a=o.metadata,i=e.__rest(o,["connection_name","metadata"]),s={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),yh(a))),this.post("/insights/volume/".concat(n),s,{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,r=t.metadata,a=e.__rest(t,["account_code","connection_name","metadata"]),i=mh(n);return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),r&&(i=e.__assign(e.__assign({},i),yh(r))),this.post("/insights/overview",i,{params:a})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=mh(o);return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),yh(a))),this.post("/insights/overview/".concat(n),s,{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.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.getPaymentMethodAccounts=function(e){var t=e.paymentMethod,n={"x-organization-code":e.organizationCode};return this.get("/checkouts/payment-methods/".concat(t,"/accounts"),{headers: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(t){var n=t.accountCode,o=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",o,{headers:{"x-account-code":n}})},n.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},n.prototype.publishCheckout=function(t){var n=t.accountCode,o=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",o,{headers:{"x-account-code":n}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,o={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:o})},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.createReconciliationsReportV3=function(e){return this.post("/v3/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.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},n.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},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,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},n.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},n.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},n.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},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,r,a,i){void 0===o&&(o=1),void 0===r&&(r=10);var s=e.__assign(e.__assign({account_codes:n||[],page:o,page_size:r},a&&{search_value:a}),(null==i?void 0:i.length)&&{role_ids:i});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),s)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.getRolesForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/roles"))},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.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},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.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},n.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},n.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},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.search,r=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:o,status:r,role_id:a,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},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.getOrgRolesPermissions=function(){return this.get("/teams/permissions?type=ORGANIZATION")},n.prototype.getOrgPermissionsCatalog=function(){return this.get("/teams/permissions-catalog?role_type=ORGANIZATION")},n.prototype.createOrgRole=function(e){return this.post("/teams/roles",e)},n.prototype.editOrgRole=function(e){var t=e.payload,n=e.id;return this.patch("/teams/roles/".concat(n),t)},n.prototype.deleteOrgRole=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getOrgRoleAssignments=function(){return this.get("/teams/organization-roles/assignments")},n.prototype.assignOrgRole=function(e){return this.post("/teams/organization-roles/assign",e)},n.prototype.unassignOrgRole=function(e){return this.delete("/teams/organization-roles/assign/".concat(e))},n.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},n.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},n.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,r=void 0===o?20:o;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(r))},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.workosPasswordReset=function(e){return this.post("/workos/password-reset",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public")})},n.prototype.workosAdminPortal=function(){return this.post("/workos/admin-portal",{})},n.prototype.workosVerifyMfa=function(e){return this.post("/workos/verify-mfa",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public"),withCredentials:!0})},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:cu})},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.postSubscription=function(e){return this.post("/subscriptions",e)},n.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},n.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},n.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},n.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},n.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},n.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},n.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},n.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.getInstallmentPlans=function(e){var t=e?cu(e):"",n=t?"/v1/installments-plans?".concat(t):"/v1/installments-plans";return this.get(n)},n.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},n.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},n.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},n.prototype.searchInstallmentsPlans=function(e){return this.post("/v2/installments-plans/search",e)},n.prototype.bulkCreateInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk",e)},n.prototype.bulkDeleteInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk-delete",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 r={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",r)},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,r){void 0===n&&(n=26),void 0===o&&(o=null),void 0===r&&(r=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return r&&(null==r?void 0:r.length)>0&&(a+="&search=".concat(r)),this.get(a,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,r=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){r(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,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},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,n,o){var r={};return t&&(r["x-password"]=t),n&&(r["x-otp"]=n),o&&(r["x-mfa-token"]=o),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:r})},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.buildAuthHeaders=function(e,t,n){var o={};return e&&(o["x-password"]=e),t&&(o["x-otp"]=t),n&&(o["x-mfa-token"]=n),o},n.prototype.getOrganizationKeysMetadata=function(){return this.get("/v2/developers/organization-keys/metadata")},n.prototype.patchOrganizationKeysNote=function(e,t){return this.patch("/v2/developers/organization-keys/note",e,{headers:{"x-password":t}})},n.prototype.postOrganizationKeysRoll=function(e,t,n){return this.post("/v2/developers/organization-keys/roll",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysTamRequest=function(e,t,n){return this.post("/v2/developers/organization-keys/tam-request",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysMarkRevealed=function(e,t,n){return this.post("/v2/developers/organization-keys/mark-revealed",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(th[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(th[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",{headers:{"x-organization-code":e}})},n.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",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.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},n.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},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.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},n.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},n.prototype.getOnboardingDetail=function(e,t,n){var o={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:o})},n.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},n}(lu),bh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"https://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff/api")}}(),kh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"wss://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff")}}(),_h={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:null!=bh?bh:process.env.BFF_URL_PROD,BFF_URL_SBX:null!=bh?bh:process.env.BFF_URL_SBX,BFF_URL_STG:null!=bh?bh:process.env.BFF_URL_STG,BFF_URL_DEV:null!=bh?bh:process.env.BFF_URL_DEV,BFF_URL_LOCAL:null!=bh?bh:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:null!=kh?kh:process.env.WS_URL_LOCAL,WS_URL_PROD:null!=kh?kh:process.env.WS_URL_PROD,WS_URL_SBX:null!=kh?kh:process.env.WS_URL_SBX,WS_URL_STG:null!=kh?kh:process.env.WS_URL_STG,WS_URL_DEV:null!=kh?kh:process.env.WS_URL_DEV},wh=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:_h["BFF_URL_".concat(_h.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,r;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(r=null===(o=JSON.parse(a))||void 0===o?void 0:o.value)||void 0===r?void 0:r.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||_h["BFF_URL_".concat(_h.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}(vh);class xh{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 Eh="undefined"==typeof window||"Deno"in window;function Ch(){}function Sh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Rh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ih(e,t,n){return Bh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Th(e,t,n){return Bh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ah(e,t){const{type:n="all",exact:o,fetchStatus:r,predicate:a,queryKey:i,stale:s}=e;if(Bh(i))if(o){if(t.queryHash!==Ph(i,t.options))return!1}else if(!Lh(t.queryKey,i))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===r||r===t.state.fetchStatus)&&!(a&&!a(t)))}function Oh(e,t){const{exact:n,fetching:o,predicate:r,mutationKey:a}=e;if(Bh(a)){if(!t.options.mutationKey)return!1;if(n){if(Dh(t.options.mutationKey)!==Dh(a))return!1}else if(!Lh(t.options.mutationKey,a))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(r&&!r(t))}function Ph(e,t){return((null==t?void 0:t.queryKeyHashFn)||Dh)(e)}function Dh(e){return JSON.stringify(e,(e,t)=>Uh(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Lh(e,t){return jh(e,t)}function jh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!jh(e[n],t[n])))}function zh(e,t,n=0){if(e===t)return e;if(n>500)return t;const o=qh(e)&&qh(t);if(o||Uh(e)&&Uh(t)){const r=o?e.length:Object.keys(e).length,a=o?t:Object.keys(t),i=a.length,s=o?[]:{};let u=0;for(let r=0;r<i;r++){const i=o?r:a[r];s[i]=zh(e[i],t[i],n+1),s[i]===e[i]&&u++}return r===i&&u===r?e:s}return t}function Nh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function qh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uh(e){if(!Mh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Mh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Mh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Bh(e){return Array.isArray(e)}function Fh(e){return new Promise(t=>{setTimeout(t,e)})}function Gh(e){Fh(0).then(e)}function Wh(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?zh(e,t):t}const Vh=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&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)}},Hh=["online","offline"];const Kh=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&window.addEventListener){const t=()=>e();return Hh.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Hh.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 $h(e){return Math.min(1e3*2**e,3e4)}function Qh(e){return"online"!==(null!=e?e:"online")||Kh.isOnline()}class Yh{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Jh(e){return e instanceof Yh}function Xh(e){let t,n,o,r=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,o=t}),u=()=>!Vh.isFocused()||"always"!==e.networkMode&&!Kh.isOnline(),c=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!u();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,c=null!=(o=e.retryDelay)?o:$h,h="function"==typeof c?c(a,t):c,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!r&&f?(a++,null==e.onFail||e.onFail(a,t),Fh(h).then(()=>{if(u())return d()}).then(()=>{r?l(t):p()})):l(t)})};return Qh(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new Yh(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}const Zh=console;const ef=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const r=o=>{t?e.push(o):Gh(()=>{n(o)})},a=()=>{const t=e;e=[],t.length&&Gh(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{r(()=>{e(...t)})},schedule:r,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class tf{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sh(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Eh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class nf extends tf{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Zh,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=Wh(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(Ch).catch(Ch):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||!Rh(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 r;return null==(r=this.retryer)||r.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 a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const l=e=>{var t,n,o,r;(Jh(e)&&e.silent||this.dispatch({type:"error",error:e}),Jh(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Xh({fn:u.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,o,r;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=(r=this.cache.config).onSettled)||o.call(r,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:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.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:Qh(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 r=e.error;return Jh(r)&&r.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ef.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class of extends xh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const r=t.queryKey,a=null!=(o=t.queryHash)?o:Ph(r,t);let i=this.get(a);return i||(i=new nf({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}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(){ef.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Th(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Ah(n,e))}findAll(e,t){const[n]=Th(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Ah(n,e)):this.queries}notify(e){ef.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ef.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ef.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class rf extends tf{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Zh,this.observers=[],this.state=e.state||af(),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=Xh({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,r,a,i,s,u,c;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,f,this.state.variables,this.state.context,this)),await(null==(r=(a=this.options).onSuccess)?void 0:r.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,g,m,y,v,b,k,_;throw await(null==(f=(g=this.mutationCache.config).onError)?void 0:f.call(g,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(m=(y=this.options).onError)?void 0:m.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==(k=(_=this.options).onSettled)?void 0:k.call(_,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:!Qh(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),ef.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function af(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class sf extends xh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new rf({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(){ef.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=>Oh(e,t))}findAll(e){return this.mutations.filter(t=>Oh(e,t))}notify(e){ef.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 ef.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Ch)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function uf(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,r,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(r=o.meta)?void 0:r.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(f=o?[t,...f]:[...f,t],o?[n,...e]:[...e,n]),v=(t,n,o,r)=>{if(g)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{g=!0}),e.signal}});const s=m(a);return Promise.resolve(s).then(e=>y(t,o,e,r))};let b;if(p.length)if(l){const t=void 0!==c,n=t?c:cf(e.options,p);b=v(p,t,n)}else if(d){const t=void 0!==c,n=t?c:(k=e.options,_=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(_[0],_));b=v(p,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!p[0]||s(p[0],0,p)?v([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)b=b.then(o=>{if(!s||!p[n]||s(p[n],n,p)){const r=t?h[n]:cf(e.options,o);return v(o,t,r)}return Promise.resolve(y(o,h[n],p[n]))})}else b=v([]);var k,_;const w=b.then(e=>({pages:e,pageParams:f}));return w}}}}function cf(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class lf extends xh{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),df(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pf(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"),Nh(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 r=this.hasListeners();r&&hf(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!r||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!r||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}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(!Nh(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(Ch)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Eh||this.currentResult.isStale||!Sh(this.options.staleTime))return;const e=Rh(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,!Eh&&!1!==this.options.enabled&&Sh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Vh.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,r=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:f,fetchStatus:g,status:m}=l,y=!1,v=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&df(e,t),i=r&&hf(e,n,t,o);(a||i)&&(g=Qh(e.options.networkMode)?"fetching":"paused",p||(m="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==m)d=c.data,p=c.dataUpdatedAt,m=c.status,y=!0;else if(t.select&&void 0!==l.data)if(r&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=Wh(null==r?void 0:r.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===m){let e;if(null!=r&&r.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=r.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&&(m="success",d=Wh(null==r?void 0:r.data,e,t),v=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,f=Date.now(),m="error");const b="fetching"===g,k="loading"===m,_="error"===m;return{status:m,fetchStatus:g,isLoading:k,isSuccess:"success"===m,isError:_,isInitialLoading:k&&b,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:f,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>u.dataUpdateCount||l.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:_&&0===l.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:v,isPreviousData:y,isRefetchError:_&&0!==l.dataUpdatedAt,isStale:ff(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,Nh(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||Jh(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ef.batch(()=>{var t,n,o,r;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(r=this.options).onSettled)||o.call(r,this.currentResult.data,null);else if(e.onError){var a,i,s,u;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,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 df(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&&pf(e,t,t.refetchOnMount)}function pf(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&ff(e,t)}return!1}function hf(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&ff(e,n)}function ff(e,t){return e.isStaleByTime(t.staleTime)}class gf extends xh{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),Nh(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){ef.batch(()=>{var t,n,o,r;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=(r=this.mutateOptions).onSettled)||o.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,u;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var mf,yf={exports:{}},vf={};var bf,kf={};
|
|
41
|
+
*/function ut(e){if(st.test(e)||""===e.trim())throw new TypeError("Invalid character in header field name");return e.trim().toLowerCase()}var ct=[String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(9),String.fromCharCode(32)],lt=new RegExp(`(^[${ct.join("")}]|$[${ct.join("")}])`,"g");function dt(e){return e.replace(lt,"")}function pt(e){if("string"!=typeof e)return!1;if(0===e.length)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>127||!ht(n))return!1}return!0}function ht(e){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(e)}function ft(e){if("string"!=typeof e)return!1;if(e.trim()!==e)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(0===n||10===n||13===n)return!1}return!0}var gt,mt,yt,vt=Symbol("normalizedHeaders"),bt=Symbol("rawHeaderNames"),kt=class e{constructor(t){if(this[gt]={},this[mt]=new Map,this[yt]="Headers",["Headers","HeadersPolyfill"].includes(t?.constructor.name)||t instanceof e||void 0!==globalThis.Headers&&t instanceof globalThis.Headers){t.forEach((e,t)=>{this.append(t,e)},this)}else Array.isArray(t)?t.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(", "):t)}):t&&Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e];this.append(e,Array.isArray(n)?n.join(", "):n)})}[(gt=vt,mt=bt,yt=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[vt]).sort((e,t)=>e.localeCompare(t));for(const t of e)if("set-cookie"===t)for(const e of this.getSetCookie())yield[t,e];else yield[t,this.get(t)]}has(e){if(!pt(e))throw new TypeError(`Invalid header name "${e}"`);return this[vt].hasOwnProperty(ut(e))}get(e){if(!pt(e))throw TypeError(`Invalid header name "${e}"`);return this[vt][ut(e)]??null}set(e,t){if(!pt(e)||!ft(t))return;const n=ut(e),o=dt(t);this[vt][n]=dt(o),this[bt].set(n,e)}append(e,t){if(!pt(e)||!ft(t))return;const n=ut(e),o=dt(t);let r=this.has(n)?`${this.get(n)}, ${o}`:o;this.set(e,r)}delete(e){if(!pt(e))return;if(!this.has(e))return;const t=ut(e);delete this[vt][t],this[bt].delete(t)}forEach(e,t){for(const[n,o]of this.entries())e.call(t,o,n,this)}getSetCookie(){const e=this.get("set-cookie");return null===e?[]:""===e?[""]:(0,it.splitCookiesString)(e)}};const{message:_t}=Xe,wt=Symbol("kSetCookie");function xt(e={}){const t=e?.status||200,n=e?.statusText||_t[t]||"",o=new Headers(e?.headers);return{...e,headers:o,status:t,statusText:n}}async function Et(e,t,n,o,r,a){if(r.emit("request:start",{request:e,requestId:t}),e.headers.get("accept")?.includes("msw/passthrough"))return r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(()=>(async({request:e,requestId:t,handlers:n,resolutionContext:o})=>{let r=null,a=null;for(const i of n)if(a=await i.run({request:e,requestId:t,resolutionContext:o}),null!==a&&(r=i),a?.response)break;return r?{handler:r,parsedResult:a?.parsedResult,response:a?.response}:null})({request:e,requestId:t,handlers:n,resolutionContext:a?.resolutionContext}));if(i)throw r.emit("unhandledException",{error:i,request:e,requestId:t}),i;if(!s)return await y(e,o.onUnhandledRequest),r.emit("request:unhandled",{request:e,requestId:t}),r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);const{response:u}=s;if(!u)return r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);if(302===u.status&&"passthrough"===u.headers.get("x-msw-intention"))return r.emit("request:end",{request:e,requestId:t}),void a?.onPassthroughResponse?.(e);await async function(e,t){const n=Reflect.get(t,wt);n&&await Ne.setCookie(n,e.url)}(e,u),r.emit("request:match",{request:e,requestId:t});const c=s;return a?.onMockedResponse?.(u,c),r.emit("request:end",{request:e,requestId:t}),u}function Ct(e){return t=>null!=t&&"object"==typeof t&&"__kind"in t&&t.__kind===e}var St=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},Rt=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=Rt.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...o)=>(this.removeListener(e,n),t.apply(this,o));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new St(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const o=[t].concat(n);this.events.set(e,o)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},It=Rt;It.defaultMaxListeners=10;class Tt{subscriptions=[];dispose(){let e;for(;e=this.subscriptions.shift();)e()}}class At{constructor(e){this.initialHandlers=e,this.handlers=[...e]}handlers;prepend(e){this.handlers.unshift(...e)}reset(e){this.handlers=e.length>0?[...e]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Ot extends Tt{handlersController;emitter;publicEmitter;events;constructor(...e){super(),c(this.validateHandlers(e),d.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new At(e),this.emitter=new It,this.publicEmitter=new It,function(e,t){const n=e.emit;if(n._isPiped)return;const o=function(e,...o){return t.emit(e,...o),n.call(this,e,...o)};o._isPiped=!0,e.emit=o}(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(e){return e.every(e=>!Array.isArray(e))}use(...e){c(this.validateHandlers(e),d.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(e)}restoreHandlers(){this.handlersController.currentHandlers().forEach(e=>{"isUsed"in e&&(e.isUsed=!1)})}resetHandlers(...e){this.handlersController.reset(e)}listHandlers(){return function(e){const t=[...e];return Object.freeze(t),t}(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...e)=>this.publicEmitter.on(...e),removeListener:(...e)=>this.publicEmitter.removeListener(...e),removeAllListeners:(...e)=>this.publicEmitter.removeAllListeners(...e)}}}var Pt=Object.defineProperty,Dt={};function Lt(e){return`[33m${e}[0m`}function jt(e){return`[34m${e}[0m`}function zt(e){return`[90m${e}[0m`}function Nt(e){return`[31m${e}[0m`}function qt(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)Pt(e,n,{get:t[n],enumerable:!0})})(Dt,{blue:()=>jt,gray:()=>zt,green:()=>qt,red:()=>Nt,yellow:()=>Lt});var Ut=v(),Mt=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=Ht("DEBUG"),n=Ht("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=Kt(n,"debug")?Ft:this.debug,this.info=Kt(n,"info")?Ft:this.info,this.success=Kt(n,"success")?Ft:this.success,this.warning=Kt(n,"warning")?Ft:this.warning,this.error=Kt(n,"error")?Ft:this.error):(this.info=Ft,this.success=Ft,this.warning=Ft,this.error=Ft,this.only=Ft)}prefix;extend(e){return new Mt(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:zt(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new Bt;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${zt(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:o,colors:r,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:Dt[r?.timestamp||"gray"],prefix:Dt[r?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=o?s.prefix(o):[]).concat($t(n)).join(" "),...a.map($t))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return Gt;case"warning":return Wt;case"error":return Vt}}},Bt=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},Ft=()=>{};function Gt(e,...t){Ut?process.stdout.write(s(e,...t)+"\n"):console.log(e,...t)}function Wt(e,...t){Ut?process.stderr.write(s(e,...t)+"\n"):console.warn(e,...t)}function Vt(e,...t){Ut?process.stderr.write(s(e,...t)+"\n"):console.error(e,...t)}function Ht(e){return Ut?process.env[e]:globalThis[e]?.toString()}function Kt(e,t){return void 0!==e&&e!==t}function $t(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}function Qt(e){return globalThis[e]||void 0}let Yt=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({});var Jt=class{constructor(e){this.symbol=e,this.readyState=Yt.INACTIVE,this.emitter=new It,this.subscriptions=[],this.logger=new Mt(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===Yt.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=Yt.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,o)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,o),this.subscriptions.push(()=>{t.emitter.removeListener(n,o),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=Yt.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=Yt.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===Yt.DISPOSING||this.readyState===Yt.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==Yt.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=Yt.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",Qt(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=Yt.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=Qt(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Xt(e){if("string"==typeof e)return Xt(new URL(e,"undefined"!=typeof location?location.href:void 0));if("http:"===e.protocol?e.protocol="ws:":"https:"===e.protocol&&(e.protocol="wss:"),"ws:"!==e.protocol&&"wss:"!==e.protocol)throw new SyntaxError(`Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. '${e.protocol}' is not allowed.`);if(""!==e.hash)throw new SyntaxError(`Failed to construct 'WebSocket': The URL contains a fragment identifier ('${e.hash}'). Fragment identifiers are not allowed in WebSocket URLs.`);return e.href}var Zt=class extends Promise{#o;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,o)=>{t(n,o),e?.(t.resolve,t.reject)}),this.#o=t,this.resolve=this.#o.resolve,this.reject=this.#o.reject}get state(){return this.#o.state}get rejectionReason(){return this.#o.rejectionReason}then(e,t){return this.#r(super.then(e,t))}catch(e){return this.#r(super.catch(e))}finally(e){return this.#r(super.finally(e))}#r(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}};function en(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}const tn=Symbol("kCancelable"),nn=Symbol("kDefaultPrevented");var on=class extends MessageEvent{constructor(e,t){super(e,t),this[tn]=!!t.cancelable,this[nn]=!1}get cancelable(){return this[tn]}set cancelable(e){this[tn]=e}get defaultPrevented(){return this[nn]}set defaultPrevented(e){this[nn]=e}preventDefault(){this.cancelable&&!this[nn]&&(this[nn]=!0)}},rn=class extends Event{constructor(e,t={}){super(e,t),this.code=void 0===t.code?0:t.code,this.reason=void 0===t.reason?"":t.reason,this.wasClean=void 0!==t.wasClean&&t.wasClean}},an=class extends rn{constructor(e,t={}){super(e,t),this[tn]=!!t.cancelable,this[nn]=!1}get cancelable(){return this[tn]}set cancelable(e){this[tn]=e}get defaultPrevented(){return this[nn]}set defaultPrevented(e){this[nn]=e}preventDefault(){this.cancelable&&!this[nn]&&(this[nn]=!0)}};const sn=Symbol("kEmitter"),un=Symbol("kBoundListener");var cn=class{constructor(e,t){this.socket=e,this.transport=t,this.id=Math.random().toString(16).slice(2),this.url=new URL(e.url),this[sn]=new EventTarget,this.transport.addEventListener("outgoing",e=>{const t=en(this.socket,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[sn].dispatchEvent(t),t.defaultPrevented&&e.preventDefault()}),this.transport.addEventListener("close",e=>{this[sn].dispatchEvent(en(this.socket,new rn("close",e)))})}addEventListener(e,t,n){if(!Reflect.has(t,un)){const e=t.bind(this.socket);Object.defineProperty(t,un,{value:e,enumerable:!1,configurable:!1})}this[sn].addEventListener(e,Reflect.get(t,un),n)}removeEventListener(e,t,n){this[sn].removeEventListener(e,Reflect.get(t,un),n)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}};const ln="InvalidAccessError: close code out of user configurable range",dn=Symbol("kPassthroughPromise"),pn=Symbol("kOnSend"),hn=Symbol("kClose");var fn=class extends EventTarget{static{this.CONNECTING=0}static{this.OPEN=1}static{this.CLOSING=2}static{this.CLOSED=3}constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=Xt(e),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[dn]=new Zt,queueMicrotask(async()=>{await this[dn]||(this.protocol="string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(en(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,null!==e&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,null!==e&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,null!==e&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,null!==e&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.bufferedAmount+=function(e){return"string"==typeof e?e.length:e instanceof Blob?e.size:e.byteLength}(e),queueMicrotask(()=>{this.bufferedAmount=0,this[pn]?.(e)}))}close(e=1e3,t){c(e,ln),c(1e3===e||e>=3e3&&e<=4999,ln),this[hn](e,t)}[hn](e=1e3,t,n=!0){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(en(this,new rn("close",{code:e,reason:t,wasClean:n}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,n){return super.addEventListener(e,t,n)}removeEventListener(e,t,n){return super.removeEventListener(e,t,n)}};const gn=Symbol("kEmitter"),mn=Symbol("kBoundListener"),yn=Symbol("kSend");var vn=class{constructor(e,t,n){this.client=e,this.transport=t,this.createConnection=n,this[gn]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",e=>{void 0!==this.realWebSocket&&queueMicrotask(()=>{e.defaultPrevented||this[yn](e.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return c(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){c(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",e=>{this[gn].dispatchEvent(en(this.realWebSocket,new Event("open",e)))},{once:!0}),e.addEventListener("message",e=>{this.transport.dispatchEvent(en(this.realWebSocket,new MessageEvent("incoming",{data:e.data,origin:e.origin})))}),this.client.addEventListener("close",e=>{this.handleMockClose(e)},{signal:this.mockCloseController.signal}),e.addEventListener("close",e=>{this.handleRealClose(e)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=en(e,new Event("error",{cancelable:!0}));this[gn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(en(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,n){if(!Reflect.has(t,mn)){const e=t.bind(this.client);Object.defineProperty(t,mn,{value:e,enumerable:!1})}this[gn].addEventListener(e,Reflect.get(t,mn),n)}removeEventListener(e,t,n){this[gn].removeEventListener(e,Reflect.get(t,mn),n)}send(e){this[yn](e)}[yn](e){const{realWebSocket:t}=this;c(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),t.readyState!==WebSocket.CLOSING&&t.readyState!==WebSocket.CLOSED&&(t.readyState!==WebSocket.CONNECTING?t.send(e):t.addEventListener("open",()=>{t.send(e)},{once:!0}))}close(){const{realWebSocket:e}=this;c(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),e.readyState!==WebSocket.CLOSING&&e.readyState!==WebSocket.CLOSED&&(e.close(),queueMicrotask(()=>{this[gn].dispatchEvent(en(this.realWebSocket,new an("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=en(e.target,new on("message",{data:e.data,origin:e.origin,cancelable:!0}));this[gn].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(en(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=en(this.realWebSocket,new an("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[gn].dispatchEvent(t),t.defaultPrevented||this.client[hn](e.code,e.reason)}},bn=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",e=>{this.dispatchEvent(en(this.socket,new rn("close",e)))}),this.socket[pn]=e=>{this.dispatchEvent(en(this.socket,new on("outgoing",{data:e,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,n){return super.addEventListener(e,t,n)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(en(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[hn](e,t)}},kn=class e extends Jt{static{this.symbol=Symbol("websocket")}constructor(){super(e.symbol)}checkEnvironment(){return function(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return!(void 0===t||"function"==typeof t.get&&void 0===t.get()||void 0===t.get&&null==t.value||void 0===t.set&&!t.configurable&&(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),1))}("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(e,t,n)=>{const[o,r]=t,a=()=>Reflect.construct(e,t,n),i=new fn(o,r),s=new bn(i);return queueMicrotask(async()=>{try{const e=new vn(i,s,a),t=this.emitter.listenerCount("connection")>0;await async function(e,t,...n){const o=e.listeners(t);if(0!==o.length)for(const t of o)await t.apply(e,n)}(this.emitter,"connection",{client:new cn(i,s),server:e,info:{protocols:r}}),t?i[dn].resolve(!1):(i[dn].resolve(!0),e.connect(),e.addEventListener("open",()=>{i.dispatchEvent(en(i,new Event("open"))),e.realWebSocket&&(i.protocol=e.realWebSocket.protocol)}))}catch(e){e instanceof Error&&(i.dispatchEvent(new Event("error")),i.readyState!==WebSocket.CLOSING&&i.readyState!==WebSocket.CLOSED&&i[hn](1011,e.message,!1),console.error(e))}}),i}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}};const _n=new kn;function wn(e){const t=new Date,n=`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}:${t.getSeconds().toString().padStart(2,"0")}`;return e?.milliseconds?`${n}.${t.getMilliseconds().toString().padStart(3,"0")}`:n}function xn(e){return e instanceof Blob?e.size:r(e)&&"byteLength"in e?e.byteLength:new Blob([e]).size}function En(e){return e.length<=24?e:`${e.slice(0,24)}…`}async function Cn(e){if(e instanceof Blob){return`Blob(${En(await e.text())})`}if(r(e)){return`ArrayBuffer(${En((new TextDecoder).decode(e))})`}return En(e)}const Sn="#3b82f6",Rn="#22c55e",In="#ef4444",Tn="#ff6a33";function An(e){const{client:t,server:n}=e;!function(e){const t=m(e.url);console.groupCollapsed(d.formatMessage(`${wn()} %c▶%c ${t}`),`color:${Sn}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}(t),t.addEventListener("message",e=>{!async function(e){const t=xn(e.data),n=await Cn(e.data),o=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c${o}%c ${n} %c${t}%c`),`color:${Rn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)}),t.addEventListener("close",e=>{!function(e){const t=e.target,n=m(t.url);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c■%c ${n}`),`color:${Sn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.socket.addEventListener("error",e=>{!function(e){const t=e.target,n=m(t.url);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c×%c ${n}`),`color:${Sn}`,"color:inherit"),console.log(e),console.groupEnd()}(e)}),t.send=new Proxy(t.send,{apply(e,n,o){const[r]=o,a=new MessageEvent("message",{data:r});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{!async function(e){const t=xn(e.data),n=await Cn(e.data);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c⬇%c ${n} %c${t}%c`),`color:${Tn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a)}),Reflect.apply(e,n,o)}}),n.addEventListener("open",()=>{n.addEventListener("message",e=>{!async function(e){const t=xn(e.data),n=await Cn(e.data),o=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c${o}%c ${n} %c${t}%c`),`color:${In}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(e)})},{once:!0}),n.send=new Proxy(n.send,{apply(e,t,o){const[r]=o,a=new MessageEvent("message",{data:r});return Object.defineProperties(a,{currentTarget:{enumerable:!0,writable:!1,value:n.socket},target:{enumerable:!0,writable:!1,value:n.socket}}),async function(e){const t=xn(e.data),n=await Cn(e.data);console.groupCollapsed(d.formatMessage(`${wn({milliseconds:!0})} %c⬆%c ${n} %c${t}%c`),`color:${Tn}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}(a),Reflect.apply(e,t,o)}})}var On=/(%?)(%([sdijo]))/g;function Pn(e,...t){if(0===t.length)return e;let n=0,o=e.replace(On,(e,o,r,a)=>{const i=function(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if("string"==typeof e)return e;const t=JSON.stringify(e);return"{}"===t||"[]"===t||/^\[object .+?\]$/.test(t)?e:t}}}(t[n],a);return o?e:(n++,i)});return n<t.length&&(o+=` ${t.slice(n).join(" ")}`),o=o.replace(/%{2,2}/g,"%"),o}var Dn=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Pn(e,...t),function(e){if(!e.stack)return;const t=e.stack.split("\n");t.splice(1,2),e.stack=t.join("\n")}(this)}},Ln=(e,t,...n)=>{if(!e)throw new Dn(t,...n)};function jn(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if("undefined"!=typeof process){const e=process.type;return"renderer"!==e&&"worker"!==e&&!(!process.versions||!process.versions.node)}return!1}Ln.as=(e,t,n,...o)=>{if(!t){const t=0===o.length?n:Pn(n,...o);let r;try{r=Reflect.construct(e,[t])}catch(n){r=e(t)}throw r}};var zn=class extends Promise{#o;resolve;reject;constructor(e=null){const t=function(){const e=(t,n)=>{e.state="pending",e.resolve=n=>{if("pending"===e.state)return e.result=n,t(n instanceof Promise?n:Promise.resolve(n).then(t=>(e.state="fulfilled",t)))},e.reject=t=>{if("pending"===e.state)return queueMicrotask(()=>{e.state="rejected"}),n(e.rejectionReason=t)}};return e}();super((n,o)=>{t(n,o),e?.(t.resolve,t.reject)}),this.#o=t,this.resolve=this.#o.resolve,this.reject=this.#o.reject}get state(){return this.#o.state}get rejectionReason(){return this.#o.rejectionReason}then(e,t){return this.#r(super.then(e,t))}catch(e){return this.#r(super.catch(e))}finally(e){return this.#r(super.finally(e))}#r(e){return Object.defineProperties(e,{resolve:{configurable:!0,value:this.resolve},reject:{configurable:!0,value:this.reject}})}},Nn={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker:(e,t)=>e===t};function qn(e,t,n){return[e.active,e.installing,e.waiting].filter(e=>null!=e).find(e=>n(e.scriptURL,t))||null}var Un=async(e,t={},n)=>{const o=new URL(e,location.href).href;const r=await navigator.serviceWorker.getRegistrations().then(e=>e.filter(e=>qn(e,o,n)));!navigator.serviceWorker.controller&&r.length>0&&location.reload();const[a]=r;if(a)return a.update(),[qn(a,o,n),a];const[i,s]=await async function(e){try{return[null,await e().catch(e=>{throw e})]}catch(e){return[e,null]}}(async()=>{const r=await navigator.serviceWorker.register(e,t);return[qn(r,o,n),r]});if(i){if(i.message.includes("(404)")){const e=new URL(t?.scope||"/",location.href);throw new Error(d.formatMessage(`Failed to register a Service Worker for scope ('${e.href}') with script ('${o}'): Service Worker script does not exist at the given path.\n\nDid you forget to run "npx msw init <PUBLIC_DIR>"?\n\nLearn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw new Error(d.formatMessage("Failed to register the Service Worker:\n\n%s",i.message))}return s};function Mn(e={}){if(e.quiet)return;const t=e.message||"Mocking enabled.";console.groupCollapsed(`%c${d.formatMessage(t)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),e.workerUrl&&console.log("Worker script URL:",e.workerUrl),e.workerScope&&console.log("Worker scope:",e.workerScope),e.client&&console.log("Client ID: %s (%s)",e.client.id,e.client.frameType),console.groupEnd()}function Bn(e){if(!["HEAD","GET"].includes(e.method))return e.body}function Fn(e){return new Request(e.url,{...e,body:Bn(e)})}function Gn(){return"undefined"!=typeof navigator&&"serviceWorker"in navigator&&"undefined"!=typeof location&&"file:"!==location.protocol}var Wn=function(){try{const e=new ReadableStream({start:e=>e.close()});return(new MessageChannel).port1.postMessage(e,[e]),!0}catch{return!1}}(),Vn=(e,t)=>async n=>{if(!e.isMockingEnabled&&e.workerStoppedAt&&n.data.interceptedAt>e.workerStoppedAt)return void n.postMessage("PASSTHROUGH");const o=n.data.id,r=Fn(n.data),a=r.clone(),i=r.clone();g.cache.set(r,i);try{await Et(r,o,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onPassthroughResponse(){n.postMessage("PASSTHROUGH")},async onMockedResponse(o,{handler:r,parsedResult:i}){const s=o.clone(),u=o.clone(),c=function(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}(o);if(Wn){const e=o.body;n.postMessage("MOCK_RESPONSE",{...c,body:e},e?[e]:void 0)}else{const e=null===o.body?null:await s.arrayBuffer();n.postMessage("MOCK_RESPONSE",{...c,body:e})}t.quiet||e.emitter.once("response:mocked",()=>{r.log({request:a,response:u,parsedResult:i})})}})}catch(e){e instanceof Error&&(d.error('Uncaught exception in the request handler for "%s %s":\n\n%s\n\nThis exception has been gracefully handled as a 500 response, however, it\'s strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/http/mocking-responses/error-responses',r.method,r.url,e.stack??e),n.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,message:e.message,stack:e.stack})}))}};var Hn=Symbol("isPatchedModule"),Kn=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}},$n=class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new zn}get#a(){return this.handled}async passthrough(){Ln.as(Kn,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){Ln.as(Kn,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){Ln.as(Kn,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}};function Qn(e){try{return new URL(e),!0}catch(e){return!1}}function Yn(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}var Jn=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!Qn(e))return;const n=Yn("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const o=n.status??200,r=e.isConfigurableStatusCode(o)?o:200;if(super(e.isResponseWithBody(o)?t:null,{status:r,statusText:n.statusText,headers:n.headers}),o!==r){const e=Yn("state",this);e?e.status=o:Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}},Xn=Symbol("kRawRequest");function Zn(e,t){Reflect.set(e,Xn,t)}var eo=Object.defineProperty,to={};function no(e){return`[33m${e}[0m`}function oo(e){return`[34m${e}[0m`}function ro(e){return`[90m${e}[0m`}function ao(e){return`[31m${e}[0m`}function io(e){return`[32m${e}[0m`}((e,t)=>{for(var n in t)eo(e,n,{get:t[n],enumerable:!0})})(to,{blue:()=>oo,gray:()=>ro,green:()=>io,red:()=>ao,yellow:()=>no});var so=jn(),uo=class{constructor(e){this.name=e,this.prefix=`[${this.name}]`;const t=go("DEBUG"),n=go("LOG_LEVEL");"1"===t||"true"===t||void 0!==t&&this.name.startsWith(t)?(this.debug=mo(n,"debug")?lo:this.debug,this.info=mo(n,"info")?lo:this.info,this.success=mo(n,"success")?lo:this.success,this.warning=mo(n,"warning")?lo:this.warning,this.error=mo(n,"error")?lo:this.error):(this.info=lo,this.success=lo,this.warning=lo,this.error=lo,this.only=lo)}prefix;extend(e){return new uo(`${this.name}:${e}`)}debug(e,...t){this.logEntry({level:"debug",message:ro(e),positionals:t,prefix:this.prefix,colors:{prefix:"gray"}})}info(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}});const n=new co;return(e,...t)=>{n.measure(),this.logEntry({level:"info",message:`${e} ${ro(`${n.deltaTime}ms`)}`,positionals:t,prefix:this.prefix,colors:{prefix:"blue"}})}}success(e,...t){this.logEntry({level:"info",message:e,positionals:t,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(e,...t){this.logEntry({level:"warning",message:e,positionals:t,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(e,...t){this.logEntry({level:"error",message:e,positionals:t,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(e){e()}createEntry(e,t){return{timestamp:new Date,level:e,message:t}}logEntry(e){const{level:t,message:n,prefix:o,colors:r,positionals:a=[]}=e,i=this.createEntry(t,n),s={timestamp:to[r?.timestamp||"gray"],prefix:to[r?.prefix||"gray"]};this.getWriter(t)([s.timestamp(this.formatTimestamp(i.timestamp))].concat(null!=o?s.prefix(o):[]).concat(yo(n)).join(" "),...a.map(yo))}formatTimestamp(e){return`${e.toLocaleTimeString("en-GB")}:${e.getMilliseconds()}`}getWriter(e){switch(e){case"debug":case"success":case"info":return po;case"warning":return ho;case"error":return fo}}},co=class{startTime;endTime;deltaTime;constructor(){this.startTime=performance.now()}measure(){this.endTime=performance.now();const e=this.endTime-this.startTime;this.deltaTime=e.toFixed(2)}},lo=()=>{};function po(e,...t){so?process.stdout.write(Pn(e,...t)+"\n"):console.log(e,...t)}function ho(e,...t){so?process.stderr.write(Pn(e,...t)+"\n"):console.warn(e,...t)}function fo(e,...t){so?process.stderr.write(Pn(e,...t)+"\n"):console.error(e,...t)}function go(e){return so?process.env[e]:globalThis[e]?.toString()}function mo(e,t){return void 0!==e&&e!==t}function yo(e){return void 0===e?"undefined":null===e?"null":"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):e.toString()}var vo=class extends Error{constructor(e,t,n){super(`Possible EventEmitter memory leak detected. ${n} ${t.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=e,this.type=t,this.count=n,this.name="MaxListenersExceededWarning"}},bo=class{static listenerCount(e,t){return e.listenerCount(t)}constructor(){this.events=new Map,this.maxListeners=bo.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(e,t,n){this.emit(e,t,n)}_getListeners(e){return Array.prototype.concat.apply([],this.events.get(e))||[]}_removeListener(e,t){const n=e.indexOf(t);return n>-1&&e.splice(n,1),[]}_wrapOnceListener(e,t){const n=(...o)=>(this.removeListener(e,n),t.apply(this,o));return Object.defineProperty(n,"name",{value:t.name}),n}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(e,...t){const n=this._getListeners(e);return n.forEach(e=>{e.apply(this,t)}),n.length>0}addListener(e,t){this._emitInternalEvent("newListener",e,t);const n=this._getListeners(e).concat(t);if(this.events.set(e,n),this.maxListeners>0&&this.listenerCount(e)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const t=new vo(this,e,this.listenerCount(e));console.warn(t)}return this}on(e,t){return this.addListener(e,t)}once(e,t){return this.addListener(e,this._wrapOnceListener(e,t))}prependListener(e,t){const n=this._getListeners(e);if(n.length>0){const o=[t].concat(n);this.events.set(e,o)}else this.events.set(e,n.concat(t));return this}prependOnceListener(e,t){return this.prependListener(e,this._wrapOnceListener(e,t))}removeListener(e,t){const n=this._getListeners(e);return n.length>0&&(this._removeListener(n,t),this.events.set(e,n),this._emitInternalEvent("removeListener",e,t)),this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){return e?this.events.delete(e):this.events.clear(),this}listeners(e){return Array.from(this._getListeners(e))}listenerCount(e){return this._getListeners(e).length}rawListeners(e){return this.listeners(e)}},ko=bo;ko.defaultMaxListeners=10;function _o(e){return globalThis[e]||void 0}var wo=function(e){return e.INACTIVE="INACTIVE",e.APPLYING="APPLYING",e.APPLIED="APPLIED",e.DISPOSING="DISPOSING",e.DISPOSED="DISPOSED",e}({}),xo=class{constructor(e){this.symbol=e,this.readyState=wo.INACTIVE,this.emitter=new ko,this.subscriptions=[],this.logger=new uo(e.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const e=this.logger.extend("apply");if(e.info("applying the interceptor..."),this.readyState===wo.APPLIED)return void e.info("intercepted already applied!");if(!this.checkEnvironment())return void e.info("the interceptor cannot be applied in this environment!");this.readyState=wo.APPLYING;const t=this.getInstance();if(t)return e.info("found a running instance, reusing..."),this.on=(n,o)=>(e.info('proxying the "%s" listener',n),t.emitter.addListener(n,o),this.subscriptions.push(()=>{t.emitter.removeListener(n,o),e.info('removed proxied "%s" listener!',n)}),this),void(this.readyState=wo.APPLIED);e.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=wo.APPLIED}setup(){}on(e,t){const n=this.logger.extend("on");return this.readyState===wo.DISPOSING||this.readyState===wo.DISPOSED?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',e,t),this.emitter.on(e,t),this)}once(e,t){return this.emitter.once(e,t),this}off(e,t){return this.emitter.off(e,t),this}removeAllListeners(e){return this.emitter.removeAllListeners(e),this}dispose(){const e=this.logger.extend("dispose");if(this.readyState!==wo.DISPOSED)if(e.info("disposing the interceptor..."),this.readyState=wo.DISPOSING,this.getInstance()){if(this.clearInstance(),e.info("global symbol deleted:",_o(this.symbol)),this.subscriptions.length>0){e.info("disposing of %d subscriptions...",this.subscriptions.length);for(const e of this.subscriptions)e();this.subscriptions=[],e.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),e.info("destroyed the listener!"),this.readyState=wo.DISPOSED}else e.info("no interceptors running, skipping dispose...");else e.info("cannot dispose, already disposed!")}getInstance(){const e=_o(this.symbol);return this.logger.info("retrieved global instance:",e?.constructor?.name),e}setInstance(){var e,t;e=this.symbol,t=this,globalThis[e]=t,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){var e;e=this.symbol,delete globalThis[e],this.logger.info("cleared global instance!",this.symbol.description)}};function Eo(){return Math.random().toString(16).slice(2)}var Co=new TextEncoder;var So=class e extends xo{constructor(t){e.symbol=Symbol(t.name),super(e.symbol),this.interceptors=t.interceptors}setup(){const e=this.logger.extend("setup");e.info("applying all %d interceptors...",this.interceptors.length);for(const t of this.interceptors)e.info('applying "%s" interceptor...',t.constructor.name),t.apply(),e.info("adding interceptor dispose subscription"),this.subscriptions.push(()=>t.dispose())}on(e,t){for(const n of this.interceptors)n.on(e,t);return this}once(e,t){for(const n of this.interceptors)n.once(e,t);return this}off(e,t){for(const n of this.interceptors)n.off(e,t);return this}removeAllListeners(e){for(const t of this.interceptors)t.removeAllListeners(e);return this}};var Ro=e=>function(t,n){const o=(async()=>{e.workerChannel.removeAllListeners(),e.workerChannel.on("REQUEST",Vn(e,t)),e.workerChannel.on("RESPONSE",function(e){return t=>{const n=t.data,o=Fn(n.request);if(n.response.type?.includes("opaque"))return;const r=0===n.response.status?Response.error():new Jn(Jn.isResponseWithBody(n.response.status)?n.response.body:null,{...n.response,url:o.url});e.emitter.emit(n.isMockedResponse?"response:mocked":"response:bypass",{requestId:n.request.id,request:o,response:r})}}(e));const o=await Un(t.serviceWorker.url,t.serviceWorker.options,t.findWorker),[r,a]=o;if(!r){const e=n?.findWorker?d.formatMessage('Failed to locate the Service Worker registration using a custom "findWorker" predicate.\n\nPlease ensure that the custom predicate properly locates the Service Worker registration at "%s".\nMore details: https://mswjs.io/docs/api/setup-worker/start#findworker\n',t.serviceWorker.url):d.formatMessage('Failed to locate the Service Worker registration.\n\nThis most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname.\n\nPlease consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start',t.serviceWorker.url,location.host);throw new Error(e)}return e.workerPromise.resolve(r),e.registration=a,window.addEventListener("beforeunload",()=>{"redundant"!==r.state&&e.workerChannel.postMessage("CLIENT_CLOSED"),window.clearInterval(e.keepAliveInterval),window.postMessage({type:"msw/worker:stop"})}),await function(e){const t=new zn;return e.workerChannel.postMessage("INTEGRITY_CHECK_REQUEST"),e.workerChannel.once("INTEGRITY_CHECK_RESPONSE",e=>{const{checksum:n,packageVersion:o}=e.data;"4db4a41e972cec1b64cc569c66952d82"!==n&&d.warn(`The currently registered Service Worker has been generated by a different version of MSW (${o}) and may not be fully compatible with the installed version.\n\nIt's recommended you update your worker script by running this command:\n\n • npx msw init <PUBLIC_DIR>\n\nYou can also automate this process and make the worker script update automatically upon the library installations. Read more: https://mswjs.io/docs/cli/init.`),t.resolve()}),t}(e).catch(e=>{d.error("Error while checking the worker script integrity. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),console.error(e)}),e.keepAliveInterval=window.setInterval(()=>e.workerChannel.postMessage("KEEPALIVE_REQUEST"),5e3),function(e,t){t?.quiet||location.href.startsWith(e.scope)||d.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${e.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue.\n\n- (Recommended) Register the worker at the root level ("/") of your application.\n- Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`)}(a,e.startOptions),a})().then(async n=>{const o=n.installing||n.waiting;if(o){const e=new zn;o.addEventListener("statechange",()=>{"activated"===o.state&&e.resolve()}),await e}return await function(e,t){const n=new zn;return e.workerChannel.postMessage("MOCK_ACTIVATE"),e.workerChannel.once("MOCKING_ENABLED",async o=>{e.isMockingEnabled=!0;const r=await e.workerPromise;Mn({quiet:t.quiet,workerScope:e.registration?.scope,workerUrl:r.scriptURL,client:o.data.client}),n.resolve(!0)}),n}(e,t).catch(e=>{throw d.error("Failed to enable mocking. Please report this on GitHub (https://github.com/mswjs/msw/issues) and include the original error below."),e}),n});return o},Io=class{#i;#s;constructor(){this.#i=[],this.#s=new Map}get[Symbol.iterator](){return this.#i[Symbol.iterator].bind(this.#i)}entries(){return this.#s.entries()}get(e){return this.#s.get(e)||[]}getAll(){return this.#i.map(([,e])=>e)}append(e,t){this.#i.push([e,t]),this.#u(e,e=>e.push(t))}prepend(e,t){this.#i.unshift([e,t]),this.#u(e,e=>e.unshift(t))}delete(e,t){if(0!==this.size){this.#i=this.#i.filter(e=>e[1]!==t);for(const[n,o]of this.#s)n===e&&o.includes(t)&&o.splice(o.indexOf(t),1)}}deleteAll(e){0!==this.size&&(this.#i=this.#i.filter(t=>t[0]!==e),this.#s.delete(e))}get size(){return this.#i.length}clear(){0!==this.size&&(this.#i.length=0,this.#s.clear())}#u(e,t){t(this.#s.get(e)||this.#s.set(e,[]).get(e))}},To=Symbol("kDefaultPrevented"),Ao=Symbol("kPropagationStopped"),Oo=Symbol("kImmediatePropagationStopped"),Po=class extends MessageEvent{#c;[To];[Ao];[Oo];constructor(...e){super(e[0],e[1]),this[To]=!1}get defaultPrevented(){return this[To]}preventDefault(){super.preventDefault(),this[To]=!0}stopImmediatePropagation(){super.stopImmediatePropagation(),this[Oo]=!0}},Do=Symbol("kListenerOptions"),Lo=class{#l;constructor(){this.#l=new Io}on(e,t,n){return this.#d(e,t,n),this}once(e,t,n){return this.on(e,t,{...n||{},once:!0})}earlyOn(e,t,n){return this.#d(e,t,n,"prepend"),this}earlyOnce(e,t,n){return this.earlyOn(e,t,{...n||{},once:!0})}emit(e){if(0===this.#l.size)return!1;const t=this.listenerCount(e.type)>0,n=this.#p(e);for(const t of this.#h(e.type)){if(null!=n.event[Ao]&&n.event[Ao]!==this)return n.revoke(),!1;if(n.event[Oo])break;this.#f(n.event,t)}return n.revoke(),t}async emitAsPromise(e){if(0===this.#l.size)return[];const t=[],n=this.#p(e);for(const o of this.#h(e.type)){if(null!=n.event[Ao]&&n.event[Ao]!==this)return n.revoke(),[];if(n.event[Oo])break;const e=await Promise.resolve(this.#f(n.event,o));this.#g(o)||t.push(e)}return n.revoke(),Promise.allSettled(t).then(e=>e.map(e=>"fulfilled"===e.status?e.value:e.reason))}*emitAsGenerator(e){if(0===this.#l.size)return;const t=this.#p(e);for(const n of this.#h(e.type)){if(null!=t.event[Ao]&&t.event[Ao]!==this)return void t.revoke();if(t.event[Oo])break;const e=this.#f(t.event,n);this.#g(n)||(yield e)}t.revoke()}removeListener(e,t){this.#l.delete(e,t)}removeAllListeners(e){null!=e?this.#l.deleteAll(e):this.#l.clear()}listeners(e){return null==e?this.#l.getAll():this.#l.get(e)}listenerCount(e){return null==e?this.#l.size:this.listeners(e).length}#d(e,t,n,o="append"){"prepend"===o?this.#l.prepend(e,t):this.#l.append(e,t),n&&(Object.defineProperty(t,Do,{value:n,enumerable:!1,writable:!1}),n.signal&&n.signal.addEventListener("abort",()=>{this.removeListener(e,t)},{once:!0}))}#p(e){const{stopPropagation:t}=e;return e.stopPropagation=new Proxy(e.stopPropagation,{apply:(t,n,o)=>(e[Ao]=this,Reflect.apply(t,n,o))}),{event:e,revoke(){e.stopPropagation=t}}}#f(e,t){const n=t.call(this,e);if(t[Do]?.once){const n=this.#g(t)?"*":e.type;this.#l.delete(n,t)}return n}*#h(e){for(const[t,n]of this.#l)"*"!==t&&t!==e||(yield n)}#g(e){return this.#l.get("*").includes(e)}},jo=Gn(),zo=class extends Po{#m;constructor(e){super(e.data.type,{data:e.data.payload}),this.#m=e}get ports(){return this.#m.ports}postMessage(e,...t){this.#m.ports[0].postMessage({type:e,data:t[0]},{transfer:t[1]})}},No=class extends Lo{constructor(e){super(),this.options=e,jo&&navigator.serviceWorker.addEventListener("message",async e=>{const t=await this.options.worker;null!=e.source&&e.source!==t||e.data&&r(e.data)&&"type"in e.data&&this.emit(new zo(e))})}postMessage(e){Ln(jo,"Failed to post message on a WorkerChannel: the Service Worker API is unavailable in this context. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.options.worker.then(t=>{t.postMessage(e)})}};async function qo(e,t,...n){const o=e.listeners(t);if(0!==o.length)for(const t of o)await t.apply(e,n)}function Uo(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==t&&(("function"!=typeof t.get||void 0!==t.get())&&((void 0!==t.get||null!=t.value)&&(!(void 0===t.set&&!t.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}var Mo=async e=>{try{return{error:null,data:await e().catch(e=>{throw e})}}catch(e){return{error:e,data:null}}};function Bo(e,t=!1){return t?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function Fo(e,t){try{return e[t],!0}catch{return!1}}function Go(e){return null!=e&&e instanceof Response&&Fo(e,"type")&&"error"===e.type}async function Wo(e){const t=async t=>{return t instanceof Error?(await e.controller.errorWith(t),!0):Go(t)?(await e.controller.respondWith(t),!0):Bo(n=t,!0)&&Fo(n,"status")&&Fo(n,"statusText")&&Fo(n,"bodyUsed")?(await e.controller.respondWith(t),!0):!!Bo(t)&&(await e.controller.errorWith(t),!0);var n},n=async n=>{if(n instanceof Kn)throw r.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(n)?(await e.controller.errorWith(n),!0):n instanceof Response&&await t(n)},o=new zn;if(e.request.signal){if(e.request.signal.aborted)return void await e.controller.errorWith(e.request.signal.reason);e.request.signal.addEventListener("abort",()=>{o.reject(e.request.signal.reason)},{once:!0})}const r=await Mo(async()=>{const t=qo(e.emitter,"request",{requestId:e.requestId,request:e.request,controller:e.controller});await Promise.race([o,t,e.controller.handled])});if("rejected"!==o.state){var a;if(!r.error)return e.controller.readyState===$n.PENDING?await e.controller.passthrough():e.controller.handled;if(await n(r.error))return;if(e.emitter.listenerCount("unhandledException")>0){const n=new $n(e.request,{passthrough(){},async respondWith(e){await t(e)},async errorWith(t){await e.controller.errorWith(t)}});if(await qo(e.emitter,"unhandledException",{error:r.error,request:e.request,requestId:e.requestId,controller:n}),n.readyState!==$n.PENDING)return}await e.controller.respondWith((a=r.error,new Response(JSON.stringify(a instanceof Error?{name:a.name,message:a.message,stack:a.stack}:a),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await e.controller.errorWith(o.rejectionReason)}function Vo(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}var Ho=["content-encoding","content-language","content-location","content-type","content-length"],Ko=Symbol("kRedirectCount");function $o(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var Qo=class extends TransformStream{constructor(){console.warn("[Interceptors]: Brotli decompression of response streams is not supported in the browser"),super({transform(e,t){t.enqueue(e)}})}},Yo=class extends TransformStream{constructor(e,...t){super({},...t);const n=[super.readable,...e].reduce((e,t)=>e.pipeThrough(t));Object.defineProperty(this,"readable",{get:()=>n})}};function Jo(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map(e=>e.trim())}(e);return 0===t.length?null:new Yo(t.reduceRight((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new Qo):(e.length=0,e),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var Xo=class e extends xo{static{this.symbol=Symbol("fetch")}constructor(){super(e.symbol)}checkEnvironment(){return Uo("fetch")}async setup(){const e=globalThis.fetch;Ln(!e[Hn],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(t,n)=>{const o=Eo(),r="string"!=typeof t||"undefined"==typeof location||Qn(t)?t:new URL(t,location.href),a=new Request(r,n);t instanceof Request&&Zn(a,t);const i=new zn,s=new $n(a,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const t=a.clone(),{error:n,data:r}=await Mo(()=>e(a));if(n)return i.reject(n);if(this.logger.info("original fetch performed",r),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const e=r.clone();await qo(this.emitter,"response",{response:e,isMockedResponse:!1,request:t,requestId:o})}i.resolve(r)},respondWith:async e=>{if(Go(e))return this.logger.info("request has errored!",{response:e}),void i.reject(Vo(e));this.logger.info("received mocked response!",{rawResponse:e});const t=Jo(e),n=null===t?e:new Jn(t,e);if(Jn.setUrl(a.url,n),Jn.isRedirectResponse(n.status)){if("error"===a.redirect)return void i.reject(Vo("unexpected redirect"));if("follow"===a.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(Vo());const n=new URL(e.url);let o;try{o=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(Vo(e))}if("http:"!==o.protocol&&"https:"!==o.protocol)return Promise.reject(Vo("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,Ko)>20)return Promise.reject(Vo("redirect count exceeded"));if(Object.defineProperty(e,Ko,{value:(Reflect.get(e,Ko)||0)+1}),"cors"===e.mode&&(o.username||o.password)&&!$o(n,o))return Promise.reject(Vo('cross origin not allowed for request mode "cors"'));const r={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(r.method="GET",r.body=null,Ho.forEach(t=>{e.headers.delete(t)})),$o(n,o)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),r.headers=e.headers;const a=await fetch(new Request(o,r));return Object.defineProperty(a,"redirected",{value:!0,configurable:!0}),a}(a,n).then(e=>{i.resolve(e)},e=>{i.reject(e)})}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await qo(this.emitter,"response",{response:n.clone(),isMockedResponse:!0,request:a,requestId:o})),i.resolve(n)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),i.reject(e)}});return this.logger.info("[%s] %s",a.method,a.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await Wo({request:a,requestId:o,emitter:this.emitter,controller:s}),i},Object.defineProperty(globalThis.fetch,Hn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.fetch,Hn,{value:void 0}),globalThis.fetch=e,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)})}};var Zo=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=t?.target||null,this.currentTarget=t?.currentTarget||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},er=class extends Zo{constructor(e,t){super(e),this.lengthComputable=t?.lengthComputable||!1,this.composed=t?.composed||!1,this.loaded=t?.loaded||0,this.total=t?.total||0}},tr="undefined"!=typeof ProgressEvent;function nr(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const n=Reflect.getPrototypeOf(e);return n?nr(n,t):null}function or(e,t){return new Proxy(e,function(e){const{constructorCall:t,methodCall:n,getProperty:o,setProperty:r}=e,a={};void 0!==t&&(a.construct=function(e,n,o){const r=Reflect.construct.bind(null,e,n,o);return t.call(o,n,r)});return a.set=function(e,t,n){const o=()=>{const o=nr(e,t)||e,r=Reflect.getOwnPropertyDescriptor(o,t);return void 0!==r?.set?(r.set.apply(e,[n]),!0):Reflect.defineProperty(o,t,{writable:!0,enumerable:!0,configurable:!0,value:n})};return void 0!==r?r.call(e,[t,n],o):o()},a.get=function(e,t,r){const a=()=>e[t],i=void 0!==o?o.call(e,[t,r],a):a();return"function"==typeof i?(...o)=>{const r=i.bind(e,...o);return void 0!==n?n.call(e,[t,o],r):r()}:i},a}(t))}function rr(e){const t=new Headers,n=e.split(/[\r\n]+/);for(const e of n){if(""===e.trim())continue;const[n,...o]=e.split(": "),r=o.join(": ");t.append(n,r)}return t}async function ar(e){const t=e.headers.get("content-length");return null!=t&&""!==t?Number(t):(await e.arrayBuffer()).byteLength}var ir=Symbol("kIsRequestHandled"),sr=jn(),ur=Symbol("kFetchRequest"),cr=class{constructor(e,t){this.initialRequest=e,this.logger=t,this.method="GET",this.url=null,this[ir]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=Eo(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=or(e,{setProperty:([e,t],n)=>{if("ontimeout"===e){const o=e.slice(2);return this.request.addEventListener(o,t),n()}return n()},methodCall:([e,t],n)=>{switch(e){case"open":{const[e,o]=t;return void 0===o?(this.method="GET",this.url=lr(e)):(this.method=e,this.url=lr(o)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),n()}case"addEventListener":{const[e,o]=t;return this.registerEvent(e,o),this.logger.info("addEventListener",e,o),n()}case"setRequestHeader":{const[e,o]=t;return this.requestHeaders.set(e,o),this.logger.info("setRequestHeader",e,o),n()}case"send":{const[e]=t;this.request.addEventListener("load",()=>{if(void 0!==this.onResponse){const e=function(e,t){return new Jn(Jn.isResponseWithBody(e.status)?t:null,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:rr(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[ir],request:a,requestId:this.requestId})}});const r="string"==typeof e?(o=e,Co.encode(o)):e,a=this.toFetchApiRequest(r);this[ur]=a.clone(),queueMicrotask(()=>{(this.onRequest?.call(this,{request:a,requestId:this.requestId})||Promise.resolve()).finally(()=>{if(!this[ir])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),sr&&this.request.setRequestHeader("x-interceptors-internal-request-id",this.requestId),n()})});break}default:return n()}var o}}),dr(this.request,"upload",or(this.request.upload,{setProperty:([e,t],n)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const n=e.slice(2);this.registerUploadEvent(n,t)}}return n()},methodCall:([e,t],n)=>{if("addEventListener"===e){const[e,o]=t;return this.registerUploadEvent(e,o),this.logger.info("upload.addEventListener",e,o),n()}}}))}registerEvent(e,t){const n=(this.events.get(e)||[]).concat(t);this.events.set(e,n),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const n=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,n),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[ir]=!0,this[ur]){const e=await ar(this[ur]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),dr(this.request,"status",e.status),dr(this.request,"statusText",e.statusText),dr(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,n,o)=>{if(this.logger.info("getResponseHeader",o[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const r=e.headers.get(o[0]);return this.logger.info('resolved response header "%s" to',o[0],r),r}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map(([e,t])=>`${e}: ${t}`).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await ar(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const n=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const o=e.body.getReader(),r=async()=>{const{value:e,done:a}=await o.read();if(a)return this.logger.info("response body stream done!"),void n();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),r()};r()}else n()}responseBufferToText(){return e=this.responseBuffer,new TextDecoder(t).decode(e);var e,t}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const t=(e=this.responseBuffer).buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return this.logger.info("resolved response ArrayBuffer",t),t}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}var e}get responseText(){if(Ln(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(Ln(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):function(e){return["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some(t=>e.startsWith(t))}(e)?(new DOMParser).parseFromString(this.responseBufferToText(),e):null}errorWith(e){this[ir]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(dr(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,n){const o=t[`on${e}`],r=function(e,t,n){const o=tr?ProgressEvent:er;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new o(t,{lengthComputable:!0,loaded:n?.loaded||0,total:n?.total||0}):new Zo(t,{target:e,currentTarget:e})}(t,e,n);this.logger.info('trigger "%s"',e,n||""),"function"==typeof o&&(this.logger.info('found a direct "%s" callback, calling...',e),o.call(t,r));const a=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[n,o]of a)n===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',o.length,e),o.forEach(e=>e.call(t,r)))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,n=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t});return dr(n,"headers",or(n.headers,{methodCall:([e,t],o)=>{switch(e){case"append":case"set":{const[e,n]=t;this.request.setRequestHeader(e,n);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${n.method} ${n.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return o()}})),Zn(n,this.request),this.logger.info("converted request to a Fetch API Request!",n),n}};function lr(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function dr(e,t,n){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:n})}var pr=class e extends xo{static{this.interceptorSymbol=Symbol("xhr")}constructor(){super(e.interceptorSymbol)}checkEnvironment(){return Uo("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;Ln(!t[Hn],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(n,o,r){t.info("constructed new XMLHttpRequest");const a=Reflect.construct(n,o,r),i=Object.getOwnPropertyDescriptors(n.prototype);for(const e in i)Reflect.defineProperty(a,e,i[e]);const s=new cr(a,t);return s.onRequest=async function({request:t,requestId:n}){const o=new $n(t,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{Go(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await Wo({request:t,requestId:n,controller:o,emitter:e})},s.onResponse=async function({response:t,isMockedResponse:n,request:o,requestId:r}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:n,request:o,requestId:r})},s.request}})}({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,Hn,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis.XMLHttpRequest,Hn,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)})}};var hr=class extends Ot{context;constructor(...e){super(...e),Ln(!jn(),d.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.context=this.createWorkerContext()}createWorkerContext(){const e=new zn;return{isMockingEnabled:!1,startOptions:null,workerPromise:e,registration:void 0,getRequestHandlers:()=>this.handlersController.currentHandlers(),emitter:this.emitter,workerChannel:new No({worker:e})}}async start(e={}){if("waitUntilReady"in e&&d.warn('The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'),this.context.isMockingEnabled)return d.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.'),this.context.registration;if(this.context.workerStoppedAt=void 0,this.context.startOptions=a(Nn,e),function(e){_n.on("connection",async t=>{const n=e.getHandlers().filter(Ct("EventHandler"));if(n.length>0)return e?.onMockedConnection(t),void await Promise.all(n.map(e=>e.run(t)));const o=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await y(o,e.getUnhandledRequestStrategy()).catch(e=>{const n=new Event("error");Object.defineProperty(n,"cause",{enumerable:!0,configurable:!1,value:e}),t.client.socket.dispatchEvent(n)}),e?.onPassthroughConnection(t),t.server.connect()})}({getUnhandledRequestStrategy:()=>this.context.startOptions.onUnhandledRequest,getHandlers:()=>this.handlersController.currentHandlers(),onMockedConnection:e=>{this.context.startOptions.quiet||An(e)},onPassthroughConnection(){}}),_n.apply(),this.subscriptions.push(()=>{_n.dispose()}),!Gn()){const e=function(e,t){const n=new So({name:"fallback",interceptors:[new Xo,new pr]});return n.on("request",async({request:n,requestId:o,controller:r})=>{const a=n.clone(),i=await Et(n,o,e.getRequestHandlers().filter(Ct("RequestHandler")),t,e.emitter,{resolutionContext:{quiet:t.quiet},onMockedResponse(n,{handler:o,parsedResult:r}){t.quiet||e.emitter.once("response:mocked",({response:e})=>{o.log({request:a,response:e,parsedResult:r})})}});i&&r.respondWith(i)}),n.on("response",({response:t,isMockedResponse:n,request:o,requestId:r})=>{e.emitter.emit(n?"response:mocked":"response:bypass",{response:t,request:o,requestId:r})}),n.apply(),n}(this.context,this.context.startOptions);return this.subscriptions.push(()=>{e.dispose()}),this.context.isMockingEnabled=!0,void Mn({message:"Mocking enabled (fallback mode).",quiet:this.context.startOptions.quiet})}const t=Ro(this.context),n=await t(this.context.startOptions,e);return this.context.isMockingEnabled=!0,n}stop(){super.dispose(),this.context.isMockingEnabled?(this.context.isMockingEnabled=!1,this.context.workerStoppedAt=Date.now(),this.context.emitter.removeAllListeners(),Gn()&&(this.context.workerChannel.removeAllListeners("RESPONSE"),window.clearInterval(this.context.keepAliveInterval)),window.postMessage({type:"msw/worker:stop"}),function(e={}){e.quiet||console.log(`%c${d.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}({quiet:this.context.startOptions?.quiet})):d.warn('Found a redundant "worker.stop()" call. Notice that stopping the worker after it has already been stopped has no effect. Consider removing this "worker.stop()" call.')}};const{message:fr}=Xe;function gr(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var o=e[n];if("*"!==o&&"+"!==o&&"?"!==o)if("\\"!==o)if("{"!==o)if("}"!==o)if(":"!==o)if("("!==o)t.push({type:"CHAR",index:n,value:e[n++]});else{var r=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--r){s++;break}}else if("("===e[s]&&(r++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(r)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var i="",s=n+1;s<e.length;){var u=e.charCodeAt(s);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=t.prefixes,r=void 0===o?"./":o,a=t.delimiter,i=void 0===a?"/#?":a,s=[],u=0,c=0,l="",d=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var o=n[c],r=o.type,a=o.index;throw new TypeError("Unexpected ".concat(r," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},f=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=i;t<n.length;t++){var o=n[t];if(e.indexOf(o)>-1)return!0}return!1}(n)?"[^".concat(yr(i),"]+?"):"(?:(?!".concat(yr(n),")[^").concat(yr(i),"])+?")};c<n.length;){var g=d("CHAR"),m=d("NAME"),y=d("PATTERN");if(m||y){var v=g||"";-1===r.indexOf(v)&&(l+=v,v=""),l&&(s.push(l),l=""),s.push({name:m||u++,prefix:v,suffix:"",pattern:y||f(v),modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)l+=b;else if(l&&(s.push(l),l=""),d("OPEN")){v=h();var k=d("NAME")||"",_=d("PATTERN")||"",w=h();p("CLOSE"),s.push({name:k||(_?u++:""),pattern:k&&!_?f(v):_,prefix:v,suffix:w,modifier:d("MODIFIER")||""})}else p("END")}}return s}function mr(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var o=n.decode,r=void 0===o?function(e){return e}:o;return function(n){var o=e.exec(n);if(!o)return!1;for(var a=o[0],i=o.index,s=Object.create(null),u=function(e){if(void 0===o[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=o[e].split(n.prefix+n.suffix).map(function(e){return r(e,n)}):s[n.name]=r(o[e],n)},c=1;c<o.length;c++)u(c);return{path:a,index:i,params:s}}}(kr(e,n,t),n,t)}function yr(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function vr(e){return e&&e.sensitive?"":"i"}function br(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var o=n.strict,r=void 0!==o&&o,a=n.start,i=void 0===a||a,s=n.end,u=void 0===s||s,c=n.encode,l=void 0===c?function(e){return e}:c,d=n.delimiter,p=void 0===d?"/#?":d,h=n.endsWith,f="[".concat(yr(void 0===h?"":h),"]|$"),g="[".concat(yr(p),"]"),m=i?"^":"",y=0,v=e;y<v.length;y++){var b=v[y];if("string"==typeof b)m+=yr(l(b));else{var k=yr(l(b.prefix)),_=yr(l(b.suffix));if(b.pattern)if(t&&t.push(b),k||_)if("+"===b.modifier||"*"===b.modifier){var w="*"===b.modifier?"?":"";m+="(?:".concat(k,"((?:").concat(b.pattern,")(?:").concat(_).concat(k,"(?:").concat(b.pattern,"))*)").concat(_,")").concat(w)}else m+="(?:".concat(k,"(").concat(b.pattern,")").concat(_,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw new TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));m+="(".concat(b.pattern,")").concat(b.modifier)}else m+="(?:".concat(k).concat(_,")").concat(b.modifier)}}if(u)r||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(f,")"):"$";else{var x=e[e.length-1],E="string"==typeof x?g.indexOf(x[x.length-1])>-1:void 0===x;r||(m+="(?:".concat(g,"(?=").concat(f,"))?")),E||(m+="(?=".concat(g,"|").concat(f,")"))}return new RegExp(m,vr(n))}(gr(e,n),t,n)}function kr(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,o=0,r=n.exec(e.source);r;)t.push({name:r[1]||o++,prefix:"",suffix:"",modifier:"",pattern:""}),r=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var o=e.map(function(e){return kr(e,t,n).source});return new RegExp("(?:".concat(o.join("|"),")"),vr(n))}(e,t,n):br(e,t,n)}var _r=class e extends Error{constructor(t){super(t),this.name="InterceptorError",Object.setPrototypeOf(this,e.prototype)}};function wr(e,t){const n=Object.getOwnPropertySymbols(t).find(t=>t.description===e);if(n)return Reflect.get(t,n)}(class e{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(t,n){this.request=t,this.source=n,this.readyState=e.PENDING,this.handled=new Zt}get#a(){return this.handled}async passthrough(){c.as(_r,this.readyState===e.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=e.PASSTHROUGH,await this.source.passthrough(),this.#a.resolve()}respondWith(t){c.as(_r,this.readyState===e.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,t.status,t.statusText||"OK",this.readyState),this.readyState=e.RESPONSE,this.#a.resolve(),this.source.respondWith(t)}errorWith(t){c.as(_r,this.readyState===e.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,t?.toString(),this.readyState),this.readyState=e.ERROR,this.source.errorWith(t),this.#a.resolve()}});var xr=class e extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(e){return e>=200&&e<=599}static isRedirectResponse(t){return e.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!e.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(e,t){if(!e||"about:"===e||!function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return;const n=wr("state",t);n?n.urlList.push(new URL(e)):Object.defineProperty(t,"url",{value:e,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(e){const t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}constructor(t,n={}){const o=n.status??200,r=e.isConfigurableStatusCode(o)?o:200;if(super(e.isResponseWithBody(o)?t:null,{status:r,statusText:n.statusText,headers:n.headers}),o!==r){const e=wr("state",this);e?e.status=o:Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}e.setUrl(n.url,this)}};new TextEncoder;const Er=/[?|#].*$/g;function Cr(e){return e.endsWith("?")?e:e.replace(Er,"")}function Sr(e,t){if(e instanceof RegExp)return e;const n=function(e,t){if(/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e))return e;if(e.startsWith("*"))return e;const n=t||"undefined"!=typeof location&&location.href;return n?decodeURI(new URL(encodeURI(e),n).href):e}(e,t);return Cr(n)}function Rr(e,t,n){const o=Sr(t,n),r="string"==typeof o?function(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,t,n)=>{const o="(.*)";return t?t.startsWith(":")?`${t}${n}`:`${t}${o}`:o}).replace(/([^/])(:)(?=\d+)/,"$1\\$2").replace(/^([^/]+)(:)(?=\/\/)/,"$1\\$2")}(o):o,a=function(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}(e),i=mr(r,{decode:decodeURIComponent})(a);return{matches:!1!==i,params:i&&i.params||{}}}var Ir=Object.create,Tr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,Or=Object.getOwnPropertyNames,Pr=Object.getPrototypeOf,Dr=Object.prototype.hasOwnProperty,Lr=((e,t)=>function(){return t||(0,e[Or(e)[0]])((t={exports:{}}).exports,t),t.exports})({"node_modules/.pnpm/cookie@1.0.2/node_modules/cookie/dist/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(e,t){const n=new i,o=e.length;if(o<2)return n;const r=t?.decode||c;let a=0;do{const t=e.indexOf("=",a);if(-1===t)break;const i=e.indexOf(";",a),c=-1===i?o:i;if(t>c){a=e.lastIndexOf(";",t-1)+1;continue}const l=s(e,a,t),d=u(e,t,l),p=e.slice(l,d);if(void 0===n[p]){let o=s(e,t+1,c),a=u(e,c,o);const i=r(e.slice(o,a));n[p]=i}a=c+1}while(a<o);return n},e.serialize=function(e,i,s){const u=s?.encode||encodeURIComponent;if(!t.test(e))throw new TypeError(`argument name is invalid: ${e}`);const c=u(i);if(!n.test(c))throw new TypeError(`argument val is invalid: ${i}`);let l=e+"="+c;if(!s)return l;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);l+="; Max-Age="+s.maxAge}if(s.domain){if(!o.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);l+="; Domain="+s.domain}if(s.path){if(!r.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);l+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===a.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);l+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(l+="; HttpOnly");s.secure&&(l+="; Secure");s.partitioned&&(l+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}}return l};var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function s(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function u(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function c(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}}}),jr=((e,t,n)=>(n=null!=e?Ir(Pr(e)):{},((e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of Or(t))Dr.call(e,r)||r===n||Tr(e,r,{get:()=>t[r],enumerable:!(o=Ar(t,r))||o.enumerable});return e})(!t&&e&&e.__esModule?n:Tr(n,"default",{value:e,enumerable:!0}),e)))(Lr(),1),zr=jr.default||jr,Nr=zr.parse,qr=zr.serialize;function Ur(e){const t=Nr(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Mr(){return Ur(document.cookie)}function Br(e){const t=e.headers.get("cookie"),n=t?Ur(t):{},o=function(e){if("undefined"==typeof document||"undefined"==typeof location)return{};switch(e.credentials){case"same-origin":{const t=new URL(e.url);return location.origin===t.origin?Mr():{}}case"include":return Mr();default:return{}}}(e);for(const t in o)e.headers.append("cookie",qr(t,o[t]));const r=Ne.getCookies(e.url),a=Object.fromEntries(r.map(e=>[e.key,e.value]));for(const t of r)e.headers.append("cookie",t.toString());return{...o,...a,...n}}var Fr=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(Fr||{});class Gr extends g{constructor(e,t,n,o){const r="function"==typeof t?"[custom predicate]":t;super({info:{header:`${e}${r?` ${r}`:""}`,path:t,method:e},resolver:n,options:o}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:t}=this.info;if(!t||t instanceof RegExp||"function"==typeof t)return;Cr(t)!==t&&d.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${t}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`)}async parse(e){const t=new URL(e.request.url),n=Br(e.request);if("function"==typeof this.info.path){const t=await this.info.path({request:e.request,cookies:n});return{match:"boolean"==typeof t?{matches:t,params:{}}:t,cookies:n}}return{match:this.info.path?Rr(t,this.info.path,e.resolutionContext?.baseUrl):{matches:!1,params:{}},cookies:n}}async predicate(e){const t=this.matchMethod(e.request.method),n=e.parsedResult.match.matches;return t&&n}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):(t=this.info.method,n=e,t.toLowerCase()===n.toLowerCase());var t,n}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const t=m(e.request.url),n=await async function(e){const t=e.clone(),n=await t.text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:n}}(e.request),o=await async function(e){const t=e.clone(),n=await t.text(),o=t.status||200;return{status:o,statusText:t.statusText||fr[o]||"OK",headers:Object.fromEntries(t.headers.entries()),body:n}}(e.response),r=(a=o.status)<300?"#69AB32":a<400?"#F0BB4B":"#E95F5D";var a;console.groupCollapsed(d.formatMessage(`${wn()} ${e.request.method} ${t} (%c${o.status} ${o.statusText}%c)`),`color:${r}`,"color:inherit"),console.log("Request",n),console.log("Handler:",this),console.log("Response",o),console.groupEnd()}}function Wr(e){return(t,n,o={})=>new Gr(e,t,n,o)}const Vr={all:Wr(/.+/),head:Wr(Fr.HEAD),get:Wr(Fr.GET),post:Wr(Fr.POST),put:Wr(Fr.PUT),delete:Wr(Fr.DELETE),patch:Wr(Fr.PATCH),options:Wr(Fr.OPTIONS)},Hr=Symbol("bodyType");class Kr extends xr{[Hr]=null;constructor(e,t){const n=xt(t);super(e,n),function(e,t){t.type&&Object.defineProperty(e,"type",{value:t.type,enumerable:!0,writable:!1});const n=t.headers.get("set-cookie");if(n&&(Object.defineProperty(e,wt,{value:n,enumerable:!1,writable:!1}),"undefined"!=typeof document)){const e=kt.prototype.getSetCookie.call(t.headers);for(const t of e)document.cookie=t}}(this,n)}static error(){return super.error()}static text(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/plain"),n.headers.has("Content-Length")||n.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new Kr(e,n)}static json(e,t){const n=xt(t);n.headers.has("Content-Type")||n.headers.set("Content-Type","application/json");const o=JSON.stringify(e);return n.headers.has("Content-Length")||n.headers.set("Content-Length",o?new Blob([o]).size.toString():"0"),new Kr(o,n)}static xml(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/xml"),new Kr(e,n)}static html(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","text/html"),new Kr(e,n)}static arrayBuffer(e,t){const n=xt(t);return n.headers.has("Content-Type")||n.headers.set("Content-Type","application/octet-stream"),e&&!n.headers.has("Content-Length")&&n.headers.set("Content-Length",e.byteLength.toString()),new Kr(e,n)}static formData(e,t){return new Kr(e,xt(t))}}c("undefined"!=typeof URL,d.formatMessage('Global "URL" class is not defined. This likely means that you\'re running MSW in an environment that doesn\'t support all Node.js standard API (e.g. React Native). If that\'s the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".'));var $r,Qr={content:[{test_credential:!0,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",captured:0,refunded:0,country:"MX",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"5d1558b0-4e6a-4268-a543-7b713b1de986",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82453,payment_id:83146,document_number:"IESF960301230",email:"rizinuta@fijwam.eg"}],card_transaction:[{card_transaction_id:19733,transaction_id:83459,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{test_credential:!1,organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",status:"ERROR",sub_status:"ERROR",amount_value:300,currency_code:"MXN",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",captured:0,refunded:0,country:"MX",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",description:"test description",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"2e1180e4-4a2a-4f63-ab7a-25e2ec07314a",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82452,payment_id:83145,document_number:"GOOT991014HASNLT07",email:"beisguw@obi.cv"}],card_transaction:[{card_transaction_id:19732,transaction_id:83458,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]},{organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",status:"ERROR",sub_status:"ERROR",amount_value:250,currency_code:"MXN",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",captured:0,refunded:0,country:"MX",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",description:"SUCCEEDED",subscription_id:"",condition_set_id:17491,payment_type:"",transaction_payment:[{code:"250e2c9c-b178-4762-9364-9037a8ed99a6",provider_id:"DLOCAL",payment_method_type:"CARD",parent_payment_method_type:null}],customer_payer:[{customer_payer_id:82451,payment_id:83144,document_number:"9999999999",email:"tito.gonzalez@y.uno"}],card_transaction:[{card_transaction_id:19731,transaction_id:83457,three_ds_electronic_commerce_indicator:null,three_ds_transaction_id:null,bin:"41111111",brand:"VISA",installments:1,network_token:null}],bnpl_transaction:[]}],last_page:!0},Yr={test_credential:!0,id:83146,code:"a6d708a9-0227-44eb-a044-0738b644d0fb",order_id:"1739814014074",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",organization_customer_external_id:"1739814014074",checkout_session:"b6ac7dcf-d76e-4d94-a781-5c6642aac69b",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:40:46.747839Z",updated_at:"2025-02-17T17:40:48.555749Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"29ebcc56-977d-44ee-aea0-6aa5fc1893d7",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b",platform:"WEB",routing_flow_code:"06d778ad-1824-41c8-a80f-e65a8e2417ac",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"00df007e-5603-4173-87cf-336fe81429a4",version:null,merchant_reference:"1739814014074",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82453,email:"rizinuta@fijwam.eg",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:40:46.756582+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83146,updated_at:"2025-02-17T17:40:46.756584+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"6c6c8223-0f63-4f17-979c-024839ea7366",date_of_birth:"1990-02-28",document_type:"RFC",document_number:"IESF960301230",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739814014074",browser_info_browser_time_difference:"300"}],payment_order:[{id:73140,created_at:"2025-02-17T17:40:46.789867+00:00",fee_amount:null,payment_id:83146,tip_amount:null,updated_at:"2025-02-17T17:40:46.789868+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73619,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:40:46.793886+00:00",updated_at:"2025-02-17T17:40:46.793888+00:00",unit_amount:300,payment_order_id:73140,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161666,type:"SHIPPING",created_at:"2025-02-17T17:40:46.767136+00:00",updated_at:"2025-02-17T17:40:46.767138+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null},{id:161667,type:"BILLING",created_at:"2025-02-17T17:40:46.77174+00:00",updated_at:"2025-02-17T17:40:46.771742+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82453,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Jr={test_credential:!1,id:83145,code:"240622a6-654d-44de-ae61-b718afeeb78f",order_id:"1739813914789",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",organization_customer_external_id:"1739813914789",checkout_session:"b80837d6-a234-486f-a28d-d6bf3fab9da3",status:"ERROR",amount_value:300,currency_code:"MXN",description:"test description",created_at:"2025-02-17T17:39:04.220012Z",updated_at:"2025-02-17T17:39:05.658776Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"f68e1740-7c89-443b-bd17-0a80d758477d",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b80837d6-a234-486f-a28d-d6bf3fab9da3",platform:"WEB",routing_flow_code:"e45f1ef1-3d24-4d83-bc91-2f6ca5159dc7",captured:0,refunded:0,account_integration_code:null,metadata:"[]",chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"faf5c3bc-eae2-4192-9680-3783332796af",version:null,merchant_reference:"1739813914789",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82452,email:"beisguw@obi.cv",gender:"female",last_name:"Hegmann",created_at:"2025-02-17T17:39:04.227478+00:00",first_name:"Aaron",ip_address:"187.189.168.116",payment_id:83145,updated_at:"2025-02-17T17:39:04.22748+00:00",nationality:"MX",phone_number:"3991111111",customer_code:"46f88791-1c4b-40cb-b0b6-889a87529775",date_of_birth:"1990-02-28",document_type:"CURP",document_number:"GOOT991014HASNLT07",device_fingerprint:null,phone_country_code:"52",device_fingerprints:"{}",geolocation_latitude:null,browser_info_language:"en",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",payment_method_payer_id:null,browser_info_color_depth:"5",browser_info_java_enabled:"false",browser_info_screen_width:"8",browser_info_accept_header:"application/json",browser_info_screen_height:"8",browser_info_accept_browser:"*/*",browser_info_accept_content:"*/*",merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"1739813914789",browser_info_browser_time_difference:"300"}],payment_order:[{id:73139,created_at:"2025-02-17T17:39:04.25785+00:00",fee_amount:null,payment_id:83145,tip_amount:null,updated_at:"2025-02-17T17:39:04.257851+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73618,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"Clothes",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:39:04.261319+00:00",updated_at:"2025-02-17T17:39:04.26132+00:00",unit_amount:300,payment_order_id:73139,manufacture_part_number:"XYZ123456"}],customer_payer_address:[{id:161664,type:"SHIPPING",created_at:"2025-02-17T17:39:04.237363+00:00",updated_at:"2025-02-17T17:39:04.237364+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null},{id:161665,type:"BILLING",created_at:"2025-02-17T17:39:04.241131+00:00",updated_at:"2025-02-17T17:39:04.241132+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:null,address_country:"MX",address_zip_code:"68890000",customer_payer_id:82452,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Xr={id:83144,code:"98855a76-4a79-4d2e-9a0a-876a1541a95e",order_id:"2222T",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",organization_customer_external_id:"Merchan3",checkout_session:"47f2445d-9105-49ce-9a2a-659977159272",status:"ERROR",amount_value:250,currency_code:"MXN",description:"SUCCEEDED",created_at:"2025-02-17T17:38:17.243160Z",updated_at:"2025-02-17T17:38:18.866741Z",organization_code:"de2844c3-30c7-461b-8422-a880998646a8",account_code:"8c9701a1-4290-4941-a48f-760b16c16c73",country:"MX",is_sdk_action_required:!1,idempotency_key:"6e6a2156-e2ed-40e5-92fa-b105f9e56433",sub_status:"ERROR",workflow:"SDK_CHECKOUT",callback_url:"https://google.com/?checkoutSession=47f2445d-9105-49ce-9a2a-659977159272",platform:null,routing_flow_code:"19ceb649-9a47-4fd4-bb6f-a83a09c62f0c",captured:0,refunded:0,account_integration_code:null,metadata:'[{"key":"country?","value":"MXN"},{"key":"Merchan_type","value":"D05,T5,T6,D02"}]',chargeback:0,in_dispute:0,checkout_url:null,payment_link_code:"",trace_id:"5826b7b5-a68b-44e9-b338-a95045696384",version:null,merchant_reference:"2222T",api_version:"v1",has_fraud_screening:!1,routing_metadata:"{}",sdk_abandoned_reason:null,subscription_code:null,subscription_payment_code:null,routing_condition_id:17491,routing_condition_name:null,routing_condition_description:null,currency_conversion_currency_code:null,currency_conversion_amount_value:null,currency_conversion_rate:null,currency_conversion_code:null,provider_currency_conversion_id:null,has_multiple_payment_methods:!1,request_origin:null,request_header_origin:"",subscription_billing_cycle:null,subscription_retry_count:null,smart_routing:!1,monitors:null,airline_passenger:[],airline_leg:[],airline_ticket:[],airline_ticket_issue:[],customer_payer:[{id:82451,email:"tito.gonzalez@y.uno",gender:"M",last_name:"Olivares",created_at:"2025-02-17T17:38:17.248723+00:00",first_name:"Tito Gonzalez",ip_address:"192.0.2.1",payment_id:83144,updated_at:"2025-02-17T17:38:17.248725+00:00",nationality:"CO",phone_number:"4499068531",customer_code:"4aa110f9-4f85-4351-92e8-7513338bfc00",date_of_birth:"1993-11-11",document_type:"INE",document_number:"9999999999",device_fingerprint:"hi88287gbd8d7d782ge0023",phone_country_code:"52",device_fingerprints:'{"DEFAULT":"hi88287gbd8d7d782ge0023"}',geolocation_latitude:null,browser_info_language:"es",geolocation_longitude:null,third_party_session_id:null,browser_info_user_agent:"string",payment_method_payer_id:null,browser_info_color_depth:"8",browser_info_java_enabled:null,browser_info_screen_width:"720",browser_info_accept_header:"string",browser_info_screen_height:"1280",browser_info_accept_browser:null,browser_info_accept_content:null,merchant_customer_created_at:null,browser_info_javascript_enabled:"true",organization_customer_external_id:"Merchan3",browser_info_browser_time_difference:null}],payment_order:[{id:73138,created_at:"2025-02-17T17:38:17.268872+00:00",fee_amount:0,payment_id:83144,tip_amount:null,updated_at:"2025-02-17T17:38:17.268873+00:00",sales_channel:null,shipping_amount:0,fulfillment_mongo_id:null}],order_item:[{id:73615,name:"Skirt",brand:"XYZ",id_item:"123AD",category:"",quantity:1,sku_code:"8765432109",created_at:"2025-02-17T17:38:17.272809+00:00",updated_at:"2025-02-17T17:38:17.27281+00:00",unit_amount:500,payment_order_id:73138,manufacture_part_number:"XYZ123456"},{id:73616,name:"t-shirt",brand:"Nike",id_item:"333d",category:"clothes",quantity:1,sku_code:"292929292",created_at:"2025-02-17T17:38:17.275665+00:00",updated_at:"2025-02-17T17:38:17.275666+00:00",unit_amount:1e3,payment_order_id:73138,manufacture_part_number:"0A98C0A9"},{id:73617,name:"t-shirt",brand:"FFF",id_item:"089qq8998",category:"clothes",quantity:2,sku_code:"098091",created_at:"2025-02-17T17:38:17.278489+00:00",updated_at:"2025-02-17T17:38:17.27849+00:00",unit_amount:1500,payment_order_id:73138,manufacture_part_number:"0SAD9DD9D"}],customer_payer_address:[{id:161662,type:"SHIPPING",created_at:"2025-02-17T17:38:17.253338+00:00",updated_at:"2025-02-17T17:38:17.253339+00:00",address_city:"Aguascalientes",address_state:"Aguascalientes",address_line_1:"Paseo de la asunción sur 503",address_line_2:"Jardines de Aguascalientes",address_country:"MX",address_zip_code:"20270",customer_payer_id:82451,address_neighborhood:null},{id:161663,type:"BILLING",created_at:"2025-02-17T17:38:17.256549+00:00",updated_at:"2025-02-17T17:38:17.25655+00:00",address_city:"Bogotá",address_state:"Cundinamarca",address_line_1:"Calle 34 # 56 - 78",address_line_2:"Apartamento 502, Torre I",address_country:"MX",address_zip_code:"111111",customer_payer_id:82451,address_neighborhood:null}],payment_tax:[],payment_order_tax:[],payment_order_shipping:[],payment_airline:[],payment_seller_details:{}},Zr=[{created_at:"2025-05-25T13:50:51.304216Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"DECLINED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:null,title_description:"timeLine.purchaseDeclined",light_text:"by provider",show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""},{created_at:"2025-05-25T13:50:49.783312Z",amount_value:32350,currency_code:"COP",transaction_type:"PURCHASE",status_history:"CREATED",provider_id:"REDEBAN_DIRECT",code:"d054b44d-8e22-486a-ac66-f76cc8ddf97a",category:"CARD",merchant_reference:"CO_Order_2337202644",description:"timeLine.descriptionPurchaseCreated",title_description:"timeLine.purchaseCreated",light_text:null,show_amount:!0,show_provider:!0,provider_status:null,sub_status_history:null,provider_response_code:null,provider_raw_response:null,parent_payment_method_type:null,wallet_title_description:""}],ea={content:[{test_credential:!0,id:"83459",code:"5d1558b0-4e6a-4268-a543-7b713b1de986",type:"PURCHASE",transaction_data_type:"transaction",vault_on_success:"",parent_id:"",payment_id:83146,customer_payment_method_code:"",status:"ERROR",category:"CARD",amount:300,created_at:"2025-02-17T17:40:47.474187Z",updated_at:"2025-02-17T17:40:48.203256Z",payment_method:{vaulted_token:"",type:"CARD",vault_on_success:!1,token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",payment_method_detail:{card:{verify:"false",capture:"true",installments:"1",first_installments_deferral:"",installments_type:null,installments_amount:null,soft_descriptor:null,authorization_code:null,retrieval_reference_number:null,card_data:{holder_name:"TITO GLEZ",iin:"41111111",ifd:"1111",expiration_month:"5",expiration_year:"27",number_lenght:"16",security_code_lenght:"3",brand:"VISA",issuer_name:"CONOTOXIA SP Z O O",issuer_code:null,category:"CLASSIC",type:"DEBIT",installments:""}},bnpl:null,bank_transfer:null,wallet:null,payment_link:null,ticket:null}},response_code:"INVALID_CREDENTIALS",response_message:"Invalid credentials",merchant_reference:"1739814014074",provider_data:{id:"83459",transaction_id:"",account_id:"",sub_status:"",status:"",status_detail:"3001",raw_response:{value:'{"code":3001,"message":"Invalid credentials"}'},response_message:"Invalid credentials",raw_notification:"",action_data:'{"image":null,"image_type":null,"redirect":{"init_url":"","success_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b","error_url":"https://demo.dev.y.uno/testing/checkout/status?checkoutSession=b6ac7dcf-d76e-4d94-a781-5c6642aac69b"},"otp":{"length":0,"expiration_time":null,"retries":{"accepts":null,"number":null},"payment_instructions":null},"payment_code":{"code":null,"reference":"","expiration_time":null},"three_d_secure_redirect":{"init_url":null,"access_token":null,"redirect_url":null},"request_html":null,"sdk_provider":{"gateway":"","provider_id":null,"merchant_id":"","merchant_name":null,"amount":{"currency":"","value":"0"},"protocol_version":null,"payment_methods":null,"payment_method_type":null,"supported_networks":null,"session":null,"init_url":null,"client_id":null,"intent":null,"components":null},"expiration_time":null,"image_details":null,"info":{"screen_info":null},"render_html":null,"ui":null}'},reason:null,description:"test description",one_time_token:"fb0f5521-d61e-43f0-883e-a6629de43f1a",require_action_type:"CHECK_STATUS",parent_provider:"",account_integration_code:"9bf85421-5326-4616-826e-8575a5d69629",technical_reverse_provider_transaction_id:"",technical_reverse_transaction_type:"",technical_reverse_status:"",stand_alone:null,fraud_screening:null}]},ta=[Vr.post("https://dev.y.uno/dashboard-bff/api/payments/lazy",function(){return Kr.json(Qr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/a6d708a9-0227-44eb-a044-0738b644d0fb",function(){return Kr.json(Yr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/240622a6-654d-44de-ae61-b718afeeb78f",function(){return Kr.json(Jr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/v2/98855a76-4a79-4d2e-9a0a-876a1541a95e",function(){return Kr.json(Xr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/transactions/by-payment/:id/history",function(){return Kr.json(Zr)}),Vr.get("https://dev.y.uno/dashboard-bff/api/payments/:id/transactions/details",function(){return Kr.json(ea)})],na={total:{total_conversion_rate:.8491,insight_payment_total_conversion_rate_periodicity:{"2025-05-05":.854357872962925,"2025-05-06":.8464466315045402,"2025-05-07":.8464068445151444}},cards:{cards_approvals_rate:.8537,insight_payment_total_conversion_rate_periodicity_for_card:{"2025-05-05":.8535902892724836,"2025-05-06":.8544554997052155,"2025-05-07":.8529382291046492}},apms:{apms_conversion_rate:.846,insight_payment_total_conversion_rate_periodicity_for_apm:{"2025-05-05":.8548995923297599,"2025-05-06":.8409580339477246,"2025-05-07":.8419575308800616}},cards_without_insufficient_funds:{without_insufficient_funds_conversion_rate:.8993,insight_conversion_rate_without_insufficient_funds:{"2025-05-05":.9018141803473709,"2025-05-06":.9025951512661153,"2025-05-07":.8933830566240437}}},oa={fraud:{conversion_rate_fraud_transactions:0,conversion_fraud_transactions_periodicity:null},"3ds":{conversion_rate_card_transactions3ds:.25,conversion_rate_card_transactions3ds_periodicity:{"2025-05-05":.2391304347826087,"2025-05-06":.3023255813953488,"2025-05-07":.21568627450980393}}},ra={sales_volume_metric_group:{distribution:[{key:"2025-04-03",total:2146090},{key:"2025-04-04",total:498220},{key:"2025-04-05",total:563560},{key:"2025-04-06",total:822600},{key:"2025-04-07",total:660445},{key:"2025-04-08",total:553400},{key:"2025-04-09",total:464195},{key:"2025-04-10",total:470835},{key:"2025-04-11",total:3482795},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:207200},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:277185},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:152590},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:1060845},{key:"2025-04-21",total:715160},{key:"2025-04-22",total:686465},{key:"2025-04-23",total:268490},{key:"2025-04-24",total:699500},{key:"2025-04-25",total:306090},{key:"2025-04-26",total:469500},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:1610220},{key:"2025-04-29",total:699965},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:666160},{key:"2025-05-02",total:52565}],total:19121355,average:637378.5},total_payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285,average:9.5},average_ticket:{distribution:[{key:"2025-04-03",total:118580.63,min_ticket:12665,max_ticket:882e3},{key:"2025-04-04",total:51146.67,min_ticket:25900,max_ticket:121500},{key:"2025-04-05",total:74692,min_ticket:23800,max_ticket:190100},{key:"2025-04-06",total:85150,min_ticket:20900,max_ticket:141400},{key:"2025-04-07",total:46528.75,min_ticket:16200,max_ticket:125e3},{key:"2025-04-08",total:48290.91,min_ticket:21900,max_ticket:106700},{key:"2025-04-09",total:34366.25,min_ticket:13900,max_ticket:64005},{key:"2025-04-10",total:39730.45,min_ticket:15900,max_ticket:74545},{key:"2025-04-11",total:76968.93,min_ticket:15900,max_ticket:454200},{key:"2025-04-12",total:42528.33,min_ticket:29835,max_ticket:66130},{key:"2025-04-13",total:48800,min_ticket:21900,max_ticket:64800},{key:"2025-04-14",total:35138.57,min_ticket:7900,max_ticket:55100},{key:"2025-04-15",total:41117,min_ticket:35800,max_ticket:53100},{key:"2025-04-16",total:35497,min_ticket:21420,max_ticket:53700},{key:"2025-04-17",total:73650,min_ticket:47700,max_ticket:99600},{key:"2025-04-18",total:47947.5,min_ticket:39200,max_ticket:56695},{key:"2025-04-19",total:41800,min_ticket:41800,max_ticket:41800},{key:"2025-04-20",total:61248.33,min_ticket:25900,max_ticket:121600},{key:"2025-04-21",total:74095,min_ticket:16200,max_ticket:308e3},{key:"2025-04-22",total:47066.54,min_ticket:15900,max_ticket:98200},{key:"2025-04-23",total:28732.22,min_ticket:9900,max_ticket:39200},{key:"2025-04-24",total:40025,min_ticket:20200,max_ticket:109600},{key:"2025-04-25",total:34755.71,min_ticket:15900,max_ticket:45390},{key:"2025-04-26",total:84900,min_ticket:34800,max_ticket:130400},{key:"2025-04-27",total:121600,min_ticket:5e4,max_ticket:162300},{key:"2025-04-28",total:62873.33,min_ticket:21900,max_ticket:293400},{key:"2025-04-29",total:47213.75,min_ticket:11900,max_ticket:113700},{key:"2025-04-30",total:53593.33,min_ticket:27800,max_ticket:120600},{key:"2025-05-01",total:93426.67,min_ticket:15900,max_ticket:159500},{key:"2025-05-02",total:26282.5,min_ticket:22900,max_ticket:29665}],total:58001.28,min_ticket:7900,max_ticket:882e3},conversion_rate:null,total_payments_and_conversion_rate:{payments:{distribution:[{key:"2025-04-03",total:18},{key:"2025-04-04",total:10},{key:"2025-04-05",total:6},{key:"2025-04-06",total:9},{key:"2025-04-07",total:14},{key:"2025-04-08",total:12},{key:"2025-04-09",total:13},{key:"2025-04-10",total:12},{key:"2025-04-11",total:23},{key:"2025-04-12",total:3},{key:"2025-04-13",total:5},{key:"2025-04-14",total:7},{key:"2025-04-15",total:7},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:3},{key:"2025-04-19",total:1},{key:"2025-04-20",total:11},{key:"2025-04-21",total:13},{key:"2025-04-22",total:15},{key:"2025-04-23",total:10},{key:"2025-04-24",total:14},{key:"2025-04-25",total:9},{key:"2025-04-26",total:6},{key:"2025-04-27",total:3},{key:"2025-04-28",total:21},{key:"2025-04-29",total:15},{key:"2025-04-30",total:9},{key:"2025-05-01",total:7},{key:"2025-05-02",total:2}],total:285},conversion_rate:{distribution:[{key:"2025-04-03",total:.8889},{key:"2025-04-04",total:.9},{key:"2025-04-05",total:.8333},{key:"2025-04-06",total:.8889},{key:"2025-04-07",total:.8571},{key:"2025-04-08",total:.9167},{key:"2025-04-09",total:.9231},{key:"2025-04-10",total:.9167},{key:"2025-04-11",total:.6087},{key:"2025-04-12",total:1},{key:"2025-04-13",total:.6},{key:"2025-04-14",total:1},{key:"2025-04-15",total:.7143},{key:"2025-04-16",total:1},{key:"2025-04-17",total:1},{key:"2025-04-18",total:.6667},{key:"2025-04-19",total:1},{key:"2025-04-20",total:.2727},{key:"2025-04-21",total:.6154},{key:"2025-04-22",total:.8667},{key:"2025-04-23",total:.9},{key:"2025-04-24",total:.8571},{key:"2025-04-25",total:.7778},{key:"2025-04-26",total:.6667},{key:"2025-04-27",total:1},{key:"2025-04-28",total:.5714},{key:"2025-04-29",total:.8},{key:"2025-04-30",total:1},{key:"2025-05-01",total:.8571},{key:"2025-05-02",total:1}],total:.793}},quantity_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],total:226}},{DECLINED:{distribution:[{key:"2025-04-03",total:2},{key:"2025-04-04",total:1},{key:"2025-04-05",total:1},{key:"2025-04-06",total:1},{key:"2025-04-07",total:2},{key:"2025-04-08",total:1},{key:"2025-04-09",total:1},{key:"2025-04-10",total:1},{key:"2025-04-11",total:9},{key:"2025-04-13",total:2},{key:"2025-04-15",total:2},{key:"2025-04-18",total:1},{key:"2025-04-20",total:8},{key:"2025-04-21",total:5},{key:"2025-04-22",total:2},{key:"2025-04-23",total:1},{key:"2025-04-24",total:2},{key:"2025-04-25",total:2},{key:"2025-04-26",total:2},{key:"2025-04-28",total:9},{key:"2025-04-29",total:3},{key:"2025-05-01",total:1}],total:59}}],volume_successful_payments:13108290,volume_successful_payments_by_periodicity:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],quantity_successful_payments:226,quantity_successful_payments_by_periodicity:[{key:"2025-04-03",total:16},{key:"2025-04-04",total:9},{key:"2025-04-05",total:5},{key:"2025-04-06",total:8},{key:"2025-04-07",total:12},{key:"2025-04-08",total:11},{key:"2025-04-09",total:12},{key:"2025-04-10",total:11},{key:"2025-04-11",total:14},{key:"2025-04-12",total:3},{key:"2025-04-13",total:3},{key:"2025-04-14",total:7},{key:"2025-04-15",total:5},{key:"2025-04-16",total:5},{key:"2025-04-17",total:2},{key:"2025-04-18",total:2},{key:"2025-04-19",total:1},{key:"2025-04-20",total:3},{key:"2025-04-21",total:8},{key:"2025-04-22",total:13},{key:"2025-04-23",total:9},{key:"2025-04-24",total:12},{key:"2025-04-25",total:7},{key:"2025-04-26",total:4},{key:"2025-04-27",total:3},{key:"2025-04-28",total:12},{key:"2025-04-29",total:12},{key:"2025-04-30",total:9},{key:"2025-05-01",total:6},{key:"2025-05-02",total:2}],average_provider_latency:[{PAYMENTEZ:{distribution:[{key:"2025-04-03",total:1582.1429},{key:"2025-04-04",total:1972.6667},{key:"2025-04-05",total:2059.25},{key:"2025-04-06",total:1772},{key:"2025-04-07",total:1236.1667},{key:"2025-04-08",total:1310.7143},{key:"2025-04-09",total:1645.25},{key:"2025-04-10",total:2277},{key:"2025-04-11",total:1729.7143},{key:"2025-04-12",total:0},{key:"2025-04-13",total:1870},{key:"2025-04-14",total:1109},{key:"2025-04-15",total:1110},{key:"2025-04-16",total:1255.5},{key:"2025-04-17",total:0},{key:"2025-04-18",total:0},{key:"2025-04-19",total:1930},{key:"2025-04-20",total:0},{key:"2025-04-21",total:1502.3333},{key:"2025-04-22",total:2444.25},{key:"2025-04-23",total:1450.6667},{key:"2025-04-24",total:1376.75},{key:"2025-04-25",total:2074},{key:"2025-04-26",total:2339.75},{key:"2025-04-27",total:0},{key:"2025-04-28",total:1719.8},{key:"2025-04-29",total:1600.5},{key:"2025-04-30",total:1692.5},{key:"2025-05-01",total:1468.5},{key:"2025-05-02",total:0}],total:1727.7576}},{NUVEI:{distribution:[{key:"2025-04-03",total:3110.5},{key:"2025-04-04",total:2706.6667},{key:"2025-04-05",total:3637.5},{key:"2025-04-06",total:2654.4},{key:"2025-04-07",total:3068.1429},{key:"2025-04-08",total:2907.6},{key:"2025-04-09",total:2998.6667},{key:"2025-04-10",total:2732.5714},{key:"2025-04-11",total:3071.4167},{key:"2025-04-12",total:3222},{key:"2025-04-13",total:3020.3333},{key:"2025-04-14",total:2870},{key:"2025-04-15",total:3333},{key:"2025-04-16",total:3319},{key:"2025-04-17",total:3217},{key:"2025-04-18",total:2612},{key:"2025-04-19",total:0},{key:"2025-04-20",total:1829.7778},{key:"2025-04-21",total:2948.875},{key:"2025-04-22",total:3199},{key:"2025-04-23",total:2890.5},{key:"2025-04-24",total:3157},{key:"2025-04-25",total:3302},{key:"2025-04-26",total:2752},{key:"2025-04-27",total:3965.6667},{key:"2025-04-28",total:3059.7333},{key:"2025-04-29",total:3012.1},{key:"2025-04-30",total:3227.6667},{key:"2025-05-01",total:2788.6667},{key:"2025-05-02",total:3353}],total:2973.3793}},{WOMPI:{distribution:[{key:"2025-04-03",total:6647},{key:"2025-04-04",total:5687},{key:"2025-04-05",total:0},{key:"2025-04-06",total:5731.6667},{key:"2025-04-07",total:4024},{key:"2025-04-08",total:8196},{key:"2025-04-09",total:6371.25},{key:"2025-04-10",total:4857},{key:"2025-04-11",total:5636.6364},{key:"2025-04-12",total:0},{key:"2025-04-13",total:7057.5},{key:"2025-04-14",total:0},{key:"2025-04-15",total:6098.3333},{key:"2025-04-16",total:7633},{key:"2025-04-17",total:4292},{key:"2025-04-18",total:7642.5},{key:"2025-04-19",total:0},{key:"2025-04-20",total:7386.5},{key:"2025-04-21",total:6093.1667},{key:"2025-04-22",total:7832.75},{key:"2025-04-23",total:5280.4},{key:"2025-04-24",total:7190.5},{key:"2025-04-25",total:0},{key:"2025-04-26",total:4156},{key:"2025-04-27",total:0},{key:"2025-04-28",total:8211.6667},{key:"2025-04-29",total:6907.3333},{key:"2025-04-30",total:6054},{key:"2025-05-01",total:7726.3333},{key:"2025-05-02",total:0}],total:6579.7901}}],total_subscriptions_and_conversion_rate:{subscriptions:{distribution:null,total:0},subscriptions_succeeded:{distribution:null,total:0},conversion_rate:{distribution:null,total:0}},total_status_distribution:[{SUCCEEDED:{distribution:[{key:"2025-04-03",total:1897290},{key:"2025-04-04",total:460320},{key:"2025-04-05",total:373460},{key:"2025-04-06",total:681200},{key:"2025-04-07",total:558345},{key:"2025-04-08",total:531200},{key:"2025-04-09",total:412395},{key:"2025-04-10",total:437035},{key:"2025-04-11",total:1077565},{key:"2025-04-12",total:127585},{key:"2025-04-13",total:146400},{key:"2025-04-14",total:245970},{key:"2025-04-15",total:205585},{key:"2025-04-16",total:177485},{key:"2025-04-17",total:147300},{key:"2025-04-18",total:95895},{key:"2025-04-19",total:41800},{key:"2025-04-20",total:183745},{key:"2025-04-21",total:592760},{key:"2025-04-22",total:611865},{key:"2025-04-23",total:258590},{key:"2025-04-24",total:480300},{key:"2025-04-25",total:243290},{key:"2025-04-26",total:339600},{key:"2025-04-27",total:364800},{key:"2025-04-28",total:754480},{key:"2025-04-29",total:566565},{key:"2025-04-30",total:482340},{key:"2025-05-01",total:560560},{key:"2025-05-02",total:52565}],total:13108290}},{DECLINED:{distribution:[{key:"2025-04-03",total:248800},{key:"2025-04-04",total:37900},{key:"2025-04-05",total:190100},{key:"2025-04-06",total:141400},{key:"2025-04-07",total:102100},{key:"2025-04-08",total:22200},{key:"2025-04-09",total:51800},{key:"2025-04-10",total:33800},{key:"2025-04-11",total:2405230},{key:"2025-04-13",total:60800},{key:"2025-04-15",total:71600},{key:"2025-04-18",total:56695},{key:"2025-04-20",total:877100},{key:"2025-04-21",total:122400},{key:"2025-04-22",total:74600},{key:"2025-04-23",total:9900},{key:"2025-04-24",total:219200},{key:"2025-04-25",total:62800},{key:"2025-04-26",total:129900},{key:"2025-04-28",total:855740},{key:"2025-04-29",total:133400},{key:"2025-05-01",total:105600}],total:6013065}}]};!function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}($r||($r={}));var aa={sales_volume_metric_group:ra.sales_volume_metric_group,total_payments:ra.total_payments},ia=Vr.get("/api/insights/overview-metrics",function(){return Kr.json(aa)}),sa=[Vr.get("/api/v3/insights/overview-metrics/".concat($r.GENERAL),function(){return Kr.json({sales_volume_metric_group:aa.sales_volume_metric_group})}),Vr.get("/api/v3/insights/overview-metrics/".concat($r.LATENCY),function(){return Kr.json({latency_metrics:{average_response_time:250,distribution:[{key:"2025-04-01",value:200},{key:"2025-04-02",value:300}]}})}),Vr.get("/api/v3/insights/overview-metrics/".concat($r.STATUS),function(){return Kr.json({status_metrics:{success_rate:95,distribution:[{key:"2025-04-01",value:98},{key:"2025-04-02",value:92}]}})}),Vr.get("/api/v3/insights/overview-metrics/".concat($r.SUBSCRIPTIONS),function(){return Kr.json({subscription_metrics:{active_subscriptions:1e3,distribution:[{key:"2025-04-01",value:950},{key:"2025-04-02",value:1050}]}})})],ua=e.__spreadArray([ia],sa,!0),ca=e.__spreadArray([Vr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview",function(){return Kr.json(na)}),Vr.post("https://dev.y.uno/dashboard-bff/api/v3/insights/conversion-rate/overview-fraud-3ds",function(){return Kr.json(oa)}),Vr.get("*/dialogs",function(){return Kr.json({})}),Vr.get("*/accounts/webhooks/:accountCode",function(){return Kr.json({})}),Vr.get("*/accounts/webhooks/params-catalog",function(){return Kr.json({})}),Vr.get("*/accounts/webhooks-v2/:accountCode",function(){return Kr.json({})})],ua,!0),la={by_currency:[{currency_code:"USD",transactions:100,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD"},{currency_code:"COP",transactions:50,amount_local:4e7,amount_usd:10000.5,currency_code_local:"COP"}],by_connection:[{connection_name:"Stripe",transactions:80,amount_local:12e3,amount_usd:12e3,currency_code_local:"USD"},{connection_name:"PayPal",transactions:70,amount_local:13000.5,amount_usd:13000.5,currency_code_local:"USD"}],by_brand:[{brand:"Visa",transactions:90,amount_local:14e3,amount_usd:14e3,currency_code_local:"USD"},{brand:"Mastercard",transactions:60,amount_local:11000.5,amount_usd:11000.5,currency_code_local:"USD"}],by_payment_method:[{payment_method:"CARD",transactions:120,amount_local:2e4,amount_usd:2e4,currency_code_local:"USD"},{payment_method:"BANK_TRANSFER",transactions:30,amount_local:5000.5,amount_usd:5000.5,currency_code_local:"USD"}],total:{transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD"}},da={total:100,page:1,page_size:10,total_pages:10},pa={authorization_code:"AUTH123",card_category:"CREDIT",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",payment_method_category:"CARD",provider_id:"stripe",reconciliation_status:"NOT_RECONCILED",reconciliation_sub_status:"PENDING"},ha={transaction_id:"TXN123",transaction_date:"2025-01-15T10:30:00Z",acquirer:"STRIPE",authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",country:"US",currency:"USD",fee_status:"MATCHED",fee_sub_status:"OK",fee_taxes_diff:0,calculated_fix_costed_fee:.3,calculated_percentage_cost:2.9,percentage_cost:2.9,merchant_order_id:"ORDER123",provider_transaction_id:"PROV123",reconciliation_status:"RECONCILED",reconciliation_sub_status:"OK",type:"PAYMENT"},fa={not_reconciled:{data:[{id:"stripe",transactions:150,amount_local:25000.5,amount_usd:25000.5,currency_code_local:"USD",total_transactions:200},{id:"paypal",transactions:80,amount_local:15e3,amount_usd:15e3,currency_code_local:"USD",total_transactions:120}],total:{transactions:230,amount_local:40000.5,amount_usd:40000.5,currency_code_local:"USD"}},status_conflict:{data:[{id:"stripe",transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}],total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}},amount_conflict:{data:[{id:"paypal",transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}],total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}},ga=la,ma={data:[pa,e.__assign(e.__assign({},pa),{authorization_code:"AUTH456",provider_id:"paypal"})],pagination:da},ya=e.__assign(e.__assign({},la),{total:{transactions:20,amount_local:5e3,amount_usd:5e3,currency_code_local:"USD"}}),va={data:[e.__assign(e.__assign({},pa),{reconciliation_status:"STATUS_CONFLICT"})],pagination:e.__assign(e.__assign({},da),{total:20,total_pages:2})},ba=e.__assign(e.__assign({},la),{total:{transactions:10,amount_local:2500,amount_usd:2500,currency_code_local:"USD"}}),ka={data:[e.__assign(e.__assign({},pa),{reconciliation_status:"AMOUNT_CONFLICT"})],pagination:e.__assign(e.__assign({},da),{total:10,total_pages:1})},_a={data:[{id:"2025-01-10",transactions:30,amount_local:8e3,amount_usd:8e3,currency_code_local:"USD"},{id:"2025-01-11",transactions:25,amount_local:6500,amount_usd:6500,currency_code_local:"USD"}],total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}},wa=e.__assign(e.__assign({},la),{total:{transactions:55,amount_local:14500,amount_usd:14500,currency_code_local:"USD"}}),xa={data:[e.__assign(e.__assign({},pa),{reconciliation_status:"DATE_CONFLICT"})],pagination:e.__assign(e.__assign({},da),{total:55,total_pages:6})},Ea={data:[{id:"stripe",transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}],total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}},Ca=e.__assign(e.__assign({},la),{total:{transactions:15,amount_local:3500,amount_usd:3500,currency_code_local:"USD"}}),Sa={data:[e.__assign(e.__assign({},ha),{fee_status:"MISMATCH"}),e.__assign(e.__assign({},ha),{transaction_id:"TXN456",fee_status:"MISMATCH"})],pagination:e.__assign(e.__assign({},da),{total:15,total_pages:2})},Ra={total_amount_usd:5e3,chart_data:[{date:"2025-01-10",amount_usd:1500},{date:"2025-01-11",amount_usd:1800},{date:"2025-01-12",amount_usd:1700}]},Ia={data:[{id:"stripe",transaction_type:"PURCHASE",transactions:500,amount_local:1e5,amount_usd:1e5,currency_code_local:"USD"},{id:"paypal",transaction_type:"REFUND",transactions:300,amount_local:6e4,amount_usd:6e4,currency_code_local:"USD"}],total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}},Ta=e.__assign(e.__assign({},la),{total:{transactions:800,amount_local:16e4,amount_usd:16e4,currency_code_local:"USD"}}),Aa={data:[ha],pagination:e.__assign(e.__assign({},da),{total:800,total_pages:80})},Oa={data:[{id:"stripe",transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}],total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}},Pa=e.__assign(e.__assign({},la),{total:{transactions:25,amount_local:6e3,amount_usd:6e3,currency_code_local:"USD"}}),Da={data:[e.__assign(e.__assign({},{transaction_id:"TXN123",acquirer:"STRIPE",amount:100,authorization_code:"AUTH123",card_brand:"Visa",card_iin:"411111",card_lfd:"1111",card_type:"CREDIT",confirmation_status:"CONFIRMED",country:"US",created_at:"2025-01-15T10:30:00Z",currency:"USD",merchant_order_id:"ORDER123",merchant_transaction_id:"MERCH123",payment_id:"PAY123",provider_status:"APPROVED",provider_transaction_id:"PROV123",response_code:"00",status:"SUCCEEDED",type:"PAYMENT"}),{confirmation_status:"NOT_CONFIRMED"})],pagination:e.__assign(e.__assign({},da),{total:25,total_pages:3})},La={total_amount_usd:75e3,chart_data:[{date:"2025-01-10",amount_usd:2e4},{date:"2025-01-11",amount_usd:25e3},{date:"2025-01-12",amount_usd:3e4}]},ja="*/reconciliations/insights",za=[Vr.post("".concat(ja,"/conflicts/summary"),function(){return Kr.json(fa)}),Vr.post("".concat(ja,"/not-reconciled/aggregators"),function(){return Kr.json(ga)}),Vr.post("".concat(ja,"/not-reconciled/list"),function(){return Kr.json(ma)}),Vr.post("".concat(ja,"/status-conflict/aggregators"),function(){return Kr.json(ya)}),Vr.post("".concat(ja,"/status-conflict/list"),function(){return Kr.json(va)}),Vr.post("".concat(ja,"/amount-conflict/aggregators"),function(){return Kr.json(ba)}),Vr.post("".concat(ja,"/amount-conflict/list"),function(){return Kr.json(ka)}),Vr.post("".concat(ja,"/conflict-date/summary"),function(){return Kr.json(_a)}),Vr.post("".concat(ja,"/conflict-date/aggregators"),function(){return Kr.json(wa)}),Vr.post("".concat(ja,"/conflict-date/list"),function(){return Kr.json(xa)}),Vr.post("".concat(ja,"/incorrect-fees/summary"),function(){return Kr.json(Ea)}),Vr.post("".concat(ja,"/incorrect-fees/aggregators"),function(){return Kr.json(Ca)}),Vr.post("".concat(ja,"/incorrect-fees/list"),function(){return Kr.json(Sa)}),Vr.post("".concat(ja,"/fees-charged/summary"),function(){return Kr.json(Ra)}),Vr.post("".concat(ja,"/reconciled/summary"),function(){return Kr.json(Ia)}),Vr.post("".concat(ja,"/reconciled/aggregators"),function(){return Kr.json(Ta)}),Vr.post("".concat(ja,"/reconciled/list"),function(){return Kr.json(Aa)}),Vr.post("".concat(ja,"/not-confirm/summary"),function(){return Kr.json(Oa)}),Vr.post("".concat(ja,"/not-confirm/aggregators"),function(){return Kr.json(Pa)}),Vr.post("".concat(ja,"/not-confirm/list"),function(){return Kr.json(Da)}),Vr.post("".concat(ja,"/amount-to-be-settled/summary"),function(){return Kr.json(La)}),Vr.post("".concat(ja,"/reconciliation-rate/summary/by-provider"),function(){return Kr.json({total:{total_transactions:0,transactions_percentage:0},data:[]})}),Vr.post("".concat(ja,"/reconciliation-rate/summary/by-account"),function(){return Kr.json([])}),Vr.post("".concat(ja,"/reconciliation-rate/summary/by-currency"),function(){return Kr.json([])})],Na=[{id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Plan Argentina con CFT y TEA",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]},{id:"",installment:6,rate:1.25,provider_id:"",amount:{currency:"ARS",value:"0",total_value:"0"},type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:45.5},{type:"TEA",rate:180.12}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},availability:{start_at:"2025-01-01T00:00:00Z",finish_at:"2025-12-31T23:59:59Z"},types_list:null,created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-01T16:41:17.428285Z"},{id:"1688",code:"1381d64b-ed14-4739-8f0a-b3adbe5949b0",name:"Plan Colombia sin intereses",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-col-sin-interes",installments_plan:[{id:"",installment:1,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"},{id:"",installment:3,rate:0,provider_id:"",amount:{currency:"COP",value:"0",total_value:"0"},type:"WITHOUT_INTEREST"}],country_code:"CO",amount:{currency:"COP",min_value:"50000",max_value:"10000000"},availability:{},types_list:null,created_at:"2025-08-06T14:33:32.854396Z",updated_at:"2025-08-06T14:33:32.854396Z"}],qa={id:"1689",code:"new-plan-code-uuid",name:"New Test Plan",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"new-plan-ref",installments_plan:[{id:"",installment:3,rate:1.15,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:36.6},{type:"TEA",rate:152}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-10T12:00:00.000000Z",updated_at:"2025-08-10T12:00:00.000000Z"},Ua={id:"1687",code:"f9f87e14-e35f-4be9-b78d-6a7e9903ca30",name:"Updated Plan Name",account_id:["b91b3970-dbf7-4d6a-b34d-96adbf3a0988"],merchant_reference:"plan-arg-cft-tea-001",installments_plan:[{id:"",installment:3,rate:1.2,provider_id:"",type:"WITH_INTEREST",financial_costs:[{type:"CFT",rate:40},{type:"TEA",rate:160}]}],country_code:"AR",amount:{currency:"ARS",min_value:"100",max_value:"100000"},created_at:"2025-08-01T16:41:17.428285Z",updated_at:"2025-08-10T15:00:00.000000Z"},Ma={deleted:!0},Ba=[Vr.get("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return Kr.json(Na)}),Vr.post("https://dev.y.uno/dashboard-bff/api/v1/installments-plans",function(){return Kr.json(qa)}),Vr.patch("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return Kr.json(Ua)}),Vr.delete("https://dev.y.uno/dashboard-bff/api/v1/installments-plans/:code",function(){return Kr.json(Ma)})],Fa={data:[{code:"api-log-001",url:"/api/v1/payments",method:"POST",source:"dashboard",headers:{"Content-Type":"application/json",Authorization:"Bearer token123"},request:{amount:"100.00",currency:"USD"},response:{status:"success",payment_id:"pay_123"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-123-456",created_at:"2024-03-01T10:00:00Z",payment_code:"PAY001",transaction_code:"TXN001"},{code:"api-log-002",url:"/api/v1/payments/PAY001",method:"GET",source:"api",headers:{"Content-Type":"application/json"},request:{},response:{payment_code:"PAY001",amount:"100.00"},account_name:"Test Account",account_code:"ACC001",status_code:200,trace_id:"trace-789-012",created_at:"2024-03-01T10:05:00Z"}],page:1,size:10,total_rows:2,total_pages:1},Ga=[Vr.post("https://dev.y.uno/dashboard-bff/api/v3/api-logs/organization",function(){return Kr.json(Fa)})],Wa={data:[{id:1,organization_code:"ORG001",account_code:"ACC001",type:"payment.succeeded",created_at:"2024-03-01T10:00:00Z",updated_at:"2024-03-01T10:00:00Z",time:250,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.succeeded",payment_code:"PAY001"}),response:JSON.stringify({received:!0}),response_status:200,connect_timeout:5e3,read_timeout:1e4,exception:"",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-001",origin_id:"origin-001",payment_code:"PAY001",transaction_code:"TXN001"},{id:2,organization_code:"ORG001",account_code:"ACC001",type:"payment.failed",created_at:"2024-03-01T10:05:00Z",updated_at:"2024-03-01T10:05:00Z",time:300,http_method:"POST",url:"https://example.com/webhook",request:JSON.stringify({event:"payment.failed",payment_code:"PAY002"}),response:"",response_status:500,connect_timeout:5e3,read_timeout:1e4,exception:"Connection timeout",headers:JSON.stringify({"Content-Type":"application/json"}),trace_id:"trace-webhook-002",origin_id:"origin-002",payment_code:"PAY002"}],page:1,size:10,total_rows:2,total_pages:1},Va=[Vr.post("https://dev.y.uno/dashboard-bff/api/v3/webhooks/timeline",function(){return Kr.json(Wa)})],Ha=e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray([],ta,!0),ca,!0),za,!0),Ba,!0),Ga,!0),Va,!0),Ka=function(...e){return new hr(...e)}.apply(void 0,Ha),$a="MSW_ENABLED";function Qa(e){e?(localStorage.setItem($a,"true"),console.info("MSW enabled. Reload the page to activate the mocks.")):(localStorage.removeItem($a),console.info("MSW disabled. Reload the page to disable the mocks.")),window.location.reload()}function Ya(){return"true"===localStorage.getItem($a)}function Ja(e,t){return function(){return e.apply(t,arguments)}}"undefined"!=typeof window&&(window.enableMSW=function(){return Qa(!0)},window.disableMSW=function(){return Qa(!1)},window.isMSWEnabled=Ya);const{toString:Xa}=Object.prototype,{getPrototypeOf:Za}=Object,{iterator:ei,toStringTag:ti}=Symbol,ni=(oi=Object.create(null),e=>{const t=Xa.call(e);return oi[t]||(oi[t]=t.slice(8,-1).toLowerCase())});var oi;const ri=e=>(e=e.toLowerCase(),t=>ni(t)===e),ai=e=>t=>typeof t===e,{isArray:ii}=Array,si=ai("undefined");function ui(e){return null!==e&&!si(e)&&null!==e.constructor&&!si(e.constructor)&&di(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ci=ri("ArrayBuffer");const li=ai("string"),di=ai("function"),pi=ai("number"),hi=e=>null!==e&&"object"==typeof e,fi=e=>{if("object"!==ni(e))return!1;const t=Za(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ti in e||ei in e)},gi=ri("Date"),mi=ri("File"),yi=ri("Blob"),vi=ri("FileList"),bi=ri("URLSearchParams"),[ki,_i,wi,xi]=["ReadableStream","Request","Response","Headers"].map(ri);function Ei(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),ii(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(ui(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let i;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function Ci(e,t){if(ui(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Si="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ri=e=>!si(e)&&e!==Si;const Ii=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Za(Uint8Array)),Ti=ri("HTMLFormElement"),Ai=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Oi=ri("RegExp"),Pi=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ei(n,(n,r)=>{let a;!1!==(a=t(n,r,e))&&(o[r]=a||n)}),Object.defineProperties(e,o)};const Di=ri("AsyncFunction"),Li=(ji="function"==typeof setImmediate,zi=di(Si.postMessage),ji?setImmediate:zi?(Ni=`axios@${Math.random()}`,qi=[],Si.addEventListener("message",({source:e,data:t})=>{e===Si&&t===Ni&&qi.length&&qi.shift()()},!1),e=>{qi.push(e),Si.postMessage(Ni,"*")}):e=>setTimeout(e));var ji,zi,Ni,qi;const Ui="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Si):"undefined"!=typeof process&&process.nextTick||Li;var Mi={isArray:ii,isArrayBuffer:ci,isBuffer:ui,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||di(e.append)&&("formdata"===(t=ni(e))||"object"===t&&di(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ci(e.buffer),t},isString:li,isNumber:pi,isBoolean:e=>!0===e||!1===e,isObject:hi,isPlainObject:fi,isEmptyObject:e=>{if(!hi(e)||ui(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ki,isRequest:_i,isResponse:wi,isHeaders:xi,isUndefined:si,isDate:gi,isFile:mi,isBlob:yi,isRegExp:Oi,isFunction:di,isStream:e=>hi(e)&&di(e.pipe),isURLSearchParams:bi,isTypedArray:Ii,isFileList:vi,forEach:Ei,merge:function e(){const{caseless:t,skipUndefined:n}=Ri(this)&&this||{},o={},r=(r,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=t&&Ci(o,a)||a;fi(o[i])&&fi(r)?o[i]=e(o[i],r):fi(r)?o[i]=e({},r):ii(r)?o[i]=r.slice():n&&si(r)||(o[i]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ei(arguments[e],r);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(Ei(t,(t,o)=>{n&&di(t)?Object.defineProperty(e,o,{value:Ja(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,a,i;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)i=r[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Za(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ni,kindOfTest:ri,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(ii(e))return e;let t=e.length;if(!pi(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ei]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:Ti,hasOwnProperty:Ai,hasOwnProp:Ai,reduceDescriptors:Pi,freezeMethods:e=>{Pi(e,(t,n)=>{if(di(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];di(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach(e=>{n[e]=!0})};return ii(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ci,global:Si,isContextDefined:Ri,isSpecCompliantForm:function(e){return!!(e&&di(e.append)&&"FormData"===e[ti]&&e[ei])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(hi(e)){if(t.indexOf(e)>=0)return;if(ui(e))return e;if(!("toJSON"in e)){t[o]=e;const r=ii(e)?[]:{};return Ei(e,(e,t)=>{const a=n(e,o+1);!si(a)&&(r[t]=a)}),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:Di,isThenable:e=>e&&(hi(e)||di(e))&&di(e.then)&&di(e.catch),setImmediate:Li,asap:Ui,isIterable:e=>null!=e&&di(e[ei])};class Bi extends Error{static from(e,t,n,o,r,a){const i=new Bi(e.message,t||e.code,n,o,r);return i.cause=e,i.name=e.name,a&&Object.assign(i,a),i}constructor(e,t,n,o,r){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Mi.toJSONObject(this.config),code:this.code,status:this.status}}}Bi.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Bi.ERR_BAD_OPTION="ERR_BAD_OPTION",Bi.ECONNABORTED="ECONNABORTED",Bi.ETIMEDOUT="ETIMEDOUT",Bi.ERR_NETWORK="ERR_NETWORK",Bi.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Bi.ERR_DEPRECATED="ERR_DEPRECATED",Bi.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Bi.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Bi.ERR_CANCELED="ERR_CANCELED",Bi.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Bi.ERR_INVALID_URL="ERR_INVALID_URL";var Fi=Bi;function Gi(e){return Mi.isPlainObject(e)||Mi.isArray(e)}function Wi(e){return Mi.endsWith(e,"[]")?e.slice(0,-2):e}function Vi(e,t,n){return e?e.concat(t).map(function(e,t){return e=Wi(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Hi=Mi.toFlatObject(Mi,{},null,function(e){return/^is[A-Z]/.test(e)});function Ki(e,t,n){if(!Mi.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=Mi.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Mi.isUndefined(t[e])})).metaTokens,r=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Mi.isSpecCompliantForm(t);if(!Mi.isFunction(r))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Mi.isDate(e))return e.toISOString();if(Mi.isBoolean(e))return e.toString();if(!s&&Mi.isBlob(e))throw new Fi("Blob is not supported. Use a Buffer instead.");return Mi.isArrayBuffer(e)||Mi.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(Mi.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Mi.isArray(e)&&function(e){return Mi.isArray(e)&&!e.some(Gi)}(e)||(Mi.isFileList(e)||Mi.endsWith(n,"[]"))&&(s=Mi.toArray(e)))return n=Wi(n),s.forEach(function(e,o){!Mi.isUndefined(e)&&null!==e&&t.append(!0===i?Vi([n],o,a):null===i?n:n+"[]",u(e))}),!1;return!!Gi(e)||(t.append(Vi(r,n,a),u(e)),!1)}const l=[],d=Object.assign(Hi,{defaultVisitor:c,convertValue:u,isVisitable:Gi});if(!Mi.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!Mi.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),Mi.forEach(n,function(n,a){!0===(!(Mi.isUndefined(n)||null===n)&&r.call(t,n,Mi.isString(a)?a.trim():a,o,d))&&e(n,o?o.concat(a):[a])}),l.pop()}}(e),t}function $i(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Qi(e,t){this._pairs=[],e&&Ki(e,this,t)}const Yi=Qi.prototype;function Ji(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xi(e,t,n){if(!t)return e;const o=n&&n.encode||Ji,r=Mi.isFunction(n)?{serialize:n}:n,a=r&&r.serialize;let i;if(i=a?a(t,r):Mi.isURLSearchParams(t)?t.toString():new Qi(t,r).toString(o),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Yi.append=function(e,t){this._pairs.push([e,t])},Yi.toString=function(e){const t=e?function(t){return e.call(this,t,$i)}:$i;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Zi=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){Mi.forEach(this.handlers,function(t){null!==t&&e(t)})}},es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ts={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Qi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ns="undefined"!=typeof window&&"undefined"!=typeof document,os="object"==typeof navigator&&navigator||void 0,rs=ns&&(!os||["ReactNative","NativeScript","NS"].indexOf(os.product)<0),as="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,is=ns&&window.location.href||"http://localhost";var ss={...Object.freeze({__proto__:null,hasBrowserEnv:ns,hasStandardBrowserEnv:rs,hasStandardBrowserWebWorkerEnv:as,navigator:os,origin:is}),...ts};function us(e){function t(e,n,o,r){let a=e[r++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=r>=e.length;if(a=!a&&Mi.isArray(o)?o.length:a,s)return Mi.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!i;o[a]&&Mi.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&Mi.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o<r;o++)a=n[o],t[a]=e[a];return t}(o[a])),!i}if(Mi.isFormData(e)&&Mi.isFunction(e.entries)){const n={};return Mi.forEachEntry(e,(e,o)=>{t(function(e){return Mi.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const cs={transitional:es,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=Mi.isObject(e);r&&Mi.isHTMLForm(e)&&(e=new FormData(e));if(Mi.isFormData(e))return o?JSON.stringify(us(e)):e;if(Mi.isArrayBuffer(e)||Mi.isBuffer(e)||Mi.isStream(e)||Mi.isFile(e)||Mi.isBlob(e)||Mi.isReadableStream(e))return e;if(Mi.isArrayBufferView(e))return e.buffer;if(Mi.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ki(e,new ss.classes.URLSearchParams,{visitor:function(e,t,n,o){return ss.isNode&&Mi.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=Mi.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ki(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(Mi.isString(e))try{return(t||JSON.parse)(e),Mi.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||cs.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Mi.isResponse(e)||Mi.isReadableStream(e))return e;if(e&&Mi.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 Fi.from(e,Fi.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:ss.classes.FormData,Blob:ss.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Mi.forEach(["delete","get","head","post","put","patch"],e=>{cs.headers[e]={}});var ls=cs;const ds=Mi.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 ps=Symbol("internals");function hs(e){return e&&String(e).trim().toLowerCase()}function fs(e){return!1===e||null==e?e:Mi.isArray(e)?e.map(fs):String(e)}function gs(e,t,n,o,r){return Mi.isFunction(o)?o.call(this,t,n):(r&&(t=n),Mi.isString(t)?Mi.isString(o)?-1!==t.indexOf(o):Mi.isRegExp(o)?o.test(t):void 0:void 0)}class ms{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=hs(t);if(!r)throw new Error("header name must be a non-empty string");const a=Mi.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=fs(e))}const a=(e,t)=>Mi.forEach(e,(e,n)=>r(e,n,t));if(Mi.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Mi.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&ds[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(Mi.isObject(e)&&Mi.isIterable(e)){let n,o,r={};for(const t of e){if(!Mi.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?Mi.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=hs(e)){const n=Mi.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(Mi.isFunction(t))return t.call(this,e,n);if(Mi.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=hs(e)){const n=Mi.findKey(this,e);return!(!n||void 0===this[n]||t&&!gs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=hs(e)){const r=Mi.findKey(n,e);!r||t&&!gs(0,n[r],r,t)||(delete n[r],o=!0)}}return Mi.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!gs(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return Mi.forEach(this,(o,r)=>{const a=Mi.findKey(n,r);if(a)return t[a]=fs(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();i!==r&&delete t[r],t[i]=fs(o),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Mi.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Mi.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[ps]=this[ps]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=hs(e);t[o]||(!function(e,t){const n=Mi.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[o]=!0)}return Mi.isArray(e)?e.forEach(o):o(e),this}}ms.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Mi.reduceDescriptors(ms.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Mi.freezeMethods(ms);var ys=ms;function vs(e,t){const n=this||ls,o=t||n,r=ys.from(o.headers);let a=o.data;return Mi.forEach(e,function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function bs(e){return!(!e||!e.__CANCEL__)}var ks=class extends Fi{constructor(e,t,n){super(null==e?"canceled":e,Fi.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function _s(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Fi("Request failed with status code "+n.status,[Fi.ERR_BAD_REQUEST,Fi.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ws=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=o[i];r||(r=u),n[a]=s,o[a]=u;let l=i,d=0;for(;l!==a;)d+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-r<t)return;const p=c&&u-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,o,r=0,a=1e3/t;const i=(t,a=Date.now())=>{r=a,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=a?i(e,t):(n=e,o||(o=setTimeout(()=>{o=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-o,u=r(s);o=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&a<=i?(i-a)/u:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},xs=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Es=e=>(...t)=>Mi.asap(()=>e(...t));var Cs=ss.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ss.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ss.origin),ss.navigator&&/(msie|trident)/i.test(ss.navigator.userAgent)):()=>!0,Ss=ss.hasStandardBrowserEnv?{write(e,t,n,o,r,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Mi.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Mi.isString(o)&&s.push(`path=${o}`),Mi.isString(r)&&s.push(`domain=${r}`),!0===a&&s.push("secure"),Mi.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Rs(e,t,n){let o=!("string"==typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));var r;return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Is=e=>e instanceof ys?{...e}:e;function Ts(e,t){t=t||{};const n={};function o(e,t,n,o){return Mi.isPlainObject(e)&&Mi.isPlainObject(t)?Mi.merge.call({caseless:o},e,t):Mi.isPlainObject(t)?Mi.merge({},t):Mi.isArray(t)?t.slice():t}function r(e,t,n,r){return Mi.isUndefined(t)?Mi.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function a(e,t){if(!Mi.isUndefined(t))return o(void 0,t)}function i(e,t){return Mi.isUndefined(t)?Mi.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>r(Is(e),Is(t),0,!0)};return Mi.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;const a=Mi.hasOwnProp(u,o)?u[o]:r,i=a(e[o],t[o],o);Mi.isUndefined(i)&&a!==s||(n[o]=i)}),n}var As=e=>{const t=Ts({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=ys.from(i),t.url=Xi(Rs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Mi.isFormData(n))if(ss.hasStandardBrowserEnv||ss.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Mi.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(ss.hasStandardBrowserEnv&&(o&&Mi.isFunction(o)&&(o=o(t)),o||!1!==o&&Cs(t.url))){const e=r&&a&&Ss.read(a);e&&i.set(r,e)}return t};var Os="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=As(e);let r=o.data;const a=ys.from(o.headers).normalize();let i,s,u,c,l,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=o;function f(){c&&c(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function m(){if(!g)return;const o=ys.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());_s(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:e,request:g}),g=null}g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Fi("Request aborted",Fi.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const o=t&&t.message?t.message:"Network Error",r=new Fi(o,Fi.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||es;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Fi(t,r.clarifyTimeoutError?Fi.ETIMEDOUT:Fi.ECONNABORTED,e,g)),g=null},void 0===r&&a.setContentType(null),"setRequestHeader"in g&&Mi.forEach(a.toJSON(),function(e,t){g.setRequestHeader(t,e)}),Mi.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),d&&"json"!==d&&(g.responseType=o.responseType),h&&([u,l]=ws(h,!0),g.addEventListener("progress",u)),p&&g.upload&&([s,c]=ws(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===ss.protocols.indexOf(y)?n(new Fi("Unsupported protocol "+y+":",Fi.ERR_BAD_REQUEST,e)):g.send(r||null)})};var Ps=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Fi?t:new ks(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,r(new Fi(`timeout of ${t}ms exceeded`,Fi.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:s}=o;return s.unsubscribe=()=>Mi.asap(i),s}};const Ds=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Ls=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()}},js=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of Ls(e))yield*Ds(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return s(),void e.close();let a=o.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:zs}=Mi,Ns=(({Request:e,Response:t})=>({Request:e,Response:t}))(Mi.global),{ReadableStream:qs,TextEncoder:Us}=Mi.global,Ms=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Bs=e=>{e=Mi.merge.call({skipUndefined:!0},Ns,e);const{fetch:t,Request:n,Response:o}=e,r=t?zs(t):"function"==typeof fetch,a=zs(n),i=zs(o);if(!r)return!1;const s=r&&zs(qs),u=r&&("function"==typeof Us?(e=>t=>e.encode(t))(new Us):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&s&&Ms(()=>{let e=!1;const t=new n(ss.origin,{body:new qs,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=i&&s&&Ms(()=>Mi.isReadableStream(new o("").body)),d={stream:l&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new Fi(`Response type '${e}' is not supported`,Fi.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const o=Mi.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(Mi.isBlob(e))return e.size;if(Mi.isSpecCompliantForm(e)){const t=new n(ss.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Mi.isArrayBufferView(e)||Mi.isArrayBuffer(e)?e.byteLength:(Mi.isURLSearchParams(e)&&(e+=""),Mi.isString(e)?(await u(e)).byteLength:void 0)})(t):o};return async e=>{let{url:r,method:i,data:s,signal:u,cancelToken:h,timeout:f,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=As(e),_=t||fetch;y=y?(y+"").toLowerCase():"text";let w=Ps([u,h&&h.toAbortSignal()],f),x=null;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(m&&c&&"get"!==i&&"head"!==i&&0!==(C=await p(v,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(Mi.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=xs(C,ws(Es(m)));s=js(t.body,65536,e,n)}}Mi.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,u={...k,signal:w,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};x=a&&new n(r,u);let h=await(a?_(x,k):_(r,u));const f=l&&("stream"===y||"response"===y);if(l&&(g||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=Mi.toFiniteNumber(h.headers.get("content-length")),[n,r]=g&&xs(t,ws(Es(g),!0))||[];h=new o(js(h.body,65536,n,()=>{r&&r(),E&&E()}),e)}y=y||"text";let S=await d[Mi.findKey(d,y)||"text"](h,e);return!f&&E&&E(),await new Promise((t,n)=>{_s(t,n,{data:S,headers:ys.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:x})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Fi("Network Error",Fi.ERR_NETWORK,e,x,t&&t.response),{cause:t.cause||t});throw Fi.from(t,t&&t.code,e,x,t&&t.response)}}},Fs=new Map,Gs=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t,a=[o,r,n];let i,s,u=a.length,c=Fs;for(;u--;)i=a[u],s=c.get(i),void 0===s&&c.set(i,s=u?new Map:Bs(t)),c=s;return s};Gs();const Ws={http:null,xhr:Os,fetch:{get:Gs}};Mi.forEach(Ws,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Vs=e=>`- ${e}`,Hs=e=>Mi.isFunction(e)||null===e||!1===e;var Ks={getAdapter:function(e,t){e=Mi.isArray(e)?e:[e];const{length:n}=e;let o,r;const a={};for(let i=0;i<n;i++){let n;if(o=e[i],r=o,!Hs(o)&&(r=Ws[(n=String(o)).toLowerCase()],void 0===r))throw new Fi(`Unknown adapter '${n}'`);if(r&&(Mi.isFunction(r)||(r=r.get(t))))break;a[n||"#"+i]=r}if(!r){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Vs).join("\n"):" "+Vs(e[0]):"as no adapter specified";throw new Fi("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:Ws};function $s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Qs(e){$s(e),e.headers=ys.from(e.headers),e.data=vs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ks.getAdapter(e.adapter||ls.adapter,e)(e).then(function(t){return $s(e),t.data=vs.call(e,e.transformResponse,t),t.headers=ys.from(t.headers),t},function(t){return bs(t)||($s(e),t&&t.response&&(t.response.data=vs.call(e,e.transformResponse,t.response),t.response.headers=ys.from(t.response.headers))),Promise.reject(t)})}const Ys="1.13.5",Js={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Js[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Xs={};Js.transitional=function(e,t,n){function o(e,t){return"[Axios v"+Ys+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new Fi(o(r," has been removed"+(t?" in "+t:"")),Fi.ERR_DEPRECATED);return t&&!Xs[r]&&(Xs[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},Js.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Zs={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Fi("options must be an object",Fi.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new Fi("option "+a+" must be "+n,Fi.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Fi("Unknown option "+a,Fi.ERR_BAD_OPTION)}},validators:Js};const eu=Zs.validators;let tu=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zi,response:new Zi}}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=Ts(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&Zs.assertOptions(n,{silentJSONParsing:eu.transitional(eu.boolean),forcedJSONParsing:eu.transitional(eu.boolean),clarifyTimeoutError:eu.transitional(eu.boolean),legacyInterceptorReqResOrdering:eu.transitional(eu.boolean)},!1),null!=o&&(Mi.isFunction(o)?t.paramsSerializer={serialize:o}:Zs.assertOptions(o,{encode:eu.function,serialize:eu.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Zs.assertOptions(t,{baseUrl:eu.spelling("baseURL"),withXsrfToken:eu.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&Mi.merge(r.common,r[t.method]);r&&Mi.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=ys.concat(a,r);const i=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||es;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const u=[];let c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[Qs.bind(this),void 0];for(e.unshift(...i),e.push(...u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}l=i.length;let p=t;for(;d<l;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Qs.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return Xi(Rs((e=Ts(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Mi.forEach(["delete","get","head","options"],function(e){tu.prototype[e]=function(t,n){return this.request(Ts(n||{},{method:e,url:t,data:(n||{}).data}))}}),Mi.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,r){return this.request(Ts(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}tu.prototype[e]=t(),tu.prototype[e+"Form"]=t(!0)});var nu=tu;class ou{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,r){n.reason||(n.reason=new ks(e,o,r),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 ou(function(t){e=t}),cancel:e}}}var ru=ou;const au={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(au).forEach(([e,t])=>{au[t]=e});var iu=au;const su=function e(t){const n=new nu(t),o=Ja(nu.prototype.request,n);return Mi.extend(o,nu.prototype,n,{allOwnKeys:!0}),Mi.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ts(t,n))},o}(ls);su.Axios=nu,su.CanceledError=ks,su.CancelToken=ru,su.isCancel=bs,su.VERSION=Ys,su.toFormData=Ki,su.AxiosError=Fi,su.Cancel=su.CanceledError,su.all=function(e){return Promise.all(e)},su.spread=function(e){return function(t){return e.apply(null,t)}},su.isAxiosError=function(e){return Mi.isObject(e)&&!0===e.isAxiosError},su.mergeConfig=Ts,su.AxiosHeaders=ys,su.formToJSON=e=>us(Mi.isHTMLForm(e)?new FormData(e):e),su.getAdapter=Ks.getAdapter,su.HttpStatusCode=iu,su.default=su;var uu=su,cu=function(e){var t=[];return Object.entries(e).forEach(function(e){var n=e[0],o=e[1];if(Array.isArray(o)){var r=o.join(",");t.push("".concat(encodeURIComponent(n),"=").concat(r))}else null!=o&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(o))))}),t.join("&")},lu=function(t){function n(n){var o,r,a,i,s=this;return(s=t.call(this,n)||this).token="",null===(r=null===(o=s.instance)||void 0===o?void 0:o.interceptors)||void 0===r||r.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===(i=null===(a=s.instance)||void 0===a?void 0:a.interceptors)||void 0===i||i.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=uu.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=uu.create(e)}),du="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pu(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var hu=TypeError,fu=pu(Object.freeze({__proto__:null,default:{}})),gu="function"==typeof Map&&Map.prototype,mu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,yu=gu&&mu&&"function"==typeof mu.get?mu.get:null,vu=gu&&Map.prototype.forEach,bu="function"==typeof Set&&Set.prototype,ku=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_u=bu&&ku&&"function"==typeof ku.get?ku.get:null,wu=bu&&Set.prototype.forEach,xu="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Eu="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Cu="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Su=Boolean.prototype.valueOf,Ru=Object.prototype.toString,Iu=Function.prototype.toString,Tu=String.prototype.match,Au=String.prototype.slice,Ou=String.prototype.replace,Pu=String.prototype.toUpperCase,Du=String.prototype.toLowerCase,Lu=RegExp.prototype.test,ju=Array.prototype.concat,zu=Array.prototype.join,Nu=Array.prototype.slice,qu=Math.floor,Uu="function"==typeof BigInt?BigInt.prototype.valueOf:null,Mu=Object.getOwnPropertySymbols,Bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Fu="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Gu="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fu||"symbol")?Symbol.toStringTag:null,Wu=Object.prototype.propertyIsEnumerable,Vu=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Hu(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Lu.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-qu(-e):qu(e);if(o!==e){var r=String(o),a=Au.call(t,r.length+1);return Ou.call(r,n,"$&_")+"."+Ou.call(Ou.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ou.call(t,n,"$&_")}var Ku=fu,$u=Ku.custom,Qu=rc($u)?$u:null,Yu={__proto__:null,double:'"',single:"'"},Ju={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Xu=function e(t,n,o,r){var a=n||{};if(ic(a,"quoteStyle")&&!ic(Yu,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ic(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!ic(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ic(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ic(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.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 cc(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return s?Hu(t,u):u}if("bigint"==typeof t){var c=String(t)+"n";return s?Hu(t,c):c}var l=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof t)return nc(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=zu.call(Array(e.indent+1)," ")}return{base:n,prev:zu.call(Array(t+1),n)}}(a,o);if(void 0===r)r=[];else if(uc(r,t)>=0)return"[Circular]";function p(t,n,i){if(n&&(r=Nu.call(r)).push(n),i){var s={depth:a.depth};return ic(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,r)}return e(t,a,o+1,r)}if("function"==typeof t&&!oc(t)){var h=function(e){if(e.name)return e.name;var t=Tu.call(Iu.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=gc(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+zu.call(f,", ")+" }":"")}if(rc(t)){var g=Fu?Ou.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Bu.call(t);return"object"!=typeof t||Fu?g:dc(g)}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 m="<"+Du.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)m+=" "+y[v].name+"="+Zu(ec(y[v].value),"double",a);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+Du.call(String(t.nodeName))+">"}if(nc(t)){if(0===t.length)return"[]";var b=gc(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(uc(e[t],"\n")>=0)return!1;return!0}(b)?"["+fc(b,d)+"]":"[ "+zu.call(b,", ")+" ]"}if(function(e){return"[object Error]"===sc(e)&&tc(e)}(t)){var k=gc(t,p);return"cause"in Error.prototype||!("cause"in t)||Wu.call(t,"cause")?0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+zu.call(k,", ")+" }":"{ ["+String(t)+"] "+zu.call(ju.call("[cause]: "+p(t.cause),k),", ")+" }"}if("object"==typeof t&&i){if(Qu&&"function"==typeof t[Qu]&&Ku)return Ku(t,{depth:l-o});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!yu||!e||"object"!=typeof e)return!1;try{yu.call(e);try{_u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var _=[];return vu&&vu.call(t,function(e,n){_.push(p(n,t,!0)+" => "+p(e,t))}),hc("Map",yu.call(t),_,d)}if(function(e){if(!_u||!e||"object"!=typeof e)return!1;try{_u.call(e);try{yu.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var w=[];return wu&&wu.call(t,function(e){w.push(p(e,t))}),hc("Set",_u.call(t),w,d)}if(function(e){if(!xu||!e||"object"!=typeof e)return!1;try{xu.call(e,xu);try{Eu.call(e,Eu)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return pc("WeakMap");if(function(e){if(!Eu||!e||"object"!=typeof e)return!1;try{Eu.call(e,Eu);try{xu.call(e,xu)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return pc("WeakSet");if(function(e){if(!Cu||!e||"object"!=typeof e)return!1;try{return Cu.call(e),!0}catch(e){}return!1}(t))return pc("WeakRef");if(function(e){return"[object Number]"===sc(e)&&tc(e)}(t))return dc(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Uu)return!1;try{return Uu.call(e),!0}catch(e){}return!1}(t))return dc(p(Uu.call(t)));if(function(e){return"[object Boolean]"===sc(e)&&tc(e)}(t))return dc(Su.call(t));if(function(e){return"[object String]"===sc(e)&&tc(e)}(t))return dc(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==du&&t===du)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===sc(e)&&tc(e)}(t)&&!oc(t)){var x=gc(t,p),E=Vu?Vu(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",S=!E&&Gu&&Object(t)===t&&Gu in t?Au.call(sc(t),8,-1):C?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||C?"["+zu.call(ju.call([],S||[],C||[]),": ")+"] ":"");return 0===x.length?R+"{}":d?R+"{"+fc(x,d)+"}":R+"{ "+zu.call(x,", ")+" }"}return String(t)};function Zu(e,t,n){var o=n.quoteStyle||t,r=Yu[o];return r+e+r}function ec(e){return Ou.call(String(e),/"/g,""")}function tc(e){return!Gu||!("object"==typeof e&&(Gu in e||void 0!==e[Gu]))}function nc(e){return"[object Array]"===sc(e)&&tc(e)}function oc(e){return"[object RegExp]"===sc(e)&&tc(e)}function rc(e){if(Fu)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Bu)return!1;try{return Bu.call(e),!0}catch(e){}return!1}var ac=Object.prototype.hasOwnProperty||function(e){return e in this};function ic(e,t){return ac.call(e,t)}function sc(e){return Ru.call(e)}function uc(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 cc(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return cc(Au.call(e,0,t.maxStringLength),t)+o}var r=Ju[t.quoteStyle||"single"];return r.lastIndex=0,Zu(Ou.call(Ou.call(e,r,"\\$1"),/[\x00-\x1f]/g,lc),"single",t)}function lc(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":"")+Pu.call(t.toString(16))}function dc(e){return"Object("+e+")"}function pc(e){return e+" { ? }"}function hc(e,t,n,o){return e+" ("+t+") {"+(o?fc(n,o):zu.call(n,", "))+"}"}function fc(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+zu.call(e,","+n)+"\n"+t.prev}function gc(e,t){var n=nc(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=ic(e,r)?t(e[r],e):""}var a,i="function"==typeof Mu?Mu(e):[];if(Fu){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var u in e)ic(e,u)&&(n&&String(Number(u))===u&&u<e.length||Fu&&a["$"+u]instanceof Symbol||(Lu.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e))));if("function"==typeof Mu)for(var c=0;c<i.length;c++)Wu.call(e,i[c])&&o.push("["+t(i[c])+"]: "+t(e[i[c]],e));return o}var mc=Xu,yc=hu,vc=function(e,t,n){for(var o,r=e;null!=(o=r.next);r=o)if(o.key===t)return r.next=o.next,n||(o.next=e.next,e.next=o),o},bc=Object,kc=Error,_c=EvalError,wc=RangeError,xc=ReferenceError,Ec=SyntaxError,Cc=URIError,Sc=Math.abs,Rc=Math.floor,Ic=Math.max,Tc=Math.min,Ac=Math.pow,Oc=Math.round,Pc=Number.isNaN||function(e){return e!=e},Dc=Object.getOwnPropertyDescriptor;if(Dc)try{Dc([],"length")}catch(e){Dc=null}var Lc=Dc,jc=Object.defineProperty||!1;if(jc)try{jc({},"a",{value:1})}catch(e){jc=!1}var zc,Nc,qc,Uc,Mc,Bc,Fc,Gc,Wc,Vc,Hc,Kc,$c,Qc,Yc,Jc,Xc=jc;function Zc(){return Bc?Mc:(Bc=1,Mc="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function el(){return Gc?Fc:(Gc=1,Fc=bc.getPrototypeOf||null)}function tl(){if(Vc)return Wc;Vc=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 r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return Wc=function(o){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var a,i=function(e,t){for(var n=[],o=t||0,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments,1),s=t(0,r.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(a=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}(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=r.apply(this,n(i,arguments));return Object(e)===e?e:this}return r.apply(o,n(i,arguments))}),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},Wc}function nl(){if(Kc)return Hc;Kc=1;var e=tl();return Hc=Function.prototype.bind||e}function ol(){return Qc?$c:(Qc=1,$c=Function.prototype.call)}function rl(){return Jc?Yc:(Jc=1,Yc=Function.prototype.apply)}var al,il,sl,ul,cl,ll,dl,pl="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,hl=nl(),fl=rl(),gl=ol(),ml=pl||hl.call(gl,fl),yl=nl(),vl=hu,bl=ol(),kl=ml,_l=function(e){if(e.length<1||"function"!=typeof e[0])throw new vl("a function is required");return kl(yl,bl,e)};var wl=bc,xl=kc,El=_c,Cl=wc,Sl=xc,Rl=Ec,Il=hu,Tl=Cc,Al=Sc,Ol=Rc,Pl=Ic,Dl=Tc,Ll=Ac,jl=Oc,zl=function(e){return Pc(e)||0===e?e:e<0?-1:1},Nl=Function,ql=function(e){try{return Nl('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ul=Lc,Ml=Xc,Bl=function(){throw new Il},Fl=Ul?function(){try{return Bl}catch(e){try{return Ul(arguments,"callee").get}catch(e){return Bl}}}():Bl,Gl=function(){if(Uc)return qc;Uc=1;var e="undefined"!=typeof Symbol&&Symbol,t=Nc?zc:(Nc=1,zc=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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0});return qc=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Wl=function(){if(ul)return sl;ul=1;var e=Zc(),t=el(),n=function(){if(il)return al;il=1;var e,t=_l,n=Lc;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__"),r=Object,a=r.getPrototypeOf;return al=o&&"function"==typeof o.get?t([o.get]):"function"==typeof a&&function(e){return a(null==e?e:r(e))}}();return sl=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}(),Vl=el(),Hl=Zc(),Kl=rl(),$l=ol(),Ql={},Yl="undefined"!=typeof Uint8Array&&Wl?Wl(Uint8Array):dl,Jl={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?dl:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?dl:ArrayBuffer,"%ArrayIteratorPrototype%":Gl&&Wl?Wl([][Symbol.iterator]()):dl,"%AsyncFromSyncIteratorPrototype%":dl,"%AsyncFunction%":Ql,"%AsyncGenerator%":Ql,"%AsyncGeneratorFunction%":Ql,"%AsyncIteratorPrototype%":Ql,"%Atomics%":"undefined"==typeof Atomics?dl:Atomics,"%BigInt%":"undefined"==typeof BigInt?dl:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?dl:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?dl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?dl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":xl,"%eval%":eval,"%EvalError%":El,"%Float16Array%":"undefined"==typeof Float16Array?dl:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?dl:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?dl:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?dl:FinalizationRegistry,"%Function%":Nl,"%GeneratorFunction%":Ql,"%Int8Array%":"undefined"==typeof Int8Array?dl:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?dl:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?dl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gl&&Wl?Wl(Wl([][Symbol.iterator]())):dl,"%JSON%":"object"==typeof JSON?JSON:dl,"%Map%":"undefined"==typeof Map?dl:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Gl&&Wl?Wl((new Map)[Symbol.iterator]()):dl,"%Math%":Math,"%Number%":Number,"%Object%":wl,"%Object.getOwnPropertyDescriptor%":Ul,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?dl:Promise,"%Proxy%":"undefined"==typeof Proxy?dl:Proxy,"%RangeError%":Cl,"%ReferenceError%":Sl,"%Reflect%":"undefined"==typeof Reflect?dl:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?dl:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Gl&&Wl?Wl((new Set)[Symbol.iterator]()):dl,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?dl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gl&&Wl?Wl(""[Symbol.iterator]()):dl,"%Symbol%":Gl?Symbol:dl,"%SyntaxError%":Rl,"%ThrowTypeError%":Fl,"%TypedArray%":Yl,"%TypeError%":Il,"%Uint8Array%":"undefined"==typeof Uint8Array?dl:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?dl:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?dl:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?dl:Uint32Array,"%URIError%":Tl,"%WeakMap%":"undefined"==typeof WeakMap?dl:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?dl:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?dl:WeakSet,"%Function.prototype.call%":$l,"%Function.prototype.apply%":Kl,"%Object.defineProperty%":Ml,"%Object.getPrototypeOf%":Vl,"%Math.abs%":Al,"%Math.floor%":Ol,"%Math.max%":Pl,"%Math.min%":Dl,"%Math.pow%":Ll,"%Math.round%":jl,"%Math.sign%":zl,"%Reflect.getPrototypeOf%":Hl};if(Wl)try{null.error}catch(e){var Xl=Wl(Wl(e));Jl["%Error.prototype%"]=Xl}var Zl,ed,td,nd,od,rd,ad,id,sd,ud,cd,ld,dd,pd,hd,fd,gd,md,yd,vd,bd,kd,_d,wd,xd,Ed,Cd=function e(t){var n;if("%AsyncFunction%"===t)n=ql("async function () {}");else if("%GeneratorFunction%"===t)n=ql("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=ql("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&Wl&&(n=Wl(r.prototype))}return Jl[t]=n,n},Sd={__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"]},Rd=nl(),Id=function(){if(ll)return cl;ll=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=nl();return cl=n.call(e,t)}(),Td=Rd.call($l,Array.prototype.concat),Ad=Rd.call(Kl,Array.prototype.splice),Od=Rd.call($l,String.prototype.replace),Pd=Rd.call($l,String.prototype.slice),Dd=Rd.call($l,RegExp.prototype.exec),Ld=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,jd=/\\(\\)?/g,zd=function(e,t){var n,o=e;if(Id(Sd,o)&&(o="%"+(n=Sd[o])[0]+"%"),Id(Jl,o)){var r=Jl[o];if(r===Ql&&(r=Cd(o)),void 0===r&&!t)throw new Il("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new Rl("intrinsic "+e+" does not exist!")},Nd=function(e,t){if("string"!=typeof e||0===e.length)throw new Il("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Il('"allowMissing" argument must be a boolean');if(null===Dd(/^%?[^%]*%?$/,e))throw new Rl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=Pd(e,0,1),n=Pd(e,-1);if("%"===t&&"%"!==n)throw new Rl("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Rl("invalid intrinsic syntax, expected opening `%`");var o=[];return Od(e,Ld,function(e,t,n,r){o[o.length]=n?Od(r,jd,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",r=zd("%"+o+"%",t),a=r.name,i=r.value,s=!1,u=r.alias;u&&(o=u[0],Ad(n,Td([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var d=n[c],p=Pd(d,0,1),h=Pd(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new Rl("property names with quotes must have matching quotes");if("constructor"!==d&&l||(s=!0),Id(Jl,a="%"+(o+="."+d)+"%"))i=Jl[a];else if(null!=i){if(!(d in i)){if(!t)throw new Il("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ul&&c+1>=n.length){var f=Ul(i,d);i=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:i[d]}else l=Id(i,d),i=i[d];l&&!s&&(Jl[a]=i)}}return i},qd=Nd,Ud=_l,Md=Ud([qd("%String.prototype.indexOf%")]),Bd=function(e,t){var n=qd(e,!!t);return"function"==typeof n&&Md(e,".prototype.")>-1?Ud([n]):n},Fd=Bd,Gd=Xu,Wd=hu,Vd=Nd("%Map%",!0),Hd=Fd("Map.prototype.get",!0),Kd=Fd("Map.prototype.set",!0),$d=Fd("Map.prototype.has",!0),Qd=Fd("Map.prototype.delete",!0),Yd=Fd("Map.prototype.size",!0),Jd=!!Vd&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Wd("Side channel does not contain "+Gd(e))},delete:function(t){if(e){var n=Qd(e,t);return 0===Yd(e)&&(e=void 0),n}return!1},get:function(t){if(e)return Hd(e,t)},has:function(t){return!!e&&$d(e,t)},set:function(t,n){e||(e=new Vd),Kd(e,t,n)}};return t},Xd=Bd,Zd=Xu,ep=Jd,tp=hu,np=Nd("%WeakMap%",!0),op=Xd("WeakMap.prototype.get",!0),rp=Xd("WeakMap.prototype.set",!0),ap=Xd("WeakMap.prototype.has",!0),ip=Xd("WeakMap.prototype.delete",!0),sp=hu,up=Xu,cp=(np?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new tp("Side channel does not contain "+Zd(e))},delete:function(n){if(np&&n&&("object"==typeof n||"function"==typeof n)){if(e)return ip(e,n)}else if(ep&&t)return t.delete(n);return!1},get:function(n){return np&&n&&("object"==typeof n||"function"==typeof n)&&e?op(e,n):t&&t.get(n)},has:function(n){return np&&n&&("object"==typeof n||"function"==typeof n)&&e?ap(e,n):!!t&&t.has(n)},set:function(n,o){np&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new np),rp(e,n,o)):ep&&(t||(t=ep()),t.set(n,o))}};return n}:ep)||Jd||function(){var e,t={assert:function(e){if(!t.has(e))throw new yc("Side channel does not contain "+mc(e))},delete:function(t){var n=e&&e.next,o=function(e,t){if(e)return vc(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=vc(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!vc(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var o=vc(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},lp=function(){var e,t={assert:function(e){if(!t.has(e))throw new sp("Side channel does not contain "+up(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=cp()),e.set(t,n)}};return t},dp=String.prototype.replace,pp=/%20/g,hp="RFC3986",fp={default:hp,formatters:{RFC1738:function(e){return dp.call(e,pp,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:hp},gp=fp,mp=lp,yp=Object.prototype.hasOwnProperty,vp=Array.isArray,bp=mp(),kp=function(e,t){return bp.set(e,t),e},_p=function(e){return bp.has(e)},wp=function(e){return bp.get(e)},xp=function(e,t){bp.set(e,t)},Ep=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),Cp=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},Sp=1024,Rp={arrayToObject:Cp,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,o){if(_p(e)){var r=wp(e)+1;return e[r]=t,xp(e,r),e}var a=[].concat(e,t);return a.length>n?kp(Cp(a,{plainObjects:o}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],i=Object.keys(a),s=0;s<i.length;++s){var u=i[s],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t[t.length]={obj:a,prop:u},n[n.length]=c)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(vp(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&(o[o.length]=n[r]);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,r){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<a.length;s+=Sp){for(var u=a.length>=Sp?a.slice(s,s+Sp):a,c=[],l=0;l<u.length;++l){var d=u.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===gp.RFC1738&&(40===d||41===d)?c[c.length]=u.charAt(l):d<128?c[c.length]=Ep[d]:d<2048?c[c.length]=Ep[192|d>>6]+Ep[128|63&d]:d<55296||d>=57344?c[c.length]=Ep[224|d>>12]+Ep[128|d>>6&63]+Ep[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(l)),c[c.length]=Ep[240|d>>18]+Ep[128|d>>12&63]+Ep[128|d>>6&63]+Ep[128|63&d])}i+=c.join("")}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:_p,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:kp,maybeMap:function(e,t){if(vp(e)){for(var n=[],o=0;o<e.length;o+=1)n[n.length]=t(e[o]);return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(vp(t)){var r=t.length;if(o&&"number"==typeof o.arrayLimit&&r>o.arrayLimit)return kp(Cp(t.concat(n),o),r);t[r]=n}else{if(!t||"object"!=typeof t)return[t,n];if(_p(t)){var a=wp(t)+1;t[a]=n,xp(t,a)}else(o&&(o.plainObjects||o.allowPrototypes)||!yp.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t){if(_p(n)){for(var i=Object.keys(n),s=o&&o.plainObjects?{__proto__:null,0:t}:{0:t},u=0;u<i.length;u++){s[parseInt(i[u],10)+1]=n[i[u]]}return kp(s,wp(n)+1)}var c=[t].concat(n);return o&&"number"==typeof o.arrayLimit&&c.length>o.arrayLimit?kp(Cp(c,o),c.length-1):c}var l=t;return vp(t)&&!vp(n)&&(l=Cp(t,o)),vp(t)&&vp(n)?(n.forEach(function(n,r){if(yp.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,o):t[t.length]=n}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var a=n[r];if(yp.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,_p(n)&&!_p(t)&&kp(t,wp(n)),_p(t)){var i=parseInt(r,10);String(i)===r&&i>=0&&i>wp(t)&&xp(t,i)}return t},l)}},Ip=lp,Tp=Rp,Ap=fp,Op=Object.prototype.hasOwnProperty,Pp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Dp=Array.isArray,Lp=Array.prototype.push,jp=function(e,t){Lp.apply(e,Dp(t)?t:[t])},zp=Date.prototype.toISOString,Np=Ap.default,qp={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Tp.encode,encodeValuesOnly:!1,filter:void 0,format:Np,formatter:Ap.formatters[Np],indices:!1,serializeDate:function(e){return zp.call(e)},skipNulls:!1,strictNullHandling:!1},Up={},Mp=function e(t,n,o,r,a,i,s,u,c,l,d,p,h,f,g,m,y,v){for(var b,k=t,_=v,w=0,x=!1;void 0!==(_=_.get(Up))&&!x;){var E=_.get(t);if(w+=1,void 0!==E){if(E===w)throw new RangeError("Cyclic object value");x=!0}void 0===_.get(Up)&&(w=0)}if("function"==typeof l?k=l(n,k):k instanceof Date?k=h(k):"comma"===o&&Dp(k)&&(k=Tp.maybeMap(k,function(e){return e instanceof Date?h(e):e})),null===k){if(i)return c&&!m?c(n,qp.encoder,y,"key",f):n;k=""}if("string"==typeof(b=k)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||Tp.isBuffer(k))return c?[g(m?n:c(n,qp.encoder,y,"key",f))+"="+g(c(k,qp.encoder,y,"value",f))]:[g(n)+"="+g(String(k))];var C,S=[];if(void 0===k)return S;if("comma"===o&&Dp(k))m&&c&&(k=Tp.maybeMap(k,c)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(Dp(l))C=l;else{var R=Object.keys(k);C=d?R.sort(d):R}var I=u?String(n).replace(/\./g,"%2E"):String(n),T=r&&Dp(k)&&1===k.length?I+"[]":I;if(a&&Dp(k)&&0===k.length)return T+"[]";for(var A=0;A<C.length;++A){var O=C[A],P="object"==typeof O&&O&&void 0!==O.value?O.value:k[O];if(!s||null!==P){var D=p&&u?String(O).replace(/\./g,"%2E"):String(O),L=Dp(k)?"function"==typeof o?o(T,D):T:T+(p?"."+D:"["+D+"]");v.set(t,w);var j=Ip();j.set(Up,v),jp(S,e(P,L,o,r,a,i,s,u,"comma"===o&&m&&Dp(k)?null:c,l,d,p,h,f,g,m,y,j))}}return S},Bp=Rp,Fp=Object.prototype.hasOwnProperty,Gp=Array.isArray,Wp={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Bp.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Vp=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Hp=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},Kp=function(e,t,n,o){if(e){var r=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&Fp.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var o=/(\[[^[\]]*])/g,r=/(\[[^[\]]*])/.exec(n),a=r?n.slice(0,r.index):n,i=[];if(a){if(!t.plainObjects&&Fp.call(Object.prototype,a)&&!t.allowPrototypes)return;i[i.length]=a}for(var s=0;null!==(r=o.exec(n))&&s<t.depth;){s+=1;var u=r[1].slice(1,-1);if(!t.plainObjects&&Fp.call(Object.prototype,u)&&!t.allowPrototypes)return;i[i.length]=r[1]}if(r){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+n.slice(r.index)+"]"}return i}(e,n);if(r)return function(e,t,n,o){var r=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");r=Array.isArray(t)&&t[a]?t[a].length:0}for(var i=o?t:Hp(t,n,r),s=e.length-1;s>=0;--s){var u,c=e[s];if("[]"===c&&n.parseArrays)u=Bp.isOverflow(i)?i:n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:Bp.combine([],i,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,d=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(d,10),h=!isNaN(p)&&c!==d&&String(p)===d&&p>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(h&&p<n.arrayLimit)(u=[])[p]=i;else{if(h&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");h?(u[p]=i,Bp.markOverflow(u,p)):"__proto__"!==d&&(u[d]=i)}else u={0:i}}i=u}return i}(r,t,n,o)}},$p=function(e,t){var n,o=e,r=function(e){if(!e)return qp;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||qp.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=Ap.default;if(void 0!==e.format){if(!Op.call(Ap.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o,r=Ap.formatters[n],a=qp.filter;if(("function"==typeof e.filter||Dp(e.filter))&&(a=e.filter),o=e.arrayFormat in Pp?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":qp.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||qp.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:qp.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:qp.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:qp.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?qp.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:qp.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:qp.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:qp.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:qp.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:qp.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:qp.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:qp.strictNullHandling}}(t);"function"==typeof r.filter?o=(0,r.filter)("",o):Dp(r.filter)&&(n=r.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=Pp[r.arrayFormat],s="comma"===i&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var u=Ip(),c=0;c<n.length;++c){var l=n[c],d=o[l];r.skipNulls&&null===d||jp(a,Mp(d,l,i,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var p=a.join(r.delimiter),h=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""},Qp=function(e,t){var n=function(e){if(!e)return Wp;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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?Wp.charset:e.charset,n=void 0===e.duplicates?Wp.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||Wp.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Wp.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Wp.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Wp.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Wp.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Wp.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Wp.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Wp.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Wp.decoder,delimiter:"string"==typeof e.delimiter||Bp.isRegExp(e.delimiter)?e.delimiter:Wp.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Wp.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Wp.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Wp.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Wp.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:Wp.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Wp.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__: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 r=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,t.throwOnLimitExceeded?r+1:r);if(t.throwOnLimitExceeded&&a.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(1===r?"":"s")+" allowed.");var i,s=-1,u=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?u="utf-8":"utf8=%26%2310003%3B"===a[i]&&(u="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var c,l,d=a[i],p=d.indexOf("]="),h=-1===p?d.indexOf("="):p+1;if(-1===h?(c=t.decoder(d,Wp.decoder,u,"key"),l=t.strictNullHandling?null:""):null!==(c=t.decoder(d.slice(0,h),Wp.decoder,u,"key"))&&(l=Bp.maybeMap(Hp(d.slice(h+1),t,Gp(n[c])?n[c].length:0),function(e){return t.decoder(e,Wp.decoder,u,"value")})),l&&t.interpretNumericEntities&&"iso-8859-1"===u&&(l=Vp(String(l))),d.indexOf("[]=")>-1&&(l=Gp(l)?[l]:l),t.comma&&Gp(l)&&l.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");l=Bp.combine([],l,t.arrayLimit,t.plainObjects)}if(null!==c){var f=Fp.call(n,c);f&&"combine"===t.duplicates?n[c]=Bp.combine(n[c],l,t.arrayLimit,t.plainObjects):f&&"last"!==t.duplicates||(n[c]=l)}}return n}(e,n):e,r=n.plainObjects?{__proto__:null}:{},a=Object.keys(o),i=0;i<a.length;++i){var s=a[i],u=Kp(s,o[s],n,"string"==typeof e);r=Bp.merge(r,u,n)}return!0===n.allowSparse?r:Bp.compact(r)},Yp={formats:fp,parse:Qp,stringify:$p},Jp={withCredentials:!1,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 Yp.stringify(e,{indices:!1})}};exports.SendPaymentNotification=void 0,Zl=exports.SendPaymentNotification||(exports.SendPaymentNotification={}),(ed=Zl.NotificationStatus||(Zl.NotificationStatus={})).SETTLED="SETTLED",ed.NOT_SETTLED="NOT_SETTLED",(td=Zl.NotificationReason||(Zl.NotificationReason={})).REFUNDED="REFUNDED",td.RESOLVED="RESOLVED",td.CANCELLED="CANCELLED",td.SERVICE_SUSPENDED="SERVICE_SUSPENDED",td.ORDER_STOPPED="ORDER_STOPPED",td.DISMISS="DISMISS",exports.PaymentFiltersSection=void 0,(nd=exports.PaymentFiltersSection||(exports.PaymentFiltersSection={})).PAYMENTS="payments",nd.INSIGHTS="insights",exports.Organization=void 0,od=exports.Organization||(exports.Organization={}),(rd=od.CustomClaims||(od.CustomClaims={})).ORGANIZATION_CODE="https://dashboard.dev.y.uno/organization_code",rd.USER_CODE="https://dashboard.dev.y.uno/user_code",rd.USER_EMAIL="https://dashboard.dev.y.uno/user_email",exports.Country=void 0,ad=exports.Country||(exports.Country={}),(id=ad.CountryCode||(ad.CountryCode={})).COLOMBIA="CO",id.MEXICO="MX",id.BRAZIL="BR",id.ARGENTINA="AR",id.CHILE="CL",id.PERU="PE",id.URUGUAY="UR",id.ECUADOR="EC",exports.Cms=void 0,sd=exports.Cms||(exports.Cms={}),(ud=sd.Locale||(sd.Locale={})).EN="en",ud.ES="es",ud.PT="pt",(cd=sd.Target||(sd.Target={})).BLANK="_blank",cd.PARENT="_parent",cd.SELF="_self",cd.TOP="_top",exports.ReportType=void 0,(ld=exports.ReportType||(exports.ReportType={})).PAYMENTS="PAYMENTS",ld.TRANSACTIONS="TRANSACTIONS",ld.FRAUD_TRANSACTIONS="FRAUD_TRANSACTIONS",ld.PAYOUTS="PAYOUTS",exports.TemplateType=void 0,(dd=exports.TemplateType||(exports.TemplateType={})).ALL="ALL",dd.DEFAULT="DEFAULT",dd.CUSTOM="CUSTOM",exports.SmartRouting=void 0,(pd=exports.SmartRouting||(exports.SmartRouting={})).DEFAULT_ROUTING_TYPE="smart-routing",(hd=pd.StepType||(pd.StepType={})).FRAUD="FRAUD",hd.PAYMENT="PAYMENT",hd.THREE_D_SECURE="THREE_D_SECURE",hd.CYBERSOURCE_3DS="CYBERSOURCE_3DS",(fd=pd.DeclineGroupType||(pd.DeclineGroupType={})).PROVIDER_STATUS="PROVIDER_STATUS",fd.MAC_CODE="MAC_CODE",exports.DataReport=void 0,gd=exports.DataReport||(exports.DataReport={}),(md=gd.InsightsVolumeMetricsV2Path||(gd.InsightsVolumeMetricsV2Path={})).REFUNDS_AND_CHARGEBACKS="refunds-and-chargebacks",md.APPROVED_PAYMENTS="approved-payments",md.PAYMENT_METHODS="payment-methods",md.PROVIDERS="providers",md.COUNTRIES="countries",md.UNIQUE_CUSTOMER_PAYMENTS="unique-customer-payments",md.TOTAL_PAYMENTS="total-payments",function(e){e.GENERAL="volume-and-total-payments",e.LATENCY="provider-latency",e.STATUS="status",e.SUBSCRIPTIONS="subscriptions"}(gd.OverviewMetricType||(gd.OverviewMetricType={})),exports.ReconciliationReportType=void 0,(yd=exports.ReconciliationReportType||(exports.ReconciliationReportType={})).TRANSACTIONS="TRANSACTION_RECONCILIATION",yd.SETTLEMENTS="SETTLEMENTS",yd.SETTLEMENTS_HEADER="SETTLEMENTS_HEADER",yd.AGENDA="AGENDA",yd.SALES_CONCILIATION="SALES_CONCILIATION",yd.FEES="FEES",yd.ADVANCEMENTS="ADVANCEMENTS",yd.RECONCILIATION_OVERVIEW="RECONCILIATION_OVERVIEW",yd.SETTLEMENTS_FEES="SETTLEMENTS_FEES",yd.CASHFLOW="CASHFLOW",yd.PROCESSED_TRANSACTIONS="PROCESSED_TRANSACTIONS",exports.ReconciliationAgendaInsight=void 0,(vd=exports.ReconciliationAgendaInsight||(exports.ReconciliationAgendaInsight={})).TOTAL_AMOUNT="AGENDA_TOTAL_AMOUNT",vd.DAILY="AGENDA_DAILY_DISTRIBUTION",vd.PAYMENT_METHOD="AGENDA_PAYMENT_METHOD_DISTRIBUTION",vd.CARD_BRAND="AGENDA_CARD_BRAND_DISTRIBUTION",exports.Audit=void 0,bd=exports.Audit||(exports.Audit={}),(kd=bd.AuditExportReportType||(bd.AuditExportReportType={})).DASHBOARD="DASHBOARD",kd.API="API",kd.WEBHOOKS="WEBHOOKS",kd.MONITORS="MONITORS",exports.AI=void 0,_d=exports.AI||(exports.AI={}),(wd=_d.AIGenerateStatus||(_d.AIGenerateStatus={})).ACCEPTED="ACCEPTED",wd.REFUSED="REFUSED",wd.FRONT_FAILED="FRONT_FAILED",exports.OrganizationConfig=void 0,xd=exports.OrganizationConfig||(exports.OrganizationConfig={}),(Ed=xd.ConfigType||(xd.ConfigType={})).YUNO_SMART_TOKENS="YUNO_SMART_TOKENS",Ed.CUSTOM_ROUTING_RULES="CUSTOM_ROUTING_RULES",Ed.CUSTOM_RETRY_DECLINED_WITH_PAN="CUSTOM_RETRY_DECLINED_WITH_PAN";var Xp=["PAUSED","ACTIVE"],Zp={PAUSED:"pause",DELETED:"delete",ACTIVE:"unpause"},eh="DELETED",th={CR_CARD_BIN:"bin",CR_CARD_BRAND:"brand",CR_CARD_ISSUER_NAME:"issuer-name",CR_CARD_TYPE:"type",CR_FALLBACK:"fallback"},nh=function(e){return!(null==e?void 0:e.data)||"string"==typeof(null==e?void 0:e.data)&&""===(null==e?void 0:e.data)},oh=[{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"}],rh=[{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"}],ah=[{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"}],ih=[{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:""}}],sh=[{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"}],uh={docs_url:"https://docs.y.uno/reference/api-reference-overview"},ch={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}]},lh=[{code:"en",name:"English (en)"},{code:"es",name:"Spanish (es)"},{code:"pt",name:"Portuguese (pt)"}];const dh=[];for(let e=0;e<256;++e)dh.push((e+256).toString(16).slice(1));let ph;const hh=new Uint8Array(16);var fh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function gh(e,t,n){if(fh.randomUUID&&!t&&!e)return fh.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!ph){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ph=crypto.getRandomValues.bind(crypto)}return ph(hh)}();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(dh[e[t+0]]+dh[e[t+1]]+dh[e[t+2]]+dh[e[t+3]]+"-"+dh[e[t+4]]+dh[e[t+5]]+"-"+dh[e[t+6]]+dh[e[t+7]]+"-"+dh[e[t+8]]+dh[e[t+9]]+"-"+dh[e[t+10]]+dh[e[t+11]]+dh[e[t+12]]+dh[e[t+13]]+dh[e[t+14]]+dh[e[t+15]]).toLowerCase()}(o)}var mh=function(e){return{account_codes:e&&(null==e?void 0:e.length)>0?null==e?void 0:e.split(","):[]}};function yh(e){return e&&0!==e.length?{metadata_filters:e.map(function(e){return{key:e.field,conditional:e.type,values:e.values}})}:{}}var vh=function(t){function n(n){var o=n?e.__assign(e.__assign({},Jp),n):Jp;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.getReconciliationInsightsConflictsSummary=function(e){return this.post("/reconciliations/insights/conflicts/summary",e)},n.prototype.getReconciliationInsightsNotReconciledAggregators=function(e){return this.post("/reconciliations/insights/not-reconciled/aggregators",e)},n.prototype.getReconciliationInsightsNotReconciledList=function(e){return this.post("/reconciliations/insights/not-reconciled/list",e)},n.prototype.getReconciliationInsightsStatusConflictAggregators=function(e){return this.post("/reconciliations/insights/status-conflict/aggregators",e)},n.prototype.getReconciliationInsightsStatusConflictList=function(e){return this.post("/reconciliations/insights/status-conflict/list",e)},n.prototype.getReconciliationInsightsAmountConflictAggregators=function(e){return this.post("/reconciliations/insights/amount-conflict/aggregators",e)},n.prototype.getReconciliationInsightsAmountConflictList=function(e){return this.post("/reconciliations/insights/amount-conflict/list",e)},n.prototype.getReconciliationInsightsConflictDateSummary=function(e){return this.post("/reconciliations/insights/conflict-date/summary",e)},n.prototype.getReconciliationInsightsConflictDateAggregators=function(e){return this.post("/reconciliations/insights/conflict-date/aggregators",e)},n.prototype.getReconciliationInsightsConflictDateList=function(e){return this.post("/reconciliations/insights/conflict-date/list",e)},n.prototype.getReconciliationInsightsIncorrectFeesSummary=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesAggregators=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/aggregators",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsIncorrectFeesList=function(e,t){return this.post("/reconciliations/insights/incorrect-fees/list",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsFeesChargedSummary=function(e,t){return this.post("/reconciliations/insights/fees-charged/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledSummary=function(e,t){return this.post("/reconciliations/insights/reconciled/summary",e,t?{params:{date_filter:t}}:void 0)},n.prototype.getReconciliationInsightsReconciledAggregators=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/aggregators",e,Object.keys(o).length>0?{params:o}:void 0)},n.prototype.getReconciliationInsightsReconciledList=function(e,t,n){var o={};return t&&(o.date_filter=t),n&&(o.type=n),this.post("/reconciliations/insights/reconciled/list",e,Object.keys(o).length>0?{params:o}:void 0)},n.prototype.getReconciliationInsightsNotConfirmSummary=function(e){return this.post("/reconciliations/insights/not-confirm/summary",e)},n.prototype.getReconciliationInsightsNotConfirmAggregators=function(e){return this.post("/reconciliations/insights/not-confirm/aggregators",e)},n.prototype.getReconciliationInsightsNotConfirmList=function(e){return this.post("/reconciliations/insights/not-confirm/list",e)},n.prototype.getReconciliationInsightsAmountToBeSettledSummary=function(e){return this.post("/reconciliations/insights/amount-to-be-settled/summary",e)},n.prototype.getReconciliationInsightsReconciliationRateByProvider=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-provider",e)},n.prototype.getReconciliationInsightsReconciliationRateByAccount=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-account",e)},n.prototype.getReconciliationInsightsReconciliationRateByCurrency=function(e){return this.post("/reconciliations/insights/reconciliation-rate/summary/by-currency",e)},n.prototype.postPaymentsLazy=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payments/lazy",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},n.prototype.postPayouts=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return r.start_date||(r.start_date=new Date),r.end_date||(r.end_date=new Date),this.post("/payouts",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},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=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/v2/transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},n.prototype.postFraudTransactions=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]);return this.post("/fraud-transactions",e.__assign({account_codes:(null==n?void 0:n.split(","))||[]},yh(o)),{params:r})},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.getPayoutTimeline=function(e,t){var n={"x-organization-code":t};return this.get("/payouts/".concat(e,"/timeline"),{headers:n})},n.prototype.getPaymentMethodsByCountry=function(e,t){var n=e.provider_id,o=e.country,r=localStorage.getItem("x-organization-code"),a={"x-organization-code":t};return this.get("/organizations/provider-params/".concat(n,"/").concat(o),r?{}:{headers:a})},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.postProviderRawResponse=function(e,t){return this.post("/provider-raw-response/".concat(e),t)},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":gh()}})},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,n,o){var r={};return e&&(r["x-password"]=e),t&&(r["x-account-code"]=t),n&&(r["x-otp"]=n),o&&(r["x-mfa-token"]=o),this.get("/v2/developers/credentials",{headers:r})},n.prototype.getDeveloperCredentialsValidatePassword=function(e){return this.get("/validate-password",{headers:{"x-password":e}})},n.prototype.getDeveloperCredentialsValidatePasswordRegularUser=function(e){return this.get("/validate-password-regular",{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"),r={"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:r})},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.addToRiskList=function(e,t){return this.post("/payments/".concat(e,"/add-to-risk-list"),t)},n.prototype.getOrganizationConfigs=function(){return this.get("/organization-config/configs")},n.prototype.postOrganizationConfigs=function(e){return this.post("/organization-config/configs-by-account",e)},n.prototype.putOrganizationConfigsByAccount=function(e){return this.put("/organization-config/configs-by-account",e)},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,o){return void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE),e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(e){return[2,this.get("/organizations/connections/".concat(t,"/").concat(n).concat("routing-payouts"===o?"?flow_type=PAYOUT":""))]})})},n.prototype.getHashPylon=function(){return this.get("/pylon-hash")},n.prototype.getConnections=function(){return this.get("/connections")},n.prototype.getOnboardingStatus=function(e){return this.get("/onboarding/status/".concat(e))},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==eh)return delete t.status,this.delete(o,{data:t});Object.values(Xp).includes(null==t?void 0:t.status)&&(o="".concat(o,"/").concat(Zp[t.status]),delete t.status);var r={"x-account-code":n};return this.post(o,t,{headers:r})},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,r=t.connectionCode,a=localStorage.getItem("account"),i=a?null===(n=JSON.parse(a).value)||void 0===n?void 0:n.code:"";return this.patch("/connections/".concat(r),e.__assign({account_code:i},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,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/webhooks/organization",a,{params:r,paramsSerializer:cu})},n.prototype.postResendWebhooks=function(e){var t=e.codes;return this.post("/v2/webhooks/organization/resend",{codes:t})},n.prototype.postExportApiLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/api-logs/organization/export-csv",t,{params:e,paramsSerializer:cu})},n.prototype.postExportWebhooksLogs=function(e){var t={account_codes:e.account_code};return delete e.account_code,delete e.size,delete e.page,this.post("/v2/webhooks/organization/export-csv",t,{params:e,paramsSerializer:cu})},n.prototype.getApiLogsV3=function(e){return this.get("/v3/api-logs/payment/".concat(e))},n.prototype.getWebhookTimeline=function(e){return this.get("/v3/webhooks/payment/".concat(e))},n.prototype.postExportDashboardLogs=function(e){var t={account_codes:e.account_code,event:e.event,source:e.source,search:e.search},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/v2/events/organization/export-csv",t,{params:n,paramsSerializer:cu})},n.prototype.postExportMonitorsLogs=function(e){var t={account_codes:e.account_codes,status:e.status,payment_methods:e.payment_methods,providers:e.providers,traffic_redistribution:e.traffic_redistribution},n={report_name:e.report_name,start_date:e.start_date,end_date:e.end_date,time_zone:e.time_zone};return this.post("/routing-monitor/audit/export-csv",t,{params:n,paramsSerializer:cu})},n.prototype.getAuditExportsList=function(e){return this.get("/audit/reports",{params:{report_type:e}})},n.prototype.getAuditExportDownload=function(e){return this.get("/audit/reports/".concat(e,"/download"))},n.prototype.getUnifiedExportsPath=function(e){return"/v1/".concat(e,"/exports")},n.prototype.postUnifiedExport=function(e,t){return this.post(this.getUnifiedExportsPath(e),t)},n.prototype.getUnifiedExportStatus=function(e,t){var n=this.getUnifiedExportsPath(e);return this.get("".concat(n,"/").concat(t))},n.prototype.getUnifiedExportsList=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.get(this.getUnifiedExportsPath(e),{params:{page:t,size:n}})},n.prototype.postApiLogs=function(t){var n=t.payload,o=n.account_code,r=e.__rest(n,["account_code"]),a={account_codes:o};return this.post("/v2/api-logs/organization",a,{params:r,paramsSerializer:cu})},n.prototype.getApiLogsDetailByPaymentCode=function(e){return this.get("/v3/api-logs/payment/".concat(e))},n.prototype.getApiLogsByTransactionCode=function(e,t){return this.get("/v2/api-logs/transaction/".concat(e),{headers:{"x-account-code":t}})},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,t){void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var n="routing-payouts"===t?"/".concat(t,"/config/withdrawal-methods"):"/".concat(t,"/methods/").concat(e);return this.get(n)},n.prototype.putSmartRoutingToggleMethod=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="/".concat(o,"/methods/").concat(e,"/").concat(t);return this.put(r,{active:n})},n.prototype.getSmartRoutingConditionTypes=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/config/condition-types/").concat(t):"/".concat(n,"/condition-types/").concat(e,"/").concat(t);return this.get(o)},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,o){return void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===o?this.post("/".concat(o,"/config/next-steps"),{step_type:t,status:n}):this.get("/".concat(o,"/next-route/").concat(e,"/").concat(t,"/").concat(n))},n.prototype.getSmartRoutingWorkflowVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflow-version/").concat(t):"/".concat(n,"/workflow-version/").concat(e,"/").concat(t);return this.get(o)},n.prototype.getSmartRoutingWorkflow=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/workflow/").concat(e,"/").concat(t);return this.get(o)},n.prototype.putSmartRoutingUpdateWorkflow=function(e,t,n){var o;if(void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n){var r=(null===(o=t.version)||void 0===o?void 0:o.code)||t.code;return this.put("/".concat(n,"/workflows/").concat(r),t)}return this.put("/".concat(n,"/update-workflow/").concat(e),t)},n.prototype.putSmartRoutingUpdateWorkflowName=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/name/").concat(t.code):"/".concat(n,"/workflow/").concat(e,"/edit-name");return this.put(o,t)},n.prototype.postSmartRoutingCreateWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),"routing-payouts"===n?this.post("/".concat(n,"/workflows"),t):this.post("/".concat(n,"/create-workflow/").concat(e),t)},n.prototype.postSmartRoutingPublishVersion=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r={"x-organization-code":n},a="routing-payouts"===o?"/".concat(o,"/workflows/").concat(t,"/publish"):"/".concat(o,"/publish-version/").concat(e,"/").concat(t);return this.post(a,{},{headers:r})},n.prototype.deleteSmartRoutingVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t):"/".concat(n,"/delete-version/").concat(e,"/").concat(t);return this.delete(o)},n.prototype.postSmartRoutingDuplicateVersion=function(e,t,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/workflows/").concat(t,"/duplicate"):"/".concat(n,"/duplicate-version/").concat(e,"/").concat(t);return this.post(o,{})},n.prototype.getSmartRoutingDeclinedGroup=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/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,n){void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var o="routing-payouts"===n?"/".concat(n,"/payments/").concat(t,"/route"):"/".concat(n,"/payment-route/").concat(e,"/").concat(t);return this.get(o)},n.prototype.updateSmartRoutingFavorite=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===o?"/".concat(o,"/workflows/favorite/").concat(t):"/".concat(o,"/favorite/").concat(e,"/").concat(t);return this.put(r,{favorite:n})},n.prototype.getSmartRoutingSimulateConditionTypeValues=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),this.get("/".concat(t,"/condition-types-values-list/").concat(e))},n.prototype.simulateSmartRoutingTransaction=function(e,t,n,o){void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE);var r="routing-payouts"===o?"/".concat(o,"/workflows/").concat(t,"/simulate"):"/".concat(o,"/simulate-transaction/").concat(e,"/").concat(t);return this.post(r,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,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=mh(o);return r&&(s.connection_name=r.split(",")),a&&(s=e.__assign(e.__assign({},s),yh(a))),this.post("/insights/conversion-rate/".concat(n),s,{params:i})},n.prototype.getInsightsMetricsConversionRateViewMore=function(t,n){var o=t.account_code,r=t.metadata,a=e.__rest(t,["account_code","metadata"]),i=mh(o);return r&&(i=e.__assign(e.__assign({},i),yh(r))),this.post("/insights/conversion-rate/cards/metrics/".concat(n),i,{params:a})},n.prototype.getInsightFallbackMetrics=function(t){var n=t.account_code,o=t.metadata,r=e.__rest(t,["account_code","metadata"]),a=mh(n);return o&&(a=e.__assign(e.__assign({},a),yh(o))),this.post("/insights/conversion-rate/fallback",a,{params:r})},n.prototype.getInsightsMetricsVolume=function(t,n){var o=n.connection_name,r=n.metadata,a=e.__rest(n,["connection_name","metadata"]),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(",")})),r&&(i=e.__assign(e.__assign({},i),yh(r))),this.post("/insights/volume/metrics",i,{params:a})},n.prototype.getInsightsMetricsVolumeV2=function(t,n,o){var r=o.connection_name,a=o.metadata,i=e.__rest(o,["connection_name","metadata"]),s={account_codes:(null==t?void 0:t.length)?null==t?void 0:t.split(","):[]};return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),yh(a))),this.post("/insights/volume/".concat(n),s,{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,r=t.metadata,a=e.__rest(t,["account_code","connection_name","metadata"]),i=mh(n);return o&&(i=e.__assign(e.__assign({},i),{connection_name:null==o?void 0:o.split(",")})),r&&(i=e.__assign(e.__assign({},i),yh(r))),this.post("/insights/overview",i,{params:a})},n.prototype.getInsightOverviewV3=function(t,n){var o=t.account_code,r=t.connection_name,a=t.metadata,i=e.__rest(t,["account_code","connection_name","metadata"]),s=mh(o);return r&&(s=e.__assign(e.__assign({},s),{connection_name:null==r?void 0:r.split(",")})),a&&(s=e.__assign(e.__assign({},s),yh(a))),this.post("/insights/overview/".concat(n),s,{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.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.getPaymentMethodAccounts=function(e){var t=e.paymentMethod,n={"x-organization-code":e.organizationCode};return this.get("/checkouts/payment-methods/".concat(t,"/accounts"),{headers: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(t){var n=t.accountCode,o=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",o,{headers:{"x-account-code":n}})},n.prototype.getCountryData=function(e){var t=e.accountCode;return this.get("/country-data/v1/country-documents",{headers:{"x-account-code":t}})},n.prototype.publishCheckout=function(t){var n=t.accountCode,o=e.__rest(t,["accountCode"]);return this.patch("/checkouts/publish",o,{headers:{"x-account-code":n}})},n.prototype.getStylingSdkDynamic=function(e){var t={"x-account-code":e.accountCode};return this.get("/checkout/settings",{headers:t})},n.prototype.getStylingSettingsV2=function(e){var t={"x-account-code":e.accountCode};return this.get("/v1/checkouts/builder/settings",{headers:t})},n.prototype.changeStylingSettings=function(e){var t=e.accountCode,n=e.payload,o={"x-account-code":t,"Content-Type":"application/json"};return this.patch("/v1/checkouts/builder/settings",n,{headers:o})},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.createReconciliationsReportV3=function(e){return this.post("/v3/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.deletePaymentsReportTemplate=function(e){return this.delete("/reports/templates",{data:e})},n.prototype.getReportColumns=function(e,t){return this.get("/reports/columns/".concat(e,"/").concat(t))},n.prototype.searchReportTemplates=function(e){return this.post("/template-reporting/report-templates/search",e)},n.prototype.searchReportTemplateById=function(e,t){return this.post("/template-reporting/report-templates/search/".concat(e),t)},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,t){return this.delete("/template-reporting/report-templates/".concat(e),{data:t})},n.prototype.searchReportSchedules=function(e){return this.post("/template-reporting/report-schedules/search",e)},n.prototype.searchReportScheduleById=function(e,t){return this.post("/template-reporting/report-schedules/search/".concat(e),t)},n.prototype.createReportSchedule=function(e){return this.post("/template-reporting/report-schedules",e)},n.prototype.disableReportSchedule=function(e,t){return this.patch("/template-reporting/report-schedules/".concat(e,"/disable"),t)},n.prototype.deleteReportSchedule=function(e,t){return this.delete("/template-reporting/report-schedules/".concat(e),{data:t})},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,r,a,i){void 0===o&&(o=1),void 0===r&&(r=10);var s=e.__assign(e.__assign({account_codes:n||[],page:o,page_size:r},a&&{search_value:a}),(null==i?void 0:i.length)&&{role_ids:i});return this.post("/impersonation/user/organization/".concat(t,"/users-to-impersonate"),s)},n.prototype.getAccountsForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/accounts"))},n.prototype.getRolesForImpersonation=function(e){return this.get("/impersonation/user/organization/".concat(e,"/roles"))},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.inviteUsersMassiveV2=function(e){return this.post("user/invite/massive/v2",e)},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.duplicateAccount=function(e){return this.post("/accounts/duplicate",e)},n.prototype.retryDuplicateAccount=function(e){return this.post("/accounts/duplicate/".concat(e,"/retry"))},n.prototype.getPendingDuplicateAccounts=function(){return this.get("/accounts/duplicate")},n.prototype.patchAccount=function(e){var t=e.name,n=e.code,o=e.principal;return this.patch("/accounts/".concat(n),{name:t,principal:o})},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.search,r=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l={"x-organization-code":t};return this.post("/teams/paginated",{account_codes:n,search:o,status:r,role_id:a,statuses:i,role_ids:s,page:u,page_size:c},{headers:l})},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.getOrgRolesPermissions=function(){return this.get("/teams/permissions?type=ORGANIZATION")},n.prototype.getOrgPermissionsCatalog=function(){return this.get("/teams/permissions-catalog?role_type=ORGANIZATION")},n.prototype.createOrgRole=function(e){return this.post("/teams/roles",e)},n.prototype.editOrgRole=function(e){var t=e.payload,n=e.id;return this.patch("/teams/roles/".concat(n),t)},n.prototype.deleteOrgRole=function(e){return this.delete("/teams/roles/".concat(e))},n.prototype.getOrgRoleAssignments=function(){return this.get("/teams/organization-roles/assignments")},n.prototype.assignOrgRole=function(e){return this.post("/teams/organization-roles/assign",e)},n.prototype.unassignOrgRole=function(e){return this.delete("/teams/organization-roles/assign/".concat(e))},n.prototype.startUserExport=function(e){return this.post("/users/exports/start",{account_codes:e.accountCodes,name:e.name,search:e.search,statuses:e.statuses,role_ids:e.roleIds})},n.prototype.getUserExportStatus=function(e){var t=e.exportCode;return this.get("/users/exports/".concat(t))},n.prototype.listUserExports=function(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,r=void 0===o?20:o;return this.get("/users/exports?page=".concat(n,"&page_size=").concat(r))},n.prototype.changePasswordV2=function(e){return this.patch("/user/change-password-profile",e)},n.prototype.workosPasswordReset=function(e){return this.post("/workos/password-reset",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public")})},n.prototype.workosAdminPortal=function(){return this.post("/workos/admin-portal",{})},n.prototype.workosDomainVerificationPortal=function(){return this.post("/workos/domain-verification-portal",{})},n.prototype.workosDomainStatus=function(){return this.get("/workos/domain-status")},n.prototype.workosVerifyMfa=function(e){return this.post("/workos/verify-mfa",e,{baseURL:(this.instance.defaults.baseURL||"").replace(/\/api$/,"/api-public"),withCredentials:!0})},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:cu})},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.postSubscription=function(e){return this.post("/subscriptions",e)},n.prototype.getSubscriptionByCode=function(e){return this.get("/subscriptions/".concat(e))},n.prototype.postPauseSubscription=function(e){return this.post("/subscriptions/".concat(e,"/pause"))},n.prototype.postResumeSubscription=function(e){return this.post("/subscriptions/".concat(e,"/resume"))},n.prototype.postCancelSubscription=function(e){return this.post("/subscriptions/".concat(e,"/cancel"))},n.prototype.patchSubscription=function(e,t){return this.patch("/subscriptions/".concat(e),t)},n.prototype.postRescheduleSubscription=function(e){return this.post("/subscriptions/".concat(e,"/reschedule"))},n.prototype.getSubscriptionPayments=function(e,t,n){return this.get("/subscriptions/".concat(e,"/payments"),{params:{page:t,size:n}})},n.prototype.postListSubscriptions=function(e){return this.post("/subscriptions/list",e)},n.prototype.getTimezone=function(e){return this.get("/cms/timezone/catalog",{headers:{"x-organization-code":e}})},n.prototype.getInstallmentPlans=function(e){var t=e?cu(e):"",n=t?"/v1/installments-plans?".concat(t):"/v1/installments-plans";return this.get(n)},n.prototype.createInstallmentsPlan=function(e){return this.post("/v1/installments-plans",e)},n.prototype.updateInstallmentsPlan=function(e,t){return this.patch("/v1/installments-plans/".concat(e),t)},n.prototype.deleteInstallmentsPlan=function(e){return this.delete("/v1/installments-plans/".concat(e))},n.prototype.searchInstallmentsPlans=function(e){return this.post("/v2/installments-plans/search",e)},n.prototype.bulkCreateInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk",e)},n.prototype.bulkDeleteInstallmentsPlans=function(e){return this.post("/v2/installments-plans/bulk-delete",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 r={name:t,account_codes:e,page:n,size:o};return this.post("/blacklist",r)},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,r){void 0===n&&(n=26),void 0===o&&(o=null),void 0===r&&(r=null);var a="/blacklist/get-one/".concat(e,"/detail?offset=").concat(t,"&limit=").concat(n);return r&&(null==r?void 0:r.length)>0&&(a+="&search=".concat(r)),this.get(a,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,r=e.handleSetProgress;return this.post("/blacklist/create-batch/".concat(t),{expiration_days:n,file:o},{onUploadProgress:function(e){r(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,n){return this.patch("/credentials-manager/keys/edit-note/".concat(t),e,{headers:{"x-password":n}})},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,n,o){var r={};return t&&(r["x-password"]=t),n&&(r["x-otp"]=n),o&&(r["x-mfa-token"]=o),this.get("/credentials-manager/keys/show-token/".concat(e),{headers:r})},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.buildAuthHeaders=function(e,t,n){var o={};return e&&(o["x-password"]=e),t&&(o["x-otp"]=t),n&&(o["x-mfa-token"]=n),o},n.prototype.getOrganizationKeysMetadata=function(){return this.get("/v2/developers/organization-keys/metadata")},n.prototype.patchOrganizationKeysNote=function(e,t){return this.patch("/v2/developers/organization-keys/note",e,{headers:{"x-password":t}})},n.prototype.postOrganizationKeysRoll=function(e,t,n){return this.post("/v2/developers/organization-keys/roll",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysTamRequest=function(e,t,n){return this.post("/v2/developers/organization-keys/tam-request",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postOrganizationKeysMarkRevealed=function(e,t,n){return this.post("/v2/developers/organization-keys/mark-revealed",{},{headers:this.buildAuthHeaders(e,t,n)})},n.prototype.postCreateInsightsReport=function(e){var t="CR_FALLBACK"===(null==e?void 0:e.type)?"/insights/conversion-rate/".concat(th[null==e?void 0:e.type],"/export"):"/insights/conversion-rate/cards/metrics/".concat(th[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",{headers:{"x-organization-code":e}})},n.prototype.postNetworkTokensOnboarding=function(e){return this.post("/network-tokens/organization/onboarding",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.submitChartFeedback=function(e,t){return this.post("/data-assistant/charts/".concat(e,"/feedback"),t)},n.prototype.getChartFeedback=function(e){return this.get("/data-assistant/charts/".concat(e,"/feedback"))},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.prototype.getRecipients=function(e,t){var n={"x-organization-code":e};return this.get("/recipients",{headers:n,params:t})},n.prototype.getRecipientById=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/".concat(t),{headers:n})},n.prototype.getOnboardingDetail=function(e,t,n){var o={"x-organization-code":e};return this.get("/recipients/".concat(t,"/onboardings/").concat(n),{headers:o})},n.prototype.getOnboardingTimeline=function(e,t){var n={"x-organization-code":e};return this.get("/recipients/onboardings/".concat(t,"/timeline"),{headers:n})},n}(lu),bh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"https://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff/api")}}(),kh=function(){var e,t=null!==(e=window.location.origin)&&void 0!==e?e:"";if(t.includes(".mena.")){var n=t.includes(".mena.staging.");return"wss://".concat(n?"mena.staging.y.uno":"prod.mena.y.uno","/dashboard-bff")}}(),_h={ENVIRONMENT:process.env.ENVIRONMENT,BFF_URL_PROD:null!=bh?bh:process.env.BFF_URL_PROD,BFF_URL_SBX:null!=bh?bh:process.env.BFF_URL_SBX,BFF_URL_STG:null!=bh?bh:process.env.BFF_URL_STG,BFF_URL_DEV:null!=bh?bh:process.env.BFF_URL_DEV,BFF_URL_LOCAL:null!=bh?bh:process.env.BFF_URL_LOCAL,WS_URL_LOCAL:null!=kh?kh:process.env.WS_URL_LOCAL,WS_URL_PROD:null!=kh?kh:process.env.WS_URL_PROD,WS_URL_SBX:null!=kh?kh:process.env.WS_URL_SBX,WS_URL_STG:null!=kh?kh:process.env.WS_URL_STG,WS_URL_DEV:null!=kh?kh:process.env.WS_URL_DEV},wh=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:_h["BFF_URL_".concat(_h.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,r;if(this.classInstance){var a=localStorage.getItem("account");if(a){var i=null===(r=null===(o=JSON.parse(a))||void 0===o?void 0:o.value)||void 0===r?void 0:r.code,s=this.classInstance.instance.defaults.headers["x-account-code"];!!i&&""!==i&&i!==s&&(this.classInstance.instance.defaults.headers["x-account-code"]=i)}return this.classInstance}return this.classInstance=new n(e.__assign(e.__assign({},t),{baseURL:(null==t?void 0:t.baseURL)||_h["BFF_URL_".concat(_h.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}(vh);class xh{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 Eh="undefined"==typeof window||"Deno"in window;function Ch(){}function Sh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Rh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ih(e,t,n){return Bh(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Th(e,t,n){return Bh(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ah(e,t){const{type:n="all",exact:o,fetchStatus:r,predicate:a,queryKey:i,stale:s}=e;if(Bh(i))if(o){if(t.queryHash!==Ph(i,t.options))return!1}else if(!Lh(t.queryKey,i))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===r||r===t.state.fetchStatus)&&!(a&&!a(t)))}function Oh(e,t){const{exact:n,fetching:o,predicate:r,mutationKey:a}=e;if(Bh(a)){if(!t.options.mutationKey)return!1;if(n){if(Dh(t.options.mutationKey)!==Dh(a))return!1}else if(!Lh(t.options.mutationKey,a))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(r&&!r(t))}function Ph(e,t){return((null==t?void 0:t.queryKeyHashFn)||Dh)(e)}function Dh(e){return JSON.stringify(e,(e,t)=>Uh(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Lh(e,t){return jh(e,t)}function jh(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!jh(e[n],t[n])))}function zh(e,t,n=0){if(e===t)return e;if(n>500)return t;const o=qh(e)&&qh(t);if(o||Uh(e)&&Uh(t)){const r=o?e.length:Object.keys(e).length,a=o?t:Object.keys(t),i=a.length,s=o?[]:{};let u=0;for(let r=0;r<i;r++){const i=o?r:a[r];s[i]=zh(e[i],t[i],n+1),s[i]===e[i]&&u++}return r===i&&u===r?e:s}return t}function Nh(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function qh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uh(e){if(!Mh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Mh(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Mh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Bh(e){return Array.isArray(e)}function Fh(e){return new Promise(t=>{setTimeout(t,e)})}function Gh(e){Fh(0).then(e)}function Wh(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?zh(e,t):t}const Vh=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&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)}},Hh=["online","offline"];const Kh=new class extends xh{constructor(){super(),this.setup=e=>{if(!Eh&&window.addEventListener){const t=()=>e();return Hh.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Hh.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 $h(e){return Math.min(1e3*2**e,3e4)}function Qh(e){return"online"!==(null!=e?e:"online")||Kh.isOnline()}class Yh{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Jh(e){return e instanceof Yh}function Xh(e){let t,n,o,r=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,o=t}),u=()=>!Vh.isFocused()||"always"!==e.networkMode&&!Kh.isOnline(),c=o=>{i||(i=!0,null==e.onSuccess||e.onSuccess(o),null==t||t(),n(o))},l=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),o(n))},d=()=>new Promise(n=>{t=e=>{const t=i||!u();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,i||null==e.onContinue||e.onContinue()}),p=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{var n,o;if(i)return;const s=null!=(n=e.retry)?n:3,c=null!=(o=e.retryDelay)?o:$h,h="function"==typeof c?c(a,t):c,f=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);!r&&f?(a++,null==e.onFail||e.onFail(a,t),Fh(h).then(()=>{if(u())return d()}).then(()=>{r?l(t):p()})):l(t)})};return Qh(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{i||(l(new Yh(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}const Zh=console;const ef=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const r=o=>{t?e.push(o):Gh(()=>{n(o)})},a=()=>{const t=e;e=[],t.length&&Gh(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{r(()=>{e(...t)})},schedule:r,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}();class tf{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sh(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Eh?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class nf extends tf{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Zh,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=Wh(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(Ch).catch(Ch):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||!Rh(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 r;return null==(r=this.retryer)||r.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 a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const l=e=>{var t,n,o,r;(Jh(e)&&e.silent||this.dispatch({type:"error",error:e}),Jh(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(o=(r=this.cache.config).onSettled)||o.call(r,this.state.data,e,this),"production"!==process.env.NODE_ENV&&this.logger.error(e));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Xh({fn:u.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,o,r;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=(r=this.cache.config).onSettled)||o.call(r,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:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.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:Qh(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 r=e.error;return Jh(r)&&r.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ef.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class of extends xh{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var o;const r=t.queryKey,a=null!=(o=t.queryHash)?o:Ph(r,t);let i=this.get(a);return i||(i=new nf({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}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(){ef.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Th(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>Ah(n,e))}findAll(e,t){const[n]=Th(e,t);return Object.keys(n).length>0?this.queries.filter(e=>Ah(n,e)):this.queries}notify(e){ef.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ef.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ef.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class rf extends tf{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Zh,this.observers=[],this.state=e.state||af(),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=Xh({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,r,a,i,s,u,c;if(!t){var l,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(o=this.mutationCache.config).onSuccess)?void 0:n.call(o,f,this.state.variables,this.state.context,this)),await(null==(r=(a=this.options).onSuccess)?void 0:r.call(a,f,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,f,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var f,g,m,y,v,b,k,_;throw await(null==(f=(g=this.mutationCache.config).onError)?void 0:f.call(g,e,this.state.variables,this.state.context,this)),"production"!==process.env.NODE_ENV&&this.logger.error(e),await(null==(m=(y=this.options).onError)?void 0:m.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==(k=(_=this.options).onSettled)?void 0:k.call(_,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:!Qh(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),ef.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function af(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class sf extends xh{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const o=new rf({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(){ef.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=>Oh(e,t))}findAll(e){return this.mutations.filter(t=>Oh(e,t))}notify(e){ef.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 ef.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(Ch)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function uf(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,o,r,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(o=e.fetchOptions)||null==(r=o.meta)?void 0:r.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],h=(null==(i=e.state.data)?void 0:i.pageParams)||[];let f=h,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,o)=>(f=o?[t,...f]:[...f,t],o?[n,...e]:[...e,n]),v=(t,n,o,r)=>{if(g)return Promise.reject("Cancelled");if(void 0===o&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:o,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{g=!0}),e.signal}});const s=m(a);return Promise.resolve(s).then(e=>y(t,o,e,r))};let b;if(p.length)if(l){const t=void 0!==c,n=t?c:cf(e.options,p);b=v(p,t,n)}else if(d){const t=void 0!==c,n=t?c:(k=e.options,_=p,null==k.getPreviousPageParam?void 0:k.getPreviousPageParam(_[0],_));b=v(p,t,n,!0)}else{f=[];const t=void 0===e.options.getNextPageParam;b=!s||!p[0]||s(p[0],0,p)?v([],t,h[0]):Promise.resolve(y([],h[0],p[0]));for(let n=1;n<p.length;n++)b=b.then(o=>{if(!s||!p[n]||s(p[n],n,p)){const r=t?h[n]:cf(e.options,o);return v(o,t,r)}return Promise.resolve(y(o,h[n],p[n]))})}else b=v([]);var k,_;const w=b.then(e=>({pages:e,pageParams:f}));return w}}}}function cf(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class lf extends xh{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),df(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pf(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"),Nh(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 r=this.hasListeners();r&&hf(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!r||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!r||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}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(!Nh(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(Ch)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Eh||this.currentResult.isStale||!Sh(this.options.staleTime))return;const e=Rh(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,!Eh&&!1!==this.options.enabled&&Sh(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Vh.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,r=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:l}=e;let d,{dataUpdatedAt:p,error:h,errorUpdatedAt:f,fetchStatus:g,status:m}=l,y=!1,v=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&df(e,t),i=r&&hf(e,n,t,o);(a||i)&&(g=Qh(e.options.networkMode)?"fetching":"paused",p||(m="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!l.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==m)d=c.data,p=c.dataUpdatedAt,m=c.status,y=!0;else if(t.select&&void 0!==l.data)if(r&&l.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(l.data),d=Wh(null==r?void 0:r.data,d,t),this.selectResult=d,this.selectError=null}catch(e){"production"!==process.env.NODE_ENV&&this.client.getLogger().error(e),this.selectError=e}else d=l.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===m){let e;if(null!=r&&r.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=r.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&&(m="success",d=Wh(null==r?void 0:r.data,e,t),v=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,f=Date.now(),m="error");const b="fetching"===g,k="loading"===m,_="error"===m;return{status:m,fetchStatus:g,isLoading:k,isSuccess:"success"===m,isError:_,isInitialLoading:k&&b,data:d,dataUpdatedAt:p,error:h,errorUpdatedAt:f,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>u.dataUpdateCount||l.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!k,isLoadingError:_&&0===l.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:v,isPreviousData:y,isRefetchError:_&&0!==l.dataUpdatedAt,isStale:ff(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,Nh(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||Jh(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ef.batch(()=>{var t,n,o,r;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(r=this.options).onSettled)||o.call(r,this.currentResult.data,null);else if(e.onError){var a,i,s,u;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,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 df(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&&pf(e,t,t.refetchOnMount)}function pf(e,t,n){if(!1!==t.enabled){const o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&ff(e,t)}return!1}function hf(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&ff(e,n)}function ff(e,t){return e.isStaleByTime(t.staleTime)}class gf extends xh{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),Nh(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){ef.batch(()=>{var t,n,o,r;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=(r=this.mutateOptions).onSettled)||o.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,u;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var mf,yf={exports:{}},vf={};var bf,kf={};
|
|
42
42
|
/**
|
|
43
43
|
* @license React
|
|
44
44
|
* use-sync-external-store-shim.development.js
|
|
@@ -64,5 +64,5 @@ statuses/index.js:
|
|
|
64
64
|
* @copyright (c) 2099 Kent C. Dodds
|
|
65
65
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
66
66
|
*/
|
|
67
|
-
const og=7,rg=6,ag=5,ig=4,sg=3,ug=2,cg=1,lg=0;function dg(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:cg,!n.accessors){const o=pg(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const r=function(e,t){const n=[];for(let o=0,r=t.length;o<r;o++){const r=t[o],a=mg(r),i=fg(e,r);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:lg,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<r.length;e++){const o=r[e];let i=pg(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=cg?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=c,a.rankedValue=o.itemValue)}return a}function pg(e,t,n){return e=hg(e,n),(t=hg(t,n)).length>e.length?lg:e===t?og:(e=e.toLowerCase())===(t=t.toLowerCase())?rg:e.startsWith(t)?ag:e.includes(` ${t}`)?ig:e.includes(t)?sg:1===t.length?lg:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?ug:function(e,t){let n=0,o=0;function r(e,t,o){for(let r=o,a=t.length;r<a;r++){if(t[r]===e)return n+=1,r+1}return-1}function a(e){const o=1/e,r=n/t.length;return cg+r*o}const i=r(t[0],e,0);if(i<0)return lg;o=i;for(let n=1,a=t.length;n<a;n++){o=r(t[n],e,o);if(!(o>-1))return lg}const s=o-i;return a(s)}(e,t)}function hg(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(ng,e=>eg[e])),e}function fg(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 gg={maxRanking:1/0,minRanking:-1/0};function mg(e){return"function"==typeof e?gg:{...gg,...e}}function yg(e,t){const[n,r]=o.useState();o.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,o.useCallback(t=>{r(n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o})},[e])]}var vg,bg=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}(),kg=function(){function e(e){this.generateIdentifier=e,this.kv=new bg}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}(),_g=(vg=function(e,t){return vg=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])},vg(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}vg(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),wg=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return _g(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}(kg),xg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i};function Eg(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,r=0;r<o.length;r++){var a=o[r];if(t(a))return a}}function Cg(e,t){Object.entries(e).forEach(function(e){var n=xg(e,2),o=n[0],r=n[1];return t(r,o)})}function Sg(e,t){return-1!==e.indexOf(t)}function Rg(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Ig=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Eg(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Tg=function(e){return void 0===e},Ag=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Og=function(e){return Ag(e)&&0===Object.keys(e).length},Pg=function(e){return Array.isArray(e)},Dg=function(e){return e instanceof Map},Lg=function(e){return e instanceof Set},jg=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},zg=function(e){return"number"==typeof e&&isNaN(e)},Ng=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Tg(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||jg(e)},qg=function(e){return e.replace(/\./g,"\\.")},Ug=function(e){return e.map(String).map(qg).join(".")},Mg=function(e){for(var t=[],n="",o=0;o<e.length;o++){var r=e.charAt(o);if("\\"===r&&"."===e.charAt(o+1))n+=".",o++;else"."===r?(t.push(n),n=""):n+=r}var a=n;return t.push(a),t},Bg=function(){return Bg=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Bg.apply(this,arguments)},Fg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},Gg=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function Wg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Vg=[Wg(Tg,"undefined",function(){return null},function(){}),Wg(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)}),Wg(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Wg(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}),Wg(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)}),Wg(Lg,"set",function(e){return Gg([],Fg(e.values()))},function(e){return new Set(e)}),Wg(Dg,"map",function(e){return Gg([],Fg(e.entries()))},function(e){return new Map(e)}),Wg(function(e){return zg(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return zg(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Wg(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),Wg(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Hg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Kg=Hg(function(e,t){return!!jg(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}),$g=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Qg=Hg(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return Gg([],Fg(e))},function(e,t){var n=$g[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Yg(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Jg=Hg(Yg,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Bg({},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)}),Xg=Hg(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)}),Zg=[Jg,Kg,Xg,Qg],em=function(e,t){var n=Rg(Zg,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Rg(Vg,function(n){return n.isApplicable(e,t)});return o?{value:o.transform(e,t),type:o.annotation}:void 0},tm={};Vg.forEach(function(e){tm[e.annotation]=e});var nm=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function om(e){if(Sg(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Sg(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Sg(e,"constructor"))throw new Error("constructor is not allowed as a property")}var rm=function(e,t,n){if(om(t),0===t.length)return n(e);for(var o=e,r=0;r<t.length-1;r++){var a=t[r];if(Pg(o))o=o[+a];else if(Ag(o))o=o[a];else if(Lg(o)){o=nm(o,i=+a)}else if(Dg(o)){if(r===t.length-2)break;var i=+a,s=0===+t[++r]?"key":"value",u=nm(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(Pg(o)?o[+c]=n(o[+c]):Ag(o)&&(o[c]=n(o[c])),Lg(o)){var l=nm(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(Dg(o)){i=+t[t.length-2];var p=nm(o,i);switch(s=0===+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},am=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},im=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function sm(e,t,n){if(void 0===n&&(n=[]),e)if(Pg(e)){var o=am(e,2),r=o[0],a=o[1];a&&Cg(a,function(e,o){sm(e,t,im(im([],am(n)),am(Mg(o))))}),t(r,n)}else Cg(e,function(e,o){return sm(e,t,im(im([],am(n)),am(Mg(o))))})}function um(e,t,n){return sm(t,function(t,o){e=rm(e,o,function(e){return function(e,t,n){if(!Pg(t)){var o=tm[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Kg.untransform(e,t,n);case"class":return Jg.untransform(e,t,n);case"custom":return Xg.untransform(e,t,n);case"typed-array":return Qg.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function cm(e,t){function n(t,n){var o=function(e,t){om(t);for(var n=0;n<t.length;n++){var o=t[n];if(Lg(e))e=nm(e,+o);else if(Dg(e)){var r=+o,a=0===+t[++n]?"key":"value",i=nm(e,r);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,Mg(n));t.map(Mg).forEach(function(t){e=rm(e,t,function(){return o})})}if(Pg(t)){var o=am(t,2),r=o[0],a=o[1];r.forEach(function(t){e=rm(e,Mg(t),function(){return e})}),a&&Cg(a,n)}else Cg(t,n);return e}var lm=function(e,t,n,o,r,a,i){var s;void 0===r&&(r=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var u=Ng(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,r,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return Ag(e)||Pg(e)||Dg(e)||Lg(e)||Yg(e,t)}(e,n)){var l=em(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(Sg(a,e))return{transformedValue:null};var p=em(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=Pg(h)?[]:{},g={};Cg(h,function(s,u){var c=lm(s,t,n,o,im(im([],am(r)),[u]),im(im([],am(a)),[e]),i);f[u]=c.transformedValue,Pg(c.annotations)?g[u]=c.annotations:Ag(c.annotations)&&Cg(c.annotations,function(e,t){g[qg(u)+"."+t]=e})});var m=Og(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return u||i.set(e,m),m};function dm(e){return Object.prototype.toString.call(e).slice(8,-1)}function pm(e){return"Array"===dm(e)}function hm(e,t={}){if(pm(e))return e.map(e=>hm(e,t));if(!function(e){if("Object"!==dm(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(pm(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),r&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,hm(e[o],t),e,t.nonenumerable),n},{})}var fm=function(){return fm=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fm.apply(this,arguments)},gm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},mm=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e},ym=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new wg,this.symbolRegistry=new kg(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new Ig,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=lm(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=fm(fm({},o.meta),{values:n.annotations}));var r,a,i,s,u=(r=t,a=this.dedupe,i={},s=void 0,r.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=am(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Ug):i[Ug(n)]=o.map(Ug)}}),s?Og(i)?[s]:[s,i]:Og(i)?void 0:i);return u&&(o.meta=fm(fm({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=hm(t);return(null==n?void 0:n.values)&&(o=um(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=cm(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(fm({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,mm([],gm(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 vm={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},bm=o.createContext(vm);function km({theme:e,...t}){return o.createElement(bm.Provider,Zf({value:e},t))}function _m({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 wm(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function xm(e,t,n={}){return o.forwardRef(({style:r,...a},i)=>{const s=o.useContext(bm),u=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=o.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return o.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,s):n}:e,{});return o.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...r,...u},ref:i})})}const Em=(e,t=!1)=>{const{json:n}=ym.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Cm=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Sm=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Rm={"Status > Last Updated":(e,t)=>Cm(e)===Cm(t)?Sm(e,t):Cm(e)>Cm(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Sm},Im=500,Tm={top:"bottom",bottom:"top",left:"right",right:"left"};function Am(e){return["left","right"].includes(e)}function Om(e){return Tm[e]}function Pm(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function Dm(e="bottom"){const t=Am(e),n=Om(e),o=Pm("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 Lm=xm("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"}}),jm=xm("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),zm=xm("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"})),Nm=xm("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),qm=xm("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Um=xm("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Mm=xm("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),Bm=xm("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 Fm({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Gm=xm("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Wm=xm("span",{color:"white"}),Vm=xm("button",{cursor:"pointer",color:"white"}),Hm=xm("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Km=({value:e})=>{const[t,n]=o.useState("NoCopy");return o.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(ym.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?o.createElement(Xm,null):"SuccessCopy"===t?o.createElement(ey,null):o.createElement(Zm,null))},$m=xm("span",(e,t)=>({color:t.danger})),Qm=xm("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ym=xm("span",{color:"grey",fontSize:".7em"}),Jm=({expanded:e,style:t={}})=>o.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Xm=()=>o.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},o.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"}),o.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"}))),Zm=()=>o.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},o.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"})),o.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),ey=()=>o.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},o.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},o.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 ty=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=o.useState([]);return o.createElement(Gm,{key:t},a.length?o.createElement(o.Fragment,null,o.createElement(Hm,{onClick:()=>c()},o.createElement(Jm,{expanded:s})," ",t," ",o.createElement(Ym,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),u?o.createElement(Km,{value:n}):null,s?1===a.length?o.createElement(Qm,null,r.map(e)):o.createElement(Qm,null,a.map((t,n)=>o.createElement("div",{key:n},o.createElement(Gm,null,o.createElement(Vm,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},o.createElement(Jm,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?o.createElement(Qm,null,t.map(e)):null)))):null):o.createElement(o.Fragment,null,o.createElement(Wm,null,t,":")," ",o.createElement($m,null,Em(n))))};function ny({value:e,defaultExpanded:t,renderer:n=ty,pageSize:r=100,copyable:a=!1,...i}){const[s,u]=o.useState(Boolean(t)),c=o.useCallback(()=>u(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=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}(d,r);return n({handleEntry:t=>o.createElement(ny,Zf({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:r,...i})}function oy(e){return o.createElement("svg",Zf({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),o.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-33.000000, 0.000000)"},o.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) "}),o.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"}),o.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 ry=(e,t,n=!1)=>_f.useSyncExternalStore(o.useCallback(t=>n?()=>{}:e.subscribe(ef.batchCalls(t)),[e,n]),t,t),ay=o.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:a,context:i,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Sf({context:i}),y=m.getQueryCache(),[v,b]=yg("reactQueryDevtoolsSortFn",Object.keys(Rm)[0]),[k,_]=yg("reactQueryDevtoolsFilter",""),[w,x]=yg("reactQueryDevtoolsBaseSort",1),E=o.useMemo(()=>Rm[v],[v]),C=ry(y,()=>y.getAll().length,!n),[S,R]=yg("reactQueryDevtoolsActiveQueryHash",""),I=o.useMemo(()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter(e=>dg(e.queryHash,k).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,k,C,y]),[T,A]=o.useState(!1);return o.createElement(km,{theme:vm},o.createElement(Lm,Zf({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Im,position:"relative",...h.style}}),o.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+vm.backgroundAlt+" "+vm.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: "+vm.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+vm.gray+";\n border-radius: .5em;\n border: 3px solid "+vm.backgroundAlt+";\n }\n "}}),o.createElement("div",{style:Dm(l),onMouseDown:s}),n&&o.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+vm.grayAlt,display:"flex",flexDirection:"column"}},o.createElement("div",{style:{padding:".5em",background:vm.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},o.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"}},o.createElement(oy,{"aria-hidden":!0}),o.createElement(Fm,{text:"Close React Query Devtools"})),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},o.createElement(sy,{queryCache:y}),l&&u?o.createElement(Bm,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},o.createElement("option",{value:"left"},"Left"),o.createElement("option",{value:"right"},"Right"),o.createElement("option",{value:"top"},"Top"),o.createElement("option",{value:"bottom"},"Bottom")):null),o.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},o.createElement(Mm,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>_(e.target.value),onKeyDown:e=>{"Escape"===e.key&&_("")},style:{flex:"1",width:"100%"}}),o.createElement(Bm,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Rm).map(e=>o.createElement("option",{key:e,value:e},"Sort by ",e))),o.createElement(zm,{type:"button",onClick:()=>x(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),o.createElement(zm,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),o.createElement(zm,{type:"button",onClick:()=>{T?(Kh.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(Kh.setOnline(!1),A(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?vm.danger:"currentColor",fill:"none"},T?o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.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"}),o.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"}),o.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),o.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),o.createElement(Fm,{text:T?"Restore offline mock":"Mock offline behavior"}))))),o.createElement("div",{style:{overflowY:"auto",flex:"1"}},I.map(e=>o.createElement(uy,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y})))),S&&n?o.createElement(iy,{activeQueryHash:S,queryCache:y,queryClient:m,errorTypes:p}):null,c?o.createElement(zm,Zf({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{a(!1),null==f||f(e)}}),"Close"):null))}),iy=({queryCache:e,activeQueryHash:n,queryClient:r,errorTypes:a})=>{var i,s;const u=ry(e,()=>e.getAll().find(e=>e.queryHash===n)),c=ry(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.state}),l=null!=(i=ry(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.isStale()}))&&i,d=null!=(s=ry(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.getObserversCount()}))?s:0,p=t.useMemo(()=>{if(u&&null!=c&&c.error){const e=a.find(e=>{var t;return e.initializer(u).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[u,null==c?void 0:c.error,a]);if(!u||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(u))?t:new Error("Unknown error from devtools"),o=u.options;u.setState({status:"error",error:n,fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:o}})};return o.createElement(jm,null,o.createElement("div",{style:{padding:".5em",background:vm.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),o.createElement("div",{style:{padding:".5em"}},o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},o.createElement(Um,{style:{lineHeight:"1.8em"}},o.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Em(u.queryKey,!0))),o.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:_m({queryState:c,isStale:l,observerCount:d,theme:vm}),flexShrink:0}},wm(u))),o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",o.createElement(Um,null,d)),o.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",o.createElement(Um,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),o.createElement("div",{style:{background:vm.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),o.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},o.createElement(zm,{type:"button",onClick:()=>{const e=null==u?void 0:u.fetch();null==e||e.catch(cy)},disabled:"fetching"===c.fetchStatus,style:{background:vm.active}},"Refetch")," ",o.createElement(zm,{type:"button",onClick:()=>r.invalidateQueries(u),style:{background:vm.warning,color:vm.inputTextColor}},"Invalidate")," ",o.createElement(zm,{type:"button",onClick:()=>r.resetQueries(u),style:{background:vm.gray}},"Reset")," ",o.createElement(zm,{type:"button",onClick:()=>r.removeQueries(u),style:{background:vm.danger}},"Remove")," ",o.createElement(zm,{type:"button",onClick:()=>{var e;if("fetching"!==u.state.fetchStatus||void 0!==(null==(e=u.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===u.state.data)u.fetch(u.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=u.options;u.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),u.setState({data:void 0,status:"loading",fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:vm.paused}},"loading"===u.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===u.state.status?o.createElement(zm,{type:"button",onClick:()=>{u.state.error?r.resetQueries(u):h()},style:{background:vm.danger}},"error"===u.state.status?"Restore":"Trigger"," error"):o.createElement("label",null,"Trigger error:",o.createElement(Bm,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);h(t)}},o.createElement("option",{key:"",value:""}),a.map(e=>o.createElement("option",{key:e.name,value:e.name},e.name))))),o.createElement("div",{style:{background:vm.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(ny,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),o.createElement("div",{style:{background:vm.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(ny,{label:"Query",value:u,defaultExpanded:{queryKey:!0}})))},sy=({queryCache:e})=>{const t=ry(e,()=>e.getAll().filter(e=>"fresh"===wm(e)).length),n=ry(e,()=>e.getAll().filter(e=>"fetching"===wm(e)).length),r=ry(e,()=>e.getAll().filter(e=>"paused"===wm(e)).length),a=ry(e,()=>e.getAll().filter(e=>"stale"===wm(e)).length),i=ry(e,()=>e.getAll().filter(e=>"inactive"===wm(e)).length);return o.createElement(Nm,null,o.createElement(qm,{style:{background:vm.success,opacity:t?1:.3}},"fresh ",o.createElement(Um,null,"(",t,")"))," ",o.createElement(qm,{style:{background:vm.active,opacity:n?1:.3}},"fetching ",o.createElement(Um,null,"(",n,")"))," ",o.createElement(qm,{style:{background:vm.paused,opacity:r?1:.3}},"paused ",o.createElement(Um,null,"(",r,")"))," ",o.createElement(qm,{style:{background:vm.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",o.createElement(Um,null,"(",a,")"))," ",o.createElement(qm,{style:{background:vm.gray,opacity:i?1:.3}},"inactive ",o.createElement(Um,null,"(",i,")")))},uy=o.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var a,i,s,u;const c=null!=(a=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?a:"",l=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(i=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&i,p=null!=(s=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(u=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?u:0;return l?o.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+vm.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},o.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:_m({queryState:l,isStale:d,observerCount:h,theme:vm}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?o.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:vm.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,o.createElement(Um,{style:{padding:".5em"}},""+c)):null});function cy(){}uy.displayName="QueryRow";const ly="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:a="bottom-left",containerElement:i="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=o.useRef(null),p=o.useRef(null),[h,f]=yg("reactQueryDevtoolsOpen",e),[g,m]=yg("reactQueryDevtoolsHeight",Im),[y,v]=yg("reactQueryDevtoolsWidth",Im),[b="bottom",k]=yg("reactQueryDevtoolsPanelPosition",c),[_,w]=o.useState(!1),[x,E]=o.useState(!1),C=function(){const e=o.useRef(!1),t=o.useCallback(()=>e.current,[]);return o.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();o.useEffect(()=>{w(null!=h&&h)},[h,_,w]),o.useEffect(()=>{const e=p.current;if(e){const t=()=>{_&&(e.style.visibility="visible")},n=()=>{_||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[_]),o.useEffect(()=>{var e;if(_&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=Pm("padding",b),n=Am(b),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r}))(e.style),r=()=>{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:g)+"px"};if(r(),"undefined"!=typeof window)return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r),Object.entries(o).forEach(([t,n])=>{e.style[t]=n})}}},[_,b,g,y]);const{style:S={},...R}=t,{style:I={},onClick:T,...A}=r,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:r,isResizing:a,panelStyle:i}){const s=Om(e),u=Pm("border",s),c=Am(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:r?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...r?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:Im}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Im}}}({position:b,devtoolsTheme:vm,isOpen:_,height:g,width:y,isResizing:x,panelStyle:S});return C()?o.createElement(i,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},o.createElement(km,{theme:vm},o.createElement(ay,Zf({ref:p,context:s,styleNonce:u,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:_,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Am(b);E(!0);const{height:o,width:r}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=r+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=o+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},c=()=>{x&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),_?null:o.createElement("button",Zf({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(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"},...I}}),o.createElement(oy,{"aria-hidden":!0}),o.createElement(Fm,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var dy,py={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(dy=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",dy.ETIMEDOUT="ETIMEDOUT",dy.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var hy=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&hy&&function(){e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:if(!Ya())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,Ka.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=vh,exports.ApiProvider=function(n){var o=this,r=n.children,a=process.env.ENVIRONMENT,i=t.useMemo(function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"},[a]),s=t.useState(!1),u=s[0],c=s[1],l=t.useCallback(function(t){return e.__awaiter(o,void 0,void 0,function(){var n,o,r,a,s;return e.__generator(this,function(u){switch(u.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",a=localStorage.getItem("x-organization-code"),s=a?JSON.parse(a).value:"",[4,wh.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":r||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return u.sent(),[2]}})})},[i]);t.useEffect(function(){return addEventListener("ACCOUNT_CHANGED",l),function(){window.removeEventListener("ACCOUNT_CHANGED",l)}},[l]);var d=t.useCallback(function(t){return e.__awaiter(o,void 0,void 0,function(){var n,o,r,a,s,u,l;return e.__generator(this,function(d){switch(d.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(r=localStorage.getItem("x-organization-code"),a=localStorage.getItem("account"),s=a?null===(l=JSON.parse(a).value)||void 0===l?void 0:l.code:"",u=r?JSON.parse(r).value:"",[4,wh.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:d.sent(),Bf.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),d.label=2;case 2:return[2]}})})},[i,c]);return t.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?d(n):"token"===t.key&&d(e)}}),d(e)},[c,d]),u?React.createElement(Rf,{client:Bf},r,React.createElement(ly,{initialIsOpen:!1})):React.createElement("div",{style:py})},exports.ApiSingleton=wh,exports.FEEDBACK_ISSUE_OPTIONS=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}],exports.getQueryKeyGetNameAndIcon=Gf,exports.getQueryKeyPaymentMethodAccounts=Vf,exports.getQueryKeyRequiredFields=Wf,exports.queryCache=Mf,exports.queryClient=Bf,exports.use3DSExemptions=function(){var t=this;return Pf({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,wh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Df(function(e){return wh.getInstance().generateAIWorkflowRoutes(t,e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAccountCode=Uf,exports.useAddToRiskList=function(){return Df(function(e){var t=e.paymentId,n=e.payload;return wh.getInstance().addToRiskList(t,n)})},exports.useAllFeatureFlags=function(n){var o=this,r=Pf({queryKey:["all-feature-flags",Object.values(n).filter(Boolean)],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getFeatureFlagIdAll({accountCode:n.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!n.account_code&&!!n.organization_code&&!!n.email,cacheTime:9e5,useErrorBoundary:!1}),a=Sf();return t.useEffect(function(){a.setQueryData(["cached-feature-flags"],r)},[r,a]),r},exports.useAllowListDetail=function(e,t,n){return Pf(["allow-list-detail",e],function(){return wh.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,r,a){return Pf(["black-list-detail",e,t,o,r,a],function(){return wh.getInstance().getBlacklistDetail(e,t,n,o,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})},exports.useBulkCreateInstallmentsPlans=function(){return Df(["bulk-create-installments-plans"],function(e){var t=e.payload;return wh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkDeleteInstallmentsPlans=function(){return Df(["bulk-delete-installments-plans"],function(e){var t=e.payload;return wh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkToggleMethod=function(t,n){var o=this;return void 0===n&&(n=null),Df(function(n){return e.__awaiter(o,void 0,void 0,function(){var o,r,a,i,s,u;return e.__generator(this,function(e){switch(e.label){case 0:return o=wh.getInstance(),r=n.map(function(e){return o.putSmartRoutingToggleMethod(t,e.paymentMethod,e.active,e.routingType)}),[4,Promise.allSettled(r)];case 1:return a=e.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),u=i.map(function(e,t){return{paymentMethod:n[t].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:n.length,errors:u}]}})})},n)},exports.useCachedFeatureFlag=function(t){var n,o,r=Sf(),a=r.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.status)),s=Pf({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=r.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return e.__assign(e.__assign({},s),{isLoading:i})},exports.useCancelReport=function(){return Df(function(e){return wh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})},exports.useCancelSubscription=function(){return Df(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useChangePasswordV2=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().changePasswordV2(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useChangePaymentsWebhook=function(){return Df(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return wh.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 Df(["change-blacklist"],function(e){return wh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusItemBlackList=function(){return Df(["change-blacklist-item"],function(e){return wh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStylingSettings=function(){return Df(function(e){var t=e.accountCode,n=e.payload;return wh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useChangeTemplateStatus=function(){var t=this;return Df(["PATCH/template-reporting/report-templates/status"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().changeTemplateStatus(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Df(function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,r=e.handleSetProgress;return wh.getInstance().uploadChargebacks(t,n,o,r)})},exports.useChartAssistantSocket=function(){var e=t.useRef(null),n=t.useRef(null),o=t.useRef(null),r=t.useState(!1),a=r[0],i=r[1],s=t.useState(null),u=s[0],c=s[1],l=t.useState(null),d=l[0],p=l[1],h=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null)},[]),f=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),p(null);try{var t=new WebSocket("".concat(_h["WS_URL_".concat(_h.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=t,t.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&t.send(JSON.stringify({type:"auth",token:e})),n.current=setInterval(function(){t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:"ping"})):(h(),i(!1))},3e4)},t.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){p("Failed to parse server response")}},t.onerror=function(e){p("Connection error occurred"),i(!1)},t.onclose=function(e){i(!1),h(),e.wasClean||1e3===e.code||(o.current=setTimeout(function(){f()},5e3))}}catch(e){p("Failed to establish connection")}},[]),g=t.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}))},[]),m=t.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=t.useCallback(function(){c(null)},[]),v=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return t.useEffect(function(){return f(),function(){h(),v()}},[]),{subscribe:g,unsubscribe:m,disconnect:v,connect:f,clearChartData:y,isConnected:a,chartData:u,connectionError:d}},exports.useChartExecute=function(e){return Pf(["chartgpt-chart-execute",e],function(){return wh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})},exports.useCloneTemplate=function(){var t=this;return Df(["POST/template-reporting/report-templates/clone"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().cloneReportTemplate(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(e,t){return Pf(["fetch-communication-details",e],function(){return wh.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 Pf(["fetch-communications",e],function(){return wh.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.useCommunicationsByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-communications-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-day",o)];case 1:return r=e.sent(),[2,(a=r.data,i=o.start_date,s=o.end_date,u=a.plots||[],c=u.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=u.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=u.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=$f(null==c?void 0:c.rows,i,s),h=$f(null==l?void 0:l.rows,i,s),f=$f(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Kf(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Kf(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,u,c,l,d,p,h,f})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsBySubstatus=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-communications-by-substatus",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-substatus",o)];case 1:return r=e.sent(),[2,Qf(r.data)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsFilters=function(){return Pf(["fetch-communications-filters"],function(){return wh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsSubstatusByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-communications-substatus-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-substatus-by-day",o)];case 1:return r=e.sent(),[2,Yf(r.data,o.start_date,o.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useConfirmedOtpMfa=function(){return Df(function(e){return wh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})},exports.useCountRowsForReport=function(){return Df(function(e){return wh.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 Df(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,o,r,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.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 Df(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,o,r,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}})})},{useErrorBoundary:!1})},exports.useCreateChart=function(){return Df(function(e){return wh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateChartWithTimezone=function(){return Df(function(e){return wh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateInstallmentsPlan=function(){return Df(["create-installments-plan"],function(e){var t=e.payload;return wh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useCreateMonitorTemplate=function(e){return Df(function(t){return wh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})},exports.useCreateMonitorThreshold=function(e){return Df(function(t){return wh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},exports.useCreateOperationTransaction=function(){return Df(function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,r=e.action;return wh.getInstance().createOperationTransaction(t,n,o,r)})},exports.useCreateOrgRole=function(){return Df(function(e){var t=e.payload;return wh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreatePaymentLinks=function(){return Df(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.useCreateReconciliationAlert=function(){return Df(["POST/reconciliation/alerts"],function(e){return wh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Bf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Df(function(){return wh.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(r){switch(r.label){case 0:return[4,Bf.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Bf.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Bf.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){Bf.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Bf.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Df(function(e){return wh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReconciliationsReportV3=function(){return Df(function(e){return wh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Df(function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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,Bf.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=Bf.getQueryData(["GET/reports/templates"]),Bf.setQueryData(["GET/reports/templates"],function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Bf.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Bf.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Df(function(e){return wh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRoles=function(){return Df(function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return Df(function(e){return wh.getInstance().createSamlConfig(e)})},exports.useCreateSchedule=function(){var t=this;return Df(["POST/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().createReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})},exports.useCreateSubscription=function(){return Df(["post-subscription"],function(e){return wh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateTemplate=function(){var t=this;return Df(["POST/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().createTemplateReporting(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCreateUserAuth0=function(){return Df(function(e){return wh.getInstance().createUserAuth0(e)})},exports.useCreateWorkflow=function(t,n,o){var r=this;void 0===o&&(o=null);var a=(null==o?void 0:o.basePath)||exports.SmartRouting.DEFAULT_ROUTING_TYPE;return Df(function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().postSmartRoutingCreateWorkflow(t,n,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},o)},exports.useDeleteAccountsUserMassive=function(){return Df(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return wh.getInstance().deleteAccountsUserMassive(t,n,o)})},exports.useDeleteAllowlistItem=function(){return Df(["delete-allowlist-item"],function(e){return wh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteBlackListType=function(){return Df(["delete-blacklist"],function(e){var t=e.black_list_code;return wh.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 Df(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return wh.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 Df(function(e){return wh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){return Df(function(e){var t=e.code;return wh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteInstallmentsPlan=function(){return Df(["delete-installments-plan"],function(e){var t=e.code;return wh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteOrgRole=function(){return Df(function(e){return wh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeletePaymentLink=function(){return Df(["post-delete-payment-link"],function(e){var t=e.code;return wh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteReconciliationAlert=function(){return Df(["DELETE/reconciliation/alerts"],function(e){return wh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Bf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteReportTemplate=function(){return Df(function(e){return wh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteRoles=function(){return Df(function(e){return wh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteSamlConfig=function(){return Df(function(){return wh.getInstance().deleteSamlConfig()})},exports.useDeleteSchedule=function(){var t=this;return Df(["DELETE/template-reporting/report-schedules"],function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().deleteReportSchedule(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Df(function(e){return wh.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 Df(["DELETE/template-reporting/report-templates"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().deleteReportTemplate(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){return Df(function(e){var t=e.userCode,n=e.organizationCode;return wh.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,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(){return wh.getInstance().deleteSmartRoutingVersion(o,n,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useDeleteWebhookV2=function(e){return Df(function(e){var t=e.code,n=e.accountCode;return wh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDisableSchedule=function(){var t=this;return Df(["PATCH/template-reporting/report-schedules/disable"],function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().disableReportSchedule(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDuplicateAccount=function(){return Df(function(t){var n=e.__spreadArray([exports.DuplicateSetting.ACCOUNT],t.duplicate_order,!0);return wh.getInstance().duplicateAccount(e.__assign(e.__assign({},t),{duplicate_order:n}))})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(){return wh.getInstance().postSmartRoutingDuplicateVersion(o,String(n),a).then(function(e){return null==e?void 0:e.data})},t)},exports.useEditOrgRole=function(){var t=this;return Df(function(n){var o=n.payload,r=n.id;return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().editOrgRole({payload:o,id:r})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEditPaymentLinks=function(){return Df(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return wh.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 Df(function(n){var o=n.payload,r=n.id,a=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,wh.getInstance().editRoles({payload:o,id:r},a)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return Pf(["email-verification",e],function(){return wh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})},exports.useExcludeUsers=function(){return Df(function(e){var t=e.payload,n=e.organizationCode;return wh.getInstance().mfaExcludeUsers(t,n)})},exports.useExportApiLogs=function(){return Df(function(e){return wh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportDashboardLogs=function(){return Df(function(e){return wh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportMonitorsLogs=function(){return Df(function(e){return wh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportWebhooksLogs=function(){return Df(function(e){return wh.getInstance().postExportWebhooksLogs(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 Pf(["feature-flags",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getFeatureFlagId(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})},exports.useFetchUserExportDetail=function(){var t=this,n=Sf();return function(o){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,n.fetchQuery(["user-export-status",o],function(){return wh.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}},exports.useFirebaseUserSubscribe=function(e){return Df(function(e){var t=e.payload;return wh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Df(function(e){return wh.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=qf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pf({queryKey:["accounts",o],queryFn:function(){return wh.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 Pf(["accountsV2-by-user",e],function(){return e?wh.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 Pf({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,wh.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 Pf(["accountsV2",e],function(){return wh.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 Pf(["config-rules"],function(){return wh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})},exports.useGetAllOrganizations=function(){return Pf(["fetch-all-organizations",qf()],function(){return wh.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 Pf(["GET/reconciliation/advancements/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/agenda/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/alerts/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/fees/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/sales/list",t,n],function(){return wh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return Pf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return wh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useGetAllowedIps=function(){return Pf(["developers-get-allowed-ips"],function(){return wh.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.useGetApiLogsByTransactionCode=function(e,t){return Pf(["api-logs-by-transaction",e,t],function(){return wh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsDetailByPaymentCode=function(e){return Pf(["api-logs-detail",e],function(){return wh.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsV3=function(t){var n=this,o=t.paymentCode,r=t.enabled;return Pf({queryKey:["api-logs-v3",o],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===r||r)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetAuditEvents=function(e){return Pf(["events",e],function(){return wh.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.useGetAuditExportDownload=function(e,t,n){return void 0===t&&(t=!1),Pf(["audit-export-download",e],function(){return wh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})},exports.useGetAuditExportsList=function(e,t){return void 0===t&&(t=!0),Pf(["audit-exports-list",e],function(){return wh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditLogsFilters=function(){return Pf(["/cms/audit-logs-filters"],function(){return wh.getInstance().useGetAuditLogsFilters().then(function(e){return nh(e)?sh:null==e?void 0:e.data}).catch(function(){return sh})})},exports.useGetAuditMonitorEventDetail=function(e){return Pf(["audit-monitor-event-detail",e],function(){return wh.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 Df(function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getBatchRefundProcessedFileDownload(o,r,a).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Df(function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getBatchRefundUserFileDownload(o,r,a).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),Pf(["batch-refunds",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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,t){return void 0===t&&(t=!0),Pf(["get-black-list",e],function(){return wh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})},exports.useGetBlockListSummary=function(e,t,n){return Pf(["get-block-list-summary",e,t,n],function(){var o=wh.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 Pf(["GET/catalog/card-brands"],function(){return wh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetChartFeedback=function(t){var n=this,o=t.chartCode,r=t.enabled;return Pf(["chart-feedback",o],function(){return e.__awaiter(n,void 0,void 0,function(){var t,n,r,a,i;return e.__generator(this,function(e){switch(e.label){case 0:t=wh.getInstance(),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.getChartFeedback(o)];case 2:return n=e.sent(),(r=null==n?void 0:n.data)&&r.rating?[2,r]:[2,null];case 3:if(a=e.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===r||r)&&!!o,staleTime:3e5})},exports.useGetChartsByUser=function(){return Pf(["chartgpt-user-charts"],function(){return wh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Pf(["chartgpt-user-charts-with-results"],function(){return e.__awaiter(t,void 0,void 0,function(){var t,n,o,r=this;return e.__generator(this,function(a){switch(a.label){case 0:return[4,(t=wh.getInstance()).getChartsByUser()];case 1:return n=a.sent(),o=(null==n?void 0:n.data)||[],[4,Promise.all(o.map(function(n){return e.__awaiter(r,void 0,void 0,function(){var o,r,a,i,s,u,c,l;return e.__generator(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return o=d.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(i=null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.user_prompt)&&void 0!==i?i:n.user_prompt,unit_to_display:null!==(u=null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==u?u:n.unit_to_display,results:null!==(l=null===(c=null==o?void 0:o.data)||void 0===c?void 0:c.results)&&void 0!==l?l:[]})];case 2:return r=d.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),r),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,a.sent()]}})})})},exports.useGetCheckouts=function(t,n){var o=t.accountCode;return Pf(["checkouts",o],function(){return wh.getInstance().getCheckouts({accountCode:o}).then(function(e){return e.data})},e.__assign({cacheTime:0,enabled:Boolean(o),useErrorBoundary:!1},n))},exports.useGetConditionalConfigRules=function(){return Df(function(e){return wh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetConfigAllowlist=function(e,t){return Pf(["get-cofig-allow-list",e],function(){return wh.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 Pf(["connections"],function(){return wh.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,o=e.basePath,r=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return Pf(["fetch-connections-by-payment-method",n,t,r],function(){return wh.getInstance().getConnectionsByPaymentMethod(t,n,r).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),Pf(["countries",e],function(){return wh.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 Pf(["countries-v2",n],function(){return wh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})},exports.useGetCountryData=function(e){return Pf(["checkout-builder-country-data",e],function(){return wh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode,r=t.otp,a=t.mfaToken;return Pf(["developers"],function(){return wh.getInstance().getDeveloperCredentials(n,o,r,a).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 Df(function(t){var n=t.password,o=t.accountCode,r=t.otp,a=t.mfaToken;return wh.getInstance().getDeveloperCredentials(n,o,r,a).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.data),{isValid:!0})}).catch(function(e){var t,n,o;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(o=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===o?void 0:o.data}})})},exports.useGetCustomizedApiKeys=function(e){return Pf(["fetch-customized-api-keys",e],function(){return wh.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 Pf(["fetch-customized-api-keys-accounts"],function(){return wh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return Pf(["fetch-customized-api-keys-members"],function(){return wh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return Pf(["fetch-customized-api-keys-products"],function(){return wh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})},exports.useGetCustomizedApiKeysToken=function(){return Df(function(e){var t=e.code,n=e.password,o=e.otp,r=e.mfaToken;return wh.getInstance().getCustomizedApiKeysToken(t,n,o,r).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.useGetDashboardStaticContents=function(){return Pf(["/cms/static-contents"],function(){return wh.getInstance().getDashboardStaticContents().then(function(e){var t,n;return nh(e)?uh:(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 Pf(["dialogs"],function(){return wh.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),Pf(["reports/".concat(e)],function(){return wh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return Df(function(){return wh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})},exports.useGetHashPylon=function(){var t=this;return Pf(["fetch-hash-pylon"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){return Pf(["fetch-impersonation-enabled"],function(){return wh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetImpersonationUsers=function(){return Pf(["fetch-impersonation-users"],function(){return wh.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 Pf(["get-insights-reports",e],function(){return wh.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 Pf(["get-insights-reports-again",e],function(){return wh.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.useGetInstallmentsPlans=function(e,t,n){return void 0===t&&(t=!0),Pf(["installments-plans",e,n],function(){return wh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=qf();return Pf(["organizations-account-integrations",t,n],function(){return wh.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 Pf(["integration-params",t,o],function(){return t.includes("undefined")?{}:wh.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 Pf(["languages"],function(){return wh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})},exports.useGetLocales=function(){return Pf(["/cms/locales"],function(){return wh.getInstance().getLocales().then(function(e){return nh(e)?lh:e.data}).catch(function(){return lh})})},exports.useGetLoginMethods=function(){return Pf({queryKey:["get-login-methods"],queryFn:function(){return wh.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 Pf(["mfa-config",n],function(){return wh.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 Pf(["mfa-excluded-users",n],function(){return wh.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 Pf(["mfa-enforcement-status",e.accountCode],function(){return wh.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 Pf(["menu"],function(){return wh.getInstance().getMenu().then(function(e){return nh(e)?ch:null==e?void 0:e.data}).catch(function(){return ch})})},exports.useGetMergedNotifications=function(){return Pf(["notifications-merged"],function(){return wh.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 Pf(Gf({paymentMethodType:n,type:o}),function(){return wh.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 Pf({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,wh.getInstance().getNetworkTokensOnboardingByOrganization(t)];case 1:return[2,e.sent().data]}})})},enabled:!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetNotificationsCustomer=function(e){return Pf(["notifications-customer",e],function(){return wh.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 Df(function(e){return wh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetOnboardingDetail=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-onboarding-detail",t,n.recipient_id,n.onboarding_id],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getOnboardingDetail(t,n.recipient_id,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&!!n.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})},exports.useGetOnboardingStatus=function(e){var t=e.accountCode,n=e.enabled;return Pf(["onboarding-status",t],function(){return wh.getInstance().getOnboardingStatus(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetOnboardingTimeline=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-onboarding-timeline",t,n.onboarding_id],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getOnboardingTimeline(t,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})},exports.useGetOrgPermissionsCatalog=function(){return Pf(["fetch-org-permissions-catalog"],function(){return wh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetOrgRolesPermissions=function(){return Pf(["fetch-org-roles-permissions"],function(){return wh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetOrganization=function(){return Pf(["fetch-organizations"],function(){return wh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetOrganizationConfigs=function(){return Pf({queryKey:["organization-configs"],queryFn:function(){return wh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})},exports.useGetOrganizationKeysMetadata=function(){return Df(function(){return wh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.PAYMENTS),Pf(["payment-filters",e,t],function(){return wh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})},exports.useGetPaymentLinkByCode=function(e){return Pf(["payment-link"],function(){return wh.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 Pf(["fetch-payment-links",e,t],function(){return wh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodAccounts=function(t,n){var o=t.paymentMethod,r=t.organizationCode;return Pf(Vf({paymentMethod:o,organizationCode:r}),function(){return wh.getInstance().getPaymentMethodAccounts({paymentMethod:o,organizationCode:r}).then(function(e){return null==e?void 0:e.data})},e.__assign({cacheTime:0,enabled:Boolean(o),useErrorBoundary:!1},n))},exports.useGetPaymentMethodsAndProviders=function(){return Pf({queryKey:["/payment-methods/providers"],queryFn:function(){return wh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})},exports.useGetPaymentMetricsFilters=function(){return Pf(["payment-metrics-filters"],function(){return wh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){return Pf(["/payment/statuses/style"],function(){return wh.getInstance().useGetPaymentStatusesStyles().then(function(e){return nh(e)?oh:null==e?void 0:e.data}).catch(function(){return oh})})},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return Pf(["payment-transaction-details",t],function(){return wh.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,r=t.enabled,a=void 0===r||r,i=wh.getInstance();return Pf(["get-payment-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:a,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=qf();return Pf(["payment-methods",e],function(){return wh.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 Pf(["GET/payout-detail",JSON.stringify(e)],function(){var t=wh.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=qf();return Pf(["GET/payout-history-detail",JSON.stringify(e)],function(){return wh.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.useGetPayoutTimeline=function(t,n){var o=this;void 0===n&&(n=!0);var r=qf();return Pf(["getPayoutTimeline",t,r],function(){return e.__awaiter(o,void 0,void 0,function(){var n;return e.__generator(this,function(e){return n=wh.getInstance(),t?[2,n.getPayoutTimeline(t,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:n&&!!t&&!!r,cacheTime:500,useErrorBoundary:!1})},exports.useGetPayoutTransactionDetail=function(e){return Pf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return wh.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.useGetPendingDuplicateAccounts=function(e){return Pf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return wh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})},exports.useGetPermissions=function(e,t){return Pf(["fetch-permissions",e,t],function(){var e,t,n,o=localStorage.getItem("account"),r=localStorage.getItem("user"),a=o&&JSON.parse(o),i=r&&JSON.parse(r);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.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 Pf(["fetch-permissions-catalog"],function(){return wh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useGetProfile=function(){return Pf(["fetch-profile"],function(){return wh.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,r=qf();return Pf(["GET/useGetProofOfCancel",r,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getProofOfCancel(t,r,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var o=this,r=qf();return Pf(["GET/useGetProofOfPayment",r,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getProofOfPayment(t,r,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=qf();return Pf(["organizations-provider-params",e],function(e){var n=e.queryKey;return wh.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.useGetRecipientById=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-recipient-by-id",t,n.recipient_id],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRecipientById(t,n.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})},exports.useGetRecipients=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-recipients",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRecipients(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&o,cacheTime:0,useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return Pf(["GET/v1/reconciliation/active"],function(){return wh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/agenda/insights",t,n],function(){return wh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Pf(["GET-reconciliation-filters"],function(){return wh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-amount-conflict-list",t],function(){return wh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountToBeSettledSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return wh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflict-date-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflict-date-list",t],function(){return wh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflict-date-summary",t],function(){return wh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictsSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflicts-summary",t],function(){return wh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsFeesChargedSummary=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-fees-charged-summary",t,n],function(){return wh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesAggregators=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return wh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesList=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return wh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesSummary=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return wh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-confirm-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-confirm-list",t],function(){return wh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-confirm-summary",t],function(){return wh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-reconciled-list",t],function(){return wh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledAggregators=function(e){var t=e.body,n=e.dateFilter,o=e.transactionType,r=e.enabled;return Pf(["reconciliation-insights-reconciled-aggregators",t,n,o],function(){return wh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledList=function(e){var t=e.body,n=e.dateFilter,o=e.transactionType,r=e.enabled;return Pf(["reconciliation-insights-reconciled-list",t,n,o],function(){return wh.getInstance().getReconciliationInsightsReconciledList(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledSummary=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-reconciled-summary",t,n],function(){return wh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByAccount=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return wh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByCurrency=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return wh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByProvider=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return wh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-status-conflict-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-status-conflict-list",t],function(){return wh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return Pf(["fetch-reconciliation-metrics",e],function(){return wh.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 Pf(["/reconciliation/transaction/statuses/style"],function(){return wh.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return nh(e)?ah:null==e?void 0:e.data}).catch(function(){return ah})},{useErrorBoundary:!1})},exports.useGetReconciliationTransactions=function(e,t){return Pf(["fetch-reconciliation-transaction",e],function(){return wh.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 Pf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return wh.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 Pf(["GET/reconciliation/reports/templates"],function(){return wh.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,r=qf();return Pf(["getRefundPdf",t,r,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRefundPdf(t,r,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!t&&!!r,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){var r=this;return Pf(["GET/reports/columns/".concat(n,"/").concat(o)],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(t){return[2,wh.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),[Hf],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return Pf(["GET/reports/templates"],function(){return wh.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 Pf(["reports"],function(){return wh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),Pf(["reports-multi-env"],function(){return wh.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 Pf(Wf({paymentMethodType:n,type:o}),function(){return wh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetRoles=function(){return Pf(["fetch-roles"],function(){return wh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetRolesForImpersonation=function(t){var n=this;return Pf({queryKey:["roles-for-impersonation",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRolesForImpersonation(t).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetRolesPermissions=function(){return Pf(["fetch-rolespermissions"],function(){return wh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetRoutingMonitorsTemplate=function(e,t){return Pf(["fetch-routing-monitors-template",e],function(){return wh.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 Pf(["fetch-routing-monitors-templates",e],function(){return wh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return Df(function(e){return wh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetSamlConfig=function(e){return Pf(["fetch-organization-saml-config",e],function(){return wh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return Pf(["GET/scheduled-reports",e],function(){return wh.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.useGetSettlements=function(e,t){return Pf(["fetch-reconciliation-settlements",e],function(){return wh.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 Pf(["smart-routing-condition-payment-method",e,t],function(){return wh.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,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-condition-types",e,t,n],function(){return wh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return Pf(["smart-routing-condition-types-values",t,e],function(){return wh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingDataReport=function(e){return Pf(["data-report",e],function(){return wh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-decline-groups",e,t],function(){return wh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-methods",e,t],function(){return wh.getInstance().getSmartRoutingMethods(e,t).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,o){return void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-next-route",e,n,t,o],function(){return wh.getInstance().getSmartRoutingNextSteps(e,t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingPaymentRoute=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-payment-route",e,t,n],function(){return wh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return Pf(["smart-routing-search-condition-values",t,n],function(){return wh.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,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-simulate-condition-type-values",e,t],function(){return wh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-workflow",t,e,n],function(){return wh.getInstance().getSmartRoutingWorkflow(e,t,n).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,o=e.routingType,r=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return Pf(["smart-routing-workflow-version",n,t,r],function(){return wh.getInstance().getSmartRoutingWorkflowVersion(t,n,r).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 Pf(["styling-sdk-dynamic",t],function(){return wh.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.useGetStylingSettingsV2=function(e){var t=e.accountCode;return Pf(["styling-settings-v2",t],function(){return wh.getInstance().getStylingSettingsV2({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.useGetSubscriptionByCode=function(e,t){return void 0===t&&(t=!0),Pf(["subscription",e],function(){return wh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})},exports.useGetSubscriptionPayments=function(e,t,n,o){return void 0===o&&(o=!0),Pf(["subscription-payments",e,t,n],function(){return wh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&o,cacheTime:0})},exports.useGetTeamsFiltersMembers=function(){var e=qf();return Pf(["teams-filters-members"],function(){return wh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetTimeZoneCatalog=function(){return Pf(["timezone-catalog"],function(){return wh.getInstance().useGetTimeZoneCatalog().then(function(e){return nh(e)?ih:null==e?void 0:e.data}).catch(function(){return ih})})},exports.useGetTimezonePaymentLink=function(e){return Pf(["timezone"],function(){return wh.getInstance().getTimezone(e).then(function(e){return nh(e)?ih:null==e?void 0:e.data}).catch(function(){return ih})},{enabled:!0,keepPreviousData:!0})},exports.useGetTokenValidation=function(){return Df(function(e){var t=e.password,n=e.otp;return wh.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,r=t.enabled,a=void 0===r||r,i=wh.getInstance();return Pf(["get-payment-transaction-details-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return Pf(["transaction-history",t],function(){return wh.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,r=t.enabled,a=void 0===r||r,i=wh.getInstance();return Pf(["get-payment-transaction-raw-response",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionStatusesStyles=function(){return Pf(["/transaction/statuses/style"],function(){return wh.getInstance().useGetTransactionStatusesStyles().then(function(e){return nh(e)?rh:null==e?void 0:e.data}).catch(function(){return rh})},{cacheTime:36e5,useErrorBoundary:!1})},exports.useGetTranslations=function(){var e=localStorage.getItem("lang")||"en";return Pf(["translations",e],function(){return wh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})},exports.useGetUnifiedExportStatus=function(e){var t=e.tab,n=e.exportId,o=e.enabled,r=void 0!==o&&o,a=e.onSuccess;return Pf(["unified-export-status",t,n],function(){return wh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&r,cacheTime:0,useErrorBoundary:!1,onSuccess:a})},exports.useGetUnifiedExportsList=function(e){var t=e.tab,n=e.page,o=void 0===n?0:n,r=e.size,a=void 0===r?10:r,i=e.enabled;return Pf(["unified-exports-list",t,o,a],function(){return wh.getInstance().getUnifiedExportsList(t,o,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})},exports.useGetUserExportStatus=function(e){var t=e.exportCode,n=e.enabled;return Pf(["user-export-status",t],function(){return wh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})},exports.useGetUserFull=function(){var t=this;return Pf(["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,wh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,o,r,a,i){var s=this;return void 0===o&&(o=1),void 0===r&&(r=10),Pf(["get-users-to-impersonate",t,n,o,r,a,i],function(){return e.__awaiter(s,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getUsersToImpersonate(t,n,o,r,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 Pf(["validate-opsgenie-key",e],function(){return wh.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 Pf(["params-catalog"],function(){return wh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})},exports.useGetWebhookTimeline=function(t){var n=this,o=t.paymentCode,r=t.enabled;return Pf({queryKey:["webhook-timeline",o],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===r||r)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return Pf(["webhooks-detail",t],function(){return wh.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 Pf(["webhooks",t,n],function(){return wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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,o){return void 0===n&&(n=!0),Pf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return wh.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:200,cacheTime:200,useErrorBoundary:!1,retry:1})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-customer-payment-fraud-metrics",t,e],function(){return wh.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 Pf(["get-insights-conversion-rate-fallback-metrics",e],function(){return wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 Pf(["get-insights-home-metrics",e],function(){return wh.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 Pf(["get-insights-overview",e],function(){return wh.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 Pf(["get-insights-overview-v3",e,t],function(){return wh.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,Pf(["get-insights-total-payment-fraud-metrics",t,e],function(){return wh.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,Pf(["get-insights-volume-metrics",t,e],function(){return wh.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,Pf(["get-insights-volume-metrics-v2",t,e,n],function(){return wh.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 Df(function(e){return wh.getInstance().inviteUsersMassive(e,e.organizationCode)})},exports.useInviteUsersMultiaccountMassiveV2=function(){return Df(function(e){return wh.getInstance().inviteUsersMassiveV2(e)})},exports.useIsTesting=zf,exports.useListSubscriptions=function(){return Df(["post-list-subscriptions"],function(e){return wh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})},exports.useListUserExports=function(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,r=void 0===o?20:o,a=e.enabled;return Pf(["user-exports-list",n,r],function(){return wh.getInstance().listUserExports({page:n,pageSize:r}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})},exports.useLocalStorage=Nf,exports.useLoginMethods=function(){return Df(function(e){return wh.getInstance().changeLoginMethods(e)})},exports.useNetworkTokensOnboarding=function(){var t=this;return Pf({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,wh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){return Df(["new-post-connection-validate"],function(){return wh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useOrganizationCode=qf,exports.usePatchAccountV2=function(){return Df(function(e){var t=e.name,n=e.code,o=e.principal;return wh.getInstance().patchAccountV2({name:t,code:n,principal:o})})},exports.usePatchAddAllowlistItems=function(){return Df(["post-add-allowlist-items"],function(e){var t=e.payload;return wh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAllowedIps=function(){return Df(["developers-patch-allowed-ips"],function(t){return wh.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 Df(["patch-allowlist"],function(e){var t=e.payload;return wh.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 r=this;return void 0===o&&(o=!0),Pf(["chartgpt-patch-and-execute",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){var o,r,a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return[4,(o=wh.getInstance()).patchChartGPTChart(t,n)];case 1:return r=e.sent(),a=null==r?void 0:r.data,[4,o.executeChartGPTChart(t)];case 2:return i=e.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){return Df(function(e){var t=e.payload,n=e.code,o=e.password;return wh.getInstance().patchApiKeysEditNote(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlist=function(){return Df(["patch-change-status-allowlist"],function(e){var t=e.payload;return wh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlistItem=function(){return Df(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return wh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChartName=function(){return Df(function(e){var t=e.chart_id,n=e.type,o=e.name,r=e.user_prompt,a=void 0===r?"":r;return wh.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePatchConnection=function(){return Df(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return wh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.usePatchOrganizationKeysNote=function(){return Df(function(e){var t=e.note,n=e.password;return wh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePathCreateCustomizedApiKeys=function(){return Df(function(e){var t=e.payload,n=e.code;return wh.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 Df(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,wh.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})})},exports.usePauseSubscription=function(){return Df(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=qf();return Pf(["getPayoutsFilters",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Pf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=wh.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 Df(function(e){var t=e.name,n=e.principal;return wh.getInstance().postAccount(t,n)})},exports.usePostAllowlistMultiAccount=function(e,t){return void 0===t&&(t=!0),Pf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return wh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})},exports.usePostApiKeysRoll=function(){return Df(function(e){var t=e.payload,n=e.code,o=e.password;return wh.getInstance().postApiKeysRoll(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePostApiLogs=function(e){return Pf(["api-logs",e],function(){return wh.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 Df(function(e){var t=e.payload;return wh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Df(["post-blacklist-batch"],function(e){var n=e.blacklist_code,o=e.expiration_days,r=e.file;return wh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:r,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListItems=function(){return Df(["post-blacklist-items"],function(e){var t=e.payload;return wh.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListMultiAccount=function(){return Df(["post-blacklist-multi-account"],function(e){var t=e.payload;return wh.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 r;return Pf(["post-black-list",e],function(){return wh.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===(r=e[0])||void 0===r?void 0:r.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Df(function(e){return wh.getInstance().postCall(e)})},exports.usePostChangeStatusConnection=function(){return Df(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePostConnectionMultiAccount=function(){return Df(["post-connection"],function(e){var t=e.payload;return wh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})},exports.usePostCreateAllowlistMultiAccount=function(){return Df(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return wh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateCustomizedApiKeys=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateInsightsReport=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateRuleMultiAccount=function(){return Df(function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCredentialsValidatePassword=function(){return Df(function(e){var t=e.passwordOtp;return wh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostCredentialsValidatePasswordRegularUser=function(){return Df(function(e){var t=e.password;return wh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostCredentialsWithOtpMfa=function(){return Df(function(e){var t=e.password,n=e.accountCode,o=e.otp,r=e.mfaToken;return wh.getInstance().getDeveloperCredentials(t,n,o,r).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostDefaultRoutes=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostEditRule=function(){return Df(function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return wh.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 Pf(["POST/fraud-transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Df(["post-get-allowlist-items"],function(e){var t=e.payload;return wh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostGetAllowlistMultiAccount=function(){return Df(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return wh.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.search,r=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=qf();return Pf(["fetch-post-members-v2",t,n,o,r,a,i,s,u,c],function(){return wh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:r,roleId:a,statuses:i,roleIds:s,page:u,pageSize:c}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostNetworkTokensOnboarding=function(){var t=this;return Df(function(n){var o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})},exports.usePostOrganizationConfigs=function(){return Df(function(e){return wh.getInstance().postOrganizationConfigs(e)})},exports.usePostOrganizationKeysMarkRevealed=function(){return Df(function(e){var t=e.password,n=e.otp,o=e.mfaToken;return wh.getInstance().postOrganizationKeysMarkRevealed(t,n,o).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysRoll=function(){return Df(function(e){var t=e.password,n=e.otp,o=e.mfaToken;return wh.getInstance().postOrganizationKeysRoll(t,n,o).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysTamRequest=function(){return Df(function(e){var t=e.password,n=e.otp,o=e.mfaToken;return wh.getInstance().postOrganizationKeysTamRequest(t,n,o).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostPaymentsEvaluated=function(e){return Pf(["fetch-payments-evaluated",e],function(){return wh.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 Pf(["fetch-payments-lazy",t],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Df(function(e){var t=e.payload;return wh.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostTransactions=function(t){var n=this;return Pf(["POST/transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().postTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(e){return Df(["pinned-sections"],function(e){var t=e.payload;return wh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return Df(function(e){var t=e.payload,n=e.section;return wh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(t){var n=Bf.getQueryData(["fetch-profile"]);t.data&&Bf.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Df(function(e){return wh.getInstance().postUserThemeSettings(e)})},exports.usePostValideStatusConnection=function(){return Df(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return wh.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 Pf(["velocity-rules",e],function(){var t=wh.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 Pf(["webhook-logs",t],function(){return wh.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 Df(function(e){var t=e.payload;return wh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return Pf(["smart-routing-conversion-rates"],function(){return wh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})},exports.useProviderRawResponse=function(){return Df(function(e){var t=e.transactionCode,n=e.payload;return wh.getInstance().postProviderRawResponse(t,n)})},exports.usePublishCheckout=function(n){var o=Uf(),r=t.useRef(o);return r.current=o,Df(function(t){return wh.getInstance().publishCheckout(e.__assign(e.__assign({},t),{accountCode:r.current}))},n)},exports.usePublishVersion=function(t,n){var o=this,r=t.versionCode,a=t.accountCode,i=t.organizationCode,s=t.routingType,u=void 0===s?exports.SmartRouting.DEFAULT_ROUTING_TYPE:s;return void 0===n&&(n=null),Df(function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().postSmartRoutingPublishVersion(a,r,i,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},n)},exports.usePutAccountPrincipal=function(){return Df(function(e){var t=e.account_code;return wh.getInstance().putAccountPrincipal({account_code:t})})},exports.usePutAccountsUserMassive=function(){return Df(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return wh.getInstance().putAccountsUserMassive(t,n,o)})},exports.usePutBlackListType=function(){return Df(["put-blacklist"],function(e){return wh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePutCosts=function(){return Df(function(e){return wh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.usePutOrganizationConfigsByAccount=function(){return Df(function(e){return wh.getInstance().putOrganizationConfigsByAccount(e)})},exports.useRecoveredPaymentsByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-recovered-payments-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-payments-by-day",o)];case 1:return r=e.sent(),[2,Xf(r.data,o.start_date,o.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRecoveredTPVByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-recovered-tpv-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return r=e.sent(),[2,Jf(r.data,o.start_date,o.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRescheduleSubscription=function(){return Df(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useResendWebhooks=function(){return Df(function(e){var t=e.codes;return wh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})},exports.useResumeSubscription=function(){return Df(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useRetryDuplicateAccount=function(){return Df(function(e){return wh.getInstance().retryDuplicateAccount(e)})},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(){return wh.getInstance().putSmartRoutingUpdateWorkflow(o,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)},exports.useSearchInstallmentsPlans=function(e,t){return void 0===t&&(t=!0),Pf(["search-installments-plans",JSON.stringify(e)],function(){return wh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})},exports.useSearchScheduleById=function(t,n,o){var r=this;return Pf(["POST/template-reporting/schedule-by-id/search",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportScheduleById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!t,useErrorBoundary:!1})},exports.useSearchSchedules=function(t,n){var o=this;return Pf(["POST/template-reporting/schedules/search",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportSchedules(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSearchTemplateById=function(t,n,o){var r=this;return Pf(["POST/template-reporting/template-by-id/search",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportTemplateById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!t,useErrorBoundary:!1})},exports.useSearchTemplates=function(t,n){var o=this;return Pf(["POST/template-reporting/templates/search",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportTemplates(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSendPaymentNotification=function(t,n,o){var r=this,a=wh.getInstance();return Pf(["send-payment-notification",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){var r,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a.sendPaymentNotification(t,n)];case 1:return r=e.sent(),o.onSuccess(),[2,r.data];case 2:throw i=e.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Df(function(){return wh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return Df(function(e){return void 0===e&&(e=null),wh.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,r=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Df(function(){return wh.getInstance().putSmartRoutingUpdateWorkflowName(r,{code:n,name:o},i).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Df(function(e){var n=e.payload;return wh.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={}),Df(function(e){var n=e.declinedGroupCode;return wh.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,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(e){return wh.getInstance().simulateSmartRoutingTransaction(n,o,e,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(e){return void 0===e&&(e=!1),wh.getInstance().updateSmartRoutingFavorite(o,n,e,a).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),Df(function(e){return void 0===e&&(e=null),wh.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),Df(function(t){return wh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)},exports.useStartUserExport=function(){return Df(function(e){return wh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useSubmitChartFeedback=function(e,t){var n=e.chartCode,o=Sf();return Df(function(e){return wh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var r;o.invalidateQueries(["chart-feedback",n]),null===(r=null==t?void 0:t.onSuccess)||void 0===r||r.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,r=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Df(function(){return wh.getInstance().putSmartRoutingToggleMethod(r,n,o,i).then(function(e){return null==e?void 0:e.data})},t)},exports.useUnInviteUsersV2=function(){return Df(function(e){var t=e.userCode,n=e.organizationCode;return wh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})},exports.useUnifiedExportStart=function(){return Df(function(e){var t=e.tab,n=e.payload;return wh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUnrollUserV2=function(){return Df(function(e){return wh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateInstallmentsPlan=function(){return Df(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return wh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateIsActiveCheckout=function(n){var o=Uf(),r=t.useRef(o);return r.current=o,Df(function(t){return wh.getInstance().updateIsActiveCheckout(e.__assign(e.__assign({},t),{accountCode:r.current}))},n)},exports.useUpdateMFAConfig=function(){return Df(function(e){var t=e.payload,n=e.organizationCode;return wh.getInstance().updateMFAConfig(t,n)})},exports.useUpdateOrganizationStatus=function(){return Df(["patch-organizations"],function(){return wh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})},exports.useUpdateProfile=function(e){return Df(function(e){return wh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){return Df(["UPDATE/reconciliation/alerts"],function(e){return wh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Bf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return Df(function(){return wh.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 Df(function(){return wh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateSamlConfig=function(){return Df(function(e){return wh.getInstance().updateSamlConfig(e)})},exports.useUpdateScheduledReport=function(){return Df(function(e){var t=e.reportCode,n=e.payload;return wh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useUpdateSubscription=function(){return Df(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return wh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateTemplateSelection=function(){var t=this;return Df(["PATCH/template-reporting/report-templates/selection"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().updateTemplateSelection(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Df(function(e){var t=e.code,n=e.payload,o=e.accountCode;return wh.getInstance().updateWebhookV2(t,n,o)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var n=e.fileName,o=e.onSuccess,r=e.onError,a=t.useState(0),i=a[0],s=a[1],u=t.useRef({cancel:function(){return null}}),c=Df(["upload-file-chargeback",n],function(e){var t=wh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),n=t.promise,a=t.cancel;return u.current.cancel=a,n.then(function(e){return null==o||o(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:u.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Df(function(e){return wh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=t.useRef({cancel:function(){return null}}),n=Df(["upload-file"],function(t){var n=wh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,r=n.cancel;return e.current.cancel=r,o.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:n,cancelRequest:e.current.cancel}},exports.useValiateAllowlistItems=function(){return Df(["validate-allowlist-items"],function(e){return wh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})},exports.useValidateBlockListItems=function(){return Df(["valiate-blacklist-items"],function(e){return wh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useValidateCredentials=function(){return Df(function(e){return wh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useValidateOrgName=function(){return Df(function(e){return wh.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})},exports.useValidatePasswordStatus=function(){return Df(function(){return wh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})},exports.useViewMoreMetrics=function(e,t){return Pf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return wh.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})},exports.useWorkosAdminPortal=function(){var t=this;return Df(function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosPasswordReset=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosPasswordReset(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosVerifyMfa=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosVerifyMfa(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})};
|
|
67
|
+
const og=7,rg=6,ag=5,ig=4,sg=3,ug=2,cg=1,lg=0;function dg(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:cg,!n.accessors){const o=pg(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const r=function(e,t){const n=[];for(let o=0,r=t.length;o<r;o++){const r=t[o],a=mg(r),i=fg(e,r);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:lg,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<r.length;e++){const o=r[e];let i=pg(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=cg?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=c,a.rankedValue=o.itemValue)}return a}function pg(e,t,n){return e=hg(e,n),(t=hg(t,n)).length>e.length?lg:e===t?og:(e=e.toLowerCase())===(t=t.toLowerCase())?rg:e.startsWith(t)?ag:e.includes(` ${t}`)?ig:e.includes(t)?sg:1===t.length?lg:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?ug:function(e,t){let n=0,o=0;function r(e,t,o){for(let r=o,a=t.length;r<a;r++){if(t[r]===e)return n+=1,r+1}return-1}function a(e){const o=1/e,r=n/t.length;return cg+r*o}const i=r(t[0],e,0);if(i<0)return lg;o=i;for(let n=1,a=t.length;n<a;n++){o=r(t[n],e,o);if(!(o>-1))return lg}const s=o-i;return a(s)}(e,t)}function hg(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(ng,e=>eg[e])),e}function fg(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 gg={maxRanking:1/0,minRanking:-1/0};function mg(e){return"function"==typeof e?gg:{...gg,...e}}function yg(e,t){const[n,r]=o.useState();o.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,o.useCallback(t=>{r(n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o})},[e])]}var vg,bg=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}(),kg=function(){function e(e){this.generateIdentifier=e,this.kv=new bg}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}(),_g=(vg=function(e,t){return vg=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])},vg(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}vg(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),wg=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return _g(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}(kg),xg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i};function Eg(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,r=0;r<o.length;r++){var a=o[r];if(t(a))return a}}function Cg(e,t){Object.entries(e).forEach(function(e){var n=xg(e,2),o=n[0],r=n[1];return t(r,o)})}function Sg(e,t){return-1!==e.indexOf(t)}function Rg(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Ig=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Eg(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Tg=function(e){return void 0===e},Ag=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Og=function(e){return Ag(e)&&0===Object.keys(e).length},Pg=function(e){return Array.isArray(e)},Dg=function(e){return e instanceof Map},Lg=function(e){return e instanceof Set},jg=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},zg=function(e){return"number"==typeof e&&isNaN(e)},Ng=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Tg(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||jg(e)},qg=function(e){return e.replace(/\./g,"\\.")},Ug=function(e){return e.map(String).map(qg).join(".")},Mg=function(e){for(var t=[],n="",o=0;o<e.length;o++){var r=e.charAt(o);if("\\"===r&&"."===e.charAt(o+1))n+=".",o++;else"."===r?(t.push(n),n=""):n+=r}var a=n;return t.push(a),t},Bg=function(){return Bg=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Bg.apply(this,arguments)},Fg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},Gg=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function Wg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Vg=[Wg(Tg,"undefined",function(){return null},function(){}),Wg(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)}),Wg(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Wg(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}),Wg(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)}),Wg(Lg,"set",function(e){return Gg([],Fg(e.values()))},function(e){return new Set(e)}),Wg(Dg,"map",function(e){return Gg([],Fg(e.entries()))},function(e){return new Map(e)}),Wg(function(e){return zg(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return zg(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Wg(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),Wg(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Hg(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Kg=Hg(function(e,t){return!!jg(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}),$g=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Qg=Hg(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return Gg([],Fg(e))},function(e,t){var n=$g[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Yg(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Jg=Hg(Yg,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Bg({},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)}),Xg=Hg(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)}),Zg=[Jg,Kg,Xg,Qg],em=function(e,t){var n=Rg(Zg,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Rg(Vg,function(n){return n.isApplicable(e,t)});return o?{value:o.transform(e,t),type:o.annotation}:void 0},tm={};Vg.forEach(function(e){tm[e.annotation]=e});var nm=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function om(e){if(Sg(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Sg(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Sg(e,"constructor"))throw new Error("constructor is not allowed as a property")}var rm=function(e,t,n){if(om(t),0===t.length)return n(e);for(var o=e,r=0;r<t.length-1;r++){var a=t[r];if(Pg(o))o=o[+a];else if(Ag(o))o=o[a];else if(Lg(o)){o=nm(o,i=+a)}else if(Dg(o)){if(r===t.length-2)break;var i=+a,s=0===+t[++r]?"key":"value",u=nm(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(Pg(o)?o[+c]=n(o[+c]):Ag(o)&&(o[c]=n(o[c])),Lg(o)){var l=nm(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(Dg(o)){i=+t[t.length-2];var p=nm(o,i);switch(s=0===+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},am=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},im=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e};function sm(e,t,n){if(void 0===n&&(n=[]),e)if(Pg(e)){var o=am(e,2),r=o[0],a=o[1];a&&Cg(a,function(e,o){sm(e,t,im(im([],am(n)),am(Mg(o))))}),t(r,n)}else Cg(e,function(e,o){return sm(e,t,im(im([],am(n)),am(Mg(o))))})}function um(e,t,n){return sm(t,function(t,o){e=rm(e,o,function(e){return function(e,t,n){if(!Pg(t)){var o=tm[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Kg.untransform(e,t,n);case"class":return Jg.untransform(e,t,n);case"custom":return Xg.untransform(e,t,n);case"typed-array":return Qg.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function cm(e,t){function n(t,n){var o=function(e,t){om(t);for(var n=0;n<t.length;n++){var o=t[n];if(Lg(e))e=nm(e,+o);else if(Dg(e)){var r=+o,a=0===+t[++n]?"key":"value",i=nm(e,r);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,Mg(n));t.map(Mg).forEach(function(t){e=rm(e,t,function(){return o})})}if(Pg(t)){var o=am(t,2),r=o[0],a=o[1];r.forEach(function(t){e=rm(e,Mg(t),function(){return e})}),a&&Cg(a,n)}else Cg(t,n);return e}var lm=function(e,t,n,o,r,a,i){var s;void 0===r&&(r=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var u=Ng(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,r,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return Ag(e)||Pg(e)||Dg(e)||Lg(e)||Yg(e,t)}(e,n)){var l=em(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(Sg(a,e))return{transformedValue:null};var p=em(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=Pg(h)?[]:{},g={};Cg(h,function(s,u){var c=lm(s,t,n,o,im(im([],am(r)),[u]),im(im([],am(a)),[e]),i);f[u]=c.transformedValue,Pg(c.annotations)?g[u]=c.annotations:Ag(c.annotations)&&Cg(c.annotations,function(e,t){g[qg(u)+"."+t]=e})});var m=Og(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return u||i.set(e,m),m};function dm(e){return Object.prototype.toString.call(e).slice(8,-1)}function pm(e){return"Array"===dm(e)}function hm(e,t={}){if(pm(e))return e.map(e=>hm(e,t));if(!function(e){if("Object"!==dm(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(pm(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),r&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,hm(e[o],t),e,t.nonenumerable),n},{})}var fm=function(){return fm=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fm.apply(this,arguments)},gm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},mm=function(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e},ym=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new wg,this.symbolRegistry=new kg(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new Ig,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=lm(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=fm(fm({},o.meta),{values:n.annotations}));var r,a,i,s,u=(r=t,a=this.dedupe,i={},s=void 0,r.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=am(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Ug):i[Ug(n)]=o.map(Ug)}}),s?Og(i)?[s]:[s,i]:Og(i)?void 0:i);return u&&(o.meta=fm(fm({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=hm(t);return(null==n?void 0:n.values)&&(o=um(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=cm(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(fm({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,mm([],gm(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 vm={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},bm=o.createContext(vm);function km({theme:e,...t}){return o.createElement(bm.Provider,Zf({value:e},t))}function _m({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 wm(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function xm(e,t,n={}){return o.forwardRef(({style:r,...a},i)=>{const s=o.useContext(bm),u=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=o.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return o.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,s):n}:e,{});return o.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...r,...u},ref:i})})}const Em=(e,t=!1)=>{const{json:n}=ym.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Cm=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Sm=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Rm={"Status > Last Updated":(e,t)=>Cm(e)===Cm(t)?Sm(e,t):Cm(e)>Cm(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Sm},Im=500,Tm={top:"bottom",bottom:"top",left:"right",right:"left"};function Am(e){return["left","right"].includes(e)}function Om(e){return Tm[e]}function Pm(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function Dm(e="bottom"){const t=Am(e),n=Om(e),o=Pm("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 Lm=xm("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"}}),jm=xm("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),zm=xm("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"})),Nm=xm("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),qm=xm("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Um=xm("code",{fontSize:".9em",color:"inherit",background:"inherit"}),Mm=xm("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),Bm=xm("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 Fm({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const Gm=xm("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Wm=xm("span",{color:"white"}),Vm=xm("button",{cursor:"pointer",color:"white"}),Hm=xm("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),Km=({value:e})=>{const[t,n]=o.useState("NoCopy");return o.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(ym.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?o.createElement(Xm,null):"SuccessCopy"===t?o.createElement(ey,null):o.createElement(Zm,null))},$m=xm("span",(e,t)=>({color:t.danger})),Qm=xm("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ym=xm("span",{color:"grey",fontSize:".7em"}),Jm=({expanded:e,style:t={}})=>o.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Xm=()=>o.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},o.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"}),o.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"}))),Zm=()=>o.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},o.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},o.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"})),o.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),ey=()=>o.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},o.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},o.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 ty=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:a=[],type:i,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=o.useState([]);return o.createElement(Gm,{key:t},a.length?o.createElement(o.Fragment,null,o.createElement(Hm,{onClick:()=>c()},o.createElement(Jm,{expanded:s})," ",t," ",o.createElement(Ym,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),u?o.createElement(Km,{value:n}):null,s?1===a.length?o.createElement(Qm,null,r.map(e)):o.createElement(Qm,null,a.map((t,n)=>o.createElement("div",{key:n},o.createElement(Gm,null,o.createElement(Vm,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},o.createElement(Jm,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?o.createElement(Qm,null,t.map(e)):null)))):null):o.createElement(o.Fragment,null,o.createElement(Wm,null,t,":")," ",o.createElement($m,null,Em(n))))};function ny({value:e,defaultExpanded:t,renderer:n=ty,pageSize:r=100,copyable:a=!1,...i}){const[s,u]=o.useState(Boolean(t)),c=o.useCallback(()=>u(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=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}(d,r);return n({handleEntry:t=>o.createElement(ny,Zf({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:r,...i})}function oy(e){return o.createElement("svg",Zf({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),o.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-33.000000, 0.000000)"},o.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) "}),o.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"}),o.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 ry=(e,t,n=!1)=>_f.useSyncExternalStore(o.useCallback(t=>n?()=>{}:e.subscribe(ef.batchCalls(t)),[e,n]),t,t),ay=o.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:a,context:i,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Sf({context:i}),y=m.getQueryCache(),[v,b]=yg("reactQueryDevtoolsSortFn",Object.keys(Rm)[0]),[k,_]=yg("reactQueryDevtoolsFilter",""),[w,x]=yg("reactQueryDevtoolsBaseSort",1),E=o.useMemo(()=>Rm[v],[v]),C=ry(y,()=>y.getAll().length,!n),[S,R]=yg("reactQueryDevtoolsActiveQueryHash",""),I=o.useMemo(()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter(e=>dg(e.queryHash,k).passed):[...e];return E?t.sort((e,t)=>E(e,t)*w):t},[w,E,k,C,y]),[T,A]=o.useState(!1);return o.createElement(km,{theme:vm},o.createElement(Lm,Zf({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Im,position:"relative",...h.style}}),o.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+vm.backgroundAlt+" "+vm.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: "+vm.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+vm.gray+";\n border-radius: .5em;\n border: 3px solid "+vm.backgroundAlt+";\n }\n "}}),o.createElement("div",{style:Dm(l),onMouseDown:s}),n&&o.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+vm.grayAlt,display:"flex",flexDirection:"column"}},o.createElement("div",{style:{padding:".5em",background:vm.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},o.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"}},o.createElement(oy,{"aria-hidden":!0}),o.createElement(Fm,{text:"Close React Query Devtools"})),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},o.createElement(sy,{queryCache:y}),l&&u?o.createElement(Bm,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},o.createElement("option",{value:"left"},"Left"),o.createElement("option",{value:"right"},"Right"),o.createElement("option",{value:"top"},"Top"),o.createElement("option",{value:"bottom"},"Bottom")):null),o.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},o.createElement(Mm,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>_(e.target.value),onKeyDown:e=>{"Escape"===e.key&&_("")},style:{flex:"1",width:"100%"}}),o.createElement(Bm,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Rm).map(e=>o.createElement("option",{key:e,value:e},"Sort by ",e))),o.createElement(zm,{type:"button",onClick:()=>x(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),o.createElement(zm,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),o.createElement(zm,{type:"button",onClick:()=>{T?(Kh.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(Kh.setOnline(!1),A(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?vm.danger:"currentColor",fill:"none"},T?o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.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"}),o.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"}),o.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):o.createElement(o.Fragment,null,o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),o.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),o.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),o.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),o.createElement(Fm,{text:T?"Restore offline mock":"Mock offline behavior"}))))),o.createElement("div",{style:{overflowY:"auto",flex:"1"}},I.map(e=>o.createElement(uy,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y})))),S&&n?o.createElement(iy,{activeQueryHash:S,queryCache:y,queryClient:m,errorTypes:p}):null,c?o.createElement(zm,Zf({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{a(!1),null==f||f(e)}}),"Close"):null))}),iy=({queryCache:e,activeQueryHash:n,queryClient:r,errorTypes:a})=>{var i,s;const u=ry(e,()=>e.getAll().find(e=>e.queryHash===n)),c=ry(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.state}),l=null!=(i=ry(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.isStale()}))&&i,d=null!=(s=ry(e,()=>{var t;return null==(t=e.getAll().find(e=>e.queryHash===n))?void 0:t.getObserversCount()}))?s:0,p=t.useMemo(()=>{if(u&&null!=c&&c.error){const e=a.find(e=>{var t;return e.initializer(u).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[u,null==c?void 0:c.error,a]);if(!u||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(u))?t:new Error("Unknown error from devtools"),o=u.options;u.setState({status:"error",error:n,fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:o}})};return o.createElement(jm,null,o.createElement("div",{style:{padding:".5em",background:vm.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),o.createElement("div",{style:{padding:".5em"}},o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},o.createElement(Um,{style:{lineHeight:"1.8em"}},o.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Em(u.queryKey,!0))),o.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:_m({queryState:c,isStale:l,observerCount:d,theme:vm}),flexShrink:0}},wm(u))),o.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",o.createElement(Um,null,d)),o.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",o.createElement(Um,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),o.createElement("div",{style:{background:vm.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),o.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},o.createElement(zm,{type:"button",onClick:()=>{const e=null==u?void 0:u.fetch();null==e||e.catch(cy)},disabled:"fetching"===c.fetchStatus,style:{background:vm.active}},"Refetch")," ",o.createElement(zm,{type:"button",onClick:()=>r.invalidateQueries(u),style:{background:vm.warning,color:vm.inputTextColor}},"Invalidate")," ",o.createElement(zm,{type:"button",onClick:()=>r.resetQueries(u),style:{background:vm.gray}},"Reset")," ",o.createElement(zm,{type:"button",onClick:()=>r.removeQueries(u),style:{background:vm.danger}},"Remove")," ",o.createElement(zm,{type:"button",onClick:()=>{var e;if("fetching"!==u.state.fetchStatus||void 0!==(null==(e=u.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===u.state.data)u.fetch(u.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=u.options;u.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),u.setState({data:void 0,status:"loading",fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:vm.paused}},"loading"===u.state.status?"Restore":"Trigger"," ","loading")," ",0===a.length||"error"===u.state.status?o.createElement(zm,{type:"button",onClick:()=>{u.state.error?r.resetQueries(u):h()},style:{background:vm.danger}},"error"===u.state.status?"Restore":"Trigger"," error"):o.createElement("label",null,"Trigger error:",o.createElement(Bm,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=a.find(t=>t.name===e.target.value);h(t)}},o.createElement("option",{key:"",value:""}),a.map(e=>o.createElement("option",{key:e.name,value:e.name},e.name))))),o.createElement("div",{style:{background:vm.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(ny,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),o.createElement("div",{style:{background:vm.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),o.createElement("div",{style:{padding:".5em"}},o.createElement(ny,{label:"Query",value:u,defaultExpanded:{queryKey:!0}})))},sy=({queryCache:e})=>{const t=ry(e,()=>e.getAll().filter(e=>"fresh"===wm(e)).length),n=ry(e,()=>e.getAll().filter(e=>"fetching"===wm(e)).length),r=ry(e,()=>e.getAll().filter(e=>"paused"===wm(e)).length),a=ry(e,()=>e.getAll().filter(e=>"stale"===wm(e)).length),i=ry(e,()=>e.getAll().filter(e=>"inactive"===wm(e)).length);return o.createElement(Nm,null,o.createElement(qm,{style:{background:vm.success,opacity:t?1:.3}},"fresh ",o.createElement(Um,null,"(",t,")"))," ",o.createElement(qm,{style:{background:vm.active,opacity:n?1:.3}},"fetching ",o.createElement(Um,null,"(",n,")"))," ",o.createElement(qm,{style:{background:vm.paused,opacity:r?1:.3}},"paused ",o.createElement(Um,null,"(",r,")"))," ",o.createElement(qm,{style:{background:vm.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",o.createElement(Um,null,"(",a,")"))," ",o.createElement(qm,{style:{background:vm.gray,opacity:i?1:.3}},"inactive ",o.createElement(Um,null,"(",i,")")))},uy=o.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var a,i,s,u;const c=null!=(a=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?a:"",l=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(i=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&i,p=null!=(s=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(u=ry(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?u:0;return l?o.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+vm.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},o.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:_m({queryState:l,isStale:d,observerCount:h,theme:vm}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?o.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:vm.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,o.createElement(Um,{style:{padding:".5em"}},""+c)):null});function cy(){}uy.displayName="QueryRow";const ly="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:a="bottom-left",containerElement:i="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=o.useRef(null),p=o.useRef(null),[h,f]=yg("reactQueryDevtoolsOpen",e),[g,m]=yg("reactQueryDevtoolsHeight",Im),[y,v]=yg("reactQueryDevtoolsWidth",Im),[b="bottom",k]=yg("reactQueryDevtoolsPanelPosition",c),[_,w]=o.useState(!1),[x,E]=o.useState(!1),C=function(){const e=o.useRef(!1),t=o.useCallback(()=>e.current,[]);return o.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();o.useEffect(()=>{w(null!=h&&h)},[h,_,w]),o.useEffect(()=>{const e=p.current;if(e){const t=()=>{_&&(e.style.visibility="visible")},n=()=>{_||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[_]),o.useEffect(()=>{var e;if(_&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=Pm("padding",b),n=Am(b),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:r}))(e.style),r=()=>{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:g)+"px"};if(r(),"undefined"!=typeof window)return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r),Object.entries(o).forEach(([t,n])=>{e.style[t]=n})}}},[_,b,g,y]);const{style:S={},...R}=t,{style:I={},onClick:T,...A}=r,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:r,isResizing:a,panelStyle:i}){const s=Om(e),u=Pm("border",s),c=Am(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:r?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...r?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:Im}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Im}}}({position:b,devtoolsTheme:vm,isOpen:_,height:g,width:y,isResizing:x,panelStyle:S});return C()?o.createElement(i,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},o.createElement(km,{theme:vm},o.createElement(ay,Zf({ref:p,context:s,styleNonce:u,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:_,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Am(b);E(!0);const{height:o,width:r}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=r+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=o+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},c=()=>{x&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),_?null:o.createElement("button",Zf({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(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"},...I}}),o.createElement(oy,{"aria-hidden":!0}),o.createElement(Fm,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var dy,py={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};exports.ApiErrorCodes=void 0,(dy=exports.ApiErrorCodes||(exports.ApiErrorCodes={})).ECONNABORTED="ECONNABORTED",dy.ETIMEDOUT="ETIMEDOUT",dy.ERR_BAD_REQUEST="ERR_BAD_REQUEST";var hy=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&hy&&function(){e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:if(!Ya())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,Ka.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=vh,exports.ApiProvider=function(n){var o=this,r=n.children,a=process.env.ENVIRONMENT,i=t.useMemo(function(){return"DEV"!==a&&"LOCAL"!==a?"testing":"live"},[a]),s=t.useState(!1),u=s[0],c=s[1],l=t.useCallback(function(t){return e.__awaiter(o,void 0,void 0,function(){var n,o,r,a,s;return e.__generator(this,function(u){switch(u.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",a=localStorage.getItem("x-organization-code"),s=a?JSON.parse(a).value:"",[4,wh.refreshInstance({headers:e.__assign(e.__assign({},o),{"X-Environment":r||i,"x-organization-code":s,"x-account-code":t.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return u.sent(),[2]}})})},[i]);t.useEffect(function(){return addEventListener("ACCOUNT_CHANGED",l),function(){window.removeEventListener("ACCOUNT_CHANGED",l)}},[l]);var d=t.useCallback(function(t){return e.__awaiter(o,void 0,void 0,function(){var n,o,r,a,s,u,l;return e.__generator(this,function(d){switch(d.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(r=localStorage.getItem("x-organization-code"),a=localStorage.getItem("account"),s=a?null===(l=JSON.parse(a).value)||void 0===l?void 0:l.code:"",u=r?JSON.parse(r).value:"",[4,wh.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:d.sent(),Bf.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),c(!0),d.label=2;case 2:return[2]}})})},[i,c]);return t.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?d(n):"token"===t.key&&d(e)}}),d(e)},[c,d]),u?React.createElement(Rf,{client:Bf},r,React.createElement(ly,{initialIsOpen:!1})):React.createElement("div",{style:py})},exports.ApiSingleton=wh,exports.FEEDBACK_ISSUE_OPTIONS=[{value:"CHART_NOT_EXPECTED",labelKey:"insights.feedback.issues.chartNotExpected"},{value:"TIME_RANGE_INCORRECT",labelKey:"insights.feedback.issues.timeRangeIncorrect"},{value:"DATA_INACCURATE",labelKey:"insights.feedback.issues.dataInaccurate"},{value:"NOT_ANSWERING_QUESTION",labelKey:"insights.feedback.issues.notAnsweringQuestion"},{value:"EXPECTED_INSIGHTS",labelKey:"insights.feedback.issues.expectedInsights"},{value:"OTHER",labelKey:"insights.feedback.issues.other"}],exports.getQueryKeyGetNameAndIcon=Gf,exports.getQueryKeyPaymentMethodAccounts=Vf,exports.getQueryKeyRequiredFields=Wf,exports.queryCache=Mf,exports.queryClient=Bf,exports.use3DSExemptions=function(){var t=this;return Pf({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,wh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useAICreateWorkflow=function(t,n){return void 0===n&&(n={}),Df(function(e){return wh.getInstance().generateAIWorkflowRoutes(t,e).then(function(e){return null==e?void 0:e.data})},e.__assign(e.__assign({},n),{useErrorBoundary:!1}))},exports.useAccountCode=Uf,exports.useAddToRiskList=function(){return Df(function(e){var t=e.paymentId,n=e.payload;return wh.getInstance().addToRiskList(t,n)})},exports.useAllFeatureFlags=function(n){var o=this,r=Pf({queryKey:["all-feature-flags",Object.values(n).filter(Boolean)],queryFn:function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getFeatureFlagIdAll({accountCode:n.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!n.account_code&&!!n.organization_code&&!!n.email,cacheTime:9e5,useErrorBoundary:!1}),a=Sf();return t.useEffect(function(){a.setQueryData(["cached-feature-flags"],r)},[r,a]),r},exports.useAllowListDetail=function(e,t,n){return Pf(["allow-list-detail",e],function(){return wh.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,r,a){return Pf(["black-list-detail",e,t,o,r,a],function(){return wh.getInstance().getBlacklistDetail(e,t,n,o,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})},exports.useBulkCreateInstallmentsPlans=function(){return Df(["bulk-create-installments-plans"],function(e){var t=e.payload;return wh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkDeleteInstallmentsPlans=function(){return Df(["bulk-delete-installments-plans"],function(e){var t=e.payload;return wh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})},exports.useBulkToggleMethod=function(t,n){var o=this;return void 0===n&&(n=null),Df(function(n){return e.__awaiter(o,void 0,void 0,function(){var o,r,a,i,s,u;return e.__generator(this,function(e){switch(e.label){case 0:return o=wh.getInstance(),r=n.map(function(e){return o.putSmartRoutingToggleMethod(t,e.paymentMethod,e.active,e.routingType)}),[4,Promise.allSettled(r)];case 1:return a=e.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),u=i.map(function(e,t){return{paymentMethod:n[t].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:n.length,errors:u}]}})})},n)},exports.useCachedFeatureFlag=function(t){var n,o,r=Sf(),a=r.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.status)),s=Pf({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=r.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return e.__assign(e.__assign({},s),{isLoading:i})},exports.useCancelReport=function(){return Df(function(e){return wh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})},exports.useCancelSubscription=function(){return Df(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useChangePasswordV2=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().changePasswordV2(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useChangePaymentsWebhook=function(){return Df(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return wh.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 Df(["change-blacklist"],function(e){return wh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStatusItemBlackList=function(){return Df(["change-blacklist-item"],function(e){return wh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useChangeStylingSettings=function(){return Df(function(e){var t=e.accountCode,n=e.payload;return wh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useChangeTemplateStatus=function(){var t=this;return Df(["PATCH/template-reporting/report-templates/status"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().changeTemplateStatus(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useChargebacksUpload=function(){return Df(function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,r=e.handleSetProgress;return wh.getInstance().uploadChargebacks(t,n,o,r)})},exports.useChartAssistantSocket=function(){var e=t.useRef(null),n=t.useRef(null),o=t.useRef(null),r=t.useState(!1),a=r[0],i=r[1],s=t.useState(null),u=s[0],c=s[1],l=t.useState(null),d=l[0],p=l[1],h=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null)},[]),f=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),p(null);try{var t=new WebSocket("".concat(_h["WS_URL_".concat(_h.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=t,t.onopen=function(){i(!0);var e=localStorage.getItem("token");e&&t.send(JSON.stringify({type:"auth",token:e})),n.current=setInterval(function(){t.readyState===WebSocket.OPEN?t.send(JSON.stringify({type:"ping"})):(h(),i(!1))},3e4)},t.onmessage=function(e){try{var t=JSON.parse(e.data);c(t)}catch(e){p("Failed to parse server response")}},t.onerror=function(e){p("Connection error occurred"),i(!1)},t.onclose=function(e){i(!1),h(),e.wasClean||1e3===e.code||(o.current=setTimeout(function(){f()},5e3))}}catch(e){p("Failed to establish connection")}},[]),g=t.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}))},[]),m=t.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=t.useCallback(function(){c(null)},[]),v=t.useCallback(function(){n.current&&(clearInterval(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null),e.current&&(i(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return t.useEffect(function(){return f(),function(){h(),v()}},[]),{subscribe:g,unsubscribe:m,disconnect:v,connect:f,clearChartData:y,isConnected:a,chartData:u,connectionError:d}},exports.useChartExecute=function(e){return Pf(["chartgpt-chart-execute",e],function(){return wh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})},exports.useCloneTemplate=function(){var t=this;return Df(["POST/template-reporting/report-templates/clone"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().cloneReportTemplate(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCommunicationDetails=function(e,t){return Pf(["fetch-communication-details",e],function(){return wh.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 Pf(["fetch-communications",e],function(){return wh.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.useCommunicationsByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-communications-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-day",o)];case 1:return r=e.sent(),[2,(a=r.data,i=o.start_date,s=o.end_date,u=a.plots||[],c=u.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=u.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=u.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=$f(null==c?void 0:c.rows,i,s),h=$f(null==l?void 0:l.rows,i,s),f=$f(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Kf(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Kf(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,u,c,l,d,p,h,f})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsBySubstatus=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-communications-by-substatus",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-by-substatus",o)];case 1:return r=e.sent(),[2,Qf(r.data)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useCommunicationsFilters=function(){return Pf(["fetch-communications-filters"],function(){return wh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useCommunicationsSubstatusByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-communications-substatus-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/communications-substatus-by-day",o)];case 1:return r=e.sent(),[2,Yf(r.data,o.start_date,o.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useConfirmedOtpMfa=function(){return Df(function(e){return wh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})},exports.useCountRowsForReport=function(){return Df(function(e){return wh.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 Df(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,o,r,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.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 Df(function(n){return e.__awaiter(t,void 0,void 0,function(){var t,o,r,a,i;return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().createChartGPTChart(n)];case 1:if(t=e.sent(),!(o=null!==(a=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.chartgpt_id)&&void 0!==a?a:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:o}]}})})},{useErrorBoundary:!1})},exports.useCreateChart=function(){return Df(function(e){return wh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateChartWithTimezone=function(){return Df(function(e){return wh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateInstallmentsPlan=function(){return Df(["create-installments-plan"],function(e){var t=e.payload;return wh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useCreateMonitorTemplate=function(e){return Df(function(t){return wh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})},exports.useCreateMonitorThreshold=function(e){return Df(function(t){return wh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},exports.useCreateOperationTransaction=function(){return Df(function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,r=e.action;return wh.getInstance().createOperationTransaction(t,n,o,r)})},exports.useCreateOrgRole=function(){return Df(function(e){var t=e.payload;return wh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreatePaymentLinks=function(){return Df(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.useCreateReconciliationAlert=function(){return Df(["POST/reconciliation/alerts"],function(e){return wh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Bf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useCreateReconciliationReportTemplate=function(t){var n=this;return Df(function(){return wh.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(r){switch(r.label){case 0:return[4,Bf.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Bf.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Bf.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){Bf.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Bf.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})},exports.useCreateReconciliationsReportV2=function(){return Df(function(e){return wh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReconciliationsReportV3=function(){return Df(function(e){return wh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateReportTemplate=function(t){var n=this;return Df(function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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,Bf.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return o.sent(),n=Bf.getQueryData(["GET/reports/templates"]),Bf.setQueryData(["GET/reports/templates"],function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Bf.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Bf.invalidateQueries({queryKey:["GET/reports/templates"]})}})},exports.useCreateReportV2=function(){return Df(function(e){return wh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateRoles=function(){return Df(function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useCreateSamlConfig=function(){return Df(function(e){return wh.getInstance().createSamlConfig(e)})},exports.useCreateSchedule=function(){var t=this;return Df(["POST/template-reporting/report-schedules"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().createReportSchedule(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useCreateScheduledReport=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})},exports.useCreateSubscription=function(){return Df(["post-subscription"],function(e){return wh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})},exports.useCreateTemplate=function(){var t=this;return Df(["POST/template-reporting/report-templates"],function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().createTemplateReporting(n).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useCreateUserAuth0=function(){return Df(function(e){return wh.getInstance().createUserAuth0(e)})},exports.useCreateWorkflow=function(t,n,o){var r=this;void 0===o&&(o=null);var a=(null==o?void 0:o.basePath)||exports.SmartRouting.DEFAULT_ROUTING_TYPE;return Df(function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().postSmartRoutingCreateWorkflow(t,n,a).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},o)},exports.useDeleteAccountsUserMassive=function(){return Df(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return wh.getInstance().deleteAccountsUserMassive(t,n,o)})},exports.useDeleteAllowlistItem=function(){return Df(["delete-allowlist-item"],function(e){return wh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteBlackListType=function(){return Df(["delete-blacklist"],function(e){var t=e.black_list_code;return wh.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 Df(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return wh.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 Df(function(e){return wh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useDeleteCustomizedApiKeys=function(){return Df(function(e){var t=e.code;return wh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useDeleteInstallmentsPlan=function(){return Df(["delete-installments-plan"],function(e){var t=e.code;return wh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteOrgRole=function(){return Df(function(e){return wh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeletePaymentLink=function(){return Df(["post-delete-payment-link"],function(e){var t=e.code;return wh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteReconciliationAlert=function(){return Df(["DELETE/reconciliation/alerts"],function(e){return wh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Bf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useDeleteReportTemplate=function(){return Df(function(e){return wh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteRoles=function(){return Df(function(e){return wh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})},exports.useDeleteSamlConfig=function(){return Df(function(){return wh.getInstance().deleteSamlConfig()})},exports.useDeleteSchedule=function(){var t=this;return Df(["DELETE/template-reporting/report-schedules"],function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().deleteReportSchedule(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDeleteScheduledReport=function(){return Df(function(e){return wh.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 Df(["DELETE/template-reporting/report-templates"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().deleteReportTemplate(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useDeleteUserTeamV2=function(){return Df(function(e){var t=e.userCode,n=e.organizationCode;return wh.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,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(){return wh.getInstance().deleteSmartRoutingVersion(o,n,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useDeleteWebhookV2=function(e){return Df(function(e){var t=e.code,n=e.accountCode;return wh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useDisableSchedule=function(){var t=this;return Df(["PATCH/template-reporting/report-schedules/disable"],function(n){var o=n.scheduleId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().disableReportSchedule(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})},exports.useDuplicateAccount=function(){return Df(function(t){var n=e.__spreadArray([exports.DuplicateSetting.ACCOUNT],t.duplicate_order,!0);return wh.getInstance().duplicateAccount(e.__assign(e.__assign({},t),{duplicate_order:n}))})},exports.useDuplicateVersion=function(e,t){var n=e.versionCode,o=e.accountCode,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(){return wh.getInstance().postSmartRoutingDuplicateVersion(o,String(n),a).then(function(e){return null==e?void 0:e.data})},t)},exports.useEditOrgRole=function(){var t=this;return Df(function(n){var o=n.payload,r=n.id;return e.__awaiter(t,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().editOrgRole({payload:o,id:r})];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEditPaymentLinks=function(){return Df(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return wh.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 Df(function(n){var o=n.payload,r=n.id,a=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,wh.getInstance().editRoles({payload:o,id:r},a)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})},{useErrorBoundary:!1})},exports.useEmailVerification=function(e){return Pf(["email-verification",e],function(){return wh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})},exports.useExcludeUsers=function(){return Df(function(e){var t=e.payload,n=e.organizationCode;return wh.getInstance().mfaExcludeUsers(t,n)})},exports.useExportApiLogs=function(){return Df(function(e){return wh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportDashboardLogs=function(){return Df(function(e){return wh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportMonitorsLogs=function(){return Df(function(e){return wh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})},exports.useExportWebhooksLogs=function(){return Df(function(e){return wh.getInstance().postExportWebhooksLogs(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 Pf(["feature-flags",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getFeatureFlagId(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})},exports.useFetchUserExportDetail=function(){var t=this,n=Sf();return function(o){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,n.fetchQuery(["user-export-status",o],function(){return wh.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}},exports.useFirebaseUserSubscribe=function(e){return Df(function(e){var t=e.payload;return wh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useGenerateFeedback=function(t){return void 0===t&&(t={}),Df(function(e){return wh.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=qf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pf({queryKey:["accounts",o],queryFn:function(){return wh.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 Pf(["accountsV2-by-user",e],function(){return e?wh.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 Pf({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,wh.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 Pf(["accountsV2",e],function(){return wh.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 Pf(["config-rules"],function(){return wh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})},exports.useGetAllOrganizations=function(){return Pf(["fetch-all-organizations",qf()],function(){return wh.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 Pf(["GET/reconciliation/advancements/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/agenda/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/alerts/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/fees/list",t,n],function(){return wh.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 Pf(["GET/reconciliation/sales/list",t,n],function(){return wh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetAllTableColumns=function(e){return Pf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return wh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.useGetAllowedIps=function(){return Pf(["developers-get-allowed-ips"],function(){return wh.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.useGetApiLogsByTransactionCode=function(e,t){return Pf(["api-logs-by-transaction",e,t],function(){return wh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsDetailByPaymentCode=function(e){return Pf(["api-logs-detail",e],function(){return wh.getInstance().getApiLogsDetailByPaymentCode(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})},exports.useGetApiLogsV3=function(t){var n=this,o=t.paymentCode,r=t.enabled;return Pf({queryKey:["api-logs-v3",o],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===r||r)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetAuditEvents=function(e){return Pf(["events",e],function(){return wh.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.useGetAuditExportDownload=function(e,t,n){return void 0===t&&(t=!1),Pf(["audit-export-download",e],function(){return wh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})},exports.useGetAuditExportsList=function(e,t){return void 0===t&&(t=!0),Pf(["audit-exports-list",e],function(){return wh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})},exports.useGetAuditLogsFilters=function(){return Pf(["/cms/audit-logs-filters"],function(){return wh.getInstance().useGetAuditLogsFilters().then(function(e){return nh(e)?sh:null==e?void 0:e.data}).catch(function(){return sh})})},exports.useGetAuditMonitorEventDetail=function(e){return Pf(["audit-monitor-event-detail",e],function(){return wh.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 Df(function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getBatchRefundProcessedFileDownload(o,r,a).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})},exports.useGetBatchRefundUserFileDownload=function(){var t=this;return Df(function(n){var o=n.batchRefundId,r=n.organizationCode,a=n.accountCode;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getBatchRefundUserFileDownload(o,r,a).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),Pf(["batch-refunds",t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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,t){return void 0===t&&(t=!0),Pf(["get-black-list",e],function(){return wh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})},exports.useGetBlockListSummary=function(e,t,n){return Pf(["get-block-list-summary",e,t,n],function(){var o=wh.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 Pf(["GET/catalog/card-brands"],function(){return wh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetChartFeedback=function(t){var n=this,o=t.chartCode,r=t.enabled;return Pf(["chart-feedback",o],function(){return e.__awaiter(n,void 0,void 0,function(){var t,n,r,a,i;return e.__generator(this,function(e){switch(e.label){case 0:t=wh.getInstance(),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.getChartFeedback(o)];case 2:return n=e.sent(),(r=null==n?void 0:n.data)&&r.rating?[2,r]:[2,null];case 3:if(a=e.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===r||r)&&!!o,staleTime:3e5})},exports.useGetChartsByUser=function(){return Pf(["chartgpt-user-charts"],function(){return wh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetChartsByUserWithResults=function(){var t=this;return Pf(["chartgpt-user-charts-with-results"],function(){return e.__awaiter(t,void 0,void 0,function(){var t,n,o,r=this;return e.__generator(this,function(a){switch(a.label){case 0:return[4,(t=wh.getInstance()).getChartsByUser()];case 1:return n=a.sent(),o=(null==n?void 0:n.data)||[],[4,Promise.all(o.map(function(n){return e.__awaiter(r,void 0,void 0,function(){var o,r,a,i,s,u,c,l;return e.__generator(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,t.executeChartGPTChart(n.code)];case 1:return o=d.sent(),[2,e.__assign(e.__assign({},n),{user_prompt:null!==(i=null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.user_prompt)&&void 0!==i?i:n.user_prompt,unit_to_display:null!==(u=null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.unit_to_display)&&void 0!==u?u:n.unit_to_display,results:null!==(l=null===(c=null==o?void 0:o.data)||void 0===c?void 0:c.results)&&void 0!==l?l:[]})];case 2:return r=d.sent(),console.error("Failed to execute chart ".concat(n.chart_id,":"),r),[2,e.__assign(e.__assign({},n),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,a.sent()]}})})})},exports.useGetCheckouts=function(t,n){var o=t.accountCode;return Pf(["checkouts",o],function(){return wh.getInstance().getCheckouts({accountCode:o}).then(function(e){return e.data})},e.__assign({cacheTime:0,enabled:Boolean(o),useErrorBoundary:!1},n))},exports.useGetConditionalConfigRules=function(){return Df(function(e){return wh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetConfigAllowlist=function(e,t){return Pf(["get-cofig-allow-list",e],function(){return wh.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 Pf(["connections"],function(){return wh.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,o=e.basePath,r=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return Pf(["fetch-connections-by-payment-method",n,t,r],function(){return wh.getInstance().getConnectionsByPaymentMethod(t,n,r).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),Pf(["countries",e],function(){return wh.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 Pf(["countries-v2",n],function(){return wh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})},exports.useGetCountryData=function(e){return Pf(["checkout-builder-country-data",e],function(){return wh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},exports.useGetCredentials=function(t){var n=t.password,o=t.accountCode,r=t.otp,a=t.mfaToken;return Pf(["developers"],function(){return wh.getInstance().getDeveloperCredentials(n,o,r,a).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 Df(function(t){var n=t.password,o=t.accountCode,r=t.otp,a=t.mfaToken;return wh.getInstance().getDeveloperCredentials(n,o,r,a).then(function(t){return e.__assign(e.__assign({},null==t?void 0:t.data),{isValid:!0})}).catch(function(e){var t,n,o;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(o=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===o?void 0:o.data}})})},exports.useGetCustomizedApiKeys=function(e){return Pf(["fetch-customized-api-keys",e],function(){return wh.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 Pf(["fetch-customized-api-keys-accounts"],function(){return wh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysMembers=function(){return Pf(["fetch-customized-api-keys-members"],function(){return wh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetCustomizedApiKeysProducts=function(){return Pf(["fetch-customized-api-keys-products"],function(){return wh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})},exports.useGetCustomizedApiKeysToken=function(){return Df(function(e){var t=e.code,n=e.password,o=e.otp,r=e.mfaToken;return wh.getInstance().getCustomizedApiKeysToken(t,n,o,r).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.useGetDashboardStaticContents=function(){return Pf(["/cms/static-contents"],function(){return wh.getInstance().getDashboardStaticContents().then(function(e){var t,n;return nh(e)?uh:(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 Pf(["dialogs"],function(){return wh.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),Pf(["reports/".concat(e)],function(){return wh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})},exports.useGetEmailOtp=function(){return Df(function(){return wh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})},exports.useGetHashPylon=function(){var t=this;return Pf(["fetch-hash-pylon"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetImpersonationEnabled=function(){return Pf(["fetch-impersonation-enabled"],function(){return wh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})},exports.useGetImpersonationUsers=function(){return Pf(["fetch-impersonation-users"],function(){return wh.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 Pf(["get-insights-reports",e],function(){return wh.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 Pf(["get-insights-reports-again",e],function(){return wh.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.useGetInstallmentsPlans=function(e,t,n){return void 0===t&&(t=!0),Pf(["installments-plans",e,n],function(){return wh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})},exports.useGetIntegrationByAccountV2=function(e){var t=e.accountCode,n=e.organizationCode,o=qf();return Pf(["organizations-account-integrations",t,n],function(){return wh.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 Pf(["integration-params",t,o],function(){return t.includes("undefined")?{}:wh.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 Pf(["languages"],function(){return wh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})},exports.useGetLocales=function(){return Pf(["/cms/locales"],function(){return wh.getInstance().getLocales().then(function(e){return nh(e)?lh:e.data}).catch(function(){return lh})})},exports.useGetLoginMethods=function(){return Pf({queryKey:["get-login-methods"],queryFn:function(){return wh.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 Pf(["mfa-config",n],function(){return wh.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 Pf(["mfa-excluded-users",n],function(){return wh.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 Pf(["mfa-enforcement-status",e.accountCode],function(){return wh.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 Pf(["menu"],function(){return wh.getInstance().getMenu().then(function(e){return nh(e)?ch:null==e?void 0:e.data}).catch(function(){return ch})})},exports.useGetMergedNotifications=function(){return Pf(["notifications-merged"],function(){return wh.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 Pf(Gf({paymentMethodType:n,type:o}),function(){return wh.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 Pf({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,wh.getInstance().getNetworkTokensOnboardingByOrganization(t)];case 1:return[2,e.sent().data]}})})},enabled:!!t,useErrorBoundary:!1,cacheTime:0})},exports.useGetNotificationsCustomer=function(e){return Pf(["notifications-customer",e],function(){return wh.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 Df(function(e){return wh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetOnboardingDetail=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-onboarding-detail",t,n.recipient_id,n.onboarding_id],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getOnboardingDetail(t,n.recipient_id,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&!!n.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})},exports.useGetOnboardingStatus=function(e){var t=e.accountCode,n=e.enabled;return Pf(["onboarding-status",t],function(){return wh.getInstance().getOnboardingStatus(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})},exports.useGetOnboardingTimeline=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-onboarding-timeline",t,n.onboarding_id],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getOnboardingTimeline(t,n.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})},exports.useGetOrgPermissionsCatalog=function(){return Pf(["fetch-org-permissions-catalog"],function(){return wh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetOrgRolesPermissions=function(){return Pf(["fetch-org-roles-permissions"],function(){return wh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetOrganization=function(){return Pf(["fetch-organizations"],function(){return wh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})},exports.useGetOrganizationConfigs=function(){return Pf({queryKey:["organization-configs"],queryFn:function(){return wh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})},exports.useGetOrganizationKeysMetadata=function(){return Df(function(){return wh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})},exports.useGetPaymentFilters=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=exports.PaymentFiltersSection.PAYMENTS),Pf(["payment-filters",e,t],function(){return wh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})},exports.useGetPaymentLinkByCode=function(e){return Pf(["payment-link"],function(){return wh.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 Pf(["fetch-payment-links",e,t],function(){return wh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})},exports.useGetPaymentMethodAccounts=function(t,n){var o=t.paymentMethod,r=t.organizationCode;return Pf(Vf({paymentMethod:o,organizationCode:r}),function(){return wh.getInstance().getPaymentMethodAccounts({paymentMethod:o,organizationCode:r}).then(function(e){return null==e?void 0:e.data})},e.__assign({cacheTime:0,enabled:Boolean(o),useErrorBoundary:!1},n))},exports.useGetPaymentMethodsAndProviders=function(){return Pf({queryKey:["/payment-methods/providers"],queryFn:function(){return wh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})},exports.useGetPaymentMetricsFilters=function(){return Pf(["payment-metrics-filters"],function(){return wh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetPaymentStatusesStyles=function(){return Pf(["/payment/statuses/style"],function(){return wh.getInstance().useGetPaymentStatusesStyles().then(function(e){return nh(e)?oh:null==e?void 0:e.data}).catch(function(){return oh})})},exports.useGetPaymentTransactionsDetails=function(e){var t=e.transaction_code,n=e.enabled;return Pf(["payment-transaction-details",t],function(){return wh.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,r=t.enabled,a=void 0===r||r,i=wh.getInstance();return Pf(["get-payment-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:a,cacheTime:500,useErrorBoundary:!1})},exports.useGetPaymentsMethodsByCountry=function(e){var t=qf();return Pf(["payment-methods",e],function(){return wh.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 Pf(["GET/payout-detail",JSON.stringify(e)],function(){var t=wh.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=qf();return Pf(["GET/payout-history-detail",JSON.stringify(e)],function(){return wh.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.useGetPayoutTimeline=function(t,n){var o=this;void 0===n&&(n=!0);var r=qf();return Pf(["getPayoutTimeline",t,r],function(){return e.__awaiter(o,void 0,void 0,function(){var n;return e.__generator(this,function(e){return n=wh.getInstance(),t?[2,n.getPayoutTimeline(t,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:n&&!!t&&!!r,cacheTime:500,useErrorBoundary:!1})},exports.useGetPayoutTransactionDetail=function(e){return Pf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return wh.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.useGetPendingDuplicateAccounts=function(e){return Pf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return wh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})},exports.useGetPermissions=function(e,t){return Pf(["fetch-permissions",e,t],function(){var e,t,n,o=localStorage.getItem("account"),r=localStorage.getItem("user"),a=o&&JSON.parse(o),i=r&&JSON.parse(r);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.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 Pf(["fetch-permissions-catalog"],function(){return wh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useGetProfile=function(){return Pf(["fetch-profile"],function(){return wh.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,r=qf();return Pf(["GET/useGetProofOfCancel",r,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getProofOfCancel(t,r,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProofOfPayment=function(t,n){var o=this,r=qf();return Pf(["GET/useGetProofOfPayment",r,t,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getProofOfPayment(t,r,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!r&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.useGetProviderParams=function(e){var t=qf();return Pf(["organizations-provider-params",e],function(e){var n=e.queryKey;return wh.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.useGetRecipientById=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-recipient-by-id",t,n.recipient_id],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRecipientById(t,n.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&!!n.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})},exports.useGetRecipients=function(t,n,o){var r=this;return void 0===o&&(o=!0),Pf(["get-recipients",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRecipients(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t&&o,cacheTime:0,useErrorBoundary:!1})},exports.useGetReconciliationActive=function(){return Pf(["GET/v1/reconciliation/active"],function(){return wh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})},exports.useGetReconciliationAgendaInsightsByKey=function(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/agenda/insights",t,n],function(){return wh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:o,useErrorBoundary:!1})},exports.useGetReconciliationFilters=function(){return Pf(["GET-reconciliation-filters"],function(){return wh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountConflictList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-amount-conflict-list",t],function(){return wh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsAmountToBeSettledSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return wh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflict-date-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflict-date-list",t],function(){return wh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictDateSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflict-date-summary",t],function(){return wh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsConflictsSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-conflicts-summary",t],function(){return wh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsFeesChargedSummary=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-fees-charged-summary",t,n],function(){return wh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesAggregators=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return wh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesList=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return wh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsIncorrectFeesSummary=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return wh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-confirm-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-confirm-list",t],function(){return wh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotConfirmSummary=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-confirm-summary",t],function(){return wh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsNotReconciledList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-not-reconciled-list",t],function(){return wh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledAggregators=function(e){var t=e.body,n=e.dateFilter,o=e.transactionType,r=e.enabled;return Pf(["reconciliation-insights-reconciled-aggregators",t,n,o],function(){return wh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledList=function(e){var t=e.body,n=e.dateFilter,o=e.transactionType,r=e.enabled;return Pf(["reconciliation-insights-reconciled-list",t,n,o],function(){return wh.getInstance().getReconciliationInsightsReconciledList(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciledSummary=function(e){var t=e.body,n=e.dateFilter,o=e.enabled;return Pf(["reconciliation-insights-reconciled-summary",t,n],function(){return wh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByAccount=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return wh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByCurrency=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return wh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsReconciliationRateByProvider=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return wh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictAggregators=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-status-conflict-aggregators",t],function(){return wh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationInsightsStatusConflictList=function(e){var t=e.body,n=e.enabled;return Pf(["reconciliation-insights-status-conflict-list",t],function(){return wh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})},exports.useGetReconciliationMetrics=function(e,t){return Pf(["fetch-reconciliation-metrics",e],function(){return wh.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 Pf(["/reconciliation/transaction/statuses/style"],function(){return wh.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return nh(e)?ah:null==e?void 0:e.data}).catch(function(){return ah})},{useErrorBoundary:!1})},exports.useGetReconciliationTransactions=function(e,t){return Pf(["fetch-reconciliation-transaction",e],function(){return wh.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 Pf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return wh.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 Pf(["GET/reconciliation/reports/templates"],function(){return wh.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,r=qf();return Pf(["getRefundPdf",t,r,n],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRefundPdf(t,r,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!t&&!!r,useErrorBoundary:!1})},exports.useGetReportColumns=function(t,n,o){var r=this;return Pf(["GET/reports/columns/".concat(n,"/").concat(o)],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(t){return[2,wh.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),[Hf],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})},exports.useGetReportTemplates=function(e){return Pf(["GET/reports/templates"],function(){return wh.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 Pf(["reports"],function(){return wh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetReportsListMultiEnv=function(e){return void 0===e&&(e=!0),Pf(["reports-multi-env"],function(){return wh.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 Pf(Wf({paymentMethodType:n,type:o}),function(){return wh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then(function(e){return null==e?void 0:e.data})},t)},exports.useGetRoles=function(){return Pf(["fetch-roles"],function(){return wh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useGetRolesForImpersonation=function(t){var n=this;return Pf({queryKey:["roles-for-impersonation",t],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getRolesForImpersonation(t).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!t})},exports.useGetRolesPermissions=function(){return Pf(["fetch-rolespermissions"],function(){return wh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})},exports.useGetRoutingMonitorsTemplate=function(e,t){return Pf(["fetch-routing-monitors-template",e],function(){return wh.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 Pf(["fetch-routing-monitors-templates",e],function(){return wh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetRule=function(){return Df(function(e){return wh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useGetSamlConfig=function(e){return Pf(["fetch-organization-saml-config",e],function(){return wh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})},exports.useGetScheduledReportsList=function(e){return Pf(["GET/scheduled-reports",e],function(){return wh.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.useGetSettlements=function(e,t){return Pf(["fetch-reconciliation-settlements",e],function(){return wh.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 Pf(["smart-routing-condition-payment-method",e,t],function(){return wh.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,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-condition-types",e,t,n],function(){return wh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})},exports.useGetSmartRoutingConditionTypesValues=function(e,t){return Pf(["smart-routing-condition-types-values",t,e],function(){return wh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingDataReport=function(e){return Pf(["data-report",e],function(){return wh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingDeclineGroups=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-decline-groups",e,t],function(){return wh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingMethods=function(e,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-methods",e,t],function(){return wh.getInstance().getSmartRoutingMethods(e,t).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,o){return void 0===o&&(o=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-next-route",e,n,t,o],function(){return wh.getInstance().getSmartRoutingNextSteps(e,t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})},exports.useGetSmartRoutingPaymentRoute=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-payment-route",e,t,n],function(){return wh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})},exports.useGetSmartRoutingSearchConditionValues=function(e){var t=e.text,n=e.conditionType;return Pf(["smart-routing-search-condition-values",t,n],function(){return wh.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,t){return void 0===t&&(t=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-simulate-condition-type-values",e,t],function(){return wh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})},exports.useGetSmartRoutingWorkflow=function(e,t,n){return void 0===n&&(n=exports.SmartRouting.DEFAULT_ROUTING_TYPE),Pf(["smart-routing-workflow",t,e,n],function(){return wh.getInstance().getSmartRoutingWorkflow(e,t,n).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,o=e.routingType,r=void 0===o?exports.SmartRouting.DEFAULT_ROUTING_TYPE:o;return Pf(["smart-routing-workflow-version",n,t,r],function(){return wh.getInstance().getSmartRoutingWorkflowVersion(t,n,r).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 Pf(["styling-sdk-dynamic",t],function(){return wh.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.useGetStylingSettingsV2=function(e){var t=e.accountCode;return Pf(["styling-settings-v2",t],function(){return wh.getInstance().getStylingSettingsV2({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.useGetSubscriptionByCode=function(e,t){return void 0===t&&(t=!0),Pf(["subscription",e],function(){return wh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})},exports.useGetSubscriptionPayments=function(e,t,n,o){return void 0===o&&(o=!0),Pf(["subscription-payments",e,t,n],function(){return wh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&o,cacheTime:0})},exports.useGetTeamsFiltersMembers=function(){var e=qf();return Pf(["teams-filters-members"],function(){return wh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})},exports.useGetTimeZoneCatalog=function(){return Pf(["timezone-catalog"],function(){return wh.getInstance().useGetTimeZoneCatalog().then(function(e){return nh(e)?ih:null==e?void 0:e.data}).catch(function(){return ih})})},exports.useGetTimezonePaymentLink=function(e){return Pf(["timezone"],function(){return wh.getInstance().getTimezone(e).then(function(e){return nh(e)?ih:null==e?void 0:e.data}).catch(function(){return ih})},{enabled:!0,keepPreviousData:!0})},exports.useGetTokenValidation=function(){return Df(function(e){var t=e.password,n=e.otp;return wh.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,r=t.enabled,a=void 0===r||r,i=wh.getInstance();return Pf(["get-payment-transaction-details-v2",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionHistoryByPaymentCode=function(e){var t=e.payment_code,n=e.enabled;return Pf(["transaction-history",t],function(){return wh.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,r=t.enabled,a=void 0===r||r,i=wh.getInstance();return Pf(["get-payment-transaction-raw-response",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,i.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&a,cacheTime:0,useErrorBoundary:!1})},exports.useGetTransactionStatusesStyles=function(){return Pf(["/transaction/statuses/style"],function(){return wh.getInstance().useGetTransactionStatusesStyles().then(function(e){return nh(e)?rh:null==e?void 0:e.data}).catch(function(){return rh})},{cacheTime:36e5,useErrorBoundary:!1})},exports.useGetTranslations=function(){var e=localStorage.getItem("lang")||"en";return Pf(["translations",e],function(){return wh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})},exports.useGetUnifiedExportStatus=function(e){var t=e.tab,n=e.exportId,o=e.enabled,r=void 0!==o&&o,a=e.onSuccess;return Pf(["unified-export-status",t,n],function(){return wh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&r,cacheTime:0,useErrorBoundary:!1,onSuccess:a})},exports.useGetUnifiedExportsList=function(e){var t=e.tab,n=e.page,o=void 0===n?0:n,r=e.size,a=void 0===r?10:r,i=e.enabled;return Pf(["unified-exports-list",t,o,a],function(){return wh.getInstance().getUnifiedExportsList(t,o,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})},exports.useGetUserExportStatus=function(e){var t=e.exportCode,n=e.enabled;return Pf(["user-export-status",t],function(){return wh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})},exports.useGetUserFull=function(){var t=this;return Pf(["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,wh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})},exports.useGetUsersToImpersonate=function(t,n,o,r,a,i){var s=this;return void 0===o&&(o=1),void 0===r&&(r=10),Pf(["get-users-to-impersonate",t,n,o,r,a,i],function(){return e.__awaiter(s,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getUsersToImpersonate(t,n,o,r,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 Pf(["validate-opsgenie-key",e],function(){return wh.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 Pf(["params-catalog"],function(){return wh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})},exports.useGetWebhookTimeline=function(t){var n=this,o=t.paymentCode,r=t.enabled;return Pf({queryKey:["webhook-timeline",o],queryFn:function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===r||r)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})},exports.useGetWebhooksV2Detail=function(e){var t=e.accountCode,n=e.enabled;return Pf(["webhooks-detail",t],function(){return wh.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 Pf(["webhooks",t,n],function(){return wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-decline-reasons",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-frictionless-vs-challenge",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-3ds-volume-and-count-tx",n,t],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-disputed",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-reasons-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-status-distribution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-win-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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,o){return void 0===n&&(n=!0),Pf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return wh.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:200,cacheTime:200,useErrorBoundary:!1,retry:1})},exports.useInsightsCustomerPaymentsAndFraudMetrics=function(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-customer-payment-fraud-metrics",t,e],function(){return wh.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 Pf(["get-insights-conversion-rate-fallback-metrics",e],function(){return wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-conversion-rate",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 r=this;return void 0===o&&(o={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",t,n],queryFn:function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.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 Pf(["get-insights-home-metrics",e],function(){return wh.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 Pf(["get-insights-overview",e],function(){return wh.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 Pf(["get-insights-overview-v3",e,t],function(){return wh.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,Pf(["get-insights-total-payment-fraud-metrics",t,e],function(){return wh.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,Pf(["get-insights-volume-metrics",t,e],function(){return wh.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,Pf(["get-insights-volume-metrics-v2",t,e,n],function(){return wh.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 Df(function(e){return wh.getInstance().inviteUsersMassive(e,e.organizationCode)})},exports.useInviteUsersMultiaccountMassiveV2=function(){return Df(function(e){return wh.getInstance().inviteUsersMassiveV2(e)})},exports.useIsTesting=zf,exports.useListSubscriptions=function(){return Df(["post-list-subscriptions"],function(e){return wh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})},exports.useListUserExports=function(e){var t=e.page,n=void 0===t?0:t,o=e.pageSize,r=void 0===o?20:o,a=e.enabled;return Pf(["user-exports-list",n,r],function(){return wh.getInstance().listUserExports({page:n,pageSize:r}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})},exports.useLocalStorage=Nf,exports.useLoginMethods=function(){return Df(function(e){return wh.getInstance().changeLoginMethods(e)})},exports.useNetworkTokensOnboarding=function(){var t=this;return Pf({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,wh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})},exports.useNewPostConnectionValidate=function(){return Df(["new-post-connection-validate"],function(){return wh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.useOrganizationCode=qf,exports.usePatchAccountV2=function(){return Df(function(e){var t=e.name,n=e.code,o=e.principal;return wh.getInstance().patchAccountV2({name:t,code:n,principal:o})})},exports.usePatchAddAllowlistItems=function(){return Df(["post-add-allowlist-items"],function(e){var t=e.payload;return wh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchAllowedIps=function(){return Df(["developers-patch-allowed-ips"],function(t){return wh.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 Df(["patch-allowlist"],function(e){var t=e.payload;return wh.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 r=this;return void 0===o&&(o=!0),Pf(["chartgpt-patch-and-execute",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){var o,r,a,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return[4,(o=wh.getInstance()).patchChartGPTChart(t,n)];case 1:return r=e.sent(),a=null==r?void 0:r.data,[4,o.executeChartGPTChart(t)];case 2:return i=e.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!t,retry:!1})},exports.usePatchApiKeysEditNote=function(){return Df(function(e){var t=e.payload,n=e.code,o=e.password;return wh.getInstance().patchApiKeysEditNote(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlist=function(){return Df(["patch-change-status-allowlist"],function(e){var t=e.payload;return wh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChangeStatusAllowlistItem=function(){return Df(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return wh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePatchChartName=function(){return Df(function(e){var t=e.chart_id,n=e.type,o=e.name,r=e.user_prompt,a=void 0===r?"":r;return wh.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePatchConnection=function(){return Df(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return wh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})},exports.usePatchOrganizationKeysNote=function(){return Df(function(e){var t=e.note,n=e.password;return wh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePathCreateCustomizedApiKeys=function(){return Df(function(e){var t=e.payload,n=e.code;return wh.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 Df(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,wh.getInstance().pathNotification(n)];case 1:return[2,null==(t=e.sent())?void 0:t.data]}})})})},exports.usePauseSubscription=function(){return Df(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.usePayoutsFilters=function(t){var n=this;void 0===t&&(t=!0);var o=qf();return Pf(["getPayoutsFilters",o],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Pf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=wh.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 Df(function(e){var t=e.name,n=e.principal;return wh.getInstance().postAccount(t,n)})},exports.usePostAllowlistMultiAccount=function(e,t){return void 0===t&&(t=!0),Pf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return wh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})},exports.usePostApiKeysRoll=function(){return Df(function(e){var t=e.payload,n=e.code,o=e.password;return wh.getInstance().postApiKeysRoll(t,n,o).then(function(e){return e.data}).catch(function(e){return e})})},exports.usePostApiLogs=function(e){return Pf(["api-logs",e],function(){return wh.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 Df(function(e){var t=e.payload;return wh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})},exports.usePostBatchRefundByFile=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Df(["post-blacklist-batch"],function(e){var n=e.blacklist_code,o=e.expiration_days,r=e.file;return wh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:r,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListItems=function(){return Df(["post-blacklist-items"],function(e){var t=e.payload;return wh.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePostBlackListMultiAccount=function(){return Df(["post-blacklist-multi-account"],function(e){var t=e.payload;return wh.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 r;return Pf(["post-black-list",e],function(){return wh.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===(r=e[0])||void 0===r?void 0:r.length)>0&&null!==t,useErrorBoundary:!1})},exports.usePostCall=function(){return Df(function(e){return wh.getInstance().postCall(e)})},exports.usePostChangeStatusConnection=function(){return Df(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.usePostConnectionMultiAccount=function(){return Df(["post-connection"],function(e){var t=e.payload;return wh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})},exports.usePostCreateAllowlistMultiAccount=function(){return Df(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return wh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateCustomizedApiKeys=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateInsightsReport=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCreateRuleMultiAccount=function(){return Df(function(e){var t=e.payload,n=e.accountCode;return wh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostCredentialsValidatePassword=function(){return Df(function(e){var t=e.passwordOtp;return wh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostCredentialsValidatePasswordRegularUser=function(){return Df(function(e){var t=e.password;return wh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostCredentialsWithOtpMfa=function(){return Df(function(e){var t=e.password,n=e.accountCode,o=e.otp,r=e.mfaToken;return wh.getInstance().getDeveloperCredentials(t,n,o,r).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})},exports.usePostDefaultRoutes=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.usePostEditRule=function(){return Df(function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return wh.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 Pf(["POST/fraud-transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Df(["post-get-allowlist-items"],function(e){var t=e.payload;return wh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})},exports.usePostGetAllowlistMultiAccount=function(){return Df(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return wh.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.search,r=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=qf();return Pf(["fetch-post-members-v2",t,n,o,r,a,i,s,u,c],function(){return wh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:r,roleId:a,statuses:i,roleIds:s,page:u,pageSize:c}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})},exports.usePostNetworkTokensOnboarding=function(){var t=this;return Df(function(n){var o=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})},exports.usePostOrganizationConfigs=function(){return Df(function(e){return wh.getInstance().postOrganizationConfigs(e)})},exports.usePostOrganizationKeysMarkRevealed=function(){return Df(function(e){var t=e.password,n=e.otp,o=e.mfaToken;return wh.getInstance().postOrganizationKeysMarkRevealed(t,n,o).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysRoll=function(){return Df(function(e){var t=e.password,n=e.otp,o=e.mfaToken;return wh.getInstance().postOrganizationKeysRoll(t,n,o).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostOrganizationKeysTamRequest=function(){return Df(function(e){var t=e.password,n=e.otp,o=e.mfaToken;return wh.getInstance().postOrganizationKeysTamRequest(t,n,o).then(function(e){return(null==e?void 0:e.data)||null})})},exports.usePostPaymentsEvaluated=function(e){return Pf(["fetch-payments-evaluated",e],function(){return wh.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 Pf(["fetch-payments-lazy",t],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.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 Df(function(e){var t=e.payload;return wh.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})},exports.usePostTransactions=function(t){var n=this;return Pf(["POST/transactions",JSON.stringify(t)],function(){return e.__awaiter(n,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().postTransactions(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!t,cacheTime:0,useErrorBoundary:!1})},exports.usePostUserSettings=function(){return Df(function(e){var t=e.payload;return wh.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})},exports.usePostUserSettingsPinned=function(e){return Df(["pinned-sections"],function(e){var t=e.payload;return wh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})},exports.usePostUserSettingsTables=function(){return Df(function(e){var t=e.payload,n=e.section;return wh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(t){var n=Bf.getQueryData(["fetch-profile"]);t.data&&Bf.setQueryData(["fetch-profile"],e.__assign(e.__assign({},n),{settings:t.data}))}})},exports.usePostUserThemeSettings=function(){return Df(function(e){return wh.getInstance().postUserThemeSettings(e)})},exports.usePostValideStatusConnection=function(){return Df(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return wh.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 Pf(["velocity-rules",e],function(){var t=wh.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 Pf(["webhook-logs",t],function(){return wh.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 Df(function(e){var t=e.payload;return wh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useProviderConversionRatesData=function(){return Pf(["smart-routing-conversion-rates"],function(){return wh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})},exports.useProviderRawResponse=function(){return Df(function(e){var t=e.transactionCode,n=e.payload;return wh.getInstance().postProviderRawResponse(t,n)})},exports.usePublishCheckout=function(n){var o=Uf(),r=t.useRef(o);return r.current=o,Df(function(t){return wh.getInstance().publishCheckout(e.__assign(e.__assign({},t),{accountCode:r.current}))},n)},exports.usePublishVersion=function(t,n){var o=this,r=t.versionCode,a=t.accountCode,i=t.organizationCode,s=t.routingType,u=void 0===s?exports.SmartRouting.DEFAULT_ROUTING_TYPE:s;return void 0===n&&(n=null),Df(function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().postSmartRoutingPublishVersion(a,r,i,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},n)},exports.usePutAccountPrincipal=function(){return Df(function(e){var t=e.account_code;return wh.getInstance().putAccountPrincipal({account_code:t})})},exports.usePutAccountsUserMassive=function(){return Df(function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return wh.getInstance().putAccountsUserMassive(t,n,o)})},exports.usePutBlackListType=function(){return Df(["put-blacklist"],function(e){return wh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.usePutCosts=function(){return Df(function(e){return wh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})},exports.usePutOrganizationConfigsByAccount=function(){return Df(function(e){return wh.getInstance().putOrganizationConfigsByAccount(e)})},exports.useRecoveredPaymentsByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-recovered-payments-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-payments-by-day",o)];case 1:return r=e.sent(),[2,Xf(r.data,o.start_date,o.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRecoveredTPVByDay=function(t,n){return Pf(e.__assign({queryKey:["smart-recovery-recovered-tpv-by-day",t],queryFn:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,o,r;return e.__generator(this,function(e){switch(e.label){case 0:return n=wh.getInstance(),o={start_date:t.start_date||"",end_date:t.end_date||"",organization_code:t.organization_code,account_codes:t.account_code||[],countries:t.countries||[],channels:t.channels||[],focuses:t.focuses||[],timezone:t.timezone},[4,n.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return r=e.sent(),[2,Jf(r.data,o.start_date,o.end_date)]}})})},enabled:!!t.organization_code,staleTime:3e5},n))},exports.useRescheduleSubscription=function(){return Df(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useResendWebhooks=function(){return Df(function(e){var t=e.codes;return wh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})},exports.useResumeSubscription=function(){return Df(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return wh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})},exports.useRetryDuplicateAccount=function(){return Df(function(e){return wh.getInstance().retryDuplicateAccount(e)})},exports.useSaveVersion=function(e,t){var n=e.data,o=e.accountCode,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(){return wh.getInstance().putSmartRoutingUpdateWorkflow(o,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)},exports.useSearchInstallmentsPlans=function(e,t){return void 0===t&&(t=!0),Pf(["search-installments-plans",JSON.stringify(e)],function(){return wh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})},exports.useSearchScheduleById=function(t,n,o){var r=this;return Pf(["POST/template-reporting/schedule-by-id/search",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportScheduleById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!t,useErrorBoundary:!1})},exports.useSearchSchedules=function(t,n){var o=this;return Pf(["POST/template-reporting/schedules/search",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportSchedules(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSearchTemplateById=function(t,n,o){var r=this;return Pf(["POST/template-reporting/template-by-id/search",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportTemplateById(t,n).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!t,useErrorBoundary:!1})},exports.useSearchTemplates=function(t,n){var o=this;return Pf(["POST/template-reporting/templates/search",t],function(){return e.__awaiter(o,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().searchReportTemplates(t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:n,useErrorBoundary:!1})},exports.useSendPaymentNotification=function(t,n,o){var r=this,a=wh.getInstance();return Pf(["send-payment-notification",t,n],function(){return e.__awaiter(r,void 0,void 0,function(){var r,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a.sendPaymentNotification(t,n)];case 1:return r=e.sent(),o.onSuccess(),[2,r.data];case 2:throw i=e.sent(),o.onError(),i;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})},exports.useSetCustodian=function(){return Df(function(){return wh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})},exports.useSmartRoutingCreateDeclinedGroup=function(e){var t=e.accountCode;return Df(function(e){return void 0===e&&(e=null),wh.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,r=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Df(function(){return wh.getInstance().putSmartRoutingUpdateWorkflowName(r,{code:n,name:o},i).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingMultiAccountDeclinedGroupCreate=function(t,n){return void 0===n&&(n={}),Df(function(e){var n=e.payload;return wh.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={}),Df(function(e){var n=e.declinedGroupCode;return wh.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,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(e){return wh.getInstance().simulateSmartRoutingTransaction(n,o,e,a).then(function(e){return null==e?void 0:e.data})},t)},exports.useSmartRoutingToggleFavorite=function(e,t){var n=e.versionCode,o=e.accountCode,r=e.routingType,a=void 0===r?exports.SmartRouting.DEFAULT_ROUTING_TYPE:r;return void 0===t&&(t=null),Df(function(e){return void 0===e&&(e=!1),wh.getInstance().updateSmartRoutingFavorite(o,n,e,a).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),Df(function(e){return void 0===e&&(e=null),wh.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),Df(function(t){return wh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)},exports.useStartUserExport=function(){return Df(function(e){return wh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useSubmitChartFeedback=function(e,t){var n=e.chartCode,o=Sf();return Df(function(e){return wh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var r;o.invalidateQueries(["chart-feedback",n]),null===(r=null==t?void 0:t.onSuccess)||void 0===r||r.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})},exports.useToggleMethod=function(e,t){var n=e.paymentMethod,o=e.active,r=e.accountCode,a=e.routingType,i=void 0===a?exports.SmartRouting.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Df(function(){return wh.getInstance().putSmartRoutingToggleMethod(r,n,o,i).then(function(e){return null==e?void 0:e.data})},t)},exports.useUnInviteUsersV2=function(){return Df(function(e){var t=e.userCode,n=e.organizationCode;return wh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})},exports.useUnifiedExportStart=function(){return Df(function(e){var t=e.tab,n=e.payload;return wh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUnrollUserV2=function(){return Df(function(e){return wh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateInstallmentsPlan=function(){return Df(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return wh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateIsActiveCheckout=function(n){var o=Uf(),r=t.useRef(o);return r.current=o,Df(function(t){return wh.getInstance().updateIsActiveCheckout(e.__assign(e.__assign({},t),{accountCode:r.current}))},n)},exports.useUpdateMFAConfig=function(){return Df(function(e){var t=e.payload,n=e.organizationCode;return wh.getInstance().updateMFAConfig(t,n)})},exports.useUpdateOrganizationStatus=function(){return Df(["patch-organizations"],function(){return wh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})},exports.useUpdateProfile=function(e){return Df(function(e){return wh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUpdateReconciliationAlert=function(){return Df(["UPDATE/reconciliation/alerts"],function(e){return wh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Bf.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})},exports.useUpdateReconciliationReportTemplate=function(e){return Df(function(){return wh.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 Df(function(){return wh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateSamlConfig=function(){return Df(function(e){return wh.getInstance().updateSamlConfig(e)})},exports.useUpdateScheduledReport=function(){return Df(function(e){var t=e.reportCode,n=e.payload;return wh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useUpdateSubscription=function(){return Df(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return wh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})},exports.useUpdateTemplateSelection=function(){var t=this;return Df(["PATCH/template-reporting/report-templates/selection"],function(n){var o=n.templateId,r=n.payload;return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){return[2,wh.getInstance().updateTemplateSelection(o,r).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Bf.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})},exports.useUpdateWebhookV2=function(e){return Df(function(e){var t=e.code,n=e.payload,o=e.accountCode;return wh.getInstance().updateWebhookV2(t,n,o)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})},exports.useUploadBatchRefundsFileV2=function(e){var n=e.fileName,o=e.onSuccess,r=e.onError,a=t.useState(0),i=a[0],s=a[1],u=t.useRef({cancel:function(){return null}}),c=Df(["upload-file-chargeback",n],function(e){var t=wh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:s}),n=t.promise,a=t.cancel;return u.current.cancel=a,n.then(function(e){return null==o||o(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:c,cancelRequest:u.current.cancel,progress:i}},exports.useUploadBatchRefundsV2=function(){return Df(function(e){return wh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})},exports.useUploadFileS3ClientBatchRefunds=function(){var e=t.useRef({cancel:function(){return null}}),n=Df(["upload-file"],function(t){var n=wh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,r=n.cancel;return e.current.cancel=r,o.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:n,cancelRequest:e.current.cancel}},exports.useValiateAllowlistItems=function(){return Df(["validate-allowlist-items"],function(e){return wh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})},exports.useValidateBlockListItems=function(){return Df(["valiate-blacklist-items"],function(e){return wh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})},exports.useValidateCredentials=function(){return Df(function(e){return wh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})},exports.useValidateOrgName=function(){return Df(function(e){return wh.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})},exports.useValidatePasswordStatus=function(){return Df(function(){return wh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})},exports.useViewMoreMetrics=function(e,t){return Pf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return wh.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})},exports.useWorkosAdminPortal=function(){var t=this;return Df(function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosDomainStatus=function(){var t=this;return Pf(["workos-domain-status"],function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosDomainVerificationPortal=function(){var t=this;return Df(function(){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosPasswordReset=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosPasswordReset(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})},exports.useWorkosVerifyMfa=function(){var t=this;return Df(function(n){return e.__awaiter(t,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return[4,wh.getInstance().workosVerifyMfa(n).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})};
|
|
68
68
|
//# sourceMappingURL=index.js.map
|