traitify-widgets 3.0.0-alpha.2 → 3.0.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -108,7 +108,7 @@ import traitify, {Components} from "traitify-widgets";
108
108
 
109
109
  export default function Personality({id}) {
110
110
  return (
111
- <Components.Container {...traitify.props()} assessmentID={id}>
111
+ <Components.Container {...traitify.props} assessmentID={id}>
112
112
  <Components.Results />
113
113
  </Components.Container>
114
114
  );
package/build/354.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunkTraitify=self.webpackChunkTraitify||[]).push([[354],{9853:function(e,t,n){n.d(t,{CG:function(){return Zi},Qv:function(){return $i},cn:function(){return Gi},nZ:function(){return Ki}});var o=n(8156),r=n.n(o),a=n(7111),i=n.n(a),s=function(e){const t=new Error(e);if(void 0===t.stack)try{throw t}catch(e){}return t},u=function(e){return!!e&&"function"==typeof e.then},l=function(e,t){if(null!=e)return e;throw s(null!=t?t:"Got unexpected null or undefined")};function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{getValue(){throw s("BaseLoadable")}toPromise(){throw s("BaseLoadable")}valueMaybe(){throw s("BaseLoadable")}valueOrThrow(){throw s(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw s("BaseLoadable")}promiseOrThrow(){throw s(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw s("BaseLoadable")}errorOrThrow(){throw s(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw s("BaseLoadable")}}class f extends d{constructor(e){super(),c(this,"state","hasValue"),c(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{const t=e(this.contents);return u(t)?m(t):g(t)?t:v(t)}catch(t){return u(t)?m(t.next((()=>this.map(e)))):y(t)}}}class h extends d{constructor(e){super(),c(this,"state","hasError"),c(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 p extends d{constructor(e){super(),c(this,"state","loading"),c(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 m(this.contents.then((t=>{const n=e(t);if(g(n)){const e=n;switch(e.state){case"hasValue":case"loading":return e.contents;case"hasError":throw e.contents}}return n})).catch((t=>{if(u(t))return t.then((()=>this.map(e).contents));throw t})))}}function v(e){return Object.freeze(new f(e))}function y(e){return Object.freeze(new h(e))}function m(e){return Object.freeze(new p(e))}function _(){return Object.freeze(new p(new Promise((()=>{}))))}function S(e){const t=function(e){return e.every((e=>"hasValue"===e.state))?v(e.map((e=>e.contents))):e.some((e=>"hasError"===e.state))?y(l(e.find((e=>"hasError"===e.state)),"Invalid loadable passed to loadableAll").contents):m(Promise.all(e.map((e=>e.contents))))}((Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))).map((e=>g(e)?e:u(e)?m(e):v(e))));return Array.isArray(e)?t:t.map((t=>Object.getOwnPropertyNames(e).reduce(((e,n,o)=>({...e,[n]:t[o]})),{})))}function g(e){return e instanceof d}const b={of:e=>u(e)?m(e):g(e)?e:v(e),error:e=>y(e),loading:()=>_(),all:S,isLoadable:g};var T={loadableWithValue:v,loadableWithError:y,loadableWithPromise:m,loadableLoading:_,loadableAll:S,isLoadable:g,RecoilLoadable:b},w=T.loadableWithValue,R=T.loadableWithError,A=T.loadableWithPromise,E=T.loadableLoading,N=T.loadableAll,k=T.isLoadable,L=T.RecoilLoadable,V=Object.freeze({__proto__:null,loadableWithValue:w,loadableWithError:R,loadableWithPromise:A,loadableLoading:E,loadableAll:N,isLoadable:k,RecoilLoadable:L});const C={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};var M;"undefined"!=typeof process&&null!=(null===(M=process)||void 0===M?void 0:M.env)&&(function(e,t){var n,o;const r=null===(n=process.env[e])||void 0===n||null===(o=n.toLowerCase())||void 0===o?void 0:o.trim();if(null!=r&&""!==r){if(!["true","false"].includes(r))throw s(`process.env.${e} value must be 'true', 'false', or empty: ${r}`);a="true"===r,C.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=a}var a}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED"),function(e,t){var n;const o=null===(n=process.env.RECOIL_GKS_ENABLED)||void 0===n?void 0:n.trim();null!=o&&""!==o&&o.split(/\s*,\s*|\s+/).forEach((e=>{C.RECOIL_GKS_ENABLED.add(e)}))}());var U=C;function I(e){return U.RECOIL_GKS_ENABLED.has(e)}I.setPass=e=>{U.RECOIL_GKS_ENABLED.add(e)},I.setFail=e=>{U.RECOIL_GKS_ENABLED.delete(e)},I.clear=()=>{U.RECOIL_GKS_ENABLED.clear()};var D,B,O,P=I;const x=null!==(D=r().createMutableSource)&&void 0!==D?D:r().unstable_createMutableSource,z=null!==(B=r().useMutableSource)&&void 0!==B?B:r().unstable_useMutableSource,F=null!==(O=r().useSyncExternalStore)&&void 0!==O?O:r().unstable_useSyncExternalStore;let j=!1;var W={createMutableSource:x,useMutableSource:z,useSyncExternalStore:F,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=r().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=null!=(null!==(e=null==t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!F||o||j||(j=!0),o},reactMode:function(){return P("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:P("recoil_sync_external_store")&&null!=F?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:P("recoil_mutable_source")&&null!=z&&"undefined"!=typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?P("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:P("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class G{constructor(e){c(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class K extends G{}class Z extends G{}var $={AbstractRecoilValue:G,RecoilState:K,RecoilValueReadOnly:Z,isRecoilValue:function(e){return e instanceof K||e instanceof Z}},H=$.AbstractRecoilValue,q=$.RecoilState,Y=$.RecoilValueReadOnly,J=$.isRecoilValue,X=Object.freeze({__proto__:null,AbstractRecoilValue:H,RecoilState:q,RecoilValueReadOnly:Y,isRecoilValue:J}),Q=function(e,t){return function*(){let n=0;for(const o of e)yield t(o,n++)}()};const{isFastRefreshEnabled:ee}=W;class te{}const ne=new te,oe=new Map,re=new Map;class ae extends Error{}const ie=new Map;function se(e){return ie.get(e)}var ue,le,ce={nodes:oe,recoilValues:re,registerNode:function(e){U.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(oe.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;console.warn(t)}}(e.key),oe.set(e.key,e);const t=null==e.set?new X.RecoilValueReadOnly(e.key):new X.RecoilState(e.key);return re.set(e.key,t),t},getNode:function(e){const t=oe.get(e);if(null==t)throw new ae(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return oe.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!P("recoil_memory_managament_2020"))return;const n=oe.get(e);var o;null!=n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(oe.delete(e),null===(o=se(e))||void 0===o||o(),ie.delete(e))},setConfigDeletionHandler:function(e,t){P("recoil_memory_managament_2020")&&(void 0===t?ie.delete(e):ie.set(e,t))},getConfigDeletionHandler:se,recoilValuesForKeys:function(e){return Q(e,(e=>l(re.get(e))))},NodeMissingError:ae,DefaultValue:te,DEFAULT_VALUE:ne},de=function(e,t){t()},fe=(ue=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={},o=Math.pow(2,5),r=o-1,a=o/2,i=o/4,s={},u=function(e){return function(){return e}},l=n.hash=function(e){var n=void 0===e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var o=0,r=0,a=e.length;r<a;++r)o=(o<<5)-o+e.charCodeAt(r)|0;return o},c=function(e,t){return t>>>e&r},d=function(e){return 1<<e},f=function(e,t){return n=e&t-1,n=(n=(858993459&(n-=n>>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,127&(n+=n>>8)+(n>>16);var n},h=function(e,t,n,o){var r=o;if(!e){var a=o.length;r=new Array(a);for(var i=0;i<a;++i)r[i]=o[i]}return r[t]=n,r},p=function(e,t,n){var o=n.length-1,r=0,a=0,i=n;if(e)r=a=t;else for(i=new Array(o);r<t;)i[a++]=n[r++];for(++r;r<=o;)i[a++]=n[r++];return e&&(i.length=o),i},v={__hamt_isEmpty:!0},y=function(e){return e===v||e&&e.__hamt_isEmpty},m=function(e,t,n,o){return{type:1,edit:e,hash:t,key:n,value:o,_modify:w}},_=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:R}},S=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:A}},g=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:E}},b=function e(t,n,o,r,a,i){if(o===a)return _(t,o,[i,r]);var s=c(n,o),u=c(n,a);return S(t,d(s)|d(u),s===u?[e(t,n+5,o,r,a,i)]:s<u?[r,i]:[i,r])},T=function(e,t){return e===t.edit},w=function(e,t,n,o,r,a,i){if(t(a,this.key)){var u=o(this.value);return u===this.value?this:u===s?(--i.value,v):T(e,this)?(this.value=u,this):m(e,r,a,u)}var l=o();return l===s?this:(++i.value,b(e,n,this.hash,this,r,m(e,r,a,l)))},R=function(e,t,n,o,r,a,i){if(r===this.hash){var u=function(e,t,n,o,r,a,i,u){for(var l=r.length,c=0;c<l;++c){var d=r[c];if(n(i,d.key)){var f=d.value,v=a(f);return v===f?r:v===s?(--u.value,p(e,c,r)):h(e,c,m(t,o,i,v),r)}}var y=a();return y===s?r:(++u.value,h(e,l,m(t,o,i,y),r))}(T(e,this),e,t,this.hash,this.children,o,a,i);return u===this.children?this:u.length>1?_(e,this.hash,u):u[0]}var l=o();return l===s?this:(++i.value,b(e,n,this.hash,this,r,m(e,r,a,l)))},A=function(e,t,n,o,r,i,s){var u=this.mask,l=this.children,m=c(n,r),_=d(m),b=f(u,_),w=u&_,R=w?l[b]:v,A=R._modify(e,t,n+5,o,r,i,s);if(R===A)return this;var E,N=T(e,this),k=u,L=void 0;if(w&&y(A)){if(!(k&=~_))return v;if(l.length<=2&&((E=l[1^b])===v||1===E.type||2===E.type))return l[1^b];L=p(N,b,l)}else if(w||y(A))L=h(N,b,A,l);else{if(l.length>=a)return function(e,t,n,o,r){for(var a=[],i=o,s=0,u=0;i;++u)1&i&&(a[u]=r[s++]),i>>>=1;return a[t]=n,g(e,s+1,a)}(e,m,A,u,l);k|=_,L=function(e,t,n,o){var r=o.length;if(e){for(var a=r;a>=t;)o[a--]=o[a];return o[t]=n,o}for(var i=0,s=0,u=new Array(r+1);i<t;)u[s++]=o[i++];for(u[t]=n;i<r;)u[++s]=o[i++];return u}(N,b,A,l)}return N?(this.mask=k,this.children=L,this):S(e,k,L)},E=function(e,t,n,o,r,a,s){var u=this.size,l=this.children,d=c(n,r),f=l[d],p=(f||v)._modify(e,t,n+5,o,r,a,s);if(f===p)return this;var m=T(e,this),_=void 0;if(y(f)&&!y(p))++u,_=h(m,d,p,l);else if(!y(f)&&y(p)){if(--u<=i)return function(e,t,n,o){for(var r=new Array(t-1),a=0,i=0,s=0,u=o.length;s<u;++s)if(s!==n){var l=o[s];l&&!y(l)&&(r[a++]=l,i|=1<<s)}return S(e,i,r)}(e,u,d,l);_=h(m,d,v,l)}else _=h(m,d,p,l);return m?(this.size=u,this.children=_,this):g(e,u,_)};function N(e,t,n,o,r){this._editable=e,this._edit=t,this._config=n,this._root=o,this._size=r}v._modify=function(e,t,n,o,r,a,i){var u=o();return u===s?v:(++i.value,m(e,r,a,u))},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,o){for(var r=o._root,a=0,i=o._config.keyEq;;)switch(r.type){case 1:return i(n,r.key)?r.value:e;case 2:if(t===r.hash)for(var s=r.children,u=0,l=s.length;u<l;++u){var h=s[u];if(i(n,h.key))return h.value}return e;case 3:var p=c(a,t),v=d(p);if(r.mask&v){r=r.children[f(r.mask,v)],a+=5;break}return e;case 4:if(r=r.children[c(a,t)]){a+=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(s,e,t,n)!==s};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||l},v,0)},n.empty=n.make();var I=n.isEmpty=function(e){return e&&!!y(e._root)};N.prototype.isEmpty=function(){return I(this)};var D=n.modifyHash=function(e,t,n,o){var r={value:o._size},a=o._root._modify(o._editable?o._edit:NaN,o._config.keyEq,0,e,t,n,r);return o.setTree(a,r.value)};N.prototype.modifyHash=function(e,t,n){return D(n,e,t,this)};var B=n.modify=function(e,t,n){return D(e,n._config.hash(t),t,n)};N.prototype.modify=function(e,t){return B(t,e,this)};var O=n.setHash=function(e,t,n,o){return D(u(n),e,t,o)};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=u(s),z=n.removeHash=function(e,t,n){return D(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 j=n.beginMutation=function(e){return new N(e._editable+1,e._edit+1,e._config,e._root,e._size)};N.prototype.beginMutation=function(){return j(this)};var W=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};N.prototype.endMutation=function(){return W(this)};var G=n.mutate=function(e,t){var n=j(t);return e(n),W(n)};N.prototype.mutate=function(e){return G(e,this)};var K=function(e){return e&&Z(e[0],e[1],e[2],e[3],e[4])},Z=function(e,t,n,o,r){for(;n<e;){var a=t[n++];if(a&&!y(a))return $(a,o,[e,t,n,o,r])}return K(r)},$=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var o=e.children;return Z(o.length,o,0,t,n);default:return K(n)}},H={done:!0};function q(e){this.v=e}q.prototype.next=function(){if(!this.v)return H;var e=this.v;return this.v=K(e.rest),e},q.prototype[Symbol.iterator]=function(){return this};var Y=function(e,t){return new q($(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 te=function(e){return e.value},ne=n.values=N.prototype.values=function(e){return Y(e,te)};N.prototype.values=function(){return ne(this)};var oe=n.fold=function(e,t,n){var o=n._root;if(1===o.type)return e(t,o.value,o.key);for(var r=[o.children],a=void 0;a=r.pop();)for(var i=0,s=a.length;i<s;){var u=a[i++];u&&u.type&&(1===u.type?t=e(t,u.value,u.key):r.push(u.children))}return t};N.prototype.fold=function(e,t){return oe(e,t,this)};var re=n.forEach=function(e,t){return oe((function(n,o,r){return e(o,r,t)}),null,t)};N.prototype.forEach=function(e){return re(e,this)};var ae=n.count=function(e){return e._size};N.prototype.count=function(){return ae(this)},Object.defineProperty(N.prototype,"size",{get:N.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n},ue(le={exports:{}}),le.exports);class he{constructor(e){c(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 ve(this)}toMap(){return new Map(this._map)}}class pe{constructor(e){if(c(this,"_hamt",fe.empty.beginMutation()),e instanceof pe){const t=e._hamt.endMutation();e._hamt=t.beginMutation(),this._hamt=t.beginMutation()}else if(e)for(const[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 ve(this)}toMap(){return new Map(this._hamt)}}function ve(e){return P("recoil_hamt_2020")?new pe(e):new he(e)}var ye=ve,me=Object.freeze({__proto__:null,persistentMap:ye}),_e=function(e,...t){const n=new Set;e:for(const o of e){for(const e of t)if(e.has(o))continue e;n.add(o)}return n},Se=function(e,t){const n=new Map;return e.forEach(((e,o)=>{n.set(o,t(e,o))})),n};function ge(e,t,n,o){const{nodeDeps:r,nodeToNodeSubscriptions:a}=n,i=r.get(e);if(i&&o&&i!==o.nodeDeps.get(e))return;r.set(e,t);const s=null==i?t:_e(t,i);for(const t of s)a.has(t)||a.set(t,new Set),l(a.get(t)).add(e);if(i){const n=_e(i,t);for(const t of n){if(!a.has(t))return;const n=l(a.get(t));n.delete(e),0===n.size&&a.delete(t)}}}var be={cloneGraph:function(e){return{nodeDeps:Se(e.nodeDeps,(e=>new Set(e))),nodeToNodeSubscriptions:Se(e.nodeToNodeSubscriptions,(e=>new Set(e)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,o){var r,a,i,s;const u=n.getState();o!==u.currentTree.version&&o!==(null===(r=u.nextTree)||void 0===r?void 0:r.version)&&(null===(a=u.previousTree)||void 0===a||a.version);const l=n.getGraph(o);if(ge(e,t,l),o===(null===(i=u.previousTree)||void 0===i?void 0:i.version)&&ge(e,t,n.getGraph(u.currentTree.version),l),o===(null===(s=u.previousTree)||void 0===s?void 0:s.version)||o===u.currentTree.version){var c;const o=null===(c=u.nextTree)||void 0===c?void 0:c.version;void 0!==o&&ge(e,t,n.getGraph(o),l)}}};let Te=0,we=0,Re=0;var Ae={getNextTreeStateVersion:()=>Te++,getNextStoreID:()=>we++,getNextComponentID:()=>Re++};const{persistentMap:Ee}=me,{graph:Ne}=be,{getNextTreeStateVersion:ke}=Ae;function Le(){const e=ke();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Ee(),nonvalidatedAtoms:Ee()}}var Ve={makeEmptyTreeState:Le,makeEmptyStoreState:function(){const e=Le();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,Ne()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:ke};class Ce{}var Me={RetentionZone:Ce,retentionZone:function(){return new Ce}},Ue={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const o=new Map(e);return o.set(t,n),o},mapByUpdatingInMap:function(e,t,n){const o=new Map(e);return o.set(t,n(o.get(t))),o},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach((e=>n.delete(e))),n}},Ie=function*(e,t){let n=0;for(const o of e)t(o,n++)&&(yield o)},De=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};const{getNode:Be,getNodeMaybe:Oe,recoilValuesForKeys:Pe}=ce,{RetentionZone:xe}=Me,{setByAddingToSet:ze}=Ue,Fe=Object.freeze(new Set);class je extends Error{}function We(e,t,n,o){const r=e.getState();if(r.nodeCleanupFunctions.has(n))return;const a=Be(n),i=function(e,t,n){if(!P("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:o}=e.getState().retention;function r(e){let n=o.get(e);n||o.set(e,n=new Set),n.add(t)}if(n instanceof xe)r(n);else if(Array.isArray(n))for(const e of n)r(e);return()=>{if(!P("recoil_memory_managament_2020"))return;const{retention:o}=e.getState();function r(e){const n=o.nodesRetainedByZone.get(e);null==n||n.delete(t),n&&0===n.size&&o.nodesRetainedByZone.delete(e)}if(n instanceof xe)r(n);else if(Array.isArray(n))for(const e of n)r(e)}}(e,n,a.retainedBy),s=a.init(e,t,o);r.nodeCleanupFunctions.set(n,(()=>{s(),i()}))}function Ge(e,t,n){return Be(n).peek(e,t)}function Ke(e,t,n){const o=new Set,r=Array.from(n),a=e.getGraph(t.version);for(let e=r.pop();e;e=r.pop()){var i;o.add(e);const t=null!==(i=a.nodeToNodeSubscriptions.get(e))&&void 0!==i?i:Fe;for(const e of t)o.has(e)||r.push(e)}return o}var Ze={getNodeLoadable:function(e,t,n){return We(e,t,n,"get"),Be(n).get(e,t)},peekNodeLoadable:Ge,setNodeValue:function(e,t,n,o){const r=Be(n);if(null==r.set)throw new je(`Attempt to set read-only RecoilValue: ${n}`);const a=r.set;return We(e,t,n,"set"),a(e,t,o)},initializeNode:function(e,t,n){We(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const o=e.getState();null===(n=o.nodeCleanupFunctions.get(t))||void 0===n||n(),o.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var o;const r=Oe(t);return null==r||null===(o=r.invalidate)||void 0===o||o.call(r,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:ze(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const o=e.getState(),r=e.getGraph(t.version),a=Be(n).nodeType;return De({type:a},{loadable:()=>Ge(e,t,n),isActive:()=>o.knownAtoms.has(n)||o.knownSelectors.has(n),isSet:()=>"selector"!==a&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return Pe(null!==(e=r.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var r,a;return{nodes:Pe(Ie(Ke(e,t,new Set([n])),(e=>e!==n))),components:Q(null!==(r=null===(a=o.nodeToComponentSubscriptions.get(n))||void 0===a?void 0:a.values())&&void 0!==r?r:[],(([e])=>({name:e})))}}})},getDownstreamNodes:Ke};let $e=null;var He={setInvalidateMemoizedSnapshot:function(e){$e=e},invalidateMemoizedSnapshot:function(){var e;null===(e=$e)||void 0===e||e()}};const{getDownstreamNodes:qe,getNodeLoadable:Ye,setNodeValue:Je}=Ze,{getNextComponentID:Xe}=Ae,{getNode:Qe,getNodeMaybe:et}=ce,{DefaultValue:tt}=ce,{reactMode:nt}=W,{AbstractRecoilValue:ot,RecoilState:rt,RecoilValueReadOnly:at,isRecoilValue:it}=X,{invalidateMemoizedSnapshot:st}=He;function ut(e,t,n){if("set"===n.type){const{recoilValue:o,valueOrUpdater:r}=n,a=function(e,t,{key:n},o){if("function"==typeof o){const r=Ye(e,t,n);if("loading"===r.state){const e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw s(e)}if("hasError"===r.state)throw r.contents;return o(r.contents)}return o}(e,t,o,r),i=Je(e,t,o.key,a);for(const[e,n]of i.entries())lt(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:o}=n;lt(t,e,o)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var o;const{recoilValue:{key:e},unvalidatedValue:r}=n,a=et(e);null==a||null===(o=a.invalidate)||void 0===o||o.call(a,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,r),t.dirtyAtoms.add(e)}else n.type}function lt(e,t,n){"hasValue"===n.state&&n.contents instanceof tt?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function ct(e,t){e.replaceState((n=>{const o=ht(n);for(const n of t)ut(e,o,n);return pt(e,o),st(),o}))}function dt(e,t){if(ft.length){const n=ft[ft.length-1];let o=n.get(e);o||n.set(e,o=[]),o.push(t)}else ct(e,[t])}const ft=[];function ht(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function pt(e,t){const n=qe(e,t,t.dirtyAtoms);for(const e of n){var o,r;null===(o=et(e))||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o,t)}}function vt(e,t,n){dt(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var yt={RecoilValueReadOnly:at,AbstractRecoilValue:ot,RecoilState:rt,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var o,r;const a=e.getState();n.version!==a.currentTree.version&&n.version!==(null===(o=a.nextTree)||void 0===o?void 0:o.version)&&(n.version,null===(r=a.previousTree)||void 0===r||r.version);const i=Ye(e,n,t);return"loading"===i.state&&i.contents.catch((()=>{})),i},setRecoilValue:vt,setRecoilValueLoadable:function(e,t,n){if(n instanceof tt)return vt(e,t,n);dt(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){dt(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){dt(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,o=null){const r=Xe(),a=e.getState();a.nodeToComponentSubscriptions.has(t)||a.nodeToComponentSubscriptions.set(t,new Map),l(a.nodeToComponentSubscriptions.get(t)).set(r,[null!=o?o:"<not captured>",n]);const i=nt();if(i.early&&("LEGACY"===i.mode||"MUTABLE_SOURCE"===i.mode)){const o=e.getState().nextTree;o&&o.dirtyAtoms.has(t)&&n(o)}return{release:()=>{const n=e.getState(),o=n.nodeToComponentSubscriptions.get(t);void 0!==o&&o.has(r)&&(o.delete(r),0===o.size&&n.nodeToComponentSubscriptions.delete(t))}}},isRecoilValue:it,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach(((e,t)=>{"hasValue"===e.state&&e.contents instanceof tt?n.delete(t):n.set(t,e)})),n},batchStart:function(){const e=new Map;return ft.push(e),()=>{for(const[t,n]of e)ct(t,n);ft.pop()}},writeLoadableToTreeState:lt,invalidateDownstreams:pt,copyTreeState:ht,refreshRecoilValue:function(e,t){var n;const{currentTree:o}=e.getState(),r=Qe(t.key);null===(n=r.clearCache)||void 0===n||n.call(r,e,o)}},mt=function(e,t,n){const o=e.entries();let r=o.next();for(;!r.done;){const a=r.value;if(t.call(n,a[1],a[0],e))return!0;r=o.next()}return!1};const{cleanUpNode:_t}=Ze,{deleteNodeConfigIfPossible:St,getNode:gt}=ce,{RetentionZone:bt}=Me,Tt=new Set;function wt(e,t){const n=e.getState(),o=n.currentTree;if(n.nextTree)return;const r=new Set;for(const e of t)if(e instanceof bt)for(const t of At(n,e))r.add(t);else r.add(e);const a=function(e,t){const n=e.getState(),o=n.currentTree,r=e.getGraph(o.version),a=new Set,i=new Set;return function t(s){const u=new Set,c=function(e,t,n,o,r){const a=e.getGraph(t.version),i=[],s=new Set;for(;n.size>0;)u(l(n.values().next().value));return i;function u(e){if(o.has(e)||r.has(e))return void n.delete(e);if(s.has(e))return;const t=a.nodeToNodeSubscriptions.get(e);if(t)for(const e of t)u(e);s.add(e),n.delete(e),i.push(e)}}(e,o,s,a,i);for(const e of c){var d;if("recoilRoot"===gt(e).retainedBy){i.add(e);continue}if((null!==(d=n.retention.referenceCounts.get(e))&&void 0!==d?d:0)>0){i.add(e);continue}if(Et(e).some((e=>n.retention.referenceCounts.get(e)))){i.add(e);continue}const t=r.nodeToNodeSubscriptions.get(e);t&&mt(t,(e=>i.has(e)))?i.add(e):(a.add(e),u.add(e))}const f=new Set;for(const e of u)for(const t of null!==(h=r.nodeDeps.get(e))&&void 0!==h?h:Tt){var h;a.has(t)||f.add(t)}f.size&&t(f)}(t),a}(e,r);for(const t of a)Rt(e,o,t)}function Rt(e,t,n){if(!P("recoil_memory_managament_2020"))return;_t(e,n);const o=e.getState();o.knownAtoms.delete(n),o.knownSelectors.delete(n),o.nodeTransactionSubscriptions.delete(n),o.retention.referenceCounts.delete(n);const r=Et(n);for(const e of r){var a;null===(a=o.retention.nodesRetainedByZone.get(e))||void 0===a||a.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=o.graphsByVersion.get(t.version);if(i){const e=i.nodeDeps.get(n);if(void 0!==e){i.nodeDeps.delete(n);for(const t of e){var s;null===(s=i.nodeToNodeSubscriptions.get(t))||void 0===s||s.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}St(n)}function At(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:Tt}function Et(e){const t=gt(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof bt?[t]:t}function Nt(e,t){P("recoil_memory_managament_2020")&&(e.getState().retention.referenceCounts.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):wt(e,new Set([t]))}(e,t))}var kt={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var o;if(!P("recoil_memory_managament_2020"))return;const r=e.getState().retention.referenceCounts,a=(null!==(o=r.get(t))&&void 0!==o?o:0)+n;0===a?Nt(e,t):r.set(t,a)},updateRetainCountToZero:Nt,releaseScheduledRetainablesNow:function(e){if(!P("recoil_memory_managament_2020"))return;const t=e.getState();wt(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};const{unstable_batchedUpdates:Lt}=i();var Vt={unstable_batchedUpdates:Lt};const{unstable_batchedUpdates:Ct}=Vt;var Mt={unstable_batchedUpdates:Ct};const{batchStart:Ut}=yt,{unstable_batchedUpdates:It}=Mt;let Dt=It||(e=>e());var Bt={getBatcher:()=>Dt,setBatcher:e=>{Dt=e},batchUpdates:e=>{Dt((()=>{let t=()=>{};try{t=Ut(),e()}finally{t()}}))}},Ot=function*(e){for(const t of e)for(const e of t)yield e};const Pt="undefined"==typeof Window||"undefined"==typeof window,xt="undefined"!=typeof navigator&&"ReactNative"===navigator.product;var zt={isSSR:Pt,isReactNative:xt,isWindow:e=>!Pt&&(e===window||e instanceof Window)},Ft={memoizeWithArgsHash:function(e,t){let n;return(...o)=>{n||(n={});const r=t(...o);return Object.hasOwnProperty.call(n,r)||(n[r]=e(...o)),n[r]}},memoizeOneWithArgsHash:function(e,t){let n,o;return(...r)=>{const a=t(...r);return n===a||(n=a,o=e(...r)),o}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,o;return[(...r)=>{const a=t(...r);return n===a||(n=a,o=e(...r)),o},()=>{n=null}]}};const{batchUpdates:jt}=Bt,{initializeNode:Wt,peekNodeInfo:Gt}=Ze,{graph:Kt}=be,{getNextStoreID:Zt}=Ae,{DEFAULT_VALUE:$t,recoilValues:Ht,recoilValuesForKeys:qt}=ce,{AbstractRecoilValue:Yt,getRecoilValueAsLoadable:Jt,setRecoilValue:Xt,setUnvalidatedRecoilValue:Qt}=yt,{updateRetainCount:en}=kt,{setInvalidateMemoizedSnapshot:tn}=He,{getNextTreeStateVersion:nn,makeEmptyStoreState:on}=Ve,{isSSR:rn}=zt,{memoizeOneWithArgsHashAndInvalidation:an}=Ft;class sn{constructor(e,t){c(this,"_store",void 0),c(this,"_refCount",1),c(this,"getLoadable",(e=>(this.checkRefCount_INTERNAL(),Jt(this._store,e)))),c(this,"getPromise",(e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise()))),c(this,"getNodes_UNSTABLE",(e=>{if(this.checkRefCount_INTERNAL(),!0===(null==e?void 0:e.isModified)){if(!1===(null==e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return qt(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null==e?void 0:e.isInitialized)?Ht.values():!0===e.isInitialized?qt(Ot([t,n])):Ie(Ht.values(),(({key:e})=>!t.has(e)&&!n.has(e)))})),c(this,"getInfo_UNSTABLE",(({key:e})=>(this.checkRefCount_INTERNAL(),Gt(this._store,this._store.getState().currentTree,e)))),c(this,"map",(e=>{this.checkRefCount_INTERNAL();const t=new dn(this,jt);return e(t),t})),c(this,"asyncMap",(async e=>{this.checkRefCount_INTERNAL();const t=new dn(this,jt);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t})),this._store={storeID:Zt(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return l(n.get(t));const o=Kt();return n.set(t,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw s("Cannot subscribe to Snapshots")}};for(const e of this._store.getState().knownAtoms)Wt(this._store,e,"get"),en(this._store,e,1);this.autoRelease_INTERNAL()}retain(){this._refCount,this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){rn||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(),!P("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){P("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 un(e,t,n=!1){const o=e.getState(),r=n?nn():t.version;return{currentTree:{version:n?r:t.version,stateID:n?r: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(o.knownAtoms),knownSelectors:new Set(o.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(r,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Q(o.nodeCleanupFunctions.entries(),(([e])=>[e,()=>{}])))}}const[ln,cn]=an(((e,t)=>{var n;const o=e.getState(),r="latest"===t?null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree:l(o.previousTree);return new sn(un(e,r),e.storeID)}),((e,t)=>{var n,o;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===(o=e.getState().previousTree)||void 0===o?void 0:o.version)}));tn(cn);class dn extends sn{constructor(e,t){super(un(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),c(this,"_batch",void 0),c(this,"set",((e,t)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch((()=>{en(n,e.key,1),Xt(this.getStore_INTERNAL(),e,t)}))})),c(this,"reset",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch((()=>{en(t,e.key,1),Xt(this.getStore_INTERNAL(),e,$t)}))})),c(this,"setUnvalidatedAtomValues_DEPRECATED",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();jt((()=>{for(const[n,o]of e.entries())en(t,n,1),Qt(t,new Yt(n),o)}))})),this._batch=t}}var fn={Snapshot:sn,MutableSnapshot:dn,freshSnapshot:function(e){const t=new sn(on());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){const n=ln(e,t);return n.isRetained()?n:(cn(),ln(e,t))}},hn=fn.Snapshot,pn=fn.MutableSnapshot,vn=fn.freshSnapshot,yn=fn.cloneSnapshot,mn=Object.freeze({__proto__:null,Snapshot:hn,MutableSnapshot:pn,freshSnapshot:vn,cloneSnapshot:yn}),_n=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:Sn}=r();var gn=function(e){const t=Sn(e);return t.current===e&&"function"==typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:bn,makeEmptyStoreState:Tn}=Ve,{cleanUpNode:wn,getDownstreamNodes:Rn,initializeNode:An,setNodeValue:En,setUnvalidatedAtomValue_DEPRECATED:Nn}=Ze,{graph:kn}=be,{cloneGraph:Ln}=be,{getNextStoreID:Vn}=Ae,{createMutableSource:Cn,reactMode:Mn}=W,{applyAtomValueWrites:Un}=yt,{releaseScheduledRetainablesNow:In}=kt,{freshSnapshot:Dn}=mn,{useCallback:Bn,useContext:On,useEffect:Pn,useMemo:xn,useRef:zn,useState:Fn}=r();function jn(){throw s("This component must be used inside a <RecoilRoot> component.")}const Wn=Object.freeze({storeID:Vn(),getState:jn,replaceState:jn,getGraph:jn,subscribeToTransactions:jn,addTransactionMetadata:jn});let Gn=!1;function Kn(e){if(Gn)throw s("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(null===t.nextTree){P("recoil_memory_managament_2020")&&P("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&In(e);const n=t.currentTree.version,o=bn();t.nextTree={...t.currentTree,version:o,stateID:o,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(o,Ln(l(t.graphsByVersion.get(n))))}}const Zn=r().createContext({current:Wn}),$n=()=>On(Zn),Hn=r().createContext(null);function qn(e,t,n){const o=Rn(e,n,n.dirtyAtoms);for(const e of o){const o=t.nodeToComponentSubscriptions.get(e);if(o)for(const[e,[t,r]]of o)r(n)}}function Yn(e){const t=e.getState(),n=t.currentTree,o=n.dirtyAtoms;if(o.size){for(const[n,r]of t.nodeTransactionSubscriptions)if(o.has(n))for(const[t,n]of r)n(e);for(const[n,o]of t.transactionSubscriptions)o(e);(!Mn().early||t.suspendedComponentResolvers.size>0)&&(qn(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 Jn({setNotifyBatcherOfChange:e}){const t=$n(),[,n]=Fn([]);return e((()=>n({}))),Pn((()=>(e((()=>n({}))),()=>{e((()=>{}))})),[e]),Pn((()=>{de("Batcher",(()=>{!function(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Yn(e),null!=t.previousTree&&t.graphsByVersion.delete(t.previousTree.version),t.previousTree=null,P("recoil_memory_managament_2020")&&null==n&&In(e)}finally{t.commitDepth--}}(t.current)}))})),null}let Xn=0;function Qn({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:o}){let a;const i=e=>{const t=a.current.graphsByVersion;if(t.has(e))return l(t.get(e));const n=kn();return t.set(e,n),n},s=(e,t)=>{if(null==t){const{transactionSubscriptions:t}=h.current.getState(),n=Xn++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=h.current.getState();n.has(t)||n.set(t,new Map);const o=Xn++;return l(n.get(t)).set(o,e),{release:()=>{const e=n.get(t);e&&(e.delete(o),0===e.size&&n.delete(t))}}}},u=e=>{Kn(h.current);for(const t of Object.keys(e))l(h.current.getState().nextTree).transactionMetadata[t]=e[t]},c=e=>{Kn(h.current);const t=l(a.current.nextTree);let n;try{Gn=!0,n=e(t)}finally{Gn=!1}n!==t&&(a.current.nextTree=n,Mn().early&&qn(h.current,a.current,n),l(d.current)())},d=zn(null),f=Bn((e=>{d.current=e}),[d]),h=gn((()=>null!=n?n:{storeID:Vn(),getState:()=>a.current,replaceState:c,getGraph:i,subscribeToTransactions:s,addTransactionMetadata:u}));null!=n&&(h.current=n),a=gn((()=>null!=e?function(e,t){const n=Tn();return t({set:(t,o)=>{const r=n.currentTree,a=En(e,r,t.key,o),i=new Set(a.keys()),s=r.nonvalidatedAtoms.clone();for(const e of i)s.delete(e);n.currentTree={...r,dirtyAtoms:_n(r.dirtyAtoms,i),atomValues:Un(r.atomValues,a),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:e=>{e.forEach(((e,t)=>{n.currentTree=Nn(n.currentTree,t,e)}))}}),n}(h.current,e):null!=t?function(e){const t=Dn(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach((e=>e())),n.nodeCleanupFunctions.clear(),n}(t):Tn()));const p=xn((()=>null==Cn?void 0:Cn(a,(()=>a.current.currentTree.version))),[a]);return Pn((()=>{const e=h.current;for(const t of new Set(e.getState().knownAtoms))An(e,t,"get");return()=>{for(const t of e.getState().knownAtoms)wn(e,t)}}),[h]),r().createElement(Zn.Provider,{value:h},r().createElement(Hn.Provider,{value:p},r().createElement(Jn,{setNotifyBatcherOfChange:f}),o))}var eo={RecoilRoot:function(e){const{override:t,...n}=e,o=$n();return!1===t&&o.current!==Wn?e.children:r().createElement(Qn,n)},useStoreRef:$n,useRecoilMutableSource:function(){const e=On(Hn);return e},useRecoilStoreID:function(){return $n().current.storeID},notifyComponents_FOR_TESTING:qn,sendEndOfBatchNotifications_FOR_TESTING:Yn};const{useEffect:to,useRef:no}=r();var oo=function(e){const t=no();return to((()=>{t.current=e})),t.current};const{useStoreRef:ro}=eo,{SUSPENSE_TIMEOUT_MS:ao}=kt,{updateRetainCount:io}=kt,{RetentionZone:so}=Me,{useEffect:uo,useRef:lo}=r(),{isSSR:co}=zt;var fo=function(e){if(P("recoil_memory_managament_2020"))return function(e){const t=(Array.isArray(e)?e:[e]).map((e=>e instanceof so?e:e.key)),n=ro();uo((()=>{if(!P("recoil_memory_managament_2020"))return;const e=n.current;if(o.current&&!co)window.clearTimeout(o.current),o.current=null;else for(const n of t)io(e,n,1);return()=>{for(const n of t)io(e,n,-1)}}),[n,...t]);const o=lo(),r=oo(t);if(!(co||void 0!==r&&function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!1;return!0}(r,t))){const e=n.current;for(const n of t)io(e,n,1);if(r)for(const t of r)io(e,t,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout((()=>{o.current=null;for(const n of t)io(e,n,-1)}),ao)}}(e)};const{batchUpdates:ho}=Bt,{DEFAULT_VALUE:po}=ce,{currentRendererSupportsUseSyncExternalStore:vo,reactMode:yo,useMutableSource:mo,useSyncExternalStore:_o}=W,{useRecoilMutableSource:So,useStoreRef:go}=eo,{isRecoilValue:bo}=X,{AbstractRecoilValue:To,getRecoilValueAsLoadable:wo,setRecoilValue:Ro,setUnvalidatedRecoilValue:Ao,subscribeToRecoilValue:Eo}=yt,{useCallback:No,useEffect:ko,useMemo:Lo,useRef:Vo,useState:Co}=r(),{setByAddingToSet:Mo}=Ue,{isSSR:Uo}=zt;function Io(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state)throw new Promise((t=>{const o=n.current.getState().suspendedComponentResolvers;o.add(t),Uo&&u(e.contents)&&e.contents.finally((()=>{o.delete(t)}))}));throw"hasError"===e.state?e.contents:s(`Invalid value of loadable atom "${t.key}"`)}function Do(e){const t=go(),n="<component name not available>",o=No((()=>{var n;const o=t.current,r=o.getState(),a=yo().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return{loadable:wo(o,e,a),key:e.key}}),[t,e]),r=No((e=>{let t;return()=>{var n,o;const r=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(r.loadable)&&(null===(o=t)||void 0===o?void 0:o.key)===r.key?t:(t=r,r)}}),[]),a=Lo((()=>r(o)),[o,r]),i=No((o=>{const r=t.current;return Eo(r,e,o,n).release}),[t,e,n]);return _o(i,a,a).loadable}function Bo(e){const t=go(),n=No((()=>{var n;const o=t.current,r=o.getState(),a=yo().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return wo(o,e,a)}),[t,e]),o=No((()=>n()),[n]),r="<component name not available>",a=No(((o,a)=>{const i=t.current;return Eo(i,e,(()=>{if(!P("recoil_suppress_rerender_in_callback"))return a();const e=n();l.current.is(e)||a(),l.current=e}),r).release}),[t,e,r,n]),i=So();if(null==i)throw s("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const u=mo(i,o,a),l=Vo(u);return ko((()=>{l.current=u})),u}function Oo(e){const t=go(),n="<component name not available>",o=No((()=>{var n;const o=t.current,r=o.getState(),a=yo().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return wo(o,e,a)}),[t,e]),r=No((()=>({loadable:o(),key:e.key})),[o,e.key]),a=No((e=>{const t=r();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[r]);ko((()=>{const o=Eo(t.current,e,(e=>{s(a)}),n);return s(a),o.release}),[n,e,t,a]);const[i,s]=Co(r);return i.key!==e.key?r().loadable:i.loadable}function Po(e){const t=go(),[,n]=Co([]),o="<component name not available>",r=No((()=>{var n;const o=t.current,r=o.getState(),a=yo().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return wo(o,e,a)}),[t,e]),a=r(),i=Vo(a);return ko((()=>{i.current=a})),ko((()=>{const a=t.current,s=a.getState(),u=Eo(a,e,(e=>{var t;if(!P("recoil_suppress_rerender_in_callback"))return n([]);const o=r();null!==(t=i.current)&&void 0!==t&&t.is(o)||n(o),i.current=o}),o);if(s.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{i.current=null,n([])}));else{var l;if(!P("recoil_suppress_rerender_in_callback"))return n([]);const e=r();null!==(l=i.current)&&void 0!==l&&l.is(e)||n(e),i.current=e}return u.release}),[o,r,e,t]),a}function xo(e){return P("recoil_memory_managament_2020")&&fo(e),{TRANSITION_SUPPORT:Oo,SYNC_EXTERNAL_STORE:vo()?Do:Oo,MUTABLE_SOURCE:Bo,LEGACY:Po}[yo().mode](e)}function zo(e){const t=go();return Io(xo(e),e,t)}function Fo(e){const t=go();return No((n=>{Ro(t.current,e,n)}),[t,e])}function jo(e){return P("recoil_memory_managament_2020")&&fo(e),Oo(e)}function Wo(e){const t=go();return Io(jo(e),e,t)}var Go={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e="<component name not available>",t=go(),[,n]=Co([]),o=Vo(new Set);o.current=new Set;const r=Vo(new Set),a=Vo(new Map),i=No((e=>{const t=a.current.get(e);t&&(t.release(),a.current.delete(e))}),[a]),s=No(((e,t)=>{a.current.has(t)&&n([])}),[]);return ko((()=>{const n=t.current;_e(o.current,r.current).forEach((t=>{if(a.current.has(t))return;const o=Eo(n,new To(t),(e=>s(e,t)),e);a.current.set(t,o),n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{s(n.getState(),t)})):s(n.getState(),t)})),_e(r.current,o.current).forEach((e=>{i(e)})),r.current=o.current})),ko((()=>{const n=a.current;return _e(o.current,new Set(n.keys())).forEach((o=>{const r=Eo(t.current,new To(o),(e=>s(e,o)),e);n.set(o,r)})),()=>n.forEach(((e,t)=>i(t)))}),[e,t,i,s]),Lo((()=>{function e(e){return n=>{Ro(t.current,e,n)}}function n(e){var n;o.current.has(e.key)||(o.current=Mo(o.current,e.key));const r=t.current.getState();return wo(t.current,e,yo().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree)}function r(e){return Io(n(e),e,t)}return{getRecoilValue:r,getRecoilValueLoadable:n,getRecoilState:function(t){return[r(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>Ro(t.current,e,po)}}}),[o,t])},useRecoilState:function(e){return[zo(e),Fo(e)]},useRecoilStateLoadable:function(e){return[xo(e),Fo(e)]},useRecoilValue:zo,useRecoilValueLoadable:xo,useResetRecoilState:function(e){const t=go();return No((()=>{Ro(t.current,e,po)}),[t,e])},useSetRecoilState:Fo,useSetUnvalidatedAtomValues:function(){const e=go();return(t,n={})=>{ho((()=>{e.current.addTransactionMetadata(n),t.forEach(((t,n)=>Ao(e.current,new To(n),t)))}))}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:jo,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Wo,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[Wo(e),Fo(e)]}};const{batchUpdates:Ko}=Bt,{DEFAULT_VALUE:Zo,getNode:$o,nodes:Ho}=ce,{useStoreRef:qo}=eo,{AbstractRecoilValue:Yo,setRecoilValueLoadable:Jo}=yt,{SUSPENSE_TIMEOUT_MS:Xo}=kt,{cloneSnapshot:Qo}=mn,{useCallback:er,useEffect:tr,useRef:nr,useState:or}=r(),{isSSR:rr}=zt;function ar(e){const t=qo();tr((()=>t.current.subscribeToTransactions(e).release),[e,t])}function ir(e){const t=e.atomValues.toMap(),n=Se(function(e,t){const n=new Map;for(const[o,r]of e)t(r,o)&&n.set(o,r);return n}(t,((e,t)=>{const n=$o(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state})),(e=>e.contents));return function(...e){const t=new Map;for(let n=0;n<e.length;n++){const o=e[n].keys();let r;for(;!(r=o.next()).done;)t.set(r.value,e[n].get(r.value))}return t}(e.nonvalidatedAtoms.toMap(),n)}function sr(e,t){var n;const o=e.getState(),r=null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree,a=t.getStore_INTERNAL().getState().currentTree;Ko((()=>{const n=new Set;for(const e of[r.atomValues.keys(),a.atomValues.keys()])for(const t of e){var o,i;(null===(o=r.atomValues.get(t))||void 0===o?void 0:o.contents)!==(null===(i=a.atomValues.get(t))||void 0===i?void 0:i.contents)&&$o(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach((t=>{Jo(e,new Yo(t),a.atomValues.has(t)?l(a.atomValues.get(t)):Zo)})),e.replaceState((e=>({...e,stateID:t.getID()})))}))}var ur={useRecoilSnapshot:function(){const e=qo(),[t,n]=or((()=>Qo(e.current))),o=oo(t),r=nr(),a=nr();var i;(ar(er((e=>n(Qo(e))),[])),tr((()=>{const e=t.retain();var n;return r.current&&!rr&&(window.clearTimeout(r.current),r.current=null,null===(n=a.current)||void 0===n||n.call(a),a.current=null),()=>{window.setTimeout(e,10)}}),[t]),o===t||rr)||(r.current&&(window.clearTimeout(r.current),r.current=null,null===(i=a.current)||void 0===i||i.call(a),a.current=null),a.current=t.retain(),r.current=window.setTimeout((()=>{var e;r.current=null,null===(e=a.current)||void 0===e||e.call(a),a.current=null}),Xo));return t},gotoSnapshot:sr,useGotoRecoilSnapshot:function(){const e=qo();return er((t=>sr(e.current,t)),[e])},useRecoilTransactionObserver:function(e){ar(er((t=>{const n=Qo(t,"latest"),o=Qo(t,"previous");e({snapshot:n,previousSnapshot:o})}),[e]))},useTransactionObservation_DEPRECATED:function(e){ar(er((t=>{let n=t.getState().previousTree;const o=t.getState().currentTree;n||(n=t.getState().currentTree);const r=ir(o),a=ir(n),i=Se(Ho,(e=>{var t,n,o,r;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!==(o=null===(r=e.persistence_UNSTABLE)||void 0===r?void 0:r.backButton)&&void 0!==o&&o}}})),s=function(e,t){const n=new Set;for(const o of e)t(o)&&n.add(o);return n}(o.dirtyAtoms,(e=>r.has(e)||a.has(e)));e({atomValues:r,previousAtomValues:a,atomInfo:i,modifiedAtoms:s,transactionMetadata:{...o.transactionMetadata}})}),[e]))},useTransactionSubscription_DEPRECATED:ar};const{peekNodeInfo:lr}=Ze,{useStoreRef:cr}=eo;const{reactMode:dr}=W,{RecoilRoot:fr,useStoreRef:hr}=eo,{useMemo:pr}=r();const{loadableWithValue:vr}=V,{initializeNode:yr}=Ze,{DEFAULT_VALUE:mr,getNode:_r}=ce,{copyTreeState:Sr,getRecoilValueAsLoadable:gr,invalidateDownstreams:br,writeLoadableToTreeState:Tr}=yt;function wr(e){return"atom"===_r(e.key).nodeType}class Rr{constructor(e,t){c(this,"_store",void 0),c(this,"_treeState",void 0),c(this,"_changes",void 0),c(this,"get",(e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!wr(e))throw s("Reading selectors within atomicUpdate is not supported");const t=gr(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:s(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)})),c(this,"set",((e,t)=>{if(!wr(e))throw s("Setting selectors within atomicUpdate is not supported");if("function"==typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else yr(this._store,e.key,"set"),this._changes.set(e.key,t)})),c(this,"reset",(e=>{this.set(e,mr)})),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=Sr(this._treeState);for(const[t,n]of this._changes)Tr(e,t,vr(n));return br(this._store,e),e}}var Ar=function(e){return t=>{e.replaceState((n=>{const o=new Rr(e,n);return t(o),o.newTreeState_INTERNAL()}))}},Er=Object.freeze({__proto__:null,atomicUpdater:Ar}),Nr=function(e,t){if(!e)throw new Error(t)};const{atomicUpdater:kr}=Er,{batchUpdates:Lr}=Bt,{DEFAULT_VALUE:Vr}=ce,{useStoreRef:Cr}=eo,{refreshRecoilValue:Mr,setRecoilValue:Ur}=yt,{cloneSnapshot:Ir}=mn,{gotoSnapshot:Dr}=ur,{useCallback:Br}=r();class Or{}const Pr=new Or;function xr(e,t,n,o){let r,a=Pr;var i;return Lr((()=>{const i="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 s(i);const u=De({...null!=o?o:{},set:(t,n)=>Ur(e,t,n),reset:t=>Ur(e,t,Vr),refresh:t=>Mr(e,t),gotoSnapshot:t=>Dr(e,t),transact_UNSTABLE:t=>kr(e)(t)},{snapshot:()=>{const t=Ir(e);return r=t.retain(),t}}),l=t(u);if("function"!=typeof l)throw s(i);a=l(...n)})),a instanceof Or&&Nr(!1),u(a)?a=a.finally((()=>{var e;null===(e=r)||void 0===e||e()})):null===(i=r)||void 0===i||i(),a}var zr={recoilCallback:xr,useRecoilCallback:function(e,t){const n=Cr();return Br(((...t)=>xr(n.current,e,t)),null!=t?[...t,n]:void 0)}};const{useStoreRef:Fr}=eo,{refreshRecoilValue:jr}=yt,{useCallback:Wr}=r();const{atomicUpdater:Gr}=Er,{useStoreRef:Kr}=eo,{useMemo:Zr}=r();var $r=Object.freeze({__proto__:null,WrappedValue:class{constructor(e){c(this,"value",void 0),this.value=e}}});const{isFastRefreshEnabled:Hr}=W;class qr extends Error{}var Yr=Object.freeze({__proto__:null,TreeCache:class{constructor(e){var t,n,o;c(this,"_name",void 0),c(this,"_numLeafs",void 0),c(this,"_root",void 0),c(this,"_onHit",void 0),c(this,"_onSet",void 0),c(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!==(o=null==e?void 0:e.mapNodeValue)&&void 0!==o?o: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;const o=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(o)}}set(e,t,n){const o=()=>{var o,r,a,i;let s,u;for(const[t,o]of e){var l,c,d;const e=this._root;if("leaf"===(null==e?void 0:e.type))throw this.invalidCacheError();const r=s;if(s=r?r.branches.get(u):e,s=null!==(l=s)&&void 0!==l?l:{type:"branch",nodeKey:t,parent:r,branches:new Map,branchKey:u},"branch"!==s.type||s.nodeKey!==t)throw this.invalidCacheError();null==r||r.branches.set(u,s),null==n||null===(c=n.onNodeVisit)||void 0===c||c.call(n,s),u=this._mapNodeValue(o),this._root=null!==(d=this._root)&&void 0!==d?d:s}const f=s?null===(o=s)||void 0===o?void 0:o.branches.get(u):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==u))throw this.invalidCacheError();const h={type:"leaf",value:t,parent:s,branchKey:u};null===(r=s)||void 0===r||r.branches.set(u,h),this._root=null!==(a=this._root)&&void 0!==a?a:h,this._numLeafs++,this._onSet(h),null==n||null===(i=n.onNodeVisit)||void 0===i||i.call(n,h)};try{o()}catch(e){if(!(e instanceof qr))throw e;this.clear(),o()}}delete(e){const t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,o=e.branchKey;for(;n;){var r;if(n.branches.delete(o),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;o=null===(r=n)||void 0===r?void 0:r.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(){Hr();throw null!=this._name&&this._name,new qr}}}),Jr=Object.freeze({__proto__:null,LRUCache:class{constructor(e){var t;c(this,"_maxSize",void 0),c(this,"_size",void 0),c(this,"_head",void 0),c(this,"_tail",void 0),c(this,"_map",void 0),c(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){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const o=this.head(),r={key:e,right:o,left:null,value:t};o?o.left=r:this._tail=r,this._map.set(n,r),this._head=r,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=l(this._map.get(t)),o=n.right,r=n.left;o&&(o.left=n.left),r&&(r.right=n.right),n===this.head()&&(this._head=o),n===this.tail()&&(this._tail=r),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}});const{LRUCache:Xr}=Jr,{TreeCache:Qr}=Yr;var ea=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const o=new Xr({maxSize:t}),r=new Qr({name:e,mapNodeValue:n,onHit:e=>{o.set(e,!0)},onSet:e=>{const n=o.tail();o.set(e,!0),n&&r.size()>t&&r.delete(n.key)}});return r};function ta(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(!0!==(null==t?void 0:t.allowFunctions))throw s("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";var o;if("object"!=typeof e)return null!==(o=JSON.stringify(e))&&void 0!==o?o:"";if(u(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map(((e,n)=>ta(e,t,n.toString())))}]`;if("function"==typeof e.toJSON)return ta(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[n,r]of e)o["string"==typeof n?n:ta(n,t)]=r;return ta(o,t,n)}return e instanceof Set?ta(Array.from(e).sort(((e,n)=>ta(e,t).localeCompare(ta(n,t)))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"==typeof e[Symbol.iterator]?ta(Array.from(e),t,n):`{${Object.keys(e).filter((t=>void 0!==e[t])).sort().map((n=>`${ta(n,t)}:${ta(e[n],t,n)}`)).join(",")}}`}var na=function(e,t={allowFunctions:!1}){return ta(e,t)};const{TreeCache:oa}=Yr,ra={equality:"reference",eviction:"keep-all",maxSize:1/0};const{isReactNative:aa,isWindow:ia}=zt;const{isLoadable:sa,loadableWithError:ua,loadableWithPromise:la,loadableWithValue:ca}=V,{WrappedValue:da}=$r,{getNodeLoadable:fa,peekNodeLoadable:ha,setNodeValue:pa}=Ze,{saveDepsToStore:va}=be,{DEFAULT_VALUE:ya,getConfigDeletionHandler:ma,getNode:_a,registerNode:Sa}=ce,{isRecoilValue:ga}=X,{markRecoilValueModified:ba}=yt,{retainedByOptionWithDefault:Ta}=kt,{recoilCallback:wa}=zr,{startPerfBlock:Ra}={startPerfBlock:function(e){return()=>null}};class Aa{}const Ea=new Aa,Na=[],ka=new Map,La=(()=>{let e=0;return()=>e++})();function Va(e){let t=null;const{key:n,get:o,cachePolicy_UNSTABLE:r}=e,a=null!=e.set?e.set:void 0,i=new Set,c=function({equality:e=ra.equality,eviction:t=ra.eviction,maxSize:n=ra.maxSize}=ra,o){const r=function(e){switch(e){case"reference":return e=>e;case"value":return e=>na(e)}throw s(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n,o){switch(e){case"keep-all":return new oa({name:o,mapNodeValue:n});case"lru":return ea({name:o,maxSize:l(t),mapNodeValue:n});case"most-recent":return ea({name:o,maxSize:1,mapNodeValue:n})}throw s(`Unrecognized eviction policy ${e}`)}(t,n,r,o)}(null!=r?r:{equality:"reference",eviction:"keep-all"},n),d=Ta(e.retainedBy_UNSTABLE),f=new Map;let h=0;function p(){return!P("recoil_memory_managament_2020")||h>0}function v(e){return e.getState().knownSelectors.add(n),h++,()=>{h--}}function y(){return void 0!==ma(n)&&!p()}function m(e,t,n,o,r){L(t,o,r),_(e,n)}function _(e,t){k(e,t)&&N(e),S(t,!0)}function S(e,n){const o=ka.get(e);if(null!=o){for(const e of o)ba(e,l(t));n&&ka.delete(e)}}function g(e,t){let n=ka.get(t);null==n&&ka.set(t,n=new Set),n.add(e)}function b(e,t,n,o,r,a){return t.then((o=>{if(!p())throw N(e),Ea;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,ca(o)):e.getState().knownSelectors.forEach((e=>{n.atomValues.delete(e)}));const i=R(e,n);if(i&&"loading"!==i.state){if((k(e,r)||null==E(e))&&_(e,r),"hasValue"===i.state)return i.contents;throw i.contents}if(!k(e,r)){const t=A(e,n);if(null!=t)return t.loadingLoadable.contents}const[s,u]=w(e,n,r);if("loading"!==s.state&&m(e,n,r,s,u),"hasError"===s.state)throw s.contents;return s.contents})).catch((t=>{if(t instanceof Aa)throw Ea;if(!p())throw N(e),Ea;const a=ua(t);throw m(e,n,r,a,o),t}))}function T(e,t,o,r){var a,s,u,l,c,d,f;(k(e,r)||t.version===(null===(a=e.getState())||void 0===a||null===(s=a.currentTree)||void 0===s?void 0:s.version)||t.version===(null===(u=e.getState())||void 0===u||null===(l=u.nextTree)||void 0===l?void 0:l.version))&&va(n,o,e,null!==(c=null===(d=e.getState())||void 0===d||null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==c?c:e.getState().currentTree.version);for(const e of o)i.add(e)}function w(e,r,a){const i=Ra(n);let c=!0,d=!0;const f=()=>{i(),d=!1};let h,v,y=!1;const _={loadingDepKey:null,loadingDepPromise:null},g=new Map;function w({key:t}){const n=fa(e,r,t);switch(g.set(t,n),c||(T(e,r,new Set(g.keys()),a),function(e,t){k(e,t)&&(l(E(e)).stateVersions.clear(),S(t,!1))}(e,a)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw _.loadingDepKey=t,_.loadingDepPromise=n.contents,n.contents}throw s("Invalid Loadable state")}const R=n=>(...o)=>{if(d)throw s("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&&Nr(!1),wa(e,n,o,{node:t})};try{h=o({get:w,getCallback:R}),h=ga(h)?w(h):h,sa(h)&&("hasError"===h.state&&(y=!0),h=h.contents),u(h)?h=function(e,t,n,o,r,a){return t.then((t=>{if(!p())throw N(e),Ea;const a=ca(t);return m(e,n,r,a,o),t})).catch((t=>{if(!p())throw N(e),Ea;if(u(t))return b(e,t,n,o,r,a);const i=ua(t);throw m(e,n,r,i,o),t}))}(e,h,r,g,a,_).finally(f):f(),h=h instanceof da?h.value:h}catch(t){h=t,u(h)?h=b(e,h,r,g,a,_).finally(f):(y=!0,f())}return v=y?ua(h):u(h)?la(h):ca(h),c=!1,function(e,t,n){if(k(e,t)){const t=E(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,a,g),T(e,r,new Set(g.keys()),a),[v,g]}function R(e,t){let o=t.atomValues.get(n);if(null!=o)return o;const r=new Set;try{o=c.get((n=>("string"!=typeof n&&Nr(!1),fa(e,t,n).contents)),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&r.add(e.nodeKey)}})}catch(e){throw s(`Problem with cache lookup for selector "${n}": ${e.message}`)}var a;return o&&(t.atomValues.set(n,o),T(e,t,r,null===(a=E(e))||void 0===a?void 0:a.executionID)),o}function A(e,t){const n=Ot([f.has(e)?[l(f.get(e))]:[],Q(Ie(f,(([t])=>t!==e)),(([,e])=>e))]);function o(n){for(const[o,r]of n)if(!fa(e,t,o).is(r))return!0;return!1}for(const e of n){if(e.stateVersions.get(t.version)||!o(e.depValuesDiscoveredSoFarDuringAsyncWork))return e.stateVersions.set(t.version,!0),e;e.stateVersions.set(t.version,!1)}}function E(e){return f.get(e)}function N(e){f.delete(e)}function k(e,t){var n;return t===(null===(n=E(e))||void 0===n?void 0:n.executionID)}function L(e,t,o){e.atomValues.set(n,t);try{c.set(function(e){return Array.from(e.entries()).map((([e,t])=>[e,t.contents]))}(o),t)}catch(e){throw s(`Problem with setting cache for selector "${n}": ${e.message}`)}}function V(e,t){const o=t.atomValues.get(n);return null!=o?o:c.get((n=>{var o;return"string"!=typeof n&&Nr(!1),null===(o=ha(e,t,n))||void 0===o?void 0:o.contents}))}function C(e,t){return function(o){if(Na.includes(n)){const e=`Recoil selector has circular dependencies: ${Na.slice(Na.indexOf(n)).join(" → ")}`;return ua(s(e))}Na.push(n);try{return function(e,t){const n=R(e,t);if(null!=n)return N(e),n;const o=A(e,t);var r;if(null!=o)return"loading"===(null===(r=o.loadingLoadable)||void 0===r?void 0:r.state)&&g(e,o.executionID),o.loadingLoadable;const a=La(),[i,s]=w(e,t,a);return"loading"===i.state?(function(e,t,n,o,r){f.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:o,executionID:t,loadingLoadable:n,stateVersions:new Map([[r.version,!0]])})}(e,a,i,s,t),g(e,a)):(N(e),L(t,i,s)),i}(e,t)}finally{Na.pop()}}()}function M(e){e.atomValues.delete(n)}function U(e,n){null==t&&Nr(!1);for(const t of i){var o;const r=_a(t);null===(o=r.clearCache)||void 0===o||o.call(r,e,n)}i.clear(),M(n),c.clear(),ba(e,t)}return t=Sa(null!=a?{key:n,nodeType:"selector",peek:V,get:C,set:(e,t,o)=>{let r=!1;const i=new Map;function l({key:o}){if(r)throw s("Recoil: Async selector sets are not currently supported.");const a=fa(e,t,o);if("hasValue"===a.state)return a.contents;if("loading"===a.state){const e=`Getting value of asynchronous atom or selector "${o}" in a pending state while setting selector "${n}" is not yet supported.`;throw s(e)}throw a.contents}function c(n,o){if(r){const e="Recoil: Async selector sets are not currently supported.";throw s(e)}const a="function"==typeof o?o(l(n)):o;pa(e,t,n.key,a).forEach(((e,t)=>i.set(t,e)))}const d=a({set:c,get:l,reset:function(e){c(e,ya)}},o);if(void 0!==d)throw u(d)?s("Recoil: Async selector sets are not currently supported."):s("Recoil: selector set should be a void function.");return r=!0,i},init:v,invalidate:M,clearCache:U,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d}:{key:n,nodeType:"selector",peek:V,get:C,init:v,invalidate:M,clearCache:U,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}Va.value=e=>new da(e);var Ca=Va;const{isLoadable:Ma,loadableWithError:Ua,loadableWithPromise:Ia,loadableWithValue:Da}=V,{WrappedValue:Ba}=$r,{peekNodeInfo:Oa}=Ze,{DEFAULT_VALUE:Pa,DefaultValue:xa,getConfigDeletionHandler:za,registerNode:Fa,setConfigDeletionHandler:ja}=ce,{isRecoilValue:Wa}=X,{getRecoilValueAsLoadable:Ga,markRecoilValueModified:Ka,setRecoilValue:Za,setRecoilValueLoadable:$a}=yt,{retainedByOptionWithDefault:Ha}=kt,qa=e=>e instanceof Ba?e.value:e;function Ya(e){const{...t}=e,n="default"in e?e.default:new Promise((()=>{}));return Wa(n)?function(e){const t=Ya({...e,default:Pa,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof xa?t:l(e.persistence_UNSTABLE).validator(t,Pa)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Ca({key:`${e.key}__withFallback`,get:({get:n})=>{const o=n(t);return o instanceof xa?e.default:o},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return ja(n.key,za(e.key)),n}({...t,default:n}):function(e){const{key:t,persistence_UNSTABLE:n}=e,o=Ha(e.retainedBy_UNSTABLE);let r=0;function a(e){return Ia(e.then((e=>(c=Da(e),e))).catch((e=>{throw c=Ua(e),e})))}let i,c=u(e.default)?a(e.default):Ma(e.default)?"loading"===e.default.state?a(e.default.contents):e.default:Da(qa(e.default));c.contents;const d=new Map;function f(e,n){var o,r;return null!==(o=null!==(r=n.atomValues.get(t))&&void 0!==r?r:i)&&void 0!==o?o:c}const h=Fa({key:t,nodeType:"atom",peek:f,get:function(e,o){if(o.atomValues.has(t))return l(o.atomValues.get(t));if(o.nonvalidatedAtoms.has(t)){if(null!=i)return i;if(null==n)return c;const e=o.nonvalidatedAtoms.get(t),r=n.validator(e,Pa),a=r instanceof xa?c:Da(r);return i=a,i}return c},set:function(e,n,o){if(n.atomValues.has(t)){const e=l(n.atomValues.get(t));if("hasValue"===e.state&&o===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&o instanceof xa)return new Map;return i=void 0,(new Map).set(t,Da(o))},init:function(n,o,a){var i;if(r++,n.getState().knownAtoms.add(t),"loading"===c.state){const y=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||Ka(n,h)};c.contents.finally(y)}const l=null!==(i=e.effects)&&void 0!==i?i:e.effects_UNSTABLE;if(null!=l){let m=Pa,_=!0,S=!1,g=null;function b(e){if(_&&e.key===t){const e=m;return e instanceof xa?f(0,o):u(e)?Ia(e.then((e=>e instanceof xa?c.toPromise():e))):Da(e)}return Ga(n,e)}function T(e){return b(e).toPromise()}function w(e){var o;const r=Oa(n,null!==(o=n.getState().nextTree)&&void 0!==o?o:n.getState().currentTree,e.key);return!_||e.key!==t||m instanceof xa?r:{...r,isSet:!0,loadable:b(e)}}const R=e=>t=>{if(_){const n=b(h),o="hasValue"===n.state?n.contents:Pa;m="function"==typeof t?t(o):t,u(m)&&(m=m.then((t=>(g={effect:e,value:t},t))))}else{if(u(t))throw s("Setting atoms to async values is not implemented.");"function"!=typeof t&&(g={effect:e,value:qa(t)}),Za(n,h,"function"==typeof t?n=>{const o=qa(t(n));return g={effect:e,value:o},o}:qa(t))}},A=e=>()=>R(e)(Pa),E=e=>o=>{var r;const{release:a}=n.subscribeToTransactions((n=>{var r;let{currentTree:a,previousTree:i}=n.getState();i||(i=a);const s=null!==(r=a.atomValues.get(t))&&void 0!==r?r:c;if("hasValue"===s.state){var u,l,d,f;const n=s.contents,r=null!==(u=i.atomValues.get(t))&&void 0!==u?u:c,h="hasValue"===r.state?r.contents:Pa;(null===(l=g)||void 0===l?void 0:l.effect)!==e||(null===(d=g)||void 0===d?void 0:d.value)!==n?o(n,h,!a.atomValues.has(t)):(null===(f=g)||void 0===f?void 0:f.effect)===e&&(g=null)}}),t);d.set(n,[...null!==(r=d.get(n))&&void 0!==r?r:[],a])};for(const N of l)try{const k=N({node:h,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:a,setSelf:R(N),resetSelf:A(N),onSet:E(N),getPromise:T,getLoadable:b,getInfo_UNSTABLE:w});var p;null!=k&&d.set(n,[...null!==(p=d.get(n))&&void 0!==p?p:[],k])}catch(L){m=L,S=!0}if(_=!1,!(m instanceof xa)){var v;const V=S?Ua(m):u(m)?Ia(function(e,n){const o=n.then((n=>{var r,a;return(null===(a=(null!==(r=e.getState().nextTree)&&void 0!==r?r:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===o&&Za(e,h,n),n})).catch((n=>{var r,a;throw(null===(a=(null!==(r=e.getState().nextTree)&&void 0!==r?r:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===o&&$a(e,h,Ua(n)),n}));return o}(n,m)):Da(qa(m));V.contents,o.atomValues.set(t,V),null===(v=n.getState().nextTree)||void 0===v||v.atomValues.set(t,V)}}return()=>{var e;r--,null===(e=d.get(n))||void 0===e||e.forEach((e=>e())),d.delete(n)}},invalidate:function(){i=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==za(t)&&r<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:o});return h}({...t,default:n})}Ya.value=e=>new Ba(e);var Ja=Ya,Xa=Object.freeze({__proto__:null,MapCache:class{constructor(e){var t;c(this,"_map",void 0),c(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()}}});const{LRUCache:Qa}=Jr,{MapCache:ei}=Xa,ti={equality:"reference",eviction:"none",maxSize:1/0};var ni=function({equality:e=ti.equality,eviction:t=ti.eviction,maxSize:n=ti.maxSize}=ti){const o=function(e){switch(e){case"reference":return e=>e;case"value":return e=>na(e)}throw s(`Unrecognized equality policy ${e}`)}(e),r=function(e,t,n){switch(e){case"keep-all":return new ei({mapKey:n});case"lru":return new Qa({mapKey:n,maxSize:l(t)});case"most-recent":return new Qa({mapKey:n,maxSize:1})}throw s(`Unrecognized eviction policy ${e}`)}(t,n,o);return r};const{setConfigDeletionHandler:oi}=ce;const{setConfigDeletionHandler:ri}=ce;let ai=0;var ii=function(e){var t,n;const o=ni({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 r;try{r=o.get(t)}catch(t){throw s(`Problem with cache lookup for selector ${e.key}: ${t.message}`)}if(null!=r)return r;const a=`${e.key}__selectorFamily/${null!==(n=na(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${ai++}`,i=n=>e.get(t)(n),u=e.cachePolicy_UNSTABLE,l="function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let c;if(null!=e.set){const n=e.set;c=Ca({key:a,get:i,set:(e,o)=>n(t)(e,o),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else c=Ca({key:a,get:i,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return o.set(t,c),ri(c.key,(()=>{o.delete(t)})),c}};const si=ii({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});const ui=ii({key:"__error",get:e=>()=>{throw s(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});const{loadableWithError:li,loadableWithPromise:ci,loadableWithValue:di}=V;function fi(e,t){const n=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0);for(const[r,a]of t.entries())try{n[r]=e(a)}catch(e){o[r]=e}return[n,o]}function hi(e){return null!=e&&!u(e)}function pi(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))}function vi(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce(((e,n,o)=>({...e,[n]:t[o]})),{})}function yi(e,t,n){return vi(e,n.map(((e,n)=>null==e?di(t[n]):u(e)?ci(e):li(e))))}var mi={waitForNone:ii({key:"__waitForNone",get:e=>({get:t})=>{const n=pi(e),[o,r]=fi(t,n);return yi(e,o,r)},dangerouslyAllowMutability:!0}),waitForAny:ii({key:"__waitForAny",get:e=>({get:t})=>{const n=pi(e),[o,r]=fi(t,n);return r.some((e=>!u(e)))?yi(e,o,r):new Promise((t=>{for(const[n,a]of r.entries())u(a)&&a.then((a=>{o[n]=a,r[n]=void 0,t(yi(e,o,r))})).catch((a=>{r[n]=a,t(yi(e,o,r))}))}))},dangerouslyAllowMutability:!0}),waitForAll:ii({key:"__waitForAll",get:e=>({get:t})=>{const n=pi(e),[o,r]=fi(t,n);if(r.every((e=>null==e)))return vi(e,o);const a=r.find(hi);if(null!=a)throw a;return Promise.all(r).then((t=>{return vi(e,(n=o,t.map(((e,t)=>void 0===e?n[t]:e))));var n}))},dangerouslyAllowMutability:!0}),waitForAllSettled:ii({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=pi(e),[o,r]=fi(t,n);return r.every((e=>!u(e)))?yi(e,o,r):Promise.all(r.map(((e,t)=>u(e)?e.then((e=>{o[t]=e,r[t]=void 0})).catch((e=>{o[t]=void 0,r[t]=e})):null))).then((()=>yi(e,o,r)))},dangerouslyAllowMutability:!0}),noWait:ii({key:"__noWait",get:e=>({get:t})=>{try{return Ca.value(di(t(e)))}catch(e){return Ca.value(u(e)?ci(e):li(e))}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:_i}=V,{DefaultValue:Si}=ce,{RecoilRoot:gi,useRecoilStoreID:bi}=eo,{isRecoilValue:Ti}=X,{retentionZone:wi}=Me,{freshSnapshot:Ri}=mn,{useRecoilState:Ai,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Ei,useRecoilStateLoadable:Ni,useRecoilValue:ki,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Li,useRecoilValueLoadable:Vi,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ci,useResetRecoilState:Mi,useSetRecoilState:Ui}=Go,{useGotoRecoilSnapshot:Ii,useRecoilSnapshot:Di,useRecoilTransactionObserver:Bi}=ur,{useRecoilCallback:Oi}=zr,{noWait:Pi,waitForAll:xi,waitForAllSettled:zi,waitForAny:Fi,waitForNone:ji}=mi;var Wi={DefaultValue:Si,isRecoilValue:Ti,RecoilLoadable:_i,RecoilEnv:U,RecoilRoot:gi,useRecoilStoreID:bi,useRecoilBridgeAcrossReactRoots_UNSTABLE:function(){"MUTABLE_SOURCE"===dr().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.");const e=hr().current;return pr((()=>function({children:t}){return r().createElement(fr,{store_INTERNAL:e},t)}),[e])},atom:Ja,selector:Ca,atomFamily:function(e){var t,n;const o=ni({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,r;const a=o.get(t);if(null!=a)return a;const{cachePolicyForParams_UNSTABLE:i,...s}=e,u="default"in e?e.default:new Promise((()=>{})),l=Ja({...s,key:`${e.key}__${null!==(n=na(t))&&void 0!==n?n:"void"}`,default:"function"==typeof u?u(t):u,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!==(r=e.effects)&&void 0!==r?r:e.effects_UNSTABLE});return o.set(t,l),oi(l.key,(()=>{o.delete(t)})),l}},selectorFamily:ii,constSelector:function(e){return si(e)},errorSelector:function(e){return ui(e)},readOnlySelector:function(e){return e},noWait:Pi,waitForNone:ji,waitForAny:Fi,waitForAll:xi,waitForAllSettled:zi,useRecoilValue:ki,useRecoilValueLoadable:Vi,useRecoilState:Ai,useRecoilStateLoadable:Ni,useSetRecoilState:Ui,useResetRecoilState:Mi,useGetRecoilValueInfo_UNSTABLE:function(){const e=cr();return({key:t})=>lr(e.current,e.current.getState().currentTree,t)},useRecoilRefresher_UNSTABLE:function(e){const t=Fr();return Wr((()=>{const n=t.current;jr(n,e)}),[e,t])},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ci,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Li,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Ei,useRecoilCallback:Oi,useRecoilTransaction_UNSTABLE:function(e,t){const n=Kr();return Zr((()=>(...t)=>{Gr(n.current)((n=>{e(n)(...t)}))}),null!=t?[...t,n]:void 0)},useGotoRecoilSnapshot:Ii,useRecoilSnapshot:Di,useRecoilTransactionObserver_UNSTABLE:Bi,snapshot_UNSTABLE:Ri,useRetain:fo,retentionZone:wi},Gi=Wi.atom,Ki=Wi.selector,Zi=Wi.selectorFamily,$i=Wi.noWait},1793:function(e,t,n){function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Z:function(){return o}})},6470:function(e,t,n){function o(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return o}})},4649:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(5217);function r(e,t,n){return(t=(0,o.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},5181:function(e,t,n){function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return o}})},3764:function(e,t,n){function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return o}})},8808:function(e,t,n){function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{Z:function(){return o}})},1026:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(6470),r=n(4013),a=n(3764);function i(e,t){return(0,o.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,s=[],u=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=a.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw r}}return s}}(e,t)||(0,r.Z)(e,t)||(0,a.Z)()}},649:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(1793),r=n(5181),a=n(4013);function i(e){return function(e){if(Array.isArray(e))return(0,o.Z)(e)}(e)||(0,r.Z)(e)||(0,a.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5217:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(3940);function r(e){var t=function(e,t){if("object"!==(0,o.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==(0,o.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===(0,o.Z)(t)?t:String(t)}},3940:function(e,t,n){function o(e){return o="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},o(e)}n.d(t,{Z:function(){return o}})},4013:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(1793);function r(e,t){if(e){if("string"==typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.Z)(e,t):void 0}}}}]);
2
+ //# sourceMappingURL=354.js.map