@wellesley/auth 1.0.891 → 1.0.892
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 gF=Object.defineProperty,vF=(e,t,n)=>t in e?gF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mn=(e,t,n)=>vF(e,"symbol"!=typeof t?t+"":t,n);function yF(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 Rk(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 zx=()=>Math.random().toString(36).substring(7).split("").join("."),bF={INIT:`@@redux/INIT${zx()}`,REPLACE:`@@redux/REPLACE${zx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zx()}`},LO=bF;function sp(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 wF(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:LO.INIT})>"u")throw new Error(Rk(12));if(typeof n(void 0,{type:LO.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rk(13))}))}function KA(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{wF(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(Rk(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function _A(e){return sp(e)&&"type"in e&&"string"==typeof e.type}var m8=Symbol.for("immer-nothing"),hv=Symbol.for("immer-draftable"),zs=Symbol.for("immer-state");function co(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qh=Object.getPrototypeOf;function Lc(e){return!!e&&!!e[zs]}function Ic(e){var t;return!!e&&($A(e)||Array.isArray(e)||!!e[hv]||!(null==(t=e.constructor)||!t[hv])||dy(e)||py(e))}var xF=Object.prototype.constructor.toString();function $A(e){if(!e||"object"!=typeof e)return!1;const t=qh(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)===xF}function PF(e){return Lc(e)||co(15,e),e[zs].base_}function i1(e,t){0===Jh(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Jh(e){const t=e[zs];return t?t.type_:Array.isArray(e)?1:dy(e)?2:py(e)?3:0}function Dv(e,t){return 2===Jh(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tx(e,t){return 2===Jh(e)?e.get(t):e[t]}function eR(e,t,n){const r=Jh(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function kF(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function dy(e){return e instanceof Map}function py(e){return e instanceof Set}function Ih(e){return e.copy_||e.base_}function Ck(e,t){if(dy(e))return new Map(e);if(py(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&$A(e))return qh(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[zs];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(qh(e),n)}function g8(e,t=!1){return ww(e)||Lc(e)||!Ic(e)||(Jh(e)>1&&(e.set=e.add=e.clear=e.delete=zF),Object.freeze(e),t&&i1(e,((e,t)=>g8(t,!0)))),e}function zF(){co(2)}function ww(e){return Object.isFrozen(e)}var Hv,Gk={};function Kh(e){const t=Gk[e];return t||co(0,e),t}function TF(e,t){Gk[e]||(Gk[e]=t)}function tR(){return Hv}function OF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function IO(e,t){t&&(Kh("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lk(e){Ik(e),e.drafts_.forEach(jF),e.drafts_=null}function Ik(e){e===Hv&&(Hv=e.parent_)}function BO(e){return Hv=OF(Hv,e)}function jF(e){const t=e[zs];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function XO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[zs].modified_&&(Lk(t),co(4)),Ic(e)&&(e=O3(t,e),t.parent_||j3(t,e)),t.patches_&&Kh("Patches").generateReplacementPatches_(n[zs].base_,e,t.patches_,t.inversePatches_)):e=O3(t,n,[]),Lk(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==m8?e:void 0}function O3(e,t,n){if(ww(t))return t;const r=t[zs];if(!r)return i1(t,((a,o)=>YO(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return j3(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),i1(a,((a,i)=>YO(e,r,t,a,i,n,o))),j3(e,t,!1),n&&e.patches_&&Kh("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function YO(e,t,n,r,a,o,i){if(Lc(a)){const i=O3(e,a,o&&t&&3!==t.type_&&!Dv(t.assigned_,r)?o.concat(r):void 0);if(eR(n,r,i),!Lc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Ic(a)&&!ww(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;O3(e,a),(!t||!t.scope_.parent_)&&j3(e,a)}}function j3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&g8(t,n)}function NF(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=v8;n&&(a=[r],o=Sv);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var v8={get(e,t){if(t===zs)return e;const n=Ih(e);if(!Dv(n,t))return MF(e,n,t);const r=n[t];return e.finalized_||!Ic(r)?r:r===Ox(e.base_,t)?(jx(e),e.copy_[t]=Xk(r,e)):r},has:(e,t)=>t in Ih(e),ownKeys:e=>Reflect.ownKeys(Ih(e)),set(e,t,n){const r=nR(Ih(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ox(Ih(e),t),a=null==r?void 0:r[zs];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(kF(n,r)&&(void 0!==n||Dv(e.base_,t)))return!0;jx(e),Bk(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!==Ox(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,jx(e),Bk(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ih(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){co(11)},getPrototypeOf:e=>qh(e.base_),setPrototypeOf(){co(12)}},Sv={};function Ox(e,t){const n=e[zs];return(n?Ih(n):e)[t]}function MF(e,t,n){var r;const a=nR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function nR(e,t){if(!(t in e))return;let n=qh(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=qh(n)}}function Bk(e){e.modified_||(e.modified_=!0,e.parent_&&Bk(e.parent_))}function jx(e){e.copy_||(e.copy_=Ck(e.base_,e.scope_.immer_.useStrictShallowCopy_))}i1(v8,((e,t)=>{Sv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Sv.deleteProperty=function(e,t){return Sv.set.call(this,e,t,void 0)},Sv.set=function(e,t,n){return v8.set.call(this,e[0],t,n,e[0])};var DF=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&&co(6),void 0!==n&&"function"!=typeof n&&co(7),Ic(e)){const a=BO(this),o=Xk(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?Lk(a):Ik(a)}return IO(a,n),XO(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===m8&&(r=void 0),this.autoFreeze_&&g8(r,!0),n){const t=[],a=[];Kh("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}co(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){Ic(e)||co(8),Lc(e)&&(e=rR(e));const t=BO(this),n=Xk(e,void 0);return n[zs].isManual_=!0,Ik(t),n}finishDraft(e,t){const n=e&&e[zs];(!n||!n.isManual_)&&co(9);const{scope_:r}=n;return IO(r,t),XO(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=Kh("Patches").applyPatches_;return Lc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Xk(e,t){const n=dy(e)?Kh("MapSet").proxyMap_(e,t):py(e)?Kh("MapSet").proxySet_(e,t):NF(e,t);return(t?t.scope_:tR()).drafts_.push(n),n}function rR(e){return Lc(e)||co(10,e),aR(e)}function aR(e){if(!Ic(e)||ww(e))return e;const t=e[zs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ck(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ck(e,!0);return i1(n,((e,t)=>{eR(n,e,aR(t))})),t&&(t.finalized_=!1),n}function HF(){const e="replace",t="remove";function n(e){if(!Ic(e))return e;if(Array.isArray(e))return e.map(n);if(dy(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(py(e))return new Set(Array.from(e).map(n));const t=Object.create(qh(e));for(const r in e)t[r]=n(e[r]);return Dv(e,hv)&&(t[hv]=e[hv]),t}function r(e){return Lc(e)?n(e):e}TF("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=Jh(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&co(19),"function"==typeof s&&"prototype"===n&&co(19),s=Tx(s,n),"object"!=typeof s&&co(18,o.join("/"))}const c=Jh(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:co(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:co(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;i1(n.assigned_,((n,l)=>{const u=Tx(s,n),f=Tx(c,n),d=l?Dv(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===m8?void 0:n}),a.push({op:e,path:[],value:t})}})}var ti=new DF,hy=ti.produce,oR=ti.produceWithPatches.bind(ti);ti.setAutoFreeze.bind(ti),ti.setUseStrictShallowCopy.bind(ti);var ZO=ti.applyPatches.bind(ti);function SF(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function EF(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function AF(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}]`)}}ti.createDraft.bind(ti),ti.finishDraft.bind(ti);var WO=e=>Array.isArray(e)?e:[e];function RF(e){const t=Array.isArray(e[0])?e[0]:e;return AF(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function CF(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var GF=class{constructor(e){this.value=e}deref(){return this.value}},LF=typeof WeakRef<"u"?WeakRef:GF,IF=0,FO=1;function wb(){return{s:IF,v:void 0,o:null,p:null}}function Ev(e,t={}){let n=wb();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=wb(),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=wb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===FO?l=i.v:(l=e.apply(null,arguments),o++),c.s=FO,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 LF(l):l}return c.v=l,l}return i.clearCache=()=>{n=wb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function sR(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()),SF(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Ev,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=WO(l),h=WO(f),m=RF(e),g=c((function(){return r++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=CF(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:g,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 Br=sR(Ev),BF=Object.assign(((e,t=Br)=>{EF(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:()=>BF}),XF=(...e)=>{const t=sR(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Lc(e)?rR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};XF(Ev);var YF=e=>e&&"function"==typeof e.match;function Za(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(lo(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=>_A(t)&&t.type===e,n}function UO(e){return Ic(e)?hy(e,(()=>{})):e}function Yk(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(lo(10));const r=n.insert(t,e);return e.set(t,r),r}var tv="RTK_autoBatch",Lg=()=>e=>({payload:e,meta:{[tv]:!0}});function iR(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(lo(28));if(r in t)throw new Error(lo(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 ZF(e){return"function"==typeof e}function WF(e,t){let n,[r,a,o]=iR(t);if(ZF(e))n=()=>UO(e());else{const t=UO(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(Lc(e)){const r=n(e,t);return void 0===r?e:r}if(Ic(e))return hy(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(lo(9))}return r}}return e}),e)}return i.getInitialState=n,i}var FF="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xw=(e=21)=>{let t="",n=e;for(;n--;)t+=FF[64*Math.random()|0];return t},cR=(e,t)=>YF(e)?e.match(t):e(t);function ip(...e){return t=>e.some((e=>cR(e,t)))}function mv(...e){return t=>e.every((e=>cR(e,t)))}function Pw(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 my(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function y8(...e){return 0===e.length?e=>Pw(e,["pending"]):my(e)?t=>ip(...e.map((e=>e.pending)))(t):y8()(e[0])}function c1(...e){return 0===e.length?e=>Pw(e,["rejected"]):my(e)?t=>ip(...e.map((e=>e.rejected)))(t):c1()(e[0])}function kw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||my(e)?n=>mv(c1(...e),t)(n):kw()(e[0])}function cp(...e){return 0===e.length?e=>Pw(e,["fulfilled"]):my(e)?t=>ip(...e.map((e=>e.fulfilled)))(t):cp()(e[0])}function Zk(...e){return 0===e.length?e=>Pw(e,["pending","fulfilled","rejected"]):my(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return ip(...n)(t)}:Zk()(e[0])}var UF=["name","message","stack","code"],Nx=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},VO=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},VF=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of UF)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},QO=(()=>{function e(e,t,n){const r=Za(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=Za(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=Za(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||VF)(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):xw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let g;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(qF(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=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}))),g=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Nx(e,t),fulfillWithValue:(e,t)=>new VO(e,t)})).then((t=>{if(t instanceof Nx)throw t;return t instanceof VO?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){g=t instanceof Nx?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(g)&&g.meta.condition||i(g),g}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(QF)})}}),{pending:a,rejected:o,fulfilled:r,settled:ip(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function QF(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function qF(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var JF=Symbol.for("rtk-slice-createasyncthunk");function KF(e,t){return`${e}/${t}`}function _F({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[JF];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(lo(11));const a=("function"==typeof e.reducers?e.reducers(eU()):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(lo(12));if(n in i.sliceCaseReducersByType)throw new Error(lo(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?iR(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return WF(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:KF(t,r),createNotation:"function"==typeof e.reducers};nU(o)?aU(i,o,s,n):tU(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=Yk(u,n,{insert:()=>new WeakMap});return Yk(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=$F(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 $F(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 Xa=_F();function eU(){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 tU({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!rU(r))throw new Error(lo(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?Za(e,i):Za(e))}function nU(e){return"asyncThunk"===e._reducerDefinitionType}function rU(e){return"reducerWithPrepare"===e._reducerDefinitionType}function aU({type:e,reducerName:t},n,r,a){if(!a)throw new Error(lo(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||xb,pending:s||xb,rejected:c||xb,settled:l||xb})}function xb(){}var oU=(e,t)=>{if("function"!=typeof e)throw new Error(lo(32))},b8="listenerMiddleware",sU=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Za(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(lo(21));return oU(o),{predicate:a,type:t,effect:o}},iU=Object.assign((e=>{const{type:t,predicate:n,effect:r}=sU(e);return{id:xw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(lo(22))}}}),{withTypes:()=>iU}),cU=Object.assign(Za(`${b8}/add`),{withTypes:()=>cU});Za(`${b8}/removeAll`);var fU=Object.assign(Za(`${b8}/remove`),{withTypes:()=>fU}),lU=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,uU=e=>e.flatMap((e=>lU(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),w8=Symbol.for("rtk-state-proxy-original"),dU=e=>!!e&&!!e[w8],pU=new WeakMap,hU=(e,t)=>Yk(pU,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===w8)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:xw()});if(typeof t>"u")throw new Error(lo(24));return t}}return a}})}),mU=e=>{if(!dU(e))throw new Error(lo(25));return e[w8]},gU=(e={})=>e;function vU(...e){const t=Object.fromEntries(uU(e)),n=()=>Object.keys(t).length?KA(t):gU;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(hU(n?n(r,...a):r,t),...a)}}),{original:mU});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 lo(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 yU={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",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:"71c7353e22b1b1da",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.891",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:"3758",APP_NAME:"@wellesley/auth"},fR=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(fR||{});function bU(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function wU(e){return new RegExp("(^|:)//").test(e)}var xU=e=>e.replace(/\/$/,""),PU=e=>e.replace(/^\//,"");function kU(e,t){if(!e)return t;if(!t)return e;if(wU(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=xU(e)}${n}${t=PU(t)}`}var qO=e=>[].concat(...e);function zU(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function TU(){return typeof document>"u"||"hidden"!==document.visibilityState}var JO=sp;function lR(e,t){if(e===t||!(JO(e)&&JO(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]=lR(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var KO=(...e)=>fetch(...e),OU=e=>e.status>=200&&e.status<=299,jU=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function _O(e){if(!sp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function NU({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=KO,paramsSerializer:r,isJsonContentType:a=jU,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===KO&&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:g,endpoint:y,forced:v,type:b}=p;let w,{url:k,headers:z=new Headers(u.headers),params:x,responseHandler:P=c??"json",validateStatus:T=l??OU,timeout:j=s,...O}="string"==typeof d?{url:d}:d,N={...u,signal:h,...O};z=new Headers(_O(z)),N.headers=await t(z,{getState:m,extra:g,endpoint:y,forced:v,type:b})||z;const M=e=>"object"==typeof e&&(sp(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)),x){const e=~k.indexOf("?")?"&":"?";k+=e+(r?r(x):new URLSearchParams(_O(x)))}k=kU(e,k);const D=new Request(k,N);w={request:new Request(k,N)};let H,A=!1,G=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{G&&clearTimeout(G)}const S=H.clone();w.response=S;let E,L="";try{let e;if(await Promise.all([f(H,P).then((e=>E=e),(t=>e=t)),S.text().then((e=>L=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:H.status,data:L,error:String(e)},meta:w}}return T(H,E)?{data:E,meta:w}:{error:{status:H.status,data:E},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}},x8=Za("__rtkq/focused"),uR=Za("__rtkq/unfocused"),P8=Za("__rtkq/online"),dR=Za("__rtkq/offline");function pR(e){return"query"===e.type}function MU(e){return"mutation"===e.type}function k8(e,t,n,r,a,o){return DU(e)?e(t,n,r,a).map(Wk).map(o):Array.isArray(e)?e.map(Wk).map(o):[]}function DU(e){return"function"==typeof e}function Wk(e){return"string"==typeof e?{type:e}:e}function ej(e){return null!=e}function _0(e){let t=0;for(const n in e)t++;return t}function HU(e,t){return e.catch(t)}var Av=Symbol("forceQueryFn"),Fk=e=>"function"==typeof e[Av];function SU({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,[Av]:p,...h}={})=>(m,g)=>{var y;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,[Av]:p}),w=r.endpoints[n].select(c),k=m(b),z=w(g()),{requestId:x,abort:P}=k,T=z.requestId!==x,j=null==(y=o.get(m))?void 0:y[v],O=()=>w(g()),N=Object.assign(p?k.then(O):T&&!j?Promise.resolve(z):Promise.all([j,k]).then(O),{arg:c,requestId:x,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:x}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:x,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],_0(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=HU(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}))}}),g=i.get(o)||{};return i.set(o,g),g[f]=m,m.then((()=>{delete g[f],_0(g)||i.delete(o)})),a&&(g[a]=m,m.then((()=>{g[a]===m&&(delete g[a],_0(g)||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(ej)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(ej)}}}function tj(e){return e}function EU({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=tj;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[Av]: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"&&yU.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,[tv]:!0})}catch(t){let n=t;if(n instanceof $O){let t=tj;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[tv]:!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=QO(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[tv]:!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!!Fk(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||pR(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=QO(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[tv]:!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(Ic(s.data)){const[e,t,r]=oR(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,[Av]:()=>({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=k8(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:mv(y8(e),u(t)),matchFulfilled:mv(cp(e),u(t)),matchRejected:mv(c1(e),u(t))}}}}function hR(e,t,n,r){return k8(n[e.meta.arg.endpointName][t],cp(e)?e.payload:void 0,kw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Pb(e,t,n){const r=e[t];r&&n(r)}function Rv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function nj(e,t,n){const r=e[Rv(t)];r&&n(r)}var Ig={};function AU({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=Za(`${e}/resetApiState`),u=Xa({name:`${e}/queries`,initialState:Ig,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Lg()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Pb(e,t,(e=>{e.data=ZO(e.data,n.concat())}))},prepare:Lg()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=Fk(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Pb(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})=>{Pb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!Fk(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=hy(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?lR(Lc(e.data)?PF(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})=>{Pb(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=Xa({name:`${e}/mutations`,initialState:Ig,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Rv(t);n in e&&delete e[n]},prepare:Lg()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Rv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&nj(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&&nj(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=Xa({name:`${e}/invalidation`,initialState:Ig,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:Lg()}},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(ip(cp(t),kw(t)),((e,t)=>{const n=hR(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=Xa({name:`${e}/subscriptions`,initialState:Ig,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=Xa({name:`${e}/internalSubscriptions`,initialState:Ig,reducers:{subscriptionsUpdated:{reducer:(e,t)=>ZO(e,t.payload),prepare:Lg()}}}),m=Xa({name:`${e}/config`,initialState:{online:zU(),focused:TU(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(P8,(e=>{e.online=!0})).addCase(dR,(e=>{e.online=!1})).addCase(x8,(e=>{e.focused=!0})).addCase(uR,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),g=KA({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>g(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Yh=Symbol.for("RTKQ/skipToken"),mR={status:"uninitialized"},rj=hy(mR,(()=>{})),aj=hy(mR,(()=>{}));function RU({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>rj,a=e=>aj;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Yh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??rj},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Rv(e)??Yh:e,n(t===Yh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??aj},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(Wk)){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,...bU(e.status)}}function i(e){return e[t]}}var C0=WeakMap?new WeakMap:void 0,oj=({endpointName:e,queryArgs:t})=>{let n="";const r=null==C0?void 0:C0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>sp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));sp(t)&&(null==C0||C0.set(t,e)),n=e}return`${e}(${n})`};function CU(...e){return function(t){const n=Ev((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=oj;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:oj({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:xw(),extractRehydrationInfo:n,hasRehydrationInfo:Ev((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(lo(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 GU(e){for(let t in e)return!1;return!0}var LU=2147482.647,IU=({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&&!GU(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,LU));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)}}},BU=({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=ip(cp(r),kw(r)),f=ip(cp(r,a),c1(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===_0(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(hR(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(k8(e.payload,void 0,void 0,void 0,void 0,i),t)}},XU=({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)}()}},YU=({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===_0(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{x8.match(e)&&i(t,"refetchOnFocus"),P8.match(e)&&i(t,"refetchOnReconnect")}},sj=new Error("Promise never resolved before cacheEntryRemoved."),ZU=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=Zk(r),s=Zk(a),c=cp(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 sj}))]);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},g=c(r,m);Promise.resolve(g).catch((e=>{if(e!==sj)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)?Rv(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()}},WU=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=y8(n,r),o=c1(n,r),i=cp(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]}}},FU=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},UU=({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=>_0(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]=oR(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 VU(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:Za(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[FU,IU,BU,XU,ZU,WU];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=UU(u),p=YU(u);return e=>c=>{if(!_A(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 g;if(g=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 g}},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 Fd(e,...t){return Object.assign(e,...t)}var ij=Symbol(),QU=({createSelector:e=Br}={})=>({name:ij,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){HF();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:P8,onOffline:dR,onFocus:x8,onFocusLost:uR},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,buildMatchThunkActions:b}=EU({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:k}=AU({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Fd(t.util,{patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,resetApiState:k.resetApiState}),Fd(t.internalActions,k);const{middleware:z,actions:x}=VU({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Fd(t.util,x),Fd(t,{reducer:w,middleware:z});const{buildQuerySelector:P,buildMutationSelector:T,selectInvalidatedBy:j,selectCachedArgsForQuery:O}=RU({serializeQueryArgs:o,reducerPath:a,createSelector:e});Fd(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:O});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:G}=SU({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Fd(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:G,getRunningQueriesThunk:A}),{name:ij,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),pR(n)?Fd(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):MU(n)&&Fd(a.endpoints[e],{name:e,select:T(),initiate:M(e)},b(h,e))}}}}),Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cj,fj,Mx={exports:{}},qt={};
|
|
1
|
+
var gF=Object.defineProperty,vF=(e,t,n)=>t in e?gF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mn=(e,t,n)=>vF(e,"symbol"!=typeof t?t+"":t,n);function yF(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 Rk(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 zx=()=>Math.random().toString(36).substring(7).split("").join("."),bF={INIT:`@@redux/INIT${zx()}`,REPLACE:`@@redux/REPLACE${zx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zx()}`},LO=bF;function sp(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 wF(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:LO.INIT})>"u")throw new Error(Rk(12));if(typeof n(void 0,{type:LO.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rk(13))}))}function KA(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{wF(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(Rk(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function _A(e){return sp(e)&&"type"in e&&"string"==typeof e.type}var m8=Symbol.for("immer-nothing"),hv=Symbol.for("immer-draftable"),zs=Symbol.for("immer-state");function co(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qh=Object.getPrototypeOf;function Lc(e){return!!e&&!!e[zs]}function Ic(e){var t;return!!e&&($A(e)||Array.isArray(e)||!!e[hv]||!(null==(t=e.constructor)||!t[hv])||dy(e)||py(e))}var xF=Object.prototype.constructor.toString();function $A(e){if(!e||"object"!=typeof e)return!1;const t=qh(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)===xF}function PF(e){return Lc(e)||co(15,e),e[zs].base_}function i1(e,t){0===Jh(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Jh(e){const t=e[zs];return t?t.type_:Array.isArray(e)?1:dy(e)?2:py(e)?3:0}function Dv(e,t){return 2===Jh(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tx(e,t){return 2===Jh(e)?e.get(t):e[t]}function eR(e,t,n){const r=Jh(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function kF(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function dy(e){return e instanceof Map}function py(e){return e instanceof Set}function Ih(e){return e.copy_||e.base_}function Ck(e,t){if(dy(e))return new Map(e);if(py(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&$A(e))return qh(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[zs];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(qh(e),n)}function g8(e,t=!1){return ww(e)||Lc(e)||!Ic(e)||(Jh(e)>1&&(e.set=e.add=e.clear=e.delete=zF),Object.freeze(e),t&&i1(e,((e,t)=>g8(t,!0)))),e}function zF(){co(2)}function ww(e){return Object.isFrozen(e)}var Hv,Gk={};function Kh(e){const t=Gk[e];return t||co(0,e),t}function TF(e,t){Gk[e]||(Gk[e]=t)}function tR(){return Hv}function OF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function IO(e,t){t&&(Kh("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lk(e){Ik(e),e.drafts_.forEach(jF),e.drafts_=null}function Ik(e){e===Hv&&(Hv=e.parent_)}function BO(e){return Hv=OF(Hv,e)}function jF(e){const t=e[zs];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function XO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[zs].modified_&&(Lk(t),co(4)),Ic(e)&&(e=O3(t,e),t.parent_||j3(t,e)),t.patches_&&Kh("Patches").generateReplacementPatches_(n[zs].base_,e,t.patches_,t.inversePatches_)):e=O3(t,n,[]),Lk(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==m8?e:void 0}function O3(e,t,n){if(ww(t))return t;const r=t[zs];if(!r)return i1(t,((a,o)=>YO(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return j3(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),i1(a,((a,i)=>YO(e,r,t,a,i,n,o))),j3(e,t,!1),n&&e.patches_&&Kh("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function YO(e,t,n,r,a,o,i){if(Lc(a)){const i=O3(e,a,o&&t&&3!==t.type_&&!Dv(t.assigned_,r)?o.concat(r):void 0);if(eR(n,r,i),!Lc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Ic(a)&&!ww(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;O3(e,a),(!t||!t.scope_.parent_)&&j3(e,a)}}function j3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&g8(t,n)}function NF(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=v8;n&&(a=[r],o=Sv);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var v8={get(e,t){if(t===zs)return e;const n=Ih(e);if(!Dv(n,t))return MF(e,n,t);const r=n[t];return e.finalized_||!Ic(r)?r:r===Ox(e.base_,t)?(jx(e),e.copy_[t]=Xk(r,e)):r},has:(e,t)=>t in Ih(e),ownKeys:e=>Reflect.ownKeys(Ih(e)),set(e,t,n){const r=nR(Ih(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ox(Ih(e),t),a=null==r?void 0:r[zs];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(kF(n,r)&&(void 0!==n||Dv(e.base_,t)))return!0;jx(e),Bk(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!==Ox(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,jx(e),Bk(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ih(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){co(11)},getPrototypeOf:e=>qh(e.base_),setPrototypeOf(){co(12)}},Sv={};function Ox(e,t){const n=e[zs];return(n?Ih(n):e)[t]}function MF(e,t,n){var r;const a=nR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function nR(e,t){if(!(t in e))return;let n=qh(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=qh(n)}}function Bk(e){e.modified_||(e.modified_=!0,e.parent_&&Bk(e.parent_))}function jx(e){e.copy_||(e.copy_=Ck(e.base_,e.scope_.immer_.useStrictShallowCopy_))}i1(v8,((e,t)=>{Sv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Sv.deleteProperty=function(e,t){return Sv.set.call(this,e,t,void 0)},Sv.set=function(e,t,n){return v8.set.call(this,e[0],t,n,e[0])};var DF=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&&co(6),void 0!==n&&"function"!=typeof n&&co(7),Ic(e)){const a=BO(this),o=Xk(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?Lk(a):Ik(a)}return IO(a,n),XO(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===m8&&(r=void 0),this.autoFreeze_&&g8(r,!0),n){const t=[],a=[];Kh("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}co(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){Ic(e)||co(8),Lc(e)&&(e=rR(e));const t=BO(this),n=Xk(e,void 0);return n[zs].isManual_=!0,Ik(t),n}finishDraft(e,t){const n=e&&e[zs];(!n||!n.isManual_)&&co(9);const{scope_:r}=n;return IO(r,t),XO(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=Kh("Patches").applyPatches_;return Lc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Xk(e,t){const n=dy(e)?Kh("MapSet").proxyMap_(e,t):py(e)?Kh("MapSet").proxySet_(e,t):NF(e,t);return(t?t.scope_:tR()).drafts_.push(n),n}function rR(e){return Lc(e)||co(10,e),aR(e)}function aR(e){if(!Ic(e)||ww(e))return e;const t=e[zs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ck(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ck(e,!0);return i1(n,((e,t)=>{eR(n,e,aR(t))})),t&&(t.finalized_=!1),n}function HF(){const e="replace",t="remove";function n(e){if(!Ic(e))return e;if(Array.isArray(e))return e.map(n);if(dy(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(py(e))return new Set(Array.from(e).map(n));const t=Object.create(qh(e));for(const r in e)t[r]=n(e[r]);return Dv(e,hv)&&(t[hv]=e[hv]),t}function r(e){return Lc(e)?n(e):e}TF("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=Jh(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&co(19),"function"==typeof s&&"prototype"===n&&co(19),s=Tx(s,n),"object"!=typeof s&&co(18,o.join("/"))}const c=Jh(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:co(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:co(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;i1(n.assigned_,((n,l)=>{const u=Tx(s,n),f=Tx(c,n),d=l?Dv(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===m8?void 0:n}),a.push({op:e,path:[],value:t})}})}var ti=new DF,hy=ti.produce,oR=ti.produceWithPatches.bind(ti);ti.setAutoFreeze.bind(ti),ti.setUseStrictShallowCopy.bind(ti);var ZO=ti.applyPatches.bind(ti);function SF(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function EF(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function AF(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}]`)}}ti.createDraft.bind(ti),ti.finishDraft.bind(ti);var WO=e=>Array.isArray(e)?e:[e];function RF(e){const t=Array.isArray(e[0])?e[0]:e;return AF(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function CF(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var GF=class{constructor(e){this.value=e}deref(){return this.value}},LF=typeof WeakRef<"u"?WeakRef:GF,IF=0,FO=1;function wb(){return{s:IF,v:void 0,o:null,p:null}}function Ev(e,t={}){let n=wb();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=wb(),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=wb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===FO?l=i.v:(l=e.apply(null,arguments),o++),c.s=FO,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 LF(l):l}return c.v=l,l}return i.clearCache=()=>{n=wb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function sR(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()),SF(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Ev,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=WO(l),h=WO(f),m=RF(e),g=c((function(){return r++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=CF(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:g,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 Br=sR(Ev),BF=Object.assign(((e,t=Br)=>{EF(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:()=>BF}),XF=(...e)=>{const t=sR(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Lc(e)?rR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};XF(Ev);var YF=e=>e&&"function"==typeof e.match;function Za(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(lo(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=>_A(t)&&t.type===e,n}function UO(e){return Ic(e)?hy(e,(()=>{})):e}function Yk(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(lo(10));const r=n.insert(t,e);return e.set(t,r),r}var tv="RTK_autoBatch",Lg=()=>e=>({payload:e,meta:{[tv]:!0}});function iR(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(lo(28));if(r in t)throw new Error(lo(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 ZF(e){return"function"==typeof e}function WF(e,t){let n,[r,a,o]=iR(t);if(ZF(e))n=()=>UO(e());else{const t=UO(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(Lc(e)){const r=n(e,t);return void 0===r?e:r}if(Ic(e))return hy(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(lo(9))}return r}}return e}),e)}return i.getInitialState=n,i}var FF="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xw=(e=21)=>{let t="",n=e;for(;n--;)t+=FF[64*Math.random()|0];return t},cR=(e,t)=>YF(e)?e.match(t):e(t);function ip(...e){return t=>e.some((e=>cR(e,t)))}function mv(...e){return t=>e.every((e=>cR(e,t)))}function Pw(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 my(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function y8(...e){return 0===e.length?e=>Pw(e,["pending"]):my(e)?t=>ip(...e.map((e=>e.pending)))(t):y8()(e[0])}function c1(...e){return 0===e.length?e=>Pw(e,["rejected"]):my(e)?t=>ip(...e.map((e=>e.rejected)))(t):c1()(e[0])}function kw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||my(e)?n=>mv(c1(...e),t)(n):kw()(e[0])}function cp(...e){return 0===e.length?e=>Pw(e,["fulfilled"]):my(e)?t=>ip(...e.map((e=>e.fulfilled)))(t):cp()(e[0])}function Zk(...e){return 0===e.length?e=>Pw(e,["pending","fulfilled","rejected"]):my(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return ip(...n)(t)}:Zk()(e[0])}var UF=["name","message","stack","code"],Nx=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},VO=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},VF=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of UF)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},QO=(()=>{function e(e,t,n){const r=Za(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=Za(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=Za(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||VF)(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):xw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let g;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(qF(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=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}))),g=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Nx(e,t),fulfillWithValue:(e,t)=>new VO(e,t)})).then((t=>{if(t instanceof Nx)throw t;return t instanceof VO?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){g=t instanceof Nx?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(g)&&g.meta.condition||i(g),g}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(QF)})}}),{pending:a,rejected:o,fulfilled:r,settled:ip(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function QF(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function qF(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var JF=Symbol.for("rtk-slice-createasyncthunk");function KF(e,t){return`${e}/${t}`}function _F({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[JF];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(lo(11));const a=("function"==typeof e.reducers?e.reducers(eU()):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(lo(12));if(n in i.sliceCaseReducersByType)throw new Error(lo(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?iR(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return WF(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:KF(t,r),createNotation:"function"==typeof e.reducers};nU(o)?aU(i,o,s,n):tU(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=Yk(u,n,{insert:()=>new WeakMap});return Yk(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=$F(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 $F(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 Xa=_F();function eU(){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 tU({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!rU(r))throw new Error(lo(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?Za(e,i):Za(e))}function nU(e){return"asyncThunk"===e._reducerDefinitionType}function rU(e){return"reducerWithPrepare"===e._reducerDefinitionType}function aU({type:e,reducerName:t},n,r,a){if(!a)throw new Error(lo(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||xb,pending:s||xb,rejected:c||xb,settled:l||xb})}function xb(){}var oU=(e,t)=>{if("function"!=typeof e)throw new Error(lo(32))},b8="listenerMiddleware",sU=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=Za(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(lo(21));return oU(o),{predicate:a,type:t,effect:o}},iU=Object.assign((e=>{const{type:t,predicate:n,effect:r}=sU(e);return{id:xw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(lo(22))}}}),{withTypes:()=>iU}),cU=Object.assign(Za(`${b8}/add`),{withTypes:()=>cU});Za(`${b8}/removeAll`);var fU=Object.assign(Za(`${b8}/remove`),{withTypes:()=>fU}),lU=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,uU=e=>e.flatMap((e=>lU(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),w8=Symbol.for("rtk-state-proxy-original"),dU=e=>!!e&&!!e[w8],pU=new WeakMap,hU=(e,t)=>Yk(pU,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===w8)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:xw()});if(typeof t>"u")throw new Error(lo(24));return t}}return a}})}),mU=e=>{if(!dU(e))throw new Error(lo(25));return e[w8]},gU=(e={})=>e;function vU(...e){const t=Object.fromEntries(uU(e)),n=()=>Object.keys(t).length?KA(t):gU;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(hU(n?n(r,...a):r,t),...a)}}),{original:mU});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 lo(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 yU={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",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:"9296658ec7c10d3a",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.892",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:"3759",APP_NAME:"@wellesley/auth"},fR=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(fR||{});function bU(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function wU(e){return new RegExp("(^|:)//").test(e)}var xU=e=>e.replace(/\/$/,""),PU=e=>e.replace(/^\//,"");function kU(e,t){if(!e)return t;if(!t)return e;if(wU(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=xU(e)}${n}${t=PU(t)}`}var qO=e=>[].concat(...e);function zU(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function TU(){return typeof document>"u"||"hidden"!==document.visibilityState}var JO=sp;function lR(e,t){if(e===t||!(JO(e)&&JO(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]=lR(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var KO=(...e)=>fetch(...e),OU=e=>e.status>=200&&e.status<=299,jU=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function _O(e){if(!sp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function NU({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=KO,paramsSerializer:r,isJsonContentType:a=jU,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===KO&&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:g,endpoint:y,forced:v,type:b}=p;let w,{url:k,headers:z=new Headers(u.headers),params:x,responseHandler:P=c??"json",validateStatus:T=l??OU,timeout:j=s,...O}="string"==typeof d?{url:d}:d,N={...u,signal:h,...O};z=new Headers(_O(z)),N.headers=await t(z,{getState:m,extra:g,endpoint:y,forced:v,type:b})||z;const M=e=>"object"==typeof e&&(sp(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)),x){const e=~k.indexOf("?")?"&":"?";k+=e+(r?r(x):new URLSearchParams(_O(x)))}k=kU(e,k);const D=new Request(k,N);w={request:new Request(k,N)};let H,A=!1,G=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{G&&clearTimeout(G)}const S=H.clone();w.response=S;let E,L="";try{let e;if(await Promise.all([f(H,P).then((e=>E=e),(t=>e=t)),S.text().then((e=>L=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:H.status,data:L,error:String(e)},meta:w}}return T(H,E)?{data:E,meta:w}:{error:{status:H.status,data:E},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}},x8=Za("__rtkq/focused"),uR=Za("__rtkq/unfocused"),P8=Za("__rtkq/online"),dR=Za("__rtkq/offline");function pR(e){return"query"===e.type}function MU(e){return"mutation"===e.type}function k8(e,t,n,r,a,o){return DU(e)?e(t,n,r,a).map(Wk).map(o):Array.isArray(e)?e.map(Wk).map(o):[]}function DU(e){return"function"==typeof e}function Wk(e){return"string"==typeof e?{type:e}:e}function ej(e){return null!=e}function _0(e){let t=0;for(const n in e)t++;return t}function HU(e,t){return e.catch(t)}var Av=Symbol("forceQueryFn"),Fk=e=>"function"==typeof e[Av];function SU({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,[Av]:p,...h}={})=>(m,g)=>{var y;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,[Av]:p}),w=r.endpoints[n].select(c),k=m(b),z=w(g()),{requestId:x,abort:P}=k,T=z.requestId!==x,j=null==(y=o.get(m))?void 0:y[v],O=()=>w(g()),N=Object.assign(p?k.then(O):T&&!j?Promise.resolve(z):Promise.all([j,k]).then(O),{arg:c,requestId:x,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:x}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:x,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],_0(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=HU(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}))}}),g=i.get(o)||{};return i.set(o,g),g[f]=m,m.then((()=>{delete g[f],_0(g)||i.delete(o)})),a&&(g[a]=m,m.then((()=>{g[a]===m&&(delete g[a],_0(g)||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(ej)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(ej)}}}function tj(e){return e}function EU({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=tj;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[Av]: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"&&yU.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,[tv]:!0})}catch(t){let n=t;if(n instanceof $O){let t=tj;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[tv]:!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=QO(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[tv]:!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!!Fk(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||pR(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=QO(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[tv]:!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(Ic(s.data)){const[e,t,r]=oR(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,[Av]:()=>({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=k8(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:mv(y8(e),u(t)),matchFulfilled:mv(cp(e),u(t)),matchRejected:mv(c1(e),u(t))}}}}function hR(e,t,n,r){return k8(n[e.meta.arg.endpointName][t],cp(e)?e.payload:void 0,kw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Pb(e,t,n){const r=e[t];r&&n(r)}function Rv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function nj(e,t,n){const r=e[Rv(t)];r&&n(r)}var Ig={};function AU({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=Za(`${e}/resetApiState`),u=Xa({name:`${e}/queries`,initialState:Ig,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Lg()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Pb(e,t,(e=>{e.data=ZO(e.data,n.concat())}))},prepare:Lg()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=Fk(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Pb(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})=>{Pb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!Fk(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=hy(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?lR(Lc(e.data)?PF(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})=>{Pb(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=Xa({name:`${e}/mutations`,initialState:Ig,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Rv(t);n in e&&delete e[n]},prepare:Lg()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Rv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&nj(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&&nj(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=Xa({name:`${e}/invalidation`,initialState:Ig,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:Lg()}},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(ip(cp(t),kw(t)),((e,t)=>{const n=hR(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=Xa({name:`${e}/subscriptions`,initialState:Ig,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=Xa({name:`${e}/internalSubscriptions`,initialState:Ig,reducers:{subscriptionsUpdated:{reducer:(e,t)=>ZO(e,t.payload),prepare:Lg()}}}),m=Xa({name:`${e}/config`,initialState:{online:zU(),focused:TU(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(P8,(e=>{e.online=!0})).addCase(dR,(e=>{e.online=!1})).addCase(x8,(e=>{e.focused=!0})).addCase(uR,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),g=KA({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>g(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Yh=Symbol.for("RTKQ/skipToken"),mR={status:"uninitialized"},rj=hy(mR,(()=>{})),aj=hy(mR,(()=>{}));function RU({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>rj,a=e=>aj;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Yh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??rj},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Rv(e)??Yh:e,n(t===Yh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??aj},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(Wk)){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,...bU(e.status)}}function i(e){return e[t]}}var C0=WeakMap?new WeakMap:void 0,oj=({endpointName:e,queryArgs:t})=>{let n="";const r=null==C0?void 0:C0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>sp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));sp(t)&&(null==C0||C0.set(t,e)),n=e}return`${e}(${n})`};function CU(...e){return function(t){const n=Ev((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=oj;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:oj({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:xw(),extractRehydrationInfo:n,hasRehydrationInfo:Ev((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(lo(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 GU(e){for(let t in e)return!1;return!0}var LU=2147482.647,IU=({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&&!GU(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,LU));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)}}},BU=({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=ip(cp(r),kw(r)),f=ip(cp(r,a),c1(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===_0(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(hR(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(k8(e.payload,void 0,void 0,void 0,void 0,i),t)}},XU=({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)}()}},YU=({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===_0(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{x8.match(e)&&i(t,"refetchOnFocus"),P8.match(e)&&i(t,"refetchOnReconnect")}},sj=new Error("Promise never resolved before cacheEntryRemoved."),ZU=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=Zk(r),s=Zk(a),c=cp(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 sj}))]);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},g=c(r,m);Promise.resolve(g).catch((e=>{if(e!==sj)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)?Rv(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()}},WU=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=y8(n,r),o=c1(n,r),i=cp(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]}}},FU=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},UU=({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=>_0(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]=oR(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 VU(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:Za(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[FU,IU,BU,XU,ZU,WU];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=UU(u),p=YU(u);return e=>c=>{if(!_A(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 g;if(g=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 g}},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 Fd(e,...t){return Object.assign(e,...t)}var ij=Symbol(),QU=({createSelector:e=Br}={})=>({name:ij,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){HF();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:P8,onOffline:dR,onFocus:x8,onFocusLost:uR},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,buildMatchThunkActions:b}=EU({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:k}=AU({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Fd(t.util,{patchQueryData:m,updateQueryData:g,upsertQueryData:y,prefetch:v,resetApiState:k.resetApiState}),Fd(t.internalActions,k);const{middleware:z,actions:x}=VU({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Fd(t.util,x),Fd(t,{reducer:w,middleware:z});const{buildQuerySelector:P,buildMutationSelector:T,selectInvalidatedBy:j,selectCachedArgsForQuery:O}=RU({serializeQueryArgs:o,reducerPath:a,createSelector:e});Fd(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:O});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:G}=SU({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Fd(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:G,getRunningQueriesThunk:A}),{name:ij,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),pR(n)?Fd(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):MU(n)&&Fd(a.endpoints[e],{name:e,select:T(),initiate:M(e)},b(h,e))}}}}),Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cj,fj,Mx={exports:{}},qt={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|