3 lines
78 KiB
JavaScript
Vendored
3 lines
78 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(13847)}])},13847:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(85893);n(63785),n(75575),n(58090),n(45354),n(34146);var o=n(4480);function i(e){var t;let{Component:n,pageProps:i}=e,a=null!==(t=n.getLayout)&&void 0!==t?t:e=>e;return a((0,r.jsx)(o.Wh,{children:(0,r.jsx)(n,{...i})}))}},63785:function(){},34146:function(){},45354:function(){},58090:function(){},75575:function(){},34155:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?s=r.concat(s):c=-1,s.length&&f())}function f(){if(!u){var e=l(d);u=!0;for(var t=s.length;t;){for(r=s,s=[];++c<t;)r&&r[c].run();c=-1,t=s.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||u||l(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},4480:function(e,t,n){"use strict";let r;n.d(t,{FV:function(){return ix},Wh:function(){return iB},Zl:function(){return iz},cn:function(){return iD},nZ:function(){return iO},sJ:function(){return iP},zl:function(){return iI}});var o,i,a,l,s=n(67294),u=n(73935),c=n(34155),d=function(e){let t=Error(e);if(void 0===t.stack)try{throw t}catch(e){}return t},f=function(e){return!!e&&"function"==typeof e.then},h=function(e,t){if(null!=e)return e;throw d(null!=t?t:"Got unexpected null or undefined")};function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class v{getValue(){throw d("BaseLoadable")}toPromise(){throw d("BaseLoadable")}valueMaybe(){throw d("BaseLoadable")}valueOrThrow(){throw d(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw d("BaseLoadable")}promiseOrThrow(){throw d(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw d("BaseLoadable")}errorOrThrow(){throw d(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw d("BaseLoadable")}}class _ extends v{constructor(e){super(),p(this,"state","hasValue"),p(this,"contents",void 0),this.contents=e}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(e){try{let t=e(this.contents);return f(t)?T(t):w(t)?t:S(t)}catch(t){return f(t)?T(t.next(()=>this.map(e))):g(t)}}}class y extends v{constructor(e){super(),p(this,"state","hasError"),p(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class m extends v{constructor(e){super(),p(this,"state","loading"),p(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return T(this.contents.then(t=>{let n=e(t);if(w(n))switch(n.state){case"hasValue":case"loading":return n.contents;case"hasError":throw n.contents}return n}).catch(t=>{if(f(t))return t.then(()=>this.map(e).contents);throw t}))}}function S(e){return Object.freeze(new _(e))}function g(e){return Object.freeze(new y(e))}function T(e){return Object.freeze(new m(e))}function b(){return Object.freeze(new m(new Promise(()=>{})))}function R(e){let t=Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t]),n=t.map(e=>w(e)?e:f(e)?T(e):S(e)),r=n.every(e=>"hasValue"===e.state)?S(n.map(e=>e.contents)):n.some(e=>"hasError"===e.state)?g(h(n.find(e=>"hasError"===e.state),"Invalid loadable passed to loadableAll").contents):T(Promise.all(n.map(e=>e.contents)));return Array.isArray(e)?r:r.map(t=>Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{}))}function w(e){return e instanceof v}var A={loadableWithValue:S,loadableWithError:g,loadableWithPromise:T,loadableLoading:b,loadableAll:R,isLoadable:w,RecoilLoadable:{of:e=>f(e)?T(e):w(e)?e:S(e),error:e=>g(e),loading:()=>b(),all:R,isLoadable:w}},E=Object.freeze({__proto__:null,loadableWithValue:A.loadableWithValue,loadableWithError:A.loadableWithError,loadableWithPromise:A.loadableWithPromise,loadableLoading:A.loadableLoading,loadableAll:A.loadableAll,isLoadable:A.isLoadable,RecoilLoadable:A.RecoilLoadable});let N=new Map().set("recoil_hamt_2020",!0).set("recoil_sync_external_store",!0).set("recoil_suppress_rerender_in_callback",!0).set("recoil_memory_managament_2020",!0);function k(e){var t;return null!==(t=N.get(e))&&void 0!==t&&t}k.setPass=e=>{N.set(e,!0)},k.setFail=e=>{N.set(e,!1)},k.clear=()=>{N.clear()};var L=function(e,t,{error:n}={}){return null};let V=null!==(i=s.createMutableSource)&&void 0!==i?i:s.unstable_createMutableSource,C=null!==(a=s.useMutableSource)&&void 0!==a?a:s.unstable_useMutableSource,M=null!==(l=s.useSyncExternalStore)&&void 0!==l?l:s.unstable_useSyncExternalStore,U=!1;var I={createMutableSource:V,useMutableSource:C,useSyncExternalStore:M,currentRendererSupportsUseSyncExternalStore:function(){var e;let{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=null!==(e=null==t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher,o=null!=r.useSyncExternalStore;return!M||o||U||(U=!0,L("A React renderer without React 18+ API support is being used with React 18+.")),o},reactMode:function(){return k("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:k("recoil_sync_external_store")&&null!=M?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:k("recoil_mutable_source")&&null!=C&&"undefined"!=typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?k("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:k("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};let B={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0};!function(){var e,t;if(void 0===c||(null==c?void 0:c.env)==null)return;let n=null===(e=c.env.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED)||void 0===e?void 0:null===(t=e.toLowerCase())||void 0===t?void 0:t.trim();if(null!=n&&""!==n){if(!["true","false"].includes(n))throw d(`process.env.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED value must be 'true', 'false', or empty: ${n}`);B.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED="true"===n}}();class D{constructor(e){p(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class O extends D{}class P extends D{}var x={AbstractRecoilValue:D,RecoilState:O,RecoilValueReadOnly:P,isRecoilValue:function(e){return e instanceof O||e instanceof P}},z=Object.freeze({__proto__:null,AbstractRecoilValue:x.AbstractRecoilValue,RecoilState:x.RecoilState,RecoilValueReadOnly:x.RecoilValueReadOnly,isRecoilValue:x.isRecoilValue}),F=function(e,...t){},W=function(e,t){return function*(){let n=0;for(let r of e)yield t(r,n++)}()};let{isFastRefreshEnabled:$}=I;class G{}let j=new G,H=new Map,K=new Map;class q extends Error{}let Z=new Map;function Y(e){return Z.get(e)}var J={nodes:H,recoilValues:K,registerNode:function(e){B.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(H.has(e)){let t=`Duplicate atom key "${e}". This is a FATAL ERROR in
|
|
production. But it is safe to ignore this warning if it occurred because of
|
|
hot module replacement.`;console.warn(t)}}(e.key),H.set(e.key,e);let t=null==e.set?new z.RecoilValueReadOnly(e.key):new z.RecoilState(e.key);return K.set(e.key,t),t},getNode:function(e){let t=H.get(e);if(null==t)throw new q(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return H.get(e)},deleteNodeConfigIfPossible:function(e){var t,n;if(!k("recoil_memory_managament_2020"))return;let r=H.get(e);null!=r&&null!==(t=r.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(r)&&(H.delete(e),null===(n=Y(e))||void 0===n||n(),Z.delete(e))},setConfigDeletionHandler:function(e,t){k("recoil_memory_managament_2020")&&(void 0===t?Z.delete(e):Z.set(e,t))},getConfigDeletionHandler:Y,recoilValuesForKeys:function(e){return W(e,e=>h(K.get(e)))},NodeMissingError:q,DefaultValue:G,DEFAULT_VALUE:j},X={enqueueExecution:function(e,t){t()}},Q=(function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={},r={},o=function(e){return function(){return e}},i=n.hash=function(e){var n=void 0===e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,i=e.length;o<i;++o)r=(r<<5)-r+e.charCodeAt(o)|0;return r},a=function(e,t){return t>>>e&31},l=function(e){return 1<<e},s=function(e,t){var n;return n=e&t-1,n-=n>>1&1431655765,n=(n=(858993459&n)+(n>>2&858993459))+(n>>4)&252645135,n+=n>>8,127&(n+=n>>16)},u=function(e,t,n,r){var o=r;if(!e){var i=r.length;o=Array(i);for(var a=0;a<i;++a)o[a]=r[a]}return o[t]=n,o},c=function(e,t,n){var r=n.length-1,o=0,i=0,a=n;if(e)o=i=t;else for(a=Array(r);o<t;)a[i++]=n[o++];for(++o;o<=r;)a[i++]=n[o++];return e&&(a.length=r),a},d=function(e,t,n,r){var o=r.length;if(e){for(var i=o;i>=t;)r[i--]=r[i];return r[t]=n,r}for(var a=0,l=0,s=Array(o+1);a<t;)s[l++]=r[a++];for(s[t]=n;a<o;)s[++l]=r[a++];return s},f={__hamt_isEmpty:!0},h=function(e){return e===f||e&&e.__hamt_isEmpty},p=function(e,t,n,r){return{type:1,edit:e,hash:t,key:n,value:r,_modify:R}},v=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:w}},_=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:A}},y=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:E}},m=function(e,t,n,r,o){for(var i=[],a=r,l=0,s=0;a;++s)1&a&&(i[s]=o[l++]),a>>>=1;return i[t]=n,y(e,l+1,i)},S=function(e,t,n,r){for(var o=Array(t-1),i=0,a=0,l=0,s=r.length;l<s;++l)if(l!==n){var u=r[l];u&&!h(u)&&(o[i++]=u,a|=1<<l)}return _(e,a,o)},g=function e(t,n,r,o,i,s){if(r===i)return v(t,r,[s,o]);var u=a(n,r),c=a(n,i);return _(t,l(u)|l(c),u===c?[e(t,n+5,r,o,i,s)]:u<c?[o,s]:[s,o])},T=function(e,t,n,o,i,a,l,s){for(var d=i.length,f=0;f<d;++f){var h=i[f];if(n(l,h.key)){var v=h.value,_=a(v);if(_===v)return i;if(_===r)return--s.value,c(e,f,i);return u(e,f,p(t,o,l,_),i)}}var y=a();return y===r?i:(++s.value,u(e,d,p(t,o,l,y),i))},b=function(e,t){return e===t.edit},R=function(e,t,n,o,i,a,l){if(t(a,this.key)){var s=o(this.value);return s===this.value?this:s===r?(--l.value,f):b(e,this)?(this.value=s,this):p(e,i,a,s)}var u=o();return u===r?this:(++l.value,g(e,n,this.hash,this,i,p(e,i,a,u)))},w=function(e,t,n,o,i,a,l){if(i===this.hash){var s=T(b(e,this),e,t,this.hash,this.children,o,a,l);return s===this.children?this:s.length>1?v(e,this.hash,s):s[0]}var u=o();return u===r?this:(++l.value,g(e,n,this.hash,this,i,p(e,i,a,u)))},A=function(e,t,n,r,o,i,p){var v,y=this.mask,S=this.children,g=a(n,o),T=l(g),R=s(y,T),w=y&T,A=w?S[R]:f,E=A._modify(e,t,n+5,r,o,i,p);if(A===E)return this;var N=b(e,this),k=y,L=void 0;if(w&&h(E)){if(!(k&=~T))return f;if(S.length<=2&&((v=S[1^R])===f||1===v.type||2===v.type))return S[1^R];L=c(N,R,S)}else if(w||h(E))L=u(N,R,E,S);else{if(S.length>=16)return m(e,g,E,y,S);k|=T,L=d(N,R,E,S)}return N?(this.mask=k,this.children=L,this):_(e,k,L)},E=function(e,t,n,r,o,i,l){var s=this.size,c=this.children,d=a(n,o),p=c[d],v=(p||f)._modify(e,t,n+5,r,o,i,l);if(p===v)return this;var _=b(e,this),m=void 0;if(h(p)&&!h(v))++s,m=u(_,d,v,c);else if(!h(p)&&h(v)){if(--s<=8)return S(e,s,d,c);m=u(_,d,f,c)}else m=u(_,d,v,c);return _?(this.size=s,this.children=m,this):y(e,s,m)};function N(e,t,n,r,o){this._editable=e,this._edit=t,this._config=n,this._root=r,this._size=o}f._modify=function(e,t,n,o,i,a,l){var s=o();return s===r?f:(++l.value,p(e,i,a,s))},N.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new N(this._editable,this._edit,this._config,e,t)};var k=n.tryGetHash=function(e,t,n,r){for(var o=r._root,i=0,u=r._config.keyEq;;)switch(o.type){case 1:return u(n,o.key)?o.value:e;case 2:if(t===o.hash)for(var c=o.children,d=0,f=c.length;d<f;++d){var h=c[d];if(u(n,h.key))return h.value}return e;case 3:var p=l(a(i,t));if(o.mask&p){o=o.children[s(o.mask,p)],i+=5;break}return e;case 4:if(o=o.children[a(i,t)]){i+=5;break}return e;default:return e}};N.prototype.tryGetHash=function(e,t,n){return k(e,t,n,this)};var L=n.tryGet=function(e,t,n){return k(e,n._config.hash(t),t,n)};N.prototype.tryGet=function(e,t){return L(e,t,this)};var V=n.getHash=function(e,t,n){return k(void 0,e,t,n)};N.prototype.getHash=function(e,t){return V(e,t,this)},n.get=function(e,t){return k(void 0,t._config.hash(e),e,t)},N.prototype.get=function(e,t){return L(t,e,this)};var C=n.has=function(e,t,n){return k(r,e,t,n)!==r};N.prototype.hasHash=function(e,t){return C(e,t,this)};var M=n.has=function(e,t){return C(t._config.hash(e),e,t)};N.prototype.has=function(e){return M(e,this)};var U=function(e,t){return e===t};n.make=function(e){return new N(0,0,{keyEq:e&&e.keyEq||U,hash:e&&e.hash||i},f,0)},n.empty=n.make();var I=n.isEmpty=function(e){return e&&!!h(e._root)};N.prototype.isEmpty=function(){return I(this)};var B=n.modifyHash=function(e,t,n,r){var o={value:r._size},i=r._root._modify(r._editable?r._edit:NaN,r._config.keyEq,0,e,t,n,o);return r.setTree(i,o.value)};N.prototype.modifyHash=function(e,t,n){return B(n,e,t,this)};var D=n.modify=function(e,t,n){return B(e,n._config.hash(t),t,n)};N.prototype.modify=function(e,t){return D(t,e,this)};var O=n.setHash=function(e,t,n,r){return B(o(n),e,t,r)};N.prototype.setHash=function(e,t,n){return O(e,t,n,this)};var P=n.set=function(e,t,n){return O(n._config.hash(e),e,t,n)};N.prototype.set=function(e,t){return P(e,t,this)};var x=o(r),z=n.removeHash=function(e,t,n){return B(x,e,t,n)};N.prototype.removeHash=N.prototype.deleteHash=function(e,t){return z(e,t,this)};var F=n.remove=function(e,t){return z(t._config.hash(e),e,t)};N.prototype.remove=N.prototype.delete=function(e){return F(e,this)};var W=n.beginMutation=function(e){return new N(e._editable+1,e._edit+1,e._config,e._root,e._size)};N.prototype.beginMutation=function(){return W(this)};var $=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};N.prototype.endMutation=function(){return $(this)};var G=n.mutate=function(e,t){var n=W(t);return e(n),$(n)};N.prototype.mutate=function(e){return G(e,this)};var j=function(e){return e&&H(e[0],e[1],e[2],e[3],e[4])},H=function(e,t,n,r,o){for(;n<e;){var i=t[n++];if(i&&!h(i))return K(i,r,[e,t,n,r,o])}return j(o)},K=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var r=e.children;return H(r.length,r,0,t,n);default:return j(n)}},q={done:!0};function Z(e){this.v=e}Z.prototype.next=function(){if(!this.v)return q;var e=this.v;return this.v=j(e.rest),e},Z.prototype[Symbol.iterator]=function(){return this};var Y=function(e,t){return new Z(K(e._root,t))},J=function(e){return[e.key,e.value]},X=n.entries=function(e){return Y(e,J)};N.prototype.entries=N.prototype[Symbol.iterator]=function(){return X(this)};var Q=function(e){return e.key},ee=n.keys=function(e){return Y(e,Q)};N.prototype.keys=function(){return ee(this)};var et=function(e){return e.value},en=n.values=N.prototype.values=function(e){return Y(e,et)};N.prototype.values=function(){return en(this)};var er=n.fold=function(e,t,n){var r=n._root;if(1===r.type)return e(t,r.value,r.key);for(var o=[r.children],i=void 0;i=o.pop();)for(var a=0,l=i.length;a<l;){var s=i[a++];s&&s.type&&(1===s.type?t=e(t,s.value,s.key):o.push(s.children))}return t};N.prototype.fold=function(e,t){return er(e,t,this)};var eo=n.forEach=function(e,t){return er(function(n,r,o){return e(r,o,t)},null,t)};N.prototype.forEach=function(e){return eo(e,this)};var ei=n.count=function(e){return e._size};N.prototype.count=function(){return ei(this)},Object.defineProperty(N.prototype,"size",{get:N.prototype.count}),e.exports?e.exports=n:undefined.hamt=n}(o={exports:{}},o.exports),o.exports);class ee{constructor(e){p(this,"_map",void 0),this._map=new Map(null==e?void 0:e.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(e){return this._map.get(e)}has(e){return this._map.has(e)}set(e,t){return this._map.set(e,t),this}delete(e){return this._map.delete(e),this}clone(){return en(this)}toMap(){return new Map(this._map)}}class et{constructor(e){if(p(this,"_hamt",Q.empty.beginMutation()),e instanceof et){let t=e._hamt.endMutation();e._hamt=t.beginMutation(),this._hamt=t.beginMutation()}else if(e)for(let[t,n]of e.entries())this._hamt.set(t,n)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(e){return this._hamt.get(e)}has(e){return this._hamt.has(e)}set(e,t){return this._hamt.set(e,t),this}delete(e){return this._hamt.delete(e),this}clone(){return en(this)}toMap(){return new Map(this._hamt)}}function en(e){return k("recoil_hamt_2020")?new et(e):new ee(e)}var er=Object.freeze({__proto__:null,persistentMap:{persistentMap:en}.persistentMap}),eo=function(e,...t){let n=new Set;e:for(let r of e){for(let e of t)if(e.has(r))continue e;n.add(r)}return n},ei=function(e,t){let n=new Map;return e.forEach((e,r)=>{n.set(r,t(e,r))}),n};function ea(e,t,n,r){let{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);let l=null==a?t:eo(t,a);for(let t of l){i.has(t)||i.set(t,new Set);let n=h(i.get(t));n.add(e)}if(a){let n=eo(a,t);for(let t of n){if(!i.has(t))return;let n=h(i.get(t));n.delete(e),0===n.size&&i.delete(t)}}}var el={cloneGraph:function(e){return{nodeDeps:ei(e.nodeDeps,e=>new Set(e)),nodeToNodeSubscriptions:ei(e.nodeToNodeSubscriptions,e=>new Set(e))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,r){var o,i,a,l,s;let u=n.getState();r===u.currentTree.version||r===(null===(o=u.nextTree)||void 0===o?void 0:o.version)||r===(null===(i=u.previousTree)||void 0===i?void 0:i.version)||L("Tried to save dependencies to a discarded tree");let c=n.getGraph(r);if(ea(e,t,c),r===(null===(a=u.previousTree)||void 0===a?void 0:a.version)){let r=n.getGraph(u.currentTree.version);ea(e,t,r,c)}if(r===(null===(l=u.previousTree)||void 0===l?void 0:l.version)||r===u.currentTree.version){let r=null===(s=u.nextTree)||void 0===s?void 0:s.version;if(void 0!==r){let o=n.getGraph(r);ea(e,t,o,c)}}}};let es=0,eu=()=>es++,ec=0,ed=()=>ec++,ef=0,eh=()=>ef++;var ep={getNextTreeStateVersion:eu,getNextStoreID:ed,getNextComponentID:eh};let{persistentMap:ev}=er,{graph:e_}=el,{getNextTreeStateVersion:ey}=ep;function em(){let e=ey();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ev(),nonvalidatedAtoms:ev()}}var eS={makeEmptyTreeState:em,makeEmptyStoreState:function(){let e=em();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,e_()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:ey};class eg{}var eT={RetentionZone:eg,retentionZone:function(){return new eg}},eb={setByAddingToSet:function(e,t){let n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){let n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){let r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){let r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){let n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){let n=new Map(e);return t.forEach(e=>n.delete(e)),n}},eR=function*(e,t){let n=0;for(let r of e)t(r,n++)&&(yield r)},ew=function(e,t){let n=new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)});return n};let{getNode:eA,getNodeMaybe:eE,recoilValuesForKeys:eN}=J,{RetentionZone:ek}=eT,{setByAddingToSet:eL}=eb,eV=Object.freeze(new Set);class eC extends Error{}function eM(e,t,n,r){let o=e.getState();if(o.nodeCleanupFunctions.has(n))return;let i=eA(n),a=function(e,t,n){if(!k("recoil_memory_managament_2020"))return()=>void 0;let{nodesRetainedByZone:r}=e.getState().retention;function o(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof ek)o(n);else if(Array.isArray(n))for(let e of n)o(e);return()=>{if(!k("recoil_memory_managament_2020"))return;let{retention:r}=e.getState();function o(e){let n=r.nodesRetainedByZone.get(e);null==n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}if(n instanceof ek)o(n);else if(Array.isArray(n))for(let e of n)o(e)}}(e,n,i.retainedBy),l=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{l(),a()})}function eU(e,t,n){return eA(n).peek(e,t)}function eI(e,t,n){let r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let e=o.pop();e;e=o.pop()){var a;r.add(e);let t=null!==(a=i.nodeToNodeSubscriptions.get(e))&&void 0!==a?a:eV;for(let e of t)r.has(e)||o.push(e)}return r}var eB={getNodeLoadable:function(e,t,n){return eM(e,t,n,"get"),eA(n).get(e,t)},peekNodeLoadable:eU,setNodeValue:function(e,t,n,r){let o=eA(n);if(null==o.set)throw new eC(`Attempt to set read-only RecoilValue: ${n}`);let i=o.set;return eM(e,t,n,"set"),i(e,t,r)},initializeNode:function(e,t,n){eM(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;let r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;let o=eE(t);return null==o||null===(r=o.invalidate)||void 0===r||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:eL(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){let r=e.getState(),o=e.getGraph(t.version),i=eA(n).nodeType;return ew({type:i},{loadable:()=>eU(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==i&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return eN(null!==(e=o.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var o,i;return{nodes:eN(eR(eI(e,t,new Set([n])),e=>e!==n)),components:W(null!==(o=null===(i=r.nodeToComponentSubscriptions.get(n))||void 0===i?void 0:i.values())&&void 0!==o?o:[],([e])=>({name:e}))}}})},getDownstreamNodes:eI};let eD=null;var eO={setInvalidateMemoizedSnapshot:function(e){eD=e},invalidateMemoizedSnapshot:function(){var e;null===(e=eD)||void 0===e||e()}};let{getDownstreamNodes:eP,getNodeLoadable:ex,setNodeValue:ez}=eB,{getNextComponentID:eF}=ep,{getNode:eW,getNodeMaybe:e$}=J,{DefaultValue:eG}=J,{reactMode:ej}=I,{AbstractRecoilValue:eH,RecoilState:eK,RecoilValueReadOnly:eq,isRecoilValue:eZ}=z,{invalidateMemoizedSnapshot:eY}=eO;function eJ(e,t,n){"hasValue"===n.state&&n.contents instanceof eG?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function eX(e,t){e.replaceState(n=>{let r=e1(n);for(let n of t)!function(e,t,n){if("set"===n.type){let{recoilValue:r,valueOrUpdater:o}=n,i=function(e,t,{key:n},r){if("function"!=typeof r)return r;{let o=ex(e,t,n);if("loading"===o.state){let e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw L(e),d(e)}if("hasError"===o.state)throw o.contents;return r(o.contents)}}(e,t,r,o),a=ez(e,t,r.key,i);for(let[e,n]of a.entries())eJ(t,e,n)}else if("setLoadable"===n.type){let{recoilValue:{key:e},loadable:r}=n;eJ(t,e,r)}else if("markModified"===n.type){let{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;let{recoilValue:{key:e},unvalidatedValue:o}=n,i=e$(e);null==i||null===(r=i.invalidate)||void 0===r||r.call(i,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,o),t.dirtyAtoms.add(e)}else L(`Unknown action ${n.type}`)}(e,r,n);return e2(e,r),eY(),r})}function eQ(e,t){if(e0.length){let n=e0[e0.length-1],r=n.get(e);r||n.set(e,r=[]),r.push(t)}else eX(e,[t])}let e0=[];function e1(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function e2(e,t){let n=eP(e,t,t.dirtyAtoms);for(let e of n){var r,o;null===(r=e$(e))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,t)}}function e5(e,t,n){eQ(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var e4={RecoilValueReadOnly:eq,AbstractRecoilValue:eH,RecoilState:eK,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,o;let i=e.getState();n.version===i.currentTree.version||n.version===(null===(r=i.nextTree)||void 0===r?void 0:r.version)||n.version===(null===(o=i.previousTree)||void 0===o?void 0:o.version)||L("Tried to read from a discarded tree");let a=ex(e,n,t);return"loading"===a.state&&a.contents.catch(()=>{}),a},setRecoilValue:e5,setRecoilValueLoadable:function(e,t,n){if(n instanceof eG)return e5(e,t,n);eQ(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){eQ(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){eQ(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){let o=eF(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),h(i.nodeToComponentSubscriptions.get(t)).set(o,[null!=r?r:"<not captured>",n]);let a=ej();if(a.early&&("LEGACY"===a.mode||"MUTABLE_SOURCE"===a.mode)){let r=e.getState().nextTree;r&&r.dirtyAtoms.has(t)&&n(r)}return{release:()=>{let n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);if(void 0===r||!r.has(o)){L(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`);return}r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(t)}}},isRecoilValue:eZ,applyAtomValueWrites:function(e,t){let n=e.clone();return t.forEach((e,t)=>{"hasValue"===e.state&&e.contents instanceof eG?n.delete(t):n.set(t,e)}),n},batchStart:function(){let e=new Map;return e0.push(e),()=>{for(let[t,n]of e)eX(t,n);let t=e0.pop();t!==e&&L("Incorrect order of batch popping")}},writeLoadableToTreeState:eJ,invalidateDownstreams:e2,copyTreeState:e1,refreshRecoilValue:function(e,t){var n;let{currentTree:r}=e.getState(),o=eW(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)}},e8=function(e,t,n){let r=e.entries(),o=r.next();for(;!o.done;){let i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1};let{cleanUpNode:e3}=eB,{deleteNodeConfigIfPossible:e7,getNode:e9}=J,{RetentionZone:e6}=eT,te=new Set;function tt(e,t){let n=e.getState(),r=n.currentTree;if(n.nextTree){L("releaseNodesNowOnCurrentTree should only be called at the end of a batch");return}let o=new Set;for(let e of t)if(e instanceof e6)for(let t of function(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:te}(n,e))o.add(t);else o.add(e);let i=function(e,t){let n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return function t(l){var s,u;let c=new Set,d=function(e,t,n,r,o){let i=e.getGraph(t.version),a=[],l=new Set;for(;n.size>0;)(function e(t){if(r.has(t)||o.has(t)){n.delete(t);return}if(l.has(t))return;let s=i.nodeToNodeSubscriptions.get(t);if(s)for(let t of s)e(t);l.add(t),n.delete(t),a.push(t)})(h(n.values().next().value));return a}(e,r,l,i,a);for(let e of d){if("recoilRoot"===e9(e).retainedBy||(null!==(s=n.retention.referenceCounts.get(e))&&void 0!==s?s:0)>0||tn(e).some(e=>n.retention.referenceCounts.get(e))){a.add(e);continue}let t=o.nodeToNodeSubscriptions.get(e);if(t&&e8(t,e=>a.has(e))){a.add(e);continue}i.add(e),c.add(e)}let f=new Set;for(let e of c)for(let t of null!==(u=o.nodeDeps.get(e))&&void 0!==u?u:te)i.has(t)||f.add(t);f.size&&t(f)}(t),i}(e,o);for(let t of i)!function(e,t,n){var r,o;if(!k("recoil_memory_managament_2020"))return;e3(e,n);let i=e.getState();i.knownAtoms.delete(n),i.knownSelectors.delete(n),i.nodeTransactionSubscriptions.delete(n),i.retention.referenceCounts.delete(n);let a=tn(n);for(let e of a)null===(r=i.retention.nodesRetainedByZone.get(e))||void 0===r||r.delete(n);t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);let l=i.graphsByVersion.get(t.version);if(l){let e=l.nodeDeps.get(n);if(void 0!==e)for(let t of(l.nodeDeps.delete(n),e))null===(o=l.nodeToNodeSubscriptions.get(t))||void 0===o||o.delete(n);l.nodeToNodeSubscriptions.delete(n)}e7(n)}(e,r,t)}function tn(e){let t=e9(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof e6?[t]:t}function tr(e,t){if(!k("recoil_memory_managament_2020"))return;let n=e.getState().retention.referenceCounts;n.delete(t),function(e,t){let n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):tt(e,new Set([t]))}(e,t)}var to={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var r;if(!k("recoil_memory_managament_2020"))return;let o=e.getState().retention.referenceCounts,i=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===i?tr(e,t):o.set(t,i)},updateRetainCountToZero:tr,releaseScheduledRetainablesNow:function(e){if(!k("recoil_memory_managament_2020"))return;let t=e.getState();tt(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};let{unstable_batchedUpdates:ti}=u,{unstable_batchedUpdates:ta}={unstable_batchedUpdates:ti},{batchStart:tl}=e4,{unstable_batchedUpdates:ts}={unstable_batchedUpdates:ta},tu=ts,tc=e=>{tu=e},td=e=>{tu(()=>{let t=()=>void 0;try{t=tl(),e()}finally{t()}})};var tf={getBatcher:()=>tu,setBatcher:tc,batchUpdates:td},th=function*(e){for(let t of e)for(let e of t)yield e};let tp="undefined"==typeof Window||"undefined"==typeof window,tv="undefined"!=typeof navigator&&"ReactNative"===navigator.product;var t_={isSSR:tp,isReactNative:tv,isWindow:e=>!tp&&(e===window||e instanceof Window)};let{batchUpdates:ty}=tf,{initializeNode:tm,peekNodeInfo:tS}=eB,{graph:tg}=el,{getNextStoreID:tT}=ep,{DEFAULT_VALUE:tb,recoilValues:tR,recoilValuesForKeys:tw}=J,{AbstractRecoilValue:tA,getRecoilValueAsLoadable:tE,setRecoilValue:tN,setUnvalidatedRecoilValue:tk}=e4,{updateRetainCount:tL}=to,{setInvalidateMemoizedSnapshot:tV}=eO,{getNextTreeStateVersion:tC,makeEmptyStoreState:tM}=eS,{isSSR:tU}=t_,{memoizeOneWithArgsHashAndInvalidation:tI}={memoizeWithArgsHash:function(e,t){let n;let r=(...r)=>{n||(n={});let o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]};return r},memoizeOneWithArgsHash:function(e,t){let n,r;let o=(...o)=>{let i=t(...o);return n===i?r:(n=i,r=e(...o))};return o},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,r;let o=(...o)=>{let i=t(...o);return n===i?r:(n=i,r=e(...o))},i=()=>{n=null};return[o,i]}};class tB{constructor(e,t){for(let n of(p(this,"_store",void 0),p(this,"_refCount",1),p(this,"getLoadable",e=>(this.checkRefCount_INTERNAL(),tE(this._store,e))),p(this,"getPromise",e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise())),p(this,"getNodes_UNSTABLE",e=>{if(this.checkRefCount_INTERNAL(),(null==e?void 0:e.isModified)===!0){if((null==e?void 0:e.isInitialized)===!1)return[];let t=this._store.getState().currentTree;return tw(t.dirtyAtoms)}let t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return(null==e?void 0:e.isInitialized)==null?tR.values():!0===e.isInitialized?tw(th([t,n])):eR(tR.values(),({key:e})=>!t.has(e)&&!n.has(e))}),p(this,"getInfo_UNSTABLE",({key:e})=>(this.checkRefCount_INTERNAL(),tS(this._store,this._store.getState().currentTree,e))),p(this,"map",e=>{this.checkRefCount_INTERNAL();let t=new tx(this,ty);return e(t),t}),p(this,"asyncMap",async e=>{this.checkRefCount_INTERNAL();let t=new tx(this,ty);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t}),this._store={storeID:tT(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{let n=e.graphsByVersion;if(n.has(t))return h(n.get(t));let r=tg();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw d("Cannot subscribe to Snapshots")}},this._store.getState().knownAtoms))tm(this._store,n,"get"),tL(this._store,n,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&L("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){tU||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach(e=>e()),this._store.getState().nodeCleanupFunctions.clear(),!k("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){k("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function tD(e,t,n=!1){let r=e.getState(),o=n?tC():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(W(r.nodeCleanupFunctions.entries(),([e])=>[e,()=>{}]))}}let[tO,tP]=tI((e,t)=>{var n;let r=e.getState(),o="latest"===t?null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree:h(r.previousTree);return new tB(tD(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(r=e.getState().previousTree)||void 0===r?void 0:r.version)});tV(tP);class tx extends tB{constructor(e,t){super(tD(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),p(this,"_batch",void 0),p(this,"set",(e,t)=>{this.checkRefCount_INTERNAL();let n=this.getStore_INTERNAL();this._batch(()=>{tL(n,e.key,1),tN(this.getStore_INTERNAL(),e,t)})}),p(this,"reset",e=>{this.checkRefCount_INTERNAL();let t=this.getStore_INTERNAL();this._batch(()=>{tL(t,e.key,1),tN(this.getStore_INTERNAL(),e,tb)})}),p(this,"setUnvalidatedAtomValues_DEPRECATED",e=>{this.checkRefCount_INTERNAL();let t=this.getStore_INTERNAL();ty(()=>{for(let[n,r]of e.entries())tL(t,n,1),tk(t,new tA(n),r)})}),this._batch=t}}var tz={Snapshot:tB,MutableSnapshot:tx,freshSnapshot:function(e){let t=new tB(tM());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){let n=tO(e,t);return n.isRetained()?n:(tP(),tO(e,t))}},tF=Object.freeze({__proto__:null,Snapshot:tz.Snapshot,MutableSnapshot:tz.MutableSnapshot,freshSnapshot:tz.freshSnapshot,cloneSnapshot:tz.cloneSnapshot}),tW=function(...e){let t=new Set;for(let n of e)for(let e of n)t.add(e);return t};let{useRef:t$}=s;var tG=function(e){let t=t$(e);return t.current===e&&"function"==typeof e&&(t.current=e()),t};let{getNextTreeStateVersion:tj,makeEmptyStoreState:tH}=eS,{cleanUpNode:tK,getDownstreamNodes:tq,initializeNode:tZ,setNodeValue:tY,setUnvalidatedAtomValue_DEPRECATED:tJ}=eB,{graph:tX}=el,{cloneGraph:tQ}=el,{getNextStoreID:t0}=ep,{createMutableSource:t1,reactMode:t2}=I,{applyAtomValueWrites:t5}=e4,{releaseScheduledRetainablesNow:t4}=to,{freshSnapshot:t8}=tF,{useCallback:t3,useContext:t7,useEffect:t9,useMemo:t6,useRef:ne,useState:nt}=s;function nn(){throw d("This component must be used inside a <RecoilRoot> component.")}let nr=Object.freeze({storeID:t0(),getState:nn,replaceState:nn,getGraph:nn,subscribeToTransactions:nn,addTransactionMetadata:nn}),no=!1;function ni(e){if(no)throw d("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");let t=e.getState();if(null===t.nextTree){k("recoil_memory_managament_2020")&&k("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&t4(e);let n=t.currentTree.version,r=tj();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,tQ(h(t.graphsByVersion.get(n))))}}let na=s.createContext({current:nr}),nl=()=>t7(na),ns=s.createContext(null);function nu(e,t,n){let r=tq(e,n,n.dirtyAtoms);for(let e of r){let r=t.nodeToComponentSubscriptions.get(e);if(r)for(let[e,[t,o]]of r)o(n)}}function nc(e){let t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(let[n,o]of t.nodeTransactionSubscriptions)if(r.has(n))for(let[t,n]of o)n(e);for(let[n,r]of t.transactionSubscriptions)r(e);(!t2().early||t.suspendedComponentResolvers.size>0)&&(nu(e,t,n),t.suspendedComponentResolvers.forEach(e=>e()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(e=>e(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function nd({setNotifyBatcherOfChange:e}){let t=nl(),[,n]=nt([]);return e(()=>n({})),t9(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),t9(()=>{X.enqueueExecution("Batcher",()=>{!function(e){let t=e.getState();t.commitDepth++;try{let{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,nc(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):L("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,k("recoil_memory_managament_2020")&&null==n&&t4(e)}finally{t.commitDepth--}}(t.current)})}),null}let nf=0;function nh({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;let i=e=>{let t=o.current.graphsByVersion;if(t.has(e))return h(t.get(e));let n=tX();return t.set(e,n),n},a=(e,t)=>{if(null==t){let{transactionSubscriptions:t}=f.current.getState(),n=nf++;return t.set(n,e),{release:()=>{t.delete(n)}}}{let{nodeTransactionSubscriptions:n}=f.current.getState();n.has(t)||n.set(t,new Map);let r=nf++;return h(n.get(t)).set(r,e),{release:()=>{let e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},l=e=>{for(let t of(ni(f.current),Object.keys(e)))h(f.current.getState().nextTree).transactionMetadata[t]=e[t]},u=e=>{let t;ni(f.current);let n=h(o.current.nextTree);try{no=!0,t=e(n)}finally{no=!1}t!==n&&(o.current.nextTree=t,t2().early&&nu(f.current,o.current,t),h(c.current)())},c=ne(null),d=t3(e=>{c.current=e},[c]),f=tG(()=>null!=n?n:{storeID:t0(),getState:()=>o.current,replaceState:u,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:l});null!=n&&(f.current=n),o=tG(()=>null!=e?function(e,t){let n=tH();return t({set:(t,r)=>{let o=n.currentTree,i=tY(e,o,t.key,r),a=new Set(i.keys()),l=o.nonvalidatedAtoms.clone();for(let e of a)l.delete(e);n.currentTree={...o,dirtyAtoms:tW(o.dirtyAtoms,a),atomValues:t5(o.atomValues,i),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:e=>{e.forEach((e,t)=>{n.currentTree=tJ(n.currentTree,t,e)})}}),n}(f.current,e):null!=t?function(e){let t=t8(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(e=>e()),n.nodeCleanupFunctions.clear(),n}(t):tH());let p=t6(()=>null==t1?void 0:t1(o,()=>o.current.currentTree.version),[o]);return t9(()=>{let e=f.current;for(let t of new Set(e.getState().knownAtoms))tZ(e,t,"get");return()=>{for(let t of e.getState().knownAtoms)tK(e,t)}},[f]),s.createElement(na.Provider,{value:f},s.createElement(ns.Provider,{value:p},s.createElement(nd,{setNotifyBatcherOfChange:d}),r))}var np={RecoilRoot:function(e){let{override:t,...n}=e,r=nl();return!1===t&&r.current!==nr?e.children:s.createElement(nh,n)},useStoreRef:nl,useRecoilMutableSource:function(){let e=t7(ns);return null==e&&F("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),e},useRecoilStoreID:function(){return nl().current.storeID},notifyComponents_FOR_TESTING:nu,sendEndOfBatchNotifications_FOR_TESTING:nc},nv=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0};let{useEffect:n_,useRef:ny}=s;var nm=function(e){let t=ny();return n_(()=>{t.current=e}),t.current};let{useStoreRef:nS}=np,{SUSPENSE_TIMEOUT_MS:ng}=to,{updateRetainCount:nT}=to,{RetentionZone:nb}=eT,{useEffect:nR,useRef:nw}=s,{isSSR:nA}=t_;var nE=function(e){if(k("recoil_memory_managament_2020"))return function(e){let t=Array.isArray(e)?e:[e],n=t.map(e=>e instanceof nb?e:e.key),r=nS();nR(()=>{if(!k("recoil_memory_managament_2020"))return;let e=r.current;if(o.current&&!nA)window.clearTimeout(o.current),o.current=null;else for(let t of n)nT(e,t,1);return()=>{for(let t of n)nT(e,t,-1)}},[r,...n]);let o=nw(),i=nm(n);if(!nA&&(void 0===i||!nv(i,n))){let e=r.current;for(let t of n)nT(e,t,1);if(i)for(let t of i)nT(e,t,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{for(let t of(o.current=null,n))nT(e,t,-1)},ng)}}(e)},nN=function(){return"<component name not available>"};let{batchUpdates:nk}=tf,{DEFAULT_VALUE:nL}=J,{currentRendererSupportsUseSyncExternalStore:nV,reactMode:nC,useMutableSource:nM,useSyncExternalStore:nU}=I,{useRecoilMutableSource:nI,useStoreRef:nB}=np,{isRecoilValue:nD}=z,{AbstractRecoilValue:nO,getRecoilValueAsLoadable:nP,setRecoilValue:nx,setUnvalidatedRecoilValue:nz,subscribeToRecoilValue:nF}=e4,{useCallback:nW,useEffect:n$,useMemo:nG,useRef:nj,useState:nH}=s,{setByAddingToSet:nK}=eb;function nq(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){let e=new Promise(e=>{n.current.getState().suspendedComponentResolvers.add(e)});throw e}if("hasError"===e.state)throw e.contents;throw d(`Invalid value of loadable atom "${t.key}"`)}function nZ(e){let t=nB(),n=nN(),r=nW(()=>{var n;let r=t.current,o=r.getState(),i=nC().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree,a=nP(r,e,i);return{loadable:a,key:e.key}},[t,e]),o=nW(e=>{let t;return()=>{var n,r;let o=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===o.key?t:(t=o,o)}},[]),i=nG(()=>o(r),[r,o]),a=nW(r=>{let o=t.current,i=nF(o,e,r,n);return i.release},[t,e,n]);return nU(a,i,i).loadable}function nY(e){let t=nB(),n=nW(()=>{var n;let r=t.current,o=r.getState(),i=nC().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return nP(r,e,i)},[t,e]),r=nW(()=>n(),[n]),o=nN(),i=nW((r,i)=>{let a=t.current,l=nF(a,e,()=>{if(!k("recoil_suppress_rerender_in_callback"))return i();let e=n();s.current.is(e)||i(),s.current=e},o);return l.release},[t,e,o,n]),a=nI();if(null==a)throw d("Recoil hooks must be used in components contained within a <RecoilRoot> component.");let l=nM(a,r,i),s=nj(l);return n$(()=>{s.current=l}),l}function nJ(e){let t=nB(),n=nN(),r=nW(()=>{var n;let r=t.current,o=r.getState(),i=nC().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return nP(r,e,i)},[t,e]),o=nW(()=>({loadable:r(),key:e.key}),[r,e.key]),i=nW(e=>{let t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t},[o]);n$(()=>{let r=nF(t.current,e,e=>{l(i)},n);return l(i),r.release},[n,e,t,i]);let[a,l]=nH(o);return a.key!==e.key?o().loadable:a.loadable}function nX(e){let t=nB(),[,n]=nH([]),r=nN(),o=nW(()=>{var n;let r=t.current,o=r.getState(),i=nC().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return nP(r,e,i)},[t,e]),i=o(),a=nj(i);return n$(()=>{a.current=i}),n$(()=>{let i=t.current,l=i.getState(),s=nF(i,e,e=>{var t;if(!k("recoil_suppress_rerender_in_callback"))return n([]);let r=o();null!==(t=a.current)&&void 0!==t&&t.is(r)||n(r),a.current=r},r);if(l.nextTree)i.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var u;if(!k("recoil_suppress_rerender_in_callback"))return n([]);let e=o();null!==(u=a.current)&&void 0!==u&&u.is(e)||n(e),a.current=e}return s.release},[r,o,e,t]),i}function nQ(e){return k("recoil_memory_managament_2020")&&nE(e),({TRANSITION_SUPPORT:nJ,SYNC_EXTERNAL_STORE:nV()?nZ:nJ,MUTABLE_SOURCE:nY,LEGACY:nX})[nC().mode](e)}function n0(e){let t=nB(),n=nQ(e);return nq(n,e,t)}function n1(e){let t=nB();return nW(n=>{nx(t.current,e,n)},[t,e])}function n2(e){return k("recoil_memory_managament_2020")&&nE(e),nJ(e)}function n5(e){let t=nB(),n=n2(e);return nq(n,e,t)}var n4=function(e,t){let n=new Map;for(let[r,o]of e)t(o,r)&&n.set(r,o);return n},n8=function(e,t){let n=new Set;for(let r of e)t(r)&&n.add(r);return n},n3=function(...e){let t=new Map;for(let n=0;n<e.length;n++){let r;let o=e[n].keys();for(;!(r=o.next()).done;)t.set(r.value,e[n].get(r.value))}return t};let{batchUpdates:n7}=tf,{DEFAULT_VALUE:n9,getNode:n6,nodes:re}=J,{useStoreRef:rt}=np,{AbstractRecoilValue:rn,setRecoilValueLoadable:rr}=e4,{SUSPENSE_TIMEOUT_MS:ro}=to,{cloneSnapshot:ri}=tF,{useCallback:ra,useEffect:rl,useRef:rs,useState:ru}=s,{isSSR:rc}=t_;function rd(e){let t=rt();rl(()=>{let n=t.current.subscribeToTransactions(e);return n.release},[e,t])}function rf(e){let t=e.atomValues.toMap(),n=ei(n4(t,(e,t)=>{let n=n6(t),r=n.persistence_UNSTABLE;return null!=r&&"none"!==r.type&&"hasValue"===e.state}),e=>e.contents);return n3(e.nonvalidatedAtoms.toMap(),n)}function rh(e,t){var n;let r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;n7(()=>{let n=new Set;for(let e of[o.atomValues.keys(),i.atomValues.keys()])for(let t of e){var r,a;(null===(r=o.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(a=i.atomValues.get(t))||void 0===a?void 0:a.contents)&&n6(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach(t=>{rr(e,new rn(t),i.atomValues.has(t)?h(i.atomValues.get(t)):n9)}),e.replaceState(e=>({...e,stateID:t.getID()}))})}var rp={useRecoilSnapshot:function(){let e=rt(),[t,n]=ru(()=>ri(e.current)),r=nm(t),o=rs(),i=rs();if(rd(ra(e=>n(ri(e)),[])),rl(()=>{let e=t.retain();if(o.current&&!rc){var n;window.clearTimeout(o.current),o.current=null,null===(n=i.current)||void 0===n||n.call(i),i.current=null}return()=>{window.setTimeout(e,10)}},[t]),r!==t&&!rc){if(o.current){var a;window.clearTimeout(o.current),o.current=null,null===(a=i.current)||void 0===a||a.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var e;o.current=null,null===(e=i.current)||void 0===e||e.call(i),i.current=null},ro)}return t},gotoSnapshot:rh,useGotoRecoilSnapshot:function(){let e=rt();return ra(t=>rh(e.current,t),[e])},useRecoilTransactionObserver:function(e){rd(ra(t=>{let n=ri(t,"latest"),r=ri(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))},useTransactionObservation_DEPRECATED:function(e){rd(ra(t=>{let n=t.getState().previousTree,r=t.getState().currentTree;n||(L("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);let o=rf(r),i=rf(n),a=ei(re,e=>{var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}}),l=n8(r.dirtyAtoms,e=>o.has(e)||i.has(e));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:l,transactionMetadata:{...r.transactionMetadata}})},[e]))},useTransactionSubscription_DEPRECATED:rd};let{peekNodeInfo:rv}=eB,{useStoreRef:r_}=np,{reactMode:ry}=I,{RecoilRoot:rm,useStoreRef:rS}=np,{useMemo:rg}=s,{loadableWithValue:rT}=E,{initializeNode:rb}=eB,{DEFAULT_VALUE:rR,getNode:rw}=J,{copyTreeState:rA,getRecoilValueAsLoadable:rE,invalidateDownstreams:rN,writeLoadableToTreeState:rk}=e4;function rL(e){return"atom"===rw(e.key).nodeType}class rV{constructor(e,t){p(this,"_store",void 0),p(this,"_treeState",void 0),p(this,"_changes",void 0),p(this,"get",e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!rL(e))throw d("Reading selectors within atomicUpdate is not supported");let t=rE(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;if("hasError"===t.state)throw t.contents;throw d(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)}),p(this,"set",(e,t)=>{if(!rL(e))throw d("Setting selectors within atomicUpdate is not supported");if("function"==typeof t){let n=this.get(e);this._changes.set(e.key,t(n))}else rb(this._store,e.key,"set"),this._changes.set(e.key,t)}),p(this,"reset",e=>{this.set(e,rR)}),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;let e=rA(this._treeState);for(let[t,n]of this._changes)rk(e,t,rT(n));return rN(this._store,e),e}}var rC=Object.freeze({__proto__:null,atomicUpdater:function(e){return t=>{e.replaceState(n=>{let r=new rV(e,n);return t(r),r.newTreeState_INTERNAL()})}}}),rM=function(e,t){if(!e)throw Error(t)};let{atomicUpdater:rU}=rC,{batchUpdates:rI}=tf,{DEFAULT_VALUE:rB}=J,{useStoreRef:rD}=np,{refreshRecoilValue:rO,setRecoilValue:rP}=e4,{cloneSnapshot:rx}=tF,{gotoSnapshot:rz}=rp,{useCallback:rF}=s;class rW{}let r$=new rW;function rG(e,t,n,r){let o,i=r$;if(rI(()=>{let a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if("function"!=typeof t)throw d(a);let l=ew({...null!=r?r:{},set:(t,n)=>rP(e,t,n),reset:t=>rP(e,t,rB),refresh:t=>rO(e,t),gotoSnapshot:t=>rz(e,t),transact_UNSTABLE:t=>rU(e)(t)},{snapshot:()=>{let t=rx(e);return o=t.retain(),t}}),s=t(l);if("function"!=typeof s)throw d(a);i=s(...n)}),i instanceof rW&&rM(!1),f(i))i.finally(()=>{var e;null===(e=o)||void 0===e||e()});else{var a;null===(a=o)||void 0===a||a()}return i}var rj={recoilCallback:rG,useRecoilCallback:function(e,t){let n=rD();return rF((...t)=>rG(n.current,e,t),null!=t?[...t,n]:void 0)}};let{useStoreRef:rH}=np,{refreshRecoilValue:rK}=e4,{useCallback:rq}=s,{atomicUpdater:rZ}=rC,{useStoreRef:rY}=np,{useMemo:rJ}=s;var rX=Object.freeze({__proto__:null,WrappedValue:{WrappedValue:class{constructor(e){p(this,"value",void 0),this.value=e}}}.WrappedValue});let{isFastRefreshEnabled:rQ}=I;class r0 extends Error{}var r1=Object.freeze({__proto__:null,TreeCache:{TreeCache:class{constructor(e){var t,n,r;p(this,"_name",void 0),p(this,"_numLeafs",void 0),p(this,"_root",void 0),p(this,"_onHit",void 0),p(this,"_onSet",void 0),p(this,"_mapNodeValue",void 0),this._name=null==e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null==e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null==e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null==e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null==t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;let r=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(r)}}set(e,t,n){let r=()=>{var r,o,i,a,l,s,u;let c,d;for(let[t,r]of e){let e=this._root;if((null==e?void 0:e.type)==="leaf")throw this.invalidCacheError();let o=c;if("branch"!==(c=null!==(l=c=o?o.branches.get(d):e)&&void 0!==l?l:{type:"branch",nodeKey:t,parent:o,branches:new Map,branchKey:d}).type||c.nodeKey!==t)throw this.invalidCacheError();null==o||o.branches.set(d,c),null==n||null===(s=n.onNodeVisit)||void 0===s||s.call(n,c),d=this._mapNodeValue(r),this._root=null!==(u=this._root)&&void 0!==u?u:c}let f=c?null===(r=c)||void 0===r?void 0:r.branches.get(d):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==d))throw this.invalidCacheError();let h={type:"leaf",value:t,parent:c,branchKey:d};null===(o=c)||void 0===o||o.branches.set(d,h),this._root=null!==(i=this._root)&&void 0!==i?i:h,this._numLeafs++,this._onSet(h),null==n||null===(a=n.onNodeVisit)||void 0===a||a.call(n,h)};try{r()}catch(e){if(e instanceof r0)this.clear(),r();else throw e}}delete(e){let t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,r=e.branchKey;for(;n;){var o;if(n.branches.delete(r),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;r=null===(o=n)||void 0===o?void 0:o.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){let e=rQ()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw L(e+(null!=this._name?` - ${this._name}`:"")),new r0}}}.TreeCache}),r2=Object.freeze({__proto__:null,LRUCache:{LRUCache:class{constructor(e){var t;p(this,"_maxSize",void 0),p(this,"_size",void 0),p(this,"_head",void 0),p(this,"_tail",void 0),p(this,"_map",void 0),p(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){let t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){let n=this._keyMapper(e),r=this._map.get(n);r&&this.delete(e);let o=this.head(),i={key:e,right:o,left:null,value:t};o?o.left=i:this._tail=i,this._map.set(n,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){let e=this.tail();e&&this.delete(e.key)}delete(e){let t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;let n=h(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}}.LRUCache});let{LRUCache:r5}=r2,{TreeCache:r4}=r1;var r8=function({name:e,maxSize:t,mapNodeValue:n=e=>e}){let r=new r5({maxSize:t}),o=new r4({name:e,mapNodeValue:n,onHit:e=>{r.set(e,!0)},onSet:e=>{let n=r.tail();r.set(e,!0),n&&o.size()>t&&o.delete(n.key)}});return o};function r3(e,t,n){if("string"==typeof e&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((null==t?void 0:t.allowFunctions)!==!0)throw d("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";if("object"!=typeof e){var r;return null!==(r=JSON.stringify(e))&&void 0!==r?r:""}if(f(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((e,n)=>r3(e,t,n.toString()))}]`;if("function"==typeof e.toJSON)return r3(e.toJSON(n),t,n);if(e instanceof Map){let r={};for(let[n,o]of e)r["string"==typeof n?n:r3(n,t)]=o;return r3(r,t,n)}return e instanceof Set?r3(Array.from(e).sort((e,n)=>r3(e,t).localeCompare(r3(n,t))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"==typeof e[Symbol.iterator]?r3(Array.from(e),t,n):`{${Object.keys(e).filter(t=>void 0!==e[t]).sort().map(n=>`${r3(n,t)}:${r3(e[n],t,n)}`).join(",")}}`}var r7=function(e,t={allowFunctions:!1}){return r3(e,t)};let{TreeCache:r9}=r1,r6={equality:"reference",eviction:"keep-all",maxSize:1/0};var oe=function({equality:e=r6.equality,eviction:t=r6.eviction,maxSize:n=r6.maxSize}=r6,r){let o=function(e){switch(e){case"reference":return e=>e;case"value":return e=>r7(e)}throw d(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n,r){switch(e){case"keep-all":return new r9({name:r,mapNodeValue:n});case"lru":return r8({name:r,maxSize:h(t),mapNodeValue:n});case"most-recent":return r8({name:r,maxSize:1,mapNodeValue:n})}throw d(`Unrecognized eviction policy ${e}`)}(t,n,o,r)};let{isReactNative:ot,isWindow:on}=t_,{isLoadable:or,loadableWithError:oo,loadableWithPromise:oi,loadableWithValue:oa}=E,{WrappedValue:ol}=rX,{getNodeLoadable:os,peekNodeLoadable:ou,setNodeValue:oc}=eB,{saveDepsToStore:od}=el,{DEFAULT_VALUE:of,getConfigDeletionHandler:oh,getNode:op,registerNode:ov}=J,{isRecoilValue:o_}=z,{markRecoilValueModified:oy}=e4,{retainedByOptionWithDefault:om}=to,{recoilCallback:oS}=rj,{startPerfBlock:og}={startPerfBlock:function(e){return()=>null}};class oT{}let ob=new oT,oR=[],ow=new Map,oA=(r=0,()=>r++);function oE(e){let t=null,{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=null!=e.set?e.set:void 0,a=new Set,l=oe(null!=o?o:{equality:"reference",eviction:"keep-all"},n),s=om(e.retainedBy_UNSTABLE),u=new Map,c=0;function p(){return!k("recoil_memory_managament_2020")||c>0}function v(e){return e.getState().knownSelectors.add(n),c++,()=>{c--}}function _(){return void 0!==oh(n)&&!p()}function y(e,t){N(e,t)&&E(e),m(t,!0)}function m(e,n){let r=ow.get(e);if(null!=r){for(let e of r)oy(e,h(t));n&&ow.delete(e)}}function S(e,t){let n=ow.get(t);null==n&&ow.set(t,n=new Set),n.add(e)}function g(e,t,n,r,o,i){return t.then(r=>{if(!p())throw E(e),ob;null!=i.loadingDepKey&&i.loadingDepPromise===t?n.atomValues.set(i.loadingDepKey,oa(r)):e.getState().knownSelectors.forEach(e=>{n.atomValues.delete(e)});let a=R(e,n);if(a&&"loading"!==a.state){if((N(e,o)||null==A(e))&&y(e,o),"hasValue"===a.state)return a.contents;throw a.contents}if(!N(e,o)){let t=w(e,n);if(null!=t)return t.loadingLoadable.contents}let[l,s]=b(e,n,o);if("loading"!==l.state&&(V(n,l,s),y(e,o)),"hasError"===l.state)throw l.contents;return l.contents}).catch(t=>{if(t instanceof oT)throw ob;if(!p())throw E(e),ob;let i=oo(t);throw V(n,i,r),y(e,o),t})}function T(e,t,r,o){var i,l,s,u,c,d,f;for(let h of((N(e,o)||t.version===(null===(i=e.getState())||void 0===i?void 0:null===(l=i.currentTree)||void 0===l?void 0:l.version)||t.version===(null===(s=e.getState())||void 0===s?void 0:null===(u=s.nextTree)||void 0===u?void 0:u.version))&&od(n,r,e,null!==(c=null===(d=e.getState())||void 0===d?void 0:null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==c?c:e.getState().currentTree.version),r))a.add(h)}function b(e,o,i){let a,l;let s=og(n),u=!0,c=!0,v=()=>{s(),c=!1},_=!1,S={loadingDepKey:null,loadingDepPromise:null},b=new Map;function R({key:t}){let n=os(e,o,t);switch(b.set(t,n),u||(T(e,o,new Set(b.keys()),i),function(e,t){if(N(e,t)){let n=h(A(e));n.stateVersions.clear(),m(t,!1)}}(e,i)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw S.loadingDepKey=t,S.loadingDepPromise=n.contents,n.contents}throw d("Invalid Loadable state")}let w=n=>(...r)=>{if(c)throw d("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null!=t||rM(!1),oS(e,n,r,{node:t})};try{(a=r({get:R,getCallback:w}),a=o_(a)?R(a):a,or(a)&&("hasError"===a.state&&(_=!0),a=a.contents),f(a))?a=a.then(t=>{if(!p())throw E(e),ob;let n=oa(t);return V(o,n,b),y(e,i),t}).catch(t=>{if(!p())throw E(e),ob;if(f(t))return g(e,t,o,b,i,S);let n=oo(t);throw V(o,n,b),y(e,i),t}).finally(v):v(),a=a instanceof ol?a.value:a}catch(t){f(a=t)?a=g(e,a,o,b,i,S).finally(v):(_=!0,v())}return l=_?oo(a):f(a)?oi(a):oa(a),u=!1,function(e,t,n){if(N(e,t)){let t=A(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,i,b),T(e,o,new Set(b.keys()),i),[l,b]}function R(e,t){let r=t.atomValues.get(n);if(null!=r)return r;let o=new Set;try{r=l.get(n=>("string"!=typeof n&&rM(!1),os(e,t,n).contents),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&o.add(e.nodeKey)}})}catch(e){throw d(`Problem with cache lookup for selector "${n}": ${e.message}`)}if(r){var i;t.atomValues.set(n,r),T(e,t,o,null===(i=A(e))||void 0===i?void 0:i.executionID)}return r}function w(e,t){let n=th([u.has(e)?[h(u.get(e))]:[],W(eR(u,([t])=>t!==e),([,e])=>e)]);for(let r of n){if(r.stateVersions.get(t.version)||!function(n){for(let[r,o]of n)if(!os(e,t,r).is(o))return!0;return!1}(r.depValuesDiscoveredSoFarDuringAsyncWork))return r.stateVersions.set(t.version,!0),r;r.stateVersions.set(t.version,!1)}}function A(e){return u.get(e)}function E(e){u.delete(e)}function N(e,t){var n;return t===(null===(n=A(e))||void 0===n?void 0:n.executionID)}function V(e,t,r){e.atomValues.set(n,t);try{l.set(Array.from(r.entries()).map(([e,t])=>[e,t.contents]),t)}catch(e){throw d(`Problem with setting cache for selector "${n}": ${e.message}`)}}function C(e,t){let r=t.atomValues.get(n);return null!=r?r:l.get(n=>{var r;return"string"!=typeof n&&rM(!1),null===(r=ou(e,t,n))||void 0===r?void 0:r.contents})}function M(e,t){return function(e){if(oR.includes(n)){let e=`Recoil selector has circular dependencies: ${oR.slice(oR.indexOf(n)).join(" → ")}`;return oo(d(e))}oR.push(n);try{return e()}finally{oR.pop()}}(()=>(function(e,t){var n;let r=R(e,t);if(null!=r)return E(e),r;let o=w(e,t);if(null!=o)return(null===(n=o.loadingLoadable)||void 0===n?void 0:n.state)==="loading"&&S(e,o.executionID),o.loadingLoadable;let i=oA(),[a,l]=b(e,t,i);return"loading"===a.state?(u.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:l,executionID:i,loadingLoadable:a,stateVersions:new Map([[t.version,!0]])}),S(e,i)):(E(e),V(t,a,l)),a})(e,t))}function U(e){e.atomValues.delete(n)}function I(e,n){for(let o of(null!=t||rM(!1),a)){var r;let t=op(o);null===(r=t.clearCache)||void 0===r||r.call(t,e,n)}a.clear(),U(n),l.clear(),oy(e,t)}if(null==i)return t=ov({key:n,nodeType:"selector",peek:C,get:M,init:v,invalidate:U,clearCache:I,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s});{let r=(e,t,r)=>{let o=!1,a=new Map;function l({key:r}){if(o)throw d("Recoil: Async selector sets are not currently supported.");let i=os(e,t,r);if("hasValue"===i.state)return i.contents;if("loading"===i.state){let e=`Getting value of asynchronous atom or selector "${r}" in a pending state while setting selector "${n}" is not yet supported.`;throw L(e),d(e)}throw i.contents}function s(n,r){if(o){let e="Recoil: Async selector sets are not currently supported.";throw L(e),d(e)}let i="function"==typeof r?r(l(n)):r,s=oc(e,t,n.key,i);s.forEach((e,t)=>a.set(t,e))}let u=i({set:s,get:l,reset:function(e){s(e,of)}},r);if(void 0!==u)throw f(u)?d("Recoil: Async selector sets are not currently supported."):d("Recoil: selector set should be a void function.");return o=!0,a};return t=ov({key:n,nodeType:"selector",peek:C,get:M,set:r,init:v,invalidate:U,clearCache:I,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}}oE.value=e=>new ol(e);let{isLoadable:oN,loadableWithError:ok,loadableWithPromise:oL,loadableWithValue:oV}=E,{WrappedValue:oC}=rX,{peekNodeInfo:oM}=eB,{DEFAULT_VALUE:oU,DefaultValue:oI,getConfigDeletionHandler:oB,registerNode:oD,setConfigDeletionHandler:oO}=J,{isRecoilValue:oP}=z,{getRecoilValueAsLoadable:ox,markRecoilValueModified:oz,setRecoilValue:oF,setRecoilValueLoadable:oW}=e4,{retainedByOptionWithDefault:o$}=to,oG=e=>e instanceof oC?e.value:e;function oj(e){let{...t}=e,n="default"in e?e.default:new Promise(()=>{});return oP(n)?function(e){let t=oj({...e,default:oU,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof oI?t:h(e.persistence_UNSTABLE).validator(t,oU)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=oE({key:`${e.key}__withFallback`,get:({get:n})=>{let r=n(t);return r instanceof oI?e.default:r},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return oO(n.key,oB(e.key)),n}({...t,default:n}):function(e){var t;let n;let{key:r,persistence_UNSTABLE:o}=e,i=o$(e.retainedBy_UNSTABLE),a=0;function l(e){return oL(e.then(e=>(s=oV(e),e)).catch(e=>{throw s=ok(e),e}))}let s=f(e.default)?l(e.default):oN(e.default)?"loading"===e.default.state?l(e.default.contents):e.default:oV(oG(e.default));s.contents;let u=new Map;function c(e,t){var o,i;return null!==(o=null!==(i=t.atomValues.get(r))&&void 0!==i?i:n)&&void 0!==o?o:s}let p=oD({key:r,nodeType:"atom",peek:c,get:function(e,t){if(t.atomValues.has(r))return h(t.atomValues.get(r));if(!t.nonvalidatedAtoms.has(r))return s;{if(null!=n)return n;if(null==o)return F(`Tried to restore a persisted value for atom ${r} but it has no persistence settings.`),s;let e=t.nonvalidatedAtoms.get(r),i=o.validator(e,oU),a=i instanceof oI?s:oV(i);return n=a}},set:function(e,t,o){if(t.atomValues.has(r)){let e=h(t.atomValues.get(r));if("hasValue"===e.state&&o===e.contents)return new Map}else if(!t.nonvalidatedAtoms.has(r)&&o instanceof oI)return new Map;return n=void 0,new Map().set(r,oV(o))},init:function(t,n,o){var i,l,h;a++;let v=()=>{var e;a--,null===(e=u.get(t))||void 0===e||e.forEach(e=>e()),u.delete(t)};if(t.getState().knownAtoms.add(r),"loading"===s.state){let e=()=>{var e;let n=null!==(e=t.getState().nextTree)&&void 0!==e?e:t.getState().currentTree;n.atomValues.has(r)||oz(t,p)};s.contents.finally(e)}let _=null!==(i=e.effects)&&void 0!==i?i:e.effects_UNSTABLE;if(null!=_){let e=oU,i=!0,a=!1,v=null;function y(o){if(i&&o.key===r){let r=e;return r instanceof oI?c(t,n):f(r)?oL(r.then(e=>e instanceof oI?s.toPromise():e)):oV(r)}return ox(t,o)}function m(e){return y(e).toPromise()}function S(n){var o;let a=oM(t,null!==(o=t.getState().nextTree)&&void 0!==o?o:t.getState().currentTree,n.key);return!i||n.key!==r||e instanceof oI?a:{...a,isSet:!0,loadable:y(n)}}let g=n=>r=>{if(i){let t=y(p),o="hasValue"===t.state?t.contents:oU;f(e="function"==typeof r?r(o):r)&&(e=e.then(e=>(v={effect:n,value:e},e)))}else{if(f(r))throw d("Setting atoms to async values is not implemented.");"function"!=typeof r&&(v={effect:n,value:oG(r)}),oF(t,p,"function"==typeof r?e=>{let t=oG(r(e));return v={effect:n,value:t},t}:oG(r))}},T=e=>()=>g(e)(oU),b=e=>n=>{var o;let{release:i}=t.subscribeToTransactions(t=>{var o,i,a,l,u;let{currentTree:c,previousTree:d}=t.getState();d||(L("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),d=c);let f=null!==(o=c.atomValues.get(r))&&void 0!==o?o:s;if("hasValue"===f.state){let t=f.contents,o=null!==(i=d.atomValues.get(r))&&void 0!==i?i:s,h="hasValue"===o.state?o.contents:oU;(null===(a=v)||void 0===a?void 0:a.effect)!==e||(null===(l=v)||void 0===l?void 0:l.value)!==t?n(t,h,!c.atomValues.has(r)):(null===(u=v)||void 0===u?void 0:u.effect)===e&&(v=null)}},r);u.set(t,[...null!==(o=u.get(t))&&void 0!==o?o:[],i])};for(let n of _)try{let e=n({node:p,storeID:t.storeID,parentStoreID_UNSTABLE:t.parentStoreID,trigger:o,setSelf:g(n),resetSelf:T(n),onSet:b(n),getPromise:m,getLoadable:y,getInfo_UNSTABLE:S});null!=e&&u.set(t,[...null!==(l=u.get(t))&&void 0!==l?l:[],e])}catch(t){e=t,a=!0}if(i=!1,!(e instanceof oI)){let o=a?ok(e):f(e)?oL(function(e,t){let n=t.then(t=>{var o,i;let a=null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree;return(null===(i=a.atomValues.get(r))||void 0===i?void 0:i.contents)===n&&oF(e,p,t),t}).catch(t=>{var o,i;let a=null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree;throw(null===(i=a.atomValues.get(r))||void 0===i?void 0:i.contents)===n&&oW(e,p,ok(t)),t});return n}(t,e)):oV(oG(e));o.contents,n.atomValues.set(r,o),null===(h=t.getState().nextTree)||void 0===h||h.atomValues.set(r,o)}}return v},invalidate:function(){n=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==oB(r)&&a<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:i});return p}({...t,default:n})}oj.value=e=>new oC(e);var oH=Object.freeze({__proto__:null,MapCache:{MapCache:class{constructor(e){var t;p(this,"_map",void 0),p(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null==e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}}}.MapCache});let{LRUCache:oK}=r2,{MapCache:oq}=oH,oZ={equality:"reference",eviction:"none",maxSize:1/0};var oY=function({equality:e=oZ.equality,eviction:t=oZ.eviction,maxSize:n=oZ.maxSize}=oZ){let r=function(e){switch(e){case"reference":return e=>e;case"value":return e=>r7(e)}throw d(`Unrecognized equality policy ${e}`)}(e),o=function(e,t,n){switch(e){case"keep-all":return new oq({mapKey:n});case"lru":return new oK({mapKey:n,maxSize:h(t)});case"most-recent":return new oK({mapKey:n,maxSize:1})}throw d(`Unrecognized eviction policy ${e}`)}(t,n,r);return o};let{setConfigDeletionHandler:oJ}=J,{setConfigDeletionHandler:oX}=J,oQ=0;var o0=function(e){var t,n;let r=oY({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let o,i;try{o=r.get(t)}catch(t){throw d(`Problem with cache lookup for selector ${e.key}: ${t.message}`)}if(null!=o)return o;let a=`${e.key}__selectorFamily/${null!==(n=r7(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${oQ++}`,l=n=>e.get(t)(n),s=e.cachePolicy_UNSTABLE,u="function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;if(null!=e.set){let n=e.set,r=(e,r)=>n(t)(e,r);i=oE({key:a,get:l,set:r,cachePolicy_UNSTABLE:s,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u})}else i=oE({key:a,get:l,cachePolicy_UNSTABLE:s,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u});return r.set(t,i),oX(i.key,()=>{r.delete(t)}),i}};let o1=o0({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}}),o2=o0({key:"__error",get:e=>()=>{throw d(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}}),{loadableWithError:o5,loadableWithPromise:o4,loadableWithValue:o8}=E;function o3(e,t){let n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(let[o,i]of t.entries())try{n[o]=e(i)}catch(e){r[o]=e}return[n,r]}function o7(e){return null!=e&&!f(e)}function o9(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function o6(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{})}function ie(e,t,n){let r=n.map((e,n)=>null==e?o8(t[n]):f(e)?o4(e):o5(e));return o6(e,r)}let it=o0({key:"__waitForNone",get:e=>({get:t})=>{let n=o9(e),[r,o]=o3(t,n);return ie(e,r,o)},dangerouslyAllowMutability:!0}),ir=o0({key:"__waitForAny",get:e=>({get:t})=>{let n=o9(e),[r,o]=o3(t,n);return o.some(e=>!f(e))?ie(e,r,o):new Promise(t=>{for(let[n,i]of o.entries())f(i)&&i.then(i=>{r[n]=i,o[n]=void 0,t(ie(e,r,o))}).catch(i=>{o[n]=i,t(ie(e,r,o))})})},dangerouslyAllowMutability:!0}),io=o0({key:"__waitForAll",get:e=>({get:t})=>{let n=o9(e),[r,o]=o3(t,n);if(o.every(e=>null==e))return o6(e,r);let i=o.find(o7);if(null!=i)throw i;return Promise.all(o).then(t=>o6(e,t.map((e,t)=>void 0===e?r[t]:e)))},dangerouslyAllowMutability:!0}),ii=o0({key:"__waitForAllSettled",get:e=>({get:t})=>{let n=o9(e),[r,o]=o3(t,n);return o.every(e=>!f(e))?ie(e,r,o):Promise.all(o.map((e,t)=>f(e)?e.then(e=>{r[t]=e,o[t]=void 0}).catch(e=>{r[t]=void 0,o[t]=e}):null)).then(()=>ie(e,r,o))},dangerouslyAllowMutability:!0}),ia=o0({key:"__noWait",get:e=>({get:t})=>{try{return oE.value(o8(t(e)))}catch(e){return oE.value(f(e)?o4(e):o5(e))}},dangerouslyAllowMutability:!0}),{RecoilLoadable:il}=E,{DefaultValue:is}=J,{RecoilRoot:iu,useRecoilStoreID:ic}=np,{isRecoilValue:id}=z,{retentionZone:ih}=eT,{freshSnapshot:ip}=tF,{useRecoilState:iv,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:i_,useRecoilStateLoadable:iy,useRecoilValue:im,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:iS,useRecoilValueLoadable:ig,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:iT,useResetRecoilState:ib,useSetRecoilState:iR}={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){let e=nN(),t=nB(),[,n]=nH([]),r=nj(new Set);r.current=new Set;let o=nj(new Set),i=nj(new Map),a=nW(e=>{let t=i.current.get(e);t&&(t.release(),i.current.delete(e))},[i]),l=nW((e,t)=>{i.current.has(t)&&n([])},[]);return n$(()=>{let n=t.current;eo(r.current,o.current).forEach(t=>{if(i.current.has(t)){F(`Double subscription to RecoilValue "${t}"`);return}let r=nF(n,new nO(t),e=>l(e,t),e);i.current.set(t,r);let o=n.getState();o.nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{l(n.getState(),t)}):l(n.getState(),t)}),eo(o.current,r.current).forEach(e=>{a(e)}),o.current=r.current}),n$(()=>{let n=i.current;return eo(r.current,new Set(n.keys())).forEach(r=>{let o=nF(t.current,new nO(r),e=>l(e,r),e);n.set(r,o)}),()=>n.forEach((e,t)=>a(t))},[e,t,a,l]),nG(()=>{function e(e){return n=>{nx(t.current,e,n)}}function n(e){var n;r.current.has(e.key)||(r.current=nK(r.current,e.key));let o=t.current.getState();return nP(t.current,e,nC().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree)}function o(e){let r=n(e);return nq(r,e,t)}return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(t){return[o(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>nx(t.current,e,nL)}}},[r,t])},useRecoilState:function(e){return[n0(e),n1(e)]},useRecoilStateLoadable:function(e){return[nQ(e),n1(e)]},useRecoilValue:n0,useRecoilValueLoadable:nQ,useResetRecoilState:function(e){let t=nB();return nW(()=>{nx(t.current,e,nL)},[t,e])},useSetRecoilState:n1,useSetUnvalidatedAtomValues:function(){let e=nB();return(t,n={})=>{nk(()=>{e.current.addTransactionMetadata(n),t.forEach((t,n)=>nz(e.current,new nO(n),t))})}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:n2,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:n5,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[n5(e),n1(e)]}},{useGotoRecoilSnapshot:iw,useRecoilSnapshot:iA,useRecoilTransactionObserver:iE}=rp,{useRecoilCallback:iN}=rj,{noWait:ik,waitForAll:iL,waitForAllSettled:iV,waitForAny:iC,waitForNone:iM}={waitForNone:it,waitForAny:ir,waitForAll:io,waitForAllSettled:ii,noWait:ia};var iU={DefaultValue:is,isRecoilValue:id,RecoilLoadable:il,RecoilEnv:B,RecoilRoot:iu,useRecoilStoreID:ic,useRecoilBridgeAcrossReactRoots_UNSTABLE:function(){"MUTABLE_SOURCE"===ry().mode&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");let e=rS().current;return rg(()=>function({children:t}){return s.createElement(rm,{store_INTERNAL:e},t)},[e])},atom:oj,selector:oE,atomFamily:function(e){var t,n;let r=oY({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n,o;let i=r.get(t);if(null!=i)return i;let{cachePolicyForParams_UNSTABLE:a,...l}=e,s="default"in e?e.default:new Promise(()=>{}),u=oj({...l,key:`${e.key}__${null!==(n=r7(t))&&void 0!==n?n:"void"}`,default:"function"==typeof s?s(t):s,retainedBy_UNSTABLE:"function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"==typeof e.effects?e.effects(t):"function"==typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(o=e.effects)&&void 0!==o?o:e.effects_UNSTABLE});return r.set(t,u),oJ(u.key,()=>{r.delete(t)}),u}},selectorFamily:o0,constSelector:function(e){return o1(e)},errorSelector:function(e){return o2(e)},readOnlySelector:function(e){return e},noWait:ik,waitForNone:iM,waitForAny:iC,waitForAll:iL,waitForAllSettled:iV,useRecoilValue:im,useRecoilValueLoadable:ig,useRecoilState:iv,useRecoilStateLoadable:iy,useSetRecoilState:iR,useResetRecoilState:ib,useGetRecoilValueInfo_UNSTABLE:function(){let e=r_();return({key:t})=>rv(e.current,e.current.getState().currentTree,t)},useRecoilRefresher_UNSTABLE:function(e){let t=rH();return rq(()=>{let n=t.current;rK(n,e)},[e,t])},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:iT,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:iS,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:i_,useRecoilCallback:iN,useRecoilTransaction_UNSTABLE:function(e,t){let n=rY();return rJ(()=>(...t)=>{let r=rZ(n.current);r(n=>{e(n)(...t)})},null!=t?[...t,n]:void 0)},useGotoRecoilSnapshot:iw,useRecoilSnapshot:iA,useRecoilTransactionObserver_UNSTABLE:iE,snapshot_UNSTABLE:ip,useRetain:nE,retentionZone:ih};iU.DefaultValue,iU.isRecoilValue,iU.RecoilLoadable;var iI=iU.RecoilEnv,iB=iU.RecoilRoot;iU.useRecoilStoreID,iU.useRecoilBridgeAcrossReactRoots_UNSTABLE;var iD=iU.atom,iO=iU.selector;iU.atomFamily,iU.selectorFamily,iU.constSelector,iU.errorSelector,iU.readOnlySelector,iU.noWait,iU.waitForNone,iU.waitForAny,iU.waitForAll,iU.waitForAllSettled;var iP=iU.useRecoilValue;iU.useRecoilValueLoadable;var ix=iU.useRecoilState;iU.useRecoilStateLoadable;var iz=iU.useSetRecoilState;iU.useResetRecoilState,iU.useGetRecoilValueInfo_UNSTABLE,iU.useRecoilRefresher_UNSTABLE,iU.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE,iU.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE,iU.useRecoilState_TRANSITION_SUPPORT_UNSTABLE,iU.useRecoilCallback,iU.useRecoilTransaction_UNSTABLE,iU.useGotoRecoilSnapshot,iU.useRecoilSnapshot,iU.useRecoilTransactionObserver_UNSTABLE,iU.snapshot_UNSTABLE,iU.useRetain,iU.retentionZone}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(80880)}),_N_E=e.O()}]); |