@document-verification/docver-widget 0.4.100 → 0.4.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -299,7 +299,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var __create=
299
299
  text-decoration: none;
300
300
  }
301
301
  }
302
- `,Atom$6=({href:e,to:t,dashed:n,className:r,...a})=>t?(0,import_jsx_runtime.jsx)(LinkStyled,{as:Link$1,className:(0,import_classnames.default)({dashed:n},r),to:t,...a}):e?(0,import_jsx_runtime.jsx)(LinkStyled,{href:e,className:(0,import_classnames.default)({dashed:n},r),...a}):(0,import_jsx_runtime.jsx)(LinkStyled,{className:(0,import_classnames.default)({dashed:n},r),...a}),Link=styled(Atom$6)({}),CDN_LINK="https://cdn.n37z.com",MODAL_WIDTH={DEFAULT:"567px"},AUTH={SIGN_IN:"/sign-in",SIGN_UP:"/sign-up",FORGOT_PASSWORD:"/forgot-password",CHANGE_PASSWORD:"/change-password",SETUP_PASSWORD:"/setup-password",TWO_FA:"/two-fa",VERIFY_EMAIL:"/verify",RESET_EMAIL:"/reset",AUTH_REST:"/auth/reset/",AUTH_ACTIVATED:"/auth/activated",ERROR:"/error"},ADMIN_PANEL={DEFAULT:"/",DEFAULT_EMPTY:"*",ERROR:"/error",ORGANIZATIONS:{ROOT:"/organizations/",CREATE:"/organizations/create/"},ACCOUNTS:{ROOT:"/accounts/"},BILLING:{ROOT:"/billing",TOPUP:"/billing/topup",CRYPTO:"/billing/crypto"},SETTINGS:{ROOT:"/settings",COMPANY_SETTINGS:"/settings/company-settings",USER_SETTINGS:"/settings/user-settings",ADD_ORGANIZATION:"/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/settings/company-settings/edit-organization"},CONTACT_US:"/contact-us"},ONBOARDING="/onboarding",SIGN_UP_COMPANY={ROOT:"/sign-up-company",REGISTRATION:"/sign-up-company/registration",SCHEDULE:"/sign-up-company/schedule"},ROUTES={DEFAULT:"/",DEFAULT_EMPTY:"*",...AUTH,ADMIN_PANEL:{...ADMIN_PANEL},SIGN_UP_COMPANY:SIGN_UP_COMPANY,ONBOARDING:ONBOARDING,CONTACT_US:"/contact-us",KYC:{ROOT:"/kyc/",DEFAULT_EMPTY:"/kyc/*",DASHBOARD:"/kyc/dashboard/",VERIFICATION_LOG:"/kyc/verification-log",ONBOARDING:{ROOT:"/kyc/onboarding",POI:"/kyc/onboarding/poi"},APPLICANTS:{LEGACY:"/applicants/*",ROOT:"/kyc/applicants/",CREATE_APPLICANT:"/kyc/applicants/create-applicant",DETAILS:"/kyc/applicants/details/",REPORT:"/kyc/applicants/report",BULK_UPLOAD:"/kyc/applicants/bulk-upload",DOCVER_REQUEST:"/kyc/applicants/docver-request/"},DOCVER:{LEGACY:"/docs-verification/*",ROOT:"/kyc/docs-verification/",VERIFICATION:"/kyc/docs-verification/verification/",RESULTS:"/kyc/docs-verification/results",RESULT:"/kyc/docs-verification/result/",CREATE:"/kyc/docs-verification/create",PROFILES:"/kyc/docs-verification/verification-profiles",PROFILES_CREATE:"/kyc/docs-verification/verification-profiles/create",PROFILES_EDIT:"/kyc/docs-verification/verification-profiles/edit/"},PROFILES:{ROOT:"/kyc/profiles/",EDIT:"/kyc/profiles/edit/",VERIFICATION:"/kyc/profiles/verification-profiles",VERIFICATION_CREATE:"/kyc/profiles/verification-profiles/create",VERIFICATION_EDIT:"/kyc/profiles/verification-profiles/edit/",RISK:"/kyc/profiles/risk-profiles",RISK_CREATE:"/kyc/profiles/risk-profiles/create/",RISK_EDIT:"/kyc/profiles/risk-profiles/edit/",RISK_VIEW:"/kyc/profiles/risk-profiles/view/"},PEPS:{LEGACY:"/pep-sanctions/*",ROOT:"/kyc/pep-sanctions/",REPORTS:"/kyc/pep-sanctions/reports",REPORTS_RESULT:"/kyc/pep-sanctions/reports/search-results/",HISTORY:"/kyc/pep-sanctions/request-history/",DATA_SOURCES:"/kyc/pep-sanctions/data-sources"},POA_GEN:{ROOT:"/kyc/poa-gen",CREATE:"/kyc/poa-gen/create",HISTORY:"/kyc/poa-gen/history"},BILLING:{ROOT:"/kyc/billing",TOPUP:"/kyc/billing/topup",CRYPTO:"/kyc/billing/crypto"},SETTINGS:{ROOT:"/kyc/settings/",COMPANY_SETTINGS:"/kyc/settings/company-settings",USER_SETTINGS:"/kyc/settings/user-settings",ADD_ORGANIZATION:"/kyc/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/kyc/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/kyc/settings/company-settings/edit-organization"},CONTACT_US:"/kyc/contact-us",API:{ROOT:"/kyc/api/",SETTINGS:"/kyc/api/settings"},VERIFICATION_FLOW:{ROOT:"/verification-flow/",CREATE:"/verification-flow/create",EDIT:"/verification-flow/edit/:id"}},KYB:{ROOT:"/kyb/",DEFAULT_EMPTY:"/kyb/*",ONBOARDING:"/kyb/onboarding",DETAILS:"/kyb/onboarding/details/",CONTACT_US:"/kyb/contact-us"},DEEPFAKE:{ROOT:"/deepfake/",DEFAULT_EMPTY:"/deepfake/*",DASHBOARD:"/deepfake/dashboard",VIDEO:"/deepfake/video",DOCUMENT:"/deepfake/document",AUDIO:"/deepfake/audio",IMAGE:"/deepfake/image",STREAMING:"/deepfake/streaming",DEMO:"/deepfake/demo",BILLING:{ROOT:"/deepfake/billing",TOPUP:"/deepfake/billing/topup",CRYPTO:"/deepfake/billing/crypto"},SETTINGS:{ROOT:"/deepfake/settings/",COMPANY_SETTINGS:"/deepfake/settings/company-settings",USER_SETTINGS:"/deepfake/settings/user-settings",ADD_ORGANIZATION:"/deepfake/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/deepfake/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/deepfake/settings/company-settings/edit-organization"},CONTACT_US:"/deepfake/contact-us",API:{ROOT:"/deepfake/api/",SETTINGS:"/deepfake/api/settings"}},KYT:{ROOT:"/kyt/",DEFAULT_EMPTY:"/kyt/*",WALLET_SCORING:"/kyt/wallet-scoring",ADDRESS_CHECK:"/kyt/wallet-scoring/type/:type/id/:id",BILLING:{ROOT:"/kyt/billing",TOPUP:"/kyt/billing/topup",CRYPTO:"/kyt/billing/crypto"},SETTINGS:{ROOT:"/kyt/settings/",COMPANY_SETTINGS:"/kyt/settings/company-settings",USER_SETTINGS:"/kyt/settings/user-settings",ADD_ORGANIZATION:"/kyt/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/kyt/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/kyt/settings/company-settings/edit-organization"},CONTACT_US:"/kyt/contact-us",API:{ROOT:"/kyt/api/",SETTINGS:"/kyt/api/settings"}},API:{DOCS:"/api/docs"}},FORM_MAX_LENGTH={SMALL_TEXT:128,DEFAULT:255,PHONE_NUMBER:14,SSN:9,STATE:2,ZIP:10,MESSAGE:850,TEXT:1024},VERIFICATION_CONSTANTS_TRANSFORM_PHOTOS={POI:[DocsVerificationTypeEnum.POI,DocsVerificationDocumentTypeEnum.PASSPORT,DocsVerificationDocumentTypeEnum.ID_CARD,DocsVerificationDocumentTypeEnum.RESIDENCE_PERMIT,DocsVerificationDocumentTypeEnum.VISA,DocsVerificationDocumentTypeEnum.DRIVER_LICENSE],LIVENESS:[DocsVerificationTypeEnum.LIVENESS,DocsVerificationBiometricTypeEnum.SELFIE,DocsVerificationBiometricTypeEnum.LIVENESS_PHOTO,DocsVerificationBiometricTypeEnum.LIVENESS_PHOTO_EXTRA],POA:[DocsVerificationTypeEnum.POA,DocsVerificationAddressTypeEnum.POA_UTILITY_BILL,DocsVerificationAddressTypeEnum.POA_BANK_STATEMENT,DocsVerificationAddressTypeEnum.POA_RESIDENCE_REGISTRATION],KYB:[DocsVerificationDocumentKybEnum.KYB_OWNERSHIP_DOCUMENT,DocsVerificationDocumentKybEnum.KYB_CERTIFICATE_OF_INCORPORATION],FRONT_DOCUMENT_TYPES:[DocsVerificationPhotosKeysEnum.RESIDENCE_PERMIT_FRONT,DocsVerificationPhotosKeysEnum.ID_CARD_FRONT,DocsVerificationPhotosKeysEnum.DRIVER_LICENSE_FRONT],BACK_DOCUMENT_TYPES:[DocsVerificationPhotosKeysEnum.RESIDENCE_PERMIT_BACK,DocsVerificationPhotosKeysEnum.ID_CARD_BACK,DocsVerificationPhotosKeysEnum.DRIVER_LICENSE_BACK]},DeepfakeJobTypeEnum=function(e){return e.IMAGE="image",e.VIDEO="video",e.AUDIO="audio",e.DOCUMENT_IMAGE="document_image",e}({}),DeepfakeJobTypeUrlMapper={[DeepfakeJobTypeEnum.IMAGE]:"image",[DeepfakeJobTypeEnum.VIDEO]:"video",[DeepfakeJobTypeEnum.AUDIO]:"audio",[DeepfakeJobTypeEnum.DOCUMENT_IMAGE]:"document/image"};function formatProdErrorMessage$1(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var symbol_observable_default=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),randomString=()=>Math.random().toString(36).substring(7).split("").join("."),actionTypes_default={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`};function isPlainObject$3(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function createStore(e,t,n){if("function"!=typeof e)throw new Error(formatProdErrorMessage$1(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage$1(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(formatProdErrorMessage$1(1));return n(createStore)(e,t)}let r=e,a=t,i=new Map,o=i,s=0,l=!1;function c(){o===i&&(o=new Map,i.forEach((e,t)=>{o.set(t,e)}))}function u(){if(l)throw new Error(formatProdErrorMessage$1(3));return a}function d(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage$1(4));if(l)throw new Error(formatProdErrorMessage$1(5));let t=!0;c();const n=s++;return o.set(n,e),function(){if(t){if(l)throw new Error(formatProdErrorMessage$1(6));t=!1,c(),o.delete(n),i=null}}}function p(e){if(!isPlainObject$3(e))throw new Error(formatProdErrorMessage$1(7));if(void 0===e.type)throw new Error(formatProdErrorMessage$1(8));if("string"!=typeof e.type)throw new Error(formatProdErrorMessage$1(17));if(l)throw new Error(formatProdErrorMessage$1(9));try{l=!0,a=r(a,e)}finally{l=!1}return(i=o).forEach(e=>{e()}),e}return p({type:actionTypes_default.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage$1(10));r=e,p({type:actionTypes_default.REPLACE})},[symbol_observable_default]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(formatProdErrorMessage$1(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[symbol_observable_default](){return this}}}}}function assertReducerShape(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:actionTypes_default.INIT}))throw new Error(formatProdErrorMessage$1(12));if(void 0===n(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()}))throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(t){const n=Object.keys(t),r={};for(let e=0;e<n.length;e++){const a=n[e];"function"==typeof t[a]&&(r[a]=t[a])}const a=Object.keys(r);let i;try{assertReducerShape(r)}catch(e){i=e}return function(e={},t){if(i)throw i;let n=!1;const o={};for(let i=0;i<a.length;i++){const s=a[i],l=r[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(formatProdErrorMessage$1(14));o[s]=u,n=n||u!==c}return n=n||a.length!==Object.keys(e).length,n?o:e}}function compose(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function applyMiddleware(...e){return t=>(n,r)=>{const a=t(n,r);let i=()=>{throw new Error(formatProdErrorMessage$1(15))};const o={getState:a.getState,dispatch:(e,...t)=>i(e,...t)};return i=compose(...e.map(e=>e(o)))(a.dispatch),{...a,dispatch:i}}}function isAction(e){return isPlainObject$3(e)&&"type"in e&&"string"==typeof e.type}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var O$1=Object,getPrototypeOf$1=O$1.getPrototypeOf,CONSTRUCTOR="constructor",PROTOTYPE="prototype",CONFIGURABLE="configurable",ENUMERABLE="enumerable",WRITABLE="writable",VALUE="value",isDraft=e=>!!e&&!!e[DRAFT_STATE];function isDraftable(e){return!!e&&(isPlainObject$2(e)||isArray$1(e)||!!e[DRAFTABLE]||!!e[CONSTRUCTOR]?.[DRAFTABLE]||isMap(e)||isSet(e))}var objectCtorString=O$1[PROTOTYPE][CONSTRUCTOR].toString(),cachedCtorStrings=new WeakMap;function isPlainObject$2(e){if(!e||!isObjectish(e))return!1;const t=getPrototypeOf$1(e);if(null===t||t===O$1[PROTOTYPE])return!0;const n=O$1.hasOwnProperty.call(t,CONSTRUCTOR)&&t[CONSTRUCTOR];if(n===Object)return!0;if(!isFunction$5(n))return!1;let r=cachedCtorStrings.get(n);return void 0===r&&(r=Function.toString.call(n),cachedCtorStrings.set(n,r)),r===objectCtorString}function original(e){return isDraft(e)||die(15,e),e[DRAFT_STATE].base_}function each(e,t,n=!0){0===getArchtype(e)?(n?Reflect.ownKeys(e):O$1.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function getArchtype(e){const t=e[DRAFT_STATE];return t?t.type_:isArray$1(e)?1:isMap(e)?2:isSet(e)?3:0}var has=(e,t,n=getArchtype(e))=>2===n?e.has(t):O$1[PROTOTYPE].hasOwnProperty.call(e,t),get$1=(e,t,n=getArchtype(e))=>2===n?e.get(t):e[t],set$1=(e,t,n,r=getArchtype(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n};function is$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var isArray$1=Array.isArray,isMap=e=>e instanceof Map,isSet=e=>e instanceof Set,isObjectish=e=>"object"==typeof e,isFunction$5=e=>"function"==typeof e,isBoolean$4=e=>"boolean"==typeof e;function isArrayIndex(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var getProxyDraft=e=>isObjectish(e)?e?.[DRAFT_STATE]:null,latest=e=>e.copy_||e.base_,getFinalValue=e=>e.modified_?e.copy_:e.base_;function shallowCopy(e,t){if(isMap(e))return new Map(e);if(isSet(e))return new Set(e);if(isArray$1(e))return Array[PROTOTYPE].slice.call(e);const n=isPlainObject$2(e);if(!0===t||"class_only"===t&&!n){const t=O$1.getOwnPropertyDescriptors(e);delete t[DRAFT_STATE];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const a=n[r],i=t[a];!1===i[WRITABLE]&&(i[WRITABLE]=!0,i[CONFIGURABLE]=!0),(i.get||i.set)&&(t[a]={[CONFIGURABLE]:!0,[WRITABLE]:!0,[ENUMERABLE]:i[ENUMERABLE],[VALUE]:e[a]})}return O$1.create(getPrototypeOf$1(e),t)}{const t=getPrototypeOf$1(e);if(null!==t&&n)return{...e};const r=O$1.create(t);return O$1.assign(r,e)}}function freeze(e,t=!1){return isFrozen(e)||isDraft(e)||!isDraftable(e)||(getArchtype(e)>1&&O$1.defineProperties(e,{set:dontMutateMethodOverride,add:dontMutateMethodOverride,clear:dontMutateMethodOverride,delete:dontMutateMethodOverride}),O$1.freeze(e),t&&each(e,(e,t)=>{freeze(t,!0)},!1)),e}function dontMutateFrozenCollections(){die(2)}var dontMutateMethodOverride={[VALUE]:dontMutateFrozenCollections};function isFrozen(e){return null===e||!isObjectish(e)||O$1.isFrozen(e)}var PluginMapSet="MapSet",PluginPatches="Patches",PluginArrayMethods="ArrayMethods",plugins={};function getPlugin(e){const t=plugins[e];return t||die(0,e),t}var isPluginLoaded=e=>!!plugins[e],currentScope;function loadPlugin(e,t){plugins[e]||(plugins[e]=t)}var getCurrentScope=()=>currentScope,createScope=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:isPluginLoaded(PluginMapSet)?getPlugin(PluginMapSet):void 0,arrayMethodsPlugin_:isPluginLoaded(PluginArrayMethods)?getPlugin(PluginArrayMethods):void 0});function usePatchesInScope(e,t){t&&(e.patchPlugin_=getPlugin(PluginPatches),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function revokeScope(e){leaveScope(e),e.drafts_.forEach(revokeDraft),e.drafts_=null}function leaveScope(e){e===currentScope&&(currentScope=e.parent_)}var enterScope=e=>currentScope=createScope(currentScope,e);function revokeDraft(e){const t=e[DRAFT_STATE];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function processResult(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[DRAFT_STATE].modified_&&(revokeScope(t),die(4)),isDraftable(e)&&(e=finalize(t,e));const{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[DRAFT_STATE].base_,e,t)}else e=finalize(t,n);return maybeFreeze(t,e,!0),revokeScope(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NOTHING?e:void 0}function finalize(e,t){if(isFrozen(t))return t;const n=t[DRAFT_STATE];if(!n)return handleValue(t,e.handledSet_,e);if(!isSameScope(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);generatePatchesAndFinalize(n,e)}return n.copy_}function maybeFreeze(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&freeze(t,n)}function markStateFinalized(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var isSameScope=(e,t)=>e.scope_===t,EMPTY_LOCATIONS_RESULT=[];function updateDraftInParent(e,t,n,r){const a=latest(e),i=e.type_;if(void 0!==r&&get$1(a,r,i)===t)return void set$1(a,r,n,i);if(!e.draftLocations_){const t=e.draftLocations_=new Map;each(a,(e,n)=>{if(isDraft(n)){const r=t.get(n)||[];r.push(e),t.set(n,r)}})}const o=e.draftLocations_.get(t)??EMPTY_LOCATIONS_RESULT;for(const s of o)set$1(a,s,n,i)}function registerChildFinalizationCallback(e,t,n){e.callbacks_.push(function(r){const a=t;if(!a||!isSameScope(a,r))return;r.mapSetPlugin_?.fixSetContents(a);const i=getFinalValue(a);updateDraftInParent(e,a.draft_??a,i,n),generatePatchesAndFinalize(a,r)})}function generatePatchesAndFinalize(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const r=n.getPath(e);r&&n.generatePatches_(e,r,t)}markStateFinalized(e)}}function handleCrossReference(e,t,n){const{scope_:r}=e;if(isDraft(n)){const a=n[DRAFT_STATE];isSameScope(a,r)&&a.callbacks_.push(function(){prepareCopy(e),updateDraftInParent(e,n,getFinalValue(a),t)})}else isDraftable(n)&&e.callbacks_.push(function(){const a=latest(e);3===e.type_?a.has(n)&&handleValue(n,r.handledSet_,r):get$1(a,t,e.type_)===n&&r.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&handleValue(get$1(e.copy_,t,e.type_),r.handledSet_,r)})}function handleValue(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||isDraft(e)||t.has(e)||!isDraftable(e)||isFrozen(e)||(t.add(e),each(e,(r,a)=>{if(isDraft(a)){const t=a[DRAFT_STATE];isSameScope(t,n)&&(set$1(e,r,getFinalValue(t),e.type_),markStateFinalized(t))}else isDraftable(a)&&handleValue(a,t,n)})),e}function createProxyProxy(e,t){const n=isArray$1(e),r={type_:n?1:0,scope_:t?t.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,i=objectTraps;n&&(a=[r],i=arrayTraps);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return r.draft_=s,r.revoke_=o,[s,r]}var objectTraps={get(e,t){if(t===DRAFT_STATE)return e;let n=e.scope_.arrayMethodsPlugin_;const r=1===e.type_&&"string"==typeof t;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=latest(e);if(!has(a,t,e.type_))return readPropFromProto(e,a,t);const i=a[t];if(e.finalized_||!isDraftable(i))return i;if(r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&isArrayIndex(t))return i;if(i===peek(e.base_,t)){prepareCopy(e);const n=1===e.type_?+t:t,r=createProxy(e.scope_,i,e,n);return e.copy_[n]=r}return i},has:(e,t)=>t in latest(e),ownKeys:e=>Reflect.ownKeys(latest(e)),set(e,t,n){const r=getDescriptorFromProto(latest(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=peek(latest(e),t),a=r?.[DRAFT_STATE];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(is$1(n,r)&&(void 0!==n||has(e.base_,t,e.type_)))return!0;prepareCopy(e),markChanged(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),handleCrossReference(e,t,n)),!0},deleteProperty:(e,t)=>(prepareCopy(e),void 0!==peek(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),markChanged(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=latest(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[WRITABLE]:!0,[CONFIGURABLE]:1!==e.type_||"length"!==t,[ENUMERABLE]:r[ENUMERABLE],[VALUE]:n[t]}:r},defineProperty(){die(11)},getPrototypeOf:e=>getPrototypeOf$1(e.base_),setPrototypeOf(){die(12)}},arrayTraps={};for(let Fe in objectTraps){let e=objectTraps[Fe];arrayTraps[Fe]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function peek(e,t){const n=e[DRAFT_STATE];return(n?latest(n):e)[t]}function readPropFromProto(e,t,n){const r=getDescriptorFromProto(t,n);return r?VALUE in r?r[VALUE]:r.get?.call(e.draft_):void 0}function getDescriptorFromProto(e,t){if(!(t in e))return;let n=getPrototypeOf$1(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=getPrototypeOf$1(n)}}function markChanged(e){e.modified_||(e.modified_=!0,e.parent_&&markChanged(e.parent_))}function prepareCopy(e){e.copy_||(e.assigned_=new Map,e.copy_=shallowCopy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}arrayTraps.deleteProperty=function(e,t){return arrayTraps.set.call(this,e,t,void 0)},arrayTraps.set=function(e,t,n){return objectTraps.set.call(this,e[0],t,n,e[0])};var Immer2=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(isFunction$5(e)&&!isFunction$5(t)){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,e=>t.call(this,e,...a))}}let r;if(isFunction$5(t)||die(6),void 0===n||isFunction$5(n)||die(7),isDraftable(e)){const a=enterScope(this),i=createProxy(a,e,void 0);let o=!0;try{r=t(i),o=!1}finally{o?revokeScope(a):leaveScope(a)}return usePatchesInScope(a,n),processResult(r,a)}if(!e||!isObjectish(e)){if(r=t(e),void 0===r&&(r=e),r===NOTHING&&(r=void 0),this.autoFreeze_&&freeze(r,!0),n){const t=[],a=[];getPlugin(PluginPatches).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:a}),n(t,a)}return r}die(1,e)},this.produceWithPatches=(e,t)=>{if(isFunction$5(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},isBoolean$4(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),isBoolean$4(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),isBoolean$4(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){isDraftable(e)||die(8),isDraft(e)&&(e=current(e));const t=enterScope(this),n=createProxy(t,e,void 0);return n[DRAFT_STATE].isManual_=!0,leaveScope(t),n}finishDraft(e,t){const n=e&&e[DRAFT_STATE];n&&n.isManual_||die(9);const{scope_:r}=n;return usePatchesInScope(r,t),processResult(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=getPlugin(PluginPatches).applyPatches_;return isDraft(e)?r(e,t):this.produce(e,e=>r(e,t))}};function createProxy(e,t,n,r){const[a,i]=isMap(t)?getPlugin(PluginMapSet).proxyMap_(t,n):isSet(t)?getPlugin(PluginMapSet).proxySet_(t,n):createProxyProxy(t,n);return(n?.scope_??getCurrentScope()).drafts_.push(a),i.callbacks_=n?.callbacks_??[],i.key_=r,n&&void 0!==r?registerChildFinalizationCallback(n,i,r):i.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:t}=e;i.modified_&&t&&t.generatePatches_(i,[],e)}),a}function current(e){return isDraft(e)||die(10,e),currentImpl(e)}function currentImpl(e){if(!isDraftable(e)||isFrozen(e))return e;const t=e[DRAFT_STATE];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=shallowCopy(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=shallowCopy(e,!0);return each(n,(e,t)=>{set$1(n,e,currentImpl(t))},r),t&&(t.finalized_=!1),n}function enablePatches(){const t="replace",n="add",r="remove";function a(e){if(!isDraftable(e))return e;if(isArray$1(e))return e.map(a);if(isMap(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,a(t)]));if(isSet(e))return new Set(Array.from(e).map(a));const t=Object.create(getPrototypeOf$1(e));for(const n in e)t[n]=a(e[n]);return has(e,DRAFTABLE)&&(t[DRAFTABLE]=e[DRAFTABLE]),t}function i(e){return isDraft(e)?a(e):e}loadPlugin(PluginPatches,{applyPatches_:function(e,i){return i.forEach(i=>{const{path:o,op:s}=i;let l=e;for(let e=0;e<o.length-1;e++){const t=getArchtype(l);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&n!==CONSTRUCTOR||die(19),isFunction$5(l)&&n===PROTOTYPE&&die(19),l=get$1(l,n),isObjectish(l)||die(18,o.join("/"))}const c=getArchtype(l),u=a(i.value),d=o[o.length-1];switch(s){case t:switch(c){case 2:return l.set(d,u);case 3:die(16);default:return l[d]=u}case n:switch(c){case 1:return"-"===d?l.push(u):l.splice(d,0,u);case 2:return l.set(d,u);case 3:return l.add(u);default:return l[d]=u}case r:switch(c){case 1:return l.splice(d,1);case 2:return l.delete(d);case 3:return l.delete(i.value);default:return delete l[d]}default:die(17,s)}}),e},generatePatches_:function(e,a,o){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);const{patches_:s,inversePatches_:l}=o;switch(e.type_){case 0:case 2:return function(e,a,o,s){const{base_:l,copy_:c,type_:u}=e;each(e.assigned_,(e,d)=>{const p=get$1(l,e,u),m=get$1(c,e,u),h=d?has(l,e)?t:n:r;if(p===m&&h===t)return;const f=a.concat(e);o.push(h===r?{op:h,path:f}:{op:h,path:f,value:i(m)}),s.push(h===n?{op:r,path:f}:h===r?{op:n,path:f,value:i(p)}:{op:t,path:f,value:i(p)})})}(e,a,s,l);case 1:return function(e,a,o,s){let{base_:l,assigned_:c}=e,u=e.copy_;u.length<l.length&&([l,u]=[u,l],[o,s]=[s,o]);const d=!0===e.allIndicesReassigned_;for(let n=0;n<l.length;n++){const e=u[n],r=l[n];if((d||c?.get(n.toString()))&&e!==r){const l=e?.[DRAFT_STATE];if(l&&l.modified_)continue;const c=a.concat([n]);o.push({op:t,path:c,value:i(e)}),s.push({op:t,path:c,value:i(r)})}}for(let t=l.length;t<u.length;t++){const e=a.concat([t]);o.push({op:n,path:e,value:i(u[t])})}for(let t=u.length-1;l.length<=t;--t){const e=a.concat([t]);s.push({op:r,path:e})}}(e,a,s,l);case 3:return function(e,t,a,i){let{base_:o,copy_:s}=e,l=0;o.forEach(e=>{if(!s.has(e)){const o=t.concat([l]);a.push({op:r,path:o,value:e}),i.unshift({op:n,path:o,value:e})}l++}),l=0,s.forEach(e=>{if(!o.has(e)){const o=t.concat([l]);a.push({op:n,path:o,value:e}),i.unshift({op:r,path:o,value:e})}l++})}(e,a,s,l)}},generateReplacementPatches_:function(e,n,r){const{patches_:a,inversePatches_:i}=r;a.push({op:t,path:[],value:n===NOTHING?void 0:n}),i.push({op:t,path:[],value:e})},getPath:function t(n,r=[]){if(void 0!==n.key_){const e=n.parent_.copy_??n.parent_.base_,t=getProxyDraft(get$1(e,n.key_)),a=get$1(e,n.key_);if(void 0===a)return null;if(a!==n.draft_&&a!==n.base_&&a!==n.copy_)return null;if(null!=t&&t.base_!==n.base_)return null;const i=3===n.parent_.type_;let o;if(i){const e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(i&&e.size>o||has(e,o)))return null;r.push(o)}if(n.parent_)return t(n.parent_,r);r.reverse();try{!function(e,t){let n=e;for(let r=0;r<t.length-1;r++){const e=t[r];if(n=get$1(n,e),!isObjectish(n)||null===n)throw new Error(`Cannot resolve path at '${t.join("/")}'`)}}(n.copy_,r)}catch(e){return null}return r}})}var immer=new Immer2,produce=immer.produce,produceWithPatches=immer.produceWithPatches.bind(immer),applyPatches=immer.applyPatches.bind(immer);function assertIsFunction(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function assertIsArrayOfFunctions(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}var ensureIsArray=e=>Array.isArray(e)?e:[e];function getDependencies(e){const t=Array.isArray(e[0])?e[0]:e;return assertIsArrayOfFunctions(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function collectInputSelectorResults(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var StrongRef=class{constructor(e){this.value=e}deref(){return this.value}},getWeakRef=()=>"undefined"==typeof WeakRef?StrongRef:WeakRef,Ref=getWeakRef(),UNTERMINATED=0,TERMINATED=1;function createCacheNode(){return{s:UNTERMINATED,v:void 0,o:null,p:null}}function maybeDeref(e){return e instanceof Ref?e.deref():e}function weakMapMemoize(e,t={}){let n=createCacheNode();const{resultEqualityCheck:r}=t;let a,i=0;function o(){let t=n;const{length:o}=arguments;for(let e=0,n=o;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=createCacheNode(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=createCacheNode(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===TERMINATED)l=t.v;else if(l=e.apply(null,arguments),i++,r){const e=maybeDeref(a);null!=e&&r(e,l)&&(l=e,0!==i&&i--),a="object"==typeof l&&null!==l||"function"==typeof l?new Ref(l):l}return s.s=TERMINATED,s.v=l,l}return o.clearCache=()=>{n=createCacheNode(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function createSelectorCreator(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,i={},o=e.pop();"object"==typeof o&&(i=o,o=e.pop()),assertIsFunction(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);const{memoize:s,memoizeOptions:l=[],argsMemoize:c=weakMapMemoize,argsMemoizeOptions:u=[]}={...n,...i},d=ensureIsArray(l),p=ensureIsArray(u),m=getDependencies(e),h=s(function(){return r++,o.apply(null,arguments)},...d),f=c(function(){a++;const e=collectInputSelectorResults(m,arguments);return t=h.apply(null,e),t},...p);return Object.assign(f,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var createSelector=createSelectorCreator(weakMapMemoize);function createThunkMiddleware(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?compose:compose.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var hasMatchFunction=e=>e&&"function"==typeof e.match;function createAction(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(formatProdErrorMessage(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>isAction(t)&&t.type===e,n}var Tuple=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function freezeDraftable(e){return isDraftable(e)?produce(e,()=>{}):e}function getOrInsertComputed$1(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function isBoolean$3(e){return"boolean"==typeof e}var buildGetDefaultMiddleware=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let i=new Tuple;return t&&(isBoolean$3(t)?i.push(thunk):i.push(withExtraArgument(t.extraArgument))),i},SHOULD_AUTOBATCH="RTK_autoBatch",prepareAutoBatched=()=>e=>({payload:e,meta:{[SHOULD_AUTOBATCH]:!0}}),createQueueWithTimer=e=>t=>{setTimeout(t,e)},createRafWithFallbackTimer=(e,t)=>n=>{let r=!1;const a=()=>{r||(r=!0,cancelAnimationFrame(i),clearTimeout(o),n())},i=e(a),o=setTimeout(a,t)},autoBatchEnhancer=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,i=!1,o=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?createRafWithFallbackTimer(window.requestAnimationFrame,100):createQueueWithTimer(10):"callback"===e.type?e.queueNotification:createQueueWithTimer(e.timeout),c=()=>{o=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return a=!e?.meta?.[SHOULD_AUTOBATCH],i=!a,i&&(o||(o=!0,l(c))),r.dispatch(e)}finally{a=!0}}})},buildGetDefaultEnhancers=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Tuple(e);return n&&r.push(autoBatchEnhancer("object"==typeof n?n:void 0)),r};function configureStore(e){const t=buildGetDefaultMiddleware(),{reducer:n,middleware:r,devTools:a=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o,enhancers:s}=e||{};let l,c;if("function"==typeof n)l=n;else{if(!isPlainObject$3(n))throw new Error(formatProdErrorMessage(1));l=combineReducers(n)}c="function"==typeof r?r(t):t();let u=compose;a&&(u=composeWithDevTools({trace:!1,..."object"==typeof a&&a}));const d=buildGetDefaultEnhancers(applyMiddleware(...c));return createStore(l,o,u(..."function"==typeof s?s(d):d()))}function executeReducerBuilderCallback(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(formatProdErrorMessage(28));if(r in t)throw new Error(formatProdErrorMessage(29));return t[r]=n,a},addAsyncThunk:(e,r)=>(r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),a),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function isStateFunction(e){return"function"==typeof e}function createReducer(e,t){let n,[r,a,i]=executeReducerBuilderCallback(t);if(isStateFunction(e))n=()=>freezeDraftable(e());else{const t=freezeDraftable(e);n=()=>t}function o(e=n(),t){let o=[r[t.type],...a.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===o.filter(e=>!!e).length&&(o=[i]),o.reduce((e,n)=>{if(n){if(isDraft(e)){const r=n(e,t);return void 0===r?e:r}if(isDraftable(e))return produce(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return o.getInitialState=n,o}var matches=(e,t)=>hasMatchFunction(e)?e.match(t):e(t);function isAnyOf(...e){return t=>e.some(e=>matches(e,t))}function isAllOf(...e){return t=>e.every(e=>matches(e,t))}function hasExpectedRequestMetadata(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function isAsyncThunkArray(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function isPending(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["pending"]):isAsyncThunkArray(e)?isAnyOf(...e.map(e=>e.pending)):isPending()(e[0])}function isRejected(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["rejected"]):isAsyncThunkArray(e)?isAnyOf(...e.map(e=>e.rejected)):isRejected()(e[0])}function isRejectedWithValue(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||isAsyncThunkArray(e)?isAllOf(isRejected(...e),t):isRejectedWithValue()(e[0])}function isFulfilled(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["fulfilled"]):isAsyncThunkArray(e)?isAnyOf(...e.map(e=>e.fulfilled)):isFulfilled()(e[0])}function isAsyncThunkAction(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["pending","fulfilled","rejected"]):isAsyncThunkArray(e)?isAnyOf(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):isAsyncThunkAction()(e[0])}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(e=21)=>{let t="",n=e;for(;n--;)t+=urlAlphabet[64*Math.random()|0];return t},commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},FulfillWithMeta=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},miniSerializeError=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of commonProperties)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},externalAbortMessage="External signal was aborted",createAsyncThunk=(()=>{function e(e,t,n){const r=createAction(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),a=createAction(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),i=createAction(e+"/rejected",(e,t,r,a,i)=>({payload:a,error:(n&&n.serializeError||miniSerializeError)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e,{signal:o}={}){return(s,l,c)=>{const u=n?.idGenerator?n.idGenerator(e):nanoid(),d=new AbortController;let p,m;function h(e){m=e,d.abort()}o&&(o.aborted?h(externalAbortMessage):o.addEventListener("abort",()=>h(externalAbortMessage),{once:!0}));const f=async function(){let o;try{let i=n?.condition?.(e,{getState:l,extra:c});if(isThenable$1(i)&&(i=await i),!1===i||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const f=new Promise((e,t)=>{p=()=>{t({name:"AbortError",message:m||"Aborted"})},d.signal.addEventListener("abort",p,{once:!0})});s(a(u,e,n?.getPendingMeta?.({requestId:u,arg:e},{getState:l,extra:c}))),o=await Promise.race([f,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:u,signal:d.signal,abort:h,rejectWithValue:(e,t)=>new RejectWithValue(e,t),fulfillWithValue:(e,t)=>new FulfillWithMeta(e,t)})).then(t=>{if(t instanceof RejectWithValue)throw t;return t instanceof FulfillWithMeta?r(t.payload,u,e,t.meta):r(t,u,e)})])}catch(f){o=f instanceof RejectWithValue?i(null,u,e,f.payload,f.meta):i(f,u,e)}finally{p&&d.signal.removeEventListener("abort",p)}return n&&!n.dispatchConditionRejection&&i.match(o)&&o.meta.condition||s(o),o}();return Object.assign(f,{abort:h,requestId:u,arg:e,unwrap:()=>f.then(unwrapResult)})}},{pending:a,rejected:i,fulfilled:r,settled:isAnyOf(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function unwrapResult(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function isThenable$1(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(e,t){return`${e}/${t}`}function buildCreateSlice({creators:e}={}){const t=e?.asyncThunk?.[asyncThunkSymbol];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(formatProdErrorMessage(11));const a=("function"==typeof e.reducers?e.reducers(buildReducerCreators()):e.reducers)||{},i=Object.keys(a),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(formatProdErrorMessage(12));if(n in o.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(o.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],a={...t,...o.sliceCaseReducersByType};return createReducer(e.initialState,e=>{for(let t in a)e.addCase(t,a[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}i.forEach(r=>{const i=a[r],o={reducerName:r,type:getType(n,r),createNotation:"function"==typeof e.reducers};isAsyncThunkSliceReducerDefinition(i)?handleThunkCaseReducerDefinition(o,i,s,t):handleNormalReducerDefinition(o,i,s)});const c=e=>e,u=new Map,d=new WeakMap;let p;function m(e,t){return p||(p=l()),p(e,t)}function h(){return p||(p=l()),p.getInitialState()}function f(t,n=!1){function r(e){let a=e[t];return void 0===a&&n&&(a=getOrInsertComputed$1(d,r,h)),a}function a(t=c){return getOrInsertComputed$1(getOrInsertComputed$1(u,n,()=>new WeakMap),t,()=>{const r={};for(const[a,i]of Object.entries(e.selectors??{}))r[a]=wrapSelector(i,t,()=>getOrInsertComputed$1(d,t,h),n);return r})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const g={name:n,reducer:m,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:h,...f(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:m},n),{...g,...f(a,!0)}}};return g}}function wrapSelector(e,t,n,r){function a(a,...i){let o=t(a);return void 0===o&&r&&(o=n()),e(o,...i)}return a.unwrapped=e,a}var createSlice=buildCreateSlice();function buildReducerCreators(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function handleNormalReducerDefinition({type:e,reducerName:t,createNotation:n},r,a){let i,o;if("reducer"in r){if(n&&!isCaseReducerWithPrepareDefinition(r))throw new Error(formatProdErrorMessage(17));i=r.reducer,o=r.prepare}else i=r;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?createAction(e,o):createAction(e))}function isAsyncThunkSliceReducerDefinition(e){return"asyncThunk"===e._reducerDefinitionType}function isCaseReducerWithPrepareDefinition(e){return"reducerWithPrepare"===e._reducerDefinitionType}function handleThunkCaseReducerDefinition({type:e,reducerName:t},n,r,a){if(!a)throw new Error(formatProdErrorMessage(18));const{payloadCreator:i,fulfilled:o,pending:s,rejected:l,settled:c,options:u}=n,d=a(e,i,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:o||noop$3,pending:s||noop$3,rejected:l||noop$3,settled:c||noop$3})}function noop$3(){}var listener="listener",completed="completed",cancelled="cancelled",taskCancelled=`task-${cancelled}`,taskCompleted=`task-${completed}`,listenerCancelled=`${listener}-${cancelled}`,listenerCompleted=`${listener}-${completed}`,{assign:assign}=Object,alm="listenerMiddleware",addListener=assign(createAction(`${alm}/add`),{withTypes:()=>addListener}),clearAllListeners=createAction(`${alm}/removeAll`),removeListener=assign(createAction(`${alm}/remove`),{withTypes:()=>removeListener});function formatProdErrorMessage(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var defaultSettings={organization_name:"",logo_settings:{logo_url:void 0,logo_wide_url:void 0,favicon_url:void 0},login_settings:{google:{client_id:"",enabled:!1},sign_up_enabled:!1},docver_settings:{tg_link_enabled:!1,tg_link_base_url:""},other_settings:{default_page_title:"",show_contact_us:!1,privacy_policy_url:"",terms_of_service_url:"",service_email:"",privacy_organization_name:"",doc_links:{api:void 0,mobile_sdk:void 0,widget:void 0,bot:void 0,webhooks:void 0}},domain_settings:{api:void 0,sdk:void 0,dash:void 0},billing_settings:{enabled:!0,stripe:{configured:!1,enabled:!1}},is_admin_panel:!1,ui_settings:void 0,is_ds:!1},initialState$6={settings:defaultSettings,isInitialized:!1,isLoading:!1},domainSlice=createSlice({name:"domainSlice",initialState:initialState$6,reducers:{clearSettings:e=>{e.settings=defaultSettings},setSettings:(e,{payload:t})=>{e.settings=t},setInitialized:(e,{payload:t})=>{e.isInitialized=t},setLoading:(e,{payload:t})=>{e.isLoading=t}}}),DocsVerificationFileUploadApproachEnum=function(e){return e.PHOTO_AND_FILE="PHOTO_AND_FILE",e.PHOTO="PHOTO",e.FILE="FILE",e}({}),DocumentsStepEnum=function(e){return e[e.UPLOAD_FIRST_SIDE=0]="UPLOAD_FIRST_SIDE",e[e.UPLOAD_SECOND_SIDE=1]="UPLOAD_SECOND_SIDE",e[e.SELECT_COUNTRY=2]="SELECT_COUNTRY",e}({}),initialState$5={tabs:[],currentTabIndex:0,currentStep:DocsVerificationStepEnum.START,currentTab:DocsVerificationTabEnum.DOCUMENT,applicantId:"",verificationId:"",continueVerification:null,lastVerificationId:"",country:{label:"",value:""},documentsCountry:"",documents:{files:[]},documentsStep:DocumentsStepEnum.UPLOAD_FIRST_SIDE,results:[],isCameraMode:!1,isTermsAccepted:!1,isShowRequirements:!1,isFailedVerification:!1,fileUploadApproach:DocsVerificationFileUploadApproachEnum.PHOTO_AND_FILE},docsVerificationSlice=createSlice({name:"docsVerificationSlice",initialState:initialState$5,reducers:{setCurrentStep:(e,{payload:t})=>{e.currentStep=t,e.isCameraMode=!1},goBackStep:e=>{const t=e.currentTabIndex-1;-1===t?e.currentStep=e.sdkOptions?.customPartner?.concordium?DocsVerificationStepEnum.START_CUSTOM_PARTNER:DocsVerificationStepEnum.START:(e.currentTabIndex=t,e.currentTab=e.tabs[t]),e.isCameraMode=!1},goNextStep:(e,{payload:t})=>{const n=e.currentTabIndex+1;n===e.tabs.length?t?(e.currentTab=e.tabs[0],e.currentTabIndex=0):e.currentStep=DocsVerificationStepEnum.FINISH:(e.currentTabIndex=n,e.currentTab=e.tabs[n]),e.isCameraMode=!1},addFile:(e,{payload:t})=>{e.documents.files=e.documents.files.filter(e=>!e.status.error),e.documents.files.push(t)},changeFile:(e,{payload:t})=>{const n=e.documents.files.findIndex(e=>e.id===t.id);n>=0&&(e.documents.files[n]=t.file)},deleteFileById:(e,{payload:t})=>{const n=e.documents.files.findIndex(e=>e.id===t);n>=0&&e.documents.files.splice(n,1)},deleteFilesByTab:(e,{payload:t})=>{e.documents.files=e.documents.files.filter(e=>e.tab!==t)},clearSteps:()=>initialState$5,useSDK:(e,{payload:t})=>{e.sdkOptions=t,"expired"!==t?.status?"completed"!==t?.status?(t?.customPartner?.concordium&&!t.isSkipIntro&&(e.currentStep=DocsVerificationStepEnum.START_CUSTOM_PARTNER),t?.settings?.allow_desktop||!isDesktop()||!t?.isSkipIntro&&t?.customPartner?.concordium?(e.tabs=[],e?.sdkOptions?.settings?.manual_fields_settings?.enabled&&e.tabs.push(DocsVerificationTabEnum.PERSONAL_DATA),e?.sdkOptions?.settings.poi_required&&e.tabs.push(DocsVerificationTabEnum.DOCUMENT),e?.sdkOptions?.settings.face_comparison_required&&e.tabs.push(DocsVerificationTabEnum.BIOMETRICS),e?.sdkOptions?.settings.poa_required&&e.tabs.push(DocsVerificationTabEnum.ADDRESS),e.currentTab=e.tabs[0],"telegram"===t?.source?e.currentStep=DocsVerificationStepEnum.VERIFICATION:e.currentStep||(e.currentStep=DocsVerificationStepEnum.START)):e.currentStep=DocsVerificationStepEnum.DESKTOP_NOT_ALLOWED):e.currentStep=DocsVerificationStepEnum.FINISH:e.currentStep=DocsVerificationStepEnum.EXPIRED},setCountry:(e,{payload:t})=>{e.country=t},setDocumentsCountry:(e,{payload:t})=>{e.documentsCountry=t},setFaceDetector:(e,{payload:t})=>{e.faceDetector=t},setIsCameraMode:(e,{payload:t})=>{e.isCameraMode=t},setIsTermsAccepted:(e,{payload:t})=>{e.isTermsAccepted=t},setIsShowRequirements:(e,{payload:t})=>{e.isShowRequirements=t},setDocumentsStep:(e,{payload:t})=>{e.documentsStep=t},setIsFailedVerification:(e,{payload:t})=>{e.isFailedVerification=t},setFileUploadApproach:(e,{payload:t})=>{e.fileUploadApproach=t}}}),updateOrganizationRole=e=>{if("organization_role"in e){const t=e.organization_role.toUpperCase();Object.values(OrganizationRoleEnum).includes(t)&&(e.organization_role=t)}return e},updateOrganizationStatus=(e,t)=>{if(t in e){const n=e[t]?.toUpperCase();Object.values(AccountStatus).includes(n)&&(e[t]=n)}return e},transformOrganization=e=>{let t=e;return"organization_role"in e&&(t=updateOrganizationRole(e)),"account_status"in e&&(t=updateOrganizationStatus(t,"account_status")),"status"in e&&(t=updateOrganizationStatus(t,"status")),t},transformUserInfo=e=>{const t={...e};return t?.account?.logo_url&&(t.account.logo_url=`${t.account.logo_url}?t=${(new Date).getTime()}`),t?.account?.global_role&&(t.account.global_role=t.account.global_role?.toUpperCase()),t},getEnvVar=e=>{try{const t={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,REACT_APP_API_BASE_URL:"https://api.dataspike.io",REACT_APP_GA_MEASUREMENT_ID:"G-9H5HTFENGK",REACT_APP_GTAG_MANAGER_ID:"GTM-5XP2CCC",REACT_APP_KYB_WIDGET_BASE_URL:"https://kyb.dataspike.io/",REACT_APP_LOGROCKET_TOKEN:"sn69au/dataspike",REACT_APP_LOGS_API_BASE_URL:"https://events.dataspike.io/web",REACT_APP_MULTI_DASHBOARDS:"1",REACT_APP_REVOLUT_ENV:"prod",REACT_APP_TYPE:"production",REACT_APP_WIDGET_VERSION:"0.4.100",SSR:!1}[e];if(void 0!==t)return t}catch{}try{const t=process.env[e];if(void 0!==t)return t}catch{}return""},maskString=e=>{const t=e.slice(0,3),n=e.length-2;let r=e.slice(3,n);r=r.replace(/./g,"*");const a=e.slice(n,e.length);return t.concat(r).concat(a)},maskEmail=e=>{if(!e.includes("@"))return maskString(e);const t=e.slice(0,3),n=e.lastIndexOf("@");let r=e.slice(3,n-1);r=r.replace(/./g,"*");const a=e.slice(n-1,e.length);return t.concat(r).concat(a)};function bind(e,t){return function(){return e.apply(t,arguments)}}var{toString:toString$1}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,{iterator:iterator,toStringTag:toStringTag}=Symbol,hasOwnProperty=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hasOwnInPrototypeChain=(e,t)=>{let n=e;const r=[];for(;null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),hasOwnProperty(n,t))return!0;n=getPrototypeOf(n)}return!1},getSafeProp=(e,t)=>null!=e&&hasOwnInPrototypeChain(e,t)?e[t]:void 0,kindOf=(e=>t=>{const n=toString$1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined$1(e)&&null!==e.constructor&&!isUndefined$1(e.constructor)&&isFunction$4(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}var isString$2=typeOfTest("string"),isFunction$4=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$6=e=>null!==e&&"object"==typeof e,isBoolean$2=e=>!0===e||!1===e,isPlainObject$1=e=>{if(!isObject$6(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==getPrototypeOf(t)||hasOwnInPrototypeChain(e,toStringTag)||hasOwnInPrototypeChain(e,iterator))},isEmptyObject$1=t=>{if(!isObject$6(t)||isBuffer(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},isDate$2=kindOfTest("Date"),isFile=kindOfTest("File"),isReactNativeBlob=e=>!(!e||void 0===e.uri),isReactNative$1=e=>e&&void 0!==e.getParts,isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$6(e)&&isFunction$4(e.pipe);function getGlobal$1(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}var G$1=getGlobal$1(),FormDataCtor=void 0!==G$1.FormData?G$1.FormData:void 0,isFormData=e=>{if(!e)return!1;if(FormDataCtor&&e instanceof FormDataCtor)return!0;const t=getPrototypeOf(e);if(!t||t===Object.prototype)return!1;if(!isFunction$4(e.append))return!1;const n=kindOf(e);return"formdata"===n||"object"===n&&isFunction$4(e.toString)&&"[object FormData]"===e.toString()},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$2(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),isArray(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(isBuffer(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(r=0;r<i;r++)o=a[r],t.call(null,e[o],o,e)}}function findKey$1(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}var _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!isUndefined$1(e)&&e!==_global;function merge$2(...e){const{caseless:t,skipUndefined:n}=isContextDefined(this)&&this||{},r={},a=(e,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=t&&"string"==typeof a&&findKey$1(r,a)||a,o=hasOwnProperty(r,i)?r[i]:void 0;isPlainObject$1(o)&&isPlainObject$1(e)?r[i]=merge$2(o,e):isPlainObject$1(e)?r[i]=merge$2({},e):isArray(e)?r[i]=e.slice():n&&isUndefined$1(e)||(r[i]=e)};for(let i=0,o=e.length;i<o;i++){const t=e[i];if(!t||isBuffer(t))continue;if(forEach$2(t,a),"object"!=typeof t||isArray(t))continue;const n=Object.getOwnPropertySymbols(t);for(let e=0;e<n.length;e++){const r=n[e];propertyIsEnumerable.call(t,r)&&a(t[r],r)}}return r}var extend$3=(e,t,n,{allOwnKeys:r}={})=>(forEach$2(t,(t,r)=>{n&&isFunction$4(t)?Object.defineProperty(e,r,{__proto__:null,value:bind(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray$1=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber$1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray$1=(TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),e=>TypedArray&&e instanceof TypedArray),TypedArray,forEachEntry=(e,t)=>{const n=(e&&e[iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll=(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:propertyIsEnumerable}=Object.prototype,isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};forEach$2(n,(n,a)=>{let i;!1!==(i=t(n,a,e))&&(r[a]=i||n)}),Object.defineProperties(e,r)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{if(isFunction$4(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];isFunction$4(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet=(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return isArray(e)?r(e):r(String(e).split(t)),n},noop$2=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$4(e.append)&&"FormData"===e[toStringTag]&&e[iterator])}var toJSONObject=e=>{const t=new WeakSet,n=e=>{if(isObject$6(e)){if(t.has(e))return;if(isBuffer(e))return e;if(!("toJSON"in e)){t.add(e);const r=isArray(e)?[]:{};return forEach$2(e,(e,t)=>{const a=n(e);!isUndefined$1(a)&&(r[t]=a)}),t.delete(e),r}}return e};return n(e)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$6(e)||isFunction$4(e))&&isFunction$4(e.then)&&isFunction$4(e.catch),_setImmediate=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction$4(_global.postMessage),setImmediateSupported?setImmediate:postMessageSupported?((e,t)=>(_global.addEventListener("message",({source:n,data:r})=>{n===_global&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),_global.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),setImmediateSupported,postMessageSupported,asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):"undefined"!=typeof process&&process.nextTick||_setImmediate,isIterable$1=e=>null!=e&&isFunction$4(e[iterator]),isSafeIterable=e=>null!=e&&hasOwnInPrototypeChain(e,iterator)&&isIterable$1(e),utils_default={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$2,isNumber:isNumber$1,isBoolean:isBoolean$2,isObject:isObject$6,isPlainObject:isPlainObject$1,isEmptyObject:isEmptyObject$1,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined$1,isDate:isDate$2,isFile:isFile,isReactNativeBlob:isReactNativeBlob,isReactNative:isReactNative$1,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$4,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray$1,isFileList:isFileList,forEach:forEach$2,merge:merge$2,extend:extend$3,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray$1,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,hasOwnInPrototypeChain:hasOwnInPrototypeChain,getSafeProp:getSafeProp,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop$2,toFiniteNumber:toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable$1,isSafeIterable:isSafeIterable},ignoreDuplicateOf=utils_default.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders_default=e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&ignoreDuplicateOf[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function trimSPorHTAB(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}var INVALID_UNICODE_HEADER_VALUE_CHARS=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),INVALID_BYTE_STRING_HEADER_VALUE_CHARS=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function sanitizeValue(e,t){return utils_default.isArray(e)?e.map(e=>sanitizeValue(e,t)):trimSPorHTAB(String(e).replace(t,""))}var sanitizeHeaderValue=e=>sanitizeValue(e,INVALID_UNICODE_HEADER_VALUE_CHARS),sanitizeByteStringHeaderValue=e=>sanitizeValue(e,INVALID_BYTE_STRING_HEADER_VALUE_CHARS);function toByteStringHeaderObject(e){const t=Object.create(null);return utils_default.forEach(e.toJSON(),(e,n)=>{t[n]=sanitizeByteStringHeaderValue(e)}),t}var $internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils_default.isArray(e)?e.map(normalizeValue):sanitizeHeaderValue(String(e))}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,r,a){return utils_default.isFunction(r)?r.call(this,t,n):(a&&(t=n),utils_default.isString(t)?utils_default.isString(r)?-1!==t.indexOf(r):utils_default.isRegExp(r)?r.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function buildAccessors(e,t){const n=utils_default.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}var AxiosHeaders=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=normalizeHeader(t);if(!a)return;const i=utils_default.findKey(r,a);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=normalizeValue(e))}const i=(e,t)=>utils_default.forEach(e,(e,n)=>a(e,n,t));if(utils_default.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils_default.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))i(parseHeaders_default(e),t);else if(utils_default.isObject(e)&&utils_default.isSafeIterable(e)){let n,r,a=Object.create(null);for(const t of e){if(!utils_default.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],utils_default.hasOwnProp(a,r)?(n=a[r],a[r]=utils_default.isArray(n)?[...n,t[1]]:[n,t[1]]):a[r]=t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=normalizeHeader(e)){const n=utils_default.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return parseTokens(e);if(utils_default.isFunction(t))return t.call(this,e,n);if(utils_default.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const n=utils_default.findKey(this,e);return!(!n||void 0===this[n]||t&&!matchHeaderValue(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=normalizeHeader(e)){const a=utils_default.findKey(n,e);!a||t&&!matchHeaderValue(n,n[a],a,t)||(delete n[a],r=!0)}}return utils_default.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!matchHeaderValue(this,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return utils_default.forEach(this,(r,a)=>{const i=utils_default.findKey(n,a);if(i)return t[i]=normalizeValue(r),void delete t[a];const o=e?formatHeader(a):String(a).trim();o!==a&&delete t[a],t[o]=normalizeValue(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils_default.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&utils_default.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=normalizeHeader(e);t[r]||(buildAccessors(n,e),t[r]=!0)}return utils_default.isArray(e)?e.forEach(r):r(e),this}};AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils_default.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),utils_default.freezeMethods(AxiosHeaders);var REDACTED="[REDACTED ****]";function hasOwnOrPrototypeToJSON(e){if(utils_default.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(utils_default.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function redactConfig(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],a=e=>{if(null===e||"object"!=typeof e)return e;if(utils_default.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof AxiosHeaders&&(e=e.toJSON()),r.push(e),utils_default.isArray(e))t=[],e.forEach((e,n)=>{const r=a(e);utils_default.isUndefined(r)||(t[n]=r)});else{if(!utils_default.isPlainObject(e)&&hasOwnOrPrototypeToJSON(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?REDACTED:a(i);utils_default.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return a(e)}var AxiosError=class e extends Error{static from(t,n,r,a,i,o){const s=new e(t.message,n||t.code,r,a,i);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,t=e&&utils_default.hasOwnProp(e,"redact")?e.redact:void 0,n=utils_default.isArray(t)&&t.length>0?redactConfig(e,t):utils_default.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};AxiosError.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",AxiosError.ERR_BAD_OPTION="ERR_BAD_OPTION",AxiosError.ECONNABORTED="ECONNABORTED",AxiosError.ETIMEDOUT="ETIMEDOUT",AxiosError.ECONNREFUSED="ECONNREFUSED",AxiosError.ERR_NETWORK="ERR_NETWORK",AxiosError.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",AxiosError.ERR_DEPRECATED="ERR_DEPRECATED",AxiosError.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",AxiosError.ERR_BAD_REQUEST="ERR_BAD_REQUEST",AxiosError.ERR_CANCELED="ERR_CANCELED",AxiosError.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",AxiosError.ERR_INVALID_URL="ERR_INVALID_URL",AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var DEFAULT_FORM_DATA_MAX_DEPTH=100;function isVisitable(e){return utils_default.isPlainObject(e)||utils_default.isArray(e)}function removeBrackets(e){return utils_default.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(e,t){return e=removeBrackets(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function isFlatArray(e){return utils_default.isArray(e)&&!e.some(isVisitable)}var predicates=utils_default.toFlatObject(utils_default,{},null,function(e){return/^is[A-Z]/.test(e)});function toFormData(e,t,n){if(!utils_default.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=utils_default.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!utils_default.isUndefined(t[e])})).metaTokens,a=n.visitor||m,i=n.dots,o=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&utils_default.isSpecCompliantForm(t),u=[];if(!utils_default.isFunction(a))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(utils_default.isDate(e))return e.toISOString();if(utils_default.isBoolean(e))return e.toString();if(!c&&utils_default.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils_default.isArrayBuffer(e)||utils_default.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function p(e){if(e>l)throw new AxiosError("Object is too deeply nested ("+e+" levels). Max depth: "+l,AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,n,a){let s=e;if(utils_default.isReactNative(t)&&utils_default.isReactNativeBlob(e))return t.append(renderKey(a,n,i),d(e)),!1;if(e&&!a&&"object"==typeof e)if(utils_default.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!utils_default.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}(e,1);else if(utils_default.isArray(e)&&isFlatArray(e)||(utils_default.isFileList(e)||utils_default.endsWith(n,"[]"))&&(s=utils_default.toArray(e)))return n=removeBrackets(n),s.forEach(function(e,r){!utils_default.isUndefined(e)&&null!==e&&t.append(!0===o?renderKey([n],r,i):null===o?n:n+"[]",d(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(a,n,i),d(e)),!1)}const h=Object.assign(predicates,{defaultVisitor:m,convertValue:d,isVisitable:isVisitable});if(!utils_default.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!utils_default.isUndefined(n)){if(p(i),-1!==u.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));u.push(n),utils_default.forEach(n,function(n,o){!0===(!(utils_default.isUndefined(n)||null===n)&&a.call(t,n,utils_default.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):[o],i+1)}),u.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}var prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const r=utils_default.isFunction(n)?{serialize:n}:n,a=utils_default.getSafeProp(r,"encode")||encode,i=utils_default.getSafeProp(r,"serialize");let o;if(o=i?i(t,r):utils_default.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(a),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var InterceptorManager=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils_default.forEach(this.handlers,function(t){null!==t&&e(t)})}},transitional_default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},URLSearchParams_default="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData_default="undefined"!=typeof FormData?FormData:null,Blob_default="undefined"!=typeof Blob?Blob:null,browser_default={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_default,FormData:FormData_default,Blob:Blob_default},protocols:["http","https","file","blob","url","data"]},utils_exports=__exportAll({hasBrowserEnv:()=>hasBrowserEnv,hasStandardBrowserEnv:()=>hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:()=>hasStandardBrowserWebWorkerEnv,navigator:()=>_navigator,origin:()=>origin}),hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost",platform_default={...utils_exports,...browser_default};function toURLEncodedForm(e,t){return toFormData(e,new platform_default.classes.URLSearchParams,{visitor:function(e,t,n,r){return platform_default.isNode&&utils_default.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}var MAX_DEPTH=100;function throwIfDepthExceeded(e){if(e>MAX_DEPTH)throw new AxiosError("FormData field is too deeply nested ("+e+" levels). Max depth: "+MAX_DEPTH,AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED)}function parsePropPath(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;null!==(r=n.exec(e));)throwIfDepthExceeded(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}function arrayToObject(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function formDataToJSON(e){function t(e,n,r,a){throwIfDepthExceeded(a);let i=e[a++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=a>=e.length;return i=!i&&utils_default.isArray(r)?r.length:i,s?(utils_default.hasOwnProp(r,i)?r[i]=utils_default.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!o):(utils_default.hasOwnProp(r,i)&&utils_default.isObject(r[i])||(r[i]=[]),t(e,n,r[i],a)&&utils_default.isArray(r[i])&&(r[i]=arrayToObject(r[i])),!o)}if(utils_default.isFormData(e)&&utils_default.isFunction(e.entries)){const n={};return utils_default.forEachEntry(e,(e,r)=>{t(parsePropPath(e),r,n,0)}),n}return null}var own=(e,t)=>null!=e&&utils_default.hasOwnProp(e,t)?e[t]:void 0;function stringifySafely(t,n,r){if(utils_default.isString(t))try{return(n||JSON.parse)(t),utils_default.trim(t)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(t)}var defaults$2={transitional:transitional_default,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=utils_default.isObject(e);if(a&&utils_default.isHTMLForm(e)&&(e=new FormData(e)),utils_default.isFormData(e))return r?JSON.stringify(formDataToJSON(e)):e;if(utils_default.isArrayBuffer(e)||utils_default.isBuffer(e)||utils_default.isStream(e)||utils_default.isFile(e)||utils_default.isBlob(e)||utils_default.isReadableStream(e))return e;if(utils_default.isArrayBufferView(e))return e.buffer;if(utils_default.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){const t=own(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,t).toString();if((i=utils_default.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=own(this,"env"),r=n&&n.FormData;return toFormData(i?{"files[]":e}:e,r&&new r,t)}}return a||r?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(t){const n=own(this,"transitional")||defaults$2.transitional,r=n&&n.forcedJSONParsing,a=own(this,"responseType"),i="json"===a;if(utils_default.isResponse(t)||utils_default.isReadableStream(t))return t;if(t&&utils_default.isString(t)&&(r&&!a||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,own(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,own(this,"response"));throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform_default.classes.FormData,Blob:platform_default.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function transformData(e,t){const n=this||defaults$2,r=t||n,a=AxiosHeaders.from(r.headers);let i=r.data;return utils_default.forEach(e,function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function isCancel(e){return!(!e||!e.__CANCEL__)}utils_default.forEach(["delete","get","head","post","put","patch","query"],e=>{defaults$2.headers[e]={}});var CanceledError=class extends AxiosError{constructor(e,t,n){super(null==e?"canceled":e,AxiosError.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function settle(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new AxiosError("Request failed with status code "+n.status,n.status>=400&&n.status<500?AxiosError.ERR_BAD_REQUEST:AxiosError.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}function parseProtocol(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[o];a||(a=l),n[i]=s,r[i]=l;let u=o,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}function throttle(e,t){let n,r,a=0,i=1e3/t;const o=(t,i=Date.now())=>{a=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=i?o(e,t):(n=e,r||(r=setTimeout(()=>{r=null,o(n)},i-s)))},()=>n&&o(n)]}var progressEventReducer=(e,t,n=3)=>{let r=0;const a=speedometer(50,250);return throttle(n=>{if(!n||"number"!=typeof n.loaded)return;const i=n.loaded,o=n.lengthComputable?n.total:void 0,s=null!=o?Math.min(i,o):i,l=Math.max(0,s-r),c=a(l);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},progressEventDecorator=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},asyncDecorator=e=>(...t)=>utils_default.asap(()=>e(...t)),isURLSameOrigin_default=platform_default.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,platform_default.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(platform_default.origin),platform_default.navigator&&/(msie|trident)/i.test(platform_default.navigator.userAgent)):()=>!0,cookies_default=platform_default.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];utils_default.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),utils_default.isString(r)&&s.push(`path=${r}`),utils_default.isString(a)&&s.push(`domain=${a}`),!0===i&&s.push("secure"),utils_default.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(-1!==a&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}var malformedHttpProtocol=/^https?:(?!\/\/)/i,httpProtocolControlCharacters=/[\t\n\r]/g;function stripLeadingC0ControlOrSpace(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function normalizeURLForProtocolCheck(e){return stripLeadingC0ControlOrSpace(e).replace(httpProtocolControlCharacters,"")}function assertValidHttpProtocolURL(e,t){if("string"==typeof e&&malformedHttpProtocol.test(normalizeURLForProtocolCheck(e)))throw new AxiosError('Invalid URL: missing "//" after protocol',AxiosError.ERR_INVALID_URL,t)}function buildFullPath(e,t,n,r){assertValidHttpProtocolURL(t,r);let a=!isAbsoluteURL(t);return e&&(a||!1===n)?(assertValidHttpProtocolURL(e,r),combineURLs(e,t)):t}var headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return utils_default.isPlainObject(e)&&utils_default.isPlainObject(t)?utils_default.merge.call({caseless:r},e,t):utils_default.isPlainObject(t)?utils_default.merge({},t):utils_default.isArray(t)?t.slice():t}function a(e,t,n,a){return utils_default.isUndefined(t)?utils_default.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function i(e,t){if(!utils_default.isUndefined(t))return r(void 0,t)}function o(e,t){return utils_default.isUndefined(t)?utils_default.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,a,i){return utils_default.hasOwnProp(t,i)?r(n,a):utils_default.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>a(headersToObject(e),headersToObject(t),0,!0)};return utils_default.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=utils_default.hasOwnProp(l,r)?l[r]:a,o=i(utils_default.hasOwnProp(e,r)?e[r]:void 0,utils_default.hasOwnProp(t,r)?t[r]:void 0,r);utils_default.isUndefined(o)&&i!==s||(n[r]=o)}),utils_default.hasOwnProp(t,"validateStatus")&&utils_default.isUndefined(t.validateStatus)&&!1===function(n){const r=utils_default.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!utils_default.isUndefined(r)){if(!utils_default.isPlainObject(r))return;if(utils_default.hasOwnProp(r,n))return r[n]}const a=utils_default.hasOwnProp(e,"transitional")?e.transitional:void 0;if(utils_default.isPlainObject(a)&&utils_default.hasOwnProp(a,n))return a[n]}("validateStatusUndefinedResolves")&&(utils_default.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var FORM_DATA_CONTENT_HEADERS=["content-type","content-length"];function setFormDataHeaders(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{FORM_DATA_CONTENT_HEADERS.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}var encodeUTF8$1=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function resolveConfig(e){const t=mergeConfig({},e),n=e=>utils_default.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),o=n("xsrfCookieName");let s=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=AxiosHeaders.from(s),t.url=buildURL(buildFullPath(c,d,u,t),n("params"),n("paramsSerializer")),l){const e=utils_default.getSafeProp(l,"username")||"",t=utils_default.getSafeProp(l,"password")||"";s.set("Authorization","Basic "+btoa(e+":"+(t?encodeUTF8$1(t):"")))}if(utils_default.isFormData(r)&&(platform_default.hasStandardBrowserEnv||platform_default.hasStandardBrowserWebWorkerEnv||utils_default.isReactNative(r)?s.setContentType(void 0):utils_default.isFunction(r.getHeaders)&&setFormDataHeaders(s,r.getHeaders(),n("formDataHeaderPolicy"))),platform_default.hasStandardBrowserEnv&&(utils_default.isFunction(a)&&(a=a(t)),!0===a||null==a&&isURLSameOrigin_default(t.url))){const e=i&&o&&cookies_default.read(o);e&&s.set(i,e)}return t}var isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest,xhr_default=isXHRAdapterSupported&&function(e){return new Promise(function(t,n){const r=resolveConfig(e);let a=r.data;const i=AxiosHeaders.from(r.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:m}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function g(){if(!f)return;const r=AxiosHeaders.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());settle(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f}),f=null}f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&f.responseURL.startsWith("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,f)),h(),f=null)},f.onerror=function(t){const r=new AxiosError(t&&t.message?t.message:"Network Error",AxiosError.ERR_NETWORK,e,f);r.event=t||null,n(r),h(),f=null},f.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||transitional_default;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new AxiosError(t,a.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,f)),h(),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&utils_default.forEach(toByteStringHeaderObject(i),function(e,t){f.setRequestHeader(t,e)}),utils_default.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),d&&"json"!==d&&(f.responseType=r.responseType),m&&([l,u]=progressEventReducer(m,!0),f.addEventListener("progress",l)),p&&f.upload&&([s,c]=progressEventReducer(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=t=>{f&&(n(!t||t.type?new CanceledError(null,e,f):t),f.abort(),h(),f=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const y=parseProtocol(r.url);!y||platform_default.protocols.includes(y)?f.send(a||null):n(new AxiosError("Unsupported protocol "+y+":",AxiosError.ERR_BAD_REQUEST,e))})},composeSignals=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,a(new AxiosError(`timeout of ${t}ms exceeded`,AxiosError.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:s}=n;return s.unsubscribe=()=>utils_default.asap(o),s},streamChunk=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},readBytes=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},trackStream=(e,t,n,r)=>{const a=readBytes(e,t);let i,o=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return s(),void e.close();let i=r.byteLength;n&&n(o+=i),e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},isHexDigit=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,isPercentEncodedByte=(e,t,n)=>t+2<n&&isHexDigit(e.charCodeAt(t+1))&&isHexDigit(e.charCodeAt(t+2));function estimateDataURLDecodedBytes(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let s=0;s<t;s++)if(37===r.charCodeAt(s)&&s+2<t){const t=r.charCodeAt(s+1),n=r.charCodeAt(s+2);isHexDigit(t)&&isHexDigit(n)&&(e-=2,s+=2)}let n=0,a=t-1;const i=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));a>=0&&(61===r.charCodeAt(a)?(n++,a--):i(a)&&(n++,a-=3)),1===n&&a>=0&&(61===r.charCodeAt(a)||i(a))&&n++;const o=3*Math.floor(e/4)-(n||0);return o>0?o:0}let a=0;for(let i=0,o=r.length;i<o;i++){const e=r.charCodeAt(i);if(37===e&&isPercentEncodedByte(r,i,o))a+=1,i+=2;else if(e<128)a+=1;else if(e<2048)a+=2;else if(e>=55296&&e<=56319&&i+1<o){const e=r.charCodeAt(i+1);e>=56320&&e<=57343?(a+=4,i++):a+=3}else a+=3}return a}var VERSION="1.18.0",DEFAULT_CHUNK_SIZE=65536,{isFunction:isFunction$3}=utils_default,encodeUTF8=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),decodeURIComponentSafe=e=>{if(!utils_default.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},test=(t,...n)=>{try{return!!t(...n)}catch(e){return!1}},maybeWithAuthCredentials=e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},factory=e=>{const t=void 0!==utils_default.global&&null!==utils_default.global?utils_default.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=utils_default.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,s=a?isFunction$3(a):"function"==typeof fetch,l=isFunction$3(i),c=isFunction$3(o);if(!s)return!1;const u=s&&isFunction$3(n),d=s&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const m=l&&u&&test(()=>{let e=!1;const t=new i(platform_default.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=c&&u&&test(()=>utils_default.isReadableStream(new o("").body)),f={stream:h&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,n)})});const g=async e=>null==e?0:utils_default.isBlob(e)?e.size:utils_default.isSpecCompliantForm(e)?(await new i(platform_default.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:utils_default.isArrayBufferView(e)||utils_default.isArrayBuffer(e)?e.byteLength:(utils_default.isURLSearchParams(e)&&(e+=""),utils_default.isString(e)?(await d(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:s,signal:c,cancelToken:d,timeout:p,onDownloadProgress:y,onUploadProgress:v,responseType:x,headers:b,withCredentials:S="same-origin",fetchOptions:C,maxContentLength:_,maxBodyLength:w}=resolveConfig(e);const E=utils_default.isNumber(_)&&_>-1,A=utils_default.isNumber(w)&&w>-1;let k=a||fetch;x=x?(x+"").toLowerCase():"text";let T=composeSignals([c,d&&d.toAbortSignal()],p),I=null;const P=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let M,R=null;const $=()=>new AxiosError("Request body larger than maxBodyLength limit",AxiosError.ERR_BAD_REQUEST,e,I);try{let a;const c=(D="auth",utils_default.hasOwnProp(e,D)?e[D]:void 0);if(c&&(a={username:utils_default.getSafeProp(c,"username")||"",password:utils_default.getSafeProp(c,"password")||""}),maybeWithAuthCredentials(t)){const e=new URL(t,platform_default.origin);a||!e.username&&!e.password||(a={username:decodeURIComponentSafe(e.username),password:decodeURIComponentSafe(e.password)}),(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(a&&(b.delete("authorization"),b.set("Authorization","Basic "+btoa(encodeUTF8((a.username||"")+":"+(a.password||""))))),E&&"string"==typeof t&&t.startsWith("data:")&&estimateDataURLDecodedBytes(t)>_)throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I);if(A&&"get"!==n&&"head"!==n){const e=await g(s);if("number"==typeof e&&isFinite(e)&&(M=e,e>w))throw $()}const d=A&&(utils_default.isReadableStream(s)||utils_default.isStream(s)),p=(e,t,n)=>trackStream(e,DEFAULT_CHUNK_SIZE,e=>{if(A&&e>w)throw R=$();t&&t(e)},n);if(m&&"get"!==n&&"head"!==n&&(v||d)){if(M=null==M?await(async(e,t)=>{const n=utils_default.toFiniteNumber(e.getContentLength());return null==n?g(t):n})(b,s):M,0!==M||d){let e,n=new i(t,{method:"POST",body:s,duplex:"half"});if(utils_default.isFormData(s)&&(e=n.headers.get("content-type"))&&b.setContentType(e),n.body){const[e,t]=v&&progressEventDecorator(M,progressEventReducer(asyncDecorator(v)))||[];s=p(n.body,e,t)}}}else if(d&&!l&&u&&"get"!==n&&"head"!==n)s=p(s);else if(d&&l&&!m&&"get"!==n&&"head"!==n)throw new AxiosError("Stream request bodies are not supported by the current fetch implementation",AxiosError.ERR_NOT_SUPPORT,e,I);utils_default.isString(S)||(S=S?"include":"omit");const N=l&&"credentials"in i.prototype;if(utils_default.isFormData(s)){const e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}b.set("User-Agent","axios/"+VERSION,!1);const O={...C,signal:T,method:n.toUpperCase(),headers:toByteStringHeaderObject(b.normalize()),body:s,duplex:"half",credentials:N?S:void 0};I=l&&new i(t,O);let F=await(l?k(I,C):k(t,O));const L=AxiosHeaders.from(F.headers);if(E){const t=utils_default.toFiniteNumber(L.getContentLength());if(null!=t&&t>_)throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I)}const j=h&&("stream"===x||"response"===x);if(h&&F.body&&(y||E||j&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=F[e]});const n=utils_default.toFiniteNumber(L.getContentLength()),[r,a]=y&&progressEventDecorator(n,progressEventReducer(asyncDecorator(y),!0))||[];let i=0;const s=t=>{if(E&&(i=t,i>_))throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I);r&&r(t)};F=new o(trackStream(F.body,DEFAULT_CHUNK_SIZE,s,()=>{a&&a(),P&&P()}),t)}x=x||"text";let B=await f[utils_default.findKey(f,x)||"text"](F,e);if(E&&!h&&!j){let t;if(null!=B&&("number"==typeof B.byteLength?t=B.byteLength:"number"==typeof B.size?t=B.size:"string"==typeof B&&(t="function"==typeof r?(new r).encode(B).byteLength:B.length)),"number"==typeof t&&t>_)throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I)}return!j&&P&&P(),await new Promise((t,n)=>{settle(t,n,{data:B,headers:AxiosHeaders.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:I})})}catch(N){if(P&&P(),T&&T.aborted&&T.reason instanceof AxiosError){const t=T.reason;throw t.config=e,I&&(t.request=I),N!==t&&(t.cause=N),t}if(R)throw I&&!R.request&&(R.request=I),R;if(N instanceof AxiosError)throw I&&!N.request&&(N.request=I),N;if(N&&"TypeError"===N.name&&/Load failed|fetch/i.test(N.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,I,N&&N.response),{cause:N.cause||N});throw AxiosError.from(N,N&&N.code,e,I,N&&N.response)}var D}},seedCache=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let o,s,l=i.length,c=seedCache;for(;l--;)o=i[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:factory(t)),c=s;return s},adapter=getFetch(),knownAdapters={http:null,xhr:xhr_default,fetch:{get:getFetch}};utils_default.forEach(knownAdapters,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(e){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});var renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils_default.isFunction(e)||null===e||!1===e;function getAdapter(e,t){e=utils_default.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let o=0;o<n;o++){let n;if(r=e[o],a=r,!isResolvedHandle(r)&&(a=knownAdapters[(n=String(r)).toLowerCase()],void 0===a))throw new AxiosError(`Unknown adapter '${n}'`);if(a&&(utils_default.isFunction(a)||(a=a.get(t))))break;i[n||"#"+o]=a}if(!a){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new AxiosError("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a}var adapters_default={getAdapter:getAdapter,adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters_default.getAdapter(e.adapter||defaults$2.adapter,e)(e).then(function(t){throwIfCancellationRequested(e),e.response=t;try{t.data=transformData.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=AxiosHeaders.from(t.headers),t},function(t){if(!isCancel(t)&&(throwIfCancellationRequested(e),t&&t.response)){e.response=t.response;try{t.response.data=transformData.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=AxiosHeaders.from(t.response.headers)}return Promise.reject(t)})}var validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var deprecatedWarnings={};function assertOptions(e,t,n){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new AxiosError("option "+i+" must be "+n,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,n){function r(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new AxiosError(r(a," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[a]&&(deprecatedWarnings[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},validators$1.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var validator_default={assertOptions:assertOptions,validators:validators$1},validators=validator_default.validators,Axios=class{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(r.stack){if(n){const e=n.indexOf("\n"),t=-1===e?-1:n.indexOf("\n",e+1),a=-1===t?"":n.slice(t+1);String(r.stack).endsWith(a)||(r.stack+="\n"+n)}}else r.stack=n}catch(e){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&validator_default.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean),legacyInterceptorReqResOrdering:validators.transitional(validators.boolean),advertiseZstdAcceptEncoding:validators.transitional(validators.boolean),validateStatusUndefinedResolves:validators.transitional(validators.boolean)},!1),null!=r&&(utils_default.isFunction(r)?t.paramsSerializer={serialize:r}:validator_default.assertOptions(r,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator_default.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&utils_default.merge(a.common,a[t.method]);a&&utils_default.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=AxiosHeaders.concat(i,a);const o=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||transitional_default;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...o),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let p=t;for(;d<u;){const e=o[d++],t=o[d++];try{p=e(p)}catch(m){t.call(this,m);break}}try{c=dispatchRequest.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};utils_default.forEach(["delete","get","head","options"],function(e){Axios.prototype[e]=function(t,n){return this.request(mergeConfig(n||{},{method:e,url:t,data:n&&utils_default.hasOwnProp(n,"data")?n.data:void 0}))}}),utils_default.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,a){return this.request(mergeConfig(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Axios.prototype[e]=t(),"query"!==e&&(Axios.prototype[e+"Form"]=t(!0))});var CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new CanceledError(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils_default.isObject(e)&&!0===e.isAxiosError}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};function createInstance(e){const t=new Axios(e),n=bind(Axios.prototype.request,t);return utils_default.extend(n,Axios.prototype,t,{allOwnKeys:!0}),utils_default.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return createInstance(mergeConfig(e,t))},n}Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e});var axios=createInstance(defaults$2);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=e=>formDataToJSON(utils_default.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters_default.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;var baseAxios=axios.create({baseURL:getEnvVar("REACT_APP_LOGS_API_BASE_URL")}),client_type=getEnvVar("REACT_APP_TYPE")||"production",logger=({organizationId:e,sdkOptions:t,user:n,isAdmin:r})=>{const a=!(e||!t||!t.logsUrl),i=client_type===ReactAppTypeEnum.LOCAL,o=baseAxios.defaults.baseURL;if(i||!o&&!a)return{log:async()=>Promise.resolve(!0),error:async()=>Promise.resolve(!0),warn:async()=>Promise.resolve(!0)};const s=e=>({...e&&"object"==typeof e?e:{data:e},path:window.location.href}),l=r?"Admin Panel":"Dashboard";if(!e&&t){baseAxios.defaults.baseURL=t.logsUrl;const e={verificationId:t.id,settings:t.settings,checks:t.checks},n=(t,n,r)=>`DocVerWidget ${t}. Message: ${n}. Data: ${JSON.stringify(s(r))}. Meta: ${JSON.stringify(e)}`;return{log:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:n("Log",e,t),level:"info",client_type:client_type})}catch{}},error:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:n("Error",e,t),level:client_type===ReactAppTypeEnum.PRODUCTION?"error":"warning",client_type:client_type})}catch{}},warn:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:n("Warning",e,t),level:"warning",client_type:client_type})}catch{}}}}const c={organizationId:e,...client_type===ReactAppTypeEnum.PRODUCTION?{...n,account:{...n?.account??{},email:n?.account?.email?maskEmail(n?.account?.email):n?.account?.email,full_name:n?.account?.full_name?maskString(n.account.full_name):n?.account?.full_name}}:{user:n}},u=(e,t,n)=>`${l} ${e}. Message: ${t}. Data: ${JSON.stringify(s(n))}. Meta: ${JSON.stringify(c)}`;return{log:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:u("Log",e,t),level:"info",client_type:client_type})}catch{}},error:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:u("Error",e,t),level:client_type===ReactAppTypeEnum.PRODUCTION?"error":"warning",client_type:client_type})}catch{}},warn:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:u("Warning",e,t),level:"warning",client_type:client_type})}catch{}}}},apiLogger=async(e,t)=>{const n=logger({isAdmin:e.domain.settings.is_admin_panel,user:e.auth?.user?.info,sdkOptions:e.docsVerification.sdkOptions,organizationId:e.domain.settings.is_admin_panel?e.adminPanel?.session?.organizationId:e.dashboard?.session?.organizationId}),{error:r,meta:a}=t,i=async()=>{let e,t;return a?.request.body&&(t=await(a?.request.json())),t&&"object"==typeof t&&"email"in t&&"string"==typeof t.email&&(e=client_type===ReactAppTypeEnum.PRODUCTION?maskEmail(t.email):t.email),{error:{...r&&"object"==typeof r?r:{error:r}},...(e||a?.request?.url)&&{additionalData:{...e&&{email:e},...a?.request.url&&{apiPath:a?.request.url}}}}};([403].includes(r.status)||r.status>=500&&r.status<600)&&await n.error({message:`${r.status} Status`,data:await i()}),404===r.status&&await n.warn({message:"404 Status",data:await i()})},useLogger=()=>{const e=useAppSelector(e=>e.auth?.user?.info),t=useAppSelector(e=>e.domain.settings.is_admin_panel),n=useAppSelector(e=>t?e.adminPanel?.session?.organizationId:e.dashboard?.session?.organizationId),r=useAppSelector(e=>e.docsVerification.sdkOptions);return{logger:(0,import_react.useMemo)(()=>logger({sdkOptions:r,organizationId:n,user:e,isAdmin:t}),[r,n,e,t])}},SchemaError=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},QueryStatus=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(QueryStatus||{}),STATUS_UNINITIALIZED="uninitialized",STATUS_PENDING="pending",STATUS_FULFILLED="fulfilled",STATUS_REJECTED="rejected";function getRequestStatusFlags(e){return{status:e,isUninitialized:e===STATUS_UNINITIALIZED,isLoading:e===STATUS_PENDING,isSuccess:e===STATUS_FULFILLED,isError:e===STATUS_REJECTED}}var isPlainObject2=isPlainObject$3;function copyWithStructuralSharing(e,t){if(e===t||!(isPlainObject2(e)&&isPlainObject2(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const o of n)i[o]=copyWithStructuralSharing(e[o],t[o]),a&&(a=e[o]===i[o]);return a?e:i}function filterMap(e,t,n){return e.reduce((e,r,a)=>(t(r,a)&&e.push(n(r,a)),e),[]).flat()}function isAbsoluteUrl(e){return new RegExp("(^|:)//").test(e)}function isDocumentVisible(){return"undefined"==typeof document||"hidden"!==document.visibilityState}function isNotNullish(e){return null!=e}function filterNullishValues(e){return[...e?.values()??[]].filter(isNotNullish)}function isOnline(){return"undefined"==typeof navigator||(void 0===navigator.onLine||navigator.onLine)}var withoutTrailingSlash=e=>e.replace(/\/$/,""),withoutLeadingSlash=e=>e.replace(/^\//,"");function joinUrls(e,t){if(!e)return t;if(!t)return e;if(isAbsoluteUrl(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=withoutTrailingSlash(e)}${n}${t=withoutLeadingSlash(t)}`}function getOrInsertComputed(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var createNewMap=()=>new Map,timeoutSignal=e=>{const t=new AbortController;return setTimeout(()=>{const e="signal timed out",n="TimeoutError";t.abort("undefined"!=typeof DOMException?new DOMException(e,n):Object.assign(new Error(e),{name:n}))},e),t.signal},anySignal=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},defaultFetchFn=(...e)=>fetch(...e),defaultValidateStatus=e=>e.status>=200&&e.status<=299,defaultIsJsonContentType=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function stripUndefined(e){if(!isPlainObject$3(e))return e;const t={...e};for(const[n,r]of Object.entries(t))void 0===r&&delete t[n];return t}var isJsonifiable=e=>"object"==typeof e&&(isPlainObject$3(e)||Array.isArray(e)||"function"==typeof e.toJSON);function fetchBaseQuery({baseUrl:t,prepareHeaders:n=e=>e,fetchFn:r=defaultFetchFn,paramsSerializer:a,isJsonContentType:i=defaultIsJsonContentType,jsonContentType:o="application/json",jsonReplacer:s,timeout:l,responseHandler:c,validateStatus:u,...d}={}){return"undefined"==typeof fetch&&r===defaultFetchFn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(m,h,f)=>{const{getState:g,extra:y,endpoint:v,forced:x,type:b}=h;let S,{url:C,headers:_=new Headers(d.headers),params:w,responseHandler:E=c??"json",validateStatus:A=u??defaultValidateStatus,timeout:k=l,...T}="string"==typeof m?{url:m}:m,I={...d,signal:k?anySignal(h.signal,timeoutSignal(k)):h.signal,...T};_=new Headers(stripUndefined(_)),I.headers=await n(_,{getState:g,arg:m,extra:y,endpoint:v,forced:x,type:b,extraOptions:f})||_;const P=isJsonifiable(I.body);if(null==I.body||P||"string"==typeof I.body||I.headers.delete("content-type"),!I.headers.has("content-type")&&P&&I.headers.set("content-type",o),P&&i(I.headers)&&(I.body=JSON.stringify(I.body,s)),I.headers.has("accept")||("json"===E?I.headers.set("accept","application/json"):"text"===E&&I.headers.set("accept","text/plain, text/html, */*")),w){const e=~C.indexOf("?")?"&":"?";C+=e+(a?a(w):new URLSearchParams(stripUndefined(w)))}C=joinUrls(t,C);const M=new Request(C,I);let R;S={request:new Request(C,I)};try{R=await r(M)}catch(e){return{error:{status:(e instanceof Error||"undefined"!=typeof DOMException&&e instanceof DOMException)&&"TimeoutError"===e.name?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:S}}const $=R.clone();let D;S.response=$;let N="";try{let e;if(await Promise.all([p(R,E).then(e=>D=e,t=>e=t),$.text().then(e=>N=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:N,error:String(e)},meta:S}}return A(R,D)?{data:D,meta:S}:{error:{status:R.status,data:D},meta:S}};async function p(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=i(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var HandledError=class{constructor(e,t=void 0){this.value=e,this.meta=t}value;meta};async function defaultBackoff(e=0,t=5,n){const r=Math.min(e,t),a=~~((Math.random()+.4)*(300<<r));await new Promise((e,t)=>{const r=setTimeout(()=>e(),a);if(n){const e=()=>{clearTimeout(r),t(new Error("Aborted"))};n.aborted?(clearTimeout(r),t(new Error("Aborted"))):n.addEventListener("abort",e,{once:!0})}})}function fail(e,t){throw Object.assign(new HandledError({error:e,meta:t}),{throwImmediately:!0})}function failIfAborted(e){e.aborted&&fail({status:"CUSTOM_ERROR",error:"Aborted"})}var EMPTY_OPTIONS={},retryWithBackoff=(t,n)=>async(r,a,i)=>{const[o]=[5,(n||EMPTY_OPTIONS).maxRetries,(i||EMPTY_OPTIONS).maxRetries].filter(e=>void 0!==e).slice(-1),s={maxRetries:o,backoff:defaultBackoff,retryCondition:(e,t,{attempt:n})=>n<=o,...n,...i};let l=0;for(;;){failIfAborted(a.signal);try{const e=await t(r,a,i);if(e.error)throw new HandledError(e);return e}catch(e){if(l++,e.throwImmediately){if(e instanceof HandledError)return e.value;throw e}if(e instanceof HandledError){if(!s.retryCondition(e.value.error,r,{attempt:l,baseQueryApi:a,extraOptions:i}))return e.value}else if(l>s.maxRetries)return{error:e};failIfAborted(a.signal);try{await s.backoff(l,s.maxRetries,a.signal)}catch(c){throw failIfAborted(a.signal),c}}}},retry=Object.assign(retryWithBackoff,{fail:fail}),INTERNAL_PREFIX="__rtkq/",ONLINE="online",OFFLINE="offline",FOCUS="focus",FOCUSED="focused",VISIBILITYCHANGE="visibilitychange",onFocus=createAction(`${INTERNAL_PREFIX}${FOCUSED}`),onFocusLost=createAction(`${INTERNAL_PREFIX}un${FOCUSED}`),onOnline=createAction(`${INTERNAL_PREFIX}${ONLINE}`),onOffline=createAction(`${INTERNAL_PREFIX}${OFFLINE}`),actions={onFocus:onFocus,onFocusLost:onFocusLost,onOnline:onOnline,onOffline:onOffline},initialized=!1;function setupListeners(e,t){return t?t(e,actions):function(){const[t,n,r,a]=[onFocus,onFocusLost,onOnline,onOffline].map(t=>()=>e(t())),i=()=>{"visible"===window.document.visibilityState?t():n()};let o=()=>{initialized=!1};if(!initialized&&"undefined"!=typeof window&&window.addEventListener){let e=function(e){Object.entries(n).forEach(([t,n])=>{e?window.addEventListener(t,n,!1):window.removeEventListener(t,n)})};const n={[FOCUS]:t,[VISIBILITYCHANGE]:i,[ONLINE]:r,[OFFLINE]:a};e(!0),initialized=!0,o=()=>{e(!1),initialized=!1}}return o}()}var ENDPOINT_QUERY$1="query",ENDPOINT_MUTATION$1="mutation",ENDPOINT_INFINITEQUERY$1="infinitequery";function isQueryDefinition$1(e){return e.type===ENDPOINT_QUERY$1}function isMutationDefinition$1(e){return e.type===ENDPOINT_MUTATION$1}function isInfiniteQueryDefinition$1(e){return e.type===ENDPOINT_INFINITEQUERY$1}function isAnyQueryDefinition(e){return isQueryDefinition$1(e)||isInfiniteQueryDefinition$1(e)}function calculateProvidedBy(e,t,n,r,a,i){const o=isFunction$2(e)?e(t,n,r,a):e;return o?filterMap(o,isNotNullish,e=>i(expandTagDescription(e))):[]}function isFunction$2(e){return"function"==typeof e}function expandTagDescription(e){return"string"==typeof e?{type:e}:e}function asSafePromise(e,t){return e.catch(t)}var getEndpointDefinition=(e,t)=>e.endpointDefinitions[t],forceQueryFnSymbol=Symbol("forceQueryFn"),isUpsertQuery=e=>"function"==typeof e[forceQueryFnSymbol];function buildInitiate({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:a,context:i,getInternalState:o}){const s=e=>o(e)?.runningQueries,l=e=>o(e)?.runningMutations,{unsubscribeQueryResult:c,removeMutationResult:u,updateSubscriptionOptions:d}=a.internalActions;return{buildInitiateQuery:function(e,t){return p(e,t)},buildInitiateInfiniteQuery:function(e,t){return p(e,t)},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:a}={})=>(i,o)=>{const s=i(r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:a})),{requestId:c,abort:d,unwrap:p}=s,m=asSafePromise(s.unwrap().then(e=>({data:e})),e=>({error:e})),h=Object.assign(m,{arg:s.arg,requestId:c,abort:d,unwrap:p,reset:()=>{i(u({requestId:c,fixedCacheKey:a}))}}),f=l(i);return f.set(c,h),h.then(()=>{f.delete(c)}),a&&(f.set(a,h),h.then(()=>{f.get(a)===h&&f.delete(a)})),h}},getRunningQueryThunk:function(t,n){return r=>{const a=e({queryArgs:n,endpointDefinition:getEndpointDefinition(i,t),endpointName:t});return s(r)?.get(a)}},getRunningMutationThunk:function(e,t){return e=>l(e)?.get(t)},getRunningQueriesThunk:function(){return e=>filterNullishValues(s(e))},getRunningMutationsThunk:function(){return e=>filterNullishValues(l(e))}};function p(r,i){const o=(l,{subscribe:u=!0,forceRefetch:p,subscriptionOptions:m,[forceQueryFnSymbol]:h,...f}={})=>(g,y)=>{const v=e({queryArgs:l,endpointDefinition:i,endpointName:r});let x;const b={...f,type:ENDPOINT_QUERY$1,subscribe:u,forceRefetch:p,subscriptionOptions:m,endpointName:r,originalArgs:l,queryCacheKey:v,[forceQueryFnSymbol]:h};if(isQueryDefinition$1(i))x=t(b);else{const{direction:e,initialPageParam:t,refetchCachedPages:r}=f;x=n({...b,direction:e,initialPageParam:t,refetchCachedPages:r})}const S=a.endpoints[r].select(l),C=g(x),_=S(y()),{requestId:w,abort:E}=C,A=_.requestId!==w,k=s(g)?.get(v),T=()=>S(y()),I=Object.assign(h?C.then(T):A&&!k?Promise.resolve(_):Promise.all([k,C]).then(T),{arg:l,requestId:w,subscriptionOptions:m,queryCacheKey:v,abort:E,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:e=>g(o(l,{subscribe:!1,forceRefetch:!0,...e})),unsubscribe(){u&&g(c({queryCacheKey:v,requestId:w}))},updateSubscriptionOptions(e){I.subscriptionOptions=e,g(d({endpointName:r,requestId:w,queryCacheKey:v,options:e}))}});if(!k&&!A&&!h){const e=s(g);e.set(v,I),I.then(()=>{e.delete(v)})}return I};return o}}var NamedSchemaError=class extends SchemaError{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}value;schemaName;_bqMeta},shouldSkip=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function parseWithSchema(e,t,n,r){const a=await e["~standard"].validate(t);if(a.issues)throw new NamedSchemaError(a.issues,t,n,r);return a.value}function defaultTransformResponse(e){return e}var addShouldAutoBatch=(e={})=>({...e,[SHOULD_AUTOBATCH]:!0});function buildThunks({reducerPath:t,baseQuery:n,context:{endpointDefinitions:r},serializeQueryArgs:a,api:i,assertTagType:o,selectors:s,onSchemaFailure:l,catchSchemaFailure:c,skipSchemaValidation:u}){function d(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function p(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}const m=(e,t)=>e.query&&e[t]?e[t]:defaultTransformResponse,h=async(t,{signal:a,abort:i,rejectWithValue:o,fulfillWithValue:h,dispatch:g,getState:y,extra:v})=>{const x=r[t.endpointName],{metaSchema:b,skipSchemaValidation:S=u}=x,C=t.type===ENDPOINT_QUERY$1;try{let E=defaultTransformResponse;const A={signal:a,abort:i,dispatch:g,getState:y,extra:v,endpoint:t.endpointName,type:t.type,forced:C?f(t,y()):void 0,queryCacheKey:C?t.queryCacheKey:void 0},k=C?t[forceQueryFnSymbol]:void 0;let T;const I=async(e,n,r,a)=>{if(null==n&&e.pages.length)return Promise.resolve({data:e});const i=await _({queryArg:t.originalArgs,pageParam:n}),o=a?d:p;return{data:{pages:o(e.pages,i.data,r),pageParams:o(e.pageParams,n,r)},meta:i.meta}};async function _(e){let t;const{extraOptions:r,argSchema:a,rawResponseSchema:i,responseSchema:o}=x;if(a&&!shouldSkip(S,"arg")&&(e=await parseWithSchema(a,e,"argSchema",{})),k?t=k():x.query?(E=m(x,"transformResponse"),t=await n(x.query(e),A,r)):t=await x.queryFn(e,A,r,e=>n(e,A,r)),t.error)throw new HandledError(t.error,t.meta);let{data:s}=t;i&&!shouldSkip(S,"rawResponse")&&(s=await parseWithSchema(i,t.data,"rawResponseSchema",t.meta));let l=await E(s,t.meta,e);return o&&!shouldSkip(S,"response")&&(l=await parseWithSchema(o,l,"responseSchema",t.meta)),{...t,data:l}}if(C&&"infiniteQueryOptions"in x){const{infiniteQueryOptions:P}=x,{maxPages:M=1/0}=P,R=t.refetchCachedPages??P.refetchCachedPages??!0;let $;const D={pages:[],pageParams:[]},N=s.selectQueryEntry(y(),t.queryCacheKey)?.data,O=f(t,y())&&!t.direction||!N?D:N;if("direction"in t&&t.direction&&O.pages.length){const F="backward"===t.direction;$=await I(O,(F?getPreviousPageParam:getNextPageParam)(P,O,t.originalArgs),M,F)}else{const{initialPageParam:L=P.initialPageParam}=t,j=N?.pageParams??[],B=j[0]??L,V=j.length;if($=await I(O,B,M),k&&($={data:$.data.pages[0]}),R)for(let U=1;U<V;U++){const z=getNextPageParam(P,$.data,t.originalArgs);$=await I($.data,z,M)}}T=$}else T=await _(t.originalArgs);return b&&!shouldSkip(S,"meta")&&T.meta&&(T.meta=await parseWithSchema(b,T.meta,"metaSchema",T.meta)),h(T.data,addShouldAutoBatch({fulfilledTimeStamp:Date.now(),baseQueryMeta:T.meta}))}catch(w){let H=w;if(H instanceof HandledError){let W=m(x,"transformErrorResponse");const{rawErrorResponseSchema:G,errorResponseSchema:q}=x;let{value:K,meta:Y}=H;try{G&&!shouldSkip(S,"rawErrorResponse")&&(K=await parseWithSchema(G,K,"rawErrorResponseSchema",Y)),b&&!shouldSkip(S,"meta")&&(Y=await parseWithSchema(b,Y,"metaSchema",Y));let Z=await W(K,Y,t.originalArgs);return q&&!shouldSkip(S,"errorResponse")&&(Z=await parseWithSchema(q,Z,"errorResponseSchema",Y)),o(Z,addShouldAutoBatch({baseQueryMeta:Y}))}catch(e){H=e}}try{if(H instanceof NamedSchemaError){const Q={endpoint:t.endpointName,arg:t.originalArgs,type:t.type,queryCacheKey:C?t.queryCacheKey:void 0};x.onSchemaFailure?.(H,Q),l?.(H,Q);const{catchSchemaFailure:J=c}=x;if(J)return o(J(H,Q),addShouldAutoBatch({baseQueryMeta:H._bqMeta}))}}catch(e){H=e}throw console.error(H),H}};function f(e,t){const n=s.selectQueryEntry(t,e.queryCacheKey),r=s.selectConfig(t).refetchOnMountOrArgChange,a=n?.fulfilledTimeStamp,i=e.forceRefetch??(e.subscribe&&r);return!!i&&(!0===i||(Number(new Date)-Number(a))/1e3>=i)}const g=()=>createAsyncThunk(`${t}/executeQuery`,h,{getPendingMeta({arg:e}){const t=r[e.endpointName];return addShouldAutoBatch({startedTimeStamp:Date.now(),...isInfiniteQueryDefinition$1(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){const n=t(),a=s.selectQueryEntry(n,e.queryCacheKey),i=a?.fulfilledTimeStamp,o=e.originalArgs,l=a?.originalArgs,c=r[e.endpointName],u=e.direction;return!!isUpsertQuery(e)||"pending"!==a?.status&&(!!f(e,n)||(!(!isQueryDefinition$1(c)||!c?.forceRefetch?.({currentArg:o,previousArg:l,endpointState:a,state:n}))||!(i&&!u)))},dispatchConditionRejection:!0}),y=g(),v=g(),x=createAsyncThunk(`${t}/executeMutation`,h,{getPendingMeta:()=>addShouldAutoBatch({startedTimeStamp:Date.now()})});function b(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:y,mutationThunk:x,infiniteQueryThunk:v,prefetch:(e,t,n={})=>(r,a)=>{const o=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,subscribe:!1};return i.endpoints[e].initiate(t,r)},c=i.endpoints[e].select(t)(a());if(o)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(a,o)=>{const s=i.endpoints[e].select(t)(o()),l={patches:[],inversePatches:[],undo:()=>a(i.util.patchQueryData(e,t,l.inversePatches,r))};if(s.status===STATUS_UNINITIALIZED)return l;let c;if("data"in s)if(isDraftable(s.data)){const[e,t,r]=produceWithPatches(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return 0===l.patches.length||a(i.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(i.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[forceQueryFnSymbol]:()=>({data:n})})),patchQueryData:(e,t,n,s)=>(l,c)=>{const u=r[e],d=a({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(i.internalActions.queryResultPatched({queryCacheKey:d,patches:n})),!s)return;const p=i.endpoints[e].select(t)(c()),m=calculateProvidedBy(u.providesTags,p.data,void 0,t,{},o);l(i.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:m}]))},buildMatchThunkActions:function(e,t){return{matchPending:isAllOf(isPending(e),b(t)),matchFulfilled:isAllOf(isFulfilled(e),b(t)),matchRejected:isAllOf(isRejected(e),b(t))}}}}function getNextPageParam(e,{pages:t,pageParams:n},r){const a=t.length-1;return e.getNextPageParam(t[a],t,n[a],n,r)}function getPreviousPageParam(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function calculateProvidedByThunk(e,t,n,r){return calculateProvidedBy(n[e.meta.arg.endpointName][t],isFulfilled(e)?e.payload:void 0,isRejectedWithValue(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function getCurrent(e){return isDraft(e)?current(e):e}function updateQuerySubstateIfExists(e,t,n){const r=e[t];r&&n(r)}function getMutationCacheKey(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function updateMutationSubstateIfExists(e,t,n){const r=e[getMutationCacheKey(t)];r&&n(r)}var initialState$4={};function buildSlice({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:a,apiUid:i,extractRehydrationInfo:o,hasRehydrationInfo:s},assertTagType:l,config:c}){const u=createAction(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:STATUS_UNINITIALIZED,endpointName:t.endpointName},updateQuerySubstateIfExists(e,t.queryCacheKey,e=>{e.status=STATUS_PENDING,e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp;isInfiniteQueryDefinition$1(a[r.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function p(e,t,n,r){updateQuerySubstateIfExists(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!r)return;const{merge:i}=a[t.arg.endpointName];if(e.status=STATUS_FULFILLED,i)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:a,baseQueryMeta:o,requestId:s}=t;e.data=produce(e.data,e=>i(e,n,{arg:a.originalArgs,baseQueryMeta:o,fulfilledTimeStamp:r,requestId:s}))}else e.data=n;else e.data=a[t.arg.endpointName].structuralSharing??1?copyWithStructuralSharing(isDraft(e.data)?original(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}const m=createSlice({name:`${e}/queries`,initialState:initialState$4,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:prepareAutoBatched()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:a}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),p(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},a,!0)}},prepare:e=>({payload:e.map(e=>{const{endpointName:t,arg:n,value:i}=e,o=a[t];return{queryDescription:{type:ENDPOINT_QUERY$1,endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:o,endpointName:t})},value:i}}),meta:{[SHOULD_AUTOBATCH]:!0,requestId:nanoid(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){updateQuerySubstateIfExists(e,t,e=>{e.data=applyPatches(e.data,n.concat())})},prepare:prepareAutoBatched()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{d(e,n,isUpsertQuery(n),t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{p(e,t,n,isUpsertQuery(t.arg))}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:i})=>{updateQuerySubstateIfExists(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status=STATUS_REJECTED,e.error=i??a}})}).addMatcher(s,(e,t)=>{const{queries:n}=o(t);for(const[r,a]of Object.entries(n))a?.status!==STATUS_FULFILLED&&a?.status!==STATUS_REJECTED||(e[r]=a)})}}),h=createSlice({name:`${e}/mutations`,initialState:initialState$4,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=getMutationCacheKey(t);n in e&&delete e[n]},prepare:prepareAutoBatched()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[getMutationCacheKey(t)]={requestId:n,status:STATUS_PENDING,endpointName:r.endpointName,startedTimeStamp:a})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&updateMutationSubstateIfExists(e,n,e=>{e.requestId===n.requestId&&(e.status=STATUS_FULFILLED,e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&updateMutationSubstateIfExists(e,r,e=>{e.requestId===r.requestId&&(e.status=STATUS_REJECTED,e.error=t??n)})}).addMatcher(s,(e,t)=>{const{mutations:n}=o(t);for(const[r,a]of Object.entries(n))a?.status!==STATUS_FULFILLED&&a?.status!==STATUS_REJECTED||r===a?.requestId||(e[r]=a)})}}),f=createSlice({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(const{queryCacheKey:n,providedTags:r}of t.payload){g(e,n);for(const{type:t,id:a}of r){const r=(e.tags[t]??={})[a||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}e.keys[n]=r}},prepare:prepareAutoBatched()}},extraReducers(e){e.addCase(m.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{g(e,t)}).addMatcher(s,(e,t)=>{const{provided:n}=o(t);for(const[r,a]of Object.entries(n.tags??{}))for(const[t,i]of Object.entries(a)){const a=(e.tags[r]??={})[t||"__internal_without_id"]??=[];for(const t of i)a.includes(t)||a.push(t),e.keys[t]=n.keys[t]}}).addMatcher(isAnyOf(isFulfilled(t),isRejectedWithValue(t)),(e,t)=>{y(e,[t])}).addMatcher(m.actions.cacheEntriesUpserted.match,(e,t)=>{y(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function g(e,t){const n=getCurrent(e.keys[t]??[]);for(const r of n){const n=r.type,a=r.id??"__internal_without_id",i=e.tags[n]?.[a];i&&(e.tags[n][a]=getCurrent(i).filter(e=>e!==t))}delete e.keys[t]}function y(e,t){const n=t.map(e=>{const t=calculateProvidedByThunk(e,"providesTags",a,l),{queryCacheKey:n}=e.meta.arg;return{queryCacheKey:n,providedTags:t}});f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy(n))}const v=createSlice({name:`${e}/subscriptions`,initialState:initialState$4,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),x=createSlice({name:`${e}/internalSubscriptions`,initialState:initialState$4,reducers:{subscriptionsUpdated:{reducer:(e,t)=>applyPatches(e,t.payload),prepare:prepareAutoBatched()}}}),b=createSlice({name:`${e}/config`,initialState:{online:isOnline(),focused:isDocumentVisible(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&i===t||"conflict"}},extraReducers:e=>{e.addCase(onOnline,e=>{e.online=!0}).addCase(onOffline,e=>{e.online=!1}).addCase(onFocus,e=>{e.focused=!0}).addCase(onFocusLost,e=>{e.focused=!1}).addMatcher(s,e=>({...e}))}}),S=combineReducers({queries:m.reducer,mutations:h.reducer,provided:f.reducer,subscriptions:x.reducer,config:b.reducer});return{reducer:(e,t)=>S(u.match(t)?void 0:e,t),actions:{...b.actions,...m.actions,...v.actions,...x.actions,...h.actions,...f.actions,resetApiState:u}}}var skipToken=Symbol.for("RTKQ/skipToken"),initialSubState={status:STATUS_UNINITIALIZED},defaultQuerySubState=produce(initialSubState,()=>{}),defaultMutationSubState=produce(initialSubState,()=>{});function buildSelectors({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>defaultQuerySubState,a=e=>defaultMutationSubState;return{buildQuerySelector:function(e,t){return c(e,t,i)},buildInfiniteQuerySelector:function(e,t){const{infiniteQueryOptions:n}=t;return c(e,t,function(e){const t={...e,...getRequestStatusFlags(e.status)},{isLoading:r,isError:a,direction:i}=t,o="forward"===i,s="backward"===i;return{...t,hasNextPage:u(n,t.data,t.originalArgs),hasPreviousPage:d(n,t.data,t.originalArgs),isFetchingNextPage:r&&o,isFetchingPreviousPage:r&&s,isFetchNextPageError:a&&o,isFetchPreviousPageError:a&&s}})},buildMutationSelector:function(){return e=>{let t;t="object"==typeof e?getMutationCacheKey(e)??skipToken:e;return n(t===skipToken?a:e=>o(e)?.mutations?.[t]??defaultMutationSubState,i)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set,i=filterMap(n,isNotNullish,expandTagDescription);for(const t of i){const e=r.provided.tags[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:Object.values(e).flat())??[];for(const t of n)a.add(t)}return Array.from(a.values()).flatMap(e=>{const t=r.queries[e];return t?{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}:[]})},selectCachedArgsForQuery:function(e,t){return filterMap(Object.values(s(e)),e=>e?.endpointName===t&&e.status!==STATUS_UNINITIALIZED,e=>e.originalArgs)},selectApiState:o,selectQueries:s,selectMutations:function(e){return o(e)?.mutations},selectQueryEntry:l,selectConfig:function(e){return o(e)?.config}};function i(e){return{...e,...getRequestStatusFlags(e.status)}}function o(e){return e[t]}function s(e){return o(e)?.queries}function l(e,t){return s(e)?.[t]}function c(t,a,i){return o=>{if(o===skipToken)return n(r,i);const s=e({queryArgs:o,endpointDefinition:a,endpointName:t});return n(e=>l(e,s)??defaultQuerySubState,i)}}function u(e,t,n){return!!t&&null!=getNextPageParam(e,t,n)}function d(e,t,n){return!(!t||!e.getPreviousPageParam)&&null!=getPreviousPageParam(e,t,n)}}var cache=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs=({endpointName:e,queryArgs:t})=>{let n="";const r=cache?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,(e,t)=>t=isPlainObject$3(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);isPlainObject$3(t)&&cache?.set(t,e),n=e}return`${e}(${n})`};function buildCreateApi(...e){return function(t){const n=weakMapMemoize(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=defaultSerializeQueryArgs;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:defaultSerializeQueryArgs({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:nanoid(),extractRehydrationInfo:n,hasRehydrationInfo:weakMapMemoize(e=>null!=n(e))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:ENDPOINT_QUERY$1}),mutation:e=>({...e,type:ENDPOINT_MUTATION$1}),infiniteQuery:e=>({...e,type:ENDPOINT_INFINITEQUERY$1})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(formatProdErrorMessage(39))}else{a.endpointDefinitions[n]=r;for(const e of o)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"==typeof r?r(getEndpointDefinition(a,n)):Object.assign(getEndpointDefinition(a,n)||{},r);return i}},o=e.map(e=>e.init(i,r,a));return i.injectEndpoints({endpoints:t.endpoints})}}function safeAssign$1(e,...t){return Object.assign(e,...t)}var buildBatchedActionsHandler=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const a=`${e.reducerPath}/subscriptions`;let i=null,o=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>c().get(e)?.size??0,isRequestSubscribed:(e,t)=>!!c()?.get(e)?.get(t)};function d(e){return JSON.parse(JSON.stringify(Object.fromEntries([...e].map(([e,t])=>[e,Object.fromEntries(t)]))))}return(r,c)=>{if(i||(i=d(n.currentSubscriptions)),e.util.resetApiState.match(r))return i={},n.currentSubscriptions.clear(),o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(r))return[!1,u];const p=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:a}=r.payload,i=n.get(e);return i?.has(t)&&i.set(t,a),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload,a=n.get(e);return a&&a.delete(t),!0}if(e.internalActions.removeQueryResult.match(r))return n.delete(r.payload.queryCacheKey),!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=getOrInsertComputed(n,e.queryCacheKey,createNewMap);return e.subscribe&&a.set(t,e.subscriptionOptions??a.get(t)??{}),!0}let a=!1;if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=getOrInsertComputed(n,t.queryCacheKey,createNewMap);e.set(i,t.subscriptionOptions??e.get(i)??{}),a=!0}}return a})(n.currentSubscriptions,r);let m=!0;if(p){o||(o=setTimeout(()=>{const t=d(n.currentSubscriptions),[,r]=produceWithPatches(i,()=>t);c.next(e.internalActions.subscriptionsUpdated(r)),i=t,o=null},500));const s="string"==typeof r.type&&!!r.type.startsWith(a),l=t.rejected.match(r)&&r.meta.condition&&!!r.meta.arg.subscribe;m=!s&&!l}return[m,!1]}},THIRTY_TWO_BIT_MAX_TIMER_SECONDS=2147482.647,buildCacheCollectionHandler=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:a,selectors:{selectQueryEntry:i,selectConfig:o},getRunningQueryThunk:s,mwApi:l})=>{const{removeQueryResult:c,unsubscribeQueryResult:u,cacheEntriesUpserted:d}=t.internalActions,p=isAnyOf(u.match,n.fulfilled,n.rejected,d.match);function m(e){const t=a.currentSubscriptions.get(e);return!!t&&t.size>0}const h={};function f(e){for(const t of e.values())t?.abort?.()}function g(e,t,n){const r=t.getState();for(const a of e){const e=i(r,a);e?.endpointName&&y(a,e.endpointName,t,n)}}function y(e,t,n,a){const o=getEndpointDefinition(r,t)?.keepUnusedDataFor??a.keepUnusedDataFor;if(o===1/0)return;const l=Math.max(0,Math.min(o,THIRTY_TWO_BIT_MAX_TIMER_SECONDS));if(!m(e)){const t=h[e];t&&clearTimeout(t),h[e]=setTimeout(()=>{if(!m(e)){const t=i(n.getState(),e);t?.endpointName&&n.dispatch(s(t.endpointName,t.originalArgs))?.abort(),n.dispatch(c({queryCacheKey:e}))}delete h[e]},1e3*l)}}return(e,n)=>{const i=o(n.getState());if(p(e)){let t;if(d.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{const{queryCacheKey:n}=u.match(e)?e.payload:e.meta.arg;t=[n]}g(t,n,i)}if(t.util.resetApiState.match(e)){for(const[e,t]of Object.entries(h))t&&clearTimeout(t),delete h[e];f(a.runningQueries),f(a.runningMutations)}if(r.hasRehydrationInfo(e)){const{queries:t}=r.extractRehydrationInfo(e);g(Object.keys(t),n,i)}}},neverResolvedError=new Error("Promise never resolved before cacheEntryRemoved."),buildCacheLifecycleHandler=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:i,selectors:{selectQueryEntry:o,selectApiState:s}})=>{const l=isAsyncThunkAction(r),c=isAsyncThunkAction(a),u=isFulfilled(r,a),d={},{removeQueryResult:p,removeMutationResult:m,cacheEntriesUpserted:h}=e.internalActions;function f(e,t,n){const r=d[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function g(e){const t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function y(e){const{arg:t,requestId:n}=e.meta,{endpointName:r,originalArgs:a}=t;return[r,a,n]}function v(t,r,a,i,o){const s=getEndpointDefinition(n,t),l=s?.onCacheEntryAdded;if(!l)return;const c={},u=new Promise(e=>{c.cacheEntryRemoved=e}),p=Promise.race([new Promise(e=>{c.valueResolved=e}),u.then(()=>{throw neverResolvedError})]);p.catch(()=>{}),d[a]=c;const m=e.endpoints[t].select(isAnyQueryDefinition(s)?r:a),h=i.dispatch((e,t,n)=>n),f=l(r,{...i,getCacheEntry:()=>m(i.getState()),requestId:o,extra:h,updateCachedData:isAnyQueryDefinition(s)?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:p,cacheEntryRemoved:u});Promise.resolve(f).catch(e=>{if(e!==neverResolvedError)throw e})}return(n,i,s)=>{const x=function(e){return l(e)?e.meta.arg.queryCacheKey:c(e)?e.meta.arg.fixedCacheKey??e.meta.requestId:p.match(e)?e.payload.queryCacheKey:m.match(e)?getMutationCacheKey(e.payload):""}(n);function b(e,t,n,r){const a=o(s,t),l=o(i.getState(),t);!a&&l&&v(e,r,t,i,n)}if(r.pending.match(n)){const[e,t,r]=y(n);b(e,x,r,t)}else if(h.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:a,queryCacheKey:i}=e;b(r,i,n.meta.requestId,a),f(i,t,{})}else if(a.pending.match(n)){if(i.getState()[t].mutations[x]){const[e,t,r]=y(n);v(e,t,x,i,r)}}else if(u(n))f(x,n.payload,n.meta.baseQueryMeta);else if(p.match(n)||m.match(n))g(x);else if(e.util.resetApiState.match(n))for(const e of Object.keys(d))g(e)}},buildDevCheckHandler=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},buildInvalidationByTagsHandler=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:i,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=i.internalActions,u=isAnyOf(isFulfilled(r),isRejectedWithValue(r)),d=isAnyOf(isFulfilled(a,r),isRejected(a,r));let p=[],m=0;function h(n,r){const a=r.getState(),o=a[e];if(p.push(...n),"delayed"===o.config.invalidationBehavior&&m>0)return;const u=p;if(p=[],0===u.length)return;const d=i.util.selectInvalidatedBy(a,u);t.batch(()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=o.queries[t],n=getOrInsertComputed(l.currentSubscriptions,t,createNewMap);e&&(0===n.size?r.dispatch(c({queryCacheKey:t})):e.status!==STATUS_UNINITIALIZED&&r.dispatch(s(e)))}})}return(e,t)=>{(a.pending.match(e)||r.pending.match(e))&&m++,d(e)&&(m=Math.max(0,m-1)),u(e)?h(calculateProvidedByThunk(e,"invalidatesTags",n,o),t):d(e)?h([],t):i.util.invalidateTags.match(e)&&h(calculateProvidedBy(e.payload,void 0,void 0,void 0,void 0,o),t)}},buildPollingHandler=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const{currentPolls:i,currentSubscriptions:o}=a,s=new Set;let l=null;function c(e,t){s.add(e),l||(l=setTimeout(()=>{for(const e of s)d({queryCacheKey:e},t);s.clear(),l=null},0))}function u({queryCacheKey:t},n){const a=n.getState()[e],s=a.queries[t],l=o.get(t);if(!s||s.status===STATUS_UNINITIALIZED)return;const{lowestPollingInterval:c,skipPollingIfUnfocused:d}=m(l);if(!Number.isFinite(c))return;const p=i.get(t);p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+c;i.set(t,{nextPollTimestamp:h,pollingInterval:c,timeout:setTimeout(()=>{!a.config.focused&&d||n.dispatch(r(s)),u({queryCacheKey:t},n)},c)})}function d({queryCacheKey:t},n){const r=n.getState()[e].queries[t],a=o.get(t);if(!r||r.status===STATUS_UNINITIALIZED)return;const{lowestPollingInterval:s}=m(a);if(!Number.isFinite(s))return void p(t);const l=i.get(t),c=Date.now()+s;(!l||c<l.nextPollTimestamp)&&u({queryCacheKey:t},n)}function p(e){const t=i.get(e);t?.timeout&&clearTimeout(t.timeout),i.delete(e)}function m(e=new Map){let t=!1,n=Number.POSITIVE_INFINITY;for(const r of e.values())r.pollingInterval&&(n=Math.min(r.pollingInterval,n),t=r.skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&c(e.payload.queryCacheKey,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&c(e.meta.arg.queryCacheKey,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&u(e.meta.arg,r),n.util.resetApiState.match(e)&&(!function(){for(const e of i.keys())p(e)}(),l&&(clearTimeout(l),l=null),s.clear())}},buildQueryLifecycleHandler=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=isPending(n,r),i=isRejected(n,r),o=isFulfilled(n,r),s={};return(n,r)=>{if(a(n)){const{requestId:a,arg:{endpointName:i,originalArgs:o}}=n.meta,l=getEndpointDefinition(t,i),c=l?.onQueryStarted;if(c){const t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),s[a]=t;const u=e.endpoints[i].select(isAnyQueryDefinition(l)?o:a),d=r.dispatch((e,t,n)=>n);c(o,{...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:d,updateCachedData:isAnyQueryDefinition(l)?t=>r.dispatch(e.util.updateQueryData(i,o,t)):void 0,queryFulfilled:n})}}else if(o(n)){const{requestId:e,baseQueryMeta:t}=n.meta;s[e]?.resolve({data:n.payload,meta:t}),delete s[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;s[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},buildWindowEventHandler=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:i}=n.internalActions;function o(n,o){const s=n.getState()[e],l=s.queries,c=a.currentSubscriptions;t.batch(()=>{for(const e of c.keys()){const t=l[e],a=c.get(e);if(!a||!t)continue;const u=[...a.values()];(u.some(e=>!0===e[o])||u.every(e=>void 0===e[o])&&s.config[o])&&(0===a.size?n.dispatch(i({queryCacheKey:e})):t.status!==STATUS_UNINITIALIZED&&n.dispatch(r(t)))}})}return(e,t)=>{onFocus.match(e)&&o(t,"refetchOnFocus"),onOnline.match(e)&&o(t,"refetchOnReconnect")}};function buildMiddleware(e){const{reducerPath:t,queryThunk:n,api:r,context:a,getInternalState:i}=e,{apiUid:o}=a,s={invalidateTags:createAction(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),c=[buildDevCheckHandler,buildCacheCollectionHandler,buildInvalidationByTagsHandler,buildPollingHandler,buildCacheLifecycleHandler,buildQueryLifecycleHandler];return{middleware:n=>{let s=!1;const d=i(n.dispatch),p={...e,internalState:d,refetchQuery:u,isThisApiSliceAction:l,mwApi:n},m=c.map(e=>e(p)),h=buildBatchedActionsHandler(p),f=buildWindowEventHandler(p);return e=>i=>{if(!isAction(i))return e(i);s||(s=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const c={...n,next:e},u=n.getState(),[d,p]=h(i,c,u);let g;if(g=d?e(i):p,n.getState()[t]&&(f(i,c,u),l(i)||a.hasRehydrationInfo(i)))for(const e of m)e(i,c,u);return g}},actions:s};function u(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var coreModuleName=Symbol(),coreModule=({createSelector:e=createSelector}={})=>({name:coreModuleName,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:i,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:u,onSchemaFailure:d,catchSchemaFailure:p,skipSchemaValidation:m},h){enablePatches();const f=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:onOnline,onOffline:onOffline,onFocus:onFocus,onFocusLost:onFocusLost},util:{}});const g=buildSelectors({serializeQueryArgs:i,reducerPath:a,createSelector:e}),{selectInvalidatedBy:y,selectCachedArgsForQuery:v,buildQuerySelector:x,buildInfiniteQuerySelector:b,buildMutationSelector:S}=g;safeAssign$1(t.util,{selectInvalidatedBy:y,selectCachedArgsForQuery:v});const{queryThunk:C,infiniteQueryThunk:_,mutationThunk:w,patchQueryData:E,updateQueryData:A,upsertQueryData:k,prefetch:T,buildMatchThunkActions:I}=buildThunks({baseQuery:n,reducerPath:a,context:h,api:t,serializeQueryArgs:i,assertTagType:f,selectors:g,onSchemaFailure:d,catchSchemaFailure:p,skipSchemaValidation:m}),{reducer:P,actions:M}=buildSlice({context:h,queryThunk:C,infiniteQueryThunk:_,mutationThunk:w,serializeQueryArgs:i,reducerPath:a,assertTagType:f,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:a,invalidationBehavior:u}});safeAssign$1(t.util,{patchQueryData:E,updateQueryData:A,upsertQueryData:k,prefetch:T,resetApiState:M.resetApiState,upsertQueryEntries:M.cacheEntriesUpserted}),safeAssign$1(t.internalActions,M);const R=new WeakMap,$=e=>getOrInsertComputed(R,e,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:D,buildInitiateInfiniteQuery:N,buildInitiateMutation:O,getRunningMutationThunk:F,getRunningMutationsThunk:L,getRunningQueriesThunk:j,getRunningQueryThunk:B}=buildInitiate({queryThunk:C,mutationThunk:w,infiniteQueryThunk:_,api:t,serializeQueryArgs:i,context:h,getInternalState:$});safeAssign$1(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:L,getRunningQueryThunk:B,getRunningQueriesThunk:j});const{middleware:V,actions:U}=buildMiddleware({reducerPath:a,context:h,queryThunk:C,mutationThunk:w,infiniteQueryThunk:_,api:t,assertTagType:f,selectors:g,getRunningQueryThunk:B,getInternalState:$});return safeAssign$1(t.util,U),safeAssign$1(t,{reducer:P,middleware:V}),{name:coreModuleName,injectEndpoint(e,n){const r=t,a=r.endpoints[e]??={};isQueryDefinition$1(n)&&safeAssign$1(a,{name:e,select:x(e,n),initiate:D(e,n)},I(C,e)),isMutationDefinition$1(n)&&safeAssign$1(a,{name:e,select:S(),initiate:O(e)},I(w,e)),isInfiniteQueryDefinition$1(n)&&safeAssign$1(a,{name:e,select:b(e,n),initiate:N(e,n)},I(C,e))}}}}),createApi$1=buildCreateApi(coreModule());function capitalize(e){return e.replace(e[0],e[0].toUpperCase())}var ENDPOINT_QUERY="query",ENDPOINT_MUTATION="mutation",ENDPOINT_INFINITEQUERY="infinitequery";function isQueryDefinition(e){return e.type===ENDPOINT_QUERY}function isMutationDefinition(e){return e.type===ENDPOINT_MUTATION}function isInfiniteQueryDefinition(e){return e.type===ENDPOINT_INFINITEQUERY}function safeAssign(e,...t){return Object.assign(e,...t)}var UNINITIALIZED_VALUE=Symbol();function useStableQueryArgs(e){const t=(0,import_react.useRef)(e),n=(0,import_react.useMemo)(()=>copyWithStructuralSharing(t.current,e),[e]);return(0,import_react.useEffect)(()=>{t.current!==n&&(t.current=n)},[n]),n}function useShallowStableValue(e){const t=(0,import_react.useRef)(e);return(0,import_react.useEffect)(()=>{shallowEqual(t.current,e)||(t.current=e)},[e]),shallowEqual(t.current,e)?t.current:e}var canUseDOM=()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),isDOM=canUseDOM(),isRunningInReactNative=()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product,isReactNative=isRunningInReactNative(),getUseIsomorphicLayoutEffect=()=>isDOM||isReactNative?import_react.useLayoutEffect:import_react.useEffect,useIsomorphicLayoutEffect$2=getUseIsomorphicLayoutEffect(),noPendingQueryStateSelector=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:QueryStatus.pending}:e;function pick(e,...t){const n={};return t.forEach(t=>{n[t]=e[t]}),n}var COMMON_HOOK_DEBUG_FIELDS=["data","status","isLoading","isSuccess","isError","error"];function buildHooks({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:i,createSelector:o},serializeQueryArgs:s,context:l}){const c=i?e=>e():import_react.useEffect,u=e=>e.current?.unsubscribe?.(),d=l.endpointDefinitions;return{buildQueryHooks:function(r){const a=(e,t={})=>{const[n]=h(r,e,t);return g(n),(0,import_react.useMemo)(()=>({refetch:()=>function(e){if(!e.current)throw new Error(formatProdErrorMessage(38));return e.current.refetch()}(n)}),[n])},i=({refetchOnReconnect:a,refetchOnFocus:i,pollingInterval:o=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:l}=e.endpoints[r],d=n(),[p,m]=(0,import_react.useState)(UNINITIALIZED_VALUE),h=(0,import_react.useRef)(void 0),f=useShallowStableValue({refetchOnReconnect:a,refetchOnFocus:i,pollingInterval:o,skipPollingIfUnfocused:s});c(()=>{f!==h.current?.subscriptionOptions&&h.current?.updateSubscriptionOptions(f)},[f]);const g=(0,import_react.useRef)(f);c(()=>{g.current=f},[f]);const y=(0,import_react.useCallback)(function(e,n=!1){let r;return t(()=>{u(h),h.current=r=d(l(e,{subscriptionOptions:g.current,forceRefetch:!n})),m(e)}),r},[d,l]),v=(0,import_react.useCallback)(()=>{h.current?.queryCacheKey&&d(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))},[d]);return(0,import_react.useEffect)(()=>()=>{u(h)},[]),(0,import_react.useEffect)(()=>{p===UNINITIALIZED_VALUE||h.current||y(p,!0)},[p,y]),(0,import_react.useMemo)(()=>[y,p,{reset:v}],[y,p,v])},o=f(r,p);return{useQueryState:o,useQuerySubscription:a,useLazyQuerySubscription:i,useLazyQuery(e){const[t,n,{reset:r}]=i(e),a=o(n,{...e,skip:n===UNINITIALIZED_VALUE}),s=(0,import_react.useMemo)(()=>({lastArg:n}),[n]);return(0,import_react.useMemo)(()=>[t,{...a,reset:r},s],[t,a,r,s])},useQuery(e,t){const n=a(e,t),r=o(e,{selectFromResult:e===skipToken||t?.skip?void 0:noPendingQueryStateSelector,...t});return(0,import_react.useDebugValue)(pick(r,...COMMON_HOOK_DEBUG_FIELDS)),(0,import_react.useMemo)(()=>({...r,...n}),[r,n])}}},buildInfiniteQueryHooks:function(e){const n=(n,r={})=>{const[a,i,o,s]=h(e,n,r),l=(0,import_react.useRef)(s);c(()=>{l.current=s},[s]);const d=useShallowStableValue(r.refetchCachedPages),p=(0,import_react.useCallback)(function(e,n){let r;return t(()=>{u(a),a.current=r=i(o(e,{subscriptionOptions:l.current,direction:n}))}),r},[a,i,o]);g(a);const m=useStableQueryArgs(r.skip?skipToken:n),f=(0,import_react.useCallback)(e=>{if(!a.current)throw new Error(formatProdErrorMessage(38));const t={refetchCachedPages:e?.refetchCachedPages??d};return a.current.refetch(t)},[a,d]);return(0,import_react.useMemo)(()=>({trigger:p,refetch:f,fetchNextPage:()=>p(m,"forward"),fetchPreviousPage:()=>p(m,"backward")}),[f,p,m])},r=f(e,m);return{useInfiniteQueryState:r,useInfiniteQuerySubscription:n,useInfiniteQuery(e,t){const{refetch:a,fetchNextPage:i,fetchPreviousPage:o}=n(e,t),s=r(e,{selectFromResult:e===skipToken||t?.skip?void 0:noPendingQueryStateSelector,...t});return(0,import_react.useDebugValue)(pick(s,...COMMON_HOOK_DEBUG_FIELDS,"hasNextPage","hasPreviousPage")),(0,import_react.useMemo)(()=>({...s,fetchNextPage:i,fetchPreviousPage:o,refetch:a}),[s,i,o,a])}}},buildMutationHook:function(a){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:l,initiate:c}=e.endpoints[a],u=n(),[d,p]=(0,import_react.useState)();(0,import_react.useEffect)(()=>()=>{d?.arg.fixedCacheKey||d?.reset()},[d]);const m=(0,import_react.useCallback)(function(e){const t=u(c(e,{fixedCacheKey:s}));return p(t),t},[u,c,s]),{requestId:h}=d||{},f=(0,import_react.useMemo)(()=>l({fixedCacheKey:s,requestId:d?.requestId}),[s,d,l]),g=r((0,import_react.useMemo)(()=>i?o([f],i):f,[i,f]),shallowEqual),y=null==s?d?.arg.originalArgs:void 0,v=(0,import_react.useCallback)(()=>{t(()=>{d&&p(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))})},[u,s,d,h]);(0,import_react.useDebugValue)(pick(g,...COMMON_HOOK_DEBUG_FIELDS,"endpointName"));const x=(0,import_react.useMemo)(()=>({...g,originalArgs:y,reset:v}),[g,y,v]);return(0,import_react.useMemo)(()=>[m,x],[m,x])}},usePrefetch:function(t,r){const a=n(),i=useShallowStableValue(r);return(0,import_react.useCallback)((n,r)=>a(e.util.prefetch(t,n,{...i,...r})),[t,a,i])}};function p(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=d[e];n!==skipToken&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const a=void 0!==r,i=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!a&&i,l=e.isSuccess||a&&(i&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:i,isLoading:o,isSuccess:l}}function m(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=d[e];n!==skipToken&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const a=void 0!==r,i=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!a&&i,l=e.isSuccess||a&&(i&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:i,isLoading:o,isSuccess:l}}function h(t,r,{refetchOnReconnect:a,refetchOnFocus:i,refetchOnMountOrArgChange:o,skip:s=!1,pollingInterval:l=0,skipPollingIfUnfocused:u=!1,...p}={}){const{initiate:m}=e.endpoints[t],h=n(),f=(0,import_react.useRef)(void 0);f.current||(f.current=h(e.internalActions.internal_getRTKQSubscriptions()));const g=useStableQueryArgs(s?skipToken:r),y=useShallowStableValue({refetchOnReconnect:a,refetchOnFocus:i,pollingInterval:l,skipPollingIfUnfocused:u}),v=useShallowStableValue(p.initialPageParam),x=useShallowStableValue(p.refetchCachedPages),b=(0,import_react.useRef)(void 0);let{queryCacheKey:S,requestId:C}=b.current||{},_=!1;S&&C&&(_=f.current.isRequestSubscribed(S,C));const w=!_&&void 0!==b.current;return c(()=>{w&&(b.current=void 0)},[w]),c(()=>{const e=b.current;if(g===skipToken)return e?.unsubscribe(),void(b.current=void 0);const n=b.current?.subscriptionOptions;e&&e.arg===g?y!==n&&e.updateSubscriptionOptions(y):(e?.unsubscribe(),b.current=h(m(g,{subscriptionOptions:y,forceRefetch:o,...isInfiniteQueryDefinition(d[t])?{initialPageParam:v,refetchCachedPages:x}:{}})))},[h,m,o,g,y,w,v,x,t]),[b,h,m,y]}function f(t,n){return(i,{skip:s=!1,selectFromResult:l}={})=>{const{select:c}=e.endpoints[t],u=useStableQueryArgs(s?skipToken:i),d=(0,import_react.useRef)(void 0),p=(0,import_react.useMemo)(()=>o([c(u),(e,t)=>t,e=>u],n,{memoizeOptions:{resultEqualityCheck:shallowEqual}}),[c,u]),m=(0,import_react.useMemo)(()=>l?o([p],l,{devModeChecks:{identityFunctionCheck:"never"}}):p,[p,l]),h=r(e=>m(e,d.current),shallowEqual),f=p(a().getState(),d.current);return useIsomorphicLayoutEffect$2(()=>{d.current=f},[f]),h}}function g(e){(0,import_react.useEffect)(()=>()=>{u(e),e.current=void 0},[e])}}var reactHooksModuleName=Symbol(),reactHooksModule=({batch:e=batch,hooks:t={useDispatch:useDispatch,useSelector:useSelector,useStore:useStore},createSelector:n=createSelector,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:reactHooksModuleName,init(a,{serializeQueryArgs:i},o){const s=a,{buildQueryHooks:l,buildInfiniteQueryHooks:c,buildMutationHook:u,usePrefetch:d}=buildHooks({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:o});return safeAssign(s,{usePrefetch:d}),safeAssign(o,{batch:e}),{injectEndpoint(e,t){if(isQueryDefinition(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:o}=l(e);safeAssign(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:o}),a[`use${capitalize(e)}Query`]=t,a[`useLazy${capitalize(e)}Query`]=n}if(isMutationDefinition(t)){const t=u(e);safeAssign(s.endpoints[e],{useMutation:t}),a[`use${capitalize(e)}Mutation`]=t}else if(isInfiniteQueryDefinition(t)){const{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}=c(e);safeAssign(s.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}),a[`use${capitalize(e)}InfiniteQuery`]=t}}}}}),createApi=buildCreateApi(coreModule(),reactHooksModule()),logOut=createAction("auth/logout"),getPropertyStartWith=(e={},t)=>{let n="";return Object.keys(e).forEach(e=>{e.includes(t)&&(n=e)}),n},baseQueryRequest=async({state:e,baseQuery:t,args:n,api:r,extraOptions:a,isUseCredentials:i=!0,prepareHeaders:o})=>{const s=getPropertyStartWith(e.publicApi?.queries,"getDomainSettings");let l;return l=s&&e.publicApi?.queries?.[s]?.data||e.domain?.settings?.domain_settings?.api?await fetchBaseQuery({baseUrl:`https://${(e.publicApi?.queries?.[s]?.data||e.domain.settings).domain_settings.api}`,...i?{credentials:"include"}:{},...o?{prepareHeaders:o}:{}})(n,r,a):await t(n,r,a),l};function e$1(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function n$1(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var r$2={exclude:[],include:[],logging:!0},o$3={},a$1={timeout:"true"},i$2=function(e,t){"undefined"!=typeof window&&(o$3[e]=t)},u=function(){return Object.fromEntries(Object.entries(o$3).filter(function(e){var t,n=e[0];return!(null===(t=null==r$2?void 0:r$2.exclude)||void 0===t?void 0:t.includes(n))}).filter(function(e){var t,n,r,a,i=e[0];return(null===(t=null==r$2?void 0:r$2.include)||void 0===t?void 0:t.some(function(e){return e.includes(".")}))?null===(n=null==r$2?void 0:r$2.include)||void 0===n?void 0:n.some(function(e){return e.startsWith(i)}):0===(null===(r=null==r$2?void 0:r$2.include)||void 0===r?void 0:r.length)||(null===(a=null==r$2?void 0:r$2.include)||void 0===a?void 0:a.includes(i))}).map(function(e){return[e[0],(0,e[1])()]}))};function c$1(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var s$2=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l$1(e,t){return e<<t|e>>>32-t}function d(e,t){var n;if(void 0===t&&(t=0),t=t?0|t:0,"string"==typeof e&&(n=e,e=(new TextEncoder).encode(n).buffer),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var r=new Uint32Array([t,t,t,t]);(function(e,t){for(var n=e.byteLength/16|0,r=new Uint32Array(e,0,4*n),a=0;a<n;a++){var i=r.subarray(4*a,4*(a+1));i[0]=Math.imul(i[0],s$2[0]),i[0]=l$1(i[0],15),i[0]=Math.imul(i[0],s$2[1]),t[0]=t[0]^i[0],t[0]=l$1(t[0],19),t[0]=t[0]+t[1],t[0]=Math.imul(t[0],5)+1444728091,i[1]=Math.imul(i[1],s$2[1]),i[1]=l$1(i[1],16),i[1]=Math.imul(i[1],s$2[2]),t[1]=t[1]^i[1],t[1]=l$1(t[1],17),t[1]=t[1]+t[2],t[1]=Math.imul(t[1],5)+197830471,i[2]=Math.imul(i[2],s$2[2]),i[2]=l$1(i[2],17),i[2]=Math.imul(i[2],s$2[3]),t[2]=t[2]^i[2],t[2]=l$1(t[2],15),t[2]=t[2]+t[3],t[2]=Math.imul(t[2],5)+2530024501,i[3]=Math.imul(i[3],s$2[3]),i[3]=l$1(i[3],18),i[3]=Math.imul(i[3],s$2[0]),t[3]=t[3]^i[3],t[3]=l$1(t[3],13),t[3]=t[3]+t[0],t[3]=Math.imul(t[3],5)+850148119}})(e,r),function(e,t){var n=e.byteLength/16|0,r=e.byteLength%16,a=new Uint32Array(4),i=new Uint8Array(e,16*n,r);switch(r){case 15:a[3]=a[3]^i[14]<<16;case 14:a[3]=a[3]^i[13]<<8;case 13:a[3]=a[3]^(i[12]|0),a[3]=Math.imul(a[3],s$2[3]),a[3]=l$1(a[3],18),a[3]=Math.imul(a[3],s$2[0]),t[3]=t[3]^a[3];case 12:a[2]=a[2]^i[11]<<24;case 11:a[2]=a[2]^i[10]<<16;case 10:a[2]=a[2]^i[9]<<8;case 9:a[2]=a[2]^(i[8]|0),a[2]=Math.imul(a[2],s$2[2]),a[2]=l$1(a[2],17),a[2]=Math.imul(a[2],s$2[3]),t[2]=t[2]^a[2];case 8:a[1]=a[1]^i[7]<<24;case 7:a[1]=a[1]^i[6]<<16;case 6:a[1]=a[1]^i[5]<<8;case 5:a[1]=a[1]^(i[4]|0),a[1]=Math.imul(a[1],s$2[1]),a[1]=l$1(a[1],16),a[1]=Math.imul(a[1],s$2[2]),t[1]=t[1]^a[1];case 4:a[0]=a[0]^i[3]<<24;case 3:a[0]=a[0]^i[2]<<16;case 2:a[0]=a[0]^i[1]<<8;case 1:a[0]=a[0]^(i[0]|0),a[0]=Math.imul(a[0],s$2[0]),a[0]=l$1(a[0],15),a[0]=Math.imul(a[0],s$2[1]),t[0]=t[0]^a[0]}}(e,r),function(e,t){t[0]=t[0]^e.byteLength,t[1]=t[1]^e.byteLength,t[2]=t[2]^e.byteLength,t[3]=t[3]^e.byteLength,t[0]=t[0]+t[1]|0,t[0]=t[0]+t[2]|0,t[0]=t[0]+t[3]|0,t[1]=t[1]+t[0]|0,t[2]=t[2]+t[0]|0,t[3]=t[3]+t[0]|0,t[0]=c$1(t[0]),t[1]=c$1(t[1]),t[2]=c$1(t[2]),t[3]=c$1(t[3]),t[0]=t[0]+t[1]|0,t[0]=t[0]+t[2]|0,t[0]=t[0]+t[3]|0,t[1]=t[1]+t[0]|0,t[2]=t[2]+t[0]|0,t[3]=t[3]+t[0]|0}(e,r);var a=new Uint8Array(r.buffer);return Array.from(a).map(function(e){return e.toString(16).padStart(2,"0")}).join("")}function f$1(e,t){return new Promise(function(n){setTimeout(function(){return n(t)},e)})}function m(e,t,n){return Promise.all(e.map(function(e){return Promise.race([e,f$1(t,n)])}))}var v$3="0.20.0";function g$1(){return v$3}function p$1(){return e$1(this,void 0,void 0,function(){var e,t,n,r,a;return n$1(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),e=u(),t=Object.keys(e),[4,m(Object.values(e),(null==r$2?void 0:r$2.timeout)||1e3,a$1)];case 1:return n=i.sent(),r=n.filter(function(e){return void 0!==e}),a={},r.forEach(function(e,n){a[t[n]]=e}),[2,w$3(a,r$2.exclude||[],r$2.include||[],"")];case 2:throw i.sent();case 3:return[2]}})})}function w$3(e,t,n,r){void 0===r&&(r="");for(var a={},i=function(e,i){var o=r+e+".";if("object"!=typeof i||Array.isArray(i)){var s=t.some(function(e){return o.startsWith(e)}),l=n.some(function(e){return o.startsWith(e)});s&&!l||(a[e]=i)}else{var c=w$3(i,t,n,o);Object.keys(c).length>0&&(a[e]=c)}},o=0,s=Object.entries(e);o<s.length;o++){var l=s[o];i(l[0],l[1])}return a}function y(e){return e$1(this,void 0,void 0,function(){var t,n;return n$1(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,p$1()];case 1:return t=r.sent(),n=d(JSON.stringify(t)),Math.random()<.001&&r$2.logging&&function(e,t){e$1(this,void 0,void 0,function(){var n,r;return n$1(this,function(a){switch(a.label){case 0:if(n="https://logging.thumbmarkjs.com/v1/log",r={thumbmark:e,components:t,version:g$1()},sessionStorage.getItem("_tmjs_l"))return[3,4];sessionStorage.setItem("_tmjs_l","1"),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})];case 2:case 3:return a.sent(),[3,4];case 4:return[2]}})})}(n,t),e?[2,{hash:n.toString(),data:t}]:[2,n.toString()];case 2:throw r.sent();case 3:return[2]}})})}function S(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,t={edg:"Edge",opr:"Opera",samsung:"SamsungBrowser"},n=0,r=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>samsung).*Version\/(?<version>\d+(?:\.\d+)?)/i];n<r.length;n++){var a=r[n],i=e.match(a);if(i&&i.groups)return{name:t[i.groups.name.toLowerCase()]||i.groups.name,version:i.groups.version}}return{name:"unknown",version:"unknown"}}function M$2(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}var E=S();function P(e,t,n){for(var r=[],a=0;a<e[0].data.length;a++){for(var i=[],o=0;o<e.length;o++)i.push(e[o].data[a]);r.push(A(i))}var s=new Uint8ClampedArray(r);return new ImageData(s,t,n)}function A(e){if(0===e.length)return 0;for(var t={},n=0,r=e;n<r.length;n++)t[i=r[n]]=(t[i]||0)+1;var a=e[0];for(var i in t)t[i]>t[a]&&(a=parseInt(i,10));return a}["SamsungBrowser","Safari"].includes(E.name)||i$2("audio",function(){return e$1(this,void 0,void 0,function(){return n$1(this,function(e){return[2,new Promise(function(e,t){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),r=n.createBufferSource(),a=n.createOscillator();a.frequency.value=1e3;var i,o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.2,a.connect(o),o.connect(n.destination),a.start(),n.oncomplete=function(t){i=t.renderedBuffer.getChannelData(0),e({sampleHash:M$2(i),oscillator:a.type,maxChannels:n.destination.maxChannelCount,channelCountMode:r.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),t(e)}})]})})});var C="SamsungBrowser"!==S().name?1:3,x=280,T=20;"Firefox"!=S().name&&i$2("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(e){e({commonImageDataHash:d(P(Array.from({length:C},function(){return function(){var e=document.createElement("canvas"),t=e.getContext("2d");if(!t)return new ImageData(1,1);e.width=x,e.height=T;var n=t.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),t.fillStyle=n,t.fillRect(0,0,e.width,e.height);var r="Random Text WMwmil10Oo";return t.font="23.123px Arial",t.fillStyle="black",t.fillText(r,-5,15),t.fillStyle="rgba(0, 0, 255, 0.5)",t.fillText(r,-3.3,17.7),t.beginPath(),t.moveTo(0,0),t.lineTo(2*e.width/7,e.height),t.strokeStyle="white",t.lineWidth=2,t.stroke(),t.getImageData(0,0,e.width,e.height)}()}),x,T).data.toString()).toString()})})});var k,I=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R=["monospace","sans-serif","serif"];function _(e,t){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(t),e.measureText("WwMmLli0Oo").width}function O(){var e,t=document.createElement("canvas"),n=null!==(e=t.getContext("webgl"))&&void 0!==e?e:t.getContext("experimental-webgl");if(n&&"getParameter"in n)try{var r=(n.getParameter(n.VENDOR)||"").toString(),a=(n.getParameter(n.RENDERER)||"").toString(),i={vendor:r,renderer:a,version:(n.getParameter(n.VERSION)||"").toString(),shadingLanguageVersion:(n.getParameter(n.SHADING_LANGUAGE_VERSION)||"").toString()};if(!a.length||!r.length){var o=n.getExtension("WEBGL_debug_renderer_info");if(o){var s=(n.getParameter(o.UNMASKED_VENDOR_WEBGL)||"").toString(),l=(n.getParameter(o.UNMASKED_RENDERER_WEBGL)||"").toString();s&&(i.vendorUnmasked=s),l&&(i.rendererUnmasked=l)}}return i}catch(e){}return"undefined"}function L(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function B(e,t){var n={};return t.forEach(function(t){var r=function(e){if(0===e.length)return null;var t={};e.forEach(function(e){var n=String(e);t[n]=(t[n]||0)+1});var n=e[0],r=1;return Object.keys(t).forEach(function(e){t[e]>r&&(n=e,r=t[e])}),n}(e.map(function(e){return t in e?e[t]:void 0}).filter(function(e){return void 0!==e}));r&&(n[t]=r)}),n}function D(){var e=[],t={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(t).forEach(function(n){t[n].forEach(function(t){matchMedia("(".concat(n,": ").concat(t,")")).matches&&e.push("".concat(n,": ").concat(t))})}),e}function U(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)try{for(var e=window.ApplePaySession.supportsVersion,t=15;t>0;t--)if(e(t))return t}catch(e){return 0}return 0}"Firefox"!=S().name&&i$2("fonts",function(){var t=this;return new Promise(function(n,r){try{!function(e){var t;e$1(this,void 0,void 0,function(){var n,r,a;return n$1(this,function(i){switch(i.label){case 0:return document.body?[3,2]:[4,new Promise(function(e){return setTimeout(e,50,void 0)})];case 1:return i.sent(),[3,0];case 2:if((n=document.createElement("iframe")).setAttribute("frameBorder","0"),(r=n.style).setProperty("position","fixed"),r.setProperty("display","block","important"),r.setProperty("visibility","visible"),r.setProperty("border","0"),r.setProperty("opacity","0"),n.src="about:blank",document.body.appendChild(n),!(a=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout(function(){document.body.removeChild(n)},0),[2]}})})}(function(e){var r=e.iframe;return e$1(t,void 0,void 0,function(){var e,t,a,i;return n$1(this,function(o){return e=r.createElement("canvas"),t=e.getContext("2d"),a=R.map(function(e){return _(t,e)}),i={},I.forEach(function(e){var n=_(t,e);a.includes(n)||(i[e]=n)}),n(i),[2]})})})}catch(e){r({error:"unsupported"})}})}),i$2("hardware",function(){return new Promise(function(e,t){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,r=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:O(),architecture:L(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:r.jsHeapSizeLimit||0})})}),i$2("locales",function(){return new Promise(function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),i$2("permissions",function(){return e$1(this,void 0,void 0,function(){var e;return n$1(this,function(t){return k=(null==r$2?void 0:r$2.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],e=Array.from({length:(null==r$2?void 0:r$2.retries)||3},function(){return function(){return e$1(this,void 0,void 0,function(){var e,t,n,r,a;return n$1(this,function(i){switch(i.label){case 0:e={},t=0,n=k,i.label=1;case 1:if(!(t<n.length))return[3,6];r=n[t],i.label=2;case 2:return i.trys.push([2,4,,5]),[4,navigator.permissions.query({name:r})];case 3:return a=i.sent(),e[r]=a.state.toString(),[3,5];case 4:return i.sent(),[3,5];case 5:return t++,[3,1];case 6:return[2,e]}})})}()}),[2,Promise.all(e).then(function(e){return B(e,k)})]})})}),i$2("plugins",function(){var e=[];if(navigator.plugins)for(var t=0;t<navigator.plugins.length;t++){var n=navigator.plugins[t];e.push([n.name,n.filename,n.description].join("|"))}return new Promise(function(t){t({plugins:e})})}),i$2("screen",function(){return new Promise(function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})})}),i$2("system",function(){return new Promise(function(e){var t=S();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:t.name,version:t.version},applePayVersion:U()})})});var F,N="SamsungBrowser"!==S().name?1:3,j=null;i$2("webgl",function(){return e$1(this,void 0,void 0,function(){var e;return n$1(this,function(t){"undefined"!=typeof document&&((F=document.createElement("canvas")).width=200,F.height=100,j=F.getContext("webgl"));try{if(!j)throw new Error("WebGL not supported");return e=Array.from({length:N},function(){return function(){try{if(!j)throw new Error("WebGL not supported");var t=j.createShader(j.VERTEX_SHADER),n=j.createShader(j.FRAGMENT_SHADER);if(!t||!n)throw new Error("Failed to create shaders");if(j.shaderSource(t,"\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n "),j.shaderSource(n,"\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n "),j.compileShader(t),!j.getShaderParameter(t,j.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+j.getShaderInfoLog(t));if(j.compileShader(n),!j.getShaderParameter(n,j.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+j.getShaderInfoLog(n));var r=j.createProgram();if(!r)throw new Error("Failed to create shader program");if(j.attachShader(r,t),j.attachShader(r,n),j.linkProgram(r),!j.getProgramParameter(r,j.LINK_STATUS))throw new Error("Shader program linking failed: "+j.getProgramInfoLog(r));j.useProgram(r);for(var a=137,i=new Float32Array(548),o=2*Math.PI/a,s=0;s<a;s++){var l=s*o;i[4*s]=0,i[4*s+1]=0,i[4*s+2]=Math.cos(l)*(F.width/2),i[4*s+3]=Math.sin(l)*(F.height/2)}var c=j.createBuffer();j.bindBuffer(j.ARRAY_BUFFER,c),j.bufferData(j.ARRAY_BUFFER,i,j.STATIC_DRAW);var u=j.getAttribLocation(r,"position");j.enableVertexAttribArray(u),j.vertexAttribPointer(u,2,j.FLOAT,!1,0,0),j.viewport(0,0,F.width,F.height),j.clearColor(0,0,0,1),j.clear(j.COLOR_BUFFER_BIT),j.drawArrays(j.LINES,0,274);var d=new Uint8ClampedArray(F.width*F.height*4);return j.readPixels(0,0,F.width,F.height,j.RGBA,j.UNSIGNED_BYTE,d),new ImageData(d,F.width,F.height)}catch(e){return new ImageData(1,1)}finally{j&&(j.bindBuffer(j.ARRAY_BUFFER,null),j.useProgram(null),j.viewport(0,0,j.drawingBufferWidth,j.drawingBufferHeight),j.clearColor(0,0,0,0))}}()}),[2,{commonImageHash:d(P(e,F.width,F.height).data.toString()).toString()}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]})})});var G=function(e,t,n,r){for(var a=(n-t)/r,i=0,o=0;o<r;o++)i+=e(t+(o+.5)*a);return i*a};i$2("math",function(){return e$1(void 0,void 0,void 0,function(){return n$1(this,function(e){return[2,{acos:Math.acos(.5),asin:G(Math.asin,-1,1,97),atan:G(Math.atan,-1,1,97),cos:G(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:G(Math.sin,-Math.PI,Math.PI,97),sinh:G(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:G(Math.tan,0,2*Math.PI,97),tanh:G(Math.tanh,-9/7,7/9,97)}]})})});var byteToHex=[];for(let Fe=0;Fe<256;++Fe)byteToHex.push((Fe+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase()}var rnds8=new Uint8Array(16);function rng(){return crypto.getRandomValues(rnds8)}function v4(e,t,n){return t||e||!crypto.randomUUID?_v4(e,t,n):crypto.randomUUID()}function _v4(e,t,n){const r=(e=e||{}).random??e.rng?.()??rng();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return unsafeStringify(r)}var getFingerPrintPromise=async()=>y(),fingerPrintPromise=getFingerPrintPromise(),sessionIdString=v4(),setSessionHeaders=async e=>{e.set("X-Client-Id",await fingerPrintPromise),e.set("X-Session-Id",sessionIdString)},setWidgetSessionHeaders=async e=>{await setSessionHeaders(e);const t=getEnvVar("REACT_APP_WIDGET_VERSION");t&&e.set("X-Widget-Version",t)},prepareHeaders$2=async(e,t)=>{const n=t.getState();await setSessionHeaders(e),n.dashboard.session.dashboardVariantId===DashboardVariantEnum.KYC&&n.dashboard.session.isSandbox&&e.set("ds-sandbox","true")},baseQuery$1=fetchBaseQuery({baseUrl:getEnvVar("REACT_APP_API_BASE_URL"),credentials:"include",prepareHeaders:prepareHeaders$2}),baseQueryWithInterceptor$1=async(e,t,n)=>{const r=t.getState(),a=await baseQueryRequest({state:r,baseQuery:baseQuery$1,args:e,api:t,extraOptions:n,prepareHeaders:prepareHeaders$2});return a.error&&await apiLogger(r,a),a.error&&401===a.error.status&&r.auth?.user?.info?.account?.account_id&&t.dispatch(logOut()),a},dashboardApi=createApi({reducerPath:"dashboardApi",baseQuery:baseQueryWithInterceptor$1,tagTypes:[ApiTagEnum.ORGANIZATIONS,ApiTagEnum.INVITATIONS,ApiTagEnum.DEVELOPER_SETTINGS,ApiTagEnum.ORGANIZATION_INFO,ApiTagEnum.VERIFICATION,ApiTagEnum.APPLICANTS,ApiTagEnum.APPLICANT_ALERTS,ApiTagEnum.FILE_UPLOADS,ApiTagEnum.PEPS,ApiTagEnum.CONTACT_US,ApiTagEnum.LIST_TEAM,ApiTagEnum.CURRENT_ORGANIZATION,ApiTagEnum.CURRENT_BILLING_ORGANIZATION,ApiTagEnum.PEP,ApiTagEnum.UPDATE_PROFILE,ApiTagEnum.APPLICANT,ApiTagEnum.REAL_TIME_BALANCE,ApiTagEnum.VERIFICATION_FLOW,ApiTagEnum.DEEPFAKE_JOBS,ApiTagEnum.KYT_CHECKS],endpoints:()=>({})}),URL_PREFIX$5="webapi/account/",dashboardAccountApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getUserInfo:e.query({query:()=>`${URL_PREFIX$5}info`,transformResponse:e=>transformUserInfo(e)}),setupTwoFA:e.mutation({query:()=>({url:`${URL_PREFIX$5}settings/2fa/totp/setup`,method:"POST"})}),disableTwoFA:e.mutation({query:e=>({url:`${URL_PREFIX$5}settings/2fa/totp/disable`,method:"POST",body:e})}),confirmTwoFASetup:e.mutation({query:e=>({url:`${URL_PREFIX$5}settings/2fa/confirm`,method:"POST",body:e})}),completeTwoFALogin:e.mutation({query:e=>({url:`${URL_PREFIX$5}login/2fa`,method:"POST",body:e})}),emailSendTwoFa:e.mutation({query:e=>({url:`${URL_PREFIX$5}2fa/email/send`,method:"POST",body:e,responseHandler:async e=>{try{const t=await e.text();return JSON.parse(t)}catch{return{}}}})}),uploadUserPhoto:e.mutation({query:e=>{const t=new FormData;return t.append("file",e),{method:"PUT",url:`${URL_PREFIX$5}settings/logo`,formData:!0,body:t}}}),deleteUserPhoto:e.mutation({query:()=>({method:"DELETE",url:`${URL_PREFIX$5}settings/logo`})}),changeUserFullName:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}settings/change-name`,body:e})}),changeUserPassword:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}reset`,body:e})}),registerAccount:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}register`,body:e})}),login:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}login`,body:e})}),googleLogin:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}google/oauth`,body:e})}),resetPasswordRequest:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}reset/request`,body:e})}),changePasswordByToken:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}reset`,body:e})}),logout:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}logout`,body:e})})})}),{useLazyGetUserInfoQuery:useLazyGetUserInfoQuery,useSetupTwoFAMutation:useSetupTwoFAMutation,useDisableTwoFAMutation:useDisableTwoFAMutation,useConfirmTwoFASetupMutation:useConfirmTwoFASetupMutation,useCompleteTwoFALoginMutation:useCompleteTwoFALoginMutation,useUploadUserPhotoMutation:useUploadUserPhotoMutation,useDeleteUserPhotoMutation:useDeleteUserPhotoMutation,useChangeUserFullNameMutation:useChangeUserFullNameMutation,useChangeUserPasswordMutation:useChangeUserPasswordMutation,useRegisterAccountMutation:useRegisterAccountMutation,useResetPasswordRequestMutation:useResetPasswordRequestMutation,useChangePasswordByTokenMutation:useChangePasswordByTokenMutation,useLoginMutation:useLoginMutation,useGoogleLoginMutation:useGoogleLoginMutation,useLogoutMutation:useLogoutMutation,useEmailSendTwoFaMutation:useEmailSendTwoFaMutation}=dashboardAccountApiSlice,URL_PREFIX$4="webapi/v1",URL_PREFIX_NEW$2="webapi/operations",operationApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getOperationsList:e.query({query:({params:{organizationId:e,page:t,limit:n=20,from:r,to:a,checkType:i,email:o,env:s}})=>({url:`${URL_PREFIX_NEW$2}/${e}/list`,params:{page:t,limit:n,...r&&a&&{from:r,to:a},checkType:i,email:o,...s&&{env:s}}})}),getOperationsListTotals:e.query({query:({params:{organizationId:e,from:t,to:n,checkType:r,email:a,env:i}})=>({url:`${URL_PREFIX_NEW$2}/${e}/totals`,params:{...t&&n&&{from:t,to:n},checkType:r,email:a,...i&&{env:i}}})}),getBalance:e.query({query:e=>({url:`${URL_PREFIX_NEW$2}/${e}/balance`}),providesTags:[ApiTagEnum.CURRENT_BILLING_ORGANIZATION]}),getRealTimeBalance:e.query({query:e=>({url:`${URL_PREFIX_NEW$2}/${e}/balance`}),providesTags:[ApiTagEnum.REAL_TIME_BALANCE]}),getInitialBalance:e.query({query:e=>({url:`${URL_PREFIX_NEW$2}/${e}/balance`})}),getOperationsHistoryLastMonth:e.query({query:e=>`${URL_PREFIX$4}/operations/${e}/history`}),getDocVerInfoLastMonth:e.query({query:({organizationId:e})=>`webapi/organization/${e}/docver-info`,transformResponse:e=>{const t=Array.isArray(e?.data)?e.data:[],n=t?.reduce((e,t)=>e+t.count,0),r={[DocsVerificationStatusEnum.INITIAL]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.FAILED]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.VERIFIED]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.IN_PROGRESS]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.EXPIRED]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.CANCELED]:{count:0,percentage:"0%"}};for(const a of t)r[a.status]={count:a.count,percentage:getSharePercentage(n,a.count)};return{totalCount:n,...r}}})})}),{useLazyGetOperationsListQuery:useLazyGetOperationsListQuery,useGetBalanceQuery:useGetBalanceQuery,useLazyGetRealTimeBalanceQuery:useLazyGetRealTimeBalanceQuery,useLazyGetInitialBalanceQuery:useLazyGetInitialBalanceQuery,useLazyGetOperationsListTotalsQuery:useLazyGetOperationsListTotalsQuery,useGetOperationsListTotalsQuery:useGetOperationsListTotalsQuery,useLazyGetOperationsHistoryLastMonthQuery:useLazyGetOperationsHistoryLastMonthQuery,useLazyGetDocVerInfoLastMonthQuery:useLazyGetDocVerInfoLastMonthQuery}=operationApiSlice,URL_PREFIX$3="webapi/organization/",URL_PREFIX_NEW$1="webapi/v4/organization/",organizationsApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getInitialOrganizationList:e.query({query:()=>`${URL_PREFIX$3}list?page=0&limit=10`,transformResponse:e=>e?.data?.map(e=>transformOrganization(e)).filter(e=>e.account_status?.toUpperCase()===AccountStatus.ACTIVE)}),getInitialOrganizationInfo:e.query({query:e=>`${URL_PREFIX$3}${e}/info`,transformResponse:e=>transformOrganization(e)}),getOrganizationInfo:e.query({query:e=>`${URL_PREFIX$3}${e}/info`,transformResponse:e=>transformOrganization(e),providesTags:[ApiTagEnum.CURRENT_ORGANIZATION]}),getProductSettings:e.query({query:e=>`${URL_PREFIX_NEW$1}${e}/product-settings`,transformResponse:e=>Object.values(e)}),getInvitesList:e.query({query:()=>`${URL_PREFIX$3}list-invites?page=0&limit=5`,transformResponse:e=>e?.data?.filter(e=>!!e.invite_token),providesTags:[ApiTagEnum.INVITATIONS]}),getListTeam:e.query({query:({organizationId:e,page:t,limit:n=10})=>`${URL_PREFIX$3}${e}/team?page=${t}&limit=${n}`,transformResponse:e=>{const t=e.data?.map(e=>transformOrganization(e));return{...e,data:t}},providesTags:[ApiTagEnum.LIST_TEAM]}),getAccountEmails:e.query({query:({organizationId:e})=>`${URL_PREFIX$3}${e}/account-emails`}),acceptInvitation:e.mutation({query:({params:e,body:t})=>({method:"POST",url:`${URL_PREFIX$3}${e.organizationId}/invite/accept`,body:t}),invalidatesTags:[ApiTagEnum.INVITATIONS]}),declineInvitation:e.mutation({query:({params:e,body:t})=>({method:"POST",url:`${URL_PREFIX$3}${e.organizationId}/invite/decline`,body:t}),invalidatesTags:[ApiTagEnum.INVITATIONS]}),inviteTeamMember:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/invite`,body:e})}),updateTeamMemberRole:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/promote`,body:e})}),removeTeamMemberFromOrganization:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/remove`,body:e}),invalidatesTags:[ApiTagEnum.LIST_TEAM]}),leaveFromOrganization:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$3}${e}/leave`}),invalidatesTags:[ApiTagEnum.LIST_TEAM]}),createOrganization:e.mutation({query:({body:e})=>({method:"POST",url:`${URL_PREFIX$3}create`,body:e}),invalidatesTags:[ApiTagEnum.ORGANIZATIONS]}),updateOrganization:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/update`,body:e}),invalidatesTags:[ApiTagEnum.ORGANIZATIONS,ApiTagEnum.CURRENT_ORGANIZATION]}),setManageDocverProduct:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/product/docver`,body:e}),invalidatesTags:[ApiTagEnum.CURRENT_ORGANIZATION]}),onboardingQuestionnaire:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/questionnaire`,body:e})})})}),{useLazyGetInitialOrganizationListQuery:useLazyGetInitialOrganizationListQuery,useGetInvitesListQuery:useGetInvitesListQuery,useLazyGetInitialOrganizationInfoQuery:useLazyGetInitialOrganizationInfoQuery,useGetProductSettingsQuery:useGetProductSettingsQuery,useLazyGetOrganizationInfoQuery:useLazyGetOrganizationInfoQuery,useLazyGetListTeamQuery:useLazyGetListTeamQuery,useLazyGetAccountEmailsQuery:useLazyGetAccountEmailsQuery,useInviteTeamMemberMutation:useInviteTeamMemberMutation,useUpdateTeamMemberRoleMutation:useUpdateTeamMemberRoleMutation,useRemoveTeamMemberFromOrganizationMutation:useRemoveTeamMemberFromOrganizationMutation,useLeaveFromOrganizationMutation:useLeaveFromOrganizationMutation,useCreateOrganizationMutation:useCreateOrganizationMutation,useUpdateOrganizationMutation:useUpdateOrganizationMutation,useAcceptInvitationMutation:useAcceptInvitationMutation,useDeclineInvitationMutation:useDeclineInvitationMutation,useOnboardingQuestionnaireMutation:useOnboardingQuestionnaireMutation}=organizationsApiSlice,URL_PREFIX$2="webapi/v3/payments",paymentApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getPaymentList:e.query({query:({params:{organizationId:e,page:t,limit:n=20,created_from:r,created_to:a,paymentMethod:i,status:o}})=>({url:`${URL_PREFIX$2}/${e}/history-filters`,params:{page:t,limit:n,...r&&a&&{created_from:r,created_to:a},paymentMethod:i,status:o}})}),getPaymentBonuses:e.query({query:e=>({url:`${URL_PREFIX$2}/${e}/bonuses`})}),getPaymentGateways:e.query({query:e=>({url:`${URL_PREFIX$2}/${e}/methods`}),transformResponse:e=>e?.methods}),createPaymentRevolut:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$2}/${t.organizationId}/checkout/revolut`,body:e})}),createPaymentStripe:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$2}/${t.organizationId}/checkout/stripe`,body:e})}),createPaymentKassvia:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$2}/${t.organizationId}/checkout/kassvia`,body:e})}),getPaymentKassviaInfo:e.query({query:({organizationId:e,paymentId:t})=>`${URL_PREFIX$2}/${e}/kassvia/${t}`})})}),{useLazyGetPaymentListQuery:useLazyGetPaymentListQuery,useGetPaymentListQuery:useGetPaymentListQuery,useGetPaymentGatewaysQuery:useGetPaymentGatewaysQuery,useGetPaymentBonusesQuery:useGetPaymentBonusesQuery,useCreatePaymentRevolutMutation:useCreatePaymentRevolutMutation,useCreatePaymentKassviaMutation:useCreatePaymentKassviaMutation,useCreatePaymentStripeMutation:useCreatePaymentStripeMutation,useLazyGetPaymentKassviaInfoQuery:useLazyGetPaymentKassviaInfoQuery}=paymentApiSlice,INIT_DEPOSIT=1e3,initialState$3={organizationId:"",userId:"",requestedOrganizationId:localStorage.getItem("dashboard-organizationId")||"",organizationsUpdateDate:(new Date).getTime().toString(),token:"",balanceStatus:void 0,balance:0,revolutPayment:{amount:void 0,id:void 0,expires_at:void 0,items:void 0},kassviaPayment:{},organizationInfo:void 0,organizationsList:[],organizationsOwnedCount:0,hasOperations:void 0,hasDeposits:void 0,billingContractDueDate:void 0,isSandbox:"true"===localStorage.getItem("dashboard-is-sandbox"),errorGlobalText:"",questionnaireData:void 0,dashboardVariantId:(()=>{const e=localStorage.getItem("dashboard-variantId");return e&&Object.values(DashboardVariantEnum).includes(e)?e:DashboardVariantEnum.KYC})(),requestedDashboardVariantId:void 0},sessionSlice=createSlice({name:"dashboardSessionSlice",initialState:initialState$3,reducers:{clearSession:e=>(localStorage.clear(),localStorage.setItem("dashboard-organizationId",e.organizationId),localStorage.setItem("dashboard-variantId",e.dashboardVariantId),{...initialState$3,requestedOrganizationId:e.organizationId,dashboardVariantId:e.dashboardVariantId}),setOrganizationInfo:(e,{payload:t})=>{e.organizationInfo=t,"ccd"===t.flavor?(localStorage.setItem("dashboard-variantId",DashboardVariantEnum.CCD),e.dashboardVariantId=DashboardVariantEnum.CCD,e.requestedDashboardVariantId=void 0):"blt"===t.flavor?(localStorage.setItem("dashboard-variantId",DashboardVariantEnum.BLT),e.dashboardVariantId=DashboardVariantEnum.BLT,e.requestedDashboardVariantId=void 0):e.dashboardVariantId!==DashboardVariantEnum.CCD&&e.dashboardVariantId!==DashboardVariantEnum.BLT||(localStorage.setItem("dashboard-variantId",DashboardVariantEnum.KYC),e.dashboardVariantId=DashboardVariantEnum.KYC,e.requestedDashboardVariantId=void 0)},setRequestedOrganizationId:(e,{payload:t})=>{e.requestedOrganizationId=t},setOrganizationId:(e,{payload:t})=>{localStorage.setItem("dashboard-organizationId",t),e.organizationId=t},setOrganizationsList:(e,t)=>{e.organizationsList=t.payload;let n=0;if(Array.isArray(e.organizationsList)&&e.organizationsList.length)for(const r of e.organizationsList)r.organization_role===OrganizationRoleEnum.OWNER&&(n+=1);e.organizationsOwnedCount=n},setIsSandbox:(e,{payload:t})=>{e.isSandbox=t,localStorage.setItem("dashboard-is-sandbox",t.toString())},setRevolutPaymentAmount:(e,{payload:t})=>{e.revolutPayment.amount=t},setKassviaPaymentAmount:(e,{payload:t})=>{e.kassviaPayment.amount=t},clearKassviaPayment:e=>{e.kassviaPayment={}},clearRevolutPayment:e=>{e.revolutPayment={amount:void 0,id:void 0,expires_at:void 0,items:void 0}},setErrorGlobalText:(e,{payload:t})=>{e.errorGlobalText=t},setQuestionnaireData:(e,{payload:t})=>{e.questionnaireData=t},setRequestedDashboardVariantId:(e,{payload:t})=>{e.requestedDashboardVariantId=t},setDashboardVariantId:(e,{payload:t})=>{localStorage.setItem("dashboard-variantId",t),e.dashboardVariantId=t}},extraReducers:e=>{e.addMatcher(organizationsApiSlice.endpoints.getInitialOrganizationInfo.matchFulfilled,(e,t)=>{t.payload&&(sessionSlice.caseReducers.setOrganizationId(e,{...t,payload:t.payload.organization_id}),sessionSlice.caseReducers.setOrganizationInfo(e,t))}),e.addMatcher(isAnyOf(organizationsApiSlice.endpoints.createOrganization.matchFulfilled,organizationsApiSlice.endpoints.updateOrganization.matchFulfilled,organizationsApiSlice.endpoints.acceptInvitation.matchFulfilled,organizationsApiSlice.endpoints.leaveFromOrganization.matchFulfilled),e=>{e.organizationsUpdateDate=(new Date).getTime().toString()}),e.addMatcher(isAnyOf(dashboardAccountApiSlice.endpoints.getUserInfo.matchFulfilled,dashboardAccountApiSlice.endpoints.googleLogin.matchFulfilled,dashboardAccountApiSlice.endpoints.login.matchFulfilled,dashboardAccountApiSlice.endpoints.completeTwoFALogin.matchFulfilled),(e,t)=>{if(!t.payload)return;const n=t.payload;e.userId&&n?.account?.account_id!==e.userId&&(e.organizationsUpdateDate=(new Date).getTime().toString()),n?.account?.account_id&&(e.userId=n.account.account_id)}),e.addMatcher(isAnyOf(operationApiSlice.endpoints.getInitialBalance.matchFulfilled,operationApiSlice.endpoints.getBalance.matchFulfilled),(e,t)=>{if(!t.payload)return;const n=t.payload;e.hasOperations=n.created_at!==n.updated_at,e.hasDeposits=e.hasOperations||n.balance>1e3,e.balanceStatus=n.status,e.organizationCreatedDate=n.created_at}),e.addMatcher(operationApiSlice.endpoints.getRealTimeBalance.matchFulfilled,(e,t)=>{e.balance=t?.payload?.balance||0}),e.addMatcher(paymentApiSlice.endpoints.createPaymentRevolut.matchFulfilled,(e,t)=>{null!=t.payload&&(e.revolutPayment.id=t.payload.id,e.revolutPayment.expires_at=t.payload.expires_at,e.revolutPayment.items=t.payload.items)}),e.addMatcher(paymentApiSlice.endpoints.createPaymentKassvia.matchFulfilled,(e,t)=>{null!=t.payload&&(e.kassviaPayment.data=t.payload)})}}),initTheme;try{const e=localStorage.getItem("ds-theme");e&&(initTheme=JSON.parse(e))}catch(e){console.warn("Error during parse ds-theme",e)}var initialState$2={currentThemeMode:ThemeModeEnum.LIGHT,currentTheme:initTheme||lightTheme$1},themeSlice=createSlice({name:"theme",initialState:initialState$2,reducers:{setIsLandscape(e,t){e.currentTheme.isLandscape=t.payload},setTheme(e,t){e.currentTheme=t.payload,localStorage.setItem("ds-theme",JSON.stringify(t.payload))}}}),initialState$1={items:[]},toastSlice=createSlice({name:"toast",initialState:initialState$1,reducers:{setToasts:(e,{payload:t})=>{e.items=t},addToast:(e,{payload:t})=>{e.items=[...e.items,t]},hideToast:(e,{payload:t})=>{const n=e.items.findIndex(e=>e.id===t);if(n>=0){const t=[...e.items];t.splice(n,1),e.items=t}}}}),prepareHeaders$1=async e=>{await setWidgetSessionHeaders(e)},baseQuery=fetchBaseQuery({prepareHeaders:prepareHeaders$1}),baseQueryWithInterceptor=async(e,t,n)=>{const r=t.getState(),a=await baseQueryRequest({state:r,baseQuery:baseQuery,args:e,api:t,extraOptions:n,isUseCredentials:!1,prepareHeaders:prepareHeaders$1});return a.error&&await apiLogger(r,a),a},sdkApi=createApi({reducerPath:"sdkApi",baseQuery:baseQueryWithInterceptor,endpoints:()=>({})}),sdkApiSlice=sdkApi.injectEndpoints({endpoints:e=>({getVerificationById:e.query({query:({url:e,id:t})=>`${e}/api/v3/sdk/${t}`}),getCustomPartnerVerificationById:e.query({query:({url:e,id:t})=>`${e}/api/v4/concordium/widget/${t}`}),getVerificationByIdStatus:e.query({query:({url:e,id:t})=>`${e}/api/v4/verifications/${t}/status`}),uploadDocumentSDK:e.mutation({query({url:e,id:t,body:n}){const r=new FormData;return Object.keys(n).forEach(e=>{const t=n[e];void 0!==t&&r.append(e,t)}),{url:`${e}/api/v3/upload/sdk/${t}`,method:"POST",body:r,headers:{"Accept-Language":instance.language}}},invalidatesTags:[]}),uploadLivenessDocumentSDK:e.mutation({query({url:e,id:t,body:n}){const r=new FormData;return r.append("metadata",JSON.stringify({frames:n.files.map((e,t)=>{const n=`frame${t+1}`;return r.append(n,e),{frame_id:n,timestamp:new Date(e.lastModified).getTime()}})})),{url:`${e}/api/v4/upload/sdk/${t}/liveness-batch`,method:"POST",body:r,headers:{"Accept-Language":instance.language}}},invalidatesTags:[]}),proceedVerificationSDK:e.mutation({query:({url:e,id:t})=>({url:`${e}/api/v3/sdk/${t}/proceed`,method:"POST",headers:{"Accept-Language":instance.language}}),invalidatesTags:[]}),setCountrySDK:e.mutation({query:({url:e,id:t,country:n})=>({url:`${e}/api/v3/sdk/${t}/set_country`,method:"POST",body:{country:n},headers:{"Accept-Language":instance.language}}),invalidatesTags:[]}),generateZkProof:e.mutation({query:({body:e,url:t})=>({url:`${t}/api/v4/web3/zkproof/generate`,method:"POST",body:e,headers:{"Accept-Language":instance.language}}),invalidatesTags:[]}),setManualFieldsSDK:e.mutation({query:({url:e,id:t,body:n})=>({url:`${e}/api/v3/sdk/${t}/fields`,method:"POST",body:n,headers:{"Accept-Language":instance.language}})}),uploadCustomFileSDK:e.mutation({query:({url:e,id:t,body:n})=>({url:`${e}/api/v3/sdk/${t}/upload`,method:"POST",body:n,headers:{"Accept-Language":instance.language}})}),uploadFingerprintSDK:e.mutation({query:({url:e,...t})=>({url:`${e}/api/v4/device-intelligence/collect`,method:"POST",body:t})})})}),{useUploadDocumentSDKMutation:useUploadDocumentSDKMutation,useProceedVerificationSDKMutation:useProceedVerificationSDKMutation,useLazyGetVerificationByIdQuery:useLazyGetVerificationByIdQuery$1,useLazyGetCustomPartnerVerificationByIdQuery:useLazyGetCustomPartnerVerificationByIdQuery,useSetCountrySDKMutation:useSetCountrySDKMutation,useSetManualFieldsSDKMutation:useSetManualFieldsSDKMutation,useUploadCustomFileSDKMutation:useUploadCustomFileSDKMutation,useUploadFingerprintSDKMutation:useUploadFingerprintSDKMutation,useGenerateZkProofMutation:useGenerateZkProofMutation,useUploadLivenessDocumentSDKMutation:useUploadLivenessDocumentSDKMutation}=sdkApiSlice,rootReducer=combineReducers({theme:themeSlice.reducer,session:sessionSlice.reducer,docsVerification:docsVerificationSlice.reducer,toast:toastSlice.reducer,domain:domainSlice.reducer,[sdkApi.reducerPath]:sdkApi.reducer}),store=configureStore({reducer:rootReducer,middleware:e=>e({serializableCheck:{ignoredPaths:["app.currentTheme.breakpointTo","app.currentTheme.breakpointFrom","app.currentTheme.breakpointBetween","toast.items"]}}).concat(sdkApi.middleware)}),useAppDispatch=useDispatch.withTypes(),useAppSelector=useSelector.withTypes(),useActiveProduct=()=>{const e=useAppSelector(e=>e.dashboard?.session?.dashboardVariantId);return{variantId:e,isKyc:e===DashboardVariantEnum.KYC,isKyt:e===DashboardVariantEnum.KYT,isDeepfake:e===DashboardVariantEnum.DEEPFAKE}},useLoadedApp=()=>{const e=useAppSelector(e=>e.domain.settings.is_admin_panel),t=window.location.pathname.startsWith("/widget"),n=window.location.pathname.startsWith("/policy");return{isAdmin:e,isWidget:t,isApiDocs:window.location.pathname.startsWith(ROUTES.API.DOCS),isPolicy:n}},ContactUsToast=({contactUsUrl:e})=>(0,import_jsx_runtime.jsx)("span",{style:{whiteSpace:"nowrap"},children:(0,import_jsx_runtime.jsx)(Trans,{i18nKey:"common.pleaseContactUs",components:{link1:(0,import_jsx_runtime.jsx)(Link,{to:e,target:"_blank",dashed:!0,style:{fontSize:"inherit"}})}})}),CONTACT_US_ROUTES={[DashboardVariantEnum.KYC]:ROUTES.KYC.CONTACT_US,[DashboardVariantEnum.KYT]:ROUTES.KYT.CONTACT_US,[DashboardVariantEnum.DEEPFAKE]:ROUTES.DEEPFAKE.CONTACT_US,[DashboardVariantEnum.CCD]:ROUTES.KYC.CONTACT_US},useEnrichErrorToast=()=>{const e=useAppSelector(e=>e.domain?.settings?.other_settings?.show_contact_us),t=useAppSelector(e=>!!e.dashboard?.session?.userId),{isAdmin:n}=useLoadedApp(),{variantId:r}=useActiveProduct();return{enrichToast:(0,import_react.useCallback)(a=>{if("error"!==a.variant||!t)return a;let i;if(n)i=ROUTES.ADMIN_PANEL.CONTACT_US;else{if(!e)return a;if(i=CONTACT_US_ROUTES[r],!i)return a}const o=(0,import_jsx_runtime.jsx)(ContactUsToast,{contactUsUrl:i});return{...a,content:a.content?(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[a.content,o]}):o}},[e,t,n,r])}},useToast=()=>{const e=useAppSelector(e=>e.toast.items),t=useAppDispatch(),{enrichToast:n}=useEnrichErrorToast();return{showToast:(0,import_react.useCallback)(e=>{const r=v4(),a=n(e);t(toastSlice.actions.addToast({id:r,...a}))},[t,n]),hideToast:(0,import_react.useCallback)(e=>{t(toastSlice.actions.hideToast(e))},[t]),toasts:e}},Snackbar=gt(Snackbar$1)`
302
+ `,Atom$6=({href:e,to:t,dashed:n,className:r,...a})=>t?(0,import_jsx_runtime.jsx)(LinkStyled,{as:Link$1,className:(0,import_classnames.default)({dashed:n},r),to:t,...a}):e?(0,import_jsx_runtime.jsx)(LinkStyled,{href:e,className:(0,import_classnames.default)({dashed:n},r),...a}):(0,import_jsx_runtime.jsx)(LinkStyled,{className:(0,import_classnames.default)({dashed:n},r),...a}),Link=styled(Atom$6)({}),CDN_LINK="https://cdn.n37z.com",MODAL_WIDTH={DEFAULT:"567px"},AUTH={SIGN_IN:"/sign-in",SIGN_UP:"/sign-up",FORGOT_PASSWORD:"/forgot-password",CHANGE_PASSWORD:"/change-password",SETUP_PASSWORD:"/setup-password",TWO_FA:"/two-fa",VERIFY_EMAIL:"/verify",RESET_EMAIL:"/reset",AUTH_REST:"/auth/reset/",AUTH_ACTIVATED:"/auth/activated",ERROR:"/error"},ADMIN_PANEL={DEFAULT:"/",DEFAULT_EMPTY:"*",ERROR:"/error",ORGANIZATIONS:{ROOT:"/organizations/",CREATE:"/organizations/create/"},ACCOUNTS:{ROOT:"/accounts/"},BILLING:{ROOT:"/billing",TOPUP:"/billing/topup",CRYPTO:"/billing/crypto"},SETTINGS:{ROOT:"/settings",COMPANY_SETTINGS:"/settings/company-settings",USER_SETTINGS:"/settings/user-settings",ADD_ORGANIZATION:"/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/settings/company-settings/edit-organization"},CONTACT_US:"/contact-us"},ONBOARDING="/onboarding",SIGN_UP_COMPANY={ROOT:"/sign-up-company",REGISTRATION:"/sign-up-company/registration",SCHEDULE:"/sign-up-company/schedule"},ROUTES={DEFAULT:"/",DEFAULT_EMPTY:"*",...AUTH,ADMIN_PANEL:{...ADMIN_PANEL},SIGN_UP_COMPANY:SIGN_UP_COMPANY,ONBOARDING:ONBOARDING,CONTACT_US:"/contact-us",KYC:{ROOT:"/kyc/",DEFAULT_EMPTY:"/kyc/*",DASHBOARD:"/kyc/dashboard/",VERIFICATION_LOG:"/kyc/verification-log",ONBOARDING:{ROOT:"/kyc/onboarding",POI:"/kyc/onboarding/poi"},APPLICANTS:{LEGACY:"/applicants/*",ROOT:"/kyc/applicants/",CREATE_APPLICANT:"/kyc/applicants/create-applicant",DETAILS:"/kyc/applicants/details/",REPORT:"/kyc/applicants/report",BULK_UPLOAD:"/kyc/applicants/bulk-upload",DOCVER_REQUEST:"/kyc/applicants/docver-request/"},DOCVER:{LEGACY:"/docs-verification/*",ROOT:"/kyc/docs-verification/",VERIFICATION:"/kyc/docs-verification/verification/",RESULTS:"/kyc/docs-verification/results",RESULT:"/kyc/docs-verification/result/",CREATE:"/kyc/docs-verification/create",PROFILES:"/kyc/docs-verification/verification-profiles",PROFILES_CREATE:"/kyc/docs-verification/verification-profiles/create",PROFILES_EDIT:"/kyc/docs-verification/verification-profiles/edit/"},PROFILES:{ROOT:"/kyc/profiles/",EDIT:"/kyc/profiles/edit/",VERIFICATION:"/kyc/profiles/verification-profiles",VERIFICATION_CREATE:"/kyc/profiles/verification-profiles/create",VERIFICATION_EDIT:"/kyc/profiles/verification-profiles/edit/",RISK:"/kyc/profiles/risk-profiles",RISK_CREATE:"/kyc/profiles/risk-profiles/create/",RISK_EDIT:"/kyc/profiles/risk-profiles/edit/",RISK_VIEW:"/kyc/profiles/risk-profiles/view/"},PEPS:{LEGACY:"/pep-sanctions/*",ROOT:"/kyc/pep-sanctions/",REPORTS:"/kyc/pep-sanctions/reports",REPORTS_RESULT:"/kyc/pep-sanctions/reports/search-results/",HISTORY:"/kyc/pep-sanctions/request-history/",DATA_SOURCES:"/kyc/pep-sanctions/data-sources"},POA_GEN:{ROOT:"/kyc/poa-gen",CREATE:"/kyc/poa-gen/create",HISTORY:"/kyc/poa-gen/history"},BILLING:{ROOT:"/kyc/billing",TOPUP:"/kyc/billing/topup",CRYPTO:"/kyc/billing/crypto"},SETTINGS:{ROOT:"/kyc/settings/",COMPANY_SETTINGS:"/kyc/settings/company-settings",USER_SETTINGS:"/kyc/settings/user-settings",ADD_ORGANIZATION:"/kyc/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/kyc/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/kyc/settings/company-settings/edit-organization"},CONTACT_US:"/kyc/contact-us",API:{ROOT:"/kyc/api/",SETTINGS:"/kyc/api/settings"},VERIFICATION_FLOW:{ROOT:"/verification-flow/",CREATE:"/verification-flow/create",EDIT:"/verification-flow/edit/:id"}},KYB:{ROOT:"/kyb/",DEFAULT_EMPTY:"/kyb/*",ONBOARDING:"/kyb/onboarding",DETAILS:"/kyb/onboarding/details/",CONTACT_US:"/kyb/contact-us"},DEEPFAKE:{ROOT:"/deepfake/",DEFAULT_EMPTY:"/deepfake/*",DASHBOARD:"/deepfake/dashboard",VIDEO:"/deepfake/video",DOCUMENT:"/deepfake/document",AUDIO:"/deepfake/audio",IMAGE:"/deepfake/image",STREAMING:"/deepfake/streaming",DEMO:"/deepfake/demo",BILLING:{ROOT:"/deepfake/billing",TOPUP:"/deepfake/billing/topup",CRYPTO:"/deepfake/billing/crypto"},SETTINGS:{ROOT:"/deepfake/settings/",COMPANY_SETTINGS:"/deepfake/settings/company-settings",USER_SETTINGS:"/deepfake/settings/user-settings",ADD_ORGANIZATION:"/deepfake/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/deepfake/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/deepfake/settings/company-settings/edit-organization"},CONTACT_US:"/deepfake/contact-us",API:{ROOT:"/deepfake/api/",SETTINGS:"/deepfake/api/settings"}},KYT:{ROOT:"/kyt/",DEFAULT_EMPTY:"/kyt/*",WALLET_SCORING:"/kyt/wallet-scoring",ADDRESS_CHECK:"/kyt/wallet-scoring/type/:type/id/:id",BILLING:{ROOT:"/kyt/billing",TOPUP:"/kyt/billing/topup",CRYPTO:"/kyt/billing/crypto"},SETTINGS:{ROOT:"/kyt/settings/",COMPANY_SETTINGS:"/kyt/settings/company-settings",USER_SETTINGS:"/kyt/settings/user-settings",ADD_ORGANIZATION:"/kyt/settings/company-settings/add-organization",INVITE_TEAM_MEMBERS:"/kyt/settings/company-settings/invite-team-members",EDIT_ORGANIZATION:"/kyt/settings/company-settings/edit-organization"},CONTACT_US:"/kyt/contact-us",API:{ROOT:"/kyt/api/",SETTINGS:"/kyt/api/settings"}},API:{DOCS:"/api/docs"}},FORM_MAX_LENGTH={SMALL_TEXT:128,DEFAULT:255,PHONE_NUMBER:14,SSN:9,STATE:2,ZIP:10,MESSAGE:850,TEXT:1024},VERIFICATION_CONSTANTS_TRANSFORM_PHOTOS={POI:[DocsVerificationTypeEnum.POI,DocsVerificationDocumentTypeEnum.PASSPORT,DocsVerificationDocumentTypeEnum.ID_CARD,DocsVerificationDocumentTypeEnum.RESIDENCE_PERMIT,DocsVerificationDocumentTypeEnum.VISA,DocsVerificationDocumentTypeEnum.DRIVER_LICENSE],LIVENESS:[DocsVerificationTypeEnum.LIVENESS,DocsVerificationBiometricTypeEnum.SELFIE,DocsVerificationBiometricTypeEnum.LIVENESS_PHOTO,DocsVerificationBiometricTypeEnum.LIVENESS_PHOTO_EXTRA],POA:[DocsVerificationTypeEnum.POA,DocsVerificationAddressTypeEnum.POA_UTILITY_BILL,DocsVerificationAddressTypeEnum.POA_BANK_STATEMENT,DocsVerificationAddressTypeEnum.POA_RESIDENCE_REGISTRATION],KYB:[DocsVerificationDocumentKybEnum.KYB_OWNERSHIP_DOCUMENT,DocsVerificationDocumentKybEnum.KYB_CERTIFICATE_OF_INCORPORATION],FRONT_DOCUMENT_TYPES:[DocsVerificationPhotosKeysEnum.RESIDENCE_PERMIT_FRONT,DocsVerificationPhotosKeysEnum.ID_CARD_FRONT,DocsVerificationPhotosKeysEnum.DRIVER_LICENSE_FRONT],BACK_DOCUMENT_TYPES:[DocsVerificationPhotosKeysEnum.RESIDENCE_PERMIT_BACK,DocsVerificationPhotosKeysEnum.ID_CARD_BACK,DocsVerificationPhotosKeysEnum.DRIVER_LICENSE_BACK]},DeepfakeJobTypeEnum=function(e){return e.IMAGE="image",e.VIDEO="video",e.AUDIO="audio",e.DOCUMENT_IMAGE="document_image",e}({}),DeepfakeJobTypeUrlMapper={[DeepfakeJobTypeEnum.IMAGE]:"image",[DeepfakeJobTypeEnum.VIDEO]:"video",[DeepfakeJobTypeEnum.AUDIO]:"audio",[DeepfakeJobTypeEnum.DOCUMENT_IMAGE]:"document/image"};function formatProdErrorMessage$1(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var symbol_observable_default=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),randomString=()=>Math.random().toString(36).substring(7).split("").join("."),actionTypes_default={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`};function isPlainObject$3(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function createStore(e,t,n){if("function"!=typeof e)throw new Error(formatProdErrorMessage$1(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage$1(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(formatProdErrorMessage$1(1));return n(createStore)(e,t)}let r=e,a=t,i=new Map,o=i,s=0,l=!1;function c(){o===i&&(o=new Map,i.forEach((e,t)=>{o.set(t,e)}))}function u(){if(l)throw new Error(formatProdErrorMessage$1(3));return a}function d(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage$1(4));if(l)throw new Error(formatProdErrorMessage$1(5));let t=!0;c();const n=s++;return o.set(n,e),function(){if(t){if(l)throw new Error(formatProdErrorMessage$1(6));t=!1,c(),o.delete(n),i=null}}}function p(e){if(!isPlainObject$3(e))throw new Error(formatProdErrorMessage$1(7));if(void 0===e.type)throw new Error(formatProdErrorMessage$1(8));if("string"!=typeof e.type)throw new Error(formatProdErrorMessage$1(17));if(l)throw new Error(formatProdErrorMessage$1(9));try{l=!0,a=r(a,e)}finally{l=!1}return(i=o).forEach(e=>{e()}),e}return p({type:actionTypes_default.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage$1(10));r=e,p({type:actionTypes_default.REPLACE})},[symbol_observable_default]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(formatProdErrorMessage$1(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[symbol_observable_default](){return this}}}}}function assertReducerShape(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:actionTypes_default.INIT}))throw new Error(formatProdErrorMessage$1(12));if(void 0===n(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()}))throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(t){const n=Object.keys(t),r={};for(let e=0;e<n.length;e++){const a=n[e];"function"==typeof t[a]&&(r[a]=t[a])}const a=Object.keys(r);let i;try{assertReducerShape(r)}catch(e){i=e}return function(e={},t){if(i)throw i;let n=!1;const o={};for(let i=0;i<a.length;i++){const s=a[i],l=r[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(formatProdErrorMessage$1(14));o[s]=u,n=n||u!==c}return n=n||a.length!==Object.keys(e).length,n?o:e}}function compose(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function applyMiddleware(...e){return t=>(n,r)=>{const a=t(n,r);let i=()=>{throw new Error(formatProdErrorMessage$1(15))};const o={getState:a.getState,dispatch:(e,...t)=>i(e,...t)};return i=compose(...e.map(e=>e(o)))(a.dispatch),{...a,dispatch:i}}}function isAction(e){return isPlainObject$3(e)&&"type"in e&&"string"==typeof e.type}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var O$1=Object,getPrototypeOf$1=O$1.getPrototypeOf,CONSTRUCTOR="constructor",PROTOTYPE="prototype",CONFIGURABLE="configurable",ENUMERABLE="enumerable",WRITABLE="writable",VALUE="value",isDraft=e=>!!e&&!!e[DRAFT_STATE];function isDraftable(e){return!!e&&(isPlainObject$2(e)||isArray$1(e)||!!e[DRAFTABLE]||!!e[CONSTRUCTOR]?.[DRAFTABLE]||isMap(e)||isSet(e))}var objectCtorString=O$1[PROTOTYPE][CONSTRUCTOR].toString(),cachedCtorStrings=new WeakMap;function isPlainObject$2(e){if(!e||!isObjectish(e))return!1;const t=getPrototypeOf$1(e);if(null===t||t===O$1[PROTOTYPE])return!0;const n=O$1.hasOwnProperty.call(t,CONSTRUCTOR)&&t[CONSTRUCTOR];if(n===Object)return!0;if(!isFunction$5(n))return!1;let r=cachedCtorStrings.get(n);return void 0===r&&(r=Function.toString.call(n),cachedCtorStrings.set(n,r)),r===objectCtorString}function original(e){return isDraft(e)||die(15,e),e[DRAFT_STATE].base_}function each(e,t,n=!0){0===getArchtype(e)?(n?Reflect.ownKeys(e):O$1.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function getArchtype(e){const t=e[DRAFT_STATE];return t?t.type_:isArray$1(e)?1:isMap(e)?2:isSet(e)?3:0}var has=(e,t,n=getArchtype(e))=>2===n?e.has(t):O$1[PROTOTYPE].hasOwnProperty.call(e,t),get$1=(e,t,n=getArchtype(e))=>2===n?e.get(t):e[t],set$1=(e,t,n,r=getArchtype(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n};function is$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var isArray$1=Array.isArray,isMap=e=>e instanceof Map,isSet=e=>e instanceof Set,isObjectish=e=>"object"==typeof e,isFunction$5=e=>"function"==typeof e,isBoolean$4=e=>"boolean"==typeof e;function isArrayIndex(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var getProxyDraft=e=>isObjectish(e)?e?.[DRAFT_STATE]:null,latest=e=>e.copy_||e.base_,getFinalValue=e=>e.modified_?e.copy_:e.base_;function shallowCopy(e,t){if(isMap(e))return new Map(e);if(isSet(e))return new Set(e);if(isArray$1(e))return Array[PROTOTYPE].slice.call(e);const n=isPlainObject$2(e);if(!0===t||"class_only"===t&&!n){const t=O$1.getOwnPropertyDescriptors(e);delete t[DRAFT_STATE];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const a=n[r],i=t[a];!1===i[WRITABLE]&&(i[WRITABLE]=!0,i[CONFIGURABLE]=!0),(i.get||i.set)&&(t[a]={[CONFIGURABLE]:!0,[WRITABLE]:!0,[ENUMERABLE]:i[ENUMERABLE],[VALUE]:e[a]})}return O$1.create(getPrototypeOf$1(e),t)}{const t=getPrototypeOf$1(e);if(null!==t&&n)return{...e};const r=O$1.create(t);return O$1.assign(r,e)}}function freeze(e,t=!1){return isFrozen(e)||isDraft(e)||!isDraftable(e)||(getArchtype(e)>1&&O$1.defineProperties(e,{set:dontMutateMethodOverride,add:dontMutateMethodOverride,clear:dontMutateMethodOverride,delete:dontMutateMethodOverride}),O$1.freeze(e),t&&each(e,(e,t)=>{freeze(t,!0)},!1)),e}function dontMutateFrozenCollections(){die(2)}var dontMutateMethodOverride={[VALUE]:dontMutateFrozenCollections};function isFrozen(e){return null===e||!isObjectish(e)||O$1.isFrozen(e)}var PluginMapSet="MapSet",PluginPatches="Patches",PluginArrayMethods="ArrayMethods",plugins={};function getPlugin(e){const t=plugins[e];return t||die(0,e),t}var isPluginLoaded=e=>!!plugins[e],currentScope;function loadPlugin(e,t){plugins[e]||(plugins[e]=t)}var getCurrentScope=()=>currentScope,createScope=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:isPluginLoaded(PluginMapSet)?getPlugin(PluginMapSet):void 0,arrayMethodsPlugin_:isPluginLoaded(PluginArrayMethods)?getPlugin(PluginArrayMethods):void 0});function usePatchesInScope(e,t){t&&(e.patchPlugin_=getPlugin(PluginPatches),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function revokeScope(e){leaveScope(e),e.drafts_.forEach(revokeDraft),e.drafts_=null}function leaveScope(e){e===currentScope&&(currentScope=e.parent_)}var enterScope=e=>currentScope=createScope(currentScope,e);function revokeDraft(e){const t=e[DRAFT_STATE];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function processResult(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[DRAFT_STATE].modified_&&(revokeScope(t),die(4)),isDraftable(e)&&(e=finalize(t,e));const{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[DRAFT_STATE].base_,e,t)}else e=finalize(t,n);return maybeFreeze(t,e,!0),revokeScope(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NOTHING?e:void 0}function finalize(e,t){if(isFrozen(t))return t;const n=t[DRAFT_STATE];if(!n)return handleValue(t,e.handledSet_,e);if(!isSameScope(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);generatePatchesAndFinalize(n,e)}return n.copy_}function maybeFreeze(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&freeze(t,n)}function markStateFinalized(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var isSameScope=(e,t)=>e.scope_===t,EMPTY_LOCATIONS_RESULT=[];function updateDraftInParent(e,t,n,r){const a=latest(e),i=e.type_;if(void 0!==r&&get$1(a,r,i)===t)return void set$1(a,r,n,i);if(!e.draftLocations_){const t=e.draftLocations_=new Map;each(a,(e,n)=>{if(isDraft(n)){const r=t.get(n)||[];r.push(e),t.set(n,r)}})}const o=e.draftLocations_.get(t)??EMPTY_LOCATIONS_RESULT;for(const s of o)set$1(a,s,n,i)}function registerChildFinalizationCallback(e,t,n){e.callbacks_.push(function(r){const a=t;if(!a||!isSameScope(a,r))return;r.mapSetPlugin_?.fixSetContents(a);const i=getFinalValue(a);updateDraftInParent(e,a.draft_??a,i,n),generatePatchesAndFinalize(a,r)})}function generatePatchesAndFinalize(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const r=n.getPath(e);r&&n.generatePatches_(e,r,t)}markStateFinalized(e)}}function handleCrossReference(e,t,n){const{scope_:r}=e;if(isDraft(n)){const a=n[DRAFT_STATE];isSameScope(a,r)&&a.callbacks_.push(function(){prepareCopy(e),updateDraftInParent(e,n,getFinalValue(a),t)})}else isDraftable(n)&&e.callbacks_.push(function(){const a=latest(e);3===e.type_?a.has(n)&&handleValue(n,r.handledSet_,r):get$1(a,t,e.type_)===n&&r.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&handleValue(get$1(e.copy_,t,e.type_),r.handledSet_,r)})}function handleValue(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||isDraft(e)||t.has(e)||!isDraftable(e)||isFrozen(e)||(t.add(e),each(e,(r,a)=>{if(isDraft(a)){const t=a[DRAFT_STATE];isSameScope(t,n)&&(set$1(e,r,getFinalValue(t),e.type_),markStateFinalized(t))}else isDraftable(a)&&handleValue(a,t,n)})),e}function createProxyProxy(e,t){const n=isArray$1(e),r={type_:n?1:0,scope_:t?t.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,i=objectTraps;n&&(a=[r],i=arrayTraps);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return r.draft_=s,r.revoke_=o,[s,r]}var objectTraps={get(e,t){if(t===DRAFT_STATE)return e;let n=e.scope_.arrayMethodsPlugin_;const r=1===e.type_&&"string"==typeof t;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=latest(e);if(!has(a,t,e.type_))return readPropFromProto(e,a,t);const i=a[t];if(e.finalized_||!isDraftable(i))return i;if(r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&isArrayIndex(t))return i;if(i===peek(e.base_,t)){prepareCopy(e);const n=1===e.type_?+t:t,r=createProxy(e.scope_,i,e,n);return e.copy_[n]=r}return i},has:(e,t)=>t in latest(e),ownKeys:e=>Reflect.ownKeys(latest(e)),set(e,t,n){const r=getDescriptorFromProto(latest(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=peek(latest(e),t),a=r?.[DRAFT_STATE];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(is$1(n,r)&&(void 0!==n||has(e.base_,t,e.type_)))return!0;prepareCopy(e),markChanged(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),handleCrossReference(e,t,n)),!0},deleteProperty:(e,t)=>(prepareCopy(e),void 0!==peek(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),markChanged(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=latest(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[WRITABLE]:!0,[CONFIGURABLE]:1!==e.type_||"length"!==t,[ENUMERABLE]:r[ENUMERABLE],[VALUE]:n[t]}:r},defineProperty(){die(11)},getPrototypeOf:e=>getPrototypeOf$1(e.base_),setPrototypeOf(){die(12)}},arrayTraps={};for(let Fe in objectTraps){let e=objectTraps[Fe];arrayTraps[Fe]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function peek(e,t){const n=e[DRAFT_STATE];return(n?latest(n):e)[t]}function readPropFromProto(e,t,n){const r=getDescriptorFromProto(t,n);return r?VALUE in r?r[VALUE]:r.get?.call(e.draft_):void 0}function getDescriptorFromProto(e,t){if(!(t in e))return;let n=getPrototypeOf$1(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=getPrototypeOf$1(n)}}function markChanged(e){e.modified_||(e.modified_=!0,e.parent_&&markChanged(e.parent_))}function prepareCopy(e){e.copy_||(e.assigned_=new Map,e.copy_=shallowCopy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}arrayTraps.deleteProperty=function(e,t){return arrayTraps.set.call(this,e,t,void 0)},arrayTraps.set=function(e,t,n){return objectTraps.set.call(this,e[0],t,n,e[0])};var Immer2=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(isFunction$5(e)&&!isFunction$5(t)){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,e=>t.call(this,e,...a))}}let r;if(isFunction$5(t)||die(6),void 0===n||isFunction$5(n)||die(7),isDraftable(e)){const a=enterScope(this),i=createProxy(a,e,void 0);let o=!0;try{r=t(i),o=!1}finally{o?revokeScope(a):leaveScope(a)}return usePatchesInScope(a,n),processResult(r,a)}if(!e||!isObjectish(e)){if(r=t(e),void 0===r&&(r=e),r===NOTHING&&(r=void 0),this.autoFreeze_&&freeze(r,!0),n){const t=[],a=[];getPlugin(PluginPatches).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:a}),n(t,a)}return r}die(1,e)},this.produceWithPatches=(e,t)=>{if(isFunction$5(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},isBoolean$4(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),isBoolean$4(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),isBoolean$4(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){isDraftable(e)||die(8),isDraft(e)&&(e=current(e));const t=enterScope(this),n=createProxy(t,e,void 0);return n[DRAFT_STATE].isManual_=!0,leaveScope(t),n}finishDraft(e,t){const n=e&&e[DRAFT_STATE];n&&n.isManual_||die(9);const{scope_:r}=n;return usePatchesInScope(r,t),processResult(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=getPlugin(PluginPatches).applyPatches_;return isDraft(e)?r(e,t):this.produce(e,e=>r(e,t))}};function createProxy(e,t,n,r){const[a,i]=isMap(t)?getPlugin(PluginMapSet).proxyMap_(t,n):isSet(t)?getPlugin(PluginMapSet).proxySet_(t,n):createProxyProxy(t,n);return(n?.scope_??getCurrentScope()).drafts_.push(a),i.callbacks_=n?.callbacks_??[],i.key_=r,n&&void 0!==r?registerChildFinalizationCallback(n,i,r):i.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:t}=e;i.modified_&&t&&t.generatePatches_(i,[],e)}),a}function current(e){return isDraft(e)||die(10,e),currentImpl(e)}function currentImpl(e){if(!isDraftable(e)||isFrozen(e))return e;const t=e[DRAFT_STATE];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=shallowCopy(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=shallowCopy(e,!0);return each(n,(e,t)=>{set$1(n,e,currentImpl(t))},r),t&&(t.finalized_=!1),n}function enablePatches(){const t="replace",n="add",r="remove";function a(e){if(!isDraftable(e))return e;if(isArray$1(e))return e.map(a);if(isMap(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,a(t)]));if(isSet(e))return new Set(Array.from(e).map(a));const t=Object.create(getPrototypeOf$1(e));for(const n in e)t[n]=a(e[n]);return has(e,DRAFTABLE)&&(t[DRAFTABLE]=e[DRAFTABLE]),t}function i(e){return isDraft(e)?a(e):e}loadPlugin(PluginPatches,{applyPatches_:function(e,i){return i.forEach(i=>{const{path:o,op:s}=i;let l=e;for(let e=0;e<o.length-1;e++){const t=getArchtype(l);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&n!==CONSTRUCTOR||die(19),isFunction$5(l)&&n===PROTOTYPE&&die(19),l=get$1(l,n),isObjectish(l)||die(18,o.join("/"))}const c=getArchtype(l),u=a(i.value),d=o[o.length-1];switch(s){case t:switch(c){case 2:return l.set(d,u);case 3:die(16);default:return l[d]=u}case n:switch(c){case 1:return"-"===d?l.push(u):l.splice(d,0,u);case 2:return l.set(d,u);case 3:return l.add(u);default:return l[d]=u}case r:switch(c){case 1:return l.splice(d,1);case 2:return l.delete(d);case 3:return l.delete(i.value);default:return delete l[d]}default:die(17,s)}}),e},generatePatches_:function(e,a,o){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);const{patches_:s,inversePatches_:l}=o;switch(e.type_){case 0:case 2:return function(e,a,o,s){const{base_:l,copy_:c,type_:u}=e;each(e.assigned_,(e,d)=>{const p=get$1(l,e,u),m=get$1(c,e,u),h=d?has(l,e)?t:n:r;if(p===m&&h===t)return;const f=a.concat(e);o.push(h===r?{op:h,path:f}:{op:h,path:f,value:i(m)}),s.push(h===n?{op:r,path:f}:h===r?{op:n,path:f,value:i(p)}:{op:t,path:f,value:i(p)})})}(e,a,s,l);case 1:return function(e,a,o,s){let{base_:l,assigned_:c}=e,u=e.copy_;u.length<l.length&&([l,u]=[u,l],[o,s]=[s,o]);const d=!0===e.allIndicesReassigned_;for(let n=0;n<l.length;n++){const e=u[n],r=l[n];if((d||c?.get(n.toString()))&&e!==r){const l=e?.[DRAFT_STATE];if(l&&l.modified_)continue;const c=a.concat([n]);o.push({op:t,path:c,value:i(e)}),s.push({op:t,path:c,value:i(r)})}}for(let t=l.length;t<u.length;t++){const e=a.concat([t]);o.push({op:n,path:e,value:i(u[t])})}for(let t=u.length-1;l.length<=t;--t){const e=a.concat([t]);s.push({op:r,path:e})}}(e,a,s,l);case 3:return function(e,t,a,i){let{base_:o,copy_:s}=e,l=0;o.forEach(e=>{if(!s.has(e)){const o=t.concat([l]);a.push({op:r,path:o,value:e}),i.unshift({op:n,path:o,value:e})}l++}),l=0,s.forEach(e=>{if(!o.has(e)){const o=t.concat([l]);a.push({op:n,path:o,value:e}),i.unshift({op:r,path:o,value:e})}l++})}(e,a,s,l)}},generateReplacementPatches_:function(e,n,r){const{patches_:a,inversePatches_:i}=r;a.push({op:t,path:[],value:n===NOTHING?void 0:n}),i.push({op:t,path:[],value:e})},getPath:function t(n,r=[]){if(void 0!==n.key_){const e=n.parent_.copy_??n.parent_.base_,t=getProxyDraft(get$1(e,n.key_)),a=get$1(e,n.key_);if(void 0===a)return null;if(a!==n.draft_&&a!==n.base_&&a!==n.copy_)return null;if(null!=t&&t.base_!==n.base_)return null;const i=3===n.parent_.type_;let o;if(i){const e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(i&&e.size>o||has(e,o)))return null;r.push(o)}if(n.parent_)return t(n.parent_,r);r.reverse();try{!function(e,t){let n=e;for(let r=0;r<t.length-1;r++){const e=t[r];if(n=get$1(n,e),!isObjectish(n)||null===n)throw new Error(`Cannot resolve path at '${t.join("/")}'`)}}(n.copy_,r)}catch(e){return null}return r}})}var immer=new Immer2,produce=immer.produce,produceWithPatches=immer.produceWithPatches.bind(immer),applyPatches=immer.applyPatches.bind(immer);function assertIsFunction(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function assertIsArrayOfFunctions(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}var ensureIsArray=e=>Array.isArray(e)?e:[e];function getDependencies(e){const t=Array.isArray(e[0])?e[0]:e;return assertIsArrayOfFunctions(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function collectInputSelectorResults(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var StrongRef=class{constructor(e){this.value=e}deref(){return this.value}},getWeakRef=()=>"undefined"==typeof WeakRef?StrongRef:WeakRef,Ref=getWeakRef(),UNTERMINATED=0,TERMINATED=1;function createCacheNode(){return{s:UNTERMINATED,v:void 0,o:null,p:null}}function maybeDeref(e){return e instanceof Ref?e.deref():e}function weakMapMemoize(e,t={}){let n=createCacheNode();const{resultEqualityCheck:r}=t;let a,i=0;function o(){let t=n;const{length:o}=arguments;for(let e=0,n=o;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=createCacheNode(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=createCacheNode(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===TERMINATED)l=t.v;else if(l=e.apply(null,arguments),i++,r){const e=maybeDeref(a);null!=e&&r(e,l)&&(l=e,0!==i&&i--),a="object"==typeof l&&null!==l||"function"==typeof l?new Ref(l):l}return s.s=TERMINATED,s.v=l,l}return o.clearCache=()=>{n=createCacheNode(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function createSelectorCreator(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,i={},o=e.pop();"object"==typeof o&&(i=o,o=e.pop()),assertIsFunction(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);const{memoize:s,memoizeOptions:l=[],argsMemoize:c=weakMapMemoize,argsMemoizeOptions:u=[]}={...n,...i},d=ensureIsArray(l),p=ensureIsArray(u),m=getDependencies(e),h=s(function(){return r++,o.apply(null,arguments)},...d),f=c(function(){a++;const e=collectInputSelectorResults(m,arguments);return t=h.apply(null,e),t},...p);return Object.assign(f,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var createSelector=createSelectorCreator(weakMapMemoize);function createThunkMiddleware(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?compose:compose.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var hasMatchFunction=e=>e&&"function"==typeof e.match;function createAction(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(formatProdErrorMessage(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>isAction(t)&&t.type===e,n}var Tuple=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function freezeDraftable(e){return isDraftable(e)?produce(e,()=>{}):e}function getOrInsertComputed$1(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function isBoolean$3(e){return"boolean"==typeof e}var buildGetDefaultMiddleware=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let i=new Tuple;return t&&(isBoolean$3(t)?i.push(thunk):i.push(withExtraArgument(t.extraArgument))),i},SHOULD_AUTOBATCH="RTK_autoBatch",prepareAutoBatched=()=>e=>({payload:e,meta:{[SHOULD_AUTOBATCH]:!0}}),createQueueWithTimer=e=>t=>{setTimeout(t,e)},createRafWithFallbackTimer=(e,t)=>n=>{let r=!1;const a=()=>{r||(r=!0,cancelAnimationFrame(i),clearTimeout(o),n())},i=e(a),o=setTimeout(a,t)},autoBatchEnhancer=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,i=!1,o=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?createRafWithFallbackTimer(window.requestAnimationFrame,100):createQueueWithTimer(10):"callback"===e.type?e.queueNotification:createQueueWithTimer(e.timeout),c=()=>{o=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return a=!e?.meta?.[SHOULD_AUTOBATCH],i=!a,i&&(o||(o=!0,l(c))),r.dispatch(e)}finally{a=!0}}})},buildGetDefaultEnhancers=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Tuple(e);return n&&r.push(autoBatchEnhancer("object"==typeof n?n:void 0)),r};function configureStore(e){const t=buildGetDefaultMiddleware(),{reducer:n,middleware:r,devTools:a=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o,enhancers:s}=e||{};let l,c;if("function"==typeof n)l=n;else{if(!isPlainObject$3(n))throw new Error(formatProdErrorMessage(1));l=combineReducers(n)}c="function"==typeof r?r(t):t();let u=compose;a&&(u=composeWithDevTools({trace:!1,..."object"==typeof a&&a}));const d=buildGetDefaultEnhancers(applyMiddleware(...c));return createStore(l,o,u(..."function"==typeof s?s(d):d()))}function executeReducerBuilderCallback(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(formatProdErrorMessage(28));if(r in t)throw new Error(formatProdErrorMessage(29));return t[r]=n,a},addAsyncThunk:(e,r)=>(r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),a),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function isStateFunction(e){return"function"==typeof e}function createReducer(e,t){let n,[r,a,i]=executeReducerBuilderCallback(t);if(isStateFunction(e))n=()=>freezeDraftable(e());else{const t=freezeDraftable(e);n=()=>t}function o(e=n(),t){let o=[r[t.type],...a.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===o.filter(e=>!!e).length&&(o=[i]),o.reduce((e,n)=>{if(n){if(isDraft(e)){const r=n(e,t);return void 0===r?e:r}if(isDraftable(e))return produce(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return o.getInitialState=n,o}var matches=(e,t)=>hasMatchFunction(e)?e.match(t):e(t);function isAnyOf(...e){return t=>e.some(e=>matches(e,t))}function isAllOf(...e){return t=>e.every(e=>matches(e,t))}function hasExpectedRequestMetadata(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function isAsyncThunkArray(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function isPending(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["pending"]):isAsyncThunkArray(e)?isAnyOf(...e.map(e=>e.pending)):isPending()(e[0])}function isRejected(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["rejected"]):isAsyncThunkArray(e)?isAnyOf(...e.map(e=>e.rejected)):isRejected()(e[0])}function isRejectedWithValue(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||isAsyncThunkArray(e)?isAllOf(isRejected(...e),t):isRejectedWithValue()(e[0])}function isFulfilled(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["fulfilled"]):isAsyncThunkArray(e)?isAnyOf(...e.map(e=>e.fulfilled)):isFulfilled()(e[0])}function isAsyncThunkAction(...e){return 0===e.length?e=>hasExpectedRequestMetadata(e,["pending","fulfilled","rejected"]):isAsyncThunkArray(e)?isAnyOf(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):isAsyncThunkAction()(e[0])}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(e=21)=>{let t="",n=e;for(;n--;)t+=urlAlphabet[64*Math.random()|0];return t},commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},FulfillWithMeta=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},miniSerializeError=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of commonProperties)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},externalAbortMessage="External signal was aborted",createAsyncThunk=(()=>{function e(e,t,n){const r=createAction(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),a=createAction(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),i=createAction(e+"/rejected",(e,t,r,a,i)=>({payload:a,error:(n&&n.serializeError||miniSerializeError)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e,{signal:o}={}){return(s,l,c)=>{const u=n?.idGenerator?n.idGenerator(e):nanoid(),d=new AbortController;let p,m;function h(e){m=e,d.abort()}o&&(o.aborted?h(externalAbortMessage):o.addEventListener("abort",()=>h(externalAbortMessage),{once:!0}));const f=async function(){let o;try{let i=n?.condition?.(e,{getState:l,extra:c});if(isThenable$1(i)&&(i=await i),!1===i||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const f=new Promise((e,t)=>{p=()=>{t({name:"AbortError",message:m||"Aborted"})},d.signal.addEventListener("abort",p,{once:!0})});s(a(u,e,n?.getPendingMeta?.({requestId:u,arg:e},{getState:l,extra:c}))),o=await Promise.race([f,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:u,signal:d.signal,abort:h,rejectWithValue:(e,t)=>new RejectWithValue(e,t),fulfillWithValue:(e,t)=>new FulfillWithMeta(e,t)})).then(t=>{if(t instanceof RejectWithValue)throw t;return t instanceof FulfillWithMeta?r(t.payload,u,e,t.meta):r(t,u,e)})])}catch(f){o=f instanceof RejectWithValue?i(null,u,e,f.payload,f.meta):i(f,u,e)}finally{p&&d.signal.removeEventListener("abort",p)}return n&&!n.dispatchConditionRejection&&i.match(o)&&o.meta.condition||s(o),o}();return Object.assign(f,{abort:h,requestId:u,arg:e,unwrap:()=>f.then(unwrapResult)})}},{pending:a,rejected:i,fulfilled:r,settled:isAnyOf(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function unwrapResult(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function isThenable$1(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(e,t){return`${e}/${t}`}function buildCreateSlice({creators:e}={}){const t=e?.asyncThunk?.[asyncThunkSymbol];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(formatProdErrorMessage(11));const a=("function"==typeof e.reducers?e.reducers(buildReducerCreators()):e.reducers)||{},i=Object.keys(a),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(formatProdErrorMessage(12));if(n in o.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(o.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?executeReducerBuilderCallback(e.extraReducers):[e.extraReducers],a={...t,...o.sliceCaseReducersByType};return createReducer(e.initialState,e=>{for(let t in a)e.addCase(t,a[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}i.forEach(r=>{const i=a[r],o={reducerName:r,type:getType(n,r),createNotation:"function"==typeof e.reducers};isAsyncThunkSliceReducerDefinition(i)?handleThunkCaseReducerDefinition(o,i,s,t):handleNormalReducerDefinition(o,i,s)});const c=e=>e,u=new Map,d=new WeakMap;let p;function m(e,t){return p||(p=l()),p(e,t)}function h(){return p||(p=l()),p.getInitialState()}function f(t,n=!1){function r(e){let a=e[t];return void 0===a&&n&&(a=getOrInsertComputed$1(d,r,h)),a}function a(t=c){return getOrInsertComputed$1(getOrInsertComputed$1(u,n,()=>new WeakMap),t,()=>{const r={};for(const[a,i]of Object.entries(e.selectors??{}))r[a]=wrapSelector(i,t,()=>getOrInsertComputed$1(d,t,h),n);return r})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const g={name:n,reducer:m,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:h,...f(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:m},n),{...g,...f(a,!0)}}};return g}}function wrapSelector(e,t,n,r){function a(a,...i){let o=t(a);return void 0===o&&r&&(o=n()),e(o,...i)}return a.unwrapped=e,a}var createSlice=buildCreateSlice();function buildReducerCreators(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function handleNormalReducerDefinition({type:e,reducerName:t,createNotation:n},r,a){let i,o;if("reducer"in r){if(n&&!isCaseReducerWithPrepareDefinition(r))throw new Error(formatProdErrorMessage(17));i=r.reducer,o=r.prepare}else i=r;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?createAction(e,o):createAction(e))}function isAsyncThunkSliceReducerDefinition(e){return"asyncThunk"===e._reducerDefinitionType}function isCaseReducerWithPrepareDefinition(e){return"reducerWithPrepare"===e._reducerDefinitionType}function handleThunkCaseReducerDefinition({type:e,reducerName:t},n,r,a){if(!a)throw new Error(formatProdErrorMessage(18));const{payloadCreator:i,fulfilled:o,pending:s,rejected:l,settled:c,options:u}=n,d=a(e,i,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:o||noop$3,pending:s||noop$3,rejected:l||noop$3,settled:c||noop$3})}function noop$3(){}var listener="listener",completed="completed",cancelled="cancelled",taskCancelled=`task-${cancelled}`,taskCompleted=`task-${completed}`,listenerCancelled=`${listener}-${cancelled}`,listenerCompleted=`${listener}-${completed}`,{assign:assign}=Object,alm="listenerMiddleware",addListener=assign(createAction(`${alm}/add`),{withTypes:()=>addListener}),clearAllListeners=createAction(`${alm}/removeAll`),removeListener=assign(createAction(`${alm}/remove`),{withTypes:()=>removeListener});function formatProdErrorMessage(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var defaultSettings={organization_name:"",logo_settings:{logo_url:void 0,logo_wide_url:void 0,favicon_url:void 0},login_settings:{google:{client_id:"",enabled:!1},sign_up_enabled:!1},docver_settings:{tg_link_enabled:!1,tg_link_base_url:""},other_settings:{default_page_title:"",show_contact_us:!1,privacy_policy_url:"",terms_of_service_url:"",service_email:"",privacy_organization_name:"",doc_links:{api:void 0,mobile_sdk:void 0,widget:void 0,bot:void 0,webhooks:void 0}},domain_settings:{api:void 0,sdk:void 0,dash:void 0},billing_settings:{enabled:!0,stripe:{configured:!1,enabled:!1}},is_admin_panel:!1,ui_settings:void 0,is_ds:!1},initialState$6={settings:defaultSettings,isInitialized:!1,isLoading:!1},domainSlice=createSlice({name:"domainSlice",initialState:initialState$6,reducers:{clearSettings:e=>{e.settings=defaultSettings},setSettings:(e,{payload:t})=>{e.settings=t},setInitialized:(e,{payload:t})=>{e.isInitialized=t},setLoading:(e,{payload:t})=>{e.isLoading=t}}}),DocsVerificationFileUploadApproachEnum=function(e){return e.PHOTO_AND_FILE="PHOTO_AND_FILE",e.PHOTO="PHOTO",e.FILE="FILE",e}({}),DocumentsStepEnum=function(e){return e[e.UPLOAD_FIRST_SIDE=0]="UPLOAD_FIRST_SIDE",e[e.UPLOAD_SECOND_SIDE=1]="UPLOAD_SECOND_SIDE",e[e.SELECT_COUNTRY=2]="SELECT_COUNTRY",e}({}),initialState$5={tabs:[],currentTabIndex:0,currentStep:DocsVerificationStepEnum.START,currentTab:DocsVerificationTabEnum.DOCUMENT,applicantId:"",verificationId:"",continueVerification:null,lastVerificationId:"",country:{label:"",value:""},documentsCountry:"",documents:{files:[]},documentsStep:DocumentsStepEnum.UPLOAD_FIRST_SIDE,results:[],isCameraMode:!1,isTermsAccepted:!1,isShowRequirements:!1,isFailedVerification:!1,fileUploadApproach:DocsVerificationFileUploadApproachEnum.PHOTO_AND_FILE},docsVerificationSlice=createSlice({name:"docsVerificationSlice",initialState:initialState$5,reducers:{setCurrentStep:(e,{payload:t})=>{e.currentStep=t,e.isCameraMode=!1},goBackStep:e=>{const t=e.currentTabIndex-1;-1===t?e.currentStep=e.sdkOptions?.customPartner?.concordium?DocsVerificationStepEnum.START_CUSTOM_PARTNER:DocsVerificationStepEnum.START:(e.currentTabIndex=t,e.currentTab=e.tabs[t]),e.isCameraMode=!1},goNextStep:(e,{payload:t})=>{const n=e.currentTabIndex+1;n===e.tabs.length?t?(e.currentTab=e.tabs[0],e.currentTabIndex=0):e.currentStep=DocsVerificationStepEnum.FINISH:(e.currentTabIndex=n,e.currentTab=e.tabs[n]),e.isCameraMode=!1},addFile:(e,{payload:t})=>{e.documents.files=e.documents.files.filter(e=>!e.status.error),e.documents.files.push(t)},changeFile:(e,{payload:t})=>{const n=e.documents.files.findIndex(e=>e.id===t.id);n>=0&&(e.documents.files[n]=t.file)},deleteFileById:(e,{payload:t})=>{const n=e.documents.files.findIndex(e=>e.id===t);n>=0&&e.documents.files.splice(n,1)},deleteFilesByTab:(e,{payload:t})=>{e.documents.files=e.documents.files.filter(e=>e.tab!==t)},clearSteps:()=>initialState$5,useSDK:(e,{payload:t})=>{e.sdkOptions=t,"expired"!==t?.status?"completed"!==t?.status?(t?.customPartner?.concordium&&!t.isSkipIntro&&(e.currentStep=DocsVerificationStepEnum.START_CUSTOM_PARTNER),t?.settings?.allow_desktop||!isDesktop()||!t?.isSkipIntro&&t?.customPartner?.concordium?(e.tabs=[],e?.sdkOptions?.settings?.manual_fields_settings?.enabled&&e.tabs.push(DocsVerificationTabEnum.PERSONAL_DATA),e?.sdkOptions?.settings.poi_required&&e.tabs.push(DocsVerificationTabEnum.DOCUMENT),e?.sdkOptions?.settings.face_comparison_required&&e.tabs.push(DocsVerificationTabEnum.BIOMETRICS),e?.sdkOptions?.settings.poa_required&&e.tabs.push(DocsVerificationTabEnum.ADDRESS),e.currentTab=e.tabs[0],"telegram"===t?.source?e.currentStep=DocsVerificationStepEnum.VERIFICATION:e.currentStep||(e.currentStep=DocsVerificationStepEnum.START)):e.currentStep=DocsVerificationStepEnum.DESKTOP_NOT_ALLOWED):e.currentStep=DocsVerificationStepEnum.FINISH:e.currentStep=DocsVerificationStepEnum.EXPIRED},setCountry:(e,{payload:t})=>{e.country=t},setDocumentsCountry:(e,{payload:t})=>{e.documentsCountry=t},setFaceDetector:(e,{payload:t})=>{e.faceDetector=t},setIsCameraMode:(e,{payload:t})=>{e.isCameraMode=t},setIsTermsAccepted:(e,{payload:t})=>{e.isTermsAccepted=t},setIsShowRequirements:(e,{payload:t})=>{e.isShowRequirements=t},setDocumentsStep:(e,{payload:t})=>{e.documentsStep=t},setIsFailedVerification:(e,{payload:t})=>{e.isFailedVerification=t},setFileUploadApproach:(e,{payload:t})=>{e.fileUploadApproach=t}}}),updateOrganizationRole=e=>{if("organization_role"in e){const t=e.organization_role.toUpperCase();Object.values(OrganizationRoleEnum).includes(t)&&(e.organization_role=t)}return e},updateOrganizationStatus=(e,t)=>{if(t in e){const n=e[t]?.toUpperCase();Object.values(AccountStatus).includes(n)&&(e[t]=n)}return e},transformOrganization=e=>{let t=e;return"organization_role"in e&&(t=updateOrganizationRole(e)),"account_status"in e&&(t=updateOrganizationStatus(t,"account_status")),"status"in e&&(t=updateOrganizationStatus(t,"status")),t},transformUserInfo=e=>{const t={...e};return t?.account?.logo_url&&(t.account.logo_url=`${t.account.logo_url}?t=${(new Date).getTime()}`),t?.account?.global_role&&(t.account.global_role=t.account.global_role?.toUpperCase()),t},getEnvVar=e=>{try{const t={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,REACT_APP_API_BASE_URL:"https://api.dataspike.io",REACT_APP_GA_MEASUREMENT_ID:"G-9H5HTFENGK",REACT_APP_GTAG_MANAGER_ID:"GTM-5XP2CCC",REACT_APP_KYB_WIDGET_BASE_URL:"https://kyb.dataspike.io/",REACT_APP_LOGROCKET_TOKEN:"sn69au/dataspike",REACT_APP_LOGS_API_BASE_URL:"https://events.dataspike.io/web",REACT_APP_MULTI_DASHBOARDS:"1",REACT_APP_REVOLUT_ENV:"prod",REACT_APP_TYPE:"production",REACT_APP_WIDGET_VERSION:"0.4.101",SSR:!1}[e];if(void 0!==t)return t}catch{}try{const t=process.env[e];if(void 0!==t)return t}catch{}return""},maskString=e=>{const t=e.slice(0,3),n=e.length-2;let r=e.slice(3,n);r=r.replace(/./g,"*");const a=e.slice(n,e.length);return t.concat(r).concat(a)},maskEmail=e=>{if(!e.includes("@"))return maskString(e);const t=e.slice(0,3),n=e.lastIndexOf("@");let r=e.slice(3,n-1);r=r.replace(/./g,"*");const a=e.slice(n-1,e.length);return t.concat(r).concat(a)};function bind(e,t){return function(){return e.apply(t,arguments)}}var{toString:toString$1}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,{iterator:iterator,toStringTag:toStringTag}=Symbol,hasOwnProperty=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hasOwnInPrototypeChain=(e,t)=>{let n=e;const r=[];for(;null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),hasOwnProperty(n,t))return!0;n=getPrototypeOf(n)}return!1},getSafeProp=(e,t)=>null!=e&&hasOwnInPrototypeChain(e,t)?e[t]:void 0,kindOf=(e=>t=>{const n=toString$1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined$1(e)&&null!==e.constructor&&!isUndefined$1(e.constructor)&&isFunction$4(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}var isString$2=typeOfTest("string"),isFunction$4=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$6=e=>null!==e&&"object"==typeof e,isBoolean$2=e=>!0===e||!1===e,isPlainObject$1=e=>{if(!isObject$6(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==getPrototypeOf(t)||hasOwnInPrototypeChain(e,toStringTag)||hasOwnInPrototypeChain(e,iterator))},isEmptyObject$1=t=>{if(!isObject$6(t)||isBuffer(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},isDate$2=kindOfTest("Date"),isFile=kindOfTest("File"),isReactNativeBlob=e=>!(!e||void 0===e.uri),isReactNative$1=e=>e&&void 0!==e.getParts,isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$6(e)&&isFunction$4(e.pipe);function getGlobal$1(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}var G$1=getGlobal$1(),FormDataCtor=void 0!==G$1.FormData?G$1.FormData:void 0,isFormData=e=>{if(!e)return!1;if(FormDataCtor&&e instanceof FormDataCtor)return!0;const t=getPrototypeOf(e);if(!t||t===Object.prototype)return!1;if(!isFunction$4(e.append))return!1;const n=kindOf(e);return"formdata"===n||"object"===n&&isFunction$4(e.toString)&&"[object FormData]"===e.toString()},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$2(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),isArray(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(isBuffer(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(r=0;r<i;r++)o=a[r],t.call(null,e[o],o,e)}}function findKey$1(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}var _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!isUndefined$1(e)&&e!==_global;function merge$2(...e){const{caseless:t,skipUndefined:n}=isContextDefined(this)&&this||{},r={},a=(e,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=t&&"string"==typeof a&&findKey$1(r,a)||a,o=hasOwnProperty(r,i)?r[i]:void 0;isPlainObject$1(o)&&isPlainObject$1(e)?r[i]=merge$2(o,e):isPlainObject$1(e)?r[i]=merge$2({},e):isArray(e)?r[i]=e.slice():n&&isUndefined$1(e)||(r[i]=e)};for(let i=0,o=e.length;i<o;i++){const t=e[i];if(!t||isBuffer(t))continue;if(forEach$2(t,a),"object"!=typeof t||isArray(t))continue;const n=Object.getOwnPropertySymbols(t);for(let e=0;e<n.length;e++){const r=n[e];propertyIsEnumerable.call(t,r)&&a(t[r],r)}}return r}var extend$3=(e,t,n,{allOwnKeys:r}={})=>(forEach$2(t,(t,r)=>{n&&isFunction$4(t)?Object.defineProperty(e,r,{__proto__:null,value:bind(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray$1=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber$1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray$1=(TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),e=>TypedArray&&e instanceof TypedArray),TypedArray,forEachEntry=(e,t)=>{const n=(e&&e[iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll=(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:propertyIsEnumerable}=Object.prototype,isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};forEach$2(n,(n,a)=>{let i;!1!==(i=t(n,a,e))&&(r[a]=i||n)}),Object.defineProperties(e,r)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{if(isFunction$4(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];isFunction$4(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet=(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return isArray(e)?r(e):r(String(e).split(t)),n},noop$2=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$4(e.append)&&"FormData"===e[toStringTag]&&e[iterator])}var toJSONObject=e=>{const t=new WeakSet,n=e=>{if(isObject$6(e)){if(t.has(e))return;if(isBuffer(e))return e;if(!("toJSON"in e)){t.add(e);const r=isArray(e)?[]:{};return forEach$2(e,(e,t)=>{const a=n(e);!isUndefined$1(a)&&(r[t]=a)}),t.delete(e),r}}return e};return n(e)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$6(e)||isFunction$4(e))&&isFunction$4(e.then)&&isFunction$4(e.catch),_setImmediate=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction$4(_global.postMessage),setImmediateSupported?setImmediate:postMessageSupported?((e,t)=>(_global.addEventListener("message",({source:n,data:r})=>{n===_global&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),_global.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),setImmediateSupported,postMessageSupported,asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):"undefined"!=typeof process&&process.nextTick||_setImmediate,isIterable$1=e=>null!=e&&isFunction$4(e[iterator]),isSafeIterable=e=>null!=e&&hasOwnInPrototypeChain(e,iterator)&&isIterable$1(e),utils_default={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$2,isNumber:isNumber$1,isBoolean:isBoolean$2,isObject:isObject$6,isPlainObject:isPlainObject$1,isEmptyObject:isEmptyObject$1,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined$1,isDate:isDate$2,isFile:isFile,isReactNativeBlob:isReactNativeBlob,isReactNative:isReactNative$1,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$4,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray$1,isFileList:isFileList,forEach:forEach$2,merge:merge$2,extend:extend$3,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray$1,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,hasOwnInPrototypeChain:hasOwnInPrototypeChain,getSafeProp:getSafeProp,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop$2,toFiniteNumber:toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable$1,isSafeIterable:isSafeIterable},ignoreDuplicateOf=utils_default.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders_default=e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&ignoreDuplicateOf[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function trimSPorHTAB(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}var INVALID_UNICODE_HEADER_VALUE_CHARS=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),INVALID_BYTE_STRING_HEADER_VALUE_CHARS=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function sanitizeValue(e,t){return utils_default.isArray(e)?e.map(e=>sanitizeValue(e,t)):trimSPorHTAB(String(e).replace(t,""))}var sanitizeHeaderValue=e=>sanitizeValue(e,INVALID_UNICODE_HEADER_VALUE_CHARS),sanitizeByteStringHeaderValue=e=>sanitizeValue(e,INVALID_BYTE_STRING_HEADER_VALUE_CHARS);function toByteStringHeaderObject(e){const t=Object.create(null);return utils_default.forEach(e.toJSON(),(e,n)=>{t[n]=sanitizeByteStringHeaderValue(e)}),t}var $internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils_default.isArray(e)?e.map(normalizeValue):sanitizeHeaderValue(String(e))}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,r,a){return utils_default.isFunction(r)?r.call(this,t,n):(a&&(t=n),utils_default.isString(t)?utils_default.isString(r)?-1!==t.indexOf(r):utils_default.isRegExp(r)?r.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function buildAccessors(e,t){const n=utils_default.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}var AxiosHeaders=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=normalizeHeader(t);if(!a)return;const i=utils_default.findKey(r,a);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=normalizeValue(e))}const i=(e,t)=>utils_default.forEach(e,(e,n)=>a(e,n,t));if(utils_default.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils_default.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))i(parseHeaders_default(e),t);else if(utils_default.isObject(e)&&utils_default.isSafeIterable(e)){let n,r,a=Object.create(null);for(const t of e){if(!utils_default.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],utils_default.hasOwnProp(a,r)?(n=a[r],a[r]=utils_default.isArray(n)?[...n,t[1]]:[n,t[1]]):a[r]=t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=normalizeHeader(e)){const n=utils_default.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return parseTokens(e);if(utils_default.isFunction(t))return t.call(this,e,n);if(utils_default.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const n=utils_default.findKey(this,e);return!(!n||void 0===this[n]||t&&!matchHeaderValue(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=normalizeHeader(e)){const a=utils_default.findKey(n,e);!a||t&&!matchHeaderValue(n,n[a],a,t)||(delete n[a],r=!0)}}return utils_default.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!matchHeaderValue(this,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return utils_default.forEach(this,(r,a)=>{const i=utils_default.findKey(n,a);if(i)return t[i]=normalizeValue(r),void delete t[a];const o=e?formatHeader(a):String(a).trim();o!==a&&delete t[a],t[o]=normalizeValue(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils_default.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&utils_default.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=normalizeHeader(e);t[r]||(buildAccessors(n,e),t[r]=!0)}return utils_default.isArray(e)?e.forEach(r):r(e),this}};AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils_default.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),utils_default.freezeMethods(AxiosHeaders);var REDACTED="[REDACTED ****]";function hasOwnOrPrototypeToJSON(e){if(utils_default.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(utils_default.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function redactConfig(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],a=e=>{if(null===e||"object"!=typeof e)return e;if(utils_default.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof AxiosHeaders&&(e=e.toJSON()),r.push(e),utils_default.isArray(e))t=[],e.forEach((e,n)=>{const r=a(e);utils_default.isUndefined(r)||(t[n]=r)});else{if(!utils_default.isPlainObject(e)&&hasOwnOrPrototypeToJSON(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?REDACTED:a(i);utils_default.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return a(e)}var AxiosError=class e extends Error{static from(t,n,r,a,i,o){const s=new e(t.message,n||t.code,r,a,i);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,t=e&&utils_default.hasOwnProp(e,"redact")?e.redact:void 0,n=utils_default.isArray(t)&&t.length>0?redactConfig(e,t):utils_default.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};AxiosError.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",AxiosError.ERR_BAD_OPTION="ERR_BAD_OPTION",AxiosError.ECONNABORTED="ECONNABORTED",AxiosError.ETIMEDOUT="ETIMEDOUT",AxiosError.ECONNREFUSED="ECONNREFUSED",AxiosError.ERR_NETWORK="ERR_NETWORK",AxiosError.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",AxiosError.ERR_DEPRECATED="ERR_DEPRECATED",AxiosError.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",AxiosError.ERR_BAD_REQUEST="ERR_BAD_REQUEST",AxiosError.ERR_CANCELED="ERR_CANCELED",AxiosError.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",AxiosError.ERR_INVALID_URL="ERR_INVALID_URL",AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var DEFAULT_FORM_DATA_MAX_DEPTH=100;function isVisitable(e){return utils_default.isPlainObject(e)||utils_default.isArray(e)}function removeBrackets(e){return utils_default.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(e,t){return e=removeBrackets(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function isFlatArray(e){return utils_default.isArray(e)&&!e.some(isVisitable)}var predicates=utils_default.toFlatObject(utils_default,{},null,function(e){return/^is[A-Z]/.test(e)});function toFormData(e,t,n){if(!utils_default.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=utils_default.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!utils_default.isUndefined(t[e])})).metaTokens,a=n.visitor||m,i=n.dots,o=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&utils_default.isSpecCompliantForm(t),u=[];if(!utils_default.isFunction(a))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(utils_default.isDate(e))return e.toISOString();if(utils_default.isBoolean(e))return e.toString();if(!c&&utils_default.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils_default.isArrayBuffer(e)||utils_default.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function p(e){if(e>l)throw new AxiosError("Object is too deeply nested ("+e+" levels). Max depth: "+l,AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,n,a){let s=e;if(utils_default.isReactNative(t)&&utils_default.isReactNativeBlob(e))return t.append(renderKey(a,n,i),d(e)),!1;if(e&&!a&&"object"==typeof e)if(utils_default.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!utils_default.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}(e,1);else if(utils_default.isArray(e)&&isFlatArray(e)||(utils_default.isFileList(e)||utils_default.endsWith(n,"[]"))&&(s=utils_default.toArray(e)))return n=removeBrackets(n),s.forEach(function(e,r){!utils_default.isUndefined(e)&&null!==e&&t.append(!0===o?renderKey([n],r,i):null===o?n:n+"[]",d(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(a,n,i),d(e)),!1)}const h=Object.assign(predicates,{defaultVisitor:m,convertValue:d,isVisitable:isVisitable});if(!utils_default.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!utils_default.isUndefined(n)){if(p(i),-1!==u.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));u.push(n),utils_default.forEach(n,function(n,o){!0===(!(utils_default.isUndefined(n)||null===n)&&a.call(t,n,utils_default.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):[o],i+1)}),u.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}var prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const r=utils_default.isFunction(n)?{serialize:n}:n,a=utils_default.getSafeProp(r,"encode")||encode,i=utils_default.getSafeProp(r,"serialize");let o;if(o=i?i(t,r):utils_default.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(a),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var InterceptorManager=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils_default.forEach(this.handlers,function(t){null!==t&&e(t)})}},transitional_default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},URLSearchParams_default="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData_default="undefined"!=typeof FormData?FormData:null,Blob_default="undefined"!=typeof Blob?Blob:null,browser_default={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_default,FormData:FormData_default,Blob:Blob_default},protocols:["http","https","file","blob","url","data"]},utils_exports=__exportAll({hasBrowserEnv:()=>hasBrowserEnv,hasStandardBrowserEnv:()=>hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:()=>hasStandardBrowserWebWorkerEnv,navigator:()=>_navigator,origin:()=>origin}),hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost",platform_default={...utils_exports,...browser_default};function toURLEncodedForm(e,t){return toFormData(e,new platform_default.classes.URLSearchParams,{visitor:function(e,t,n,r){return platform_default.isNode&&utils_default.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}var MAX_DEPTH=100;function throwIfDepthExceeded(e){if(e>MAX_DEPTH)throw new AxiosError("FormData field is too deeply nested ("+e+" levels). Max depth: "+MAX_DEPTH,AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED)}function parsePropPath(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;null!==(r=n.exec(e));)throwIfDepthExceeded(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}function arrayToObject(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function formDataToJSON(e){function t(e,n,r,a){throwIfDepthExceeded(a);let i=e[a++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=a>=e.length;return i=!i&&utils_default.isArray(r)?r.length:i,s?(utils_default.hasOwnProp(r,i)?r[i]=utils_default.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!o):(utils_default.hasOwnProp(r,i)&&utils_default.isObject(r[i])||(r[i]=[]),t(e,n,r[i],a)&&utils_default.isArray(r[i])&&(r[i]=arrayToObject(r[i])),!o)}if(utils_default.isFormData(e)&&utils_default.isFunction(e.entries)){const n={};return utils_default.forEachEntry(e,(e,r)=>{t(parsePropPath(e),r,n,0)}),n}return null}var own=(e,t)=>null!=e&&utils_default.hasOwnProp(e,t)?e[t]:void 0;function stringifySafely(t,n,r){if(utils_default.isString(t))try{return(n||JSON.parse)(t),utils_default.trim(t)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(t)}var defaults$2={transitional:transitional_default,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=utils_default.isObject(e);if(a&&utils_default.isHTMLForm(e)&&(e=new FormData(e)),utils_default.isFormData(e))return r?JSON.stringify(formDataToJSON(e)):e;if(utils_default.isArrayBuffer(e)||utils_default.isBuffer(e)||utils_default.isStream(e)||utils_default.isFile(e)||utils_default.isBlob(e)||utils_default.isReadableStream(e))return e;if(utils_default.isArrayBufferView(e))return e.buffer;if(utils_default.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){const t=own(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,t).toString();if((i=utils_default.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=own(this,"env"),r=n&&n.FormData;return toFormData(i?{"files[]":e}:e,r&&new r,t)}}return a||r?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(t){const n=own(this,"transitional")||defaults$2.transitional,r=n&&n.forcedJSONParsing,a=own(this,"responseType"),i="json"===a;if(utils_default.isResponse(t)||utils_default.isReadableStream(t))return t;if(t&&utils_default.isString(t)&&(r&&!a||i)){const r=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,own(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,own(this,"response"));throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform_default.classes.FormData,Blob:platform_default.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function transformData(e,t){const n=this||defaults$2,r=t||n,a=AxiosHeaders.from(r.headers);let i=r.data;return utils_default.forEach(e,function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function isCancel(e){return!(!e||!e.__CANCEL__)}utils_default.forEach(["delete","get","head","post","put","patch","query"],e=>{defaults$2.headers[e]={}});var CanceledError=class extends AxiosError{constructor(e,t,n){super(null==e?"canceled":e,AxiosError.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function settle(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new AxiosError("Request failed with status code "+n.status,n.status>=400&&n.status<500?AxiosError.ERR_BAD_REQUEST:AxiosError.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}function parseProtocol(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[o];a||(a=l),n[i]=s,r[i]=l;let u=o,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}function throttle(e,t){let n,r,a=0,i=1e3/t;const o=(t,i=Date.now())=>{a=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=i?o(e,t):(n=e,r||(r=setTimeout(()=>{r=null,o(n)},i-s)))},()=>n&&o(n)]}var progressEventReducer=(e,t,n=3)=>{let r=0;const a=speedometer(50,250);return throttle(n=>{if(!n||"number"!=typeof n.loaded)return;const i=n.loaded,o=n.lengthComputable?n.total:void 0,s=null!=o?Math.min(i,o):i,l=Math.max(0,s-r),c=a(l);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},progressEventDecorator=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},asyncDecorator=e=>(...t)=>utils_default.asap(()=>e(...t)),isURLSameOrigin_default=platform_default.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,platform_default.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(platform_default.origin),platform_default.navigator&&/(msie|trident)/i.test(platform_default.navigator.userAgent)):()=>!0,cookies_default=platform_default.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];utils_default.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),utils_default.isString(r)&&s.push(`path=${r}`),utils_default.isString(a)&&s.push(`domain=${a}`),!0===i&&s.push("secure"),utils_default.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(-1!==a&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}var malformedHttpProtocol=/^https?:(?!\/\/)/i,httpProtocolControlCharacters=/[\t\n\r]/g;function stripLeadingC0ControlOrSpace(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function normalizeURLForProtocolCheck(e){return stripLeadingC0ControlOrSpace(e).replace(httpProtocolControlCharacters,"")}function assertValidHttpProtocolURL(e,t){if("string"==typeof e&&malformedHttpProtocol.test(normalizeURLForProtocolCheck(e)))throw new AxiosError('Invalid URL: missing "//" after protocol',AxiosError.ERR_INVALID_URL,t)}function buildFullPath(e,t,n,r){assertValidHttpProtocolURL(t,r);let a=!isAbsoluteURL(t);return e&&(a||!1===n)?(assertValidHttpProtocolURL(e,r),combineURLs(e,t)):t}var headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return utils_default.isPlainObject(e)&&utils_default.isPlainObject(t)?utils_default.merge.call({caseless:r},e,t):utils_default.isPlainObject(t)?utils_default.merge({},t):utils_default.isArray(t)?t.slice():t}function a(e,t,n,a){return utils_default.isUndefined(t)?utils_default.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function i(e,t){if(!utils_default.isUndefined(t))return r(void 0,t)}function o(e,t){return utils_default.isUndefined(t)?utils_default.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,a,i){return utils_default.hasOwnProp(t,i)?r(n,a):utils_default.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>a(headersToObject(e),headersToObject(t),0,!0)};return utils_default.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=utils_default.hasOwnProp(l,r)?l[r]:a,o=i(utils_default.hasOwnProp(e,r)?e[r]:void 0,utils_default.hasOwnProp(t,r)?t[r]:void 0,r);utils_default.isUndefined(o)&&i!==s||(n[r]=o)}),utils_default.hasOwnProp(t,"validateStatus")&&utils_default.isUndefined(t.validateStatus)&&!1===function(n){const r=utils_default.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!utils_default.isUndefined(r)){if(!utils_default.isPlainObject(r))return;if(utils_default.hasOwnProp(r,n))return r[n]}const a=utils_default.hasOwnProp(e,"transitional")?e.transitional:void 0;if(utils_default.isPlainObject(a)&&utils_default.hasOwnProp(a,n))return a[n]}("validateStatusUndefinedResolves")&&(utils_default.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var FORM_DATA_CONTENT_HEADERS=["content-type","content-length"];function setFormDataHeaders(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{FORM_DATA_CONTENT_HEADERS.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}var encodeUTF8$1=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function resolveConfig(e){const t=mergeConfig({},e),n=e=>utils_default.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),o=n("xsrfCookieName");let s=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=AxiosHeaders.from(s),t.url=buildURL(buildFullPath(c,d,u,t),n("params"),n("paramsSerializer")),l){const e=utils_default.getSafeProp(l,"username")||"",t=utils_default.getSafeProp(l,"password")||"";s.set("Authorization","Basic "+btoa(e+":"+(t?encodeUTF8$1(t):"")))}if(utils_default.isFormData(r)&&(platform_default.hasStandardBrowserEnv||platform_default.hasStandardBrowserWebWorkerEnv||utils_default.isReactNative(r)?s.setContentType(void 0):utils_default.isFunction(r.getHeaders)&&setFormDataHeaders(s,r.getHeaders(),n("formDataHeaderPolicy"))),platform_default.hasStandardBrowserEnv&&(utils_default.isFunction(a)&&(a=a(t)),!0===a||null==a&&isURLSameOrigin_default(t.url))){const e=i&&o&&cookies_default.read(o);e&&s.set(i,e)}return t}var isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest,xhr_default=isXHRAdapterSupported&&function(e){return new Promise(function(t,n){const r=resolveConfig(e);let a=r.data;const i=AxiosHeaders.from(r.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:m}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function g(){if(!f)return;const r=AxiosHeaders.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());settle(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f}),f=null}f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&f.responseURL.startsWith("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,f)),h(),f=null)},f.onerror=function(t){const r=new AxiosError(t&&t.message?t.message:"Network Error",AxiosError.ERR_NETWORK,e,f);r.event=t||null,n(r),h(),f=null},f.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||transitional_default;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new AxiosError(t,a.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,f)),h(),f=null},void 0===a&&i.setContentType(null),"setRequestHeader"in f&&utils_default.forEach(toByteStringHeaderObject(i),function(e,t){f.setRequestHeader(t,e)}),utils_default.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),d&&"json"!==d&&(f.responseType=r.responseType),m&&([l,u]=progressEventReducer(m,!0),f.addEventListener("progress",l)),p&&f.upload&&([s,c]=progressEventReducer(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=t=>{f&&(n(!t||t.type?new CanceledError(null,e,f):t),f.abort(),h(),f=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const y=parseProtocol(r.url);!y||platform_default.protocols.includes(y)?f.send(a||null):n(new AxiosError("Unsupported protocol "+y+":",AxiosError.ERR_BAD_REQUEST,e))})},composeSignals=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,a(new AxiosError(`timeout of ${t}ms exceeded`,AxiosError.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:s}=n;return s.unsubscribe=()=>utils_default.asap(o),s},streamChunk=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},readBytes=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},trackStream=(e,t,n,r)=>{const a=readBytes(e,t);let i,o=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return s(),void e.close();let i=r.byteLength;n&&n(o+=i),e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},isHexDigit=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,isPercentEncodedByte=(e,t,n)=>t+2<n&&isHexDigit(e.charCodeAt(t+1))&&isHexDigit(e.charCodeAt(t+2));function estimateDataURLDecodedBytes(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let s=0;s<t;s++)if(37===r.charCodeAt(s)&&s+2<t){const t=r.charCodeAt(s+1),n=r.charCodeAt(s+2);isHexDigit(t)&&isHexDigit(n)&&(e-=2,s+=2)}let n=0,a=t-1;const i=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));a>=0&&(61===r.charCodeAt(a)?(n++,a--):i(a)&&(n++,a-=3)),1===n&&a>=0&&(61===r.charCodeAt(a)||i(a))&&n++;const o=3*Math.floor(e/4)-(n||0);return o>0?o:0}let a=0;for(let i=0,o=r.length;i<o;i++){const e=r.charCodeAt(i);if(37===e&&isPercentEncodedByte(r,i,o))a+=1,i+=2;else if(e<128)a+=1;else if(e<2048)a+=2;else if(e>=55296&&e<=56319&&i+1<o){const e=r.charCodeAt(i+1);e>=56320&&e<=57343?(a+=4,i++):a+=3}else a+=3}return a}var VERSION="1.18.0",DEFAULT_CHUNK_SIZE=65536,{isFunction:isFunction$3}=utils_default,encodeUTF8=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),decodeURIComponentSafe=e=>{if(!utils_default.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},test=(t,...n)=>{try{return!!t(...n)}catch(e){return!1}},maybeWithAuthCredentials=e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},factory=e=>{const t=void 0!==utils_default.global&&null!==utils_default.global?utils_default.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=utils_default.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,s=a?isFunction$3(a):"function"==typeof fetch,l=isFunction$3(i),c=isFunction$3(o);if(!s)return!1;const u=s&&isFunction$3(n),d=s&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const m=l&&u&&test(()=>{let e=!1;const t=new i(platform_default.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=c&&u&&test(()=>utils_default.isReadableStream(new o("").body)),f={stream:h&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,n)})});const g=async e=>null==e?0:utils_default.isBlob(e)?e.size:utils_default.isSpecCompliantForm(e)?(await new i(platform_default.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:utils_default.isArrayBufferView(e)||utils_default.isArrayBuffer(e)?e.byteLength:(utils_default.isURLSearchParams(e)&&(e+=""),utils_default.isString(e)?(await d(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:s,signal:c,cancelToken:d,timeout:p,onDownloadProgress:y,onUploadProgress:v,responseType:x,headers:b,withCredentials:S="same-origin",fetchOptions:C,maxContentLength:_,maxBodyLength:w}=resolveConfig(e);const E=utils_default.isNumber(_)&&_>-1,A=utils_default.isNumber(w)&&w>-1;let k=a||fetch;x=x?(x+"").toLowerCase():"text";let T=composeSignals([c,d&&d.toAbortSignal()],p),I=null;const P=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let M,R=null;const $=()=>new AxiosError("Request body larger than maxBodyLength limit",AxiosError.ERR_BAD_REQUEST,e,I);try{let a;const c=(D="auth",utils_default.hasOwnProp(e,D)?e[D]:void 0);if(c&&(a={username:utils_default.getSafeProp(c,"username")||"",password:utils_default.getSafeProp(c,"password")||""}),maybeWithAuthCredentials(t)){const e=new URL(t,platform_default.origin);a||!e.username&&!e.password||(a={username:decodeURIComponentSafe(e.username),password:decodeURIComponentSafe(e.password)}),(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(a&&(b.delete("authorization"),b.set("Authorization","Basic "+btoa(encodeUTF8((a.username||"")+":"+(a.password||""))))),E&&"string"==typeof t&&t.startsWith("data:")&&estimateDataURLDecodedBytes(t)>_)throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I);if(A&&"get"!==n&&"head"!==n){const e=await g(s);if("number"==typeof e&&isFinite(e)&&(M=e,e>w))throw $()}const d=A&&(utils_default.isReadableStream(s)||utils_default.isStream(s)),p=(e,t,n)=>trackStream(e,DEFAULT_CHUNK_SIZE,e=>{if(A&&e>w)throw R=$();t&&t(e)},n);if(m&&"get"!==n&&"head"!==n&&(v||d)){if(M=null==M?await(async(e,t)=>{const n=utils_default.toFiniteNumber(e.getContentLength());return null==n?g(t):n})(b,s):M,0!==M||d){let e,n=new i(t,{method:"POST",body:s,duplex:"half"});if(utils_default.isFormData(s)&&(e=n.headers.get("content-type"))&&b.setContentType(e),n.body){const[e,t]=v&&progressEventDecorator(M,progressEventReducer(asyncDecorator(v)))||[];s=p(n.body,e,t)}}}else if(d&&!l&&u&&"get"!==n&&"head"!==n)s=p(s);else if(d&&l&&!m&&"get"!==n&&"head"!==n)throw new AxiosError("Stream request bodies are not supported by the current fetch implementation",AxiosError.ERR_NOT_SUPPORT,e,I);utils_default.isString(S)||(S=S?"include":"omit");const N=l&&"credentials"in i.prototype;if(utils_default.isFormData(s)){const e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}b.set("User-Agent","axios/"+VERSION,!1);const O={...C,signal:T,method:n.toUpperCase(),headers:toByteStringHeaderObject(b.normalize()),body:s,duplex:"half",credentials:N?S:void 0};I=l&&new i(t,O);let F=await(l?k(I,C):k(t,O));const L=AxiosHeaders.from(F.headers);if(E){const t=utils_default.toFiniteNumber(L.getContentLength());if(null!=t&&t>_)throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I)}const j=h&&("stream"===x||"response"===x);if(h&&F.body&&(y||E||j&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=F[e]});const n=utils_default.toFiniteNumber(L.getContentLength()),[r,a]=y&&progressEventDecorator(n,progressEventReducer(asyncDecorator(y),!0))||[];let i=0;const s=t=>{if(E&&(i=t,i>_))throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I);r&&r(t)};F=new o(trackStream(F.body,DEFAULT_CHUNK_SIZE,s,()=>{a&&a(),P&&P()}),t)}x=x||"text";let B=await f[utils_default.findKey(f,x)||"text"](F,e);if(E&&!h&&!j){let t;if(null!=B&&("number"==typeof B.byteLength?t=B.byteLength:"number"==typeof B.size?t=B.size:"string"==typeof B&&(t="function"==typeof r?(new r).encode(B).byteLength:B.length)),"number"==typeof t&&t>_)throw new AxiosError("maxContentLength size of "+_+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,I)}return!j&&P&&P(),await new Promise((t,n)=>{settle(t,n,{data:B,headers:AxiosHeaders.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:I})})}catch(N){if(P&&P(),T&&T.aborted&&T.reason instanceof AxiosError){const t=T.reason;throw t.config=e,I&&(t.request=I),N!==t&&(t.cause=N),t}if(R)throw I&&!R.request&&(R.request=I),R;if(N instanceof AxiosError)throw I&&!N.request&&(N.request=I),N;if(N&&"TypeError"===N.name&&/Load failed|fetch/i.test(N.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,I,N&&N.response),{cause:N.cause||N});throw AxiosError.from(N,N&&N.code,e,I,N&&N.response)}var D}},seedCache=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let o,s,l=i.length,c=seedCache;for(;l--;)o=i[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:factory(t)),c=s;return s},adapter=getFetch(),knownAdapters={http:null,xhr:xhr_default,fetch:{get:getFetch}};utils_default.forEach(knownAdapters,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(e){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});var renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils_default.isFunction(e)||null===e||!1===e;function getAdapter(e,t){e=utils_default.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let o=0;o<n;o++){let n;if(r=e[o],a=r,!isResolvedHandle(r)&&(a=knownAdapters[(n=String(r)).toLowerCase()],void 0===a))throw new AxiosError(`Unknown adapter '${n}'`);if(a&&(utils_default.isFunction(a)||(a=a.get(t))))break;i[n||"#"+o]=a}if(!a){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new AxiosError("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a}var adapters_default={getAdapter:getAdapter,adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters_default.getAdapter(e.adapter||defaults$2.adapter,e)(e).then(function(t){throwIfCancellationRequested(e),e.response=t;try{t.data=transformData.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=AxiosHeaders.from(t.headers),t},function(t){if(!isCancel(t)&&(throwIfCancellationRequested(e),t&&t.response)){e.response=t.response;try{t.response.data=transformData.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=AxiosHeaders.from(t.response.headers)}return Promise.reject(t)})}var validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var deprecatedWarnings={};function assertOptions(e,t,n){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new AxiosError("option "+i+" must be "+n,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,n){function r(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new AxiosError(r(a," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[a]&&(deprecatedWarnings[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},validators$1.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var validator_default={assertOptions:assertOptions,validators:validators$1},validators=validator_default.validators,Axios=class{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(r.stack){if(n){const e=n.indexOf("\n"),t=-1===e?-1:n.indexOf("\n",e+1),a=-1===t?"":n.slice(t+1);String(r.stack).endsWith(a)||(r.stack+="\n"+n)}}else r.stack=n}catch(e){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&validator_default.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean),legacyInterceptorReqResOrdering:validators.transitional(validators.boolean),advertiseZstdAcceptEncoding:validators.transitional(validators.boolean),validateStatusUndefinedResolves:validators.transitional(validators.boolean)},!1),null!=r&&(utils_default.isFunction(r)?t.paramsSerializer={serialize:r}:validator_default.assertOptions(r,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator_default.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&utils_default.merge(a.common,a[t.method]);a&&utils_default.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=AxiosHeaders.concat(i,a);const o=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||transitional_default;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...o),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let p=t;for(;d<u;){const e=o[d++],t=o[d++];try{p=e(p)}catch(m){t.call(this,m);break}}try{c=dispatchRequest.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};utils_default.forEach(["delete","get","head","options"],function(e){Axios.prototype[e]=function(t,n){return this.request(mergeConfig(n||{},{method:e,url:t,data:n&&utils_default.hasOwnProp(n,"data")?n.data:void 0}))}}),utils_default.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,a){return this.request(mergeConfig(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Axios.prototype[e]=t(),"query"!==e&&(Axios.prototype[e+"Form"]=t(!0))});var CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new CanceledError(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils_default.isObject(e)&&!0===e.isAxiosError}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};function createInstance(e){const t=new Axios(e),n=bind(Axios.prototype.request,t);return utils_default.extend(n,Axios.prototype,t,{allOwnKeys:!0}),utils_default.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return createInstance(mergeConfig(e,t))},n}Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e});var axios=createInstance(defaults$2);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=e=>formDataToJSON(utils_default.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters_default.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;var baseAxios=axios.create({baseURL:getEnvVar("REACT_APP_LOGS_API_BASE_URL")}),client_type=getEnvVar("REACT_APP_TYPE")||"production",logger=({organizationId:e,sdkOptions:t,user:n,isAdmin:r})=>{const a=!(e||!t||!t.logsUrl),i=client_type===ReactAppTypeEnum.LOCAL,o=baseAxios.defaults.baseURL;if(i||!o&&!a)return{log:async()=>Promise.resolve(!0),error:async()=>Promise.resolve(!0),warn:async()=>Promise.resolve(!0)};const s=e=>({...e&&"object"==typeof e?e:{data:e},path:window.location.href}),l=r?"Admin Panel":"Dashboard";if(!e&&t){baseAxios.defaults.baseURL=t.logsUrl;const e={verificationId:t.id,settings:t.settings,checks:t.checks},n=(t,n,r)=>`DocVerWidget ${t}. Message: ${n}. Data: ${JSON.stringify(s(r))}. Meta: ${JSON.stringify(e)}`;return{log:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:n("Log",e,t),level:"info",client_type:client_type})}catch{}},error:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:n("Error",e,t),level:client_type===ReactAppTypeEnum.PRODUCTION?"error":"warning",client_type:client_type})}catch{}},warn:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:n("Warning",e,t),level:"warning",client_type:client_type})}catch{}}}}const c={organizationId:e,...client_type===ReactAppTypeEnum.PRODUCTION?{...n,account:{...n?.account??{},email:n?.account?.email?maskEmail(n?.account?.email):n?.account?.email,full_name:n?.account?.full_name?maskString(n.account.full_name):n?.account?.full_name}}:{user:n}},u=(e,t,n)=>`${l} ${e}. Message: ${t}. Data: ${JSON.stringify(s(n))}. Meta: ${JSON.stringify(c)}`;return{log:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:u("Log",e,t),level:"info",client_type:client_type})}catch{}},error:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:u("Error",e,t),level:client_type===ReactAppTypeEnum.PRODUCTION?"error":"warning",client_type:client_type})}catch{}},warn:async({message:e,data:t})=>{try{await baseAxios.post("",{msg:u("Warning",e,t),level:"warning",client_type:client_type})}catch{}}}},apiLogger=async(e,t)=>{const n=logger({isAdmin:e.domain.settings.is_admin_panel,user:e.auth?.user?.info,sdkOptions:e.docsVerification.sdkOptions,organizationId:e.domain.settings.is_admin_panel?e.adminPanel?.session?.organizationId:e.dashboard?.session?.organizationId}),{error:r,meta:a}=t,i=async()=>{let e,t;return a?.request.body&&(t=await(a?.request.json())),t&&"object"==typeof t&&"email"in t&&"string"==typeof t.email&&(e=client_type===ReactAppTypeEnum.PRODUCTION?maskEmail(t.email):t.email),{error:{...r&&"object"==typeof r?r:{error:r}},...(e||a?.request?.url)&&{additionalData:{...e&&{email:e},...a?.request.url&&{apiPath:a?.request.url}}}}};([403].includes(r.status)||r.status>=500&&r.status<600)&&await n.error({message:`${r.status} Status`,data:await i()}),404===r.status&&await n.warn({message:"404 Status",data:await i()})},useLogger=()=>{const e=useAppSelector(e=>e.auth?.user?.info),t=useAppSelector(e=>e.domain.settings.is_admin_panel),n=useAppSelector(e=>t?e.adminPanel?.session?.organizationId:e.dashboard?.session?.organizationId),r=useAppSelector(e=>e.docsVerification.sdkOptions);return{logger:(0,import_react.useMemo)(()=>logger({sdkOptions:r,organizationId:n,user:e,isAdmin:t}),[r,n,e,t])}},SchemaError=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},QueryStatus=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(QueryStatus||{}),STATUS_UNINITIALIZED="uninitialized",STATUS_PENDING="pending",STATUS_FULFILLED="fulfilled",STATUS_REJECTED="rejected";function getRequestStatusFlags(e){return{status:e,isUninitialized:e===STATUS_UNINITIALIZED,isLoading:e===STATUS_PENDING,isSuccess:e===STATUS_FULFILLED,isError:e===STATUS_REJECTED}}var isPlainObject2=isPlainObject$3;function copyWithStructuralSharing(e,t){if(e===t||!(isPlainObject2(e)&&isPlainObject2(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const o of n)i[o]=copyWithStructuralSharing(e[o],t[o]),a&&(a=e[o]===i[o]);return a?e:i}function filterMap(e,t,n){return e.reduce((e,r,a)=>(t(r,a)&&e.push(n(r,a)),e),[]).flat()}function isAbsoluteUrl(e){return new RegExp("(^|:)//").test(e)}function isDocumentVisible(){return"undefined"==typeof document||"hidden"!==document.visibilityState}function isNotNullish(e){return null!=e}function filterNullishValues(e){return[...e?.values()??[]].filter(isNotNullish)}function isOnline(){return"undefined"==typeof navigator||(void 0===navigator.onLine||navigator.onLine)}var withoutTrailingSlash=e=>e.replace(/\/$/,""),withoutLeadingSlash=e=>e.replace(/^\//,"");function joinUrls(e,t){if(!e)return t;if(!t)return e;if(isAbsoluteUrl(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=withoutTrailingSlash(e)}${n}${t=withoutLeadingSlash(t)}`}function getOrInsertComputed(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var createNewMap=()=>new Map,timeoutSignal=e=>{const t=new AbortController;return setTimeout(()=>{const e="signal timed out",n="TimeoutError";t.abort("undefined"!=typeof DOMException?new DOMException(e,n):Object.assign(new Error(e),{name:n}))},e),t.signal},anySignal=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},defaultFetchFn=(...e)=>fetch(...e),defaultValidateStatus=e=>e.status>=200&&e.status<=299,defaultIsJsonContentType=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function stripUndefined(e){if(!isPlainObject$3(e))return e;const t={...e};for(const[n,r]of Object.entries(t))void 0===r&&delete t[n];return t}var isJsonifiable=e=>"object"==typeof e&&(isPlainObject$3(e)||Array.isArray(e)||"function"==typeof e.toJSON);function fetchBaseQuery({baseUrl:t,prepareHeaders:n=e=>e,fetchFn:r=defaultFetchFn,paramsSerializer:a,isJsonContentType:i=defaultIsJsonContentType,jsonContentType:o="application/json",jsonReplacer:s,timeout:l,responseHandler:c,validateStatus:u,...d}={}){return"undefined"==typeof fetch&&r===defaultFetchFn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(m,h,f)=>{const{getState:g,extra:y,endpoint:v,forced:x,type:b}=h;let S,{url:C,headers:_=new Headers(d.headers),params:w,responseHandler:E=c??"json",validateStatus:A=u??defaultValidateStatus,timeout:k=l,...T}="string"==typeof m?{url:m}:m,I={...d,signal:k?anySignal(h.signal,timeoutSignal(k)):h.signal,...T};_=new Headers(stripUndefined(_)),I.headers=await n(_,{getState:g,arg:m,extra:y,endpoint:v,forced:x,type:b,extraOptions:f})||_;const P=isJsonifiable(I.body);if(null==I.body||P||"string"==typeof I.body||I.headers.delete("content-type"),!I.headers.has("content-type")&&P&&I.headers.set("content-type",o),P&&i(I.headers)&&(I.body=JSON.stringify(I.body,s)),I.headers.has("accept")||("json"===E?I.headers.set("accept","application/json"):"text"===E&&I.headers.set("accept","text/plain, text/html, */*")),w){const e=~C.indexOf("?")?"&":"?";C+=e+(a?a(w):new URLSearchParams(stripUndefined(w)))}C=joinUrls(t,C);const M=new Request(C,I);let R;S={request:new Request(C,I)};try{R=await r(M)}catch(e){return{error:{status:(e instanceof Error||"undefined"!=typeof DOMException&&e instanceof DOMException)&&"TimeoutError"===e.name?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:S}}const $=R.clone();let D;S.response=$;let N="";try{let e;if(await Promise.all([p(R,E).then(e=>D=e,t=>e=t),$.text().then(e=>N=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:N,error:String(e)},meta:S}}return A(R,D)?{data:D,meta:S}:{error:{status:R.status,data:D},meta:S}};async function p(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=i(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var HandledError=class{constructor(e,t=void 0){this.value=e,this.meta=t}value;meta};async function defaultBackoff(e=0,t=5,n){const r=Math.min(e,t),a=~~((Math.random()+.4)*(300<<r));await new Promise((e,t)=>{const r=setTimeout(()=>e(),a);if(n){const e=()=>{clearTimeout(r),t(new Error("Aborted"))};n.aborted?(clearTimeout(r),t(new Error("Aborted"))):n.addEventListener("abort",e,{once:!0})}})}function fail(e,t){throw Object.assign(new HandledError({error:e,meta:t}),{throwImmediately:!0})}function failIfAborted(e){e.aborted&&fail({status:"CUSTOM_ERROR",error:"Aborted"})}var EMPTY_OPTIONS={},retryWithBackoff=(t,n)=>async(r,a,i)=>{const[o]=[5,(n||EMPTY_OPTIONS).maxRetries,(i||EMPTY_OPTIONS).maxRetries].filter(e=>void 0!==e).slice(-1),s={maxRetries:o,backoff:defaultBackoff,retryCondition:(e,t,{attempt:n})=>n<=o,...n,...i};let l=0;for(;;){failIfAborted(a.signal);try{const e=await t(r,a,i);if(e.error)throw new HandledError(e);return e}catch(e){if(l++,e.throwImmediately){if(e instanceof HandledError)return e.value;throw e}if(e instanceof HandledError){if(!s.retryCondition(e.value.error,r,{attempt:l,baseQueryApi:a,extraOptions:i}))return e.value}else if(l>s.maxRetries)return{error:e};failIfAborted(a.signal);try{await s.backoff(l,s.maxRetries,a.signal)}catch(c){throw failIfAborted(a.signal),c}}}},retry=Object.assign(retryWithBackoff,{fail:fail}),INTERNAL_PREFIX="__rtkq/",ONLINE="online",OFFLINE="offline",FOCUS="focus",FOCUSED="focused",VISIBILITYCHANGE="visibilitychange",onFocus=createAction(`${INTERNAL_PREFIX}${FOCUSED}`),onFocusLost=createAction(`${INTERNAL_PREFIX}un${FOCUSED}`),onOnline=createAction(`${INTERNAL_PREFIX}${ONLINE}`),onOffline=createAction(`${INTERNAL_PREFIX}${OFFLINE}`),actions={onFocus:onFocus,onFocusLost:onFocusLost,onOnline:onOnline,onOffline:onOffline},initialized=!1;function setupListeners(e,t){return t?t(e,actions):function(){const[t,n,r,a]=[onFocus,onFocusLost,onOnline,onOffline].map(t=>()=>e(t())),i=()=>{"visible"===window.document.visibilityState?t():n()};let o=()=>{initialized=!1};if(!initialized&&"undefined"!=typeof window&&window.addEventListener){let e=function(e){Object.entries(n).forEach(([t,n])=>{e?window.addEventListener(t,n,!1):window.removeEventListener(t,n)})};const n={[FOCUS]:t,[VISIBILITYCHANGE]:i,[ONLINE]:r,[OFFLINE]:a};e(!0),initialized=!0,o=()=>{e(!1),initialized=!1}}return o}()}var ENDPOINT_QUERY$1="query",ENDPOINT_MUTATION$1="mutation",ENDPOINT_INFINITEQUERY$1="infinitequery";function isQueryDefinition$1(e){return e.type===ENDPOINT_QUERY$1}function isMutationDefinition$1(e){return e.type===ENDPOINT_MUTATION$1}function isInfiniteQueryDefinition$1(e){return e.type===ENDPOINT_INFINITEQUERY$1}function isAnyQueryDefinition(e){return isQueryDefinition$1(e)||isInfiniteQueryDefinition$1(e)}function calculateProvidedBy(e,t,n,r,a,i){const o=isFunction$2(e)?e(t,n,r,a):e;return o?filterMap(o,isNotNullish,e=>i(expandTagDescription(e))):[]}function isFunction$2(e){return"function"==typeof e}function expandTagDescription(e){return"string"==typeof e?{type:e}:e}function asSafePromise(e,t){return e.catch(t)}var getEndpointDefinition=(e,t)=>e.endpointDefinitions[t],forceQueryFnSymbol=Symbol("forceQueryFn"),isUpsertQuery=e=>"function"==typeof e[forceQueryFnSymbol];function buildInitiate({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:a,context:i,getInternalState:o}){const s=e=>o(e)?.runningQueries,l=e=>o(e)?.runningMutations,{unsubscribeQueryResult:c,removeMutationResult:u,updateSubscriptionOptions:d}=a.internalActions;return{buildInitiateQuery:function(e,t){return p(e,t)},buildInitiateInfiniteQuery:function(e,t){return p(e,t)},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:a}={})=>(i,o)=>{const s=i(r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:a})),{requestId:c,abort:d,unwrap:p}=s,m=asSafePromise(s.unwrap().then(e=>({data:e})),e=>({error:e})),h=Object.assign(m,{arg:s.arg,requestId:c,abort:d,unwrap:p,reset:()=>{i(u({requestId:c,fixedCacheKey:a}))}}),f=l(i);return f.set(c,h),h.then(()=>{f.delete(c)}),a&&(f.set(a,h),h.then(()=>{f.get(a)===h&&f.delete(a)})),h}},getRunningQueryThunk:function(t,n){return r=>{const a=e({queryArgs:n,endpointDefinition:getEndpointDefinition(i,t),endpointName:t});return s(r)?.get(a)}},getRunningMutationThunk:function(e,t){return e=>l(e)?.get(t)},getRunningQueriesThunk:function(){return e=>filterNullishValues(s(e))},getRunningMutationsThunk:function(){return e=>filterNullishValues(l(e))}};function p(r,i){const o=(l,{subscribe:u=!0,forceRefetch:p,subscriptionOptions:m,[forceQueryFnSymbol]:h,...f}={})=>(g,y)=>{const v=e({queryArgs:l,endpointDefinition:i,endpointName:r});let x;const b={...f,type:ENDPOINT_QUERY$1,subscribe:u,forceRefetch:p,subscriptionOptions:m,endpointName:r,originalArgs:l,queryCacheKey:v,[forceQueryFnSymbol]:h};if(isQueryDefinition$1(i))x=t(b);else{const{direction:e,initialPageParam:t,refetchCachedPages:r}=f;x=n({...b,direction:e,initialPageParam:t,refetchCachedPages:r})}const S=a.endpoints[r].select(l),C=g(x),_=S(y()),{requestId:w,abort:E}=C,A=_.requestId!==w,k=s(g)?.get(v),T=()=>S(y()),I=Object.assign(h?C.then(T):A&&!k?Promise.resolve(_):Promise.all([k,C]).then(T),{arg:l,requestId:w,subscriptionOptions:m,queryCacheKey:v,abort:E,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:e=>g(o(l,{subscribe:!1,forceRefetch:!0,...e})),unsubscribe(){u&&g(c({queryCacheKey:v,requestId:w}))},updateSubscriptionOptions(e){I.subscriptionOptions=e,g(d({endpointName:r,requestId:w,queryCacheKey:v,options:e}))}});if(!k&&!A&&!h){const e=s(g);e.set(v,I),I.then(()=>{e.delete(v)})}return I};return o}}var NamedSchemaError=class extends SchemaError{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}value;schemaName;_bqMeta},shouldSkip=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function parseWithSchema(e,t,n,r){const a=await e["~standard"].validate(t);if(a.issues)throw new NamedSchemaError(a.issues,t,n,r);return a.value}function defaultTransformResponse(e){return e}var addShouldAutoBatch=(e={})=>({...e,[SHOULD_AUTOBATCH]:!0});function buildThunks({reducerPath:t,baseQuery:n,context:{endpointDefinitions:r},serializeQueryArgs:a,api:i,assertTagType:o,selectors:s,onSchemaFailure:l,catchSchemaFailure:c,skipSchemaValidation:u}){function d(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function p(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}const m=(e,t)=>e.query&&e[t]?e[t]:defaultTransformResponse,h=async(t,{signal:a,abort:i,rejectWithValue:o,fulfillWithValue:h,dispatch:g,getState:y,extra:v})=>{const x=r[t.endpointName],{metaSchema:b,skipSchemaValidation:S=u}=x,C=t.type===ENDPOINT_QUERY$1;try{let E=defaultTransformResponse;const A={signal:a,abort:i,dispatch:g,getState:y,extra:v,endpoint:t.endpointName,type:t.type,forced:C?f(t,y()):void 0,queryCacheKey:C?t.queryCacheKey:void 0},k=C?t[forceQueryFnSymbol]:void 0;let T;const I=async(e,n,r,a)=>{if(null==n&&e.pages.length)return Promise.resolve({data:e});const i=await _({queryArg:t.originalArgs,pageParam:n}),o=a?d:p;return{data:{pages:o(e.pages,i.data,r),pageParams:o(e.pageParams,n,r)},meta:i.meta}};async function _(e){let t;const{extraOptions:r,argSchema:a,rawResponseSchema:i,responseSchema:o}=x;if(a&&!shouldSkip(S,"arg")&&(e=await parseWithSchema(a,e,"argSchema",{})),k?t=k():x.query?(E=m(x,"transformResponse"),t=await n(x.query(e),A,r)):t=await x.queryFn(e,A,r,e=>n(e,A,r)),t.error)throw new HandledError(t.error,t.meta);let{data:s}=t;i&&!shouldSkip(S,"rawResponse")&&(s=await parseWithSchema(i,t.data,"rawResponseSchema",t.meta));let l=await E(s,t.meta,e);return o&&!shouldSkip(S,"response")&&(l=await parseWithSchema(o,l,"responseSchema",t.meta)),{...t,data:l}}if(C&&"infiniteQueryOptions"in x){const{infiniteQueryOptions:P}=x,{maxPages:M=1/0}=P,R=t.refetchCachedPages??P.refetchCachedPages??!0;let $;const D={pages:[],pageParams:[]},N=s.selectQueryEntry(y(),t.queryCacheKey)?.data,O=f(t,y())&&!t.direction||!N?D:N;if("direction"in t&&t.direction&&O.pages.length){const F="backward"===t.direction;$=await I(O,(F?getPreviousPageParam:getNextPageParam)(P,O,t.originalArgs),M,F)}else{const{initialPageParam:L=P.initialPageParam}=t,j=N?.pageParams??[],B=j[0]??L,V=j.length;if($=await I(O,B,M),k&&($={data:$.data.pages[0]}),R)for(let U=1;U<V;U++){const z=getNextPageParam(P,$.data,t.originalArgs);$=await I($.data,z,M)}}T=$}else T=await _(t.originalArgs);return b&&!shouldSkip(S,"meta")&&T.meta&&(T.meta=await parseWithSchema(b,T.meta,"metaSchema",T.meta)),h(T.data,addShouldAutoBatch({fulfilledTimeStamp:Date.now(),baseQueryMeta:T.meta}))}catch(w){let H=w;if(H instanceof HandledError){let W=m(x,"transformErrorResponse");const{rawErrorResponseSchema:G,errorResponseSchema:q}=x;let{value:K,meta:Y}=H;try{G&&!shouldSkip(S,"rawErrorResponse")&&(K=await parseWithSchema(G,K,"rawErrorResponseSchema",Y)),b&&!shouldSkip(S,"meta")&&(Y=await parseWithSchema(b,Y,"metaSchema",Y));let Z=await W(K,Y,t.originalArgs);return q&&!shouldSkip(S,"errorResponse")&&(Z=await parseWithSchema(q,Z,"errorResponseSchema",Y)),o(Z,addShouldAutoBatch({baseQueryMeta:Y}))}catch(e){H=e}}try{if(H instanceof NamedSchemaError){const Q={endpoint:t.endpointName,arg:t.originalArgs,type:t.type,queryCacheKey:C?t.queryCacheKey:void 0};x.onSchemaFailure?.(H,Q),l?.(H,Q);const{catchSchemaFailure:J=c}=x;if(J)return o(J(H,Q),addShouldAutoBatch({baseQueryMeta:H._bqMeta}))}}catch(e){H=e}throw console.error(H),H}};function f(e,t){const n=s.selectQueryEntry(t,e.queryCacheKey),r=s.selectConfig(t).refetchOnMountOrArgChange,a=n?.fulfilledTimeStamp,i=e.forceRefetch??(e.subscribe&&r);return!!i&&(!0===i||(Number(new Date)-Number(a))/1e3>=i)}const g=()=>createAsyncThunk(`${t}/executeQuery`,h,{getPendingMeta({arg:e}){const t=r[e.endpointName];return addShouldAutoBatch({startedTimeStamp:Date.now(),...isInfiniteQueryDefinition$1(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){const n=t(),a=s.selectQueryEntry(n,e.queryCacheKey),i=a?.fulfilledTimeStamp,o=e.originalArgs,l=a?.originalArgs,c=r[e.endpointName],u=e.direction;return!!isUpsertQuery(e)||"pending"!==a?.status&&(!!f(e,n)||(!(!isQueryDefinition$1(c)||!c?.forceRefetch?.({currentArg:o,previousArg:l,endpointState:a,state:n}))||!(i&&!u)))},dispatchConditionRejection:!0}),y=g(),v=g(),x=createAsyncThunk(`${t}/executeMutation`,h,{getPendingMeta:()=>addShouldAutoBatch({startedTimeStamp:Date.now()})});function b(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:y,mutationThunk:x,infiniteQueryThunk:v,prefetch:(e,t,n={})=>(r,a)=>{const o=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,subscribe:!1};return i.endpoints[e].initiate(t,r)},c=i.endpoints[e].select(t)(a());if(o)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(a,o)=>{const s=i.endpoints[e].select(t)(o()),l={patches:[],inversePatches:[],undo:()=>a(i.util.patchQueryData(e,t,l.inversePatches,r))};if(s.status===STATUS_UNINITIALIZED)return l;let c;if("data"in s)if(isDraftable(s.data)){const[e,t,r]=produceWithPatches(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return 0===l.patches.length||a(i.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(i.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[forceQueryFnSymbol]:()=>({data:n})})),patchQueryData:(e,t,n,s)=>(l,c)=>{const u=r[e],d=a({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(i.internalActions.queryResultPatched({queryCacheKey:d,patches:n})),!s)return;const p=i.endpoints[e].select(t)(c()),m=calculateProvidedBy(u.providesTags,p.data,void 0,t,{},o);l(i.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:m}]))},buildMatchThunkActions:function(e,t){return{matchPending:isAllOf(isPending(e),b(t)),matchFulfilled:isAllOf(isFulfilled(e),b(t)),matchRejected:isAllOf(isRejected(e),b(t))}}}}function getNextPageParam(e,{pages:t,pageParams:n},r){const a=t.length-1;return e.getNextPageParam(t[a],t,n[a],n,r)}function getPreviousPageParam(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function calculateProvidedByThunk(e,t,n,r){return calculateProvidedBy(n[e.meta.arg.endpointName][t],isFulfilled(e)?e.payload:void 0,isRejectedWithValue(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function getCurrent(e){return isDraft(e)?current(e):e}function updateQuerySubstateIfExists(e,t,n){const r=e[t];r&&n(r)}function getMutationCacheKey(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function updateMutationSubstateIfExists(e,t,n){const r=e[getMutationCacheKey(t)];r&&n(r)}var initialState$4={};function buildSlice({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:a,apiUid:i,extractRehydrationInfo:o,hasRehydrationInfo:s},assertTagType:l,config:c}){const u=createAction(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:STATUS_UNINITIALIZED,endpointName:t.endpointName},updateQuerySubstateIfExists(e,t.queryCacheKey,e=>{e.status=STATUS_PENDING,e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp;isInfiniteQueryDefinition$1(a[r.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function p(e,t,n,r){updateQuerySubstateIfExists(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!r)return;const{merge:i}=a[t.arg.endpointName];if(e.status=STATUS_FULFILLED,i)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:a,baseQueryMeta:o,requestId:s}=t;e.data=produce(e.data,e=>i(e,n,{arg:a.originalArgs,baseQueryMeta:o,fulfilledTimeStamp:r,requestId:s}))}else e.data=n;else e.data=a[t.arg.endpointName].structuralSharing??1?copyWithStructuralSharing(isDraft(e.data)?original(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}const m=createSlice({name:`${e}/queries`,initialState:initialState$4,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:prepareAutoBatched()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:a}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),p(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},a,!0)}},prepare:e=>({payload:e.map(e=>{const{endpointName:t,arg:n,value:i}=e,o=a[t];return{queryDescription:{type:ENDPOINT_QUERY$1,endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:o,endpointName:t})},value:i}}),meta:{[SHOULD_AUTOBATCH]:!0,requestId:nanoid(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){updateQuerySubstateIfExists(e,t,e=>{e.data=applyPatches(e.data,n.concat())})},prepare:prepareAutoBatched()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{d(e,n,isUpsertQuery(n),t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{p(e,t,n,isUpsertQuery(t.arg))}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:i})=>{updateQuerySubstateIfExists(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status=STATUS_REJECTED,e.error=i??a}})}).addMatcher(s,(e,t)=>{const{queries:n}=o(t);for(const[r,a]of Object.entries(n))a?.status!==STATUS_FULFILLED&&a?.status!==STATUS_REJECTED||(e[r]=a)})}}),h=createSlice({name:`${e}/mutations`,initialState:initialState$4,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=getMutationCacheKey(t);n in e&&delete e[n]},prepare:prepareAutoBatched()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[getMutationCacheKey(t)]={requestId:n,status:STATUS_PENDING,endpointName:r.endpointName,startedTimeStamp:a})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&updateMutationSubstateIfExists(e,n,e=>{e.requestId===n.requestId&&(e.status=STATUS_FULFILLED,e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&updateMutationSubstateIfExists(e,r,e=>{e.requestId===r.requestId&&(e.status=STATUS_REJECTED,e.error=t??n)})}).addMatcher(s,(e,t)=>{const{mutations:n}=o(t);for(const[r,a]of Object.entries(n))a?.status!==STATUS_FULFILLED&&a?.status!==STATUS_REJECTED||r===a?.requestId||(e[r]=a)})}}),f=createSlice({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(const{queryCacheKey:n,providedTags:r}of t.payload){g(e,n);for(const{type:t,id:a}of r){const r=(e.tags[t]??={})[a||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}e.keys[n]=r}},prepare:prepareAutoBatched()}},extraReducers(e){e.addCase(m.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{g(e,t)}).addMatcher(s,(e,t)=>{const{provided:n}=o(t);for(const[r,a]of Object.entries(n.tags??{}))for(const[t,i]of Object.entries(a)){const a=(e.tags[r]??={})[t||"__internal_without_id"]??=[];for(const t of i)a.includes(t)||a.push(t),e.keys[t]=n.keys[t]}}).addMatcher(isAnyOf(isFulfilled(t),isRejectedWithValue(t)),(e,t)=>{y(e,[t])}).addMatcher(m.actions.cacheEntriesUpserted.match,(e,t)=>{y(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function g(e,t){const n=getCurrent(e.keys[t]??[]);for(const r of n){const n=r.type,a=r.id??"__internal_without_id",i=e.tags[n]?.[a];i&&(e.tags[n][a]=getCurrent(i).filter(e=>e!==t))}delete e.keys[t]}function y(e,t){const n=t.map(e=>{const t=calculateProvidedByThunk(e,"providesTags",a,l),{queryCacheKey:n}=e.meta.arg;return{queryCacheKey:n,providedTags:t}});f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy(n))}const v=createSlice({name:`${e}/subscriptions`,initialState:initialState$4,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),x=createSlice({name:`${e}/internalSubscriptions`,initialState:initialState$4,reducers:{subscriptionsUpdated:{reducer:(e,t)=>applyPatches(e,t.payload),prepare:prepareAutoBatched()}}}),b=createSlice({name:`${e}/config`,initialState:{online:isOnline(),focused:isDocumentVisible(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&i===t||"conflict"}},extraReducers:e=>{e.addCase(onOnline,e=>{e.online=!0}).addCase(onOffline,e=>{e.online=!1}).addCase(onFocus,e=>{e.focused=!0}).addCase(onFocusLost,e=>{e.focused=!1}).addMatcher(s,e=>({...e}))}}),S=combineReducers({queries:m.reducer,mutations:h.reducer,provided:f.reducer,subscriptions:x.reducer,config:b.reducer});return{reducer:(e,t)=>S(u.match(t)?void 0:e,t),actions:{...b.actions,...m.actions,...v.actions,...x.actions,...h.actions,...f.actions,resetApiState:u}}}var skipToken=Symbol.for("RTKQ/skipToken"),initialSubState={status:STATUS_UNINITIALIZED},defaultQuerySubState=produce(initialSubState,()=>{}),defaultMutationSubState=produce(initialSubState,()=>{});function buildSelectors({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>defaultQuerySubState,a=e=>defaultMutationSubState;return{buildQuerySelector:function(e,t){return c(e,t,i)},buildInfiniteQuerySelector:function(e,t){const{infiniteQueryOptions:n}=t;return c(e,t,function(e){const t={...e,...getRequestStatusFlags(e.status)},{isLoading:r,isError:a,direction:i}=t,o="forward"===i,s="backward"===i;return{...t,hasNextPage:u(n,t.data,t.originalArgs),hasPreviousPage:d(n,t.data,t.originalArgs),isFetchingNextPage:r&&o,isFetchingPreviousPage:r&&s,isFetchNextPageError:a&&o,isFetchPreviousPageError:a&&s}})},buildMutationSelector:function(){return e=>{let t;t="object"==typeof e?getMutationCacheKey(e)??skipToken:e;return n(t===skipToken?a:e=>o(e)?.mutations?.[t]??defaultMutationSubState,i)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set,i=filterMap(n,isNotNullish,expandTagDescription);for(const t of i){const e=r.provided.tags[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:Object.values(e).flat())??[];for(const t of n)a.add(t)}return Array.from(a.values()).flatMap(e=>{const t=r.queries[e];return t?{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}:[]})},selectCachedArgsForQuery:function(e,t){return filterMap(Object.values(s(e)),e=>e?.endpointName===t&&e.status!==STATUS_UNINITIALIZED,e=>e.originalArgs)},selectApiState:o,selectQueries:s,selectMutations:function(e){return o(e)?.mutations},selectQueryEntry:l,selectConfig:function(e){return o(e)?.config}};function i(e){return{...e,...getRequestStatusFlags(e.status)}}function o(e){return e[t]}function s(e){return o(e)?.queries}function l(e,t){return s(e)?.[t]}function c(t,a,i){return o=>{if(o===skipToken)return n(r,i);const s=e({queryArgs:o,endpointDefinition:a,endpointName:t});return n(e=>l(e,s)??defaultQuerySubState,i)}}function u(e,t,n){return!!t&&null!=getNextPageParam(e,t,n)}function d(e,t,n){return!(!t||!e.getPreviousPageParam)&&null!=getPreviousPageParam(e,t,n)}}var cache=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs=({endpointName:e,queryArgs:t})=>{let n="";const r=cache?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,(e,t)=>t=isPlainObject$3(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);isPlainObject$3(t)&&cache?.set(t,e),n=e}return`${e}(${n})`};function buildCreateApi(...e){return function(t){const n=weakMapMemoize(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=defaultSerializeQueryArgs;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:defaultSerializeQueryArgs({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:nanoid(),extractRehydrationInfo:n,hasRehydrationInfo:weakMapMemoize(e=>null!=n(e))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:ENDPOINT_QUERY$1}),mutation:e=>({...e,type:ENDPOINT_MUTATION$1}),infiniteQuery:e=>({...e,type:ENDPOINT_INFINITEQUERY$1})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(formatProdErrorMessage(39))}else{a.endpointDefinitions[n]=r;for(const e of o)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"==typeof r?r(getEndpointDefinition(a,n)):Object.assign(getEndpointDefinition(a,n)||{},r);return i}},o=e.map(e=>e.init(i,r,a));return i.injectEndpoints({endpoints:t.endpoints})}}function safeAssign$1(e,...t){return Object.assign(e,...t)}var buildBatchedActionsHandler=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const a=`${e.reducerPath}/subscriptions`;let i=null,o=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>c().get(e)?.size??0,isRequestSubscribed:(e,t)=>!!c()?.get(e)?.get(t)};function d(e){return JSON.parse(JSON.stringify(Object.fromEntries([...e].map(([e,t])=>[e,Object.fromEntries(t)]))))}return(r,c)=>{if(i||(i=d(n.currentSubscriptions)),e.util.resetApiState.match(r))return i={},n.currentSubscriptions.clear(),o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(r))return[!1,u];const p=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:a}=r.payload,i=n.get(e);return i?.has(t)&&i.set(t,a),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload,a=n.get(e);return a&&a.delete(t),!0}if(e.internalActions.removeQueryResult.match(r))return n.delete(r.payload.queryCacheKey),!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=getOrInsertComputed(n,e.queryCacheKey,createNewMap);return e.subscribe&&a.set(t,e.subscriptionOptions??a.get(t)??{}),!0}let a=!1;if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=getOrInsertComputed(n,t.queryCacheKey,createNewMap);e.set(i,t.subscriptionOptions??e.get(i)??{}),a=!0}}return a})(n.currentSubscriptions,r);let m=!0;if(p){o||(o=setTimeout(()=>{const t=d(n.currentSubscriptions),[,r]=produceWithPatches(i,()=>t);c.next(e.internalActions.subscriptionsUpdated(r)),i=t,o=null},500));const s="string"==typeof r.type&&!!r.type.startsWith(a),l=t.rejected.match(r)&&r.meta.condition&&!!r.meta.arg.subscribe;m=!s&&!l}return[m,!1]}},THIRTY_TWO_BIT_MAX_TIMER_SECONDS=2147482.647,buildCacheCollectionHandler=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:a,selectors:{selectQueryEntry:i,selectConfig:o},getRunningQueryThunk:s,mwApi:l})=>{const{removeQueryResult:c,unsubscribeQueryResult:u,cacheEntriesUpserted:d}=t.internalActions,p=isAnyOf(u.match,n.fulfilled,n.rejected,d.match);function m(e){const t=a.currentSubscriptions.get(e);return!!t&&t.size>0}const h={};function f(e){for(const t of e.values())t?.abort?.()}function g(e,t,n){const r=t.getState();for(const a of e){const e=i(r,a);e?.endpointName&&y(a,e.endpointName,t,n)}}function y(e,t,n,a){const o=getEndpointDefinition(r,t)?.keepUnusedDataFor??a.keepUnusedDataFor;if(o===1/0)return;const l=Math.max(0,Math.min(o,THIRTY_TWO_BIT_MAX_TIMER_SECONDS));if(!m(e)){const t=h[e];t&&clearTimeout(t),h[e]=setTimeout(()=>{if(!m(e)){const t=i(n.getState(),e);t?.endpointName&&n.dispatch(s(t.endpointName,t.originalArgs))?.abort(),n.dispatch(c({queryCacheKey:e}))}delete h[e]},1e3*l)}}return(e,n)=>{const i=o(n.getState());if(p(e)){let t;if(d.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{const{queryCacheKey:n}=u.match(e)?e.payload:e.meta.arg;t=[n]}g(t,n,i)}if(t.util.resetApiState.match(e)){for(const[e,t]of Object.entries(h))t&&clearTimeout(t),delete h[e];f(a.runningQueries),f(a.runningMutations)}if(r.hasRehydrationInfo(e)){const{queries:t}=r.extractRehydrationInfo(e);g(Object.keys(t),n,i)}}},neverResolvedError=new Error("Promise never resolved before cacheEntryRemoved."),buildCacheLifecycleHandler=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:i,selectors:{selectQueryEntry:o,selectApiState:s}})=>{const l=isAsyncThunkAction(r),c=isAsyncThunkAction(a),u=isFulfilled(r,a),d={},{removeQueryResult:p,removeMutationResult:m,cacheEntriesUpserted:h}=e.internalActions;function f(e,t,n){const r=d[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function g(e){const t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function y(e){const{arg:t,requestId:n}=e.meta,{endpointName:r,originalArgs:a}=t;return[r,a,n]}function v(t,r,a,i,o){const s=getEndpointDefinition(n,t),l=s?.onCacheEntryAdded;if(!l)return;const c={},u=new Promise(e=>{c.cacheEntryRemoved=e}),p=Promise.race([new Promise(e=>{c.valueResolved=e}),u.then(()=>{throw neverResolvedError})]);p.catch(()=>{}),d[a]=c;const m=e.endpoints[t].select(isAnyQueryDefinition(s)?r:a),h=i.dispatch((e,t,n)=>n),f=l(r,{...i,getCacheEntry:()=>m(i.getState()),requestId:o,extra:h,updateCachedData:isAnyQueryDefinition(s)?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:p,cacheEntryRemoved:u});Promise.resolve(f).catch(e=>{if(e!==neverResolvedError)throw e})}return(n,i,s)=>{const x=function(e){return l(e)?e.meta.arg.queryCacheKey:c(e)?e.meta.arg.fixedCacheKey??e.meta.requestId:p.match(e)?e.payload.queryCacheKey:m.match(e)?getMutationCacheKey(e.payload):""}(n);function b(e,t,n,r){const a=o(s,t),l=o(i.getState(),t);!a&&l&&v(e,r,t,i,n)}if(r.pending.match(n)){const[e,t,r]=y(n);b(e,x,r,t)}else if(h.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:a,queryCacheKey:i}=e;b(r,i,n.meta.requestId,a),f(i,t,{})}else if(a.pending.match(n)){if(i.getState()[t].mutations[x]){const[e,t,r]=y(n);v(e,t,x,i,r)}}else if(u(n))f(x,n.payload,n.meta.baseQueryMeta);else if(p.match(n)||m.match(n))g(x);else if(e.util.resetApiState.match(n))for(const e of Object.keys(d))g(e)}},buildDevCheckHandler=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},buildInvalidationByTagsHandler=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:i,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=i.internalActions,u=isAnyOf(isFulfilled(r),isRejectedWithValue(r)),d=isAnyOf(isFulfilled(a,r),isRejected(a,r));let p=[],m=0;function h(n,r){const a=r.getState(),o=a[e];if(p.push(...n),"delayed"===o.config.invalidationBehavior&&m>0)return;const u=p;if(p=[],0===u.length)return;const d=i.util.selectInvalidatedBy(a,u);t.batch(()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=o.queries[t],n=getOrInsertComputed(l.currentSubscriptions,t,createNewMap);e&&(0===n.size?r.dispatch(c({queryCacheKey:t})):e.status!==STATUS_UNINITIALIZED&&r.dispatch(s(e)))}})}return(e,t)=>{(a.pending.match(e)||r.pending.match(e))&&m++,d(e)&&(m=Math.max(0,m-1)),u(e)?h(calculateProvidedByThunk(e,"invalidatesTags",n,o),t):d(e)?h([],t):i.util.invalidateTags.match(e)&&h(calculateProvidedBy(e.payload,void 0,void 0,void 0,void 0,o),t)}},buildPollingHandler=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const{currentPolls:i,currentSubscriptions:o}=a,s=new Set;let l=null;function c(e,t){s.add(e),l||(l=setTimeout(()=>{for(const e of s)d({queryCacheKey:e},t);s.clear(),l=null},0))}function u({queryCacheKey:t},n){const a=n.getState()[e],s=a.queries[t],l=o.get(t);if(!s||s.status===STATUS_UNINITIALIZED)return;const{lowestPollingInterval:c,skipPollingIfUnfocused:d}=m(l);if(!Number.isFinite(c))return;const p=i.get(t);p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+c;i.set(t,{nextPollTimestamp:h,pollingInterval:c,timeout:setTimeout(()=>{!a.config.focused&&d||n.dispatch(r(s)),u({queryCacheKey:t},n)},c)})}function d({queryCacheKey:t},n){const r=n.getState()[e].queries[t],a=o.get(t);if(!r||r.status===STATUS_UNINITIALIZED)return;const{lowestPollingInterval:s}=m(a);if(!Number.isFinite(s))return void p(t);const l=i.get(t),c=Date.now()+s;(!l||c<l.nextPollTimestamp)&&u({queryCacheKey:t},n)}function p(e){const t=i.get(e);t?.timeout&&clearTimeout(t.timeout),i.delete(e)}function m(e=new Map){let t=!1,n=Number.POSITIVE_INFINITY;for(const r of e.values())r.pollingInterval&&(n=Math.min(r.pollingInterval,n),t=r.skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&c(e.payload.queryCacheKey,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&c(e.meta.arg.queryCacheKey,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&u(e.meta.arg,r),n.util.resetApiState.match(e)&&(!function(){for(const e of i.keys())p(e)}(),l&&(clearTimeout(l),l=null),s.clear())}},buildQueryLifecycleHandler=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=isPending(n,r),i=isRejected(n,r),o=isFulfilled(n,r),s={};return(n,r)=>{if(a(n)){const{requestId:a,arg:{endpointName:i,originalArgs:o}}=n.meta,l=getEndpointDefinition(t,i),c=l?.onQueryStarted;if(c){const t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),s[a]=t;const u=e.endpoints[i].select(isAnyQueryDefinition(l)?o:a),d=r.dispatch((e,t,n)=>n);c(o,{...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:d,updateCachedData:isAnyQueryDefinition(l)?t=>r.dispatch(e.util.updateQueryData(i,o,t)):void 0,queryFulfilled:n})}}else if(o(n)){const{requestId:e,baseQueryMeta:t}=n.meta;s[e]?.resolve({data:n.payload,meta:t}),delete s[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;s[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},buildWindowEventHandler=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:i}=n.internalActions;function o(n,o){const s=n.getState()[e],l=s.queries,c=a.currentSubscriptions;t.batch(()=>{for(const e of c.keys()){const t=l[e],a=c.get(e);if(!a||!t)continue;const u=[...a.values()];(u.some(e=>!0===e[o])||u.every(e=>void 0===e[o])&&s.config[o])&&(0===a.size?n.dispatch(i({queryCacheKey:e})):t.status!==STATUS_UNINITIALIZED&&n.dispatch(r(t)))}})}return(e,t)=>{onFocus.match(e)&&o(t,"refetchOnFocus"),onOnline.match(e)&&o(t,"refetchOnReconnect")}};function buildMiddleware(e){const{reducerPath:t,queryThunk:n,api:r,context:a,getInternalState:i}=e,{apiUid:o}=a,s={invalidateTags:createAction(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),c=[buildDevCheckHandler,buildCacheCollectionHandler,buildInvalidationByTagsHandler,buildPollingHandler,buildCacheLifecycleHandler,buildQueryLifecycleHandler];return{middleware:n=>{let s=!1;const d=i(n.dispatch),p={...e,internalState:d,refetchQuery:u,isThisApiSliceAction:l,mwApi:n},m=c.map(e=>e(p)),h=buildBatchedActionsHandler(p),f=buildWindowEventHandler(p);return e=>i=>{if(!isAction(i))return e(i);s||(s=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const c={...n,next:e},u=n.getState(),[d,p]=h(i,c,u);let g;if(g=d?e(i):p,n.getState()[t]&&(f(i,c,u),l(i)||a.hasRehydrationInfo(i)))for(const e of m)e(i,c,u);return g}},actions:s};function u(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var coreModuleName=Symbol(),coreModule=({createSelector:e=createSelector}={})=>({name:coreModuleName,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:i,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:u,onSchemaFailure:d,catchSchemaFailure:p,skipSchemaValidation:m},h){enablePatches();const f=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:onOnline,onOffline:onOffline,onFocus:onFocus,onFocusLost:onFocusLost},util:{}});const g=buildSelectors({serializeQueryArgs:i,reducerPath:a,createSelector:e}),{selectInvalidatedBy:y,selectCachedArgsForQuery:v,buildQuerySelector:x,buildInfiniteQuerySelector:b,buildMutationSelector:S}=g;safeAssign$1(t.util,{selectInvalidatedBy:y,selectCachedArgsForQuery:v});const{queryThunk:C,infiniteQueryThunk:_,mutationThunk:w,patchQueryData:E,updateQueryData:A,upsertQueryData:k,prefetch:T,buildMatchThunkActions:I}=buildThunks({baseQuery:n,reducerPath:a,context:h,api:t,serializeQueryArgs:i,assertTagType:f,selectors:g,onSchemaFailure:d,catchSchemaFailure:p,skipSchemaValidation:m}),{reducer:P,actions:M}=buildSlice({context:h,queryThunk:C,infiniteQueryThunk:_,mutationThunk:w,serializeQueryArgs:i,reducerPath:a,assertTagType:f,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:a,invalidationBehavior:u}});safeAssign$1(t.util,{patchQueryData:E,updateQueryData:A,upsertQueryData:k,prefetch:T,resetApiState:M.resetApiState,upsertQueryEntries:M.cacheEntriesUpserted}),safeAssign$1(t.internalActions,M);const R=new WeakMap,$=e=>getOrInsertComputed(R,e,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:D,buildInitiateInfiniteQuery:N,buildInitiateMutation:O,getRunningMutationThunk:F,getRunningMutationsThunk:L,getRunningQueriesThunk:j,getRunningQueryThunk:B}=buildInitiate({queryThunk:C,mutationThunk:w,infiniteQueryThunk:_,api:t,serializeQueryArgs:i,context:h,getInternalState:$});safeAssign$1(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:L,getRunningQueryThunk:B,getRunningQueriesThunk:j});const{middleware:V,actions:U}=buildMiddleware({reducerPath:a,context:h,queryThunk:C,mutationThunk:w,infiniteQueryThunk:_,api:t,assertTagType:f,selectors:g,getRunningQueryThunk:B,getInternalState:$});return safeAssign$1(t.util,U),safeAssign$1(t,{reducer:P,middleware:V}),{name:coreModuleName,injectEndpoint(e,n){const r=t,a=r.endpoints[e]??={};isQueryDefinition$1(n)&&safeAssign$1(a,{name:e,select:x(e,n),initiate:D(e,n)},I(C,e)),isMutationDefinition$1(n)&&safeAssign$1(a,{name:e,select:S(),initiate:O(e)},I(w,e)),isInfiniteQueryDefinition$1(n)&&safeAssign$1(a,{name:e,select:b(e,n),initiate:N(e,n)},I(C,e))}}}}),createApi$1=buildCreateApi(coreModule());function capitalize(e){return e.replace(e[0],e[0].toUpperCase())}var ENDPOINT_QUERY="query",ENDPOINT_MUTATION="mutation",ENDPOINT_INFINITEQUERY="infinitequery";function isQueryDefinition(e){return e.type===ENDPOINT_QUERY}function isMutationDefinition(e){return e.type===ENDPOINT_MUTATION}function isInfiniteQueryDefinition(e){return e.type===ENDPOINT_INFINITEQUERY}function safeAssign(e,...t){return Object.assign(e,...t)}var UNINITIALIZED_VALUE=Symbol();function useStableQueryArgs(e){const t=(0,import_react.useRef)(e),n=(0,import_react.useMemo)(()=>copyWithStructuralSharing(t.current,e),[e]);return(0,import_react.useEffect)(()=>{t.current!==n&&(t.current=n)},[n]),n}function useShallowStableValue(e){const t=(0,import_react.useRef)(e);return(0,import_react.useEffect)(()=>{shallowEqual(t.current,e)||(t.current=e)},[e]),shallowEqual(t.current,e)?t.current:e}var canUseDOM=()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),isDOM=canUseDOM(),isRunningInReactNative=()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product,isReactNative=isRunningInReactNative(),getUseIsomorphicLayoutEffect=()=>isDOM||isReactNative?import_react.useLayoutEffect:import_react.useEffect,useIsomorphicLayoutEffect$2=getUseIsomorphicLayoutEffect(),noPendingQueryStateSelector=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:QueryStatus.pending}:e;function pick(e,...t){const n={};return t.forEach(t=>{n[t]=e[t]}),n}var COMMON_HOOK_DEBUG_FIELDS=["data","status","isLoading","isSuccess","isError","error"];function buildHooks({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:i,createSelector:o},serializeQueryArgs:s,context:l}){const c=i?e=>e():import_react.useEffect,u=e=>e.current?.unsubscribe?.(),d=l.endpointDefinitions;return{buildQueryHooks:function(r){const a=(e,t={})=>{const[n]=h(r,e,t);return g(n),(0,import_react.useMemo)(()=>({refetch:()=>function(e){if(!e.current)throw new Error(formatProdErrorMessage(38));return e.current.refetch()}(n)}),[n])},i=({refetchOnReconnect:a,refetchOnFocus:i,pollingInterval:o=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:l}=e.endpoints[r],d=n(),[p,m]=(0,import_react.useState)(UNINITIALIZED_VALUE),h=(0,import_react.useRef)(void 0),f=useShallowStableValue({refetchOnReconnect:a,refetchOnFocus:i,pollingInterval:o,skipPollingIfUnfocused:s});c(()=>{f!==h.current?.subscriptionOptions&&h.current?.updateSubscriptionOptions(f)},[f]);const g=(0,import_react.useRef)(f);c(()=>{g.current=f},[f]);const y=(0,import_react.useCallback)(function(e,n=!1){let r;return t(()=>{u(h),h.current=r=d(l(e,{subscriptionOptions:g.current,forceRefetch:!n})),m(e)}),r},[d,l]),v=(0,import_react.useCallback)(()=>{h.current?.queryCacheKey&&d(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))},[d]);return(0,import_react.useEffect)(()=>()=>{u(h)},[]),(0,import_react.useEffect)(()=>{p===UNINITIALIZED_VALUE||h.current||y(p,!0)},[p,y]),(0,import_react.useMemo)(()=>[y,p,{reset:v}],[y,p,v])},o=f(r,p);return{useQueryState:o,useQuerySubscription:a,useLazyQuerySubscription:i,useLazyQuery(e){const[t,n,{reset:r}]=i(e),a=o(n,{...e,skip:n===UNINITIALIZED_VALUE}),s=(0,import_react.useMemo)(()=>({lastArg:n}),[n]);return(0,import_react.useMemo)(()=>[t,{...a,reset:r},s],[t,a,r,s])},useQuery(e,t){const n=a(e,t),r=o(e,{selectFromResult:e===skipToken||t?.skip?void 0:noPendingQueryStateSelector,...t});return(0,import_react.useDebugValue)(pick(r,...COMMON_HOOK_DEBUG_FIELDS)),(0,import_react.useMemo)(()=>({...r,...n}),[r,n])}}},buildInfiniteQueryHooks:function(e){const n=(n,r={})=>{const[a,i,o,s]=h(e,n,r),l=(0,import_react.useRef)(s);c(()=>{l.current=s},[s]);const d=useShallowStableValue(r.refetchCachedPages),p=(0,import_react.useCallback)(function(e,n){let r;return t(()=>{u(a),a.current=r=i(o(e,{subscriptionOptions:l.current,direction:n}))}),r},[a,i,o]);g(a);const m=useStableQueryArgs(r.skip?skipToken:n),f=(0,import_react.useCallback)(e=>{if(!a.current)throw new Error(formatProdErrorMessage(38));const t={refetchCachedPages:e?.refetchCachedPages??d};return a.current.refetch(t)},[a,d]);return(0,import_react.useMemo)(()=>({trigger:p,refetch:f,fetchNextPage:()=>p(m,"forward"),fetchPreviousPage:()=>p(m,"backward")}),[f,p,m])},r=f(e,m);return{useInfiniteQueryState:r,useInfiniteQuerySubscription:n,useInfiniteQuery(e,t){const{refetch:a,fetchNextPage:i,fetchPreviousPage:o}=n(e,t),s=r(e,{selectFromResult:e===skipToken||t?.skip?void 0:noPendingQueryStateSelector,...t});return(0,import_react.useDebugValue)(pick(s,...COMMON_HOOK_DEBUG_FIELDS,"hasNextPage","hasPreviousPage")),(0,import_react.useMemo)(()=>({...s,fetchNextPage:i,fetchPreviousPage:o,refetch:a}),[s,i,o,a])}}},buildMutationHook:function(a){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:l,initiate:c}=e.endpoints[a],u=n(),[d,p]=(0,import_react.useState)();(0,import_react.useEffect)(()=>()=>{d?.arg.fixedCacheKey||d?.reset()},[d]);const m=(0,import_react.useCallback)(function(e){const t=u(c(e,{fixedCacheKey:s}));return p(t),t},[u,c,s]),{requestId:h}=d||{},f=(0,import_react.useMemo)(()=>l({fixedCacheKey:s,requestId:d?.requestId}),[s,d,l]),g=r((0,import_react.useMemo)(()=>i?o([f],i):f,[i,f]),shallowEqual),y=null==s?d?.arg.originalArgs:void 0,v=(0,import_react.useCallback)(()=>{t(()=>{d&&p(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))})},[u,s,d,h]);(0,import_react.useDebugValue)(pick(g,...COMMON_HOOK_DEBUG_FIELDS,"endpointName"));const x=(0,import_react.useMemo)(()=>({...g,originalArgs:y,reset:v}),[g,y,v]);return(0,import_react.useMemo)(()=>[m,x],[m,x])}},usePrefetch:function(t,r){const a=n(),i=useShallowStableValue(r);return(0,import_react.useCallback)((n,r)=>a(e.util.prefetch(t,n,{...i,...r})),[t,a,i])}};function p(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=d[e];n!==skipToken&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const a=void 0!==r,i=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!a&&i,l=e.isSuccess||a&&(i&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:i,isLoading:o,isSuccess:l}}function m(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=d[e];n!==skipToken&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const a=void 0!==r,i=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!a&&i,l=e.isSuccess||a&&(i&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:i,isLoading:o,isSuccess:l}}function h(t,r,{refetchOnReconnect:a,refetchOnFocus:i,refetchOnMountOrArgChange:o,skip:s=!1,pollingInterval:l=0,skipPollingIfUnfocused:u=!1,...p}={}){const{initiate:m}=e.endpoints[t],h=n(),f=(0,import_react.useRef)(void 0);f.current||(f.current=h(e.internalActions.internal_getRTKQSubscriptions()));const g=useStableQueryArgs(s?skipToken:r),y=useShallowStableValue({refetchOnReconnect:a,refetchOnFocus:i,pollingInterval:l,skipPollingIfUnfocused:u}),v=useShallowStableValue(p.initialPageParam),x=useShallowStableValue(p.refetchCachedPages),b=(0,import_react.useRef)(void 0);let{queryCacheKey:S,requestId:C}=b.current||{},_=!1;S&&C&&(_=f.current.isRequestSubscribed(S,C));const w=!_&&void 0!==b.current;return c(()=>{w&&(b.current=void 0)},[w]),c(()=>{const e=b.current;if(g===skipToken)return e?.unsubscribe(),void(b.current=void 0);const n=b.current?.subscriptionOptions;e&&e.arg===g?y!==n&&e.updateSubscriptionOptions(y):(e?.unsubscribe(),b.current=h(m(g,{subscriptionOptions:y,forceRefetch:o,...isInfiniteQueryDefinition(d[t])?{initialPageParam:v,refetchCachedPages:x}:{}})))},[h,m,o,g,y,w,v,x,t]),[b,h,m,y]}function f(t,n){return(i,{skip:s=!1,selectFromResult:l}={})=>{const{select:c}=e.endpoints[t],u=useStableQueryArgs(s?skipToken:i),d=(0,import_react.useRef)(void 0),p=(0,import_react.useMemo)(()=>o([c(u),(e,t)=>t,e=>u],n,{memoizeOptions:{resultEqualityCheck:shallowEqual}}),[c,u]),m=(0,import_react.useMemo)(()=>l?o([p],l,{devModeChecks:{identityFunctionCheck:"never"}}):p,[p,l]),h=r(e=>m(e,d.current),shallowEqual),f=p(a().getState(),d.current);return useIsomorphicLayoutEffect$2(()=>{d.current=f},[f]),h}}function g(e){(0,import_react.useEffect)(()=>()=>{u(e),e.current=void 0},[e])}}var reactHooksModuleName=Symbol(),reactHooksModule=({batch:e=batch,hooks:t={useDispatch:useDispatch,useSelector:useSelector,useStore:useStore},createSelector:n=createSelector,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:reactHooksModuleName,init(a,{serializeQueryArgs:i},o){const s=a,{buildQueryHooks:l,buildInfiniteQueryHooks:c,buildMutationHook:u,usePrefetch:d}=buildHooks({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:i,context:o});return safeAssign(s,{usePrefetch:d}),safeAssign(o,{batch:e}),{injectEndpoint(e,t){if(isQueryDefinition(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:o}=l(e);safeAssign(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:o}),a[`use${capitalize(e)}Query`]=t,a[`useLazy${capitalize(e)}Query`]=n}if(isMutationDefinition(t)){const t=u(e);safeAssign(s.endpoints[e],{useMutation:t}),a[`use${capitalize(e)}Mutation`]=t}else if(isInfiniteQueryDefinition(t)){const{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}=c(e);safeAssign(s.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}),a[`use${capitalize(e)}InfiniteQuery`]=t}}}}}),createApi=buildCreateApi(coreModule(),reactHooksModule()),logOut=createAction("auth/logout"),getPropertyStartWith=(e={},t)=>{let n="";return Object.keys(e).forEach(e=>{e.includes(t)&&(n=e)}),n},baseQueryRequest=async({state:e,baseQuery:t,args:n,api:r,extraOptions:a,isUseCredentials:i=!0,prepareHeaders:o})=>{const s=getPropertyStartWith(e.publicApi?.queries,"getDomainSettings");let l;return l=s&&e.publicApi?.queries?.[s]?.data||e.domain?.settings?.domain_settings?.api?await fetchBaseQuery({baseUrl:`https://${(e.publicApi?.queries?.[s]?.data||e.domain.settings).domain_settings.api}`,...i?{credentials:"include"}:{},...o?{prepareHeaders:o}:{}})(n,r,a):await t(n,r,a),l};function e$1(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function n$1(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var r$2={exclude:[],include:[],logging:!0},o$3={},a$1={timeout:"true"},i$2=function(e,t){"undefined"!=typeof window&&(o$3[e]=t)},u=function(){return Object.fromEntries(Object.entries(o$3).filter(function(e){var t,n=e[0];return!(null===(t=null==r$2?void 0:r$2.exclude)||void 0===t?void 0:t.includes(n))}).filter(function(e){var t,n,r,a,i=e[0];return(null===(t=null==r$2?void 0:r$2.include)||void 0===t?void 0:t.some(function(e){return e.includes(".")}))?null===(n=null==r$2?void 0:r$2.include)||void 0===n?void 0:n.some(function(e){return e.startsWith(i)}):0===(null===(r=null==r$2?void 0:r$2.include)||void 0===r?void 0:r.length)||(null===(a=null==r$2?void 0:r$2.include)||void 0===a?void 0:a.includes(i))}).map(function(e){return[e[0],(0,e[1])()]}))};function c$1(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var s$2=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l$1(e,t){return e<<t|e>>>32-t}function d(e,t){var n;if(void 0===t&&(t=0),t=t?0|t:0,"string"==typeof e&&(n=e,e=(new TextEncoder).encode(n).buffer),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var r=new Uint32Array([t,t,t,t]);(function(e,t){for(var n=e.byteLength/16|0,r=new Uint32Array(e,0,4*n),a=0;a<n;a++){var i=r.subarray(4*a,4*(a+1));i[0]=Math.imul(i[0],s$2[0]),i[0]=l$1(i[0],15),i[0]=Math.imul(i[0],s$2[1]),t[0]=t[0]^i[0],t[0]=l$1(t[0],19),t[0]=t[0]+t[1],t[0]=Math.imul(t[0],5)+1444728091,i[1]=Math.imul(i[1],s$2[1]),i[1]=l$1(i[1],16),i[1]=Math.imul(i[1],s$2[2]),t[1]=t[1]^i[1],t[1]=l$1(t[1],17),t[1]=t[1]+t[2],t[1]=Math.imul(t[1],5)+197830471,i[2]=Math.imul(i[2],s$2[2]),i[2]=l$1(i[2],17),i[2]=Math.imul(i[2],s$2[3]),t[2]=t[2]^i[2],t[2]=l$1(t[2],15),t[2]=t[2]+t[3],t[2]=Math.imul(t[2],5)+2530024501,i[3]=Math.imul(i[3],s$2[3]),i[3]=l$1(i[3],18),i[3]=Math.imul(i[3],s$2[0]),t[3]=t[3]^i[3],t[3]=l$1(t[3],13),t[3]=t[3]+t[0],t[3]=Math.imul(t[3],5)+850148119}})(e,r),function(e,t){var n=e.byteLength/16|0,r=e.byteLength%16,a=new Uint32Array(4),i=new Uint8Array(e,16*n,r);switch(r){case 15:a[3]=a[3]^i[14]<<16;case 14:a[3]=a[3]^i[13]<<8;case 13:a[3]=a[3]^(i[12]|0),a[3]=Math.imul(a[3],s$2[3]),a[3]=l$1(a[3],18),a[3]=Math.imul(a[3],s$2[0]),t[3]=t[3]^a[3];case 12:a[2]=a[2]^i[11]<<24;case 11:a[2]=a[2]^i[10]<<16;case 10:a[2]=a[2]^i[9]<<8;case 9:a[2]=a[2]^(i[8]|0),a[2]=Math.imul(a[2],s$2[2]),a[2]=l$1(a[2],17),a[2]=Math.imul(a[2],s$2[3]),t[2]=t[2]^a[2];case 8:a[1]=a[1]^i[7]<<24;case 7:a[1]=a[1]^i[6]<<16;case 6:a[1]=a[1]^i[5]<<8;case 5:a[1]=a[1]^(i[4]|0),a[1]=Math.imul(a[1],s$2[1]),a[1]=l$1(a[1],16),a[1]=Math.imul(a[1],s$2[2]),t[1]=t[1]^a[1];case 4:a[0]=a[0]^i[3]<<24;case 3:a[0]=a[0]^i[2]<<16;case 2:a[0]=a[0]^i[1]<<8;case 1:a[0]=a[0]^(i[0]|0),a[0]=Math.imul(a[0],s$2[0]),a[0]=l$1(a[0],15),a[0]=Math.imul(a[0],s$2[1]),t[0]=t[0]^a[0]}}(e,r),function(e,t){t[0]=t[0]^e.byteLength,t[1]=t[1]^e.byteLength,t[2]=t[2]^e.byteLength,t[3]=t[3]^e.byteLength,t[0]=t[0]+t[1]|0,t[0]=t[0]+t[2]|0,t[0]=t[0]+t[3]|0,t[1]=t[1]+t[0]|0,t[2]=t[2]+t[0]|0,t[3]=t[3]+t[0]|0,t[0]=c$1(t[0]),t[1]=c$1(t[1]),t[2]=c$1(t[2]),t[3]=c$1(t[3]),t[0]=t[0]+t[1]|0,t[0]=t[0]+t[2]|0,t[0]=t[0]+t[3]|0,t[1]=t[1]+t[0]|0,t[2]=t[2]+t[0]|0,t[3]=t[3]+t[0]|0}(e,r);var a=new Uint8Array(r.buffer);return Array.from(a).map(function(e){return e.toString(16).padStart(2,"0")}).join("")}function f$1(e,t){return new Promise(function(n){setTimeout(function(){return n(t)},e)})}function m(e,t,n){return Promise.all(e.map(function(e){return Promise.race([e,f$1(t,n)])}))}var v$3="0.20.0";function g$1(){return v$3}function p$1(){return e$1(this,void 0,void 0,function(){var e,t,n,r,a;return n$1(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),e=u(),t=Object.keys(e),[4,m(Object.values(e),(null==r$2?void 0:r$2.timeout)||1e3,a$1)];case 1:return n=i.sent(),r=n.filter(function(e){return void 0!==e}),a={},r.forEach(function(e,n){a[t[n]]=e}),[2,w$3(a,r$2.exclude||[],r$2.include||[],"")];case 2:throw i.sent();case 3:return[2]}})})}function w$3(e,t,n,r){void 0===r&&(r="");for(var a={},i=function(e,i){var o=r+e+".";if("object"!=typeof i||Array.isArray(i)){var s=t.some(function(e){return o.startsWith(e)}),l=n.some(function(e){return o.startsWith(e)});s&&!l||(a[e]=i)}else{var c=w$3(i,t,n,o);Object.keys(c).length>0&&(a[e]=c)}},o=0,s=Object.entries(e);o<s.length;o++){var l=s[o];i(l[0],l[1])}return a}function y(e){return e$1(this,void 0,void 0,function(){var t,n;return n$1(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,p$1()];case 1:return t=r.sent(),n=d(JSON.stringify(t)),Math.random()<.001&&r$2.logging&&function(e,t){e$1(this,void 0,void 0,function(){var n,r;return n$1(this,function(a){switch(a.label){case 0:if(n="https://logging.thumbmarkjs.com/v1/log",r={thumbmark:e,components:t,version:g$1()},sessionStorage.getItem("_tmjs_l"))return[3,4];sessionStorage.setItem("_tmjs_l","1"),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})];case 2:case 3:return a.sent(),[3,4];case 4:return[2]}})})}(n,t),e?[2,{hash:n.toString(),data:t}]:[2,n.toString()];case 2:throw r.sent();case 3:return[2]}})})}function S(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,t={edg:"Edge",opr:"Opera",samsung:"SamsungBrowser"},n=0,r=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>samsung).*Version\/(?<version>\d+(?:\.\d+)?)/i];n<r.length;n++){var a=r[n],i=e.match(a);if(i&&i.groups)return{name:t[i.groups.name.toLowerCase()]||i.groups.name,version:i.groups.version}}return{name:"unknown",version:"unknown"}}function M$2(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}var E=S();function P(e,t,n){for(var r=[],a=0;a<e[0].data.length;a++){for(var i=[],o=0;o<e.length;o++)i.push(e[o].data[a]);r.push(A(i))}var s=new Uint8ClampedArray(r);return new ImageData(s,t,n)}function A(e){if(0===e.length)return 0;for(var t={},n=0,r=e;n<r.length;n++)t[i=r[n]]=(t[i]||0)+1;var a=e[0];for(var i in t)t[i]>t[a]&&(a=parseInt(i,10));return a}["SamsungBrowser","Safari"].includes(E.name)||i$2("audio",function(){return e$1(this,void 0,void 0,function(){return n$1(this,function(e){return[2,new Promise(function(e,t){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),r=n.createBufferSource(),a=n.createOscillator();a.frequency.value=1e3;var i,o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.2,a.connect(o),o.connect(n.destination),a.start(),n.oncomplete=function(t){i=t.renderedBuffer.getChannelData(0),e({sampleHash:M$2(i),oscillator:a.type,maxChannels:n.destination.maxChannelCount,channelCountMode:r.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),t(e)}})]})})});var C="SamsungBrowser"!==S().name?1:3,x=280,T=20;"Firefox"!=S().name&&i$2("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(e){e({commonImageDataHash:d(P(Array.from({length:C},function(){return function(){var e=document.createElement("canvas"),t=e.getContext("2d");if(!t)return new ImageData(1,1);e.width=x,e.height=T;var n=t.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),t.fillStyle=n,t.fillRect(0,0,e.width,e.height);var r="Random Text WMwmil10Oo";return t.font="23.123px Arial",t.fillStyle="black",t.fillText(r,-5,15),t.fillStyle="rgba(0, 0, 255, 0.5)",t.fillText(r,-3.3,17.7),t.beginPath(),t.moveTo(0,0),t.lineTo(2*e.width/7,e.height),t.strokeStyle="white",t.lineWidth=2,t.stroke(),t.getImageData(0,0,e.width,e.height)}()}),x,T).data.toString()).toString()})})});var k,I=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R=["monospace","sans-serif","serif"];function _(e,t){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(t),e.measureText("WwMmLli0Oo").width}function O(){var e,t=document.createElement("canvas"),n=null!==(e=t.getContext("webgl"))&&void 0!==e?e:t.getContext("experimental-webgl");if(n&&"getParameter"in n)try{var r=(n.getParameter(n.VENDOR)||"").toString(),a=(n.getParameter(n.RENDERER)||"").toString(),i={vendor:r,renderer:a,version:(n.getParameter(n.VERSION)||"").toString(),shadingLanguageVersion:(n.getParameter(n.SHADING_LANGUAGE_VERSION)||"").toString()};if(!a.length||!r.length){var o=n.getExtension("WEBGL_debug_renderer_info");if(o){var s=(n.getParameter(o.UNMASKED_VENDOR_WEBGL)||"").toString(),l=(n.getParameter(o.UNMASKED_RENDERER_WEBGL)||"").toString();s&&(i.vendorUnmasked=s),l&&(i.rendererUnmasked=l)}}return i}catch(e){}return"undefined"}function L(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function B(e,t){var n={};return t.forEach(function(t){var r=function(e){if(0===e.length)return null;var t={};e.forEach(function(e){var n=String(e);t[n]=(t[n]||0)+1});var n=e[0],r=1;return Object.keys(t).forEach(function(e){t[e]>r&&(n=e,r=t[e])}),n}(e.map(function(e){return t in e?e[t]:void 0}).filter(function(e){return void 0!==e}));r&&(n[t]=r)}),n}function D(){var e=[],t={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(t).forEach(function(n){t[n].forEach(function(t){matchMedia("(".concat(n,": ").concat(t,")")).matches&&e.push("".concat(n,": ").concat(t))})}),e}function U(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)try{for(var e=window.ApplePaySession.supportsVersion,t=15;t>0;t--)if(e(t))return t}catch(e){return 0}return 0}"Firefox"!=S().name&&i$2("fonts",function(){var t=this;return new Promise(function(n,r){try{!function(e){var t;e$1(this,void 0,void 0,function(){var n,r,a;return n$1(this,function(i){switch(i.label){case 0:return document.body?[3,2]:[4,new Promise(function(e){return setTimeout(e,50,void 0)})];case 1:return i.sent(),[3,0];case 2:if((n=document.createElement("iframe")).setAttribute("frameBorder","0"),(r=n.style).setProperty("position","fixed"),r.setProperty("display","block","important"),r.setProperty("visibility","visible"),r.setProperty("border","0"),r.setProperty("opacity","0"),n.src="about:blank",document.body.appendChild(n),!(a=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout(function(){document.body.removeChild(n)},0),[2]}})})}(function(e){var r=e.iframe;return e$1(t,void 0,void 0,function(){var e,t,a,i;return n$1(this,function(o){return e=r.createElement("canvas"),t=e.getContext("2d"),a=R.map(function(e){return _(t,e)}),i={},I.forEach(function(e){var n=_(t,e);a.includes(n)||(i[e]=n)}),n(i),[2]})})})}catch(e){r({error:"unsupported"})}})}),i$2("hardware",function(){return new Promise(function(e,t){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,r=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:O(),architecture:L(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:r.jsHeapSizeLimit||0})})}),i$2("locales",function(){return new Promise(function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),i$2("permissions",function(){return e$1(this,void 0,void 0,function(){var e;return n$1(this,function(t){return k=(null==r$2?void 0:r$2.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],e=Array.from({length:(null==r$2?void 0:r$2.retries)||3},function(){return function(){return e$1(this,void 0,void 0,function(){var e,t,n,r,a;return n$1(this,function(i){switch(i.label){case 0:e={},t=0,n=k,i.label=1;case 1:if(!(t<n.length))return[3,6];r=n[t],i.label=2;case 2:return i.trys.push([2,4,,5]),[4,navigator.permissions.query({name:r})];case 3:return a=i.sent(),e[r]=a.state.toString(),[3,5];case 4:return i.sent(),[3,5];case 5:return t++,[3,1];case 6:return[2,e]}})})}()}),[2,Promise.all(e).then(function(e){return B(e,k)})]})})}),i$2("plugins",function(){var e=[];if(navigator.plugins)for(var t=0;t<navigator.plugins.length;t++){var n=navigator.plugins[t];e.push([n.name,n.filename,n.description].join("|"))}return new Promise(function(t){t({plugins:e})})}),i$2("screen",function(){return new Promise(function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})})}),i$2("system",function(){return new Promise(function(e){var t=S();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:t.name,version:t.version},applePayVersion:U()})})});var F,N="SamsungBrowser"!==S().name?1:3,j=null;i$2("webgl",function(){return e$1(this,void 0,void 0,function(){var e;return n$1(this,function(t){"undefined"!=typeof document&&((F=document.createElement("canvas")).width=200,F.height=100,j=F.getContext("webgl"));try{if(!j)throw new Error("WebGL not supported");return e=Array.from({length:N},function(){return function(){try{if(!j)throw new Error("WebGL not supported");var t=j.createShader(j.VERTEX_SHADER),n=j.createShader(j.FRAGMENT_SHADER);if(!t||!n)throw new Error("Failed to create shaders");if(j.shaderSource(t,"\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n "),j.shaderSource(n,"\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n "),j.compileShader(t),!j.getShaderParameter(t,j.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+j.getShaderInfoLog(t));if(j.compileShader(n),!j.getShaderParameter(n,j.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+j.getShaderInfoLog(n));var r=j.createProgram();if(!r)throw new Error("Failed to create shader program");if(j.attachShader(r,t),j.attachShader(r,n),j.linkProgram(r),!j.getProgramParameter(r,j.LINK_STATUS))throw new Error("Shader program linking failed: "+j.getProgramInfoLog(r));j.useProgram(r);for(var a=137,i=new Float32Array(548),o=2*Math.PI/a,s=0;s<a;s++){var l=s*o;i[4*s]=0,i[4*s+1]=0,i[4*s+2]=Math.cos(l)*(F.width/2),i[4*s+3]=Math.sin(l)*(F.height/2)}var c=j.createBuffer();j.bindBuffer(j.ARRAY_BUFFER,c),j.bufferData(j.ARRAY_BUFFER,i,j.STATIC_DRAW);var u=j.getAttribLocation(r,"position");j.enableVertexAttribArray(u),j.vertexAttribPointer(u,2,j.FLOAT,!1,0,0),j.viewport(0,0,F.width,F.height),j.clearColor(0,0,0,1),j.clear(j.COLOR_BUFFER_BIT),j.drawArrays(j.LINES,0,274);var d=new Uint8ClampedArray(F.width*F.height*4);return j.readPixels(0,0,F.width,F.height,j.RGBA,j.UNSIGNED_BYTE,d),new ImageData(d,F.width,F.height)}catch(e){return new ImageData(1,1)}finally{j&&(j.bindBuffer(j.ARRAY_BUFFER,null),j.useProgram(null),j.viewport(0,0,j.drawingBufferWidth,j.drawingBufferHeight),j.clearColor(0,0,0,0))}}()}),[2,{commonImageHash:d(P(e,F.width,F.height).data.toString()).toString()}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]})})});var G=function(e,t,n,r){for(var a=(n-t)/r,i=0,o=0;o<r;o++)i+=e(t+(o+.5)*a);return i*a};i$2("math",function(){return e$1(void 0,void 0,void 0,function(){return n$1(this,function(e){return[2,{acos:Math.acos(.5),asin:G(Math.asin,-1,1,97),atan:G(Math.atan,-1,1,97),cos:G(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:G(Math.sin,-Math.PI,Math.PI,97),sinh:G(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:G(Math.tan,0,2*Math.PI,97),tanh:G(Math.tanh,-9/7,7/9,97)}]})})});var byteToHex=[];for(let Fe=0;Fe<256;++Fe)byteToHex.push((Fe+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase()}var rnds8=new Uint8Array(16);function rng(){return crypto.getRandomValues(rnds8)}function v4(e,t,n){return t||e||!crypto.randomUUID?_v4(e,t,n):crypto.randomUUID()}function _v4(e,t,n){const r=(e=e||{}).random??e.rng?.()??rng();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return unsafeStringify(r)}var getFingerPrintPromise=async()=>y(),fingerPrintPromise=getFingerPrintPromise(),sessionIdString=v4(),setSessionHeaders=async e=>{e.set("X-Client-Id",await fingerPrintPromise),e.set("X-Session-Id",sessionIdString)},setWidgetSessionHeaders=async e=>{await setSessionHeaders(e);const t=getEnvVar("REACT_APP_WIDGET_VERSION");t&&e.set("X-Widget-Version",t)},prepareHeaders$2=async(e,t)=>{const n=t.getState();await setSessionHeaders(e),n.dashboard.session.dashboardVariantId===DashboardVariantEnum.KYC&&n.dashboard.session.isSandbox&&e.set("ds-sandbox","true")},baseQuery$1=fetchBaseQuery({baseUrl:getEnvVar("REACT_APP_API_BASE_URL"),credentials:"include",prepareHeaders:prepareHeaders$2}),baseQueryWithInterceptor$1=async(e,t,n)=>{const r=t.getState(),a=await baseQueryRequest({state:r,baseQuery:baseQuery$1,args:e,api:t,extraOptions:n,prepareHeaders:prepareHeaders$2});return a.error&&await apiLogger(r,a),a.error&&401===a.error.status&&r.auth?.user?.info?.account?.account_id&&t.dispatch(logOut()),a},dashboardApi=createApi({reducerPath:"dashboardApi",baseQuery:baseQueryWithInterceptor$1,tagTypes:[ApiTagEnum.ORGANIZATIONS,ApiTagEnum.INVITATIONS,ApiTagEnum.DEVELOPER_SETTINGS,ApiTagEnum.ORGANIZATION_INFO,ApiTagEnum.VERIFICATION,ApiTagEnum.APPLICANTS,ApiTagEnum.APPLICANT_ALERTS,ApiTagEnum.FILE_UPLOADS,ApiTagEnum.PEPS,ApiTagEnum.CONTACT_US,ApiTagEnum.LIST_TEAM,ApiTagEnum.CURRENT_ORGANIZATION,ApiTagEnum.CURRENT_BILLING_ORGANIZATION,ApiTagEnum.PEP,ApiTagEnum.UPDATE_PROFILE,ApiTagEnum.APPLICANT,ApiTagEnum.REAL_TIME_BALANCE,ApiTagEnum.VERIFICATION_FLOW,ApiTagEnum.DEEPFAKE_JOBS,ApiTagEnum.KYT_CHECKS],endpoints:()=>({})}),URL_PREFIX$5="webapi/account/",dashboardAccountApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getUserInfo:e.query({query:()=>`${URL_PREFIX$5}info`,transformResponse:e=>transformUserInfo(e)}),setupTwoFA:e.mutation({query:()=>({url:`${URL_PREFIX$5}settings/2fa/totp/setup`,method:"POST"})}),disableTwoFA:e.mutation({query:e=>({url:`${URL_PREFIX$5}settings/2fa/totp/disable`,method:"POST",body:e})}),confirmTwoFASetup:e.mutation({query:e=>({url:`${URL_PREFIX$5}settings/2fa/confirm`,method:"POST",body:e})}),completeTwoFALogin:e.mutation({query:e=>({url:`${URL_PREFIX$5}login/2fa`,method:"POST",body:e})}),emailSendTwoFa:e.mutation({query:e=>({url:`${URL_PREFIX$5}2fa/email/send`,method:"POST",body:e,responseHandler:async e=>{try{const t=await e.text();return JSON.parse(t)}catch{return{}}}})}),uploadUserPhoto:e.mutation({query:e=>{const t=new FormData;return t.append("file",e),{method:"PUT",url:`${URL_PREFIX$5}settings/logo`,formData:!0,body:t}}}),deleteUserPhoto:e.mutation({query:()=>({method:"DELETE",url:`${URL_PREFIX$5}settings/logo`})}),changeUserFullName:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}settings/change-name`,body:e})}),changeUserPassword:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}reset`,body:e})}),registerAccount:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}register`,body:e})}),login:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}login`,body:e})}),googleLogin:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}google/oauth`,body:e})}),resetPasswordRequest:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}reset/request`,body:e})}),changePasswordByToken:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}reset`,body:e})}),logout:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$5}logout`,body:e})})})}),{useLazyGetUserInfoQuery:useLazyGetUserInfoQuery,useSetupTwoFAMutation:useSetupTwoFAMutation,useDisableTwoFAMutation:useDisableTwoFAMutation,useConfirmTwoFASetupMutation:useConfirmTwoFASetupMutation,useCompleteTwoFALoginMutation:useCompleteTwoFALoginMutation,useUploadUserPhotoMutation:useUploadUserPhotoMutation,useDeleteUserPhotoMutation:useDeleteUserPhotoMutation,useChangeUserFullNameMutation:useChangeUserFullNameMutation,useChangeUserPasswordMutation:useChangeUserPasswordMutation,useRegisterAccountMutation:useRegisterAccountMutation,useResetPasswordRequestMutation:useResetPasswordRequestMutation,useChangePasswordByTokenMutation:useChangePasswordByTokenMutation,useLoginMutation:useLoginMutation,useGoogleLoginMutation:useGoogleLoginMutation,useLogoutMutation:useLogoutMutation,useEmailSendTwoFaMutation:useEmailSendTwoFaMutation}=dashboardAccountApiSlice,URL_PREFIX$4="webapi/v1",URL_PREFIX_NEW$2="webapi/operations",operationApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getOperationsList:e.query({query:({params:{organizationId:e,page:t,limit:n=20,from:r,to:a,checkType:i,email:o,env:s}})=>({url:`${URL_PREFIX_NEW$2}/${e}/list`,params:{page:t,limit:n,...r&&a&&{from:r,to:a},checkType:i,email:o,...s&&{env:s}}})}),getOperationsListTotals:e.query({query:({params:{organizationId:e,from:t,to:n,checkType:r,email:a,env:i}})=>({url:`${URL_PREFIX_NEW$2}/${e}/totals`,params:{...t&&n&&{from:t,to:n},checkType:r,email:a,...i&&{env:i}}})}),getBalance:e.query({query:e=>({url:`${URL_PREFIX_NEW$2}/${e}/balance`}),providesTags:[ApiTagEnum.CURRENT_BILLING_ORGANIZATION]}),getRealTimeBalance:e.query({query:e=>({url:`${URL_PREFIX_NEW$2}/${e}/balance`}),providesTags:[ApiTagEnum.REAL_TIME_BALANCE]}),getInitialBalance:e.query({query:e=>({url:`${URL_PREFIX_NEW$2}/${e}/balance`})}),getOperationsHistoryLastMonth:e.query({query:e=>`${URL_PREFIX$4}/operations/${e}/history`}),getDocVerInfoLastMonth:e.query({query:({organizationId:e})=>`webapi/organization/${e}/docver-info`,transformResponse:e=>{const t=Array.isArray(e?.data)?e.data:[],n=t?.reduce((e,t)=>e+t.count,0),r={[DocsVerificationStatusEnum.INITIAL]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.FAILED]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.VERIFIED]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.IN_PROGRESS]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.EXPIRED]:{count:0,percentage:"0%"},[DocsVerificationStatusEnum.CANCELED]:{count:0,percentage:"0%"}};for(const a of t)r[a.status]={count:a.count,percentage:getSharePercentage(n,a.count)};return{totalCount:n,...r}}})})}),{useLazyGetOperationsListQuery:useLazyGetOperationsListQuery,useGetBalanceQuery:useGetBalanceQuery,useLazyGetRealTimeBalanceQuery:useLazyGetRealTimeBalanceQuery,useLazyGetInitialBalanceQuery:useLazyGetInitialBalanceQuery,useLazyGetOperationsListTotalsQuery:useLazyGetOperationsListTotalsQuery,useGetOperationsListTotalsQuery:useGetOperationsListTotalsQuery,useLazyGetOperationsHistoryLastMonthQuery:useLazyGetOperationsHistoryLastMonthQuery,useLazyGetDocVerInfoLastMonthQuery:useLazyGetDocVerInfoLastMonthQuery}=operationApiSlice,URL_PREFIX$3="webapi/organization/",URL_PREFIX_NEW$1="webapi/v4/organization/",organizationsApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getInitialOrganizationList:e.query({query:()=>`${URL_PREFIX$3}list?page=0&limit=10`,transformResponse:e=>e?.data?.map(e=>transformOrganization(e)).filter(e=>e.account_status?.toUpperCase()===AccountStatus.ACTIVE)}),getInitialOrganizationInfo:e.query({query:e=>`${URL_PREFIX$3}${e}/info`,transformResponse:e=>transformOrganization(e)}),getOrganizationInfo:e.query({query:e=>`${URL_PREFIX$3}${e}/info`,transformResponse:e=>transformOrganization(e),providesTags:[ApiTagEnum.CURRENT_ORGANIZATION]}),getProductSettings:e.query({query:e=>`${URL_PREFIX_NEW$1}${e}/product-settings`,transformResponse:e=>Object.values(e)}),getInvitesList:e.query({query:()=>`${URL_PREFIX$3}list-invites?page=0&limit=5`,transformResponse:e=>e?.data?.filter(e=>!!e.invite_token),providesTags:[ApiTagEnum.INVITATIONS]}),getListTeam:e.query({query:({organizationId:e,page:t,limit:n=10})=>`${URL_PREFIX$3}${e}/team?page=${t}&limit=${n}`,transformResponse:e=>{const t=e.data?.map(e=>transformOrganization(e));return{...e,data:t}},providesTags:[ApiTagEnum.LIST_TEAM]}),getAccountEmails:e.query({query:({organizationId:e})=>`${URL_PREFIX$3}${e}/account-emails`}),acceptInvitation:e.mutation({query:({params:e,body:t})=>({method:"POST",url:`${URL_PREFIX$3}${e.organizationId}/invite/accept`,body:t}),invalidatesTags:[ApiTagEnum.INVITATIONS]}),declineInvitation:e.mutation({query:({params:e,body:t})=>({method:"POST",url:`${URL_PREFIX$3}${e.organizationId}/invite/decline`,body:t}),invalidatesTags:[ApiTagEnum.INVITATIONS]}),inviteTeamMember:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/invite`,body:e})}),updateTeamMemberRole:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/promote`,body:e})}),removeTeamMemberFromOrganization:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/remove`,body:e}),invalidatesTags:[ApiTagEnum.LIST_TEAM]}),leaveFromOrganization:e.mutation({query:e=>({method:"POST",url:`${URL_PREFIX$3}${e}/leave`}),invalidatesTags:[ApiTagEnum.LIST_TEAM]}),createOrganization:e.mutation({query:({body:e})=>({method:"POST",url:`${URL_PREFIX$3}create`,body:e}),invalidatesTags:[ApiTagEnum.ORGANIZATIONS]}),updateOrganization:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/update`,body:e}),invalidatesTags:[ApiTagEnum.ORGANIZATIONS,ApiTagEnum.CURRENT_ORGANIZATION]}),setManageDocverProduct:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/product/docver`,body:e}),invalidatesTags:[ApiTagEnum.CURRENT_ORGANIZATION]}),onboardingQuestionnaire:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$3}${t.organizationId}/questionnaire`,body:e})})})}),{useLazyGetInitialOrganizationListQuery:useLazyGetInitialOrganizationListQuery,useGetInvitesListQuery:useGetInvitesListQuery,useLazyGetInitialOrganizationInfoQuery:useLazyGetInitialOrganizationInfoQuery,useGetProductSettingsQuery:useGetProductSettingsQuery,useLazyGetOrganizationInfoQuery:useLazyGetOrganizationInfoQuery,useLazyGetListTeamQuery:useLazyGetListTeamQuery,useLazyGetAccountEmailsQuery:useLazyGetAccountEmailsQuery,useInviteTeamMemberMutation:useInviteTeamMemberMutation,useUpdateTeamMemberRoleMutation:useUpdateTeamMemberRoleMutation,useRemoveTeamMemberFromOrganizationMutation:useRemoveTeamMemberFromOrganizationMutation,useLeaveFromOrganizationMutation:useLeaveFromOrganizationMutation,useCreateOrganizationMutation:useCreateOrganizationMutation,useUpdateOrganizationMutation:useUpdateOrganizationMutation,useAcceptInvitationMutation:useAcceptInvitationMutation,useDeclineInvitationMutation:useDeclineInvitationMutation,useOnboardingQuestionnaireMutation:useOnboardingQuestionnaireMutation}=organizationsApiSlice,URL_PREFIX$2="webapi/v3/payments",paymentApiSlice=dashboardApi.injectEndpoints({endpoints:e=>({getPaymentList:e.query({query:({params:{organizationId:e,page:t,limit:n=20,created_from:r,created_to:a,paymentMethod:i,status:o}})=>({url:`${URL_PREFIX$2}/${e}/history-filters`,params:{page:t,limit:n,...r&&a&&{created_from:r,created_to:a},paymentMethod:i,status:o}})}),getPaymentBonuses:e.query({query:e=>({url:`${URL_PREFIX$2}/${e}/bonuses`})}),getPaymentGateways:e.query({query:e=>({url:`${URL_PREFIX$2}/${e}/methods`}),transformResponse:e=>e?.methods}),createPaymentRevolut:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$2}/${t.organizationId}/checkout/revolut`,body:e})}),createPaymentStripe:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$2}/${t.organizationId}/checkout/stripe`,body:e})}),createPaymentKassvia:e.mutation({query:({body:e,params:t})=>({method:"POST",url:`${URL_PREFIX$2}/${t.organizationId}/checkout/kassvia`,body:e})}),getPaymentKassviaInfo:e.query({query:({organizationId:e,paymentId:t})=>`${URL_PREFIX$2}/${e}/kassvia/${t}`})})}),{useLazyGetPaymentListQuery:useLazyGetPaymentListQuery,useGetPaymentListQuery:useGetPaymentListQuery,useGetPaymentGatewaysQuery:useGetPaymentGatewaysQuery,useGetPaymentBonusesQuery:useGetPaymentBonusesQuery,useCreatePaymentRevolutMutation:useCreatePaymentRevolutMutation,useCreatePaymentKassviaMutation:useCreatePaymentKassviaMutation,useCreatePaymentStripeMutation:useCreatePaymentStripeMutation,useLazyGetPaymentKassviaInfoQuery:useLazyGetPaymentKassviaInfoQuery}=paymentApiSlice,INIT_DEPOSIT=1e3,initialState$3={organizationId:"",userId:"",requestedOrganizationId:localStorage.getItem("dashboard-organizationId")||"",organizationsUpdateDate:(new Date).getTime().toString(),token:"",balanceStatus:void 0,balance:0,revolutPayment:{amount:void 0,id:void 0,expires_at:void 0,items:void 0},kassviaPayment:{},organizationInfo:void 0,organizationsList:[],organizationsOwnedCount:0,hasOperations:void 0,hasDeposits:void 0,billingContractDueDate:void 0,isSandbox:"true"===localStorage.getItem("dashboard-is-sandbox"),errorGlobalText:"",questionnaireData:void 0,dashboardVariantId:(()=>{const e=localStorage.getItem("dashboard-variantId");return e&&Object.values(DashboardVariantEnum).includes(e)?e:DashboardVariantEnum.KYC})(),requestedDashboardVariantId:void 0},sessionSlice=createSlice({name:"dashboardSessionSlice",initialState:initialState$3,reducers:{clearSession:e=>(localStorage.clear(),localStorage.setItem("dashboard-organizationId",e.organizationId),localStorage.setItem("dashboard-variantId",e.dashboardVariantId),{...initialState$3,requestedOrganizationId:e.organizationId,dashboardVariantId:e.dashboardVariantId}),setOrganizationInfo:(e,{payload:t})=>{e.organizationInfo=t,"ccd"===t.flavor?(localStorage.setItem("dashboard-variantId",DashboardVariantEnum.CCD),e.dashboardVariantId=DashboardVariantEnum.CCD,e.requestedDashboardVariantId=void 0):"blt"===t.flavor?(localStorage.setItem("dashboard-variantId",DashboardVariantEnum.BLT),e.dashboardVariantId=DashboardVariantEnum.BLT,e.requestedDashboardVariantId=void 0):e.dashboardVariantId!==DashboardVariantEnum.CCD&&e.dashboardVariantId!==DashboardVariantEnum.BLT||(localStorage.setItem("dashboard-variantId",DashboardVariantEnum.KYC),e.dashboardVariantId=DashboardVariantEnum.KYC,e.requestedDashboardVariantId=void 0)},setRequestedOrganizationId:(e,{payload:t})=>{e.requestedOrganizationId=t},setOrganizationId:(e,{payload:t})=>{localStorage.setItem("dashboard-organizationId",t),e.organizationId=t},setOrganizationsList:(e,t)=>{e.organizationsList=t.payload;let n=0;if(Array.isArray(e.organizationsList)&&e.organizationsList.length)for(const r of e.organizationsList)r.organization_role===OrganizationRoleEnum.OWNER&&(n+=1);e.organizationsOwnedCount=n},setIsSandbox:(e,{payload:t})=>{e.isSandbox=t,localStorage.setItem("dashboard-is-sandbox",t.toString())},setRevolutPaymentAmount:(e,{payload:t})=>{e.revolutPayment.amount=t},setKassviaPaymentAmount:(e,{payload:t})=>{e.kassviaPayment.amount=t},clearKassviaPayment:e=>{e.kassviaPayment={}},clearRevolutPayment:e=>{e.revolutPayment={amount:void 0,id:void 0,expires_at:void 0,items:void 0}},setErrorGlobalText:(e,{payload:t})=>{e.errorGlobalText=t},setQuestionnaireData:(e,{payload:t})=>{e.questionnaireData=t},setRequestedDashboardVariantId:(e,{payload:t})=>{e.requestedDashboardVariantId=t},setDashboardVariantId:(e,{payload:t})=>{localStorage.setItem("dashboard-variantId",t),e.dashboardVariantId=t}},extraReducers:e=>{e.addMatcher(organizationsApiSlice.endpoints.getInitialOrganizationInfo.matchFulfilled,(e,t)=>{t.payload&&(sessionSlice.caseReducers.setOrganizationId(e,{...t,payload:t.payload.organization_id}),sessionSlice.caseReducers.setOrganizationInfo(e,t))}),e.addMatcher(isAnyOf(organizationsApiSlice.endpoints.createOrganization.matchFulfilled,organizationsApiSlice.endpoints.updateOrganization.matchFulfilled,organizationsApiSlice.endpoints.acceptInvitation.matchFulfilled,organizationsApiSlice.endpoints.leaveFromOrganization.matchFulfilled),e=>{e.organizationsUpdateDate=(new Date).getTime().toString()}),e.addMatcher(isAnyOf(dashboardAccountApiSlice.endpoints.getUserInfo.matchFulfilled,dashboardAccountApiSlice.endpoints.googleLogin.matchFulfilled,dashboardAccountApiSlice.endpoints.login.matchFulfilled,dashboardAccountApiSlice.endpoints.completeTwoFALogin.matchFulfilled),(e,t)=>{if(!t.payload)return;const n=t.payload;e.userId&&n?.account?.account_id!==e.userId&&(e.organizationsUpdateDate=(new Date).getTime().toString()),n?.account?.account_id&&(e.userId=n.account.account_id)}),e.addMatcher(isAnyOf(operationApiSlice.endpoints.getInitialBalance.matchFulfilled,operationApiSlice.endpoints.getBalance.matchFulfilled),(e,t)=>{if(!t.payload)return;const n=t.payload;e.hasOperations=n.created_at!==n.updated_at,e.hasDeposits=e.hasOperations||n.balance>1e3,e.balanceStatus=n.status,e.organizationCreatedDate=n.created_at}),e.addMatcher(operationApiSlice.endpoints.getRealTimeBalance.matchFulfilled,(e,t)=>{e.balance=t?.payload?.balance||0}),e.addMatcher(paymentApiSlice.endpoints.createPaymentRevolut.matchFulfilled,(e,t)=>{null!=t.payload&&(e.revolutPayment.id=t.payload.id,e.revolutPayment.expires_at=t.payload.expires_at,e.revolutPayment.items=t.payload.items)}),e.addMatcher(paymentApiSlice.endpoints.createPaymentKassvia.matchFulfilled,(e,t)=>{null!=t.payload&&(e.kassviaPayment.data=t.payload)})}}),initTheme;try{const e=localStorage.getItem("ds-theme");e&&(initTheme=JSON.parse(e))}catch(e){console.warn("Error during parse ds-theme",e)}var initialState$2={currentThemeMode:ThemeModeEnum.LIGHT,currentTheme:initTheme||lightTheme$1},themeSlice=createSlice({name:"theme",initialState:initialState$2,reducers:{setIsLandscape(e,t){e.currentTheme.isLandscape=t.payload},setTheme(e,t){e.currentTheme=t.payload,localStorage.setItem("ds-theme",JSON.stringify(t.payload))}}}),initialState$1={items:[]},toastSlice=createSlice({name:"toast",initialState:initialState$1,reducers:{setToasts:(e,{payload:t})=>{e.items=t},addToast:(e,{payload:t})=>{e.items=[...e.items,t]},hideToast:(e,{payload:t})=>{const n=e.items.findIndex(e=>e.id===t);if(n>=0){const t=[...e.items];t.splice(n,1),e.items=t}}}}),prepareHeaders$1=async e=>{await setWidgetSessionHeaders(e)},baseQuery=fetchBaseQuery({prepareHeaders:prepareHeaders$1}),baseQueryWithInterceptor=async(e,t,n)=>{const r=t.getState(),a=await baseQueryRequest({state:r,baseQuery:baseQuery,args:e,api:t,extraOptions:n,isUseCredentials:!1,prepareHeaders:prepareHeaders$1});return a.error&&await apiLogger(r,a),a},sdkApi=createApi({reducerPath:"sdkApi",baseQuery:baseQueryWithInterceptor,endpoints:()=>({})}),sdkApiSlice=sdkApi.injectEndpoints({endpoints:e=>({getVerificationById:e.query({query:({url:e,id:t})=>`${e}/api/v3/sdk/${t}`}),getCustomPartnerVerificationById:e.query({query:({url:e,id:t})=>`${e}/api/v4/concordium/widget/${t}`}),getVerificationByIdStatus:e.query({query:({url:e,id:t})=>`${e}/api/v4/verifications/${t}/status`}),uploadDocumentSDK:e.mutation({query({url:e,id:t,body:n}){const r=new FormData;return Object.keys(n).forEach(e=>{const t=n[e];void 0!==t&&r.append(e,t)}),{url:`${e}/api/v3/upload/sdk/${t}`,method:"POST",body:r,headers:{"Accept-Language":instance.language}}},invalidatesTags:[]}),uploadLivenessDocumentSDK:e.mutation({query({url:e,id:t,body:n}){const r=new FormData;return r.append("metadata",JSON.stringify({frames:n.files.map((e,t)=>{const n=`frame${t+1}`;return r.append(n,e),{frame_id:n,timestamp:new Date(e.lastModified).getTime()}})})),{url:`${e}/api/v4/upload/sdk/${t}/liveness-batch`,method:"POST",body:r,headers:{"Accept-Language":instance.language}}},invalidatesTags:[]}),proceedVerificationSDK:e.mutation({query:({url:e,id:t})=>({url:`${e}/api/v3/sdk/${t}/proceed`,method:"POST",headers:{"Accept-Language":instance.language}}),invalidatesTags:[]}),setCountrySDK:e.mutation({query:({url:e,id:t,country:n})=>({url:`${e}/api/v3/sdk/${t}/set_country`,method:"POST",body:{country:n},headers:{"Accept-Language":instance.language}}),invalidatesTags:[]}),generateZkProof:e.mutation({query:({body:e,url:t})=>({url:`${t}/api/v4/web3/zkproof/generate`,method:"POST",body:e,headers:{"Accept-Language":instance.language}}),invalidatesTags:[]}),setManualFieldsSDK:e.mutation({query:({url:e,id:t,body:n})=>({url:`${e}/api/v3/sdk/${t}/fields`,method:"POST",body:n,headers:{"Accept-Language":instance.language}})}),uploadCustomFileSDK:e.mutation({query:({url:e,id:t,body:n})=>({url:`${e}/api/v3/sdk/${t}/upload`,method:"POST",body:n,headers:{"Accept-Language":instance.language}})}),uploadFingerprintSDK:e.mutation({query:({url:e,...t})=>({url:`${e}/api/v4/device-intelligence/collect`,method:"POST",body:t})})})}),{useUploadDocumentSDKMutation:useUploadDocumentSDKMutation,useProceedVerificationSDKMutation:useProceedVerificationSDKMutation,useLazyGetVerificationByIdQuery:useLazyGetVerificationByIdQuery$1,useLazyGetCustomPartnerVerificationByIdQuery:useLazyGetCustomPartnerVerificationByIdQuery,useSetCountrySDKMutation:useSetCountrySDKMutation,useSetManualFieldsSDKMutation:useSetManualFieldsSDKMutation,useUploadCustomFileSDKMutation:useUploadCustomFileSDKMutation,useUploadFingerprintSDKMutation:useUploadFingerprintSDKMutation,useGenerateZkProofMutation:useGenerateZkProofMutation,useUploadLivenessDocumentSDKMutation:useUploadLivenessDocumentSDKMutation}=sdkApiSlice,rootReducer=combineReducers({theme:themeSlice.reducer,session:sessionSlice.reducer,docsVerification:docsVerificationSlice.reducer,toast:toastSlice.reducer,domain:domainSlice.reducer,[sdkApi.reducerPath]:sdkApi.reducer}),store=configureStore({reducer:rootReducer,middleware:e=>e({serializableCheck:{ignoredPaths:["app.currentTheme.breakpointTo","app.currentTheme.breakpointFrom","app.currentTheme.breakpointBetween","toast.items"]}}).concat(sdkApi.middleware)}),useAppDispatch=useDispatch.withTypes(),useAppSelector=useSelector.withTypes(),useActiveProduct=()=>{const e=useAppSelector(e=>e.dashboard?.session?.dashboardVariantId);return{variantId:e,isKyc:e===DashboardVariantEnum.KYC,isKyt:e===DashboardVariantEnum.KYT,isDeepfake:e===DashboardVariantEnum.DEEPFAKE}},useLoadedApp=()=>{const e=useAppSelector(e=>e.domain.settings.is_admin_panel),t=window.location.pathname.startsWith("/widget"),n=window.location.pathname.startsWith("/policy");return{isAdmin:e,isWidget:t,isApiDocs:window.location.pathname.startsWith(ROUTES.API.DOCS),isPolicy:n}},ContactUsToast=({contactUsUrl:e})=>(0,import_jsx_runtime.jsx)("span",{style:{whiteSpace:"nowrap"},children:(0,import_jsx_runtime.jsx)(Trans,{i18nKey:"common.pleaseContactUs",components:{link1:(0,import_jsx_runtime.jsx)(Link,{to:e,target:"_blank",dashed:!0,style:{fontSize:"inherit"}})}})}),CONTACT_US_ROUTES={[DashboardVariantEnum.KYC]:ROUTES.KYC.CONTACT_US,[DashboardVariantEnum.KYT]:ROUTES.KYT.CONTACT_US,[DashboardVariantEnum.DEEPFAKE]:ROUTES.DEEPFAKE.CONTACT_US,[DashboardVariantEnum.CCD]:ROUTES.KYC.CONTACT_US},useEnrichErrorToast=()=>{const e=useAppSelector(e=>e.domain?.settings?.other_settings?.show_contact_us),t=useAppSelector(e=>!!e.dashboard?.session?.userId),{isAdmin:n}=useLoadedApp(),{variantId:r}=useActiveProduct();return{enrichToast:(0,import_react.useCallback)(a=>{if("error"!==a.variant||!t)return a;let i;if(n)i=ROUTES.ADMIN_PANEL.CONTACT_US;else{if(!e)return a;if(i=CONTACT_US_ROUTES[r],!i)return a}const o=(0,import_jsx_runtime.jsx)(ContactUsToast,{contactUsUrl:i});return{...a,content:a.content?(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[a.content,o]}):o}},[e,t,n,r])}},useToast=()=>{const e=useAppSelector(e=>e.toast.items),t=useAppDispatch(),{enrichToast:n}=useEnrichErrorToast();return{showToast:(0,import_react.useCallback)(e=>{const r=v4(),a=n(e);t(toastSlice.actions.addToast({id:r,...a}))},[t,n]),hideToast:(0,import_react.useCallback)(e=>{t(toastSlice.actions.hideToast(e))},[t]),toasts:e}},Snackbar=gt(Snackbar$1)`
303
303
  ${e=>e.theme.breakpointTo.md} {
304
304
  left: 16px;
305
305
  right: 16px;
@@ -3862,5 +3862,5 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var __create=
3862
3862
  touch-action: manipulation;
3863
3863
  box-sizing: border-box;
3864
3864
  }
3865
- `;setupListeners(store.dispatch);var i18nInstance=createLocalization(),convertChecks=e=>[...e.poi_required?e.poi_allowed_documents:[],...e.face_comparison_required?e.face_comparison_allowed_documents:[],...e.poa_required?["poa"]:[]],StoreWrapper=({children:e})=>(0,import_jsx_runtime.jsx)(Provider_default,{store:store,children:e}),Widget=({onInit:t,settings:n,theme:r,isDemo:a,defaultLanguage:i,...o})=>{const{i18n:s,ready:l}=useTranslation(),c=n,u=useAppSelector(e=>e.domain.settings),d=useAppSelector(e=>e.theme.currentTheme),p=useAppSelector(e=>e.docsVerification.sdkOptions),m=useAppSelector(e=>e.docsVerification.currentStep),h=useAppDispatch(),{isLandscape:f}=useDeviceOrientation(),g=(0,import_react.useRef)(null),[y]=useUploadFingerprintSDKMutation(),v=(0,import_react.useMemo)(()=>new URLSearchParams(window.location.search),[]),x=(0,import_react.useRef)(null);(0,import_react.useLayoutEffect)(()=>{const e=v.get("lang")?.toLowerCase();let t="";Object.values(LangEnum).forEach(n=>{n===e&&(t=n)}),i18nInstance.changeLanguage(t||i||LangEnum.EN)},[v]);const b=(0,import_react.useMemo)(()=>createTheme((0,import_merge.default)((0,import_cloneDeep.default)({...d}),u.ui_settings),(0,import_merge.default)({...theme},{...MUI_LOCALES[s.language]},r),generateMediaHelpers(d)),[d,u,r,s.language]),[S]=useLazyGetVerificationByIdQuery$1(),[C]=useLazyGetCustomPartnerVerificationByIdQuery(),_=(0,import_react.useRef)(!1),[w,E]=(0,import_react.useState)(!0),[A,k]=(0,import_react.useState)(!1),{height:T}=useScreenFullHeight();(0,import_react.useEffect)(()=>{h(themeSlice.actions.setIsLandscape(f))},[h,f]),(0,import_react.useEffect)(()=>{c&&h(domainSlice.actions.setSettings((0,import_merge.default)((0,import_cloneDeep.default)(u),c)))},[h]),(0,import_react.useEffect)(()=>{if(!_.current){_.current=!0;const n=async()=>{try{let n;const r={id:o.id,url:o.apiUrl};n=a?VERIFICATION_RESPONSE:await S(r).unwrap();const i="true"===v.get("skipIntro"),s=o.id?.toLowerCase().startsWith("ccd");let l="";if(s)try{const e=await C(r).unwrap();if(!e?.redirect_uri)return await(t?.("error","redirect_uri is empty")),void k(!0);l=e.redirect_uri}catch(e){return await(t?.("error",e)),void k(!0)}t&&await t(n.status);const c=new URLSearchParams(window.location.search).get("source");h(docsVerificationSlice.actions.useSDK({id:o.id,elementId:o.elementId,settings:n.settings,checks:n.checks?convertChecks(n.settings):[],apiUrl:o.apiUrl,logsUrl:o.logsUrl,redirectUrl:l||o.redirectUrl,status:n.status,verificationUrl:n.verification_url,expiresAt:n.expires_at,source:c,isDemo:!!a,isWeb3:n.settings?.is_web3,...n.settings?.is_web3?{web3Options:{wallet:n.wallet}}:{},customPartner:s?{concordium:!0}:{},isSkipIntro:i}))}catch(e){t&&await t("error",e),k(!0)}finally{E(!1)}};n()}},[S,C,o,h,t,a,v]),(0,import_react.useEffect)(()=>{if(p?.id&&m===DocsVerificationStepEnum.VERIFICATION){const e=()=>{index$2.init({checkCamera:!0}).then(e=>{e.get().then(e=>{y({url:p.apiUrl,shortVerificationId:p.id,identifier:e.id,...e.checks})})})};e(),g.current=setInterval(()=>{e()},15e3)}return()=>{g.current&&clearInterval(g.current)}},[y,p,m]);const I=(0,import_react.useMemo)(()=>w||!l,[w,l]);return(0,import_jsx_runtime.jsx)(I18nextProvider,{i18n:i18nInstance,children:(0,import_jsx_runtime.jsx)(StyledEngineProvider,{injectFirst:!0,children:(0,import_jsx_runtime.jsx)(ThemeProvider,{theme:b,children:(0,import_jsx_runtime.jsx)(rt,{theme:b,children:(0,import_jsx_runtime.jsx)(DemoDataContextProvider,{children:(0,import_jsx_runtime.jsx)(PersonalDataContextProvider,{children:(0,import_jsx_runtime.jsx)(WidgetContextProvider,{containerRef:x,children:(0,import_jsx_runtime.jsx)(DocsVerificationWidgetContainer,{id:"documents-widget",ref:x,children:(0,import_jsx_runtime.jsx)(FaceDetectorContextProvider,{children:(0,import_jsx_runtime.jsxs)(ScopedCssBaseline,{children:[(0,import_jsx_runtime.jsx)(GlobalStyles,{}),(0,import_jsx_runtime.jsx)(ToastContainer,{}),(0,import_jsx_runtime.jsxs)("div",{children:[I&&(0,import_jsx_runtime.jsx)(Box,{style:{height:T},sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,import_jsx_runtime.jsx)(Loader,{})}),A&&(0,import_jsx_runtime.jsx)(VerificationError,{}),!I&&p&&(0,import_jsx_runtime.jsx)(DocsVerificationSteps,{onFinish:o.onFinish,getZkProof:o.getZkProof})]})]})})})})})})})})})})},resetWidgetStore=()=>{store.dispatch(docsVerificationSlice.actions.clearSteps()),store.dispatch(domainSlice.actions.clearSettings()),store.dispatch(sdkApi.util.resetApiState())},DocsVerificationWidget=e=>{const t=document.getElementById(e.elementId);let n=null;t&&(n=(0,import_client.createRoot)(t),n.render((0,import_jsx_runtime.jsx)(import_react.StrictMode,{children:(0,import_jsx_runtime.jsx)(StoreWrapper,{children:(0,import_jsx_runtime.jsx)(Widget,{...e})})})));return{root:n,destroy:()=>{n?.unmount(),resetWidgetStore()}}};exports.DocsVerificationWidget=DocsVerificationWidget,exports.Widget=Widget;
3865
+ `;setupListeners(store.dispatch);var i18nInstance=createLocalization(),convertChecks=e=>[...e.poi_required?e.poi_allowed_documents:[],...e.face_comparison_required?e.face_comparison_allowed_documents:[],...e.poa_required?["poa"]:[]],StoreWrapper=({children:e})=>(0,import_jsx_runtime.jsx)(Provider_default,{store:store,children:e}),Widget=({onInit:t,settings:n,theme:r,isDemo:a,defaultLanguage:i,...o})=>{const{i18n:s,ready:l}=useTranslation(),c=n,u=useAppSelector(e=>e.domain.settings),d=useAppSelector(e=>e.theme.currentTheme),p=useAppSelector(e=>e.docsVerification.sdkOptions),m=useAppSelector(e=>e.docsVerification.currentStep),h=useAppDispatch(),{isLandscape:f}=useDeviceOrientation(),g=(0,import_react.useRef)(null),[y]=useUploadFingerprintSDKMutation(),v=(0,import_react.useMemo)(()=>new URLSearchParams(window.location.search),[]),x=(0,import_react.useRef)(null);(0,import_react.useLayoutEffect)(()=>{const e=v.get("lang")?.toLowerCase();let t="";Object.values(LangEnum).forEach(n=>{n===e&&(t=n)}),i18nInstance.changeLanguage(t||i||LangEnum.EN)},[v]);const b=(0,import_react.useMemo)(()=>createTheme((0,import_merge.default)((0,import_cloneDeep.default)({...d}),u.ui_settings),(0,import_merge.default)({...theme},{...MUI_LOCALES[s.language]},r),generateMediaHelpers(d)),[d,u,r,s.language]),[S]=useLazyGetVerificationByIdQuery$1(),[C]=useLazyGetCustomPartnerVerificationByIdQuery(),_=(0,import_react.useRef)(!1),[w,E]=(0,import_react.useState)(!0),[A,k]=(0,import_react.useState)(!1),{height:T}=useScreenFullHeight();(0,import_react.useEffect)(()=>{h(themeSlice.actions.setIsLandscape(f))},[h,f]),(0,import_react.useEffect)(()=>{c&&h(domainSlice.actions.setSettings((0,import_merge.default)((0,import_cloneDeep.default)(u),c)))},[h]),(0,import_react.useEffect)(()=>{if(!_.current){_.current=!0;const n=async()=>{try{let n;const r={id:o.id,url:o.apiUrl};n=a?VERIFICATION_RESPONSE:await S(r).unwrap();const i="true"===v.get("skipIntro"),s=o.id?.toLowerCase().startsWith("ccd");let l="";if(s)try{const e=await C(r).unwrap();if(!e?.redirect_uri)return await(t?.("error","redirect_uri is empty")),void k(!0);l=e.redirect_uri}catch(e){return await(t?.("error",e)),void k(!0)}t&&await t(n.status);const c=new URLSearchParams(window.location.search).get("source");h(docsVerificationSlice.actions.useSDK({id:o.id,elementId:o.elementId,settings:n.settings,checks:n.checks?convertChecks(n.settings):[],apiUrl:o.apiUrl,logsUrl:o.logsUrl,redirectUrl:l||o.redirectUrl,status:n.status,verificationUrl:n.verification_url,expiresAt:n.expires_at,source:c,isDemo:!!a,isWeb3:n.settings?.is_web3,...n.settings?.is_web3?{web3Options:{wallet:n.wallet}}:{},customPartner:s?{concordium:!0}:{},isSkipIntro:i}))}catch(e){t&&await t("error",e),k(!0)}finally{E(!1)}};n()}},[S,C,o,h,t,a,v]),(0,import_react.useEffect)(()=>{if(p?.id&&m===DocsVerificationStepEnum.VERIFICATION){const e=()=>{index$2.init({checkCamera:!0}).then(e=>{e.get().then(e=>{y({url:p.apiUrl,shortVerificationId:p.id,identifier:e.id,...e.checks})})})};e(),g.current=setInterval(()=>{e()},15e3)}return()=>{g.current&&clearInterval(g.current)}},[y,p,m]);const I=(0,import_react.useMemo)(()=>w||!l,[w,l]);return(0,import_jsx_runtime.jsx)(I18nextProvider,{i18n:i18nInstance,children:(0,import_jsx_runtime.jsx)(StyledEngineProvider,{injectFirst:!0,children:(0,import_jsx_runtime.jsx)(ThemeProvider,{theme:b,children:(0,import_jsx_runtime.jsx)(rt,{theme:b,children:(0,import_jsx_runtime.jsx)(DemoDataContextProvider,{children:(0,import_jsx_runtime.jsx)(PersonalDataContextProvider,{children:(0,import_jsx_runtime.jsx)(WidgetContextProvider,{containerRef:x,children:(0,import_jsx_runtime.jsx)(DocsVerificationWidgetContainer,{id:"documents-widget",ref:x,children:(0,import_jsx_runtime.jsx)(FaceDetectorContextProvider,{children:(0,import_jsx_runtime.jsxs)(ScopedCssBaseline,{children:[(0,import_jsx_runtime.jsx)(GlobalStyles,{}),(0,import_jsx_runtime.jsx)(ToastContainer,{}),(0,import_jsx_runtime.jsxs)("div",{children:[I&&(0,import_jsx_runtime.jsx)(Box,{style:{height:T},sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,import_jsx_runtime.jsx)(Loader,{})}),A&&(0,import_jsx_runtime.jsx)(VerificationError,{}),!I&&p&&(0,import_jsx_runtime.jsx)(DocsVerificationSteps,{onFinish:o.onFinish,getZkProof:o.getZkProof})]})]})})})})})})})})})})},resetWidgetStore=()=>{store.dispatch(docsVerificationSlice.actions.clearSteps()),store.dispatch(domainSlice.actions.clearSettings()),store.dispatch(sdkApi.util.resetApiState())},DocsVerificationWidget=e=>{const t=document.getElementById(e.elementId);let n=null;t&&(n=(0,import_client.createRoot)(t),n.render((0,import_jsx_runtime.jsx)(import_react.StrictMode,{children:(0,import_jsx_runtime.jsx)(StoreWrapper,{children:(0,import_jsx_runtime.jsx)(Widget,{...e})})})));return{root:n,destroy:()=>{n?.unmount(),resetWidgetStore()}}};exports.DocsVerificationWidget=DocsVerificationWidget,exports.Widget=Widget,module.exports={DocsVerificationWidget:exports.DocsVerificationWidget,Widget:exports.Widget};
3866
3866
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@document-verification/docver-widget",
3
- "version": "0.4.100",
3
+ "version": "0.4.101",
4
4
  "main": "./index.js",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"