- add account-level auto rating and daily polish tasks\n- add cached historical chat, media, emoji, and per-account realtime sync\n- add SQLite, MySQL, and PostgreSQL migrations and regression coverage\n- align account, sidebar, and chat interfaces with the new workflows
34 lines
70 KiB
JavaScript
34 lines
70 KiB
JavaScript
var Yn=Object.defineProperty;var Gn=(e,t,r)=>t in e?Yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oe=(e,t,r)=>Gn(e,typeof t!="symbol"?t+"":t,r);import{a as qt,r as K,g as Xn}from"./react-vendor-C_od1ZSF.js";function qr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=qr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Uo(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=qr(e))&&(n&&(n+=" "),n+=t);return n}function At(e){return e==="__proto__"}function Yr(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function Yt(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function Gr(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Gr).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Gt(e){if(Array.isArray(e))return e.map(Yt);if(typeof e=="symbol")return[e];e=Gr(e);const t=[],r=e.length;if(r===0)return t;let n=0,i="",s="",o=!1;for(e.charCodeAt(0)===46&&t.push("");n<r;){const f=e[n];if(s)f==="\\"&&n+1<r?(n++,i+=e[n]):f===s?s="":i+=f;else if(o)f==='"'||f==="'"?s=f:f==="]"?(o=!1,t.push(i),i=""):i+=f;else if(f==="[")o=!0,i&&(t.push(i),i="");else if(f==="."){i&&(t.push(i),i="");const u=e[n+1];(u===void 0||u===".")&&t.push("")}else i+=f;n++}return i&&t.push(i),t}function Xt(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(At(t))return r;const n=e[t];return n===void 0?Yr(t)?Xt(e,Gt(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=Yt(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return Hn(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),At(t))return r;const n=e[t];return n===void 0?r:n}}}function Hn(e,t,r){if(t.length===0)return r;let n=e;for(let i=0;i<t.length;i++){if(n==null||At(t[i]))return r;n=n[t[i]]}return n===void 0?r:n}function Kn(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],s=t(i,n,e);r.has(s)||r.set(s,i)}return Array.from(r.values())}function Zn(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function Xr(e){return e}function Jn(e){return function(t){return Xt(t,e)}}function Pt(e){return e==null||typeof e!="object"&&typeof e!="function"}function Vn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ht(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ei="[object RegExp]",Hr="[object String]",Kr="[object Number]",Zr="[object Boolean]",Jr="[object Arguments]",ti="[object Symbol]",ri="[object Date]",ni="[object Map]",ii="[object Set]",si="[object Array]",oi="[object ArrayBuffer]",fi="[object Object]",ui="[object DataView]",ci="[object Uint8Array]",ai="[object Uint8ClampedArray]",li="[object Uint16Array]",di="[object Uint32Array]",hi="[object Int8Array]",pi="[object Int16Array]",yi="[object Int32Array]",mi="[object Float32Array]",_i="[object Float64Array]",sr=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function gi(e){return typeof sr.Buffer<"u"&&sr.Buffer.isBuffer(e)}function wi(e,t){return te(e,void 0,e,new Map,t)}function te(e,t,r,n=new Map,i=void 0){const s=i==null?void 0:i(e,t,r,n);if(s!==void 0)return s;if(Pt(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const o=new Array(e.length);n.set(e,o);for(let f=0;f<e.length;f++)o[f]=te(e[f],f,r,n,i);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;n.set(e,o);for(const[f,u]of e)o.set(f,te(u,f,r,n,i));return o}if(e instanceof Set){const o=new Set;n.set(e,o);for(const f of e)o.add(te(f,void 0,r,n,i));return o}if(gi(e))return e.subarray();if(Vn(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,o);for(let f=0;f<e.length;f++)o[f]=te(e[f],f,r,n,i);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,o),j(o,e,r,n,i),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return n.set(e,o),j(o,e,r,n,i),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return n.set(e,o),j(o,e,r,n,i),o}if(e instanceof Error){const o=structuredClone(e);return n.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,j(o,e,r,n,i),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return n.set(e,o),j(o,e,r,n,i),o}if(e instanceof Number){const o=new Number(e.valueOf());return n.set(e,o),j(o,e,r,n,i),o}if(e instanceof String){const o=new String(e.valueOf());return n.set(e,o),j(o,e,r,n,i),o}if(typeof e=="object"&&bi(e)){const o=Object.create(Object.getPrototypeOf(e));return n.set(e,o),j(o,e,r,n,i),o}return e}function j(e,t,r=e,n,i){const s=[...Object.keys(t),...Qn(t)];for(let o=0;o<s.length;o++){const f=s[o],u=Object.getOwnPropertyDescriptor(e,f);(u==null||u.writable)&&(e[f]=te(t[f],f,r,n,i))}}function bi(e){switch(Ht(e)){case Jr:case si:case oi:case ui:case Zr:case ri:case mi:case _i:case hi:case pi:case yi:case ni:case Kr:case fi:case ei:case ii:case Hr:case ti:case ci:case ai:case li:case di:return!0;default:return!1}}function Ei(e){return te(e,void 0,e,new Map,void 0)}function De(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Vr(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Qr(e,t,r){return typeof r!="function"?Qr(e,t,()=>{}):Ot(e,t,function n(i,s,o,f,u,a){const c=r(i,s,o,f,u,a);return c!==void 0?!!c:Ot(i,s,n,a,!1)},new Map,!0)}function Ot(e,t,r,n,i=!1){if(t===e)return!0;switch(typeof t){case"object":return Si(e,t,r,n);case"function":return Object.keys(t).length>0?Ot(e,{...t},r,n,i):De(e,t);default:return Vr(e)&&i?typeof t=="string"?t==="":!0:De(e,t)}}function Si(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return en(e,t,r,n);if(t instanceof Map)return vi(e,t,r,n);if(t instanceof Set)return Ai(e,t,r,n);const i=Object.keys(t);if(e==null||Pt(e))return i.length===0;if(i.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let s=0;s<i.length;s++){const o=i[s];if(!Pt(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function vi(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[i,s]of t.entries())if(r(e.get(i),s,i,e,t,n)===!1)return!1;return!0}function en(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let s=0;s<t.length;s++){const o=t[s];let f=!1;for(let u=0;u<e.length;u++){if(i.has(u))continue;const a=e[u];let c=!1;if(r(a,o,s,e,t,n)&&(c=!0),c){i.add(u),f=!0;break}}if(!f)return!1}return!0}function Ai(e,t,r,n){return t.size===0?!0:e instanceof Set?en([...e],[...t],r,n):!1}function tn(e,t){return Qr(e,t,()=>{})}function Pi(e){return e=Ei(e),t=>tn(t,e)}function Oi(e,t){return wi(e,(r,n,i,s)=>{if(typeof e=="object"){if(Ht(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return s.set(e,o),j(o,e,i,s),o}switch(Object.prototype.toString.call(e)){case Kr:case Hr:case Zr:{const o=new e.constructor(e==null?void 0:e.valueOf());return j(o,e),o}case Jr:{const o={};return j(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function Ri(e){return Oi(e)}const Mi=/^(?:0|[1-9]\d*)$/;function rn(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return Mi.test(e)}}function Ni(e){return e!==null&&typeof e=="object"&&Ht(e)==="[object Arguments]"}function Ii(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Yr(t)&&(e==null?void 0:e[t])==null?r=Gt(t):r=[t],r.length===0)return!1;let n=e;for(let i=0;i<r.length;i++){const s=r[i];if((n==null||!Object.hasOwn(n,s))&&!((Array.isArray(n)||Ni(n))&&rn(s)&&s<n.length))return!1;n=n[s]}return!0}function xi(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=Yt(e);break}return t=Ri(t),function(r){const n=Xt(r,e);return n===void 0?Ii(r,e):t===void 0?n===void 0:tn(n,t)}}function Di(e){if(e==null)return Xr;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?xi(e[0],e[1]):Pi(e);case"string":case"symbol":case"number":return Jn(e)}}function $i(e){return Number.isSafeInteger(e)&&e>=0}function nn(e){return e!=null&&typeof e!="function"&&$i(e.length)}function ki(e){return typeof e=="object"&&e!==null}function Ci(e){return ki(e)&&nn(e)}function Bo(e,t=Xr){return Ci(e)?Kn(Array.from(e),Zn(Di(t),1)):[]}var ft={exports:{}},ut={},ct={exports:{}},at={};/**
|
|
* @license React
|
|
* use-sync-external-store-shim.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var or;function Li(){if(or)return at;or=1;var e=qt();function t(l,m){return l===m&&(l!==0||1/l===1/m)||l!==l&&m!==m}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,s=e.useLayoutEffect,o=e.useDebugValue;function f(l,m){var h=m(),y=n({inst:{value:h,getSnapshot:m}}),d=y[0].inst,p=y[1];return s(function(){d.value=h,d.getSnapshot=m,u(d)&&p({inst:d})},[l,h,m]),i(function(){return u(d)&&p({inst:d}),l(function(){u(d)&&p({inst:d})})},[l]),o(h),h}function u(l){var m=l.getSnapshot;l=l.value;try{var h=m();return!r(l,h)}catch{return!0}}function a(l,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:f;return at.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,at}var fr;function Fi(){return fr||(fr=1,ct.exports=Li()),ct.exports}/**
|
|
* @license React
|
|
* use-sync-external-store-shim/with-selector.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var ur;function Ti(){if(ur)return ut;ur=1;var e=qt(),t=Fi();function r(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,s=e.useRef,o=e.useEffect,f=e.useMemo,u=e.useDebugValue;return ut.useSyncExternalStoreWithSelector=function(a,c,l,m,h){var y=s(null);if(y.current===null){var d={hasValue:!1,value:null};y.current=d}else d=y.current;y=f(function(){function g(v){if(!S){if(S=!0,E=v,v=m(v),h!==void 0&&d.hasValue){var A=d.value;if(h(A,v))return w=A}return w=v}if(A=w,n(E,v))return A;var D=m(v);return h!==void 0&&h(A,D)?(E=v,A):(E=v,w=D)}var S=!1,E,w,b=l===void 0?null:l;return[function(){return g(c())},b===null?void 0:function(){return g(b())}]},[c,l,m,h]);var p=i(a,y[0],y[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),u(p),p},ut}var cr;function zi(){return cr||(cr=1,ft.exports=Ti()),ft.exports}var jo=zi();function Ui(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Bi(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var ar=e=>Array.isArray(e)?e:[e];function ji(e){const t=Array.isArray(e[0])?e[0]:e;return Bi(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Wi(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var qi=class{constructor(e){this.value=e}deref(){return this.value}},Yi=()=>typeof WeakRef>"u"?qi:WeakRef,sn=Yi(),Gi=0,lr=1;function Re(){return{s:Gi,v:void 0,o:null,p:null}}function Xi(e){return e instanceof sn?e.deref():e}function on(e,t={}){let r=Re();const{resultEqualityCheck:n}=t;let i,s=0;function o(){let f=r;const{length:u}=arguments;for(let l=0,m=u;l<m;l++){const h=arguments[l];if(typeof h=="function"||typeof h=="object"&&h!==null){let y=f.o;y===null&&(f.o=y=new WeakMap);const d=y.get(h);d===void 0?(f=Re(),y.set(h,f)):f=d}else{let y=f.p;y===null&&(f.p=y=new Map);const d=y.get(h);d===void 0?(f=Re(),y.set(h,f)):f=d}}const a=f;let c;if(f.s===lr)c=f.v;else if(c=e.apply(null,arguments),s++,n){const l=Xi(i);l!=null&&n(l,c)&&(c=l,s!==0&&s--),i=typeof c=="object"&&c!==null||typeof c=="function"?new sn(c):c}return a.s=lr,a.v=c,c}return o.clearCache=()=>{r=Re(),o.resetResultsCount()},o.resultsCount=()=>s,o.resetResultsCount=()=>{s=0},o}function Hi(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let s=0,o=0,f,u={},a=i.pop();typeof a=="object"&&(u=a,a=i.pop()),Ui(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const c={...r,...u},{memoize:l,memoizeOptions:m=[],argsMemoize:h=on,argsMemoizeOptions:y=[]}=c,d=ar(m),p=ar(y),g=ji(i),S=l(function(){return s++,a.apply(null,arguments)},...d),E=h(function(){o++;const b=Wi(g,arguments);return f=S.apply(null,b),f},...p);return Object.assign(E,{resultFunc:a,memoizedResultFunc:S,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>f,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:l,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var Wo=Hi(on);function Ki(e,t=1){const r=[],n=Math.floor(t),i=(s,o)=>{for(let f=0;f<s.length;f++){const u=s[f];Array.isArray(u)&&o<n?i(u,o+1):r.push(u)}};return i(e,0),r}function Rt(e,t,r){return Vr(r)&&(typeof t=="number"&&nn(r)&&rn(t)&&t<r.length||typeof t=="string"&&t in r)?De(r[t],e):!1}function dr(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const Zi=(e,t,r)=>{if(e!==t){const n=dr(e),i=dr(t);if(n===i&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?i-n:n-i}return 0};function fn(e){return typeof e=="symbol"||e instanceof Symbol}const Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vi=/^\w*$/;function Qi(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||fn(e)?!0:typeof e=="string"&&(Vi.test(e)||!Ji.test(e))||t!=null}function es(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(f=>String(f));const i=(f,u)=>{let a=f;for(let c=0;c<u.length&&a!=null;++c)a=a[u[c]];return a},s=(f,u)=>u==null||f==null?u:typeof f=="object"&&"key"in f?Object.hasOwn(u,f.key)?u[f.key]:i(u,f.path):typeof f=="function"?f(u):Array.isArray(f)?i(u,f):typeof u=="object"?u[f]:u,o=t.map(f=>(Array.isArray(f)&&f.length===1&&(f=f[0]),f==null||typeof f=="function"||Array.isArray(f)||Qi(f)?f:{key:f,path:Gt(f)}));return e.map(f=>({original:f,criteria:o.map(u=>s(u,f))})).slice().sort((f,u)=>{for(let a=0;a<o.length;a++){const c=Zi(f.criteria[a],u.criteria[a],r[a]);if(c!==0)return c}return 0}).map(f=>f.original)}function qo(e,...t){const r=t.length;return r>1&&Rt(e,t[0],t[1])?t=[]:r>2&&Rt(t[0],t[1],t[2])&&(t=[t[0]]),es(e,Ki(t),["asc"])}function k(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 ts=typeof Symbol=="function"&&Symbol.observable||"@@observable",hr=ts,lt=()=>Math.random().toString(36).substring(7).split("").join("."),rs={INIT:`@@redux/INIT${lt()}`,REPLACE:`@@redux/REPLACE${lt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lt()}`},Ce=rs;function Kt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function un(e,t,r){if(typeof e!="function")throw new Error(k(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(un)(e,t)}let n=e,i=t,s=new Map,o=s,f=0,u=!1;function a(){o===s&&(o=new Map,s.forEach((p,g)=>{o.set(g,p)}))}function c(){if(u)throw new Error(k(3));return i}function l(p){if(typeof p!="function")throw new Error(k(4));if(u)throw new Error(k(5));let g=!0;a();const S=f++;return o.set(S,p),function(){if(g){if(u)throw new Error(k(6));g=!1,a(),o.delete(S),s=null}}}function m(p){if(!Kt(p))throw new Error(k(7));if(typeof p.type>"u")throw new Error(k(8));if(typeof p.type!="string")throw new Error(k(17));if(u)throw new Error(k(9));try{u=!0,i=n(i,p)}finally{u=!1}return(s=o).forEach(S=>{S()}),p}function h(p){if(typeof p!="function")throw new Error(k(10));n=p,m({type:Ce.REPLACE})}function y(){const p=l;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(k(11));function S(){const w=g;w.next&&w.next(c())}return S(),{unsubscribe:p(S)}},[hr](){return this}}}return m({type:Ce.INIT}),{dispatch:m,subscribe:l,getState:c,replaceReducer:h,[hr]:y}}function ns(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ce.INIT})>"u")throw new Error(k(12));if(typeof r(void 0,{type:Ce.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function is(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const o=t[s];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{ns(r)}catch(s){i=s}return function(o={},f){if(i)throw i;let u=!1;const a={};for(let c=0;c<n.length;c++){const l=n[c],m=r[l],h=o[l],y=m(h,f);if(typeof y>"u")throw f&&f.type,new Error(k(14));a[l]=y,u=u||y!==h}return u=u||n.length!==Object.keys(o).length,u?a:o}}function Le(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ss(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(k(15))};const o={getState:i.getState,dispatch:(u,...a)=>s(u,...a)},f=e.map(u=>u(o));return s=Le(...f)(i.dispatch),{...i,dispatch:s}}}function cn(e){return Kt(e)&&"type"in e&&typeof e.type=="string"}var an=Symbol.for("immer-nothing"),pr=Symbol.for("immer-draftable"),C=Symbol.for("immer-state");function W(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var F=Object,ae=F.getPrototypeOf,Fe="constructor",Ke="prototype",Mt="configurable",Te="enumerable",$e="writable",me="value",J=e=>!!e&&!!e[C];function Y(e){var t;return e?ln(e)||Je(e)||!!e[pr]||!!((t=e[Fe])!=null&&t[pr])||Ve(e)||Qe(e):!1}var os=F[Ke][Fe].toString(),yr=new WeakMap;function ln(e){if(!e||!Zt(e))return!1;const t=ae(e);if(t===null||t===F[Ke])return!0;const r=F.hasOwnProperty.call(t,Fe)&&t[Fe];if(r===Object)return!0;if(!ue(r))return!1;let n=yr.get(r);return n===void 0&&(n=Function.toString.call(r),yr.set(r,n)),n===os}function Ze(e,t,r=!0){ve(e)===0?(r?Reflect.ownKeys(e):F.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function ve(e){const t=e[C];return t?t.type_:Je(e)?1:Ve(e)?2:Qe(e)?3:0}var mr=(e,t,r=ve(e))=>r===2?e.has(t):F[Ke].hasOwnProperty.call(e,t),Nt=(e,t,r=ve(e))=>r===2?e.get(t):e[t],ze=(e,t,r,n=ve(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function fs(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Je=Array.isArray,Ve=e=>e instanceof Map,Qe=e=>e instanceof Set,Zt=e=>typeof e=="object",ue=e=>typeof e=="function",dt=e=>typeof e=="boolean";function us(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var H=e=>e.copy_||e.base_,Jt=e=>e.modified_?e.copy_:e.base_;function It(e,t){if(Ve(e))return new Map(e);if(Qe(e))return new Set(e);if(Je(e))return Array[Ke].slice.call(e);const r=ln(e);if(t===!0||t==="class_only"&&!r){const n=F.getOwnPropertyDescriptors(e);delete n[C];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){const o=i[s],f=n[o];f[$e]===!1&&(f[$e]=!0,f[Mt]=!0),(f.get||f.set)&&(n[o]={[Mt]:!0,[$e]:!0,[Te]:f[Te],[me]:e[o]})}return F.create(ae(e),n)}else{const n=ae(e);if(n!==null&&r)return{...e};const i=F.create(n);return F.assign(i,e)}}function Vt(e,t=!1){return et(e)||J(e)||!Y(e)||(ve(e)>1&&F.defineProperties(e,{set:Me,add:Me,clear:Me,delete:Me}),F.freeze(e),t&&Ze(e,(r,n)=>{Vt(n,!0)},!1)),e}function cs(){W(2)}var Me={[me]:cs};function et(e){return e===null||!Zt(e)?!0:F.isFrozen(e)}var Ue="MapSet",xt="Patches",_r="ArrayMethods",dn={};function ie(e){const t=dn[e];return t||W(0,e),t}var gr=e=>!!dn[e],_e,hn=()=>_e,as=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:gr(Ue)?ie(Ue):void 0,arrayMethodsPlugin_:gr(_r)?ie(_r):void 0});function wr(e,t){t&&(e.patchPlugin_=ie(xt),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Dt(e){$t(e),e.drafts_.forEach(ls),e.drafts_=null}function $t(e){e===_e&&(_e=e.parent_)}var br=e=>_e=as(_e,e);function ls(e){const t=e[C];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Er(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[C].modified_&&(Dt(t),W(4)),Y(e)&&(e=Sr(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[C].base_,e,t)}else e=Sr(t,r);return ds(t,e,!0),Dt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==an?e:void 0}function Sr(e,t){if(et(t))return t;const r=t[C];if(!r)return Be(t,e.handledSet_,e);if(!tt(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);mn(r,e)}return r.copy_}function ds(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vt(t,r)}function pn(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var tt=(e,t)=>e.scope_===t,hs=[];function yn(e,t,r,n){const i=H(e),s=e.type_;if(n!==void 0&&Nt(i,n,s)===t){ze(i,n,r,s);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;Ze(i,(u,a)=>{if(J(a)){const c=f.get(a)||[];c.push(u),f.set(a,c)}})}const o=e.draftLocations_.get(t)??hs;for(const f of o)ze(i,f,r,s)}function ps(e,t,r){e.callbacks_.push(function(i){var f;const s=t;if(!s||!tt(s,i))return;(f=i.mapSetPlugin_)==null||f.fixSetContents(s);const o=Jt(s);yn(e,s.draft_??s,o,r),mn(s,i)})}function mn(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const s=i.getPath(e);s&&i.generatePatches_(e,s,t)}pn(e)}}function ys(e,t,r){const{scope_:n}=e;if(J(r)){const i=r[C];tt(i,n)&&i.callbacks_.push(function(){ke(e);const o=Jt(i);yn(e,r,o,t)})}else Y(r)&&e.callbacks_.push(function(){const s=H(e);e.type_===3?s.has(r)&&Be(r,n.handledSet_,n):Nt(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Be(Nt(e.copy_,t,e.type_),n.handledSet_,n)})}function Be(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||J(e)||t.has(e)||!Y(e)||et(e)||(t.add(e),Ze(e,(n,i)=>{if(J(i)){const s=i[C];if(tt(s,r)){const o=Jt(s);ze(e,n,o,e.type_),pn(s)}}else Y(i)&&Be(i,t,r)})),e}function ms(e,t){const r=Je(e),n={type_:r?1:0,scope_:t?t.scope_:hn(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,s=je;r&&(i=[n],s=ge);const{revoke:o,proxy:f}=Proxy.revocable(i,s);return n.draft_=f,n.revoke_=o,[f,n]}var je={get(e,t){if(t===C)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=H(e);if(!mr(i,t,e.type_))return _s(e,i,t);const s=i[t];if(e.finalized_||!Y(s)||n&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&us(t))return s;if(s===ht(e.base_,t)){ke(e);const o=e.type_===1?+t:t,f=Ct(e.scope_,s,e,o);return e.copy_[o]=f}return s},has(e,t){return t in H(e)},ownKeys(e){return Reflect.ownKeys(H(e))},set(e,t,r){const n=_n(H(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=ht(H(e),t),s=i==null?void 0:i[C];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(fs(r,i)&&(r!==void 0||mr(e.base_,t,e.type_)))return!0;ke(e),kt(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),ys(e,t,r)),!0},deleteProperty(e,t){return ke(e),ht(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),kt(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=H(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[$e]:!0,[Mt]:e.type_!==1||t!=="length",[Te]:n[Te],[me]:r[t]}},defineProperty(){W(11)},getPrototypeOf(e){return ae(e.base_)},setPrototypeOf(){W(12)}},ge={};for(let e in je){let t=je[e];ge[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ge.deleteProperty=function(e,t){return ge.set.call(this,e,t,void 0)};ge.set=function(e,t,r){return je.set.call(this,e[0],t,r,e[0])};function ht(e,t){const r=e[C];return(r?H(r):e)[t]}function _s(e,t,r){var i;const n=_n(t,r);return n?me in n?n[me]:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function _n(e,t){if(!(t in e))return;let r=ae(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ae(r)}}function kt(e){e.modified_||(e.modified_=!0,e.parent_&&kt(e.parent_))}function ke(e){e.copy_||(e.assigned_=new Map,e.copy_=It(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gs=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(ue(r)&&!ue(n)){const o=n;n=r;const f=this;return function(a=o,...c){return f.produce(a,l=>n.call(this,l,...c))}}ue(n)||W(6),i!==void 0&&!ue(i)&&W(7);let s;if(Y(r)){const o=br(this),f=Ct(o,r,void 0);let u=!0;try{s=n(f),u=!1}finally{u?Dt(o):$t(o)}return wr(o,i),Er(s,o)}else if(!r||!Zt(r)){if(s=n(r),s===void 0&&(s=r),s===an&&(s=void 0),this.autoFreeze_&&Vt(s,!0),i){const o=[],f=[];ie(xt).generateReplacementPatches_(r,s,{patches_:o,inversePatches_:f}),i(o,f)}return s}else W(1,r)},this.produceWithPatches=(r,n)=>{if(ue(r))return(f,...u)=>this.produceWithPatches(f,a=>r(a,...u));let i,s;return[this.produce(r,n,(f,u)=>{i=f,s=u}),i,s]},dt(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),dt(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),dt(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Y(t)||W(8),J(t)&&(t=ws(t));const r=br(this),n=Ct(r,t,void 0);return n[C].isManual_=!0,$t(r),n}finishDraft(t,r){const n=t&&t[C];(!n||!n.isManual_)&&W(9);const{scope_:i}=n;return wr(i,r),Er(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const s=r[n];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}n>-1&&(r=r.slice(n+1));const i=ie(xt).applyPatches_;return J(t)?i(t,r):this.produce(t,s=>i(s,r))}};function Ct(e,t,r,n){const[i,s]=Ve(t)?ie(Ue).proxyMap_(t,r):Qe(t)?ie(Ue).proxySet_(t,r):ms(t,r);return((r==null?void 0:r.scope_)??hn()).drafts_.push(i),s.callbacks_=(r==null?void 0:r.callbacks_)??[],s.key_=n,r&&n!==void 0?ps(r,s,n):s.callbacks_.push(function(u){var c;(c=u.mapSetPlugin_)==null||c.fixSetContents(s);const{patchPlugin_:a}=u;s.modified_&&a&&a.generatePatches_(s,[],u)}),i}function ws(e){return J(e)||W(10,e),gn(e)}function gn(e){if(!Y(e)||et(e))return e;const t=e[C];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=It(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=It(e,!0);return Ze(r,(i,s)=>{ze(r,i,gn(s))},n),t&&(t.finalized_=!1),r}var bs=new gs,wn=bs.produce;function bn(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var Es=bn(),Ss=bn,vs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)};function le(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(T(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>cn(n)&&n.type===e,r}var En=class ye extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ye.prototype)}static get[Symbol.species](){return ye}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ye(...t[0].concat(this)):new ye(...t.concat(this))}};function vr(e){return Y(e)?wn(e,()=>{}):e}function Ne(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function As(e){return typeof e=="boolean"}var Ps=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let o=new En;return r&&(As(r)?o.push(Es):o.push(Ss(r.extraArgument))),o},Sn="RTK_autoBatch",Go=()=>e=>({payload:e,meta:{[Sn]:!0}}),Ar=e=>t=>{setTimeout(t,e)},Os=(e,t)=>r=>{let n=!1;const i=()=>{n||(n=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=e(i),o=setTimeout(i,t)},Rs=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,s=!1,o=!1;const f=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Os(window.requestAnimationFrame,100):Ar(10):e.type==="callback"?e.queueNotification:Ar(e.timeout),a=()=>{o=!1,s&&(s=!1,f.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const l=()=>i&&c(),m=n.subscribe(l);return f.add(c),()=>{m(),f.delete(c)}},dispatch(c){var l;try{return i=!((l=c==null?void 0:c.meta)!=null&&l[Sn]),s=!i,s&&(o||(o=!0,u(a))),n.dispatch(c)}finally{i=!0}}})},Ms=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new En(e);return n&&i.push(Rs(typeof n=="object"?n:void 0)),i};function Xo(e){const t=Ps(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:s=void 0,enhancers:o=void 0}=e||{};let f;if(typeof r=="function")f=r;else if(Kt(r))f=is(r);else throw new Error(T(1));let u;typeof n=="function"?u=n(t):u=t();let a=Le;i&&(a=vs({trace:!1,...typeof i=="object"&&i}));const c=ss(...u),l=Ms(c);let m=typeof o=="function"?o(l):l();const h=a(...m);return un(f,s,h)}function vn(e){const t={},r=[];let n;const i={addCase(s,o){const f=typeof s=="string"?s:s.type;if(!f)throw new Error(T(28));if(f in t)throw new Error(T(29));return t[f]=o,i},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),i},addMatcher(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase(s){return n=s,i}};return e(i),[t,r,n]}function Ns(e){return typeof e=="function"}function Is(e,t){let[r,n,i]=vn(t),s;if(Ns(e))s=()=>vr(e());else{const f=vr(e);s=()=>f}function o(f=s(),u){let a=[r[u.type],...n.filter(({matcher:c})=>c(u)).map(({reducer:c})=>c)];return a.filter(c=>!!c).length===0&&(a=[i]),a.reduce((c,l)=>{if(l)if(J(c)){const h=l(c,u);return h===void 0?c:h}else{if(Y(c))return wn(c,m=>l(m,u));{const m=l(c,u);if(m===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return c},f)}return o.getInitialState=s,o}var xs="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ds=(e=21)=>{let t="",r=e;for(;r--;)t+=xs[Math.random()*64|0];return t},$s=Symbol.for("rtk-slice-createasyncthunk");function ks(e,t){return`${e}/${t}`}function Cs({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[$s];return function(i){const{name:s,reducerPath:o=s}=i;if(!s)throw new Error(T(11));const f=(typeof i.reducers=="function"?i.reducers(Fs()):i.reducers)||{},u=Object.keys(f),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,b){const v=typeof w=="string"?w:w.type;if(!v)throw new Error(T(12));if(v in a.sliceCaseReducersByType)throw new Error(T(13));return a.sliceCaseReducersByType[v]=b,c},addMatcher(w,b){return a.sliceMatchers.push({matcher:w,reducer:b}),c},exposeAction(w,b){return a.actionCreators[w]=b,c},exposeCaseReducer(w,b){return a.sliceCaseReducersByName[w]=b,c}};u.forEach(w=>{const b=f[w],v={reducerName:w,type:ks(s,w),createNotation:typeof i.reducers=="function"};zs(b)?Bs(v,b,c,t):Ts(v,b,c)});function l(){const[w={},b=[],v=void 0]=typeof i.extraReducers=="function"?vn(i.extraReducers):[i.extraReducers],A={...w,...a.sliceCaseReducersByType};return Is(i.initialState,D=>{for(let x in A)D.addCase(x,A[x]);for(let x of a.sliceMatchers)D.addMatcher(x.matcher,x.reducer);for(let x of b)D.addMatcher(x.matcher,x.reducer);v&&D.addDefaultCase(v)})}const m=w=>w,h=new Map,y=new WeakMap;let d;function p(w,b){return d||(d=l()),d(w,b)}function g(){return d||(d=l()),d.getInitialState()}function S(w,b=!1){function v(D){let x=D[w];return typeof x>"u"&&b&&(x=Ne(y,v,g)),x}function A(D=m){const x=Ne(h,b,()=>new WeakMap);return Ne(x,D,()=>{const Pe={};for(const[U,N]of Object.entries(i.selectors??{}))Pe[U]=Ls(N,D,()=>Ne(y,D,g),b);return Pe})}return{reducerPath:w,getSelectors:A,get selectors(){return A(v)},selectSlice:v}}const E={name:s,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:g,...S(o),injectInto(w,{reducerPath:b,...v}={}){const A=b??o;return w.inject({reducerPath:A,reducer:p},v),{...E,...S(A,!0)}}};return E}}function Ls(e,t,r,n){function i(s,...o){let f=t(s);return typeof f>"u"&&n&&(f=r()),e(f,...o)}return i.unwrapped=e,i}var Ho=Cs();function Fs(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Ts({type:e,reducerName:t,createNotation:r},n,i){let s,o;if("reducer"in n){if(r&&!Us(n))throw new Error(T(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?le(e,o):le(e))}function zs(e){return e._reducerDefinitionType==="asyncThunk"}function Us(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bs({type:e,reducerName:t},r,n,i){if(!i)throw new Error(T(18));const{payloadCreator:s,fulfilled:o,pending:f,rejected:u,settled:a,options:c}=r,l=i(e,s,c);n.exposeAction(t,l),o&&n.addCase(l.fulfilled,o),f&&n.addCase(l.pending,f),u&&n.addCase(l.rejected,u),a&&n.addMatcher(l.settled,a),n.exposeCaseReducer(t,{fulfilled:o||Ie,pending:f||Ie,rejected:u||Ie,settled:a||Ie})}function Ie(){}var js="task",An="listener",Pn="completed",Qt="cancelled",Ws=`task-${Qt}`,qs=`task-${Pn}`,Lt=`${An}-${Qt}`,Ys=`${An}-${Pn}`,rt=class{constructor(e){Oe(this,"code");Oe(this,"name","TaskAbortError");Oe(this,"message");this.code=e,this.message=`${js} ${Qt} (reason: ${e})`}},er=(e,t)=>{if(typeof e!="function")throw new TypeError(T(32))},We=()=>{},On=(e,t=We)=>(e.catch(t),e),Rn=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),re=e=>{if(e.aborted)throw new rt(e.reason)};function Mn(e,t){let r=We;return new Promise((n,i)=>{const s=()=>i(new rt(e.reason));if(e.aborted){s();return}r=Rn(e,s),t.finally(()=>r()).then(n,i)}).finally(()=>{r=We})}var Gs=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof rt?"cancelled":"rejected",error:r}}finally{t==null||t()}},qe=e=>t=>On(Mn(e,t).then(r=>(re(e),r))),Nn=e=>{const t=qe(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:ce}=Object,Pr={},nt="listenerMiddleware",Xs=(e,t)=>{const r=n=>Rn(e,()=>n.abort(e.reason));return(n,i)=>{er(n);const s=new AbortController;r(s);const o=Gs(async()=>{re(e),re(s.signal);const f=await n({pause:qe(s.signal),delay:Nn(s.signal),signal:s.signal});return re(s.signal),f},()=>s.abort(qs));return i!=null&&i.autoJoin&&t.push(o.catch(We)),{result:qe(e)(o),cancel(){s.abort(Ws)}}}},Hs=(e,t)=>{const r=async(n,i)=>{re(t);let s=()=>{};const f=[new Promise((u,a)=>{let c=e({predicate:n,effect:(l,m)=>{m.unsubscribe(),u([l,m.getState(),m.getOriginalState()])}});s=()=>{c(),a()}})];i!=null&&f.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await Mn(t,Promise.race(f));return re(t),u}finally{s()}};return((n,i)=>On(r(n,i)))},In=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:s}=e;if(t)i=le(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(T(21));return er(s),{predicate:i,type:t,effect:s}},xn=ce(e=>{const{type:t,predicate:r,effect:n}=In(e);return{id:Ds(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(T(22))}}},{withTypes:()=>xn}),Or=(e,t)=>{const{type:r,effect:n,predicate:i}=In(t);return Array.from(e.values()).find(s=>(typeof r=="string"?s.type===r:s.predicate===i)&&s.effect===n)},Ft=e=>{e.pending.forEach(t=>{t.abort(Lt)})},Ks=(e,t)=>()=>{for(const r of t.keys())Ft(r);e.clear()},Rr=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Dn=ce(le(`${nt}/add`),{withTypes:()=>Dn}),Zs=le(`${nt}/removeAll`),$n=ce(le(`${nt}/remove`),{withTypes:()=>$n}),Js=(...e)=>{console.error(`${nt}/error`,...e)},Ko=(e={})=>{const t=new Map,r=new Map,n=h=>{const y=r.get(h)??0;r.set(h,y+1)},i=h=>{const y=r.get(h)??1;y===1?r.delete(h):r.set(h,y-1)},{extra:s,onError:o=Js}=e;er(o);const f=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),y=>{h.unsubscribe(),y!=null&&y.cancelActive&&Ft(h)}),u=(h=>{const y=Or(t,h)??xn(h);return f(y)});ce(u,{withTypes:()=>u});const a=h=>{const y=Or(t,h);return y&&(y.unsubscribe(),h.cancelActive&&Ft(y)),!!y};ce(a,{withTypes:()=>a});const c=async(h,y,d,p)=>{const g=new AbortController,S=Hs(u,g.signal),E=[];try{h.pending.add(g),n(h),await Promise.resolve(h.effect(y,ce({},d,{getOriginalState:p,condition:(w,b)=>S(w,b).then(Boolean),take:S,delay:Nn(g.signal),pause:qe(g.signal),extra:s,signal:g.signal,fork:Xs(g.signal,E),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((w,b,v)=>{w!==g&&(w.abort(Lt),v.delete(w))})},cancel:()=>{g.abort(Lt),h.pending.delete(g)},throwIfCancelled:()=>{re(g.signal)}})))}catch(w){w instanceof rt||Rr(o,w,{raisedBy:"effect"})}finally{await Promise.all(E),g.abort(Ys),i(h),h.pending.delete(g)}},l=Ks(t,r);return{middleware:h=>y=>d=>{if(!cn(d))return y(d);if(Dn.match(d))return u(d.payload);if(Zs.match(d)){l();return}if($n.match(d))return a(d.payload);let p=h.getState();const g=()=>{if(p===Pr)throw new Error(T(23));return p};let S;try{if(S=y(d),t.size>0){const E=h.getState(),w=Array.from(t.values());for(const b of w){let v=!1;try{v=b.predicate(d,E,p)}catch(A){v=!1,Rr(o,A,{raisedBy:"predicate"})}v&&c(b,d,h,g)}}}finally{p=Pr}return S},startListening:u,stopListening:a,clearListeners:l}};function T(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. `}function Vs(e,t,{signal:r,edges:n}={}){let i,s=null;const o=n!=null&&n.includes("leading"),f=n==null||n.includes("trailing"),u=()=>{s!==null&&(e.apply(i,s),i=void 0,s=null)},a=()=>{f&&u(),h()};let c=null;const l=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,a()},t)},m=()=>{c!==null&&(clearTimeout(c),c=null)},h=()=>{m(),i=void 0,s=null},y=()=>{u()},d=function(...p){if(r!=null&&r.aborted)return;i=this,s=p;const g=c==null;l(),o&&g&&u()};return d.schedule=l,d.cancel=h,d.flush=y,r==null||r.addEventListener("abort",h,{once:!0}),d}function Qs(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:i=!0,maxWait:s}=r,o=Array(2);n&&(o[0]="leading"),i&&(o[1]="trailing");let f,u=null;const a=Vs(function(...m){f=e.apply(this,m),u=null},t,{edges:o}),c=function(...m){return s!=null&&(u===null&&(u=Date.now()),Date.now()-u>=s)?(f=e.apply(this,m),u=Date.now(),a.cancel(),a.schedule(),f):(a.apply(this,m),f)},l=()=>(a.flush(),f);return c.cancel=a.cancel,c.flush=l,c}function Zo(e,t=0,r={}){const{leading:n=!0,trailing:i=!0}=r;return Qs(e,t,{leading:n,maxWait:t,trailing:i})}var kn=Symbol.for("immer-nothing"),Mr=Symbol.for("immer-draftable"),z=Symbol.for("immer-state");function q(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var we=Object.getPrototypeOf;function de(e){return!!e&&!!e[z]}function se(e){var t;return e?Cn(e)||Array.isArray(e)||!!e[Mr]||!!((t=e.constructor)!=null&&t[Mr])||Ae(e)||st(e):!1}var eo=Object.prototype.constructor.toString(),Nr=new WeakMap;function Cn(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Nr.get(r);return n===void 0&&(n=Function.toString.call(r),Nr.set(r,n)),n===eo}function Ye(e,t,r=!0){it(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function it(e){const t=e[z];return t?t.type_:Array.isArray(e)?1:Ae(e)?2:st(e)?3:0}function Tt(e,t){return it(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ln(e,t,r){const n=it(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function to(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ae(e){return e instanceof Map}function st(e){return e instanceof Set}function Q(e){return e.copy_||e.base_}function zt(e,t){if(Ae(e))return new Map(e);if(st(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Cn(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[z];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){const o=i[s],f=n[o];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(n[o]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[o]})}return Object.create(we(e),n)}else{const n=we(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function tr(e,t=!1){return ot(e)||de(e)||!se(e)||(it(e)>1&&Object.defineProperties(e,{set:xe,add:xe,clear:xe,delete:xe}),Object.freeze(e),t&&Object.values(e).forEach(r=>tr(r,!0))),e}function ro(){q(2)}var xe={value:ro};function ot(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var no={};function oe(e){const t=no[e];return t||q(0,e),t}var be;function Fn(){return be}function io(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ir(e,t){t&&(oe("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ut(e){Bt(e),e.drafts_.forEach(so),e.drafts_=null}function Bt(e){e===be&&(be=e.parent_)}function xr(e){return be=io(be,e)}function so(e){const t=e[z];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Dr(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[z].modified_&&(Ut(t),q(4)),se(e)&&(e=Ge(t,e),t.parent_||Xe(t,e)),t.patches_&&oe("Patches").generateReplacementPatches_(r[z].base_,e,t.patches_,t.inversePatches_)):e=Ge(t,r,[]),Ut(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kn?e:void 0}function Ge(e,t,r){if(ot(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[z];if(!i)return Ye(t,(s,o)=>$r(e,i,t,s,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Xe(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const s=i.copy_;let o=s,f=!1;i.type_===3&&(o=new Set(s),s.clear(),f=!0),Ye(o,(u,a)=>$r(e,i,s,u,a,r,f),n),Xe(e,s,!1),r&&e.patches_&&oe("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function $r(e,t,r,n,i,s,o){if(i==null||typeof i!="object"&&!o)return;const f=ot(i);if(!(f&&!o)){if(de(i)){const u=s&&t&&t.type_!==3&&!Tt(t.assigned_,n)?s.concat(n):void 0,a=Ge(e,i,u);if(Ln(r,n,a),de(a))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(se(i)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&f)return;Ge(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ae(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Xe(e,i)}}}function Xe(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tr(t,r)}function oo(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Fn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,s=rr;r&&(i=[n],s=Ee);const{revoke:o,proxy:f}=Proxy.revocable(i,s);return n.draft_=f,n.revoke_=o,f}var rr={get(e,t){if(t===z)return e;const r=Q(e);if(!Tt(r,t))return fo(e,r,t);const n=r[t];return e.finalized_||!se(n)?n:n===pt(e.base_,t)?(yt(e),e.copy_[t]=Wt(n,e)):n},has(e,t){return t in Q(e)},ownKeys(e){return Reflect.ownKeys(Q(e))},set(e,t,r){const n=Tn(Q(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=pt(Q(e),t),s=i==null?void 0:i[z];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(to(r,i)&&(r!==void 0||Tt(e.base_,t)))return!0;yt(e),jt(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return pt(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,yt(e),jt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Q(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){q(11)},getPrototypeOf(e){return we(e.base_)},setPrototypeOf(){q(12)}},Ee={};Ye(rr,(e,t)=>{Ee[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ee.deleteProperty=function(e,t){return Ee.set.call(this,e,t,void 0)};Ee.set=function(e,t,r){return rr.set.call(this,e[0],t,r,e[0])};function pt(e,t){const r=e[z];return(r?Q(r):e)[t]}function fo(e,t,r){var i;const n=Tn(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function Tn(e,t){if(!(t in e))return;let r=we(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=we(r)}}function jt(e){e.modified_||(e.modified_=!0,e.parent_&&jt(e.parent_))}function yt(e){e.copy_||(e.copy_=zt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uo=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const s=r;r=t;const o=this;return function(u=s,...a){return o.produce(u,c=>r.call(this,c,...a))}}typeof r!="function"&&q(6),n!==void 0&&typeof n!="function"&&q(7);let i;if(se(t)){const s=xr(this),o=Wt(t,void 0);let f=!0;try{i=r(o),f=!1}finally{f?Ut(s):Bt(s)}return Ir(s,n),Dr(i,s)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===kn&&(i=void 0),this.autoFreeze_&&tr(i,!0),n){const s=[],o=[];oe("Patches").generateReplacementPatches_(t,i,s,o),n(s,o)}return i}else q(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...f)=>this.produceWithPatches(o,u=>t(u,...f));let n,i;return[this.produce(t,r,(o,f)=>{n=o,i=f}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){se(e)||q(8),de(e)&&(e=co(e));const t=xr(this),r=Wt(e,void 0);return r[z].isManual_=!0,Bt(t),r}finishDraft(e,t){const r=e&&e[z];(!r||!r.isManual_)&&q(9);const{scope_:n}=r;return Ir(n,t),Dr(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=oe("Patches").applyPatches_;return de(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Wt(e,t){const r=Ae(e)?oe("MapSet").proxyMap_(e,t):st(e)?oe("MapSet").proxySet_(e,t):oo(e,t);return(t?t.scope_:Fn()).drafts_.push(r),r}function co(e){return de(e)||q(10,e),zn(e)}function zn(e){if(!se(e)||ot(e))return e;const t=e[z];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=zt(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=zt(e,!0);return Ye(r,(i,s)=>{Ln(r,i,zn(s))},n),t&&(t.finalized_=!1),r}var ao=new uo;ao.produce;function Jo(e){return e}var mt={exports:{}},_t={};/**
|
|
* @license React
|
|
* use-sync-external-store-with-selector.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var kr;function lo(){if(kr)return _t;kr=1;var e=qt();function t(u,a){return u===a&&(u!==0||1/u===1/a)||u!==u&&a!==a}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,o=e.useMemo,f=e.useDebugValue;return _t.useSyncExternalStoreWithSelector=function(u,a,c,l,m){var h=i(null);if(h.current===null){var y={hasValue:!1,value:null};h.current=y}else y=h.current;h=o(function(){function p(b){if(!g){if(g=!0,S=b,b=l(b),m!==void 0&&y.hasValue){var v=y.value;if(m(v,b))return E=v}return E=b}if(v=E,r(S,b))return v;var A=l(b);return m!==void 0&&m(v,A)?(S=b,v):(S=b,E=A)}var g=!1,S,E,w=c===void 0?null:c;return[function(){return p(a())},w===null?void 0:function(){return p(w())}]},[a,c,l,m]);var d=n(u,h[0],h[1]);return s(function(){y.hasValue=!0,y.value=d},[d]),f(d),d},_t}var Cr;function ho(){return Cr||(Cr=1,mt.exports=lo()),mt.exports}ho();function po(e){e()}function yo(){let e=null,t=null;return{clear(){e=null,t=null},notify(){po(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Lr={notify(){},get:()=>[]};function mo(e,t){let r,n=Lr,i=0,s=!1;function o(d){c();const p=n.subscribe(d);let g=!1;return()=>{g||(g=!0,p(),l())}}function f(){n.notify()}function u(){y.onStateChange&&y.onStateChange()}function a(){return s}function c(){i++,r||(r=e.subscribe(u),n=yo())}function l(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Lr)}function m(){s||(s=!0,c())}function h(){s&&(s=!1,l())}const y={addNestedSub:o,notifyNestedSubs:f,handleChangeWrapper:u,isSubscribed:a,trySubscribe:m,tryUnsubscribe:h,getListeners:()=>n};return y}var _o=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",go=_o(),wo=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bo=wo(),Eo=()=>go||bo?K.useLayoutEffect:K.useEffect,So=Eo();function Fr(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Vo(e,t){if(Fr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!Fr(e[r[i]],t[r[i]]))return!1;return!0}var gt=Symbol.for("react-redux-context"),wt=typeof globalThis<"u"?globalThis:{};function vo(){if(!K.createContext)return{};const e=wt[gt]??(wt[gt]=new Map);let t=e.get(K.createContext);return t||(t=K.createContext(null),e.set(K.createContext,t)),t}var Ao=vo();function Po(e){const{children:t,context:r,serverState:n,store:i}=e,s=K.useMemo(()=>{const u=mo(i);return{store:i,subscription:u,getServerState:n?()=>n:void 0}},[i,n]),o=K.useMemo(()=>i.getState(),[i]);So(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const f=r||Ao;return K.createElement(f.Provider,{value:s},t)}var Qo=Po;function Oo(e){return fn(e)?NaN:Number(e)}function bt(e){return e?(e=Oo(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function ef(e,t,r){r&&typeof r!="number"&&Rt(e,t,r)&&(t=r=void 0),e=bt(e),t===void 0?(t=e,e=0):t=bt(t),r=r===void 0?e<t?1:-1:bt(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),i=new Array(n);for(let s=0;s<n;s++)i[s]=e,e+=r;return i}var he=1e9,Ro={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ir,M=!0,B="[DecimalError] ",ne=B+"Invalid argument: ",nr=B+"Exponent out of range: ",pe=Math.floor,ee=Math.pow,Mo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,L,$=1e7,R=7,Un=9007199254740991,He=pe(Un/R),_={};_.absoluteValue=_.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};_.comparedTo=_.cmp=function(e){var t,r,n,i,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(n=s.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return n===i?0:n>i^s.s<0?1:-1};_.decimalPlaces=_.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*R;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};_.dividedBy=_.div=function(e){return Z(this,new this.constructor(e))};_.dividedToIntegerBy=_.idiv=function(e){var t=this,r=t.constructor;return O(Z(t,new r(e),0,1),r.precision)};_.equals=_.eq=function(e){return!this.cmp(e)};_.exponent=function(){return I(this)};_.greaterThan=_.gt=function(e){return this.cmp(e)>0};_.greaterThanOrEqualTo=_.gte=function(e){return this.cmp(e)>=0};_.isInteger=_.isint=function(){return this.e>this.d.length-2};_.isNegative=_.isneg=function(){return this.s<0};_.isPositive=_.ispos=function(){return this.s>0};_.isZero=function(){return this.s===0};_.lessThan=_.lt=function(e){return this.cmp(e)<0};_.lessThanOrEqualTo=_.lte=function(e){return this.cmp(e)<1};_.logarithm=_.log=function(e){var t,r=this,n=r.constructor,i=n.precision,s=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(L))throw Error(B+"NaN");if(r.s<1)throw Error(B+(r.s?"NaN":"-Infinity"));return r.eq(L)?new n(0):(M=!1,t=Z(Se(r,s),Se(e,s),s),M=!0,O(t,i))};_.minus=_.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Wn(t,e):Bn(t,(e.s=-e.s,e))};_.modulo=_.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(B+"NaN");return r.s?(M=!1,t=Z(r,e,0,1).times(e),M=!0,r.minus(t)):O(new n(r),i)};_.naturalExponential=_.exp=function(){return jn(this)};_.naturalLogarithm=_.ln=function(){return Se(this)};_.negated=_.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};_.plus=_.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Bn(t,e):Wn(t,(e.s=-e.s,e))};_.precision=_.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ne+e);if(t=I(i)+1,n=i.d.length-1,r=n*R+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};_.squareRoot=_.sqrt=function(){var e,t,r,n,i,s,o,f=this,u=f.constructor;if(f.s<1){if(!f.s)return new u(0);throw Error(B+"NaN")}for(e=I(f),M=!1,i=Math.sqrt(+f),i==0||i==1/0?(t=G(f.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=pe((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(s=n,n=s.plus(Z(f,s,o+2)).times(.5),G(s.d).slice(0,o)===(t=G(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(O(s,r+1,0),s.times(s).eq(f)){n=s;break}}else if(t!="9999")break;o+=4}return M=!0,O(n,r)};_.times=_.mul=function(e){var t,r,n,i,s,o,f,u,a,c=this,l=c.constructor,m=c.d,h=(e=new l(e)).d;if(!c.s||!e.s)return new l(0);for(e.s*=c.s,r=c.e+e.e,u=m.length,a=h.length,u<a&&(s=m,m=h,h=s,o=u,u=a,a=o),s=[],o=u+a,n=o;n--;)s.push(0);for(n=a;--n>=0;){for(t=0,i=u+n;i>n;)f=s[i]+h[n]*m[i-n-1]+t,s[i--]=f%$|0,t=f/$|0;s[i]=(s[i]+t)%$|0}for(;!s[--o];)s.pop();return t?++r:s.shift(),e.d=s,e.e=r,M?O(e,l.precision):e};_.toDecimalPlaces=_.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(X(e,0,he),t===void 0?t=n.rounding:X(t,0,8),O(r,e+I(r)+1,t))};_.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=fe(n,!0):(X(e,0,he),t===void 0?t=i.rounding:X(t,0,8),n=O(new i(n),e+1,t),r=fe(n,!0,e+1)),r};_.toFixed=function(e,t){var r,n,i=this,s=i.constructor;return e===void 0?fe(i):(X(e,0,he),t===void 0?t=s.rounding:X(t,0,8),n=O(new s(i),e+I(i)+1,t),r=fe(n.abs(),!1,e+I(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};_.toInteger=_.toint=function(){var e=this,t=e.constructor;return O(new t(e),I(e)+1,t.rounding)};_.toNumber=function(){return+this};_.toPower=_.pow=function(e){var t,r,n,i,s,o,f=this,u=f.constructor,a=12,c=+(e=new u(e));if(!e.s)return new u(L);if(f=new u(f),!f.s){if(e.s<1)throw Error(B+"Infinity");return f}if(f.eq(L))return f;if(n=u.precision,e.eq(L))return O(f,n);if(t=e.e,r=e.d.length-1,o=t>=r,s=f.s,o){if((r=c<0?-c:c)<=Un){for(i=new u(L),t=Math.ceil(n/R+4),M=!1;r%2&&(i=i.times(f),zr(i.d,t)),r=pe(r/2),r!==0;)f=f.times(f),zr(f.d,t);return M=!0,e.s<0?new u(L).div(i):O(i,n)}}else if(s<0)throw Error(B+"NaN");return s=s<0&&e.d[Math.max(t,r)]&1?-1:1,f.s=1,M=!1,i=e.times(Se(f,n+a)),M=!0,i=jn(i),i.s=s,i};_.toPrecision=function(e,t){var r,n,i=this,s=i.constructor;return e===void 0?(r=I(i),n=fe(i,r<=s.toExpNeg||r>=s.toExpPos)):(X(e,1,he),t===void 0?t=s.rounding:X(t,0,8),i=O(new s(i),e,t),r=I(i),n=fe(i,e<=r||r<=s.toExpNeg,e)),n};_.toSignificantDigits=_.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(X(e,1,he),t===void 0?t=n.rounding:X(t,0,8)),O(new n(r),e,t)};_.toString=_.valueOf=_.val=_.toJSON=_[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=I(e),r=e.constructor;return fe(e,t<=r.toExpNeg||t>=r.toExpPos)};function Bn(e,t){var r,n,i,s,o,f,u,a,c=e.constructor,l=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),M?O(t,l):t;if(u=e.d,a=t.d,o=e.e,i=t.e,u=u.slice(),s=o-i,s){for(s<0?(n=u,s=-s,f=a.length):(n=a,i=o,f=u.length),o=Math.ceil(l/R),f=o>f?o+1:f+1,s>f&&(s=f,n.length=1),n.reverse();s--;)n.push(0);n.reverse()}for(f=u.length,s=a.length,f-s<0&&(s=f,n=a,a=u,u=n),r=0;s;)r=(u[--s]=u[s]+a[s]+r)/$|0,u[s]%=$;for(r&&(u.unshift(r),++i),f=u.length;u[--f]==0;)u.pop();return t.d=u,t.e=i,M?O(t,l):t}function X(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ne+e)}function G(e){var t,r,n,i=e.length-1,s="",o=e[0];if(i>0){for(s+=o,t=1;t<i;t++)n=e[t]+"",r=R-n.length,r&&(s+=V(r)),s+=n;o=e[t],n=o+"",r=R-n.length,r&&(s+=V(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}var Z=(function(){function e(n,i){var s,o=0,f=n.length;for(n=n.slice();f--;)s=n[f]*i+o,n[f]=s%$|0,o=s/$|0;return o&&n.unshift(o),n}function t(n,i,s,o){var f,u;if(s!=o)u=s>o?1:-1;else for(f=u=0;f<s;f++)if(n[f]!=i[f]){u=n[f]>i[f]?1:-1;break}return u}function r(n,i,s){for(var o=0;s--;)n[s]-=o,o=n[s]<i[s]?1:0,n[s]=o*$+n[s]-i[s];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,s,o){var f,u,a,c,l,m,h,y,d,p,g,S,E,w,b,v,A,D,x=n.constructor,Pe=n.s==i.s?1:-1,U=n.d,N=i.d;if(!n.s)return new x(n);if(!i.s)throw Error(B+"Division by zero");for(u=n.e-i.e,A=N.length,b=U.length,h=new x(Pe),y=h.d=[],a=0;N[a]==(U[a]||0);)++a;if(N[a]>(U[a]||0)&&--u,s==null?S=s=x.precision:o?S=s+(I(n)-I(i))+1:S=s,S<0)return new x(0);if(S=S/R+2|0,a=0,A==1)for(c=0,N=N[0],S++;(a<b||c)&&S--;a++)E=c*$+(U[a]||0),y[a]=E/N|0,c=E%N|0;else{for(c=$/(N[0]+1)|0,c>1&&(N=e(N,c),U=e(U,c),A=N.length,b=U.length),w=A,d=U.slice(0,A),p=d.length;p<A;)d[p++]=0;D=N.slice(),D.unshift(0),v=N[0],N[1]>=$/2&&++v;do c=0,f=t(N,d,A,p),f<0?(g=d[0],A!=p&&(g=g*$+(d[1]||0)),c=g/v|0,c>1?(c>=$&&(c=$-1),l=e(N,c),m=l.length,p=d.length,f=t(l,d,m,p),f==1&&(c--,r(l,A<m?D:N,m))):(c==0&&(f=c=1),l=N.slice()),m=l.length,m<p&&l.unshift(0),r(d,l,p),f==-1&&(p=d.length,f=t(N,d,A,p),f<1&&(c++,r(d,A<p?D:N,p))),p=d.length):f===0&&(c++,d=[0]),y[a++]=c,f&&d[0]?d[p++]=U[w]||0:(d=[U[w]],p=1);while((w++<b||d[0]!==void 0)&&S--)}return y[0]||y.shift(),h.e=u,O(h,o?s+I(h)+1:s)}})();function jn(e,t){var r,n,i,s,o,f,u=0,a=0,c=e.constructor,l=c.precision;if(I(e)>16)throw Error(nr+I(e));if(!e.s)return new c(L);for(M=!1,f=l,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),a+=5;for(n=Math.log(ee(2,a))/Math.LN10*2+5|0,f+=n,r=i=s=new c(L),c.precision=f;;){if(i=O(i.times(e),f),r=r.times(++u),o=s.plus(Z(i,r,f)),G(o.d).slice(0,f)===G(s.d).slice(0,f)){for(;a--;)s=O(s.times(s),f);return c.precision=l,t==null?(M=!0,O(s,l)):s}s=o}}function I(e){for(var t=e.e*R,r=e.d[0];r>=10;r/=10)t++;return t}function Et(e,t,r){if(t>e.LN10.sd())throw M=!0,r&&(e.precision=r),Error(B+"LN10 precision limit exceeded");return O(new e(e.LN10),t)}function V(e){for(var t="";e--;)t+="0";return t}function Se(e,t){var r,n,i,s,o,f,u,a,c,l=1,m=10,h=e,y=h.d,d=h.constructor,p=d.precision;if(h.s<1)throw Error(B+(h.s?"NaN":"-Infinity"));if(h.eq(L))return new d(0);if(t==null?(M=!1,a=p):a=t,h.eq(10))return t==null&&(M=!0),Et(d,a);if(a+=m,d.precision=a,r=G(y),n=r.charAt(0),s=I(h),Math.abs(s)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=G(h.d),n=r.charAt(0),l++;s=I(h),n>1?(h=new d("0."+r),s++):h=new d(n+"."+r.slice(1))}else return u=Et(d,a+2,p).times(s+""),h=Se(new d(n+"."+r.slice(1)),a-m).plus(u),d.precision=p,t==null?(M=!0,O(h,p)):h;for(f=o=h=Z(h.minus(L),h.plus(L),a),c=O(h.times(h),a),i=3;;){if(o=O(o.times(c),a),u=f.plus(Z(o,new d(i),a)),G(u.d).slice(0,a)===G(f.d).slice(0,a))return f=f.times(2),s!==0&&(f=f.plus(Et(d,a+2,p).times(s+""))),f=Z(f,new d(l),a),d.precision=p,t==null?(M=!0,O(f,p)):f;f=u,i+=2}}function Tr(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=pe(r/R),e.d=[],n=(r+1)%R,r<0&&(n+=R),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=R;n<i;)e.d.push(+t.slice(n,n+=R));t=t.slice(n),n=R-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),M&&(e.e>He||e.e<-He))throw Error(nr+r)}else e.s=0,e.e=0,e.d=[0];return e}function O(e,t,r){var n,i,s,o,f,u,a,c,l=e.d;for(o=1,s=l[0];s>=10;s/=10)o++;if(n=t-o,n<0)n+=R,i=t,a=l[c=0];else{if(c=Math.ceil((n+1)/R),s=l.length,c>=s)return e;for(a=s=l[c],o=1;s>=10;s/=10)o++;n%=R,i=n-R+o}if(r!==void 0&&(s=ee(10,o-i-1),f=a/s%10|0,u=t<0||l[c+1]!==void 0||a%s,u=r<4?(f||u)&&(r==0||r==(e.s<0?3:2)):f>5||f==5&&(r==4||u||r==6&&(n>0?i>0?a/ee(10,o-i):0:l[c-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return u?(s=I(e),l.length=1,t=t-s-1,l[0]=ee(10,(R-t%R)%R),e.e=pe(-t/R)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=c,s=1,c--):(l.length=c+1,s=ee(10,R-n),l[c]=i>0?(a/ee(10,o-i)%ee(10,i)|0)*s:0),u)for(;;)if(c==0){(l[0]+=s)==$&&(l[0]=1,++e.e);break}else{if(l[c]+=s,l[c]!=$)break;l[c--]=0,s=1}for(n=l.length;l[--n]===0;)l.pop();if(M&&(e.e>He||e.e<-He))throw Error(nr+I(e));return e}function Wn(e,t){var r,n,i,s,o,f,u,a,c,l,m=e.constructor,h=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),M?O(t,h):t;if(u=e.d,l=t.d,n=t.e,a=e.e,u=u.slice(),o=a-n,o){for(c=o<0,c?(r=u,o=-o,f=l.length):(r=l,n=a,f=u.length),i=Math.max(Math.ceil(h/R),f)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,f=l.length,c=i<f,c&&(f=i),i=0;i<f;i++)if(u[i]!=l[i]){c=u[i]<l[i];break}o=0}for(c&&(r=u,u=l,l=r,t.s=-t.s),f=u.length,i=l.length-f;i>0;--i)u[f++]=0;for(i=l.length;i>o;){if(u[--i]<l[i]){for(s=i;s&&u[--s]===0;)u[s]=$-1;--u[s],u[i]+=$}u[i]-=l[i]}for(;u[--f]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,M?O(t,h):t):new m(0)}function fe(e,t,r){var n,i=I(e),s=G(e.d),o=s.length;return t?(r&&(n=r-o)>0?s=s.charAt(0)+"."+s.slice(1)+V(n):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+V(-i-1)+s,r&&(n=r-o)>0&&(s+=V(n))):i>=o?(s+=V(i+1-o),r&&(n=r-i-1)>0&&(s=s+"."+V(n))):((n=i+1)<o&&(s=s.slice(0,n)+"."+s.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(s+="."),s+=V(n))),e.s<0?"-"+s:s}function zr(e,t){if(e.length>t)return e.length=t,!0}function qn(e){var t,r,n;function i(s){var o=this;if(!(o instanceof i))return new i(s);if(o.constructor=i,s instanceof i){o.s=s.s,o.e=s.e,o.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(ne+s);if(s>0)o.s=1;else if(s<0)s=-s,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(s===~~s&&s<1e7){o.e=0,o.d=[s];return}return Tr(o,s.toString())}else if(typeof s!="string")throw Error(ne+s);if(s.charCodeAt(0)===45?(s=s.slice(1),o.s=-1):o.s=1,Mo.test(s))Tr(o,s);else throw Error(ne+s)}if(i.prototype=_,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=qn,i.config=i.set=No,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function No(e){if(!e||typeof e!="object")throw Error(B+"Object expected");var t,r,n,i=["precision",1,he,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(pe(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ne+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ne+r+": "+n);return this}var ir=qn(Ro);L=new ir(1);const tf=ir;class rf extends Map{constructor(t,r=Do){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Ur(this,t))}has(t){return super.has(Ur(this,t))}set(t,r){return super.set(Io(this,t),r)}delete(t){return super.delete(xo(this,t))}}function Ur({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Io({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function xo({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Do(e){return e!==null&&typeof e=="object"?e.valueOf():e}var St={exports:{}},Br;function $o(){return Br||(Br=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,a,c){this.fn=u,this.context=a,this.once=c||!1}function s(u,a,c,l,m){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new i(c,l||u,m),y=r?r+a:a;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],h]:u._events[y].push(h):(u._events[y]=h,u._eventsCount++),u}function o(u,a){--u._eventsCount===0?u._events=new n:delete u._events[a]}function f(){this._events=new n,this._eventsCount=0}f.prototype.eventNames=function(){var a=[],c,l;if(this._eventsCount===0)return a;for(l in c=this._events)t.call(c,l)&&a.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(c)):a},f.prototype.listeners=function(a){var c=r?r+a:a,l=this._events[c];if(!l)return[];if(l.fn)return[l.fn];for(var m=0,h=l.length,y=new Array(h);m<h;m++)y[m]=l[m].fn;return y},f.prototype.listenerCount=function(a){var c=r?r+a:a,l=this._events[c];return l?l.fn?1:l.length:0},f.prototype.emit=function(a,c,l,m,h,y){var d=r?r+a:a;if(!this._events[d])return!1;var p=this._events[d],g=arguments.length,S,E;if(p.fn){switch(p.once&&this.removeListener(a,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,l),!0;case 4:return p.fn.call(p.context,c,l,m),!0;case 5:return p.fn.call(p.context,c,l,m,h),!0;case 6:return p.fn.call(p.context,c,l,m,h,y),!0}for(E=1,S=new Array(g-1);E<g;E++)S[E-1]=arguments[E];p.fn.apply(p.context,S)}else{var w=p.length,b;for(E=0;E<w;E++)switch(p[E].once&&this.removeListener(a,p[E].fn,void 0,!0),g){case 1:p[E].fn.call(p[E].context);break;case 2:p[E].fn.call(p[E].context,c);break;case 3:p[E].fn.call(p[E].context,c,l);break;case 4:p[E].fn.call(p[E].context,c,l,m);break;default:if(!S)for(b=1,S=new Array(g-1);b<g;b++)S[b-1]=arguments[b];p[E].fn.apply(p[E].context,S)}}return!0},f.prototype.on=function(a,c,l){return s(this,a,c,l,!1)},f.prototype.once=function(a,c,l){return s(this,a,c,l,!0)},f.prototype.removeListener=function(a,c,l,m){var h=r?r+a:a;if(!this._events[h])return this;if(!c)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===c&&(!m||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var d=0,p=[],g=y.length;d<g;d++)(y[d].fn!==c||m&&!y[d].once||l&&y[d].context!==l)&&p.push(y[d]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},f.prototype.removeAllListeners=function(a){var c;return a?(c=r?r+a:a,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=r,f.EventEmitter=f,e.exports=f})(St)),St.exports}var ko=$o();const nf=Xn(ko);var vt={exports:{}},P={};/**
|
|
* @license React
|
|
* react-is.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var jr;function Co(){if(jr)return P;jr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),a=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function y(d){if(typeof d=="object"&&d!==null){var p=d.$$typeof;switch(p){case e:switch(d=d.type,d){case r:case i:case n:case u:case a:case m:return d;default:switch(d=d&&d.$$typeof,d){case o:case f:case l:case c:return d;case s:return d;default:return p}}case t:return p}}}return P.ContextConsumer=s,P.ContextProvider=o,P.Element=e,P.ForwardRef=f,P.Fragment=r,P.Lazy=l,P.Memo=c,P.Portal=t,P.Profiler=i,P.StrictMode=n,P.Suspense=u,P.SuspenseList=a,P.isContextConsumer=function(d){return y(d)===s},P.isContextProvider=function(d){return y(d)===o},P.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},P.isForwardRef=function(d){return y(d)===f},P.isFragment=function(d){return y(d)===r},P.isLazy=function(d){return y(d)===l},P.isMemo=function(d){return y(d)===c},P.isPortal=function(d){return y(d)===t},P.isProfiler=function(d){return y(d)===i},P.isStrictMode=function(d){return y(d)===n},P.isSuspense=function(d){return y(d)===u},P.isSuspenseList=function(d){return y(d)===a},P.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===u||d===a||typeof d=="object"&&d!==null&&(d.$$typeof===l||d.$$typeof===c||d.$$typeof===o||d.$$typeof===s||d.$$typeof===f||d.$$typeof===h||d.getModuleId!==void 0)},P.typeOf=y,P}var Wr;function Lo(){return Wr||(Wr=1,vt.exports=Co()),vt.exports}var sf=Lo(),Fo="Invariant failed";function of(e,t){throw new Error(Fo)}export{tf as D,nf as E,rf as I,Qo as P,Wo as a,Ho as b,Uo as c,ws as d,Jo as e,Vo as f,Xt as g,sf as h,of as i,le as j,Ko as k,Xo as l,is as m,Rs as n,Go as p,ef as r,qo as s,Zo as t,Bo as u,jo as w};
|