@wellesley/auth 1.0.959 → 1.0.960
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var JU=Object.defineProperty,KU=(e,t,n)=>t in e?JU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nn=(e,t,n)=>KU(e,"symbol"!=typeof t?t+"":t,n);function _U(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function kz(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 r6=()=>Math.random().toString(36).substring(7).split("").join("."),$U={INIT:`@@redux/INIT${r6()}`,REPLACE:`@@redux/REPLACE${r6()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${r6()}`},LO=$U;function vp(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 eV(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:LO.INIT})>"u")throw new Error(kz(12));if(typeof n(void 0,{type:LO.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(kz(13))}))}function xR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{eV(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(kz(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function PR(e){return vp(e)&&"type"in e&&"string"==typeof e.type}var rT=Symbol.for("immer-nothing"),Ey=Symbol.for("immer-draftable"),Ms=Symbol.for("immer-state");function uo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var om=Object.getPrototypeOf;function Fc(e){return!!e&&!!e[Ms]}function Uc(e){var t;return!!e&&(kR(e)||Array.isArray(e)||!!e[Ey]||!(null==(t=e.constructor)||!t[Ey])||Av(e)||Ev(e))}var tV=Object.prototype.constructor.toString();function kR(e){if(!e||"object"!=typeof e)return!1;const t=om(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===tV}function nV(e){return Fc(e)||uo(15,e),e[Ms].base_}function j1(e,t){0===sm(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function sm(e){const t=e[Ms];return t?t.type_:Array.isArray(e)?1:Av(e)?2:Ev(e)?3:0}function Jy(e,t){return 2===sm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function a6(e,t){return 2===sm(e)?e.get(t):e[t]}function zR(e,t,n){const r=sm(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function rV(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Av(e){return e instanceof Map}function Ev(e){return e instanceof Set}function qh(e){return e.copy_||e.base_}function zz(e,t){if(Av(e))return new Map(e);if(Ev(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&kR(e))return om(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ms];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(om(e),n)}function aT(e,t=!1){return Jw(e)||Fc(e)||!Uc(e)||(sm(e)>1&&(e.set=e.add=e.clear=e.delete=aV),Object.freeze(e),t&&j1(e,((e,t)=>aT(t,!0)))),e}function aV(){uo(2)}function Jw(e){return Object.isFrozen(e)}var Ky,Tz={};function im(e){const t=Tz[e];return t||uo(0,e),t}function oV(e,t){Tz[e]||(Tz[e]=t)}function TR(){return Ky}function sV(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function GO(e,t){t&&(im("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jz(e){Oz(e),e.drafts_.forEach(iV),e.drafts_=null}function Oz(e){e===Ky&&(Ky=e.parent_)}function IO(e){return Ky=sV(Ky,e)}function iV(e){const t=e[Ms];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function BO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ms].modified_&&(jz(t),uo(4)),Uc(e)&&(e=$3(t,e),t.parent_||ew(t,e)),t.patches_&&im("Patches").generateReplacementPatches_(n[Ms].base_,e,t.patches_,t.inversePatches_)):e=$3(t,n,[]),jz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rT?e:void 0}function $3(e,t,n){if(Jw(t))return t;const r=t[Ms];if(!r)return j1(t,((a,o)=>XO(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return ew(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),j1(a,((a,i)=>XO(e,r,t,a,i,n,o))),ew(e,t,!1),n&&e.patches_&&im("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function XO(e,t,n,r,a,o,i){if(Fc(a)){const i=$3(e,a,o&&t&&3!==t.type_&&!Jy(t.assigned_,r)?o.concat(r):void 0);if(zR(n,r,i),!Fc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Uc(a)&&!Jw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$3(e,a),(!t||!t.scope_.parent_)&&ew(e,a)}}function ew(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aT(t,n)}function cV(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:TR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=oT;n&&(a=[r],o=_y);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var oT={get(e,t){if(t===Ms)return e;const n=qh(e);if(!Jy(n,t))return fV(e,n,t);const r=n[t];return e.finalized_||!Uc(r)?r:r===o6(e.base_,t)?(s6(e),e.copy_[t]=Nz(r,e)):r},has:(e,t)=>t in qh(e),ownKeys:e=>Reflect.ownKeys(qh(e)),set(e,t,n){const r=jR(qh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=o6(qh(e),t),a=null==r?void 0:r[Ms];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(rV(n,r)&&(void 0!==n||Jy(e.base_,t)))return!0;s6(e),Mz(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_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==o6(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,s6(e),Mz(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=qh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){uo(11)},getPrototypeOf:e=>om(e.base_),setPrototypeOf(){uo(12)}},_y={};function o6(e,t){const n=e[Ms];return(n?qh(n):e)[t]}function fV(e,t,n){var r;const a=jR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function jR(e,t){if(!(t in e))return;let n=om(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=om(n)}}function Mz(e){e.modified_||(e.modified_=!0,e.parent_&&Mz(e.parent_))}function s6(e){e.copy_||(e.copy_=zz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}j1(oT,((e,t)=>{_y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),_y.deleteProperty=function(e,t){return _y.set.call(this,e,t,void 0)},_y.set=function(e,t,n){return oT.set.call(this,e[0],t,n,e[0])};var lV=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof 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("function"!=typeof t&&uo(6),void 0!==n&&"function"!=typeof n&&uo(7),Uc(e)){const a=IO(this),o=Nz(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?jz(a):Oz(a)}return GO(a,n),BO(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===rT&&(r=void 0),this.autoFreeze_&&aT(r,!0),n){const t=[],a=[];im("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}uo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof 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]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Uc(e)||uo(8),Fc(e)&&(e=OR(e));const t=IO(this),n=Nz(e,void 0);return n[Ms].isManual_=!0,Oz(t),n}finishDraft(e,t){const n=e&&e[Ms];(!n||!n.isManual_)&&uo(9);const{scope_:r}=n;return GO(r,t),BO(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}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=im("Patches").applyPatches_;return Fc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Nz(e,t){const n=Av(e)?im("MapSet").proxyMap_(e,t):Ev(e)?im("MapSet").proxySet_(e,t):cV(e,t);return(t?t.scope_:TR()).drafts_.push(n),n}function OR(e){return Fc(e)||uo(10,e),MR(e)}function MR(e){if(!Uc(e)||Jw(e))return e;const t=e[Ms];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zz(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zz(e,!0);return j1(n,((e,t)=>{zR(n,e,MR(t))})),t&&(t.finalized_=!1),n}function uV(){const e="replace",t="remove";function n(e){if(!Uc(e))return e;if(Array.isArray(e))return e.map(n);if(Av(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(Ev(e))return new Set(Array.from(e).map(n));const t=Object.create(om(e));for(const r in e)t[r]=n(e[r]);return Jy(e,Ey)&&(t[Ey]=e[Ey]),t}function r(e){return Fc(e)?n(e):e}oV("Patches",{applyPatches_:function(r,a){return a.forEach((a=>{const{path:o,op:i}=a;let s=r;for(let e=0;e<o.length-1;e++){const t=sm(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&uo(19),"function"==typeof s&&"prototype"===n&&uo(19),s=a6(s,n),"object"!=typeof s&&uo(18,o.join("/"))}const c=sm(s),l=n(a.value),u=o[o.length-1];switch(i){case e:switch(c){case 2:return s.set(u,l);case 3:uo(16);default:return s[u]=l}case"add":switch(c){case 1:return"-"===u?s.push(l):s.splice(u,0,l);case 2:return s.set(u,l);case 3:return s.add(l);default:return s[u]=l}case t:switch(c){case 1:return s.splice(u,1);case 2:return s.delete(u);case 3:return s.delete(a.value);default:return delete s[u]}default:uo(17,i)}})),r},generatePatches_:function(n,a,o,i){switch(n.type_){case 0:case 2:return function(n,a,o,i){const{base_:s,copy_:c}=n;j1(n.assigned_,((n,l)=>{const u=a6(s,n),f=a6(c,n),d=l?Jy(s,n)?e:"add":t;if(u===f&&d===e)return;const p=a.concat(n);o.push(d===t?{op:d,path:p}:{op:d,path:p,value:f}),i.push("add"===d?{op:t,path:p}:d===t?{op:"add",path:p,value:r(u)}:{op:e,path:p,value:r(u)})}))}(n,a,o,i);case 1:return function(n,a,o,i){let{base_:s,assigned_:c}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[o,i]=[i,o]);for(let t=0;t<s.length;t++)if(c[t]&&l[t]!==s[t]){const n=a.concat([t]);o.push({op:e,path:n,value:r(l[t])}),i.push({op:e,path:n,value:r(s[t])})}for(let e=s.length;e<l.length;e++){const t=a.concat([e]);o.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;s.length<=e;--e){const n=a.concat([e]);i.push({op:t,path:n})}}(n,a,o,i);case 3:return function(e,n,r,a){let{base_:o,copy_:i}=e,s=0;o.forEach((e=>{if(!i.has(e)){const o=n.concat([s]);r.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++})),s=0,i.forEach((e=>{if(!o.has(e)){const o=n.concat([s]);r.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}s++}))}(n,a,o,i)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===rT?void 0:n}),a.push({op:e,path:[],value:t})}})}var oi=new lV,Cv=oi.produce,NR=oi.produceWithPatches.bind(oi);oi.setAutoFreeze.bind(oi),oi.setUseStrictShallowCopy.bind(oi);var YO=oi.applyPatches.bind(oi);function dV(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function pV(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function hV(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}]`)}}oi.createDraft.bind(oi),oi.finishDraft.bind(oi);var ZO=e=>Array.isArray(e)?e:[e];function mV(e){const t=Array.isArray(e[0])?e[0]:e;return hV(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function gV(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var yV=class{constructor(e){this.value=e}deref(){return this.value}},vV=typeof WeakRef<"u"?WeakRef:yV,bV=0,WO=1;function Zb(){return{s:bV,v:void 0,o:null,p:null}}function $y(e,t={}){let n=Zb();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=Zb(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=Zb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===WO?l=i.v:(l=e.apply(null,arguments),o++),c.s=WO,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new vV(l):l}return c.v=l,l}return i.clearCache=()=>{n=Zb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function DR(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),dV(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=$y,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=ZO(l),h=ZO(f),m=mV(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=gV(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var Ar=DR($y),wV=Object.assign(((e,t=Ar)=>{pV(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>wV}),xV=(...e)=>{const t=DR(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Fc(e)?OR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};xV($y);var PV=e=>e&&"function"==typeof e.match;function wr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ho(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=>PR(t)&&t.type===e,n}function FO(e){return Uc(e)?Cv(e,(()=>{})):e}function Dz(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(ho(10));const r=n.insert(t,e);return e.set(t,r),r}var wy="RTK_autoBatch",ry=()=>e=>({payload:e,meta:{[wy]:!0}});function SR(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(ho(28));if(r in t)throw new Error(ho(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function kV(e){return"function"==typeof e}function zV(e,t){let n,[r,a,o]=SR(t);if(kV(e))n=()=>FO(e());else{const t=FO(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Fc(e)){const r=n(e,t);return void 0===r?e:r}if(Uc(e))return Cv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(ho(9))}return r}}return e}),e)}return i.getInitialState=n,i}var TV="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kw=(e=21)=>{let t="",n=e;for(;n--;)t+=TV[64*Math.random()|0];return t},HR=(e,t)=>PV(e)?e.match(t):e(t);function bp(...e){return t=>e.some((e=>HR(e,t)))}function Cy(...e){return t=>e.every((e=>HR(e,t)))}function _w(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 Rv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function sT(...e){return 0===e.length?e=>_w(e,["pending"]):Rv(e)?t=>bp(...e.map((e=>e.pending)))(t):sT()(e[0])}function O1(...e){return 0===e.length?e=>_w(e,["rejected"]):Rv(e)?t=>bp(...e.map((e=>e.rejected)))(t):O1()(e[0])}function $w(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Rv(e)?n=>Cy(O1(...e),t)(n):$w()(e[0])}function wp(...e){return 0===e.length?e=>_w(e,["fulfilled"]):Rv(e)?t=>bp(...e.map((e=>e.fulfilled)))(t):wp()(e[0])}function Sz(...e){return 0===e.length?e=>_w(e,["pending","fulfilled","rejected"]):Rv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return bp(...n)(t)}:Sz()(e[0])}var jV=["name","message","stack","code"],i6=class{constructor(e,t){Nn(this,"_type"),this.payload=e,this.meta=t}},UO=class{constructor(e,t){Nn(this,"_type"),this.payload=e,this.meta=t}},OV=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of jV)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},VO=(()=>{function e(e,t,n){const r=wr(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=wr(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=wr(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||OV)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Kw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(NV(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new i6(e,t),fulfillWithValue:(e,t)=>new UO(e,t)})).then((t=>{if(t instanceof i6)throw t;return t instanceof UO?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof i6?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(MV)})}}),{pending:a,rejected:o,fulfilled:r,settled:bp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function MV(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function NV(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var DV=Symbol.for("rtk-slice-createasyncthunk");function SV(e,t){return`${e}/${t}`}function HV({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[DV];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(ho(11));const a=("function"==typeof e.reducers?e.reducers(EV()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(ho(12));if(n in i.sliceCaseReducersByType)throw new Error(ho(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?SR(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return zV(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:SV(t,r),createNotation:"function"==typeof e.reducers};RV(o)?GV(i,o,s,n):CV(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=Dz(u,n,{insert:()=>new WeakMap});return Dz(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=AV(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function AV(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var da=HV();function EV(){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 CV({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!LV(r))throw new Error(ho(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?wr(e,i):wr(e))}function RV(e){return"asyncThunk"===e._reducerDefinitionType}function LV(e){return"reducerWithPrepare"===e._reducerDefinitionType}function GV({type:e,reducerName:t},n,r,a){if(!a)throw new Error(ho(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||Wb,pending:s||Wb,rejected:c||Wb,settled:l||Wb})}function Wb(){}var IV=(e,t)=>{if("function"!=typeof e)throw new Error(ho(32))},iT="listenerMiddleware",BV=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=wr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(ho(21));return IV(o),{predicate:a,type:t,effect:o}},XV=Object.assign((e=>{const{type:t,predicate:n,effect:r}=BV(e);return{id:Kw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ho(22))}}}),{withTypes:()=>XV}),YV=Object.assign(wr(`${iT}/add`),{withTypes:()=>YV});wr(`${iT}/removeAll`);var ZV=Object.assign(wr(`${iT}/remove`),{withTypes:()=>ZV}),WV=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,FV=e=>e.flatMap((e=>WV(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),cT=Symbol.for("rtk-state-proxy-original"),UV=e=>!!e&&!!e[cT],VV=new WeakMap,QV=(e,t)=>Dz(VV,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===cT)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Kw()});if(typeof t>"u")throw new Error(ho(24));return t}}return a}})}),qV=e=>{if(!UV(e))throw new Error(ho(25));return e[cT]},JV=(e={})=>e;function KV(...e){const t=Object.fromEntries(FV(e)),n=()=>Object.keys(t).length?xR(t):JV;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(QV(n?n(r,...a):r,t),...a)}}),{original:qV});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function ho(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 _V={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/auth/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"false",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/auth/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"5c408af544eca8d2",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/auth",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.959",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3849",APP_NAME:"@wellesley/auth"},AR=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(AR||{});function $V(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function eQ(e){return new RegExp("(^|:)//").test(e)}var tQ=e=>e.replace(/\/$/,""),nQ=e=>e.replace(/^\//,"");function rQ(e,t){if(!e)return t;if(!t)return e;if(eQ(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=tQ(e)}${n}${t=nQ(t)}`}var QO=e=>[].concat(...e);function aQ(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function oQ(){return typeof document>"u"||"hidden"!==document.visibilityState}var qO=vp;function ER(e,t){if(e===t||!(qO(e)&&qO(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 o=Array.isArray(t)?[]:{};for(const r of n)o[r]=ER(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var JO=(...e)=>fetch(...e),sQ=e=>e.status>=200&&e.status<=299,iQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function KO(e){if(!vp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function cQ({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=JO,paramsSerializer:r,isJsonContentType:a=iQ,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===JO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:y,endpoint:g,forced:v,type:b}=p;let w,{url:x,headers:k=new Headers(u.headers),params:z,responseHandler:P=c??"json",validateStatus:T=l??sQ,timeout:j=s,...O}="string"==typeof d?{url:d}:d,N={...u,signal:h,...O};k=new Headers(KO(k)),N.headers=await t(k,{getState:m,extra:y,endpoint:g,forced:v,type:b})||k;const M=e=>"object"==typeof e&&(vp(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!N.headers.has("content-type")&&M(N.body)&&N.headers.set("content-type",o),M(N.body)&&a(N.headers)&&(N.body=JSON.stringify(N.body,i)),z){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(z):new URLSearchParams(KO(z)))}x=rQ(e,x);const D=new Request(x,N);w={request:new Request(x,N)};let H,A=!1,E=j&&setTimeout((()=>{A=!0,p.abort()}),j);try{H=await n(D)}catch(e){return{error:{status:A?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{E&&clearTimeout(E)}const S=H.clone();w.response=S;let G,C="";try{let e;if(await Promise.all([f(H,P).then((e=>G=e),(t=>e=t)),S.text().then((e=>C=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:H.status,data:C,error:String(e)},meta:w}}return T(H,G)?{data:G,meta:w}:{error:{status:H.status,data:G},meta:w}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var _O=class{constructor(e,t=void 0){this.value=e,this.meta=t}},fT=wr("__rtkq/focused"),CR=wr("__rtkq/unfocused"),lT=wr("__rtkq/online"),RR=wr("__rtkq/offline");function LR(e){return"query"===e.type}function fQ(e){return"mutation"===e.type}function uT(e,t,n,r,a,o){return lQ(e)?e(t,n,r,a).map(Hz).map(o):Array.isArray(e)?e.map(Hz).map(o):[]}function lQ(e){return"function"==typeof e}function Hz(e){return"string"==typeof e?{type:e}:e}function $O(e){return null!=e}function g1(e){let t=0;for(const n in e)t++;return t}function uQ(e,t){return e.catch(t)}var ev=Symbol("forceQueryFn"),Az=e=>"function"==typeof e[ev];function dQ({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[ev]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[ev]:p}),w=r.endpoints[n].select(c),x=m(b),k=w(y()),{requestId:z,abort:P}=x,T=k.requestId!==z,j=null==(g=o.get(m))?void 0:g[v],O=()=>w(y()),N=Object.assign(p?x.then(O):T&&!j?Promise.resolve(k):Promise.all([j,x]).then(O),{arg:c,requestId:z,subscriptionOptions:d,queryCacheKey:v,abort:P,async unwrap(){const e=await N;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:z}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:z,queryCacheKey:v,options:e}))}});if(!j&&!T&&!p){const e=o.get(m)||{};e[v]=N,o.set(m,e),N.then((()=>{delete e[v],g1(e)||o.delete(m)}))}return N};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=uQ(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],g1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],g1(y)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter($O)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter($O)}}}function eM(e){return e}function pQ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=eM;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[ev]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&_V.NODE_ENV,n.error)throw new _O(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[wy]:!0})}catch(t){let n=t;if(n instanceof _O){let t=eM;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[wy]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=VO(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wy]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!Az(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||LR(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=VO(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wy]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Uc(s.data)){const[e,t,r]=NR(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 o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[ev]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=uT(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Cy(sT(e),u(t)),matchFulfilled:Cy(wp(e),u(t)),matchRejected:Cy(O1(e),u(t))}}}}function GR(e,t,n,r){return uT(n[e.meta.arg.endpointName][t],wp(e)?e.payload:void 0,$w(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Fb(e,t,n){const r=e[t];r&&n(r)}function tv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function tM(e,t,n){const r=e[tv(t)];r&&n(r)}var ay={};function hQ({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=wr(`${e}/resetApiState`),u=da({name:`${e}/queries`,initialState:ay,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:ry()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Fb(e,t,(e=>{e.data=YO(e.data,n.concat())}))},prepare:ry()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=Az(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Fb(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Fb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!Az(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=Cv(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?ER(Fc(e.data)?nV(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{Fb(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=da({name:`${e}/mutations`,initialState:ay,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=tv(t);n in e&&delete e[n]},prepare:ry()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[tv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&tM(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&tM(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=da({name:`${e}/invalidation`,initialState:ay,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:ry()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(bp(wp(t),$w(t)),((e,t)=>{const n=GR(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=da({name:`${e}/subscriptions`,initialState:ay,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=da({name:`${e}/internalSubscriptions`,initialState:ay,reducers:{subscriptionsUpdated:{reducer:(e,t)=>YO(e,t.payload),prepare:ry()}}}),m=da({name:`${e}/config`,initialState:{online:aQ(),focused:oQ(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(lT,(e=>{e.online=!0})).addCase(RR,(e=>{e.online=!1})).addCase(fT,(e=>{e.focused=!0})).addCase(CR,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=xR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var _h=Symbol.for("RTKQ/skipToken"),IR={status:"uninitialized"},nM=Cv(IR,(()=>{})),rM=Cv(IR,(()=>{}));function mQ({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>nM,a=e=>rM;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===_h?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??nM},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?tv(e)??_h:e,n(t===_h?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??rM},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(Hz)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:QO(Object.values(t)))??[];for(const e of n)a.add(e)}return QO(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...$V(e.status)}}function i(e){return e[t]}}var Q0=WeakMap?new WeakMap:void 0,aM=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Q0?void 0:Q0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>vp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));vp(t)&&(null==Q0||Q0.set(t,e)),n=e}return`${e}(${n})`};function gQ(...e){return function(t){const n=$y((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,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=aM;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:aM({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Kw(),extractRehydrationInfo:n,hasRehydrationInfo:$y((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(ho(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function yQ(e){for(let t in e)return!1;return!0}var vQ=2147482.647,bQ=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!yQ(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,vQ));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},wQ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=bp(wp(r),$w(r)),f=bp(wp(r,a),O1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===g1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(GR(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(uT(e.payload,void 0,void 0,void 0,void 0,i),t)}},xQ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},PQ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===g1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{fT.match(e)&&i(t,"refetchOnFocus"),lT.match(e)&&i(t,"refetchOnReconnect")}},oM=new Error("Promise never resolved before cacheEntryRemoved."),kQ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=Sz(r),s=Sz(a),c=wp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw oM}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==oM)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?tv(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},zQ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=sT(n,r),o=O1(n,r),i=wp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},TQ=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},jQ=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>g1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=NR(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function OQ(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:wr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[TQ,bQ,wQ,xQ,kQ,zQ];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=jQ(u),p=PQ(u);return e=>c=>{if(!PR(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let y;if(y=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return y}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function np(e,...t){return Object.assign(e,...t)}var sM=Symbol(),MQ=({createSelector:e=Ar}={})=>({name:sM,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){uV();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:lT,onOffline:RR,onFocus:fT,onFocusLost:CR},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=pQ({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:x}=hQ({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});np(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:x.resetApiState}),np(t.internalActions,x);const{middleware:k,actions:z}=OQ({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});np(t.util,z),np(t,{reducer:w,middleware:k});const{buildQuerySelector:P,buildMutationSelector:T,selectInvalidatedBy:j,selectCachedArgsForQuery:O}=mQ({serializeQueryArgs:o,reducerPath:a,createSelector:e});np(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:O});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:E}=dQ({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return np(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:E,getRunningQueriesThunk:A}),{name:sM,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),LR(n)?np(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):fQ(n)&&np(a.endpoints[e],{name:e,select:T(),initiate:M(e)},b(h,e))}}}}),Fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iM,cM,c6={exports:{}},Jt={};
|
|
1
|
+
var JU=Object.defineProperty,KU=(e,t,n)=>t in e?JU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nn=(e,t,n)=>KU(e,"symbol"!=typeof t?t+"":t,n);function _U(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function kz(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 r6=()=>Math.random().toString(36).substring(7).split("").join("."),$U={INIT:`@@redux/INIT${r6()}`,REPLACE:`@@redux/REPLACE${r6()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${r6()}`},LO=$U;function vp(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 eV(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:LO.INIT})>"u")throw new Error(kz(12));if(typeof n(void 0,{type:LO.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(kz(13))}))}function xR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{eV(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(kz(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function PR(e){return vp(e)&&"type"in e&&"string"==typeof e.type}var rT=Symbol.for("immer-nothing"),Ey=Symbol.for("immer-draftable"),Ms=Symbol.for("immer-state");function uo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var om=Object.getPrototypeOf;function Fc(e){return!!e&&!!e[Ms]}function Uc(e){var t;return!!e&&(kR(e)||Array.isArray(e)||!!e[Ey]||!(null==(t=e.constructor)||!t[Ey])||Av(e)||Ev(e))}var tV=Object.prototype.constructor.toString();function kR(e){if(!e||"object"!=typeof e)return!1;const t=om(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===tV}function nV(e){return Fc(e)||uo(15,e),e[Ms].base_}function j1(e,t){0===sm(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function sm(e){const t=e[Ms];return t?t.type_:Array.isArray(e)?1:Av(e)?2:Ev(e)?3:0}function Jy(e,t){return 2===sm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function a6(e,t){return 2===sm(e)?e.get(t):e[t]}function zR(e,t,n){const r=sm(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function rV(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Av(e){return e instanceof Map}function Ev(e){return e instanceof Set}function qh(e){return e.copy_||e.base_}function zz(e,t){if(Av(e))return new Map(e);if(Ev(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&kR(e))return om(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ms];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(om(e),n)}function aT(e,t=!1){return Jw(e)||Fc(e)||!Uc(e)||(sm(e)>1&&(e.set=e.add=e.clear=e.delete=aV),Object.freeze(e),t&&j1(e,((e,t)=>aT(t,!0)))),e}function aV(){uo(2)}function Jw(e){return Object.isFrozen(e)}var Ky,Tz={};function im(e){const t=Tz[e];return t||uo(0,e),t}function oV(e,t){Tz[e]||(Tz[e]=t)}function TR(){return Ky}function sV(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function GO(e,t){t&&(im("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jz(e){Oz(e),e.drafts_.forEach(iV),e.drafts_=null}function Oz(e){e===Ky&&(Ky=e.parent_)}function IO(e){return Ky=sV(Ky,e)}function iV(e){const t=e[Ms];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function BO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ms].modified_&&(jz(t),uo(4)),Uc(e)&&(e=$3(t,e),t.parent_||ew(t,e)),t.patches_&&im("Patches").generateReplacementPatches_(n[Ms].base_,e,t.patches_,t.inversePatches_)):e=$3(t,n,[]),jz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rT?e:void 0}function $3(e,t,n){if(Jw(t))return t;const r=t[Ms];if(!r)return j1(t,((a,o)=>XO(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return ew(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),j1(a,((a,i)=>XO(e,r,t,a,i,n,o))),ew(e,t,!1),n&&e.patches_&&im("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function XO(e,t,n,r,a,o,i){if(Fc(a)){const i=$3(e,a,o&&t&&3!==t.type_&&!Jy(t.assigned_,r)?o.concat(r):void 0);if(zR(n,r,i),!Fc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Uc(a)&&!Jw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$3(e,a),(!t||!t.scope_.parent_)&&ew(e,a)}}function ew(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aT(t,n)}function cV(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:TR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=oT;n&&(a=[r],o=_y);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var oT={get(e,t){if(t===Ms)return e;const n=qh(e);if(!Jy(n,t))return fV(e,n,t);const r=n[t];return e.finalized_||!Uc(r)?r:r===o6(e.base_,t)?(s6(e),e.copy_[t]=Nz(r,e)):r},has:(e,t)=>t in qh(e),ownKeys:e=>Reflect.ownKeys(qh(e)),set(e,t,n){const r=jR(qh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=o6(qh(e),t),a=null==r?void 0:r[Ms];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(rV(n,r)&&(void 0!==n||Jy(e.base_,t)))return!0;s6(e),Mz(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_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==o6(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,s6(e),Mz(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=qh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){uo(11)},getPrototypeOf:e=>om(e.base_),setPrototypeOf(){uo(12)}},_y={};function o6(e,t){const n=e[Ms];return(n?qh(n):e)[t]}function fV(e,t,n){var r;const a=jR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function jR(e,t){if(!(t in e))return;let n=om(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=om(n)}}function Mz(e){e.modified_||(e.modified_=!0,e.parent_&&Mz(e.parent_))}function s6(e){e.copy_||(e.copy_=zz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}j1(oT,((e,t)=>{_y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),_y.deleteProperty=function(e,t){return _y.set.call(this,e,t,void 0)},_y.set=function(e,t,n){return oT.set.call(this,e[0],t,n,e[0])};var lV=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof 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("function"!=typeof t&&uo(6),void 0!==n&&"function"!=typeof n&&uo(7),Uc(e)){const a=IO(this),o=Nz(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?jz(a):Oz(a)}return GO(a,n),BO(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===rT&&(r=void 0),this.autoFreeze_&&aT(r,!0),n){const t=[],a=[];im("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}uo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof 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]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Uc(e)||uo(8),Fc(e)&&(e=OR(e));const t=IO(this),n=Nz(e,void 0);return n[Ms].isManual_=!0,Oz(t),n}finishDraft(e,t){const n=e&&e[Ms];(!n||!n.isManual_)&&uo(9);const{scope_:r}=n;return GO(r,t),BO(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}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=im("Patches").applyPatches_;return Fc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Nz(e,t){const n=Av(e)?im("MapSet").proxyMap_(e,t):Ev(e)?im("MapSet").proxySet_(e,t):cV(e,t);return(t?t.scope_:TR()).drafts_.push(n),n}function OR(e){return Fc(e)||uo(10,e),MR(e)}function MR(e){if(!Uc(e)||Jw(e))return e;const t=e[Ms];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zz(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zz(e,!0);return j1(n,((e,t)=>{zR(n,e,MR(t))})),t&&(t.finalized_=!1),n}function uV(){const e="replace",t="remove";function n(e){if(!Uc(e))return e;if(Array.isArray(e))return e.map(n);if(Av(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(Ev(e))return new Set(Array.from(e).map(n));const t=Object.create(om(e));for(const r in e)t[r]=n(e[r]);return Jy(e,Ey)&&(t[Ey]=e[Ey]),t}function r(e){return Fc(e)?n(e):e}oV("Patches",{applyPatches_:function(r,a){return a.forEach((a=>{const{path:o,op:i}=a;let s=r;for(let e=0;e<o.length-1;e++){const t=sm(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&uo(19),"function"==typeof s&&"prototype"===n&&uo(19),s=a6(s,n),"object"!=typeof s&&uo(18,o.join("/"))}const c=sm(s),l=n(a.value),u=o[o.length-1];switch(i){case e:switch(c){case 2:return s.set(u,l);case 3:uo(16);default:return s[u]=l}case"add":switch(c){case 1:return"-"===u?s.push(l):s.splice(u,0,l);case 2:return s.set(u,l);case 3:return s.add(l);default:return s[u]=l}case t:switch(c){case 1:return s.splice(u,1);case 2:return s.delete(u);case 3:return s.delete(a.value);default:return delete s[u]}default:uo(17,i)}})),r},generatePatches_:function(n,a,o,i){switch(n.type_){case 0:case 2:return function(n,a,o,i){const{base_:s,copy_:c}=n;j1(n.assigned_,((n,l)=>{const u=a6(s,n),f=a6(c,n),d=l?Jy(s,n)?e:"add":t;if(u===f&&d===e)return;const p=a.concat(n);o.push(d===t?{op:d,path:p}:{op:d,path:p,value:f}),i.push("add"===d?{op:t,path:p}:d===t?{op:"add",path:p,value:r(u)}:{op:e,path:p,value:r(u)})}))}(n,a,o,i);case 1:return function(n,a,o,i){let{base_:s,assigned_:c}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[o,i]=[i,o]);for(let t=0;t<s.length;t++)if(c[t]&&l[t]!==s[t]){const n=a.concat([t]);o.push({op:e,path:n,value:r(l[t])}),i.push({op:e,path:n,value:r(s[t])})}for(let e=s.length;e<l.length;e++){const t=a.concat([e]);o.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;s.length<=e;--e){const n=a.concat([e]);i.push({op:t,path:n})}}(n,a,o,i);case 3:return function(e,n,r,a){let{base_:o,copy_:i}=e,s=0;o.forEach((e=>{if(!i.has(e)){const o=n.concat([s]);r.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++})),s=0,i.forEach((e=>{if(!o.has(e)){const o=n.concat([s]);r.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}s++}))}(n,a,o,i)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===rT?void 0:n}),a.push({op:e,path:[],value:t})}})}var oi=new lV,Cv=oi.produce,NR=oi.produceWithPatches.bind(oi);oi.setAutoFreeze.bind(oi),oi.setUseStrictShallowCopy.bind(oi);var YO=oi.applyPatches.bind(oi);function dV(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function pV(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function hV(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}]`)}}oi.createDraft.bind(oi),oi.finishDraft.bind(oi);var ZO=e=>Array.isArray(e)?e:[e];function mV(e){const t=Array.isArray(e[0])?e[0]:e;return hV(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function gV(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var yV=class{constructor(e){this.value=e}deref(){return this.value}},vV=typeof WeakRef<"u"?WeakRef:yV,bV=0,WO=1;function Zb(){return{s:bV,v:void 0,o:null,p:null}}function $y(e,t={}){let n=Zb();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=Zb(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=Zb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===WO?l=i.v:(l=e.apply(null,arguments),o++),c.s=WO,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new vV(l):l}return c.v=l,l}return i.clearCache=()=>{n=Zb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function DR(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),dV(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=$y,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=ZO(l),h=ZO(f),m=mV(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=gV(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var Ar=DR($y),wV=Object.assign(((e,t=Ar)=>{pV(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>wV}),xV=(...e)=>{const t=DR(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Fc(e)?OR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};xV($y);var PV=e=>e&&"function"==typeof e.match;function wr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ho(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=>PR(t)&&t.type===e,n}function FO(e){return Uc(e)?Cv(e,(()=>{})):e}function Dz(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(ho(10));const r=n.insert(t,e);return e.set(t,r),r}var wy="RTK_autoBatch",ry=()=>e=>({payload:e,meta:{[wy]:!0}});function SR(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(ho(28));if(r in t)throw new Error(ho(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function kV(e){return"function"==typeof e}function zV(e,t){let n,[r,a,o]=SR(t);if(kV(e))n=()=>FO(e());else{const t=FO(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Fc(e)){const r=n(e,t);return void 0===r?e:r}if(Uc(e))return Cv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(ho(9))}return r}}return e}),e)}return i.getInitialState=n,i}var TV="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kw=(e=21)=>{let t="",n=e;for(;n--;)t+=TV[64*Math.random()|0];return t},HR=(e,t)=>PV(e)?e.match(t):e(t);function bp(...e){return t=>e.some((e=>HR(e,t)))}function Cy(...e){return t=>e.every((e=>HR(e,t)))}function _w(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 Rv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function sT(...e){return 0===e.length?e=>_w(e,["pending"]):Rv(e)?t=>bp(...e.map((e=>e.pending)))(t):sT()(e[0])}function O1(...e){return 0===e.length?e=>_w(e,["rejected"]):Rv(e)?t=>bp(...e.map((e=>e.rejected)))(t):O1()(e[0])}function $w(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Rv(e)?n=>Cy(O1(...e),t)(n):$w()(e[0])}function wp(...e){return 0===e.length?e=>_w(e,["fulfilled"]):Rv(e)?t=>bp(...e.map((e=>e.fulfilled)))(t):wp()(e[0])}function Sz(...e){return 0===e.length?e=>_w(e,["pending","fulfilled","rejected"]):Rv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return bp(...n)(t)}:Sz()(e[0])}var jV=["name","message","stack","code"],i6=class{constructor(e,t){Nn(this,"_type"),this.payload=e,this.meta=t}},UO=class{constructor(e,t){Nn(this,"_type"),this.payload=e,this.meta=t}},OV=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of jV)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},VO=(()=>{function e(e,t,n){const r=wr(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=wr(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=wr(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||OV)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Kw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(NV(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new i6(e,t),fulfillWithValue:(e,t)=>new UO(e,t)})).then((t=>{if(t instanceof i6)throw t;return t instanceof UO?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof i6?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(MV)})}}),{pending:a,rejected:o,fulfilled:r,settled:bp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function MV(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function NV(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var DV=Symbol.for("rtk-slice-createasyncthunk");function SV(e,t){return`${e}/${t}`}function HV({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[DV];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(ho(11));const a=("function"==typeof e.reducers?e.reducers(EV()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(ho(12));if(n in i.sliceCaseReducersByType)throw new Error(ho(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?SR(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return zV(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:SV(t,r),createNotation:"function"==typeof e.reducers};RV(o)?GV(i,o,s,n):CV(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=Dz(u,n,{insert:()=>new WeakMap});return Dz(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=AV(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function AV(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var da=HV();function EV(){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 CV({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!LV(r))throw new Error(ho(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?wr(e,i):wr(e))}function RV(e){return"asyncThunk"===e._reducerDefinitionType}function LV(e){return"reducerWithPrepare"===e._reducerDefinitionType}function GV({type:e,reducerName:t},n,r,a){if(!a)throw new Error(ho(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||Wb,pending:s||Wb,rejected:c||Wb,settled:l||Wb})}function Wb(){}var IV=(e,t)=>{if("function"!=typeof e)throw new Error(ho(32))},iT="listenerMiddleware",BV=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=wr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(ho(21));return IV(o),{predicate:a,type:t,effect:o}},XV=Object.assign((e=>{const{type:t,predicate:n,effect:r}=BV(e);return{id:Kw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ho(22))}}}),{withTypes:()=>XV}),YV=Object.assign(wr(`${iT}/add`),{withTypes:()=>YV});wr(`${iT}/removeAll`);var ZV=Object.assign(wr(`${iT}/remove`),{withTypes:()=>ZV}),WV=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,FV=e=>e.flatMap((e=>WV(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),cT=Symbol.for("rtk-state-proxy-original"),UV=e=>!!e&&!!e[cT],VV=new WeakMap,QV=(e,t)=>Dz(VV,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===cT)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Kw()});if(typeof t>"u")throw new Error(ho(24));return t}}return a}})}),qV=e=>{if(!UV(e))throw new Error(ho(25));return e[cT]},JV=(e={})=>e;function KV(...e){const t=Object.fromEntries(FV(e)),n=()=>Object.keys(t).length?xR(t):JV;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(QV(n?n(r,...a):r,t),...a)}}),{original:qV});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function ho(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 _V={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/auth/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"false",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/auth/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"73fa596daefcab7a",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/auth",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.960",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3851",APP_NAME:"@wellesley/auth"},AR=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(AR||{});function $V(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function eQ(e){return new RegExp("(^|:)//").test(e)}var tQ=e=>e.replace(/\/$/,""),nQ=e=>e.replace(/^\//,"");function rQ(e,t){if(!e)return t;if(!t)return e;if(eQ(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=tQ(e)}${n}${t=nQ(t)}`}var QO=e=>[].concat(...e);function aQ(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function oQ(){return typeof document>"u"||"hidden"!==document.visibilityState}var qO=vp;function ER(e,t){if(e===t||!(qO(e)&&qO(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 o=Array.isArray(t)?[]:{};for(const r of n)o[r]=ER(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var JO=(...e)=>fetch(...e),sQ=e=>e.status>=200&&e.status<=299,iQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function KO(e){if(!vp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function cQ({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=JO,paramsSerializer:r,isJsonContentType:a=iQ,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===JO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:y,endpoint:g,forced:v,type:b}=p;let w,{url:x,headers:k=new Headers(u.headers),params:z,responseHandler:P=c??"json",validateStatus:T=l??sQ,timeout:j=s,...O}="string"==typeof d?{url:d}:d,N={...u,signal:h,...O};k=new Headers(KO(k)),N.headers=await t(k,{getState:m,extra:y,endpoint:g,forced:v,type:b})||k;const M=e=>"object"==typeof e&&(vp(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!N.headers.has("content-type")&&M(N.body)&&N.headers.set("content-type",o),M(N.body)&&a(N.headers)&&(N.body=JSON.stringify(N.body,i)),z){const e=~x.indexOf("?")?"&":"?";x+=e+(r?r(z):new URLSearchParams(KO(z)))}x=rQ(e,x);const D=new Request(x,N);w={request:new Request(x,N)};let H,A=!1,E=j&&setTimeout((()=>{A=!0,p.abort()}),j);try{H=await n(D)}catch(e){return{error:{status:A?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{E&&clearTimeout(E)}const S=H.clone();w.response=S;let G,C="";try{let e;if(await Promise.all([f(H,P).then((e=>G=e),(t=>e=t)),S.text().then((e=>C=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:H.status,data:C,error:String(e)},meta:w}}return T(H,G)?{data:G,meta:w}:{error:{status:H.status,data:G},meta:w}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var _O=class{constructor(e,t=void 0){this.value=e,this.meta=t}},fT=wr("__rtkq/focused"),CR=wr("__rtkq/unfocused"),lT=wr("__rtkq/online"),RR=wr("__rtkq/offline");function LR(e){return"query"===e.type}function fQ(e){return"mutation"===e.type}function uT(e,t,n,r,a,o){return lQ(e)?e(t,n,r,a).map(Hz).map(o):Array.isArray(e)?e.map(Hz).map(o):[]}function lQ(e){return"function"==typeof e}function Hz(e){return"string"==typeof e?{type:e}:e}function $O(e){return null!=e}function g1(e){let t=0;for(const n in e)t++;return t}function uQ(e,t){return e.catch(t)}var ev=Symbol("forceQueryFn"),Az=e=>"function"==typeof e[ev];function dQ({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[ev]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[ev]:p}),w=r.endpoints[n].select(c),x=m(b),k=w(y()),{requestId:z,abort:P}=x,T=k.requestId!==z,j=null==(g=o.get(m))?void 0:g[v],O=()=>w(y()),N=Object.assign(p?x.then(O):T&&!j?Promise.resolve(k):Promise.all([j,x]).then(O),{arg:c,requestId:z,subscriptionOptions:d,queryCacheKey:v,abort:P,async unwrap(){const e=await N;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:z}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:z,queryCacheKey:v,options:e}))}});if(!j&&!T&&!p){const e=o.get(m)||{};e[v]=N,o.set(m,e),N.then((()=>{delete e[v],g1(e)||o.delete(m)}))}return N};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=uQ(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],g1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],g1(y)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter($O)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter($O)}}}function eM(e){return e}function pQ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=eM;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[ev]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&_V.NODE_ENV,n.error)throw new _O(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[wy]:!0})}catch(t){let n=t;if(n instanceof _O){let t=eM;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[wy]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=VO(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wy]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!Az(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||LR(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=VO(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[wy]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Uc(s.data)){const[e,t,r]=NR(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 o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[ev]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=uT(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Cy(sT(e),u(t)),matchFulfilled:Cy(wp(e),u(t)),matchRejected:Cy(O1(e),u(t))}}}}function GR(e,t,n,r){return uT(n[e.meta.arg.endpointName][t],wp(e)?e.payload:void 0,$w(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Fb(e,t,n){const r=e[t];r&&n(r)}function tv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function tM(e,t,n){const r=e[tv(t)];r&&n(r)}var ay={};function hQ({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=wr(`${e}/resetApiState`),u=da({name:`${e}/queries`,initialState:ay,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:ry()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Fb(e,t,(e=>{e.data=YO(e.data,n.concat())}))},prepare:ry()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=Az(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Fb(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Fb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!Az(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=Cv(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?ER(Fc(e.data)?nV(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{Fb(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=da({name:`${e}/mutations`,initialState:ay,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=tv(t);n in e&&delete e[n]},prepare:ry()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[tv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&tM(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&tM(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=da({name:`${e}/invalidation`,initialState:ay,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:ry()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(bp(wp(t),$w(t)),((e,t)=>{const n=GR(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=da({name:`${e}/subscriptions`,initialState:ay,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=da({name:`${e}/internalSubscriptions`,initialState:ay,reducers:{subscriptionsUpdated:{reducer:(e,t)=>YO(e,t.payload),prepare:ry()}}}),m=da({name:`${e}/config`,initialState:{online:aQ(),focused:oQ(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(lT,(e=>{e.online=!0})).addCase(RR,(e=>{e.online=!1})).addCase(fT,(e=>{e.focused=!0})).addCase(CR,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=xR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var _h=Symbol.for("RTKQ/skipToken"),IR={status:"uninitialized"},nM=Cv(IR,(()=>{})),rM=Cv(IR,(()=>{}));function mQ({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>nM,a=e=>rM;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===_h?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??nM},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?tv(e)??_h:e,n(t===_h?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??rM},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(Hz)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:QO(Object.values(t)))??[];for(const e of n)a.add(e)}return QO(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...$V(e.status)}}function i(e){return e[t]}}var Q0=WeakMap?new WeakMap:void 0,aM=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Q0?void 0:Q0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>vp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));vp(t)&&(null==Q0||Q0.set(t,e)),n=e}return`${e}(${n})`};function gQ(...e){return function(t){const n=$y((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,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=aM;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:aM({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Kw(),extractRehydrationInfo:n,hasRehydrationInfo:$y((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(ho(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function yQ(e){for(let t in e)return!1;return!0}var vQ=2147482.647,bQ=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!yQ(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,vQ));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},wQ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=bp(wp(r),$w(r)),f=bp(wp(r,a),O1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===g1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(GR(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(uT(e.payload,void 0,void 0,void 0,void 0,i),t)}},xQ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},PQ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===g1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{fT.match(e)&&i(t,"refetchOnFocus"),lT.match(e)&&i(t,"refetchOnReconnect")}},oM=new Error("Promise never resolved before cacheEntryRemoved."),kQ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=Sz(r),s=Sz(a),c=wp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw oM}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==oM)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?tv(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},zQ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=sT(n,r),o=O1(n,r),i=wp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},TQ=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},jQ=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>g1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=NR(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function OQ(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:wr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[TQ,bQ,wQ,xQ,kQ,zQ];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=jQ(u),p=PQ(u);return e=>c=>{if(!PR(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let y;if(y=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return y}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function np(e,...t){return Object.assign(e,...t)}var sM=Symbol(),MQ=({createSelector:e=Ar}={})=>({name:sM,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){uV();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:lT,onOffline:RR,onFocus:fT,onFocusLost:CR},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=pQ({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:x}=hQ({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});np(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:x.resetApiState}),np(t.internalActions,x);const{middleware:k,actions:z}=OQ({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});np(t.util,z),np(t,{reducer:w,middleware:k});const{buildQuerySelector:P,buildMutationSelector:T,selectInvalidatedBy:j,selectCachedArgsForQuery:O}=mQ({serializeQueryArgs:o,reducerPath:a,createSelector:e});np(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:O});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:E}=dQ({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return np(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:E,getRunningQueriesThunk:A}),{name:sM,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),LR(n)?np(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):fQ(n)&&np(a.endpoints[e],{name:e,select:T(),initiate:M(e)},b(h,e))}}}}),Fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iM,cM,c6={exports:{}},Jt={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|