@yuno-payments/dashboard-api-mfe 0.36.65 → 0.36.67

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.
@@ -220,7 +220,7 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
220
220
  *
221
221
  * This source code is licensed under the MIT license found in the
222
222
  * LICENSE file in the root directory of this source tree.
223
- */"production"===process.env.NODE_ENV?wf.exports=function(){if(xf)return jf;xf=1;var e=x,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return jf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,jf}():wf.exports=(_f||(_f=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};Ef.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ef);var Cf=wf.exports;const Sf=Cf.useSyncExternalStore,Rf=k.createContext(void 0),Tf=k.createContext(!1);function Of(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Rf),window.ReactQueryClientContext):Rf)}const Af=({context:e}={})=>{const t=k.useContext(Of(e,k.useContext(Tf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},If=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Of(n,o);return k.createElement(Tf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},zf=k.createContext(!1);zf.Provider;const Lf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Pf(e,t){return"function"==typeof e?e(...t):!!e}function Df(e,t){const n=Af({context:e.context}),o=k.useContext(zf),a=k.useContext(Lf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=rf.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=rf.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=rf.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(Sf(k.useCallback((e=>{const t=o?()=>{}:r.subscribe(rf.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&Pf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function qf(e,t,n){return Df(zh(e,t,n),ff)}function Nf(e,t,n){const o=function(e,t,n){return Vh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Af({context:o.context}),[i]=k.useState((()=>new kf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=Sf(k.useCallback((e=>i.subscribe(rf.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(Mf)}),[i]);if(r.error&&Pf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function Mf(){}function Ff(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Uf(e){return Nf((function(e){var t=e.code,n=e.accountCode;return Sh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bf(e){return Nf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Sh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Hf(){return Nf((function(e){var t=e.name,n=e.principal;return Sh.getInstance().postAccount(t,n)}))}function Wf(){return Nf((function(e){var t=e.name,n=e.code,o=e.principal;return Sh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Gf(){return Nf((function(e){var t=e.account_code;return Sh.getInstance().putAccountPrincipal({account_code:t})}))}function Vf(){return Nf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sh.getInstance().putAccountsUserMassive(t,n,o)}))}function $f(){return Nf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Kf(){return Nf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Qf(){return Nf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jf(){return Nf((function(e){return Sh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Xf(){return Nf(["post-connection"],(function(e){var t=e.payload;return Sh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Nf(["new-post-connection-validate"],(function(){return Sh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Zf(){return Nf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Sh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function eg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tg(){return Nf((function(e){return Sh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function ng(){return Nf(["patch-organizations"],(function(){return Sh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function og(){return Nf((function(e){return Sh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ag(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function ig(e){return Nf((function(e){return Sh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function rg(){return Nf((function(e){return Sh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function sg(){return Nf((function(e){var t=e.userCode,n=e.organizationCode;return Sh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function cg(){return Nf((function(e){return Sh.getInstance().createUserAuth0(e)}))}function ug(){return Nf((function(e){return Sh.getInstance().postCall(e)}))}function lg(){return Nf((function(e){return Sh.getInstance().changeLoginMethods(e)}))}function pg(e){return Nf((function(e){return Sh.getInstance().updateIsActiveCheckout(e)}),e)}function dg(){return Nf((function(e){var t=e.accountCode,n=e.template;return Sh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function mg(){return Nf((function(e){var t=e.accountCode,n=e.theme;return Sh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function hg(){return Nf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Sh.getInstance().createOperationTransaction(t,n,o,a)}))}function fg(){return Nf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Sh.getInstance().uploadChargebacks(t,n,o,a)}))}var gg=new uf({}),yg=new class{constructor(e={}){this.queryCache=e.queryCache||new uf,this.mutationCache=e.mutationCache||new df,this.logger=e.logger||af,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Jh.subscribe((()=>{Jh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Yh.subscribe((()=>{Yh.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Lh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=zh(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=zh(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return rf.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Lh(e,t),o=this.queryCache;rf.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=Lh(e,t,n),i=this.queryCache,r={type:"active",...o};return rf.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=Lh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=rf.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(Oh).catch(Oh)}invalidateQueries(e,t,n){const[o,a]=Lh(e,t,n);return rf.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=Lh(e,t,n),i=rf.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(Oh);return null!=a&&a.throwOnError||(r=r.catch(Oh)),r}fetchQuery(e,t,n){const o=zh(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Oh).catch(Oh)}fetchInfiniteQuery(e,t,n){const o=zh(e,t,n);return o.behavior=mf(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Oh).catch(Oh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>Nh(e)===Nh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Mh(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>Mh(e,t.queryKey))).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>Nh(e)===Nh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Mh(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>Mh(e,t.mutationKey))).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=qh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:gg});function vg(){return Nf((function(e){return Sh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function bg(){return Nf((function(e){return Sh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function kg(){return Nf((function(e){return Sh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function xg(){return Nf((function(e){return Sh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(o){var a=this;return Nf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,yg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=yg.getQueryData(["GET/reports/templates"]),yg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){yg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){yg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function jg(e){return Nf((function(){return Sh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function _g(e,o,a){var i=this;return void 0===a&&(a=null),Nf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Eg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Nf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Cg(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Sg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Rg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Tg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Og(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Nf((function(e){return void 0===e&&(e=null),Sh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ag(e){var t=e.accountCode;return Nf((function(e){return void 0===e&&(e=null),Sh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Ig(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(e){return void 0===e&&(e=!1),Sh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Nf((function(e){return Sh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){return void 0===t&&(t=null),Nf((function(t){return Sh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e,t){return void 0===t&&(t={}),Nf((function(t){var n=t.declinedGroupCode;return Sh.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function qg(e,t){return void 0===t&&(t={}),Nf((function(t){var n=t.payload;return Sh.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Ng=function(e){return Nf((function(t){return Sh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Mg=function(e){return Nf((function(t){return Sh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Fg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Ug(){return Nf((function(e){var t=e.userCode,n=e.organizationCode;return Sh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Bg(){return Nf((function(){return Sh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Hg(){return Nf((function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Wg(){var e=this;return Nf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Gg(){return Nf((function(e){return Sh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Vg(){return Nf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Nf(["post-delete-payment-link"],(function(e){var t=e.code;return Sh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return Nf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Sh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Jg(){return Nf((function(e){return Sh.getInstance().postUserThemeSettings(e)}))}function Xg(){return Nf((function(e){var t=e.payload,n=e.section;return Sh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=yg.getQueryData(["fetch-profile"]);e.data&&yg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function Yg(e){return Nf(["pinned-sections"],(function(e){var t=e.payload;return Sh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Zg(){return Nf((function(e){var t=e.password,n=e.otp;return Sh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function ey(){return Nf((function(){return Sh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function ty(){return Nf((function(e){return Sh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function ny(){return Nf((function(e){return Sh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function oy(){return Nf((function(){return Sh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ay(){return Nf(["post-get-allowlist-items"],(function(e){var t=e.payload;return Sh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iy(){return Nf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ry(){return Nf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sy(){return Nf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Sh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cy(){return Nf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Sh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uy(){return Nf(["post-add-allowlist-items"],(function(e){var t=e.payload;return Sh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ly(){return Nf(["patch-allowlist"],(function(e){var t=e.payload;return Sh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function py(){return Nf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dy(){return Nf(["put-blacklist"],(function(e){return Sh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function my(){return Nf(["change-blacklist"],(function(e){return Sh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function hy(){return Nf(["change-blacklist-item"],(function(e){return Sh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function fy(){return Nf(["post-blacklist-items"],(function(e){var t=e.payload;return Sh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gy(){return Nf(["delete-blacklist"],(function(e){var t=e.black_list_code;return Sh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yy(e){var t=e.handleSetProgress;return Nf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Sh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function vy(){return Nf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Sh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function by(){return Nf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Sh.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}))}))}function ky(){return Nf(["valiate-blacklist-items"],(function(e){return Sh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xy(){return Nf(["delete-allowlist-item"],(function(e){return Sh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function wy(){return Nf(["validate-allowlist-items"],(function(e){return Sh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function jy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Nf(["upload-file-chargeback",t],(function(e){var t=Sh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function _y(){return Nf((function(e){return Sh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ey(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Cy(){var e=this;return Nf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Sy(){var e=this;return Nf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ry(){var e=j({cancel:function(){return null}}),t=Nf(["upload-file"],(function(t){var n=Sh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Ty(){return Nf((function(e){var t=e.payload,n=e.organizationCode;return Sh.getInstance().updateMFAConfig(t,n)}))}function Oy(){return Nf((function(e){var t=e.payload,n=e.organizationCode;return Sh.getInstance().mfaExcludeUsers(t,n)}))}function Ay(e){return qf(["GET/scheduled-reports",e],(function(){return Sh.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Iy(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function zy(){return Nf((function(e){var t=e.reportCode,n=e.payload;return Sh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Nf((function(e){return Sh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Nf((function(e){return Sh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return Nf((function(e){return Sh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(){return Nf((function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ny(){return Nf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Sh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function My(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Fy(){return Nf((function(e){var t=e.payload,n=e.code;return Sh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Uy(){return Nf((function(e){var t=e.code,n=e.password;return Sh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function By(){return Nf((function(e){var t=e.passwordOtp;return Sh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Hy(){return Nf((function(e){var t=e.code;return Sh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Wy(){return Nf((function(e){var t=e.payload,n=e.code;return Sh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function Gy(){return Nf((function(e){var t=e.payload,n=e.code,o=e.password;return Sh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Vy(){return Nf((function(e){var t=e.password,n=e.accountCode;return Sh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function $y(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Ky(o){var a=this;return Nf((function(){return Sh.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,yg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=yg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,yg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){yg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){yg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Qy(e){return Nf((function(){return Sh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Jy(){return Nf(["POST/reconciliation/alerts"],(function(e){return Sh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){yg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xy(){return Nf(["DELETE/reconciliation/alerts"],(function(e){return Sh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){yg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Yy(){return Nf(["UPDATE/reconciliation/alerts"],(function(e){return Sh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){yg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Zy(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ev(){return Nf((function(e){return Sh.getInstance().createSamlConfig(e)}))}function tv(){return Nf((function(e){return Sh.getInstance().updateSamlConfig(e)}))}function nv(){return Nf((function(){return Sh.getInstance().deleteSamlConfig()}))}function ov(e,t){return void 0===t&&(t={}),Nf((function(t){return Sh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function av(e){return void 0===e&&(e={}),Nf((function(e){return Sh.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function iv(){return Nf((function(e){return Sh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function rv(){return Nf((function(e){return Sh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function sv(){return Nf((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,i=void 0===a?"":a;return Sh.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:i}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function cv(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l,p,d=this;return n(this,(function(m){switch(m.label){case 0:return[4,(e=Sh.getInstance()).createChartGPTChart(o)];case 1:if(a=m.sent(),!(i=null!==(l=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id)&&void 0!==l?l:null===(p=null==a?void 0:a.data)||void 0===p?void 0:p.chart_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(d,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),"DRAFT"===(null==o?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=m.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=m.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var uv=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return _((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function lv(e){var o=this;return qf(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function pv(e){return qf(["fetch-payments-evaluated",e],(function(){return Sh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function dv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:r,cacheTime:500,useErrorBoundary:!1})}function mv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function hv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function fv(e){var t=uv();return qf(["payment-methods",e],(function(){return Sh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function gv(){return qf({queryKey:["/payment-methods/providers"],queryFn:function(){return Sh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function yv(){return qf(["GET/catalog/card-brands"],(function(){return Sh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function vv(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Nd.PAYMENTS),qf(["payment-filters",e,t],(function(){return Sh.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function bv(){return qf(["payment-metrics-filters"],(function(){return Sh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function kv(e){var t=e.transaction_code,n=e.enabled;return qf(["payment-transaction-details",t],(function(){return Sh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function xv(e){var t=e.payment_code,n=e.enabled;return qf(["transaction-history",t],(function(){return Sh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function wv(e){var o=this;return qf(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function jv(e){var o=this;return qf(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function _v(e){return qf(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Sh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Ev(e){return qf(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Sh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Cv(e){var t=uv();return qf(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Sh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Sv(e,o){var a=this,i=uv();return qf(["GET/useGetProofOfCancel",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getProofOfCancel(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Rv(e,o){var a=this,i=uv();return qf(["GET/useGetProofOfPayment",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getProofOfPayment(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Tv(e,o,a){var i=this,r=Sh.getInstance();return qf(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function Ov(e){return qf(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Sh.getInstance();if(e)return t.postPayouts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function Av(e){var o=this;void 0===e&&(e=!0);var a=uv();return qf(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function Iv(e){var t=e.password,n=e.accountCode;return qf(["developers"],(function(){return Sh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function zv(){return qf(["fetch-customized-api-keys-members"],(function(){return Sh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Lv(){return qf(["developers-get-allowed-ips"],(function(){return Sh.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function Pv(){return qf(["fetch-customized-api-keys-accounts"],(function(){return Sh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Dv(e){return qf(["fetch-customized-api-keys",e],(function(){return Sh.getInstance().postCustomizedApiKeys(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function qv(){return qf(["fetch-customized-api-keys-products"],(function(){return Sh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function Nv(){return Nf(["developers-patch-allowed-ips"],(function(e){return Sh.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function Mv(){return qf(["fetch-organizations"],(function(){return Sh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Fv(){return qf(["fetch-all-organizations",uv()],(function(){return Sh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Uv(e){var t=uv();return qf(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Sh.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Bv(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return qf(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Sh.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function Hv(e){var t=e.accountCode,n=e.organizationCode,o=uv(),a=qf(["organizations-account-integrations",t,n],(function(){return Sh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function Wv(e){var t=e.accountCode,n=e.paymentMethod;return qf(["fetch-connections-by-payment-method",n,t],(function(){return Sh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Gv(){var e=this;return qf(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Vv(){return qf(["connections"],(function(){return Sh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function $v(){return qf(["dialogs"],(function(){return Sh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Kv(){return qf(["params-catalog"],(function(){return Sh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Qv(e){var t=e.accountCode,n=e.name;return qf(["webhooks",t,n],(function(){return Sh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Jv(e){var t=e.accountCode,n=e.enabled;return qf(["webhooks-detail",t],(function(){return Sh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Xv(e){var t,n=uv(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return qf({queryKey:["accounts",o],queryFn:function(){return Sh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Yv(e){return qf(["accountsV2",e],(function(){return Sh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Zv(e){return qf(["accountsV2-by-user",e],(function(){return e?Sh.getInstance().getAccountsByUser(e).then((function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}})).catch((function(e){return{accountsV2ByUser:[],error:e}})):{accountsV2ByUser:[]}}),{enabled:!!e,staleTime:0})}function eb(){return qf(["menu"],(function(){return Sh.getInstance().getMenu().then((function(e){return lh(e)?yh:null==e?void 0:e.data})).catch((function(){return yh}))}))}function tb(){return qf(["/payment/statuses/style"],(function(){return Sh.getInstance().useGetPaymentStatusesStyles().then((function(e){return lh(e)?ph:null==e?void 0:e.data})).catch((function(){return ph}))}))}function nb(){return qf(["/transaction/statuses/style"],(function(){return Sh.getInstance().useGetTransactionStatusesStyles().then((function(e){return lh(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}),{cacheTime:36e5,useErrorBoundary:!1})}function ob(){return qf(["/reconciliation/transaction/statuses/style"],(function(){return Sh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return lh(e)?mh:null==e?void 0:e.data})).catch((function(){return mh}))}))}function ab(){return qf(["timezone-catalog"],(function(){return Sh.getInstance().useGetTimeZoneCatalog().then((function(e){return lh(e)?hh:null==e?void 0:e.data})).catch((function(){return hh}))}))}function ib(){return qf(["/cms/audit-logs-filters"],(function(){return Sh.getInstance().useGetAuditLogsFilters().then((function(e){return lh(e)?fh:null==e?void 0:e.data})).catch((function(){return fh}))}))}function rb(){return qf(["/cms/static-contents"],(function(){return Sh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return lh(e)?gh:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}}))}),{cacheTime:6048e5,useErrorBoundary:!1})}function sb(){return qf(["/cms/locales"],(function(){return Sh.getInstance().getLocales().then((function(e){return lh(e)?vh:e.data})).catch((function(){return vh}))}))}var cb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return _((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function ub(e){return qf(["smart-routing-methods",e],(function(){return Sh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function lb(e,t){return qf(["smart-routing-workflow",t,e],(function(){return Sh.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function pb(e,t){return qf(["smart-routing-condition-types",e,t],(function(){return Sh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function db(e,t){return qf(["smart-routing-condition-payment-method",e,t],(function(){return Sh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})}function mb(e,t){return qf(["smart-routing-condition-types-values",t,e],(function(){return Sh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function hb(e){var t=e.accountCode,n=e.workflowVersionId;return qf(["smart-routing-workflow-version",n,t],(function(){return Sh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function fb(e,t,n){return qf(["smart-routing-next-route",e,n,t],(function(){return Sh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function gb(e){return qf(["smart-routing-decline-groups",e],(function(){return Sh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function yb(e,t){return qf(["smart-routing-payment-route",e,t],(function(){return Sh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function vb(e){return qf(["smart-routing-simulate-condition-type-values",e],(function(){return Sh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function bb(e){var t=e.text,n=e.conditionType;return qf(["smart-routing-search-condition-values",t,n],(function(){return Sh.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function kb(){return qf(["smart-routing-conversion-rates"],(function(){return Sh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function xb(){var e=this;return qf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function wb(){var e=this;return qf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function jb(e){return qf(["fetch-routing-monitors-templates",e],(function(){return Sh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function _b(e,t){return qf(["fetch-routing-monitors-template",e],(function(){return Sh.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Eb(e){var t=e.accountCode;return qf(["checkouts",t],(function(){return Sh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function Cb(e){var t=e.accountCode;return qf(["checkouts-template"],(function(){return Sh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var Sb=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Rb=function(e,t){var n=e.paymentMethodType,o=e.type;return qf(Sb({paymentMethodType:n,type:o}),(function(){return Sh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Tb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Ob=function(e,t){var n=e.paymentMethodType,o=e.type;return qf(Tb({paymentMethodType:n,type:o}),(function(){return Sh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function Ab(e){var t=e.accountCode;return qf(["styling-sdk-dynamic",t],(function(){return Sh.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ib(e){var t=e.accountCode;return qf(["styling-theme",t],(function(){return Sh.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function zb(e){var t=e.accountCode;return qf(["styling-settings",t],(function(){return Sh.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Lb(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return qf(["styling-settings-v2",t],(function(){return Sh.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Pb(){return Nf((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Sh.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Db(){return qf(["fetch-profile"],(function(){return Sh.getInstance().getProfile().then((function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t})).catch((function(e){throw e}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function qb(){var e=this;return qf(["get-user-full"],(function(){return t(e,void 0,void 0,(function(){var e,t;return n(this,(function(n){switch(n.label){case 0:e=Sh.getInstance(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.getUserFull()];case 2:return t=n.sent(),[2,null==t?void 0:t.data];case 3:throw n.sent();case 4:return[2]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Nb(e,t){return qf(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function Mb(e){return qf(["email-verification",e],(function(){return Sh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Fb(){return qf({queryKey:["get-login-methods"],queryFn:function(){return Sh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function Ub(){return qf(["fetch-impersonation-users"],(function(){return Sh.getInstance().getImpersonationUsers().then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Bb(){return qf(["fetch-impersonation-enabled"],(function(){return Sh.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Hb(e){var o=this;return qf(["get-users-to-impersonate",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getUsersToImpersonate(e).then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Wb(e){var t;return qf(["fetch-communications",e],(function(){return Sh.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Gb(){return qf(["fetch-communications-filters"],(function(){return Sh.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Vb(e,t){return qf(["fetch-communication-details",e],(function(){return Sh.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function $b(e){return qf(["notifications-customer",e],(function(){return Sh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function Kb(e){return qf(["validate-opsgenie-key",e],(function(){return Sh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Qb(){return qf(["notifications-merged"],(function(){return Sh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Jb(){return Nf((function(e){return Sh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Xb(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Yb={key:"metadata_fields",name:"metadata_fields"};function Zb(){return qf(["reports"],(function(){return Sh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ek(e){return void 0===e&&(e=!0),qf(["reports-multi-env"],(function(){return Sh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function tk(e,t,n){return void 0===t&&(t=!1),qf(["reports/".concat(e)],(function(){return Sh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function nk(e){return qf(["GET/reports/templates"],(function(){return Sh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function ok(o,a,i){var r=this;return qf(["GET/reports/columns/".concat(a,"/").concat(i)],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getReportColumns(a,i).then((function(t){return a===Hd.ALL&&i===Bd.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[Yb],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function ak(e,o){var a=this,i=uv();return qf(["getRefundPdf",e,i,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getRefundPdf(e,i,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!i,useErrorBoundary:!1})}function ik(){var e=uv();return qf(["teams-filters-members"],(function(){return Sh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function rk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=uv();return qf(["fetch-post-members-v2",t,n,o,a,i],(function(){return Sh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function sk(){return qf(["fetch-roles"],(function(){return Sh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ck(){return qf(["fetch-rolespermissions"],(function(){return Sh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function uk(){return qf(["fetch-permissions-catalog"],(function(){return Sh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function lk(e){return qf(["data-report",e],(function(){return Sh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function pk(e,t,n){return void 0===n&&(n=!0),qf(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Sh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function dk(e,t){return qf(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function mk(e){return qf(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Sh.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function hk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-volume-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function fk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,qf(["get-insights-volume-metrics-v2",t,e,n],(function(){return Sh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function gk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function yk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function vk(e){return qf(["get-insights-overview",e],(function(){return Sh.getInstance().getInsightOverview(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function bk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return qf(["get-insights-overview-v3",e,t],(function(){return Sh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function kk(e){return qf(["get-insights-home-metrics",e],(function(){return Sh.getInstance().getInsighstHomeMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function xk(e){return qf(["get-insights-reports",e],(function(){return Sh.getInstance().getInsightsReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function wk(e){return qf(["get-insights-reports-again",e],(function(){return Sh.getInstance().getInsightsReportAgain(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function jk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function _k(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ek(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ck(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Sk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Rk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Tk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ik(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Pk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,t){return qf(["fetch-reconciliation-transaction",e],(function(){return Sh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Nk(e,t){return qf(["fetch-reconciliation-settlements",e],(function(){return Sh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Mk(e,t){return qf(["fetch-reconciliation-metrics",e],(function(){return Sh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Fk(){return qf(["GET-reconciliation-filters"],(function(){return Sh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Uk(e){return qf(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Sh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Bk(){return qf(["GET/v1/reconciliation/active"],(function(){return Sh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Hk(e,t,n){return qf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Sh.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Wk(e){return qf(["GET/reconciliation/reports/templates"],(function(){return Sh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Gk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/alerts/list",t,n],(function(){return Sh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Vk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/agenda/list",t,n],(function(){return Sh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function $k(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/agenda/insights",t,n],(function(){return Sh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Kk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/sales/list",t,n],(function(){return Sh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Qk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/advancements/list",t,n],(function(){return Sh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Jk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/fees/list",t,n],(function(){return Sh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Xk(e){var o=this,a=Object.values(e).filter(Boolean);return qf(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Yk(e){var o=this,a=qf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),i=Af();return _((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Zk(e){var t=Af();return qf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function ex(e){return qf(["events",e],(function(){return Sh.getInstance().getAuditEvents(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function tx(e){return qf(["audit-monitor-event-detail",e],(function(){return Sh.getInstance().getAuditMonitorDetail(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function nx(e,t){return qf(["fetch-payment-links",e,t],(function(){return Sh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function ox(e){return qf(["payment-link"],(function(){return Sh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function ax(e){return void 0===e&&(e=!0),qf(["countries",e],(function(){return Sh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function ix(e){var t=localStorage.getItem("lang")||"en",n=e||t;return qf(["countries-v2",n],(function(){return Sh.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function rx(e){return qf(["timezone"],(function(){return Sh.getInstance().getTimezone(e).then((function(e){return lh(e)?hh:null==e?void 0:e.data})).catch((function(){return hh}))}),{enabled:!0,keepPreviousData:!0})}function sx(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function cx(e,t){return qf(["get-cofig-allow-list",e],(function(){return Sh.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})}function ux(e){return qf(["get-black-list",e],(function(){return Sh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function lx(e,t,n,o){var a;return qf(["post-black-list",e],(function(){return Sh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function px(e,t,n){return qf(["get-block-list-summary",e,t,n],(function(){var o=Sh.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})}function dx(e,t,n,o,a,i){return qf(["black-list-detail",e,t,o,a,i],(function(){return Sh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function mx(e,t,n){return qf(["allow-list-detail",e],(function(){return Sh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function hx(e){return qf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Sh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function fx(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),qf(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function gx(e){return qf(["velocity-rules",e],(function(){var t=Sh.getInstance();return e?t.getVelocityRules(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e,keepPreviousData:!0})}function yx(){return qf(["config-rules"],(function(){return Sh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function vx(e,t){var n=e.organizationCode;return qf(["mfa-excluded-users",n],(function(){return Sh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function bx(e,t){var n=e.organizationCode;return qf(["mfa-config",n],(function(){return Sh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function kx(e,t){return qf(["mfa-enforcement-status",e.accountCode],(function(){return Sh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function xx(e){return qf(["fetch-organization-saml-config",e],(function(){return Sh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function wx(e){return qf(["chartgpt-chart-execute",e],(function(){return Sh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function jx(){return qf(["chartgpt-user-charts"],(function(){return Sh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function _x(){var e=this;return qf(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Sh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r,s,c,u,l,p;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chart_id)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function Ex(e,o,a){var i=this;return void 0===a&&(a=!0),qf(["chartgpt-patch-and-execute",e,o],(function(){return t(i,void 0,void 0,(function(){var t,a,i,r,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Sh.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),i=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function Cx(){return qf(["languages"],(function(){return Sh.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function Sx(){var e=localStorage.getItem("lang")||"en";return qf(["translations",e],(function(){return Sh.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rx.apply(this,arguments)}
223
+ */"production"===process.env.NODE_ENV?wf.exports=function(){if(xf)return jf;xf=1;var e=x,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return jf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,jf}():wf.exports=(_f||(_f=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};Ef.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ef);var Cf=wf.exports;const Sf=Cf.useSyncExternalStore,Rf=k.createContext(void 0),Tf=k.createContext(!1);function Of(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Rf),window.ReactQueryClientContext):Rf)}const Af=({context:e}={})=>{const t=k.useContext(Of(e,k.useContext(Tf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},If=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Of(n,o);return k.createElement(Tf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},zf=k.createContext(!1);zf.Provider;const Lf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Pf(e,t){return"function"==typeof e?e(...t):!!e}function Df(e,t){const n=Af({context:e.context}),o=k.useContext(zf),a=k.useContext(Lf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=rf.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=rf.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=rf.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(Sf(k.useCallback((e=>{const t=o?()=>{}:r.subscribe(rf.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&Pf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function qf(e,t,n){return Df(zh(e,t,n),ff)}function Nf(e,t,n){const o=function(e,t,n){return Vh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Af({context:o.context}),[i]=k.useState((()=>new kf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=Sf(k.useCallback((e=>i.subscribe(rf.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(Mf)}),[i]);if(r.error&&Pf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function Mf(){}function Ff(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Uf(e){return Nf((function(e){var t=e.code,n=e.accountCode;return Sh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bf(e){return Nf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Sh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Hf(){return Nf((function(e){var t=e.name,n=e.principal;return Sh.getInstance().postAccount(t,n)}))}function Wf(){return Nf((function(e){var t=e.name,n=e.code,o=e.principal;return Sh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Gf(){return Nf((function(e){var t=e.account_code;return Sh.getInstance().putAccountPrincipal({account_code:t})}))}function Vf(){return Nf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sh.getInstance().putAccountsUserMassive(t,n,o)}))}function $f(){return Nf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Kf(){return Nf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Qf(){return Nf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jf(){return Nf((function(e){return Sh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Xf(){return Nf(["post-connection"],(function(e){var t=e.payload;return Sh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Nf(["new-post-connection-validate"],(function(){return Sh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Zf(){return Nf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Sh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function eg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tg(){return Nf((function(e){return Sh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function ng(){return Nf(["patch-organizations"],(function(){return Sh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function og(){return Nf((function(e){return Sh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ag(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function ig(e){return Nf((function(e){return Sh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function rg(){return Nf((function(e){return Sh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function sg(){return Nf((function(e){var t=e.userCode,n=e.organizationCode;return Sh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function cg(){return Nf((function(e){return Sh.getInstance().createUserAuth0(e)}))}function ug(){return Nf((function(e){return Sh.getInstance().postCall(e)}))}function lg(){return Nf((function(e){return Sh.getInstance().changeLoginMethods(e)}))}function pg(e){return Nf((function(e){return Sh.getInstance().updateIsActiveCheckout(e)}),e)}function dg(){return Nf((function(e){var t=e.accountCode,n=e.template;return Sh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function mg(){return Nf((function(e){var t=e.accountCode,n=e.theme;return Sh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function hg(){return Nf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Sh.getInstance().createOperationTransaction(t,n,o,a)}))}function fg(){return Nf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Sh.getInstance().uploadChargebacks(t,n,o,a)}))}var gg=new uf({}),yg=new class{constructor(e={}){this.queryCache=e.queryCache||new uf,this.mutationCache=e.mutationCache||new df,this.logger=e.logger||af,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Jh.subscribe((()=>{Jh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Yh.subscribe((()=>{Yh.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Lh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=zh(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=zh(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return rf.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Lh(e,t),o=this.queryCache;rf.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=Lh(e,t,n),i=this.queryCache,r={type:"active",...o};return rf.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=Lh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=rf.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(Oh).catch(Oh)}invalidateQueries(e,t,n){const[o,a]=Lh(e,t,n);return rf.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=Lh(e,t,n),i=rf.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(Oh);return null!=a&&a.throwOnError||(r=r.catch(Oh)),r}fetchQuery(e,t,n){const o=zh(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Oh).catch(Oh)}fetchInfiniteQuery(e,t,n){const o=zh(e,t,n);return o.behavior=mf(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Oh).catch(Oh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>Nh(e)===Nh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Mh(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>Mh(e,t.queryKey))).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>Nh(e)===Nh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Mh(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>Mh(e,t.mutationKey))).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=qh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:gg});function vg(){return Nf((function(e){return Sh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function bg(){return Nf((function(e){return Sh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function kg(){return Nf((function(e){return Sh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function xg(){return Nf((function(e){return Sh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(o){var a=this;return Nf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,yg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=yg.getQueryData(["GET/reports/templates"]),yg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){yg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){yg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function jg(e){return Nf((function(){return Sh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function _g(e,o,a){var i=this;return void 0===a&&(a=null),Nf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Eg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Nf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Cg(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Sg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Rg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Tg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Og(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Nf((function(e){return void 0===e&&(e=null),Sh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ag(e){var t=e.accountCode;return Nf((function(e){return void 0===e&&(e=null),Sh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Ig(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Nf((function(e){return void 0===e&&(e=!1),Sh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Nf((function(){return Sh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Nf((function(e){return Sh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){return void 0===t&&(t=null),Nf((function(t){return Sh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e,t){return void 0===t&&(t={}),Nf((function(t){var n=t.declinedGroupCode;return Sh.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function qg(e,t){return void 0===t&&(t={}),Nf((function(t){var n=t.payload;return Sh.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Ng=function(e){return Nf((function(t){return Sh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Mg=function(e){return Nf((function(t){return Sh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Fg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Ug(){return Nf((function(e){var t=e.userCode,n=e.organizationCode;return Sh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Bg(){return Nf((function(){return Sh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Hg(){return Nf((function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Wg(){var e=this;return Nf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Gg(){return Nf((function(e){return Sh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Vg(){return Nf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Nf(["post-delete-payment-link"],(function(e){var t=e.code;return Sh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return Nf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Sh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Jg(){return Nf((function(e){return Sh.getInstance().postUserThemeSettings(e)}))}function Xg(){return Nf((function(e){var t=e.payload,n=e.section;return Sh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=yg.getQueryData(["fetch-profile"]);e.data&&yg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}));var n=yg.getQueryData(["get-user-full"]);e.data&&yg.setQueryData(["get-user-full"],a(a({},n),{user:a(a({},null==n?void 0:n.user),{settings:e.data})}))}})}function Yg(e){return Nf(["pinned-sections"],(function(e){var t=e.payload;return Sh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Zg(){return Nf((function(e){var t=e.password,n=e.otp;return Sh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function ey(){return Nf((function(){return Sh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function ty(){return Nf((function(e){return Sh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function ny(){return Nf((function(e){return Sh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function oy(){return Nf((function(){return Sh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ay(){return Nf(["post-get-allowlist-items"],(function(e){var t=e.payload;return Sh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iy(){return Nf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ry(){return Nf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sy(){return Nf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Sh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cy(){return Nf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Sh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uy(){return Nf(["post-add-allowlist-items"],(function(e){var t=e.payload;return Sh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ly(){return Nf(["patch-allowlist"],(function(e){var t=e.payload;return Sh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function py(){return Nf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Sh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dy(){return Nf(["put-blacklist"],(function(e){return Sh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function my(){return Nf(["change-blacklist"],(function(e){return Sh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function hy(){return Nf(["change-blacklist-item"],(function(e){return Sh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function fy(){return Nf(["post-blacklist-items"],(function(e){var t=e.payload;return Sh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gy(){return Nf(["delete-blacklist"],(function(e){var t=e.black_list_code;return Sh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yy(e){var t=e.handleSetProgress;return Nf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Sh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function vy(){return Nf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Sh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function by(){return Nf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Sh.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}))}))}function ky(){return Nf(["valiate-blacklist-items"],(function(e){return Sh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xy(){return Nf(["delete-allowlist-item"],(function(e){return Sh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function wy(){return Nf(["validate-allowlist-items"],(function(e){return Sh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function jy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Nf(["upload-file-chargeback",t],(function(e){var t=Sh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function _y(){return Nf((function(e){return Sh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ey(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Cy(){var e=this;return Nf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Sy(){var e=this;return Nf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ry(){var e=j({cancel:function(){return null}}),t=Nf(["upload-file"],(function(t){var n=Sh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Ty(){return Nf((function(e){var t=e.payload,n=e.organizationCode;return Sh.getInstance().updateMFAConfig(t,n)}))}function Oy(){return Nf((function(e){var t=e.payload,n=e.organizationCode;return Sh.getInstance().mfaExcludeUsers(t,n)}))}function Ay(e){return qf(["GET/scheduled-reports",e],(function(){return Sh.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Iy(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function zy(){return Nf((function(e){var t=e.reportCode,n=e.payload;return Sh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Nf((function(e){return Sh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Nf((function(e){return Sh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return Nf((function(e){return Sh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(){return Nf((function(e){var t=e.payload,n=e.accountCode;return Sh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ny(){return Nf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Sh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function My(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Fy(){return Nf((function(e){var t=e.payload,n=e.code;return Sh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Uy(){return Nf((function(e){var t=e.code,n=e.password;return Sh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function By(){return Nf((function(e){var t=e.passwordOtp;return Sh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Hy(){return Nf((function(e){var t=e.code;return Sh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Wy(){return Nf((function(e){var t=e.payload,n=e.code;return Sh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function Gy(){return Nf((function(e){var t=e.payload,n=e.code,o=e.password;return Sh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Vy(){return Nf((function(e){var t=e.password,n=e.accountCode;return Sh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function $y(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Ky(o){var a=this;return Nf((function(){return Sh.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,yg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=yg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,yg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){yg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){yg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Qy(e){return Nf((function(){return Sh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Jy(){return Nf(["POST/reconciliation/alerts"],(function(e){return Sh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){yg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xy(){return Nf(["DELETE/reconciliation/alerts"],(function(e){return Sh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){yg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Yy(){return Nf(["UPDATE/reconciliation/alerts"],(function(e){return Sh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){yg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Zy(){return Nf((function(e){var t=e.payload;return Sh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ev(){return Nf((function(e){return Sh.getInstance().createSamlConfig(e)}))}function tv(){return Nf((function(e){return Sh.getInstance().updateSamlConfig(e)}))}function nv(){return Nf((function(){return Sh.getInstance().deleteSamlConfig()}))}function ov(e,t){return void 0===t&&(t={}),Nf((function(t){return Sh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function av(e){return void 0===e&&(e={}),Nf((function(e){return Sh.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function iv(){return Nf((function(e){return Sh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function rv(){return Nf((function(e){return Sh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function sv(){return Nf((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,i=void 0===a?"":a;return Sh.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:i}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function cv(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l,p,d=this;return n(this,(function(m){switch(m.label){case 0:return[4,(e=Sh.getInstance()).createChartGPTChart(o)];case 1:if(a=m.sent(),!(i=null!==(l=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id)&&void 0!==l?l:null===(p=null==a?void 0:a.data)||void 0===p?void 0:p.chart_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(d,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),"DRAFT"===(null==o?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=m.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=m.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var uv=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return _((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function lv(e){var o=this;return qf(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function pv(e){return qf(["fetch-payments-evaluated",e],(function(){return Sh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function dv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data}))]}))}))}),{enabled:r,cacheTime:500,useErrorBoundary:!1})}function mv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function hv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Sh.getInstance();return qf(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function fv(e){var t=uv();return qf(["payment-methods",e],(function(){return Sh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function gv(){return qf({queryKey:["/payment-methods/providers"],queryFn:function(){return Sh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function yv(){return qf(["GET/catalog/card-brands"],(function(){return Sh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function vv(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Nd.PAYMENTS),qf(["payment-filters",e,t],(function(){return Sh.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function bv(){return qf(["payment-metrics-filters"],(function(){return Sh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function kv(e){var t=e.transaction_code,n=e.enabled;return qf(["payment-transaction-details",t],(function(){return Sh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function xv(e){var t=e.payment_code,n=e.enabled;return qf(["transaction-history",t],(function(){return Sh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function wv(e){var o=this;return qf(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function jv(e){var o=this;return qf(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function _v(e){return qf(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Sh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Ev(e){return qf(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Sh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Cv(e){var t=uv();return qf(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Sh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Sv(e,o){var a=this,i=uv();return qf(["GET/useGetProofOfCancel",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getProofOfCancel(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Rv(e,o){var a=this,i=uv();return qf(["GET/useGetProofOfPayment",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getProofOfPayment(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Tv(e,o,a){var i=this,r=Sh.getInstance();return qf(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function Ov(e){return qf(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Sh.getInstance();if(e)return t.postPayouts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function Av(e){var o=this;void 0===e&&(e=!0);var a=uv();return qf(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function Iv(e){var t=e.password,n=e.accountCode;return qf(["developers"],(function(){return Sh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function zv(){return qf(["fetch-customized-api-keys-members"],(function(){return Sh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Lv(){return qf(["developers-get-allowed-ips"],(function(){return Sh.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function Pv(){return qf(["fetch-customized-api-keys-accounts"],(function(){return Sh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Dv(e){return qf(["fetch-customized-api-keys",e],(function(){return Sh.getInstance().postCustomizedApiKeys(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function qv(){return qf(["fetch-customized-api-keys-products"],(function(){return Sh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function Nv(){return Nf(["developers-patch-allowed-ips"],(function(e){return Sh.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function Mv(){return qf(["fetch-organizations"],(function(){return Sh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Fv(){return qf(["fetch-all-organizations",uv()],(function(){return Sh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Uv(e){var t=uv();return qf(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Sh.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Bv(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return qf(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Sh.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function Hv(e){var t=e.accountCode,n=e.organizationCode,o=uv(),a=qf(["organizations-account-integrations",t,n],(function(){return Sh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function Wv(e){var t=e.accountCode,n=e.paymentMethod;return qf(["fetch-connections-by-payment-method",n,t],(function(){return Sh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Gv(){var e=this;return qf(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Vv(){return qf(["connections"],(function(){return Sh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function $v(){return qf(["dialogs"],(function(){return Sh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Kv(){return qf(["params-catalog"],(function(){return Sh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Qv(e){var t=e.accountCode,n=e.name;return qf(["webhooks",t,n],(function(){return Sh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Jv(e){var t=e.accountCode,n=e.enabled;return qf(["webhooks-detail",t],(function(){return Sh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Xv(e){var t,n=uv(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return qf({queryKey:["accounts",o],queryFn:function(){return Sh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Yv(e){return qf(["accountsV2",e],(function(){return Sh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Zv(e){return qf(["accountsV2-by-user",e],(function(){return e?Sh.getInstance().getAccountsByUser(e).then((function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}})).catch((function(e){return{accountsV2ByUser:[],error:e}})):{accountsV2ByUser:[]}}),{enabled:!!e,staleTime:0})}function eb(){return qf(["menu"],(function(){return Sh.getInstance().getMenu().then((function(e){return lh(e)?yh:null==e?void 0:e.data})).catch((function(){return yh}))}))}function tb(){return qf(["/payment/statuses/style"],(function(){return Sh.getInstance().useGetPaymentStatusesStyles().then((function(e){return lh(e)?ph:null==e?void 0:e.data})).catch((function(){return ph}))}))}function nb(){return qf(["/transaction/statuses/style"],(function(){return Sh.getInstance().useGetTransactionStatusesStyles().then((function(e){return lh(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}),{cacheTime:36e5,useErrorBoundary:!1})}function ob(){return qf(["/reconciliation/transaction/statuses/style"],(function(){return Sh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return lh(e)?mh:null==e?void 0:e.data})).catch((function(){return mh}))}))}function ab(){return qf(["timezone-catalog"],(function(){return Sh.getInstance().useGetTimeZoneCatalog().then((function(e){return lh(e)?hh:null==e?void 0:e.data})).catch((function(){return hh}))}))}function ib(){return qf(["/cms/audit-logs-filters"],(function(){return Sh.getInstance().useGetAuditLogsFilters().then((function(e){return lh(e)?fh:null==e?void 0:e.data})).catch((function(){return fh}))}))}function rb(){return qf(["/cms/static-contents"],(function(){return Sh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return lh(e)?gh:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}}))}),{cacheTime:6048e5,useErrorBoundary:!1})}function sb(){return qf(["/cms/locales"],(function(){return Sh.getInstance().getLocales().then((function(e){return lh(e)?vh:e.data})).catch((function(){return vh}))}))}var cb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return _((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function ub(e){return qf(["smart-routing-methods",e],(function(){return Sh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function lb(e,t){return qf(["smart-routing-workflow",t,e],(function(){return Sh.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function pb(e,t){return qf(["smart-routing-condition-types",e,t],(function(){return Sh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function db(e,t){return qf(["smart-routing-condition-payment-method",e,t],(function(){return Sh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})}function mb(e,t){return qf(["smart-routing-condition-types-values",t,e],(function(){return Sh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function hb(e){var t=e.accountCode,n=e.workflowVersionId;return qf(["smart-routing-workflow-version",n,t],(function(){return Sh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function fb(e,t,n){return qf(["smart-routing-next-route",e,n,t],(function(){return Sh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function gb(e){return qf(["smart-routing-decline-groups",e],(function(){return Sh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function yb(e,t){return qf(["smart-routing-payment-route",e,t],(function(){return Sh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function vb(e){return qf(["smart-routing-simulate-condition-type-values",e],(function(){return Sh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function bb(e){var t=e.text,n=e.conditionType;return qf(["smart-routing-search-condition-values",t,n],(function(){return Sh.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function kb(){return qf(["smart-routing-conversion-rates"],(function(){return Sh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function xb(){var e=this;return qf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function wb(){var e=this;return qf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function jb(e){return qf(["fetch-routing-monitors-templates",e],(function(){return Sh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function _b(e,t){return qf(["fetch-routing-monitors-template",e],(function(){return Sh.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function Eb(e){var t=e.accountCode;return qf(["checkouts",t],(function(){return Sh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function Cb(e){var t=e.accountCode;return qf(["checkouts-template"],(function(){return Sh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var Sb=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Rb=function(e,t){var n=e.paymentMethodType,o=e.type;return qf(Sb({paymentMethodType:n,type:o}),(function(){return Sh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Tb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Ob=function(e,t){var n=e.paymentMethodType,o=e.type;return qf(Tb({paymentMethodType:n,type:o}),(function(){return Sh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function Ab(e){var t=e.accountCode;return qf(["styling-sdk-dynamic",t],(function(){return Sh.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ib(e){var t=e.accountCode;return qf(["styling-theme",t],(function(){return Sh.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function zb(e){var t=e.accountCode;return qf(["styling-settings",t],(function(){return Sh.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Lb(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return qf(["styling-settings-v2",t],(function(){return Sh.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Pb(){return Nf((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Sh.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Db(){return qf(["fetch-profile"],(function(){return Sh.getInstance().getProfile().then((function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t})).catch((function(e){throw e}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function qb(){var e=this;return qf(["get-user-full"],(function(){return t(e,void 0,void 0,(function(){var e,t,o;return n(this,(function(n){switch(n.label){case 0:e=Sh.getInstance(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.getUserFull()];case 2:return t=n.sent(),(o=null==t?void 0:t.data)&&localStorage.setItem("user",JSON.stringify(o.user)),[2,o];case 3:throw n.sent();case 4:return[2]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Nb(e,t){return qf(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function Mb(e){return qf(["email-verification",e],(function(){return Sh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Fb(){return qf({queryKey:["get-login-methods"],queryFn:function(){return Sh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function Ub(){return qf(["fetch-impersonation-users"],(function(){return Sh.getInstance().getImpersonationUsers().then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Bb(){return qf(["fetch-impersonation-enabled"],(function(){return Sh.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Hb(e){var o=this;return qf(["get-users-to-impersonate",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getUsersToImpersonate(e).then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Wb(e){var t;return qf(["fetch-communications",e],(function(){return Sh.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Gb(){return qf(["fetch-communications-filters"],(function(){return Sh.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Vb(e,t){return qf(["fetch-communication-details",e],(function(){return Sh.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function $b(e){return qf(["notifications-customer",e],(function(){return Sh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function Kb(e){return qf(["validate-opsgenie-key",e],(function(){return Sh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Qb(){return qf(["notifications-merged"],(function(){return Sh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Jb(){return Nf((function(e){return Sh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Xb(){var e=this;return Nf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Yb={key:"metadata_fields",name:"metadata_fields"};function Zb(){return qf(["reports"],(function(){return Sh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ek(e){return void 0===e&&(e=!0),qf(["reports-multi-env"],(function(){return Sh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function tk(e,t,n){return void 0===t&&(t=!1),qf(["reports/".concat(e)],(function(){return Sh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function nk(e){return qf(["GET/reports/templates"],(function(){return Sh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function ok(o,a,i){var r=this;return qf(["GET/reports/columns/".concat(a,"/").concat(i)],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getReportColumns(a,i).then((function(t){return a===Hd.ALL&&i===Bd.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[Yb],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function ak(e,o){var a=this,i=uv();return qf(["getRefundPdf",e,i,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getRefundPdf(e,i,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!i,useErrorBoundary:!1})}function ik(){var e=uv();return qf(["teams-filters-members"],(function(){return Sh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function rk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=uv();return qf(["fetch-post-members-v2",t,n,o,a,i],(function(){return Sh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function sk(){return qf(["fetch-roles"],(function(){return Sh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ck(){return qf(["fetch-rolespermissions"],(function(){return Sh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function uk(){return qf(["fetch-permissions-catalog"],(function(){return Sh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function lk(e){return qf(["data-report",e],(function(){return Sh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function pk(e,t,n){return void 0===n&&(n=!0),qf(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Sh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function dk(e,t){return qf(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function mk(e){return qf(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Sh.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function hk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-volume-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function fk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,qf(["get-insights-volume-metrics-v2",t,e,n],(function(){return Sh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function gk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function yk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,qf(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Sh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function vk(e){return qf(["get-insights-overview",e],(function(){return Sh.getInstance().getInsightOverview(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function bk(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return qf(["get-insights-overview-v3",e,t],(function(){return Sh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function kk(e){return qf(["get-insights-home-metrics",e],(function(){return Sh.getInstance().getInsighstHomeMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function xk(e){return qf(["get-insights-reports",e],(function(){return Sh.getInstance().getInsightsReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function wk(e){return qf(["get-insights-reports-again",e],(function(){return Sh.getInstance().getInsightsReportAgain(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function jk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function _k(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ek(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ck(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Sk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Rk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Tk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ok(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ak(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ik(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function zk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Lk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Pk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Dk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),qf({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function qk(e,t){return qf(["fetch-reconciliation-transaction",e],(function(){return Sh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Nk(e,t){return qf(["fetch-reconciliation-settlements",e],(function(){return Sh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Mk(e,t){return qf(["fetch-reconciliation-metrics",e],(function(){return Sh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Fk(){return qf(["GET-reconciliation-filters"],(function(){return Sh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Uk(e){return qf(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Sh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Bk(){return qf(["GET/v1/reconciliation/active"],(function(){return Sh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Hk(e,t,n){return qf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Sh.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Wk(e){return qf(["GET/reconciliation/reports/templates"],(function(){return Sh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Gk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/alerts/list",t,n],(function(){return Sh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Vk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/agenda/list",t,n],(function(){return Sh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function $k(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/agenda/insights",t,n],(function(){return Sh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Kk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/sales/list",t,n],(function(){return Sh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Qk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/advancements/list",t,n],(function(){return Sh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Jk(e){var t=e.body,n=e.params,o=e.enabled;return qf(["GET/reconciliation/fees/list",t,n],(function(){return Sh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Xk(e){var o=this,a=Object.values(e).filter(Boolean);return qf(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Yk(e){var o=this,a=qf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),i=Af();return _((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Zk(e){var t=Af();return qf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function ex(e){return qf(["events",e],(function(){return Sh.getInstance().getAuditEvents(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function tx(e){return qf(["audit-monitor-event-detail",e],(function(){return Sh.getInstance().getAuditMonitorDetail(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function nx(e,t){return qf(["fetch-payment-links",e,t],(function(){return Sh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function ox(e){return qf(["payment-link"],(function(){return Sh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function ax(e){return void 0===e&&(e=!0),qf(["countries",e],(function(){return Sh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function ix(e){var t=localStorage.getItem("lang")||"en",n=e||t;return qf(["countries-v2",n],(function(){return Sh.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function rx(e){return qf(["timezone"],(function(){return Sh.getInstance().getTimezone(e).then((function(e){return lh(e)?hh:null==e?void 0:e.data})).catch((function(){return hh}))}),{enabled:!0,keepPreviousData:!0})}function sx(e){return Nf((function(e){var t=e.payload;return Sh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function cx(e,t){return qf(["get-cofig-allow-list",e],(function(){return Sh.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})}function ux(e){return qf(["get-black-list",e],(function(){return Sh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function lx(e,t,n,o){var a;return qf(["post-black-list",e],(function(){return Sh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function px(e,t,n){return qf(["get-block-list-summary",e,t,n],(function(){var o=Sh.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})}function dx(e,t,n,o,a,i){return qf(["black-list-detail",e,t,o,a,i],(function(){return Sh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function mx(e,t,n){return qf(["allow-list-detail",e],(function(){return Sh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function hx(e){return qf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Sh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function fx(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),qf(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function gx(e){return qf(["velocity-rules",e],(function(){var t=Sh.getInstance();return e?t.getVelocityRules(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e,keepPreviousData:!0})}function yx(){return qf(["config-rules"],(function(){return Sh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function vx(e,t){var n=e.organizationCode;return qf(["mfa-excluded-users",n],(function(){return Sh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function bx(e,t){var n=e.organizationCode;return qf(["mfa-config",n],(function(){return Sh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function kx(e,t){return qf(["mfa-enforcement-status",e.accountCode],(function(){return Sh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function xx(e){return qf(["fetch-organization-saml-config",e],(function(){return Sh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function wx(e){return qf(["chartgpt-chart-execute",e],(function(){return Sh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function jx(){return qf(["chartgpt-user-charts"],(function(){return Sh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function _x(){var e=this;return qf(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Sh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r,s,c,u,l,p;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chart_id)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(p=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==p?p:[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function Ex(e,o,a){var i=this;return void 0===a&&(a=!0),qf(["chartgpt-patch-and-execute",e,o],(function(){return t(i,void 0,void 0,(function(){var t,a,i,r,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Sh.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),i=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function Cx(){return qf(["languages"],(function(){return Sh.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function Sx(){var e=localStorage.getItem("lang")||"en";return qf(["translations",e],(function(){return Sh.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rx.apply(this,arguments)}
224
224
  /**
225
225
  * match-sorter-utils
226
226
  *
@@ -237,5 +237,5 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
237
237
  * @copyright (c) 2099 Kent C. Dodds
238
238
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
239
239
  */
240
- const Ix=7,zx=6,Lx=5,Px=4,Dx=3,qx=2,Nx=1,Mx=0;function Fx(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Nx,!n.accessors){const o=Ux(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=Gx(a),r=Hx(e,a);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Mx,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=Ux(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=Nx?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function Ux(e,t,n){return e=Bx(e,n),(t=Bx(t,n)).length>e.length?Mx:e===t?Ix:(e=e.toLowerCase())===(t=t.toLowerCase())?zx:e.startsWith(t)?Lx:e.includes(` ${t}`)?Px:e.includes(t)?Dx:1===t.length?Mx:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?qx:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return Nx+a*o}const r=a(t[0],e,0);if(r<0)return Mx;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Mx}const s=o-r;return i(s)}(e,t)}function Bx(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Ax,(e=>Tx[e]))),e}function Hx(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 Wx={maxRanking:1/0,minRanking:-1/0};function Gx(e){return"function"==typeof e?Wx:{...Wx,...e}}function Vx(e,t){const[n,o]=k.useState();k.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,k.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var $x,Kx=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}(),Qx=function(){function e(e){this.generateIdentifier=e,this.kv=new Kx}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}(),Jx=($x=function(e,t){return $x=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])},$x(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}$x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xx=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Jx(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}(Qx),Yx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function Zx(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function ew(e,t){Object.entries(e).forEach((function(e){var n=Yx(e,2),o=n[0],a=n[1];return t(a,o)}))}function tw(e,t){return-1!==e.indexOf(t)}function nw(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var ow=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Zx(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),aw=function(e){return void 0===e},iw=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},rw=function(e){return iw(e)&&0===Object.keys(e).length},sw=function(e){return Array.isArray(e)},cw=function(e){return e instanceof Map},uw=function(e){return e instanceof Set},lw=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},pw=function(e){return"number"==typeof e&&isNaN(e)},dw=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||aw(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||lw(e)},mw=function(e){return e.replace(/\./g,"\\.")},hw=function(e){return e.map(String).map(mw).join(".")},fw=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},gw=function(){return gw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},gw.apply(this,arguments)},yw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},vw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function bw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var kw=[bw(aw,"undefined",(function(){return null}),(function(){})),bw((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)})),bw((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),bw((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})),bw((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)})),bw(uw,"set",(function(e){return vw([],yw(e.values()))}),(function(e){return new Set(e)})),bw(cw,"map",(function(e){return vw([],yw(e.entries()))}),(function(e){return new Map(e)})),bw((function(e){return pw(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return pw(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),bw((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),bw((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function xw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var ww=xw((function(e,t){return!!lw(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})),jw=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),_w=xw((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return vw([],yw(e))}),(function(e,t){var n=jw[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Ew(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Cw=xw(Ew,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return gw({},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)})),Sw=xw((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)})),Rw=[Cw,ww,Sw,_w],Tw=function(e,t){var n=nw(Rw,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=nw(kw,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Ow={};kw.forEach((function(e){Ow[e.annotation]=e}));var Aw=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Iw(e){if(tw(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(tw(e,"prototype"))throw new Error("prototype is not allowed as a property");if(tw(e,"constructor"))throw new Error("constructor is not allowed as a property")}var zw=function(e,t,n){if(Iw(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(sw(o))o=o[+i];else if(iw(o))o=o[i];else if(uw(o)){o=Aw(o,r=+i)}else if(cw(o)){if(a===t.length-2)break;var r=+i,s=0==+t[++a]?"key":"value",c=Aw(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(sw(o)?o[+u]=n(o[+u]):iw(o)&&(o[u]=n(o[u])),uw(o)){var l=Aw(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(cw(o)){r=+t[t.length-2];var d=Aw(o,r);switch(s=0==+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},Lw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Pw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Dw(e,t,n){if(void 0===n&&(n=[]),e)if(sw(e)){var o=Lw(e,2),a=o[0],i=o[1];i&&ew(i,(function(e,o){Dw(e,t,Pw(Pw([],Lw(n)),Lw(fw(o))))})),t(a,n)}else ew(e,(function(e,o){return Dw(e,t,Pw(Pw([],Lw(n)),Lw(fw(o))))}))}function qw(e,t,n){return Dw(t,(function(t,o){e=zw(e,o,(function(e){return function(e,t,n){if(!sw(t)){var o=Ow[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return ww.untransform(e,t,n);case"class":return Cw.untransform(e,t,n);case"custom":return Sw.untransform(e,t,n);case"typed-array":return _w.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Nw(e,t){function n(t,n){var o=function(e,t){Iw(t);for(var n=0;n<t.length;n++){var o=t[n];if(uw(e))e=Aw(e,+o);else if(cw(e)){var a=+o,i=0==+t[++n]?"key":"value",r=Aw(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,fw(n));t.map(fw).forEach((function(t){e=zw(e,t,(function(){return o}))}))}if(sw(t)){var o=Lw(t,2),a=o[0],i=o[1];a.forEach((function(t){e=zw(e,fw(t),(function(){return e}))})),i&&ew(i,n)}else ew(t,n);return e}var Mw=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=dw(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return iw(e)||sw(e)||cw(e)||uw(e)||Ew(e,t)}(e,n)){var l=Tw(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(tw(i,e))return{transformedValue:null};var d=Tw(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=sw(m)?[]:{},f={};ew(m,(function(s,c){var u=Mw(s,t,n,o,Pw(Pw([],Lw(a)),[c]),Pw(Pw([],Lw(i)),[e]),r);h[c]=u.transformedValue,sw(u.annotations)?f[c]=u.annotations:iw(u.annotations)&&ew(u.annotations,(function(e,t){f[mw(c)+"."+t]=e}))}));var g=rw(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function Fw(e){return Object.prototype.toString.call(e).slice(8,-1)}function Uw(e){return"Array"===Fw(e)}function Bw(e,t={}){if(Uw(e))return e.map((e=>Bw(e,t)));if(!function(e){if("Object"!==Fw(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(Uw(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Bw(e[o],t),e,t.nonenumerable),n}),{})}var Hw=function(){return Hw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Hw.apply(this,arguments)},Ww=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Gw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Vw=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Xx,this.symbolRegistry=new Qx((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new ow,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Mw(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Hw(Hw({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){i||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=Lw(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(hw):r[hw(n)]=o.map(hw)}})),s?rw(r)?[s]:[s,r]:rw(r)?void 0:r);return c&&(o.meta=Hw(Hw({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Bw(t);return(null==n?void 0:n.values)&&(o=qw(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Nw(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(Hw({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,Gw([],Ww(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 $w={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Kw=k.createContext($w);function Qw({theme:e,...t}){return k.createElement(Kw.Provider,Rx({value:e},t))}function Jw({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 Xw(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Yw(e,t,n={}){return k.forwardRef((({style:o,...a},i)=>{const r=k.useContext(Kw),s=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=k.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return k.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e),{});return k.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})}))}const Zw=(e,t=!1)=>{const{json:n}=Vw.serialize(e);return JSON.stringify(n,null,t?2:void 0)},ej=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,tj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,nj={"Status > Last Updated":(e,t)=>ej(e)===ej(t)?tj(e,t):ej(e)>ej(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":tj},oj=500,aj={top:"bottom",bottom:"top",left:"right",right:"left"};function ij(e){return["left","right"].includes(e)}function rj(e){return aj[e]}function sj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function cj(e="bottom"){const t=ij(e),n=rj(e),o=sj("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 uj=Yw("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"}}),lj=Yw("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),pj=Yw("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"}))),dj=Yw("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),mj=Yw("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),hj=Yw("code",{fontSize:".9em",color:"inherit",background:"inherit"}),fj=Yw("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),gj=Yw("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 yj({text:e}){return k.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const vj=Yw("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),bj=Yw("span",{color:"white"}),kj=Yw("button",{cursor:"pointer",color:"white"}),xj=Yw("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),wj=({value:e})=>{const[t,n]=k.useState("NoCopy");return k.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Vw.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?k.createElement(Sj,null):"SuccessCopy"===t?k.createElement(Tj,null):k.createElement(Rj,null))},jj=Yw("span",((e,t)=>({color:t.danger}))),_j=Yw("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ej=Yw("span",{color:"grey",fontSize:".7em"}),Cj=({expanded:e,style:t={}})=>k.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Sj=()=>k.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},k.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"}),k.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"}))),Rj=()=>k.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},k.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"})),k.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Tj=()=>k.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},k.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},k.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 Oj=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=k.useState([]);return k.createElement(vj,{key:t},a.length?k.createElement(k.Fragment,null,k.createElement(xj,{onClick:()=>c()},k.createElement(Cj,{expanded:r})," ",t," ",k.createElement(Ej,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?k.createElement(wj,{value:n}):null,r?1===a.length?k.createElement(_j,null,o.map(e)):k.createElement(_j,null,a.map(((t,n)=>k.createElement("div",{key:n},k.createElement(vj,null,k.createElement(kj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},k.createElement(Cj,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?k.createElement(_j,null,t.map(e)):null))))):null):k.createElement(k.Fragment,null,k.createElement(bj,null,t,":")," ",k.createElement(jj,null,Zw(n))))};function Aj({value:e,defaultExpanded:t,renderer:n=Oj,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=k.useState(Boolean(t)),c=k.useCallback((()=>s((e=>!e))),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>k.createElement(Aj,Rx({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Ij(e){return k.createElement("svg",Rx({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),k.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},k.createElement("g",{transform:"translate(-33.000000, 0.000000)"},k.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) "}),k.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"}),k.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 zj=(e,t,n=!1)=>Cf.useSyncExternalStore(k.useCallback((t=>n?()=>{}:e.subscribe(rf.batchCalls(t))),[e,n]),t,t),Lj=k.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Af({context:i}),g=f.getQueryCache(),[y,v]=Vx("reactQueryDevtoolsSortFn",Object.keys(nj)[0]),[b,x]=Vx("reactQueryDevtoolsFilter",""),[w,j]=Vx("reactQueryDevtoolsBaseSort",1),_=k.useMemo((()=>nj[y]),[y]),E=zj(g,(()=>g.getAll().length),!n),[C,S]=Vx("reactQueryDevtoolsActiveQueryHash",""),R=k.useMemo((()=>{const e=g.getAll();if(0===E)return[];const t=b?e.filter((e=>Fx(e.queryHash,b).passed)):[...e];return _?t.sort(((e,t)=>_(e,t)*w)):t}),[w,_,b,E,g]),[T,O]=k.useState(!1);return k.createElement(Qw,{theme:$w},k.createElement(uj,Rx({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:oj,position:"relative",...d.style}}),k.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+$w.backgroundAlt+" "+$w.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: "+$w.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+$w.gray+";\n border-radius: .5em;\n border: 3px solid "+$w.backgroundAlt+";\n }\n "}}),k.createElement("div",{style:cj(u),onMouseDown:r}),n&&k.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+$w.grayAlt,display:"flex",flexDirection:"column"}},k.createElement("div",{style:{padding:".5em",background:$w.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},k.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"}},k.createElement(Ij,{"aria-hidden":!0}),k.createElement(yj,{text:"Close React Query Devtools"})),k.createElement("div",{style:{display:"flex",flexDirection:"column"}},k.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},k.createElement(Dj,{queryCache:g}),u&&s?k.createElement(gj,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},k.createElement("option",{value:"left"},"Left"),k.createElement("option",{value:"right"},"Right"),k.createElement("option",{value:"top"},"Top"),k.createElement("option",{value:"bottom"},"Bottom")):null),k.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},k.createElement(fj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),k.createElement(gj,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(nj).map((e=>k.createElement("option",{key:e,value:e},"Sort by ",e)))),k.createElement(pj,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),k.createElement(pj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),k.createElement(pj,{type:"button",onClick:()=>{T?(Yh.setOnline(void 0),O(!1),window.dispatchEvent(new Event("online"))):(Yh.setOnline(!1),O(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?$w.danger:"currentColor",fill:"none"},T?k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.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"}),k.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"}),k.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),k.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),k.createElement(yj,{text:T?"Restore offline mock":"Mock offline behavior"}))))),k.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>k.createElement(qj,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:S,key:e.queryHash,queryCache:g}))))),C&&n?k.createElement(Pj,{activeQueryHash:C,queryCache:g,queryClient:f,errorTypes:p}):null,c?k.createElement(pj,Rx({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),Pj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=zj(e,(()=>e.getAll().find((e=>e.queryHash===t)))),s=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=E((()=>{if(r&&null!=s&&s.error){const e=o.find((e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[r,null==s?void 0:s.error,o]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return k.createElement(lj,null,k.createElement("div",{style:{padding:".5em",background:$w.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),k.createElement("div",{style:{padding:".5em"}},k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},k.createElement(hj,{style:{lineHeight:"1.8em"}},k.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Zw(r.queryKey,!0))),k.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Jw({queryState:s,isStale:c,observerCount:u,theme:$w}),flexShrink:0}},Xw(r))),k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",k.createElement(hj,null,u)),k.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",k.createElement(hj,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),k.createElement("div",{style:{background:$w.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),k.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},k.createElement(pj,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(Nj)},disabled:"fetching"===s.fetchStatus,style:{background:$w.active}},"Refetch")," ",k.createElement(pj,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:$w.warning,color:$w.inputTextColor}},"Invalidate")," ",k.createElement(pj,{type:"button",onClick:()=>n.resetQueries(r),style:{background:$w.gray}},"Reset")," ",k.createElement(pj,{type:"button",onClick:()=>n.removeQueries(r),style:{background:$w.danger}},"Remove")," ",k.createElement(pj,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:$w.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?k.createElement(pj,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:$w.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):k.createElement("label",null,"Trigger error:",k.createElement(gj,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},k.createElement("option",{key:"",value:""}),o.map((e=>k.createElement("option",{key:e.name,value:e.name},e.name)))))),k.createElement("div",{style:{background:$w.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Aj,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),k.createElement("div",{style:{background:$w.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Aj,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},Dj=({queryCache:e})=>{const t=zj(e,(()=>e.getAll().filter((e=>"fresh"===Xw(e))).length)),n=zj(e,(()=>e.getAll().filter((e=>"fetching"===Xw(e))).length)),o=zj(e,(()=>e.getAll().filter((e=>"paused"===Xw(e))).length)),a=zj(e,(()=>e.getAll().filter((e=>"stale"===Xw(e))).length)),i=zj(e,(()=>e.getAll().filter((e=>"inactive"===Xw(e))).length));return k.createElement(dj,null,k.createElement(mj,{style:{background:$w.success,opacity:t?1:.3}},"fresh ",k.createElement(hj,null,"(",t,")"))," ",k.createElement(mj,{style:{background:$w.active,opacity:n?1:.3}},"fetching ",k.createElement(hj,null,"(",n,")"))," ",k.createElement(mj,{style:{background:$w.paused,opacity:o?1:.3}},"paused ",k.createElement(hj,null,"(",o,")"))," ",k.createElement(mj,{style:{background:$w.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",k.createElement(hj,null,"(",a,")"))," ",k.createElement(mj,{style:{background:$w.gray,opacity:i?1:.3}},"inactive ",k.createElement(hj,null,"(",i,")")))},qj=k.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(r=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&r,d=null!=(s=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?s:0;return u?k.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+$w.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},k.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Jw({queryState:u,isStale:l,observerCount:d,theme:$w}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?k.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:$w.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,k.createElement(hj,{style:{padding:".5em"}},""+c)):null}));function Nj(){}qj.displayName="QueryRow";const Mj="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=k.useRef(null),p=k.useRef(null),[d,m]=Vx("reactQueryDevtoolsOpen",e),[h,f]=Vx("reactQueryDevtoolsHeight",oj),[g,y]=Vx("reactQueryDevtoolsWidth",oj),[v="bottom",b]=Vx("reactQueryDevtoolsPanelPosition",c),[x,w]=k.useState(!1),[j,_]=k.useState(!1),E=function(){const e=k.useRef(!1),t=k.useCallback((()=>e.current),[]);return k.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();k.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),k.useEffect((()=>{const e=p.current;if(e){const t=()=>{x&&(e.style.visibility="visible")},n=()=>{x||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[x]),k.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=sj("padding",v),n=ij(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?g:h)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[x,v,h,g]);const{style:C={},...S}=t,{style:R={},onClick:T,...O}=o,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=rj(e),c=sj("border",s),u=ij(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:oj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:oj}}}({position:v,devtoolsTheme:$w,isOpen:x,height:h,width:g,isResizing:j,panelStyle:C});return E()?k.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},k.createElement(Qw,{theme:$w},k.createElement(Lj,Rx({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},S,{style:A,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=ij(v);_(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=o+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{j&&_(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:u}))),x?null:k.createElement("button",Rx({type:"button"},O,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!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"},...R}}),k.createElement(Ij,{"aria-hidden":!0}),k.createElement(yj,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Fj,Uj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Bj(e){var o=this,i=e.children,r=process.env.ENVIRONMENT,s=E((function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"}),[process.env.ENVIRONMENT]),c=w(!1),u=c[0],l=c[1],p=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,Sh.refreshInstance({headers:a(a({},o),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s,l]);_((function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}}),[p]);var d=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c,u,p;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,Sh.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),yg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}}))}))}),[s,l]);return _((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)}),[l,d]),u?React.createElement(If,{client:yg},i,React.createElement(Mj,{initialIsOpen:!1})):React.createElement("div",{style:Uj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Fj||(Fj={}));var Hj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Hj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!Pa())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ia.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}}))}))}();export{Kd as AI,Eh as Api,Fj as ApiErrorCodes,Bj as ApiProvider,Sh as ApiSingleton,Ud as Cms,Fd as Country,Gd as DataReport,Md as Organization,Nd as PaymentFiltersSection,$d as ReconciliationAgendaInsight,Vd as ReconciliationReportType,Bd as ReportType,qd as SendPaymentNotification,Wd as SmartRouting,Hd as TemplateType,Sb as getQueryKeyGetNameAndIcon,Tb as getQueryKeyRequiredFields,gg as queryCache,yg as queryClient,xb as use3DSExemptions,ov as useAICreateWorkflow,Yk as useAllFeatureFlags,mx as useAllowListDetail,dx as useBlackListDetail,Zk as useCachedFeatureFlag,xg as useCancelReport,ag as useChangePasswordV2,vy as useChangePaymentsWebhook,my as useChangeStatusBlackList,hy as useChangeStatusItemBlackList,Pb as useChangeStylingSettings,fg as useChargebacksUpload,wx as useChartExecute,Vb as useCommunicationDetails,Wb as useCommunications,Gb as useCommunicationsFilters,ty as useConfirmedOtpMfa,kg as useCountRowsForReport,cv as useCreateAndExecuteChart,iv as useCreateChart,Mg as useCreateMonitorTemplate,Ng as useCreateMonitorThreshold,hg as useCreateOperationTransaction,Vg as useCreatePaymentLinks,Jy as useCreateReconciliationAlert,Ky as useCreateReconciliationReportTemplate,vg as useCreateReconciliationsReportV2,wg as useCreateReportTemplate,bg as useCreateReportV2,Hg as useCreateRoles,ev as useCreateSamlConfig,Iy as useCreateScheduledReport,cg as useCreateUserAuth0,_g as useCreateWorkflow,$f as useDeleteAccountsUserMassive,xy as useDeleteAllowlistItem,gy as useDeleteBlackListType,by as useDeleteBlockListItem,rv as useDeleteChart,Hy as useDeleteCustomizedApiKeys,$g as useDeletePaymentLink,Xy as useDeleteReconciliationAlert,Gg as useDeleteRoles,nv as useDeleteSamlConfig,Ly as useDeleteScheduledReport,Ug as useDeleteUserTeamV2,Sg as useDeleteVersion,Uf as useDeleteWebhookV2,Rg as useDuplicateVersion,Kg as useEditPaymentLinks,Wg as useEditRoles,Mb as useEmailVerification,Oy as useExcludeUsers,Xk as useFeatureFlags,sx as useFirebaseUserSubscribe,av as useGenerateFeedback,Xv as useGetAccounts,Zv as useGetAccountsByUser,Yv as useGetAccountsV2,yx as useGetAllConfigRules,Fv as useGetAllOrganizations,Qk as useGetAllReconciliationsAdvancements,Vk as useGetAllReconciliationsAgenda,Gk as useGetAllReconciliationsAlerts,Jk as useGetAllReconciliationsFees,Kk as useGetAllReconciliationsSales,Uk as useGetAllTableColumns,Lv as useGetAllowedIps,ex as useGetAuditEvents,ib as useGetAuditLogsFilters,tx as useGetAuditMonitorEventDetail,Cy as useGetBatchRefundProcessedFileDownload,Sy as useGetBatchRefundUserFileDownload,fx as useGetBatchRefunds,ux as useGetBlackList,px as useGetBlockListSummary,yv as useGetCardBrands,jx as useGetChartsByUser,_x as useGetChartsByUserWithResults,Cb as useGetCheckoutTemplate,Eb as useGetCheckouts,Py as useGetConditionalConfigRules,cx as useGetConfigAllowlist,Vv as useGetConnections,Wv as useGetConnectionsByPaymentMethod,ax as useGetCountriesConfigPaymentLink,ix as useGetCountriesConfigPaymentLinkV2,Iv as useGetCredentials,Vy as useGetCredentialsMFA,Dv as useGetCustomizedApiKeys,Pv as useGetCustomizedApiKeysAccounts,zv as useGetCustomizedApiKeysMembers,qv as useGetCustomizedApiKeysProducts,Uy as useGetCustomizedApiKeysToken,rb as useGetDashboardStaticContents,$v as useGetDialogs,tk as useGetDownloadReport,ey as useGetEmailOtp,Gv as useGetHashPylon,Bb as useGetImpersonationEnabled,Ub as useGetImpersonationUsers,xk as useGetInsightsReport,wk as useGetInsightsReportAgain,Hv as useGetIntegrationByAccountV2,Bv as useGetIntegrationParams,Cx as useGetLanguages,sb as useGetLocales,Fb as useGetLoginMethods,bx as useGetMFAConfig,vx as useGetMFAExcludedUsers,kx as useGetMFAStatus,eb as useGetMenu,Qb as useGetMergedNotifications,Rb as useGetNameAndIcon,$b as useGetNotificationsCustomer,Jb as useGetNotificationsNumberMutation,Mv as useGetOrganization,vv as useGetPaymentFilters,ox as useGetPaymentLinkByCode,nx as useGetPaymentLinks,gv as useGetPaymentMethodsAndProviders,bv as useGetPaymentMetricsFilters,tb as useGetPaymentStatusesStyles,kv as useGetPaymentTransactionsDetails,dv as useGetPaymentV2,fv as useGetPaymentsMethodsByCountry,_v as useGetPayoutDetail,Cv as useGetPayoutHistoryDetail,Ev as useGetPayoutTransactionDetail,Nb as useGetPermissions,uk as useGetPermissionsCatalog,Db as useGetProfile,Sv as useGetProofOfCancel,Rv as useGetProofOfPayment,Uv as useGetProviderParams,Bk as useGetReconciliationActive,$k as useGetReconciliationAgendaInsightsByKey,Fk as useGetReconciliationFilters,Mk as useGetReconciliationMetrics,ob as useGetReconciliationTransactionStatusesStyles,qk as useGetReconciliationTransactions,Hk as useGetReconciliationsReportColumns,Wk as useGetReconciliationsReportTemplates,ak as useGetRefundPdf,ok as useGetReportColumns,nk as useGetReportTemplates,Zb as useGetReportsList,ek as useGetReportsListMultiEnv,Ob as useGetRequiredFields,sk as useGetRoles,ck as useGetRolesPermissions,_b as useGetRoutingMonitorsTemplate,jb as useGetRoutingMonitorsTemplates,Dy as useGetRule,xx as useGetSamlConfig,Ay as useGetScheduledReportsList,Nk as useGetSettlements,db as useGetSmartRoutingConditionPaymentMethod,pb as useGetSmartRoutingConditionTypes,mb as useGetSmartRoutingConditionTypesValues,lk as useGetSmartRoutingDataReport,gb as useGetSmartRoutingDeclineGroups,ub as useGetSmartRoutingMethods,fb as useGetSmartRoutingNextRoute,yb as useGetSmartRoutingPaymentRoute,bb as useGetSmartRoutingSearchConditionValues,vb as useGetSmartRoutingSimulateConditionTypeValues,lb as useGetSmartRoutingWorkflow,hb as useGetSmartRoutingWorkflowVersion,Ab as useGetStylingSdkDynamic,zb as useGetStylingSettings,Lb as useGetStylingSettingsV2,Ib as useGetStylingTheme,ik as useGetTeamsFiltersMembers,ab as useGetTimeZoneCatalog,rx as useGetTimezonePaymentLink,Zg as useGetTokenValidation,mv as useGetTransactionDetailsV2,xv as useGetTransactionHistoryByPaymentCode,hv as useGetTransactionRawResponse,nb as useGetTransactionStatusesStyles,Sx as useGetTranslations,qb as useGetUserFull,Hb as useGetUsersToImpersonate,Kb as useGetValidateOpsgenieKey,Kv as useGetWebhookParamsV2,Jv as useGetWebhooksV2Detail,Qv as useGetWebhooksV3,Ck as useInsights3dsConversionRateAndEvolution,Sk as useInsights3dsDeclineReasons,Rk as useInsights3dsFrictionlessVsChallenge,Ek as useInsights3dsVolumeAndCountTx,Dk as useInsightsChargebacksByCardBrand,zk as useInsightsChargebacksByProviderAndCardBrand,Ik as useInsightsChargebacksDisputed,Lk as useInsightsChargebacksReasonsDistribution,Pk as useInsightsChargebacksStatusDistribution,Ok as useInsightsChargebacksTotalRateAndEvolution,Tk as useInsightsChargebacksVolumeAndCountTx,Ak as useInsightsChargebacksWinRate,pk as useInsightsConversionRateMetricsV2,yk as useInsightsCustomerPaymentsAndFraudMetrics,mk as useInsightsFallbackMetrics,_k as useInsightsFraudScreeningConversionRate,jk as useInsightsFraudScreeningVolumeAndCountTx,kk as useInsightsHomeMetrics,vk as useInsightsOverviewMetrics,bk as useInsightsOverviewMetricsV3,gk as useInsightsTotalPaymentsAndFraudMetrics,hk as useInsightsVolumeMetrics,fk as useInsightsVolumeMetricsV2,rg as useInviteUsersMultiaccountMassive,cb as useIsTesting,lg as useLoginMethods,wb as useNetworkTokensOnboarding,Yf as useNewPostConnectionValidate,Wf as usePatchAccountV2,uy as usePatchAddAllowlistItems,Nv as usePatchAllowedIps,ly as usePatchAllowlist,Ex as usePatchAndExecuteChart,Wy as usePatchApiKeysEditNote,sy as usePatchChangeStatusAllowlist,cy as usePatchChangeStatusAllowlistItem,sv as usePatchChartName,Zf as usePatchConnection,Fy as usePathCreateCustomizedApiKeys,Xb as usePathNotifications,Av as usePayoutsFilters,Ov as usePayoutsList,Hf as usePostAccount,hx as usePostAllowlistMultiAccount,Gy as usePostApiKeysRoll,$y as usePostAuditMonitors,Ey as usePostBatchRefundByFile,yy as usePostBlackListBatch,fy as usePostBlackListItems,py as usePostBlackListMultiAccount,lx as usePostBlockList,ug as usePostCall,Qf as usePostChangeStatusConnection,Xf as usePostConnectionMultiAccount,ry as usePostCreateAllowlistMultiAccount,My as usePostCreateCustomizedApiKeys,Zy as usePostCreateInsightsReport,qy as usePostCreateRuleMultiAccount,By as usePostCredentialsValidatePassword,eg as usePostDefaultRoutes,Ny as usePostEditRule,jv as usePostFraudTransactions,ay as usePostGetAllowlistItems,iy as usePostGetAllowlistMultiAccount,rk as usePostMembersPaginatedV2,pv as usePostPaymentsEvaluated,lv as usePostPaymentsLazy,Fg as usePostSlackMessageChannel,wv as usePostTransactions,Qg as usePostUserSettings,Yg as usePostUserSettingsPinned,Xg as usePostUserSettingsTables,Jg as usePostUserThemeSettings,Kf as usePostValideStatusConnection,gx as usePostVelocityRules,Ff as usePostWebhookMultiAccount,kb as useProviderConversionRatesData,Eg as usePublishVersion,Gf as usePutAccountPrincipal,Vf as usePutAccountsUserMassive,dy as usePutBlackListType,Jf as usePutCosts,Cg as useSaveVersion,Tv as useSendPaymentNotification,Bg as useSetCustodian,Ag as useSmartRoutingCreateDeclinedGroup,zg as useSmartRoutingEditWorkflowName,qg as useSmartRoutingMultiAccountDeclinedGroupCreate,Dg as useSmartRoutingRemoveDeclinedGroup,Lg as useSmartRoutingSimulateTransaction,Ig as useSmartRoutingToggleFavorite,Og as useSmartRoutingUpdateDeclinedGroup,Pg as useSmartRoutingUpdateMonitorRedistribution,Tg as useToggleMethod,sg as useUnInviteUsersV2,ny as useUnrollUserV2,dg as useUpdateCheckoutTemplate,pg as useUpdateIsActiveCheckout,Ty as useUpdateMFAConfig,ng as useUpdateOrganizationStatus,ig as useUpdateProfile,Yy as useUpdateReconciliationAlert,Qy as useUpdateReconciliationReportTemplate,jg as useUpdateReportTemplate,tv as useUpdateSamlConfig,zy as useUpdateScheduledReport,mg as useUpdateStylingTheme,Bf as useUpdateWebhookV2,jy as useUploadBatchRefundsFileV2,_y as useUploadBatchRefundsV2,Ry as useUploadFileS3ClientBatchRefunds,wy as useValiateAllowlistItems,ky as useValidateBlockListItems,tg as useValidateCredentials,og as useValidateOrgName,oy as useValidatePasswordStatus,dk as useViewMoreMetrics};
240
+ const Ix=7,zx=6,Lx=5,Px=4,Dx=3,qx=2,Nx=1,Mx=0;function Fx(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Nx,!n.accessors){const o=Ux(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=Gx(a),r=Hx(e,a);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Mx,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=Ux(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=Nx?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function Ux(e,t,n){return e=Bx(e,n),(t=Bx(t,n)).length>e.length?Mx:e===t?Ix:(e=e.toLowerCase())===(t=t.toLowerCase())?zx:e.startsWith(t)?Lx:e.includes(` ${t}`)?Px:e.includes(t)?Dx:1===t.length?Mx:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?qx:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return Nx+a*o}const r=a(t[0],e,0);if(r<0)return Mx;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Mx}const s=o-r;return i(s)}(e,t)}function Bx(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Ax,(e=>Tx[e]))),e}function Hx(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 Wx={maxRanking:1/0,minRanking:-1/0};function Gx(e){return"function"==typeof e?Wx:{...Wx,...e}}function Vx(e,t){const[n,o]=k.useState();k.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,k.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var $x,Kx=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}(),Qx=function(){function e(e){this.generateIdentifier=e,this.kv=new Kx}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}(),Jx=($x=function(e,t){return $x=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])},$x(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}$x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xx=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Jx(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}(Qx),Yx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function Zx(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function ew(e,t){Object.entries(e).forEach((function(e){var n=Yx(e,2),o=n[0],a=n[1];return t(a,o)}))}function tw(e,t){return-1!==e.indexOf(t)}function nw(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var ow=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Zx(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),aw=function(e){return void 0===e},iw=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},rw=function(e){return iw(e)&&0===Object.keys(e).length},sw=function(e){return Array.isArray(e)},cw=function(e){return e instanceof Map},uw=function(e){return e instanceof Set},lw=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},pw=function(e){return"number"==typeof e&&isNaN(e)},dw=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||aw(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||lw(e)},mw=function(e){return e.replace(/\./g,"\\.")},hw=function(e){return e.map(String).map(mw).join(".")},fw=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},gw=function(){return gw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},gw.apply(this,arguments)},yw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},vw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function bw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var kw=[bw(aw,"undefined",(function(){return null}),(function(){})),bw((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)})),bw((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),bw((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})),bw((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)})),bw(uw,"set",(function(e){return vw([],yw(e.values()))}),(function(e){return new Set(e)})),bw(cw,"map",(function(e){return vw([],yw(e.entries()))}),(function(e){return new Map(e)})),bw((function(e){return pw(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return pw(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),bw((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),bw((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function xw(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var ww=xw((function(e,t){return!!lw(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})),jw=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),_w=xw((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return vw([],yw(e))}),(function(e,t){var n=jw[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Ew(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Cw=xw(Ew,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return gw({},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)})),Sw=xw((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)})),Rw=[Cw,ww,Sw,_w],Tw=function(e,t){var n=nw(Rw,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=nw(kw,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Ow={};kw.forEach((function(e){Ow[e.annotation]=e}));var Aw=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Iw(e){if(tw(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(tw(e,"prototype"))throw new Error("prototype is not allowed as a property");if(tw(e,"constructor"))throw new Error("constructor is not allowed as a property")}var zw=function(e,t,n){if(Iw(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(sw(o))o=o[+i];else if(iw(o))o=o[i];else if(uw(o)){o=Aw(o,r=+i)}else if(cw(o)){if(a===t.length-2)break;var r=+i,s=0==+t[++a]?"key":"value",c=Aw(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(sw(o)?o[+u]=n(o[+u]):iw(o)&&(o[u]=n(o[u])),uw(o)){var l=Aw(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if(cw(o)){r=+t[t.length-2];var d=Aw(o,r);switch(s=0==+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},Lw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Pw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Dw(e,t,n){if(void 0===n&&(n=[]),e)if(sw(e)){var o=Lw(e,2),a=o[0],i=o[1];i&&ew(i,(function(e,o){Dw(e,t,Pw(Pw([],Lw(n)),Lw(fw(o))))})),t(a,n)}else ew(e,(function(e,o){return Dw(e,t,Pw(Pw([],Lw(n)),Lw(fw(o))))}))}function qw(e,t,n){return Dw(t,(function(t,o){e=zw(e,o,(function(e){return function(e,t,n){if(!sw(t)){var o=Ow[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return ww.untransform(e,t,n);case"class":return Cw.untransform(e,t,n);case"custom":return Sw.untransform(e,t,n);case"typed-array":return _w.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Nw(e,t){function n(t,n){var o=function(e,t){Iw(t);for(var n=0;n<t.length;n++){var o=t[n];if(uw(e))e=Aw(e,+o);else if(cw(e)){var a=+o,i=0==+t[++n]?"key":"value",r=Aw(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,fw(n));t.map(fw).forEach((function(t){e=zw(e,t,(function(){return o}))}))}if(sw(t)){var o=Lw(t,2),a=o[0],i=o[1];a.forEach((function(t){e=zw(e,fw(t),(function(){return e}))})),i&&ew(i,n)}else ew(t,n);return e}var Mw=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=dw(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return iw(e)||sw(e)||cw(e)||uw(e)||Ew(e,t)}(e,n)){var l=Tw(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(tw(i,e))return{transformedValue:null};var d=Tw(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=sw(m)?[]:{},f={};ew(m,(function(s,c){var u=Mw(s,t,n,o,Pw(Pw([],Lw(a)),[c]),Pw(Pw([],Lw(i)),[e]),r);h[c]=u.transformedValue,sw(u.annotations)?f[c]=u.annotations:iw(u.annotations)&&ew(u.annotations,(function(e,t){f[mw(c)+"."+t]=e}))}));var g=rw(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function Fw(e){return Object.prototype.toString.call(e).slice(8,-1)}function Uw(e){return"Array"===Fw(e)}function Bw(e,t={}){if(Uw(e))return e.map((e=>Bw(e,t)));if(!function(e){if("Object"!==Fw(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(Uw(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Bw(e[o],t),e,t.nonenumerable),n}),{})}var Hw=function(){return Hw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Hw.apply(this,arguments)},Ww=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Gw=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Vw=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Xx,this.symbolRegistry=new Qx((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new ow,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Mw(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Hw(Hw({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){i||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=Lw(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(hw):r[hw(n)]=o.map(hw)}})),s?rw(r)?[s]:[s,r]:rw(r)?void 0:r);return c&&(o.meta=Hw(Hw({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Bw(t);return(null==n?void 0:n.values)&&(o=qw(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Nw(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(Hw({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,Gw([],Ww(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 $w={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Kw=k.createContext($w);function Qw({theme:e,...t}){return k.createElement(Kw.Provider,Rx({value:e},t))}function Jw({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 Xw(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Yw(e,t,n={}){return k.forwardRef((({style:o,...a},i)=>{const r=k.useContext(Kw),s=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=k.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return k.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e),{});return k.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})}))}const Zw=(e,t=!1)=>{const{json:n}=Vw.serialize(e);return JSON.stringify(n,null,t?2:void 0)},ej=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,tj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,nj={"Status > Last Updated":(e,t)=>ej(e)===ej(t)?tj(e,t):ej(e)>ej(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":tj},oj=500,aj={top:"bottom",bottom:"top",left:"right",right:"left"};function ij(e){return["left","right"].includes(e)}function rj(e){return aj[e]}function sj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function cj(e="bottom"){const t=ij(e),n=rj(e),o=sj("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 uj=Yw("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"}}),lj=Yw("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),pj=Yw("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"}))),dj=Yw("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),mj=Yw("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),hj=Yw("code",{fontSize:".9em",color:"inherit",background:"inherit"}),fj=Yw("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),gj=Yw("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 yj({text:e}){return k.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const vj=Yw("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),bj=Yw("span",{color:"white"}),kj=Yw("button",{cursor:"pointer",color:"white"}),xj=Yw("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),wj=({value:e})=>{const[t,n]=k.useState("NoCopy");return k.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Vw.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?k.createElement(Sj,null):"SuccessCopy"===t?k.createElement(Tj,null):k.createElement(Rj,null))},jj=Yw("span",((e,t)=>({color:t.danger}))),_j=Yw("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ej=Yw("span",{color:"grey",fontSize:".7em"}),Cj=({expanded:e,style:t={}})=>k.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Sj=()=>k.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},k.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"}),k.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"}))),Rj=()=>k.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},k.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"})),k.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Tj=()=>k.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},k.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},k.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 Oj=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=k.useState([]);return k.createElement(vj,{key:t},a.length?k.createElement(k.Fragment,null,k.createElement(xj,{onClick:()=>c()},k.createElement(Cj,{expanded:r})," ",t," ",k.createElement(Ej,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?k.createElement(wj,{value:n}):null,r?1===a.length?k.createElement(_j,null,o.map(e)):k.createElement(_j,null,a.map(((t,n)=>k.createElement("div",{key:n},k.createElement(vj,null,k.createElement(kj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},k.createElement(Cj,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?k.createElement(_j,null,t.map(e)):null))))):null):k.createElement(k.Fragment,null,k.createElement(bj,null,t,":")," ",k.createElement(jj,null,Zw(n))))};function Aj({value:e,defaultExpanded:t,renderer:n=Oj,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=k.useState(Boolean(t)),c=k.useCallback((()=>s((e=>!e))),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>k.createElement(Aj,Rx({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function Ij(e){return k.createElement("svg",Rx({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),k.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},k.createElement("g",{transform:"translate(-33.000000, 0.000000)"},k.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) "}),k.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"}),k.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 zj=(e,t,n=!1)=>Cf.useSyncExternalStore(k.useCallback((t=>n?()=>{}:e.subscribe(rf.batchCalls(t))),[e,n]),t,t),Lj=k.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=Af({context:i}),g=f.getQueryCache(),[y,v]=Vx("reactQueryDevtoolsSortFn",Object.keys(nj)[0]),[b,x]=Vx("reactQueryDevtoolsFilter",""),[w,j]=Vx("reactQueryDevtoolsBaseSort",1),_=k.useMemo((()=>nj[y]),[y]),E=zj(g,(()=>g.getAll().length),!n),[C,S]=Vx("reactQueryDevtoolsActiveQueryHash",""),R=k.useMemo((()=>{const e=g.getAll();if(0===E)return[];const t=b?e.filter((e=>Fx(e.queryHash,b).passed)):[...e];return _?t.sort(((e,t)=>_(e,t)*w)):t}),[w,_,b,E,g]),[T,O]=k.useState(!1);return k.createElement(Qw,{theme:$w},k.createElement(uj,Rx({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:oj,position:"relative",...d.style}}),k.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+$w.backgroundAlt+" "+$w.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: "+$w.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+$w.gray+";\n border-radius: .5em;\n border: 3px solid "+$w.backgroundAlt+";\n }\n "}}),k.createElement("div",{style:cj(u),onMouseDown:r}),n&&k.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+$w.grayAlt,display:"flex",flexDirection:"column"}},k.createElement("div",{style:{padding:".5em",background:$w.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},k.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"}},k.createElement(Ij,{"aria-hidden":!0}),k.createElement(yj,{text:"Close React Query Devtools"})),k.createElement("div",{style:{display:"flex",flexDirection:"column"}},k.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},k.createElement(Dj,{queryCache:g}),u&&s?k.createElement(gj,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},k.createElement("option",{value:"left"},"Left"),k.createElement("option",{value:"right"},"Right"),k.createElement("option",{value:"top"},"Top"),k.createElement("option",{value:"bottom"},"Bottom")):null),k.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},k.createElement(fj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),k.createElement(gj,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(nj).map((e=>k.createElement("option",{key:e,value:e},"Sort by ",e)))),k.createElement(pj,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),k.createElement(pj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),k.createElement(pj,{type:"button",onClick:()=>{T?(Yh.setOnline(void 0),O(!1),window.dispatchEvent(new Event("online"))):(Yh.setOnline(!1),O(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?$w.danger:"currentColor",fill:"none"},T?k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.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"}),k.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"}),k.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),k.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),k.createElement(yj,{text:T?"Restore offline mock":"Mock offline behavior"}))))),k.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>k.createElement(qj,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:S,key:e.queryHash,queryCache:g}))))),C&&n?k.createElement(Pj,{activeQueryHash:C,queryCache:g,queryClient:f,errorTypes:p}):null,c?k.createElement(pj,Rx({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),Pj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=zj(e,(()=>e.getAll().find((e=>e.queryHash===t)))),s=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=E((()=>{if(r&&null!=s&&s.error){const e=o.find((e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[r,null==s?void 0:s.error,o]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return k.createElement(lj,null,k.createElement("div",{style:{padding:".5em",background:$w.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),k.createElement("div",{style:{padding:".5em"}},k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},k.createElement(hj,{style:{lineHeight:"1.8em"}},k.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Zw(r.queryKey,!0))),k.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Jw({queryState:s,isStale:c,observerCount:u,theme:$w}),flexShrink:0}},Xw(r))),k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",k.createElement(hj,null,u)),k.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",k.createElement(hj,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),k.createElement("div",{style:{background:$w.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),k.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},k.createElement(pj,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(Nj)},disabled:"fetching"===s.fetchStatus,style:{background:$w.active}},"Refetch")," ",k.createElement(pj,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:$w.warning,color:$w.inputTextColor}},"Invalidate")," ",k.createElement(pj,{type:"button",onClick:()=>n.resetQueries(r),style:{background:$w.gray}},"Reset")," ",k.createElement(pj,{type:"button",onClick:()=>n.removeQueries(r),style:{background:$w.danger}},"Remove")," ",k.createElement(pj,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:$w.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?k.createElement(pj,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:$w.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):k.createElement("label",null,"Trigger error:",k.createElement(gj,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},k.createElement("option",{key:"",value:""}),o.map((e=>k.createElement("option",{key:e.name,value:e.name},e.name)))))),k.createElement("div",{style:{background:$w.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Aj,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),k.createElement("div",{style:{background:$w.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(Aj,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},Dj=({queryCache:e})=>{const t=zj(e,(()=>e.getAll().filter((e=>"fresh"===Xw(e))).length)),n=zj(e,(()=>e.getAll().filter((e=>"fetching"===Xw(e))).length)),o=zj(e,(()=>e.getAll().filter((e=>"paused"===Xw(e))).length)),a=zj(e,(()=>e.getAll().filter((e=>"stale"===Xw(e))).length)),i=zj(e,(()=>e.getAll().filter((e=>"inactive"===Xw(e))).length));return k.createElement(dj,null,k.createElement(mj,{style:{background:$w.success,opacity:t?1:.3}},"fresh ",k.createElement(hj,null,"(",t,")"))," ",k.createElement(mj,{style:{background:$w.active,opacity:n?1:.3}},"fetching ",k.createElement(hj,null,"(",n,")"))," ",k.createElement(mj,{style:{background:$w.paused,opacity:o?1:.3}},"paused ",k.createElement(hj,null,"(",o,")"))," ",k.createElement(mj,{style:{background:$w.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",k.createElement(hj,null,"(",a,")"))," ",k.createElement(mj,{style:{background:$w.gray,opacity:i?1:.3}},"inactive ",k.createElement(hj,null,"(",i,")")))},qj=k.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(r=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&r,d=null!=(s=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?s:0;return u?k.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+$w.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},k.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Jw({queryState:u,isStale:l,observerCount:d,theme:$w}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?k.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:$w.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,k.createElement(hj,{style:{padding:".5em"}},""+c)):null}));function Nj(){}qj.displayName="QueryRow";const Mj="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=k.useRef(null),p=k.useRef(null),[d,m]=Vx("reactQueryDevtoolsOpen",e),[h,f]=Vx("reactQueryDevtoolsHeight",oj),[g,y]=Vx("reactQueryDevtoolsWidth",oj),[v="bottom",b]=Vx("reactQueryDevtoolsPanelPosition",c),[x,w]=k.useState(!1),[j,_]=k.useState(!1),E=function(){const e=k.useRef(!1),t=k.useCallback((()=>e.current),[]);return k.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();k.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),k.useEffect((()=>{const e=p.current;if(e){const t=()=>{x&&(e.style.visibility="visible")},n=()=>{x||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[x]),k.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=sj("padding",v),n=ij(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?g:h)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[x,v,h,g]);const{style:C={},...S}=t,{style:R={},onClick:T,...O}=o,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=rj(e),c=sj("border",s),u=ij(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:oj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:oj}}}({position:v,devtoolsTheme:$w,isOpen:x,height:h,width:g,isResizing:j,panelStyle:C});return E()?k.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},k.createElement(Qw,{theme:$w},k.createElement(Lj,Rx({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},S,{style:A,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=ij(v);_(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=o+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{j&&_(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:u}))),x?null:k.createElement("button",Rx({type:"button"},O,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!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"},...R}}),k.createElement(Ij,{"aria-hidden":!0}),k.createElement(yj,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Fj,Uj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Bj(e){var o=this,i=e.children,r=process.env.ENVIRONMENT,s=E((function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"}),[process.env.ENVIRONMENT]),c=w(!1),u=c[0],l=c[1],p=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,Sh.refreshInstance({headers:a(a({},o),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s,l]);_((function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}}),[p]);var d=C((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c,u,p;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,Sh.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),yg.refetchQueries(["fetch-profile","get-user-full","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}}))}))}),[s,l]);return _((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)}),[l,d]),u?React.createElement(If,{client:yg},i,React.createElement(Mj,{initialIsOpen:!1})):React.createElement("div",{style:Uj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Fj||(Fj={}));var Hj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Hj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!Pa())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ia.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}}))}))}();export{Kd as AI,Eh as Api,Fj as ApiErrorCodes,Bj as ApiProvider,Sh as ApiSingleton,Ud as Cms,Fd as Country,Gd as DataReport,Md as Organization,Nd as PaymentFiltersSection,$d as ReconciliationAgendaInsight,Vd as ReconciliationReportType,Bd as ReportType,qd as SendPaymentNotification,Wd as SmartRouting,Hd as TemplateType,Sb as getQueryKeyGetNameAndIcon,Tb as getQueryKeyRequiredFields,gg as queryCache,yg as queryClient,xb as use3DSExemptions,ov as useAICreateWorkflow,Yk as useAllFeatureFlags,mx as useAllowListDetail,dx as useBlackListDetail,Zk as useCachedFeatureFlag,xg as useCancelReport,ag as useChangePasswordV2,vy as useChangePaymentsWebhook,my as useChangeStatusBlackList,hy as useChangeStatusItemBlackList,Pb as useChangeStylingSettings,fg as useChargebacksUpload,wx as useChartExecute,Vb as useCommunicationDetails,Wb as useCommunications,Gb as useCommunicationsFilters,ty as useConfirmedOtpMfa,kg as useCountRowsForReport,cv as useCreateAndExecuteChart,iv as useCreateChart,Mg as useCreateMonitorTemplate,Ng as useCreateMonitorThreshold,hg as useCreateOperationTransaction,Vg as useCreatePaymentLinks,Jy as useCreateReconciliationAlert,Ky as useCreateReconciliationReportTemplate,vg as useCreateReconciliationsReportV2,wg as useCreateReportTemplate,bg as useCreateReportV2,Hg as useCreateRoles,ev as useCreateSamlConfig,Iy as useCreateScheduledReport,cg as useCreateUserAuth0,_g as useCreateWorkflow,$f as useDeleteAccountsUserMassive,xy as useDeleteAllowlistItem,gy as useDeleteBlackListType,by as useDeleteBlockListItem,rv as useDeleteChart,Hy as useDeleteCustomizedApiKeys,$g as useDeletePaymentLink,Xy as useDeleteReconciliationAlert,Gg as useDeleteRoles,nv as useDeleteSamlConfig,Ly as useDeleteScheduledReport,Ug as useDeleteUserTeamV2,Sg as useDeleteVersion,Uf as useDeleteWebhookV2,Rg as useDuplicateVersion,Kg as useEditPaymentLinks,Wg as useEditRoles,Mb as useEmailVerification,Oy as useExcludeUsers,Xk as useFeatureFlags,sx as useFirebaseUserSubscribe,av as useGenerateFeedback,Xv as useGetAccounts,Zv as useGetAccountsByUser,Yv as useGetAccountsV2,yx as useGetAllConfigRules,Fv as useGetAllOrganizations,Qk as useGetAllReconciliationsAdvancements,Vk as useGetAllReconciliationsAgenda,Gk as useGetAllReconciliationsAlerts,Jk as useGetAllReconciliationsFees,Kk as useGetAllReconciliationsSales,Uk as useGetAllTableColumns,Lv as useGetAllowedIps,ex as useGetAuditEvents,ib as useGetAuditLogsFilters,tx as useGetAuditMonitorEventDetail,Cy as useGetBatchRefundProcessedFileDownload,Sy as useGetBatchRefundUserFileDownload,fx as useGetBatchRefunds,ux as useGetBlackList,px as useGetBlockListSummary,yv as useGetCardBrands,jx as useGetChartsByUser,_x as useGetChartsByUserWithResults,Cb as useGetCheckoutTemplate,Eb as useGetCheckouts,Py as useGetConditionalConfigRules,cx as useGetConfigAllowlist,Vv as useGetConnections,Wv as useGetConnectionsByPaymentMethod,ax as useGetCountriesConfigPaymentLink,ix as useGetCountriesConfigPaymentLinkV2,Iv as useGetCredentials,Vy as useGetCredentialsMFA,Dv as useGetCustomizedApiKeys,Pv as useGetCustomizedApiKeysAccounts,zv as useGetCustomizedApiKeysMembers,qv as useGetCustomizedApiKeysProducts,Uy as useGetCustomizedApiKeysToken,rb as useGetDashboardStaticContents,$v as useGetDialogs,tk as useGetDownloadReport,ey as useGetEmailOtp,Gv as useGetHashPylon,Bb as useGetImpersonationEnabled,Ub as useGetImpersonationUsers,xk as useGetInsightsReport,wk as useGetInsightsReportAgain,Hv as useGetIntegrationByAccountV2,Bv as useGetIntegrationParams,Cx as useGetLanguages,sb as useGetLocales,Fb as useGetLoginMethods,bx as useGetMFAConfig,vx as useGetMFAExcludedUsers,kx as useGetMFAStatus,eb as useGetMenu,Qb as useGetMergedNotifications,Rb as useGetNameAndIcon,$b as useGetNotificationsCustomer,Jb as useGetNotificationsNumberMutation,Mv as useGetOrganization,vv as useGetPaymentFilters,ox as useGetPaymentLinkByCode,nx as useGetPaymentLinks,gv as useGetPaymentMethodsAndProviders,bv as useGetPaymentMetricsFilters,tb as useGetPaymentStatusesStyles,kv as useGetPaymentTransactionsDetails,dv as useGetPaymentV2,fv as useGetPaymentsMethodsByCountry,_v as useGetPayoutDetail,Cv as useGetPayoutHistoryDetail,Ev as useGetPayoutTransactionDetail,Nb as useGetPermissions,uk as useGetPermissionsCatalog,Db as useGetProfile,Sv as useGetProofOfCancel,Rv as useGetProofOfPayment,Uv as useGetProviderParams,Bk as useGetReconciliationActive,$k as useGetReconciliationAgendaInsightsByKey,Fk as useGetReconciliationFilters,Mk as useGetReconciliationMetrics,ob as useGetReconciliationTransactionStatusesStyles,qk as useGetReconciliationTransactions,Hk as useGetReconciliationsReportColumns,Wk as useGetReconciliationsReportTemplates,ak as useGetRefundPdf,ok as useGetReportColumns,nk as useGetReportTemplates,Zb as useGetReportsList,ek as useGetReportsListMultiEnv,Ob as useGetRequiredFields,sk as useGetRoles,ck as useGetRolesPermissions,_b as useGetRoutingMonitorsTemplate,jb as useGetRoutingMonitorsTemplates,Dy as useGetRule,xx as useGetSamlConfig,Ay as useGetScheduledReportsList,Nk as useGetSettlements,db as useGetSmartRoutingConditionPaymentMethod,pb as useGetSmartRoutingConditionTypes,mb as useGetSmartRoutingConditionTypesValues,lk as useGetSmartRoutingDataReport,gb as useGetSmartRoutingDeclineGroups,ub as useGetSmartRoutingMethods,fb as useGetSmartRoutingNextRoute,yb as useGetSmartRoutingPaymentRoute,bb as useGetSmartRoutingSearchConditionValues,vb as useGetSmartRoutingSimulateConditionTypeValues,lb as useGetSmartRoutingWorkflow,hb as useGetSmartRoutingWorkflowVersion,Ab as useGetStylingSdkDynamic,zb as useGetStylingSettings,Lb as useGetStylingSettingsV2,Ib as useGetStylingTheme,ik as useGetTeamsFiltersMembers,ab as useGetTimeZoneCatalog,rx as useGetTimezonePaymentLink,Zg as useGetTokenValidation,mv as useGetTransactionDetailsV2,xv as useGetTransactionHistoryByPaymentCode,hv as useGetTransactionRawResponse,nb as useGetTransactionStatusesStyles,Sx as useGetTranslations,qb as useGetUserFull,Hb as useGetUsersToImpersonate,Kb as useGetValidateOpsgenieKey,Kv as useGetWebhookParamsV2,Jv as useGetWebhooksV2Detail,Qv as useGetWebhooksV3,Ck as useInsights3dsConversionRateAndEvolution,Sk as useInsights3dsDeclineReasons,Rk as useInsights3dsFrictionlessVsChallenge,Ek as useInsights3dsVolumeAndCountTx,Dk as useInsightsChargebacksByCardBrand,zk as useInsightsChargebacksByProviderAndCardBrand,Ik as useInsightsChargebacksDisputed,Lk as useInsightsChargebacksReasonsDistribution,Pk as useInsightsChargebacksStatusDistribution,Ok as useInsightsChargebacksTotalRateAndEvolution,Tk as useInsightsChargebacksVolumeAndCountTx,Ak as useInsightsChargebacksWinRate,pk as useInsightsConversionRateMetricsV2,yk as useInsightsCustomerPaymentsAndFraudMetrics,mk as useInsightsFallbackMetrics,_k as useInsightsFraudScreeningConversionRate,jk as useInsightsFraudScreeningVolumeAndCountTx,kk as useInsightsHomeMetrics,vk as useInsightsOverviewMetrics,bk as useInsightsOverviewMetricsV3,gk as useInsightsTotalPaymentsAndFraudMetrics,hk as useInsightsVolumeMetrics,fk as useInsightsVolumeMetricsV2,rg as useInviteUsersMultiaccountMassive,cb as useIsTesting,lg as useLoginMethods,wb as useNetworkTokensOnboarding,Yf as useNewPostConnectionValidate,Wf as usePatchAccountV2,uy as usePatchAddAllowlistItems,Nv as usePatchAllowedIps,ly as usePatchAllowlist,Ex as usePatchAndExecuteChart,Wy as usePatchApiKeysEditNote,sy as usePatchChangeStatusAllowlist,cy as usePatchChangeStatusAllowlistItem,sv as usePatchChartName,Zf as usePatchConnection,Fy as usePathCreateCustomizedApiKeys,Xb as usePathNotifications,Av as usePayoutsFilters,Ov as usePayoutsList,Hf as usePostAccount,hx as usePostAllowlistMultiAccount,Gy as usePostApiKeysRoll,$y as usePostAuditMonitors,Ey as usePostBatchRefundByFile,yy as usePostBlackListBatch,fy as usePostBlackListItems,py as usePostBlackListMultiAccount,lx as usePostBlockList,ug as usePostCall,Qf as usePostChangeStatusConnection,Xf as usePostConnectionMultiAccount,ry as usePostCreateAllowlistMultiAccount,My as usePostCreateCustomizedApiKeys,Zy as usePostCreateInsightsReport,qy as usePostCreateRuleMultiAccount,By as usePostCredentialsValidatePassword,eg as usePostDefaultRoutes,Ny as usePostEditRule,jv as usePostFraudTransactions,ay as usePostGetAllowlistItems,iy as usePostGetAllowlistMultiAccount,rk as usePostMembersPaginatedV2,pv as usePostPaymentsEvaluated,lv as usePostPaymentsLazy,Fg as usePostSlackMessageChannel,wv as usePostTransactions,Qg as usePostUserSettings,Yg as usePostUserSettingsPinned,Xg as usePostUserSettingsTables,Jg as usePostUserThemeSettings,Kf as usePostValideStatusConnection,gx as usePostVelocityRules,Ff as usePostWebhookMultiAccount,kb as useProviderConversionRatesData,Eg as usePublishVersion,Gf as usePutAccountPrincipal,Vf as usePutAccountsUserMassive,dy as usePutBlackListType,Jf as usePutCosts,Cg as useSaveVersion,Tv as useSendPaymentNotification,Bg as useSetCustodian,Ag as useSmartRoutingCreateDeclinedGroup,zg as useSmartRoutingEditWorkflowName,qg as useSmartRoutingMultiAccountDeclinedGroupCreate,Dg as useSmartRoutingRemoveDeclinedGroup,Lg as useSmartRoutingSimulateTransaction,Ig as useSmartRoutingToggleFavorite,Og as useSmartRoutingUpdateDeclinedGroup,Pg as useSmartRoutingUpdateMonitorRedistribution,Tg as useToggleMethod,sg as useUnInviteUsersV2,ny as useUnrollUserV2,dg as useUpdateCheckoutTemplate,pg as useUpdateIsActiveCheckout,Ty as useUpdateMFAConfig,ng as useUpdateOrganizationStatus,ig as useUpdateProfile,Yy as useUpdateReconciliationAlert,Qy as useUpdateReconciliationReportTemplate,jg as useUpdateReportTemplate,tv as useUpdateSamlConfig,zy as useUpdateScheduledReport,mg as useUpdateStylingTheme,Bf as useUpdateWebhookV2,jy as useUploadBatchRefundsFileV2,_y as useUploadBatchRefundsV2,Ry as useUploadFileS3ClientBatchRefunds,wy as useValiateAllowlistItems,ky as useValidateBlockListItems,tg as useValidateCredentials,og as useValidateOrgName,oy as useValidatePasswordStatus,dk as useViewMoreMetrics};
241
241
  //# sourceMappingURL=index.js.map