2 lines
370 KiB
JavaScript
2 lines
370 KiB
JavaScript
/*! For license information please see 2.918f0adb.chunk.js.LICENSE.txt */
|
|
(this["webpackJsonplama-cleaner"]=this["webpackJsonplama-cleaner"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(50)},function(e,t,n){"use strict";e.exports=n(56)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(8);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(33);var o=n(23),a=n(35);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}}(e,t)||Object(o.a)(e,t)||Object(a.a)()}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(29);var o=n(34),a=n(23);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(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.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23);function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw i}}}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.checkForDefaultPrevented,o=void 0===r||r;return function(n){if(null==e||e(n),!1===o||!n.defaultPrevented)return null==t?void 0:t(n)}}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(55)},function(e,t,n){"use strict";n.d(t,"a",(function(){return Pu})),n.d(t,"b",(function(){return Nu})),n.d(t,"c",(function(){return Au})),n.d(t,"d",(function(){return Lu})),n.d(t,"e",(function(){return Mu}));var r=n(28),o=n(6),a=n(4),i=n(13),u=n(3);function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function s(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,n){return f=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o},f.apply(null,arguments)}function d(e){var t="function"===typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},d(e)}var p=n(10),v=n.n(p),h=n(7),m=n(8),b=n(2);function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function w(e){return w="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},w(e)}function O(e,t){return!t||"object"!==w(t)&&"function"!==typeof t?y(e):t}function E(e){var t=s();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),e}var _=n(0),C=n.n(_),T=n(12),x=n.n(T),R=["override"],P=["default"],N=["cachePolicyForParams_UNSTABLE"],L=v.a.mark(nt),A=v.a.mark(yn);var M=function(e){var t=new Error(e);if(void 0===t.stack)try{throw t}catch(n){}return t};var D=function(e){return!!e&&"function"===typeof e.then};var I=function(e,t){if(null!=e)return e;throw M(null!==t&&void 0!==t?t:"Got unexpected null or undefined")};function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=function(){function e(){S(this,e)}return k(e,[{key:"getValue",value:function(){throw M("BaseLoadable")}},{key:"toPromise",value:function(){throw M("BaseLoadable")}},{key:"valueMaybe",value:function(){throw M("BaseLoadable")}},{key:"valueOrThrow",value:function(){throw M('Loadable expected value, but in "'.concat(this.state,'" state'))}},{key:"promiseMaybe",value:function(){throw M("BaseLoadable")}},{key:"promiseOrThrow",value:function(){throw M('Loadable expected promise, but in "'.concat(this.state,'" state'))}},{key:"errorMaybe",value:function(){throw M("BaseLoadable")}},{key:"errorOrThrow",value:function(){throw M('Loadable expected error, but in "'.concat(this.state,'" state'))}},{key:"is",value:function(e){return e.state===this.state&&e.contents===this.contents}},{key:"map",value:function(e){throw M("BaseLoadable")}}]),e}(),V=function(e){g(n,e);var t=E(n);function n(e){var r;return S(this,n),z(y(r=t.call(this)),"state","hasValue"),z(y(r),"contents",void 0),r.contents=e,r}return k(n,[{key:"getValue",value:function(){return this.contents}},{key:"toPromise",value:function(){return Promise.resolve(this.contents)}},{key:"valueMaybe",value:function(){return this.contents}},{key:"valueOrThrow",value:function(){return this.contents}},{key:"promiseMaybe",value:function(){}},{key:"errorMaybe",value:function(){}},{key:"map",value:function(e){var t=this;try{var n=e(this.contents);return D(n)?Y(n):X(n)?n:W(n)}catch(r){return D(r)?Y(r.next((function(){return t.map(e)}))):H(r)}}}]),n}(F),U=function(e){g(n,e);var t=E(n);function n(e){var r;return S(this,n),z(y(r=t.call(this)),"state","hasError"),z(y(r),"contents",void 0),r.contents=e,r}return k(n,[{key:"getValue",value:function(){throw this.contents}},{key:"toPromise",value:function(){return Promise.reject(this.contents)}},{key:"valueMaybe",value:function(){}},{key:"promiseMaybe",value:function(){}},{key:"errorMaybe",value:function(){return this.contents}},{key:"errorOrThrow",value:function(){return this.contents}},{key:"map",value:function(e){return this}}]),n}(F),B=function(e){g(n,e);var t=E(n);function n(e){var r;return S(this,n),z(y(r=t.call(this)),"state","loading"),z(y(r),"contents",void 0),r.contents=e,r}return k(n,[{key:"getValue",value:function(){throw this.contents}},{key:"toPromise",value:function(){return this.contents}},{key:"valueMaybe",value:function(){}},{key:"promiseMaybe",value:function(){return this.contents}},{key:"promiseOrThrow",value:function(){return this.contents}},{key:"errorMaybe",value:function(){}},{key:"map",value:function(e){var t=this;return Y(this.contents.then((function(t){var n=e(t);if(X(n)){var r=n;switch(r.state){case"hasValue":case"loading":return r.contents;case"hasError":throw r.contents}}return n})).catch((function(n){if(D(n))return n.then((function(){return t.map(e).contents}));throw n})))}}]),n}(F);function W(e){return Object.freeze(new V(e))}function H(e){return Object.freeze(new U(e))}function Y(e){return Object.freeze(new B(e))}function K(e){var t=function(e){return e.every((function(e){return"hasValue"===e.state}))?W(e.map((function(e){return e.contents}))):e.some((function(e){return"hasError"===e.state}))?H(I(e.find((function(e){return"hasError"===e.state})),"Invalid loadable passed to loadableAll").contents):Y(Promise.all(e.map((function(e){return e.contents}))))}((Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((function(t){return e[t]}))).map((function(e){return X(e)?e:D(e)?Y(e):W(e)})));return Array.isArray(e)?t:t.map((function(t){return Object.getOwnPropertyNames(e).reduce((function(e,n,r){return Object(b.a)(Object(b.a)({},e),{},Object(m.a)({},n,t[r]))}),{})}))}function X(e){return e instanceof F}var q={of:function(e){return D(e)?Y(e):X(e)?e:W(e)},error:function(e){return H(e)},all:K,isLoadable:X},Q={loadableWithValue:W,loadableWithError:H,loadableWithPromise:Y,loadableLoading:function(){return Object.freeze(new B(new Promise((function(){}))))},loadableAll:K,isLoadable:X,RecoilLoadable:q},$=Q.loadableWithValue,G=Q.loadableWithError,Z=Q.loadableWithPromise,J=Q.loadableLoading,ee=Q.loadableAll,te=Q.isLoadable,ne=Q.RecoilLoadable,re=Object.freeze({__proto__:null,loadableWithValue:$,loadableWithError:G,loadableWithPromise:Z,loadableLoading:J,loadableAll:ee,isLoadable:te,RecoilLoadable:ne}),oe=function e(t){S(this,e),z(this,"key",void 0),this.key=t},ae=function(e){g(n,e);var t=E(n);function n(){return S(this,n),t.apply(this,arguments)}return n}(oe),ie=function(e){g(n,e);var t=E(n);function n(){return S(this,n),t.apply(this,arguments)}return n}(oe);var ue={AbstractRecoilValue:oe,RecoilState:ae,RecoilValueReadOnly:ie,isRecoilValue:function(e){return e instanceof ae||e instanceof ie}},le=ue.AbstractRecoilValue,ce=ue.RecoilState,se=ue.RecoilValueReadOnly,fe=ue.isRecoilValue,de=Object.freeze({__proto__:null,AbstractRecoilValue:le,RecoilState:ce,RecoilValueReadOnly:se,isRecoilValue:fe});var pe=function(e){},ve=(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 he(e){var t;return null!==(t=ve.get(e))&&void 0!==t&&t}he.setPass=function(e){ve.set(e,!0)},he.setFail=function(e){ve.set(e,!1)},he.clear=function(){ve.clear()};var me=he;var be=function(e,t){return v.a.mark((function n(){var r,o,a,i;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=0,o=Object(h.a)(e),n.prev=2,o.s();case 4:if((a=o.n()).done){n.next=10;break}return i=a.value,n.next=8,t(i,r++);case 8:n.next=4;break;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(2),o.e(n.t0);case 15:return n.prev=15,o.f(),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,12,15,18]])}))()};var ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.error,null},ge=ye,we=function e(){S(this,e)},Oe=new we,Ee=function(e){g(n,e);var t=E(n);function n(e){return S(this,n),t.call(this,"Tried to set the value of Recoil selector ".concat(e," using an updater function, but it is an async selector in a pending or error state; this is not supported."))}return n}(d(Error)),Se=new Map,je=new Map;var ke=function(e){g(n,e);var t=E(n);function n(){return S(this,n),t.apply(this,arguments)}return n}(d(Error));var _e=new Map;function Ce(e){return _e.get(e)}var Te={nodes:Se,recoilValues:je,registerNode:function(e){if(Se.has(e.key)){var t='Duplicate atom key "'.concat(e.key,'". 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)}Se.set(e.key,e);var n=null==e.set?new de.RecoilValueReadOnly(e.key):new de.RecoilState(e.key);return je.set(e.key,n),n},getNode:function(e){var t=Se.get(e);if(null==t)throw new ke('Missing definition for RecoilValue: "'.concat(e,'""'));return t},getNodeMaybe:function(e){return Se.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(me("recoil_memory_managament_2020")){var n,r=Se.get(e);if(null!==r&&void 0!==r&&null!==(t=r.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(r))Se.delete(e),null===(n=Ce(e))||void 0===n||n(),_e.delete(e)}},setConfigDeletionHandler:function(e,t){me("recoil_memory_managament_2020")&&(void 0===t?_e.delete(e):_e.set(e,t))},getConfigDeletionHandler:Ce,recoilValuesForKeys:function(e){return be(e,(function(e){return I(je.get(e))}))},NodeMissingError:ke,DefaultValue:we,DEFAULT_VALUE:Oe,RecoilValueNotReady:Ee};var xe={enqueueExecution:function(e,t){t()}};var Re=function(e,t){return e(t={exports:{}},t.exports),t.exports}((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=Math.pow(2,5),o=r-1,a=r/2,i=r/4,u={},l=function(e){return function(){return e}},c=n.hash=function(e){var n="undefined"===typeof e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,a=e.length;o<a;++o){r=(r<<5)-r+e.charCodeAt(o)|0}return r},s=function(e,t){return t>>>e&o},f=function(e){return 1<<e},d=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},p=function(e,t,n,r){var o=r;if(!e){var a=r.length;o=new Array(a);for(var i=0;i<a;++i)o[i]=r[i]}return o[t]=n,o},v=function(e,t,n){var r=n.length-1,o=0,a=0,i=n;if(e)o=a=t;else for(i=new Array(r);o<t;)i[a++]=n[o++];for(++o;o<=r;)i[a++]=n[o++];return e&&(i.length=r),i},h={__hamt_isEmpty:!0},m=function(e){return e===h||e&&e.__hamt_isEmpty},b=function(e,t,n,r){return{type:1,edit:e,hash:t,key:n,value:r,_modify:S}},y=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:j}},g=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:k}},w=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:_}},O=function e(t,n,r,o,a,i){if(r===a)return y(t,r,[i,o]);var u=s(n,r),l=s(n,a);return g(t,f(u)|f(l),u===l?[e(t,n+5,r,o,a,i)]:u<l?[o,i]:[i,o])},E=function(e,t){return e===t.edit},S=function(e,t,n,r,o,a,i){if(t(a,this.key)){var l=r(this.value);return l===this.value?this:l===u?(--i.value,h):E(e,this)?(this.value=l,this):b(e,o,a,l)}var c=r();return c===u?this:(++i.value,O(e,n,this.hash,this,o,b(e,o,a,c)))},j=function(e,t,n,r,o,a,i){if(o===this.hash){var l=function(e,t,n,r,o,a,i,l){for(var c=o.length,s=0;s<c;++s){var f=o[s];if(n(i,f.key)){var d=f.value,h=a(d);return h===d?o:h===u?(--l.value,v(e,s,o)):p(e,s,b(t,r,i,h),o)}}var m=a();return m===u?o:(++l.value,p(e,c,b(t,r,i,m),o))}(E(e,this),e,t,this.hash,this.children,r,a,i);return l===this.children?this:l.length>1?y(e,this.hash,l):l[0]}var c=r();return c===u?this:(++i.value,O(e,n,this.hash,this,o,b(e,o,a,c)))},k=function(e,t,n,r,o,i,u){var l=this.mask,c=this.children,b=s(n,o),y=f(b),O=d(l,y),S=l&y,j=S?c[O]:h,k=j._modify(e,t,n+5,r,o,i,u);if(j===k)return this;var _,C=E(e,this),T=l,x=void 0;if(S&&m(k)){if(!(T&=~y))return h;if(c.length<=2&&((_=c[1^O])===h||1===_.type||2===_.type))return c[1^O];x=v(C,O,c)}else if(S||m(k))x=p(C,O,k,c);else{if(c.length>=a)return function(e,t,n,r,o){for(var a=[],i=r,u=0,l=0;i;++l)1&i&&(a[l]=o[u++]),i>>>=1;return a[t]=n,w(e,u+1,a)}(e,b,k,l,c);T|=y,x=function(e,t,n,r){var o=r.length;if(e){for(var a=o;a>=t;)r[a--]=r[a];return r[t]=n,r}for(var i=0,u=0,l=new Array(o+1);i<t;)l[u++]=r[i++];for(l[t]=n;i<o;)l[++u]=r[i++];return l}(C,O,k,c)}return C?(this.mask=T,this.children=x,this):g(e,T,x)},_=function(e,t,n,r,o,a,u){var l=this.size,c=this.children,f=s(n,o),d=c[f],v=(d||h)._modify(e,t,n+5,r,o,a,u);if(d===v)return this;var b=E(e,this),y=void 0;if(m(d)&&!m(v))++l,y=p(b,f,v,c);else if(!m(d)&&m(v)){if(--l<=i)return function(e,t,n,r){for(var o=new Array(t-1),a=0,i=0,u=0,l=r.length;u<l;++u)if(u!==n){var c=r[u];c&&!m(c)&&(o[a++]=c,i|=1<<u)}return g(e,i,o)}(e,l,f,c);y=p(b,f,h,c)}else y=p(b,f,v,c);return b?(this.size=l,this.children=y,this):w(e,l,y)};function C(e,t,n,r,o){this._editable=e,this._edit=t,this._config=n,this._root=r,this._size=o}h._modify=function(e,t,n,r,o,a,i){var l=r();return l===u?h:(++i.value,b(e,o,a,l))},C.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new C(this._editable,this._edit,this._config,e,t)};var T=n.tryGetHash=function(e,t,n,r){for(var o=r._root,a=0,i=r._config.keyEq;;)switch(o.type){case 1:return i(n,o.key)?o.value:e;case 2:if(t===o.hash)for(var u=o.children,l=0,c=u.length;l<c;++l){var p=u[l];if(i(n,p.key))return p.value}return e;case 3:var v=s(a,t),h=f(v);if(o.mask&h){o=o.children[d(o.mask,h)],a+=5;break}return e;case 4:if(o=o.children[s(a,t)]){a+=5;break}return e;default:return e}};C.prototype.tryGetHash=function(e,t,n){return T(e,t,n,this)};var x=n.tryGet=function(e,t,n){return T(e,n._config.hash(t),t,n)};C.prototype.tryGet=function(e,t){return x(e,t,this)};var R=n.getHash=function(e,t,n){return T(void 0,e,t,n)};C.prototype.getHash=function(e,t){return R(e,t,this)};n.get=function(e,t){return T(void 0,t._config.hash(e),e,t)};C.prototype.get=function(e,t){return x(t,e,this)};var P=n.has=function(e,t,n){return T(u,e,t,n)!==u};C.prototype.hasHash=function(e,t){return P(e,t,this)};var N=n.has=function(e,t){return P(t._config.hash(e),e,t)};C.prototype.has=function(e){return N(e,this)};var L=function(e,t){return e===t};n.make=function(e){return new C(0,0,{keyEq:e&&e.keyEq||L,hash:e&&e.hash||c},h,0)},n.empty=n.make();var A=n.isEmpty=function(e){return e&&!!m(e._root)};C.prototype.isEmpty=function(){return A(this)};var M=n.modifyHash=function(e,t,n,r){var o={value:r._size},a=r._root._modify(r._editable?r._edit:NaN,r._config.keyEq,0,e,t,n,o);return r.setTree(a,o.value)};C.prototype.modifyHash=function(e,t,n){return M(n,e,t,this)};var D=n.modify=function(e,t,n){return M(e,n._config.hash(t),t,n)};C.prototype.modify=function(e,t){return D(t,e,this)};var I=n.setHash=function(e,t,n,r){return M(l(n),e,t,r)};C.prototype.setHash=function(e,t,n){return I(e,t,n,this)};var z=n.set=function(e,t,n){return I(n._config.hash(e),e,t,n)};C.prototype.set=function(e,t){return z(e,t,this)};var F=l(u),V=n.removeHash=function(e,t,n){return M(F,e,t,n)};C.prototype.removeHash=C.prototype.deleteHash=function(e,t){return V(e,t,this)};var U=n.remove=function(e,t){return V(t._config.hash(e),e,t)};C.prototype.remove=C.prototype.delete=function(e){return U(e,this)};var B=n.beginMutation=function(e){return new C(e._editable+1,e._edit+1,e._config,e._root,e._size)};C.prototype.beginMutation=function(){return B(this)};var W=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};C.prototype.endMutation=function(){return W(this)};var H=n.mutate=function(e,t){var n=B(t);return e(n),W(n)};C.prototype.mutate=function(e){return H(e,this)};var Y=function(e){return e&&K(e[0],e[1],e[2],e[3],e[4])},K=function(e,t,n,r,o){for(;n<e;){var a=t[n++];if(a&&!m(a))return X(a,r,[e,t,n,r,o])}return Y(o)},X=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 K(r.length,r,0,t,n);default:return Y(n)}},q={done:!0};function Q(e){this.v=e}Q.prototype.next=function(){if(!this.v)return q;var e=this.v;return this.v=Y(e.rest),e},Q.prototype[Symbol.iterator]=function(){return this};var $=function(e,t){return new Q(X(e._root,t))},G=function(e){return[e.key,e.value]},Z=n.entries=function(e){return $(e,G)};C.prototype.entries=C.prototype[Symbol.iterator]=function(){return Z(this)};var J=function(e){return e.key},ee=n.keys=function(e){return $(e,J)};C.prototype.keys=function(){return ee(this)};var te=function(e){return e.value},ne=n.values=C.prototype.values=function(e){return $(e,te)};C.prototype.values=function(){return ne(this)};var re=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],a=void 0;a=o.pop();)for(var i=0,u=a.length;i<u;){var l=a[i++];l&&l.type&&(1===l.type?t=e(t,l.value,l.key):o.push(l.children))}return t};C.prototype.fold=function(e,t){return re(e,t,this)};var oe=n.forEach=function(e,t){return re((function(n,r,o){return e(r,o,t)}),null,t)};C.prototype.forEach=function(e){return oe(e,this)};var ae=n.count=function(e){return e._size};C.prototype.count=function(){return ae(this)},Object.defineProperty(C.prototype,"size",{get:C.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n})),Pe=function(){function e(t){S(this,e),z(this,"_map",void 0),this._map=new Map(null===t||void 0===t?void 0:t.entries())}return k(e,[{key:"keys",value:function(){return this._map.keys()}},{key:"entries",value:function(){return this._map.entries()}},{key:"get",value:function(e){return this._map.get(e)}},{key:"has",value:function(e){return this._map.has(e)}},{key:"set",value:function(e,t){return this._map.set(e,t),this}},{key:"delete",value:function(e){return this._map.delete(e),this}},{key:"clone",value:function(){return Le(this)}},{key:"toMap",value:function(){return new Map(this._map)}}]),e}(),Ne=function(){function e(t){if(S(this,e),z(this,"_hamt",Re.empty.beginMutation()),t instanceof e){var n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t){var r,o=Object(h.a)(t.entries());try{for(o.s();!(r=o.n()).done;){var a=Object(u.a)(r.value,2),i=a[0],l=a[1];this._hamt.set(i,l)}}catch(c){o.e(c)}finally{o.f()}}}return k(e,[{key:"keys",value:function(){return this._hamt.keys()}},{key:"entries",value:function(){return this._hamt.entries()}},{key:"get",value:function(e){return this._hamt.get(e)}},{key:"has",value:function(e){return this._hamt.has(e)}},{key:"set",value:function(e,t){return this._hamt.set(e,t),this}},{key:"delete",value:function(e){return this._hamt.delete(e),this}},{key:"clone",value:function(){return Le(this)}},{key:"toMap",value:function(){return new Map(this._hamt)}}]),e}();function Le(e){return me("recoil_hamt_2020")?new Ne(e):new Pe(e)}var Ae=Le;var Me=function(e){for(var t=new Set,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a,i=Object(h.a)(e);try{e:for(i.s();!(a=i.n()).done;){var u,l=a.value,c=Object(h.a)(r);try{for(c.s();!(u=c.n()).done;){var s=u.value;if(s.has(l))continue e}}catch(f){c.e(f)}finally{c.f()}t.add(l)}}catch(f){i.e(f)}finally{i.f()}return t};var De=function(e,t){var n=new Map;return e.forEach((function(e,r){n.set(r,t(e,r))})),n};function Ie(e,t,n){var r=t.nodeDeps,o=t.nodeToNodeSubscriptions;e.forEach((function(e,t){var a=r.get(t);a&&n&&a!==n.nodeDeps.get(t)||(r.set(t,new Set(e)),(null==a?e:Me(e,a)).forEach((function(e){o.has(e)||o.set(e,new Set),I(o.get(e)).add(t)})),a&&Me(a,e).forEach((function(e){if(o.has(e)){var n=I(o.get(e));n.delete(t),0===n.size&&o.delete(e)}})))}))}var ze=function(e){return{nodeDeps:De(e.nodeDeps,(function(e){return new Set(e)})),nodeToNodeSubscriptions:De(e.nodeToNodeSubscriptions,(function(e){return new Set(e)}))}},Fe=function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},Ve=function(e,t,n){var r,o,a,i,u=t.getState();n!==u.currentTree.version&&n!==(null===(r=u.nextTree)||void 0===r?void 0:r.version)&&n!==(null===(o=u.previousTree)||void 0===o?void 0:o.version)&&ge("Tried to save dependencies to a discarded tree");var l=t.getGraph(n);if(Ie(e,l),n===(null===(a=u.previousTree)||void 0===a?void 0:a.version)&&Ie(e,t.getGraph(u.currentTree.version),l),n===(null===(i=u.previousTree)||void 0===i?void 0:i.version)||n===u.currentTree.version){var c,s=null===(c=u.nextTree)||void 0===c?void 0:c.version;if(void 0!==s)Ie(e,t.getGraph(s),l)}},Ue=0,Be=0,We=0,He=function(){return Ue++},Ye=function(){return Be++},Ke=function(){return We++},Xe=Object.freeze({__proto__:null,persistentMap:Ae}).persistentMap,qe=Fe,Qe=He;function $e(){var e=Qe();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Xe(),nonvalidatedAtoms:Xe()}}var Ge={makeEmptyTreeState:$e,makeEmptyStoreState:function(){var e=$e();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,qe()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:Qe},Ze=function e(){S(this,e)};var Je=Ze,et=function(){return new Ze};var tt=function(e,t){var n=new Set(e);return n.add(t),n};function nt(e,t){var n,r,o,a;return v.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=0,r=Object(h.a)(e),i.prev=2,r.s();case 4:if((o=r.n()).done){i.next=11;break}if(a=o.value,!t(a,n++)){i.next=9;break}return i.next=9,a;case 9:i.next=4;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(2),r.e(i.t0);case 16:return i.prev=16,r.f(),i.finish(16);case 19:case"end":return i.stop()}}),L,null,[[2,13,16,19]])}var rt=nt;var ot=function(e,t){return new Proxy(e,{get:function(e,n){return!(n in e)&&n in t&&(e[n]=t[n]()),e[n]},ownKeys:function(e){return Object.keys(e)}})},at=Te.getNode,it=Te.getNodeMaybe,ut=Te.recoilValuesForKeys,lt=Je,ct=tt,st=Object.freeze(new Set),ft=function(e){g(n,e);var t=E(n);function n(){return S(this,n),t.apply(this,arguments)}return n}(d(Error));function dt(e,t,n,r){var o=e.getState();if(!o.nodeCleanupFunctions.has(n)){var a=at(n),i=function(e,t,n){if(!me("recoil_memory_managament_2020"))return function(){};var r=e.getState().retention.nodesRetainedByZone;function o(e){var n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof lt)o(n);else if(Array.isArray(n)){var a,i=Object(h.a)(n);try{for(i.s();!(a=i.n()).done;)o(a.value)}catch(u){i.e(u)}finally{i.f()}}return function(){if(me("recoil_memory_managament_2020")){var r=e.getState().retention;if(n instanceof lt)i(n);else if(Array.isArray(n)){var o,a=Object(h.a)(n);try{for(a.s();!(o=a.n()).done;)i(o.value)}catch(u){a.e(u)}finally{a.f()}}}function i(e){var n=r.nodesRetainedByZone.get(e);null===n||void 0===n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}}}(e,n,a.retainedBy),u=a.init(e,t,r);o.nodeCleanupFunctions.set(n,(function(){u(),i()}))}}function pt(e,t,n){return at(n).peek(e,t)}function vt(e,t,n){for(var r=new Set,o=Array.from(n),a=e.getGraph(t.version),i=o.pop();i;i=o.pop()){var u;r.add(i);var l,c=null!==(u=a.nodeToNodeSubscriptions.get(i))&&void 0!==u?u:st,s=Object(h.a)(c);try{for(s.s();!(l=s.n()).done;){var f=l.value;r.has(f)||o.push(f)}}catch(d){s.e(d)}finally{s.f()}}return r}var ht,mt,bt,yt=function(e,t,n){return dt(e,t,n,"get"),at(n).get(e,t)},gt=pt,wt=function(e,t,n,r){var o=at(n);if(null==o.set)throw new ft("Attempt to set read-only RecoilValue: ".concat(n));var a=o.set;return dt(e,t,n,"set"),a(e,t,r)},Ot=function(e,t,n){dt(e,e.getState().currentTree,t,n)},Et=function(e,t){var n,r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},St=function(e,t,n){var r,o=it(t);return null===o||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o,e),Object(b.a)(Object(b.a)({},e),{},{atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:ct(e.dirtyAtoms,t)})},jt=function(e,t,n){var r=e.getState(),o=e.getGraph(t.version),a=at(n).nodeType;return ot({type:a},{loadable:function(){return pt(e,t,n)},isActive:function(){return r.knownAtoms.has(n)||r.knownSelectors.has(n)},isSet:function(){return"selector"!==a&&t.atomValues.has(n)},isModified:function(){return t.dirtyAtoms.has(n)},deps:function(){var e;return ut(null!==(e=o.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:function(){var o,a;return{nodes:ut(rt(vt(e,t,new Set([n])),(function(e){return e!==n}))),components:be(null!==(o=null===(a=r.nodeToComponentSubscriptions.get(n))||void 0===a?void 0:a.values())&&void 0!==o?o:[],(function(e){return{name:Object(u.a)(e,1)[0]}}))}}})},kt=vt,_t=null!==(ht=C.a.createMutableSource)&&void 0!==ht?ht:C.a.unstable_createMutableSource,Ct=null!==(mt=C.a.useMutableSource)&&void 0!==mt?mt:C.a.unstable_useMutableSource,Tt=null!==(bt=C.a.useSyncExternalStore)&&void 0!==bt?bt:C.a.unstable_useSyncExternalStore;var xt={createMutableSource:_t,useMutableSource:Ct,useSyncExternalStore:Tt,reactMode:function(){return me("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:me("recoil_sync_external_store")&&null!=Tt?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:me("recoil_mutable_source")&&null!=Ct&&"undefined"!==typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?me("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:me("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}},Rt=kt,Pt=yt,Nt=wt,Lt=Ke,At=Te.getNode,Mt=Te.getNodeMaybe,Dt=Te.DefaultValue,It=Te.RecoilValueNotReady,zt=xt.reactMode,Ft=de.AbstractRecoilValue,Vt=de.RecoilState,Ut=de.RecoilValueReadOnly,Bt=de.isRecoilValue;function Wt(e,t,n){if("set"===n.type){var r,o=n.recoilValue,a=function(e,t,n,r){var o=n.key;if("function"===typeof r){var a=Pt(e,t,o);if("loading"===a.state)throw new It(o);if("hasError"===a.state)throw a.contents;return r(a.contents)}return r}(e,t,o,n.valueOrUpdater),i=Nt(e,t,o.key,a),l=Object(h.a)(i.entries());try{for(l.s();!(r=l.n()).done;){var c=Object(u.a)(r.value,2);Ht(t,c[0],c[1])}}catch(m){l.e(m)}finally{l.f()}}else if("setLoadable"===n.type){Ht(t,n.recoilValue.key,n.loadable)}else if("markModified"===n.type){var s=n.recoilValue.key;t.dirtyAtoms.add(s)}else if("setUnvalidated"===n.type){var f,d=n.recoilValue.key,p=n.unvalidatedValue,v=Mt(d);null===v||void 0===v||null===(f=v.invalidate)||void 0===f||f.call(v,t),t.atomValues.delete(d),t.nonvalidatedAtoms.set(d,p),t.dirtyAtoms.add(d)}else ge("Unknown action ".concat(n.type))}function Ht(e,t,n){"hasValue"===n.state&&n.contents instanceof Dt?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Yt(e,t){e.replaceState((function(n){var r,o=qt(n),a=Object(h.a)(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;Wt(e,o,i)}}catch(u){a.e(u)}finally{a.f()}return Qt(e,o),o}))}function Kt(e,t){if(Xt.length){var n=Xt[Xt.length-1],r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Yt(e,[t])}var Xt=[];function qt(e){return Object(b.a)(Object(b.a)({},e),{},{atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)})}function Qt(e,t){var n,r=Rt(e,t,t.dirtyAtoms),o=Object(h.a)(r);try{for(o.s();!(n=o.n()).done;){var a,i,u=n.value;null===(a=Mt(u))||void 0===a||null===(i=a.invalidate)||void 0===i||i.call(a,t)}}catch(l){o.e(l)}finally{o.f()}}function $t(e,t,n){Kt(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var Gt={RecoilValueReadOnly:Ut,AbstractRecoilValue:Ft,RecoilState:Vt,getRecoilValueAsLoadable:function(e,t){var n,r,o=t.key,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getState().currentTree,i=e.getState();a.version!==i.currentTree.version&&a.version!==(null===(n=i.nextTree)||void 0===n?void 0:n.version)&&a.version!==(null===(r=i.previousTree)||void 0===r?void 0:r.version)&&ge("Tried to read from a discarded tree");var u=Pt(e,a,o);return"loading"===u.state&&u.contents.catch((function(){})),u},setRecoilValue:$t,setRecoilValueLoadable:function(e,t,n){if(n instanceof Dt)return $t(e,t,n);Kt(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){Kt(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){Kt(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,t,n){var r=t.key,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=Lt(),i=e.getState();i.nodeToComponentSubscriptions.has(r)||i.nodeToComponentSubscriptions.set(r,new Map),I(i.nodeToComponentSubscriptions.get(r)).set(a,[null!==o&&void 0!==o?o:"<not captured>",n]);var u=zt();if(u.early&&("LEGACY"===u.mode||"MUTABLE_SOURCE"===u.mode)){var l=e.getState().nextTree;l&&l.dirtyAtoms.has(r)&&n(l)}return{release:function(){var t=e.getState(),n=t.nodeToComponentSubscriptions.get(r);void 0!==n&&n.has(a)?(n.delete(a),0===n.size&&t.nodeToComponentSubscriptions.delete(r)):ge("Subscription missing at release time for atom ".concat(r,". This is a bug in Recoil."))}}},isRecoilValue:Bt,applyAtomValueWrites:function(e,t){var n=e.clone();return t.forEach((function(e,t){"hasValue"===e.state&&e.contents instanceof Dt?n.delete(t):n.set(t,e)})),n},batchStart:function(){var e=new Map;return Xt.push(e),function(){var t,n=Object(h.a)(e);try{for(n.s();!(t=n.n()).done;){var r=Object(u.a)(t.value,2);Yt(r[0],r[1])}}catch(o){n.e(o)}finally{n.f()}Xt.pop()!==e&&ge("Incorrect order of batch popping")}},writeLoadableToTreeState:Ht,invalidateDownstreams:Qt,copyTreeState:qt,refreshRecoilValue:function(e,t){var n,r=e.getState().currentTree,o=At(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)},invalidateDownstreams_FOR_TESTING:Qt};var Zt=function(e,t,n){for(var r=e.entries(),o=r.next();!o.done;){var a=o.value;if(t.call(n,a[1],a[0],e))return!0;o=r.next()}return!1},Jt=Et,en=Te.deleteNodeConfigIfPossible,tn=Te.getNode,nn=Je,rn=new Set;function on(e,t){var n=e.getState(),r=n.currentTree;if(n.nextTree)ge("releaseNodesNowOnCurrentTree should only be called at the end of a batch");else{var o,a=new Set,i=Object(h.a)(t);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(u instanceof nn){var l,c=Object(h.a)(un(n,u));try{for(c.s();!(l=c.n()).done;){var s=l.value;a.add(s)}}catch(v){c.e(v)}finally{c.f()}}else a.add(u)}}catch(v){i.e(v)}finally{i.f()}var f,d=function(e,t){var n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),a=new Set,i=new Set;return u(t),a;function u(t){var l,c=new Set,s=function(e,t,n,r,o){var a=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)l(I(n.values().next().value));return i;function l(e){if(r.has(e)||o.has(e))n.delete(e);else if(!u.has(e)){var t=a.nodeToNodeSubscriptions.get(e);if(t){var c,s=Object(h.a)(t);try{for(s.s();!(c=s.n()).done;){l(c.value)}}catch(v){s.e(v)}finally{s.f()}}u.add(e),n.delete(e),i.push(e)}}}(e,r,t,a,i),f=Object(h.a)(s);try{for(f.s();!(l=f.n()).done;){var d,p=l.value;if("recoilRoot"!==tn(p).retainedBy)if((null!==(d=n.retention.referenceCounts.get(p))&&void 0!==d?d:0)>0)i.add(p);else if(ln(p).some((function(e){return n.retention.referenceCounts.get(e)})))i.add(p);else{var m=o.nodeToNodeSubscriptions.get(p);m&&Zt(m,(function(e){return i.has(e)}))?i.add(p):(a.add(p),c.add(p))}else i.add(p)}}catch(v){f.e(v)}finally{f.f()}var b,y=new Set,g=Object(h.a)(c);try{for(g.s();!(b=g.n()).done;){var w,O=b.value,E=Object(h.a)(null!==(S=o.nodeDeps.get(O))&&void 0!==S?S:rn);try{for(E.s();!(w=E.n()).done;){var S,j=w.value;a.has(j)||y.add(j)}}catch(v){E.e(v)}finally{E.f()}}}catch(v){g.e(v)}finally{g.f()}y.size&&u(y)}}(e,a),p=Object(h.a)(d);try{for(p.s();!(f=p.n()).done;){an(e,r,f.value)}}catch(v){p.e(v)}finally{p.f()}}}function an(e,t,n){if(me("recoil_memory_managament_2020")){Jt(e,n);var r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);var o,a=ln(n),i=Object(h.a)(a);try{for(i.s();!(o=i.n()).done;){var u,l=o.value;null===(u=r.retention.nodesRetainedByZone.get(l))||void 0===u||u.delete(n)}}catch(m){i.e(m)}finally{i.f()}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);var c=r.graphsByVersion.get(t.version);if(c){var s=c.nodeDeps.get(n);if(void 0!==s){c.nodeDeps.delete(n);var f,d=Object(h.a)(s);try{for(d.s();!(f=d.n()).done;){var p,v=f.value;null===(p=c.nodeToNodeSubscriptions.get(v))||void 0===p||p.delete(n)}}catch(m){d.e(m)}finally{d.f()}}c.nodeToNodeSubscriptions.delete(n)}en(n)}}function un(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:rn}function ln(e){var t=tn(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof nn?[t]:t}function cn(e,t){me("recoil_memory_managament_2020")&&(e.getState().retention.referenceCounts.delete(t),function(e,t){var n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):on(e,new Set([t]))}(e,t))}var sn=12e4,fn=function(e,t,n){var r;if(me("recoil_memory_managament_2020")){var o=e.getState().retention.referenceCounts,a=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===a?cn(e,t):o.set(t,a)}},dn=function(e){if(me("recoil_memory_managament_2020")){var t=e.getState();on(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}},pn=function(e){return void 0===e?"recoilRoot":e},vn=x.a.unstable_batchedUpdates,hn=Gt.batchStart,mn={unstable_batchedUpdates:{unstable_batchedUpdates:vn}.unstable_batchedUpdates}.unstable_batchedUpdates,bn=function(e){mn((function(){var t=function(){};try{t=hn(),e()}finally{t()}}))};function yn(e){var t,n,r,o,a,i;return v.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:t=Object(h.a)(e),u.prev=1,t.s();case 3:if((n=t.n()).done){u.next=24;break}r=n.value,o=Object(h.a)(r),u.prev=6,o.s();case 8:if((a=o.n()).done){u.next=14;break}return i=a.value,u.next=12,i;case 12:u.next=8;break;case 14:u.next=19;break;case 16:u.prev=16,u.t0=u.catch(6),o.e(u.t0);case 19:return u.prev=19,o.f(),u.finish(19);case 22:u.next=3;break;case 24:u.next=29;break;case 26:u.prev=26,u.t1=u.catch(1),t.e(u.t1);case 29:return u.prev=29,t.f(),u.finish(29);case 32:case"end":return u.stop()}}),A,null,[[1,26,29,32],[6,16,19,22]])}var gn=yn,wn={isSSR:"undefined"===typeof window,isReactNative:"undefined"!==typeof navigator&&"ReactNative"===navigator.product};var On=function(e,t){var n,r,o=this;return[function(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];var l=t.apply(void 0,i);return n===l?r:(n=l,r=e.apply(o,i))},function(){n=null}]},En=bn,Sn=Ot,jn=jt,kn=Fe,_n=Ye,Cn=Te.DEFAULT_VALUE,Tn=Te.recoilValues,xn=Te.recoilValuesForKeys,Rn=Gt.AbstractRecoilValue,Pn=Gt.getRecoilValueAsLoadable,Nn=Gt.setRecoilValue,Ln=Gt.setUnvalidatedRecoilValue,An=fn,Mn=Ge.getNextTreeStateVersion,Dn=Ge.makeEmptyStoreState,In=wn.isSSR,zn=On,Fn=function(){function e(t){var n=this;S(this,e),z(this,"_store",void 0),z(this,"_refCount",1),z(this,"getLoadable",(function(e){return n.checkRefCount_INTERNAL(),Pn(n._store,e)})),z(this,"getPromise",(function(e){return n.checkRefCount_INTERNAL(),n.getLoadable(e).toPromise()})),z(this,"getNodes_UNSTABLE",(function(e){if(n.checkRefCount_INTERNAL(),!0===(null===e||void 0===e?void 0:e.isModified)){if(!1===(null===e||void 0===e?void 0:e.isInitialized))return[];var t=n._store.getState().currentTree;return xn(t.dirtyAtoms)}var r=n._store.getState().knownAtoms,o=n._store.getState().knownSelectors;return null==(null===e||void 0===e?void 0:e.isInitialized)?Tn.values():!0===e.isInitialized?xn(gn([n._store.getState().knownAtoms,n._store.getState().knownSelectors])):rt(Tn.values(),(function(e){var t=e.key;return!r.has(t)&&!o.has(t)}))})),z(this,"getInfo_UNSTABLE",(function(e){var t=e.key;return n.checkRefCount_INTERNAL(),jn(n._store,n._store.getState().currentTree,t)})),z(this,"map",(function(e){n.checkRefCount_INTERNAL();var t=new Yn(n,En);return e(t),t})),z(this,"asyncMap",function(){var e=Object(i.a)(v.a.mark((function e(t){var r;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.checkRefCount_INTERNAL(),(r=new Yn(n,En)).retain(),e.next=5,t(r);case 5:return r.autoRelease_INTERNAL(),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this._store={storeID:_n(),getState:function(){return t},replaceState:function(e){t.currentTree=e(t.currentTree)},getGraph:function(e){var n=t.graphsByVersion;if(n.has(e))return I(n.get(e));var r=kn();return n.set(e,r),r},subscribeToTransactions:function(){return{release:function(){}}},addTransactionMetadata:function(){throw M("Cannot subscribe to Snapshots")}};var r,o=Object(h.a)(this._store.getState().knownAtoms);try{for(o.s();!(r=o.n()).done;){var a=r.value;Sn(this._store,a,"get"),An(this._store,a,1)}}catch(u){o.e(u)}finally{o.f()}this.autoRelease_INTERNAL()}return k(e,[{key:"retain",value:function(){var e=this;this._refCount<=0&&ge("Attempt to retain() Snapshot that was already released."),this._refCount++;var t=!1;return function(){t||(t=!0,e._release())}}},{key:"autoRelease_INTERNAL",value:function(){var e=this;In||window.setTimeout((function(){return e._release()}),0)}},{key:"_release",value:function(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach((function(e){return e()})),this._store.getState().nodeCleanupFunctions.clear(),!me("recoil_memory_managament_2020"))return}else this._refCount}},{key:"isRetained",value:function(){return this._refCount>0}},{key:"checkRefCount_INTERNAL",value:function(){me("recoil_memory_managament_2020")&&this._refCount}},{key:"getStore_INTERNAL",value:function(){return this.checkRefCount_INTERNAL(),this._store}},{key:"getID",value:function(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}}]),e}();function Vn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getState(),o=n?Mn():t.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:Object(b.a)({},t.transactionMetadata),dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()}:t,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(be(r.nodeCleanupFunctions.entries(),(function(e){return[Object(u.a)(e,1)[0],function(){}]})))}}var Un=zn((function(e,t){var n=e.getState(),r="current"===t?n.currentTree:I(n.previousTree);return new Fn(Vn(e,r))}),(function(e,t){var n;return String(t)+String(e.storeID)+String(e.getState().currentTree.version)+String(null===(n=e.getState().previousTree)||void 0===n?void 0:n.version)})),Bn=Object(u.a)(Un,2),Wn=Bn[0],Hn=Bn[1];var Yn=function(e){g(n,e);var t=E(n);function n(e,r){var o;return S(this,n),z(y(o=t.call(this,Vn(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0))),"_batch",void 0),z(y(o),"set",(function(e,t){o.checkRefCount_INTERNAL();var n=o.getStore_INTERNAL();o._batch((function(){An(n,e.key,1),Nn(o.getStore_INTERNAL(),e,t)}))})),z(y(o),"reset",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();o._batch((function(){An(t,e.key,1),Nn(o.getStore_INTERNAL(),e,Cn)}))})),z(y(o),"setUnvalidatedAtomValues_DEPRECATED",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();En((function(){var n,r=Object(h.a)(e.entries());try{for(r.s();!(n=r.n()).done;){var o=Object(u.a)(n.value,2),a=o[0],i=o[1];An(t,a,1),Ln(t,new Rn(a),i)}}catch(l){r.e(l)}finally{r.f()}}))})),o._batch=r,o}return n}(Fn),Kn={Snapshot:Fn,MutableSnapshot:Yn,freshSnapshot:function(e){var t=new Fn(Dn());return null!=e?t.map(e):t},cloneSnapshot:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current",n=Wn(e,t);return n.isRetained()?n:(Hn(),Wn(e,t))}},Xn=Kn.Snapshot,qn=Kn.MutableSnapshot,Qn=Kn.freshSnapshot,$n=Kn.cloneSnapshot,Gn=Object.freeze({__proto__:null,Snapshot:Xn,MutableSnapshot:qn,freshSnapshot:Qn,cloneSnapshot:$n});var Zn=function(){for(var e=new Set,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0,a=n;o<a.length;o++){var i,u=a[o],l=Object(h.a)(u);try{for(l.s();!(i=l.n()).done;){var c=i.value;e.add(c)}}catch(s){l.e(s)}finally{l.f()}}return e},Jn=C.a.useRef;var er=function(e){var t=Jn(e);return t.current===e&&"function"===typeof e&&(t.current=e()),t},tr=Ge.getNextTreeStateVersion,nr=Ge.makeEmptyStoreState,rr=Et,or=kt,ar=Ot,ir=wt,ur=St,lr=Fe,cr=ze,sr=Ye,fr=xt.createMutableSource,dr=xt.reactMode,pr=Gt.applyAtomValueWrites,vr=dn,hr=Gn.freshSnapshot,mr=C.a.useCallback,br=C.a.useContext,yr=C.a.useEffect,gr=C.a.useMemo,wr=C.a.useRef,Or=C.a.useState;function Er(){throw M("This component must be used inside a <RecoilRoot> component.")}var Sr=Object.freeze({storeID:sr(),getState:Er,replaceState:Er,getGraph:Er,subscribeToTransactions:Er,addTransactionMetadata:Er}),jr=!1;function kr(e){if(jr)throw M("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");var t=e.getState();if(null===t.nextTree){me("recoil_memory_managament_2020")&&me("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&vr(e);var n=t.currentTree.version,r=tr();t.nextTree=Object(b.a)(Object(b.a)({},t.currentTree),{},{version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}}),t.graphsByVersion.set(r,cr(I(t.graphsByVersion.get(n))))}}var _r=C.a.createContext({current:Sr}),Cr=function(){return br(_r)},Tr=C.a.createContext(null);function xr(e,t,n){var r,o=or(e,n,n.dirtyAtoms),a=Object(h.a)(o);try{for(a.s();!(r=a.n()).done;){var i=r.value,l=t.nodeToComponentSubscriptions.get(i);if(l){var c,s=Object(h.a)(l);try{for(s.s();!(c=s.n()).done;){var f=Object(u.a)(c.value,2),d=(f[0],Object(u.a)(f[1],2));d[0];(0,d[1])(n)}}catch(p){s.e(p)}finally{s.f()}}}}catch(p){a.e(p)}finally{a.f()}}function Rr(e){var t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){var o,a=Object(h.a)(t.nodeTransactionSubscriptions);try{for(a.s();!(o=a.n()).done;){var i=Object(u.a)(o.value,2),l=i[0],c=i[1];if(r.has(l)){var s,f=Object(h.a)(c);try{for(f.s();!(s=f.n()).done;){var d=Object(u.a)(s.value,2);d[0];(0,d[1])(e)}}catch(b){f.e(b)}finally{f.f()}}}}catch(b){a.e(b)}finally{a.f()}var p,v=Object(h.a)(t.transactionSubscriptions);try{for(v.s();!(p=v.n()).done;){var m=Object(u.a)(p.value,2);m[0];(0,m[1])(e)}}catch(b){v.e(b)}finally{v.f()}(!dr().early||t.suspendedComponentResolvers.size>0)&&(xr(e,t,n),t.suspendedComponentResolvers.forEach((function(e){return e()})),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach((function(e){return e(n)})),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Pr(e){var t=e.setNotifyBatcherOfChange,n=Cr(),r=Or([]),o=Object(u.a)(r,2)[1];return t((function(){return o({})})),yr((function(){return t((function(){return o({})})),function(){t((function(){}))}}),[t]),yr((function(){xe.enqueueExecution("Batcher",(function(){!function(e){var t=e.getState();t.commitDepth++;try{var n=t.nextTree;if(null===n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Rr(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):ge("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,me("recoil_memory_managament_2020")&&vr(e)}finally{t.commitDepth--}}(n.current)}))})),null}var Nr=0;function Lr(e){var t,n=e.initializeState_DEPRECATED,r=e.initializeState,o=e.store_INTERNAL,a=e.children,i=function(e){var n=t.current.graphsByVersion;if(n.has(e))return I(n.get(e));var r=lr();return n.set(e,r),r},u=function(e,t){if(null==t){var n=d.current.getState().transactionSubscriptions,r=Nr++;return n.set(r,e),{release:function(){n.delete(r)}}}var o=d.current.getState().nodeTransactionSubscriptions;o.has(t)||o.set(t,new Map);var a=Nr++;return I(o.get(t)).set(a,e),{release:function(){var e=o.get(t);e&&(e.delete(a),0===e.size&&o.delete(t))}}},l=function(e){kr(d.current);for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];I(d.current.getState().nextTree).transactionMetadata[r]=e[r]}},c=function(e){kr(d.current);var n,r=I(t.current.nextTree);try{jr=!0,n=e(r)}finally{jr=!1}n!==r&&(t.current.nextTree=n,dr().early&&xr(d.current,t.current,n),I(s.current)())},s=wr(null),f=mr((function(e){s.current=e}),[s]),d=er((function(){return null!==o&&void 0!==o?o:{storeID:sr(),getState:function(){return t.current},replaceState:c,getGraph:i,subscribeToTransactions:u,addTransactionMetadata:l}}));null!=o&&(d.current=o),t=er((function(){return null!=n?function(e,t){var n=nr();return t({set:function(t,r){var o,a=n.currentTree,i=ir(e,a,t.key,r),u=new Set(i.keys()),l=a.nonvalidatedAtoms.clone(),c=Object(h.a)(u);try{for(c.s();!(o=c.n()).done;){var s=o.value;l.delete(s)}}catch(f){c.e(f)}finally{c.f()}n.currentTree=Object(b.a)(Object(b.a)({},a),{},{dirtyAtoms:Zn(a.dirtyAtoms,u),atomValues:pr(a.atomValues,i),nonvalidatedAtoms:l})},setUnvalidatedAtomValues:function(e){e.forEach((function(e,t){n.currentTree=ur(n.currentTree,t,e)}))}}),n}(d.current,n):null!=r?function(e){var t=hr().map(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach((function(e){return e()})),n.nodeCleanupFunctions.clear(),n}(r):nr()}));var p=gr((function(){return null===fr||void 0===fr?void 0:fr(t,(function(){return t.current.currentTree.version}))}),[t]);return yr((function(){var e,t=d.current,n=Object(h.a)(new Set(t.getState().knownAtoms));try{for(n.s();!(e=n.n()).done;){var r=e.value;ar(t,r,"get")}}catch(o){n.e(o)}finally{n.f()}return function(){var e,n=Object(h.a)(t.getState().knownAtoms);try{for(n.s();!(e=n.n()).done;){var r=e.value;rr(t,r)}}catch(o){n.e(o)}finally{n.f()}}}),[d]),C.a.createElement(_r.Provider,{value:d},C.a.createElement(Tr.Provider,{value:p},C.a.createElement(Pr,{setNotifyBatcherOfChange:f}),a))}var Ar=function(e){var t=e.override,n=Object(a.a)(e,R),r=Cr();return!1===t&&r.current!==Sr?e.children:C.a.createElement(Lr,n)},Mr=Cr,Dr=function(){var e=br(Tr);return null==e&&pe("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),e},Ir=function(){return Cr().current.storeID};var zr=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},Fr=C.a.useEffect,Vr=C.a.useRef;var Ur=function(e){var t=Vr();return Fr((function(){t.current=e})),t.current},Br=Mr,Wr=sn,Hr=fn,Yr=Je,Kr=C.a.useEffect,Xr=C.a.useRef,qr=wn.isSSR;var Qr=function(e){if(me("recoil_memory_managament_2020"))return function(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e instanceof Yr?e:e.key})),n=Br();Kr((function(){if(me("recoil_memory_managament_2020")){var e=n.current;if(r.current&&!qr)window.clearTimeout(r.current),r.current=null;else{var o,a=Object(h.a)(t);try{for(a.s();!(o=a.n()).done;){var i=o.value;Hr(e,i,1)}}catch(u){a.e(u)}finally{a.f()}}return function(){var n,r=Object(h.a)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;Hr(e,o,-1)}}catch(u){r.e(u)}finally{r.f()}}}}),[n].concat(Object(o.a)(t)));var r=Xr(),a=Ur(t);if(!qr&&(void 0===a||!zr(a,t))){var i,u=n.current,l=Object(h.a)(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;Hr(u,c,1)}}catch(p){l.e(p)}finally{l.f()}if(a){var s,f=Object(h.a)(a);try{for(f.s();!(s=f.n()).done;){var d=s.value;Hr(u,d,-1)}}catch(p){f.e(p)}finally{f.f()}}r.current&&window.clearTimeout(r.current),r.current=window.setTimeout((function(){r.current=null;var e,n=Object(h.a)(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;Hr(u,o,-1)}}catch(p){n.e(p)}finally{n.f()}}),Wr)}}(e)};var $r=C.a.useRef;var Gr=function(){return $r(),"<component name not available>"},Zr=Te.DEFAULT_VALUE,Jr=xt.reactMode,eo=xt.useMutableSource,to=xt.useSyncExternalStore,no=Dr,ro=Mr,oo=(de.isRecoilValue,Gt.getRecoilValueAsLoadable),ao=Gt.setRecoilValue,io=Gt.subscribeToRecoilValue,uo=C.a.useCallback,lo=C.a.useEffect,co=C.a.useMemo,so=C.a.useRef,fo=C.a.useState;function po(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state)throw new Promise((function(e){n.current.getState().suspendedComponentResolvers.add(e)}));throw"hasError"===e.state?e.contents:M('Invalid value of loadable atom "'.concat(t.key,'"'))}function vo(e){var t=ro(),n=Gr(),r=uo((function(){var n;var r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:oo(r,e,a),key:e.key}}),[t,e]),o=uo((function(e){var t;return function(){var n,r,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)}}),[]),a=co((function(){return o(r)}),[r,o]),i=uo((function(r){var o=t.current;return io(o,e,r,n).release}),[t,e,n]);return to(i,a,a).loadable}function ho(e){var t=ro(),n=uo((function(){var n,r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return oo(r,e,a)}),[t,e]),r=uo((function(){return n()}),[n]),o=Gr(),a=uo((function(r,a){var i=t.current;return io(i,e,(function(){if(!me("recoil_suppress_rerender_in_callback"))return a();var e=n();l.current.is(e)||a(),l.current=e}),o).release}),[t,e,o,n]),i=no();if(null==i)throw M("Recoil hooks must be used in components contained within a <RecoilRoot> component.");var u=eo(i,r,a),l=so(u);return lo((function(){l.current=u})),u}function mo(e){var t=ro(),n=Gr(),r=uo((function(){var n;var r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return oo(r,e,a)}),[t,e]),o=uo((function(){return{loadable:r(),key:e.key}}),[r,e.key]),a=uo((function(e){var t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[o]);lo((function(){var r=io(t.current,e,(function(e){s(a)}),n);return s(a),r.release}),[n,e,t,a]);var i=fo(o),l=Object(u.a)(i,2),c=l[0],s=l[1];return c.key!==e.key?o().loadable:c.loadable}function bo(e){var t=ro(),n=fo([]),r=Object(u.a)(n,2)[1],o=Gr(),a=uo((function(){var n;var r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return oo(r,e,a)}),[t,e]),i=a(),l=so(i);return lo((function(){l.current=i})),lo((function(){var n=t.current,i=n.getState(),u=io(n,e,(function(e){var t;if(!me("recoil_suppress_rerender_in_callback"))return r([]);var n=a();null!==(t=l.current)&&void 0!==t&&t.is(n)||r(n),l.current=n}),o);if(i.nextTree)n.getState().queuedComponentCallbacks_DEPRECATED.push((function(){l.current=null,r([])}));else{var c;if(!me("recoil_suppress_rerender_in_callback"))return r([]);var s=a();null!==(c=l.current)&&void 0!==c&&c.is(s)||r(s),l.current=s}return u.release}),[o,a,e,t]),i}function yo(e){return me("recoil_memory_managament_2020")&&Qr(e),{TRANSITION_SUPPORT:mo,SYNC_EXTERNAL_STORE:vo,MUTABLE_SOURCE:ho,LEGACY:bo}[Jr().mode](e)}function go(e){var t=ro();return po(yo(e),e,t)}function wo(e){var t=ro();return uo((function(n){ao(t.current,e,n)}),[t,e])}function Oo(e){return me("recoil_memory_managament_2020")&&Qr(e),mo(e)}function Eo(e){var t=ro();return po(Oo(e),e,t)}var So=function(e){return[go(e),wo(e)]},jo=function(e){return[yo(e),wo(e)]},ko=go,_o=yo,Co=function(e){var t=ro();return uo((function(){ao(t.current,e,Zr)}),[t,e])},To=wo,xo=Oo,Ro=Eo,Po=function(e){return[Eo(e),wo(e)]};var No=bn,Lo=Te.DEFAULT_VALUE,Ao=Te.getNode,Mo=Mr,Do=Gt.AbstractRecoilValue,Io=Gt.setRecoilValueLoadable,zo=sn,Fo=Gn.cloneSnapshot,Vo=C.a.useCallback,Uo=C.a.useEffect,Bo=C.a.useRef,Wo=C.a.useState,Ho=wn.isSSR;function Yo(e){var t=Mo();Uo((function(){return t.current.subscribeToTransactions(e).release}),[e,t])}function Ko(e,t){var n,r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;No((function(){for(var n=new Set,r=0,i=[o.atomValues.keys(),a.atomValues.keys()];r<i.length;r++){var u,l=i[r],c=Object(h.a)(l);try{for(c.s();!(u=c.n()).done;){var s,f,d=u.value;(null===(s=o.atomValues.get(d))||void 0===s?void 0:s.contents)!==(null===(f=a.atomValues.get(d))||void 0===f?void 0:f.contents)&&Ao(d).shouldRestoreFromSnapshots&&n.add(d)}}catch(p){c.e(p)}finally{c.f()}}n.forEach((function(t){Io(e,new Do(t),a.atomValues.has(t)?I(a.atomValues.get(t)):Lo)})),e.replaceState((function(e){return Object(b.a)(Object(b.a)({},e),{},{stateID:t.getID()})}))}))}var Xo=function(){var e=Mo(),t=Wo((function(){return Fo(e.current)})),n=Object(u.a)(t,2),r=n[0],o=n[1],a=Ur(r),i=Bo(),l=Bo();if(Yo(Vo((function(e){return o(Fo(e))}),[])),Uo((function(){var e,t=r.retain();i.current&&!Ho&&(window.clearTimeout(i.current),i.current=null,null===(e=l.current)||void 0===e||e.call(l),l.current=null);return t}),[r]),a!==r&&!Ho){var c;if(i.current)window.clearTimeout(i.current),i.current=null,null===(c=l.current)||void 0===c||c.call(l),l.current=null;l.current=r.retain(),i.current=window.setTimeout((function(){var e;i.current=null,null===(e=l.current)||void 0===e||e.call(l),l.current=null}),zo)}return r},qo=Ko,Qo=function(){var e=Mo();return Vo((function(t){return Ko(e.current,t)}),[e])},$o=function(e){Yo(Vo((function(t){var n=Fo(t,"current"),r=Fo(t,"previous");e({snapshot:n,previousSnapshot:r})}),[e]))},Go=jt,Zo=Mr;var Jo=function(){var e=Zo();return function(t){var n=t.key;return Go(e.current,e.current.getState().currentTree,n)}},ea=xt.reactMode,ta=Ar,na=Mr,ra=C.a.useMemo;var oa=function(){"MUTABLE_SOURCE"===ea().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.");var e=na().current;return ra((function(){return function(t){var n=t.children;return C.a.createElement(ta,{store_INTERNAL:e},n)}}),[e])},aa=re.loadableWithValue,ia=Ot,ua=Te.DEFAULT_VALUE,la=Te.getNode,ca=Gt.copyTreeState,sa=Gt.getRecoilValueAsLoadable,fa=Gt.invalidateDownstreams,da=Gt.writeLoadableToTreeState;function pa(e){return"atom"===la(e.key).nodeType}var va=function(){function e(t,n){var r=this;S(this,e),z(this,"_store",void 0),z(this,"_treeState",void 0),z(this,"_changes",void 0),z(this,"get",(function(e){if(r._changes.has(e.key))return r._changes.get(e.key);if(!pa(e))throw M("Reading selectors within atomicUpdate is not supported");var t=sa(r._store,e,r._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:M("Expected Recoil atom ".concat(e.key," to have a value, but it is in a loading state."))})),z(this,"set",(function(e,t){if(!pa(e))throw M("Setting selectors within atomicUpdate is not supported");if("function"===typeof t){var n=r.get(e);r._changes.set(e.key,t(n))}else ia(r._store,e.key,"set"),r._changes.set(e.key,t)})),z(this,"reset",(function(e){r.set(e,ua)})),this._store=t,this._treeState=n,this._changes=new Map}return k(e,[{key:"newTreeState_INTERNAL",value:function(){if(0===this._changes.size)return this._treeState;var e,t=ca(this._treeState),n=Object(h.a)(this._changes);try{for(n.s();!(e=n.n()).done;){var r=Object(u.a)(e.value,2),o=r[0],a=r[1];da(t,o,aa(a))}}catch(i){n.e(i)}finally{n.f()}return fa(this._store,t),t}}]),e}();var ha=function(e){return function(t){e.replaceState((function(n){var r=new va(e,n);return t(r),r.newTreeState_INTERNAL()}))}},ma=Object.freeze({__proto__:null,atomicUpdater:ha});var ba=function(e,t){if(!e)throw new Error(t)},ya=ma.atomicUpdater,ga=bn,wa=Te.DEFAULT_VALUE,Oa=Mr,Ea=Gt.refreshRecoilValue,Sa=Gt.setRecoilValue,ja=(Gn.Snapshot,Gn.cloneSnapshot),ka=qo,_a=C.a.useCallback,Ca=function e(){S(this,e)},Ta=new Ca;function xa(e,t,n,r){var a=Ta;return ga((function(){var 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 M(i);var u=ot(Object(b.a)(Object(b.a)({},null!==r&&void 0!==r?r:{}),{},{set:function(t,n){return Sa(e,t,n)},reset:function(t){return Sa(e,t,wa)},refresh:function(t){return Ea(e,t)},gotoSnapshot:function(t){return ka(e,t)},transact_UNSTABLE:function(t){return ya(e)(t)}}),{snapshot:function(){return ja(e)}}),l=t(u);if("function"!==typeof l)throw M(i);a=l.apply(void 0,Object(o.a)(n))})),a instanceof Ca&&ba(!1),a}var Ra=xa,Pa=function(e,t){var n=Oa();return _a((function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return xa(n.current,e,r)}),null!=t?[].concat(Object(o.a)(t),[n]):void 0)},Na=Mr,La=Gt.refreshRecoilValue,Aa=C.a.useCallback;var Ma=function(e){var t=Na();return Aa((function(){var n=t.current;La(n,e)}),[e,t])},Da=ma.atomicUpdater,Ia=Mr,za=C.a.useMemo;var Fa=function(e,t){var n=Ia();return za((function(){return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=Da(n.current);a((function(t){e(t).apply(void 0,r)}))}}),null!=t?[].concat(Object(o.a)(t),[n]):void 0)},Va=function(){function e(t){var n,r,o;S(this,e),z(this,"_numLeafs",void 0),z(this,"_root",void 0),z(this,"_onHit",void 0),z(this,"_onSet",void 0),z(this,"_mapNodeValue",void 0),this._numLeafs=0,this._root=null,this._onHit=null!==(n=null===t||void 0===t?void 0:t.onHit)&&void 0!==n?n:function(){},this._onSet=null!==(r=null===t||void 0===t?void 0:t.onSet)&&void 0!==r?r:function(){},this._mapNodeValue=null!==(o=null===t||void 0===t?void 0:t.mapNodeValue)&&void 0!==o?o:function(e){return e}}return k(e,[{key:"size",value:function(){return this._numLeafs}},{key:"root",value:function(){return this._root}},{key:"get",value:function(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}},{key:"getLeafNode",value:function(e,t){var n=this;return Ua(this.root(),(function(t){return n._mapNodeValue(e(t))}),{onNodeVisit:function(e){null===t||void 0===t||t.onNodeVisit(e),"leaf"===e.type&&n._onHit(e)}})}},{key:"set",value:function(e,t,n){var r,o=this,a=null;!function i(){a=Ba(o.root(),e.map((function(e){var t=Object(u.a)(e,2),n=t[0],r=t[1];return[n,o._mapNodeValue(r)]})),null,t,null,{onNodeVisit:function(e){null===n||void 0===n||n.onNodeVisit(e),"leaf"===e.type&&(r=e)}},(function(){o.clear(),i()}))}(),this.root()||(this._root=a),this._numLeafs++,this._onSet(I(r))}},{key:"delete",value:function(e){if(!this.root())return!1;var t=I(this.root());return!!Wa(t,e,e.parent)&&(e===t||"branch"===t.type&&!t.branches.size?(this._root=null,this._numLeafs=0,!0):(this._numLeafs-=Ya(e),!0))}},{key:"clear",value:function(){this._numLeafs=0,this._root=null}}]),e}(),Ua=function e(t,n,r){var o;if(null!=t){if(null===r||void 0===r||null===(o=r.onNodeVisit)||void 0===o||o.call(r,t),"leaf"===t.type)return t;var a=n(t.nodeKey);return e(t.branches.get(a),n,r)}},Ba=function e(t,n,o,a,i,l,c){var s,f;if(null==t)if(0===n.length)f={type:"leaf",value:a,parent:o,branchKey:i};else{var d=Object(r.a)(n),p=d[0],v=d.slice(1),h=Object(u.a)(p,2),m=h[0],b=h[1];(f={type:"branch",nodeKey:m,parent:o,branches:new Map,branchKey:i}).branches.set(b,e(null,v,f,a,b,l,c))}else if(f=t,n.length){var y=Object(r.a)(n),g=y[0],w=y.slice(1),O=Object(u.a)(g,2),E=O[0],S=O[1];if("branch"!==t.type||t.nodeKey!==E)return ge("Existing cache must have a branch midway through the route with matching node key. Resetting cache."),c(),f;t.branches.set(S,e(t.branches.get(S),w,t,a,S,l,c))}return null===l||void 0===l||null===(s=l.onNodeVisit)||void 0===s||s.call(l,f),f},Wa=function(e,t,n){return n?(n.branches.delete(t.branchKey),Ha(e,n,n.parent)):e===t},Ha=function e(t,n,r){return r?(0===n.branches.size&&r.branches.delete(n.branchKey),e(t,r,r.parent)):t===n},Ya=function e(t){return"leaf"===t.type?1:Array.from(t.branches.values()).reduce((function(t,n){return t+e(n)}),0)},Ka={TreeCache:Va}.TreeCache,Xa=Object.freeze({__proto__:null,TreeCache:Ka}),qa={LRUCache:function(){function e(t){var n;S(this,e),z(this,"_maxSize",void 0),z(this,"_size",void 0),z(this,"_head",void 0),z(this,"_tail",void 0),z(this,"_map",void 0),z(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(n=t.mapKey)&&void 0!==n?n:function(e){return e}}return k(e,[{key:"head",value:function(){return this._head}},{key:"tail",value:function(){return this._tail}},{key:"size",value:function(){return this._size}},{key:"maxSize",value:function(){return this._maxSize}},{key:"has",value:function(e){return this._map.has(this._keyMapper(e))}},{key:"get",value:function(e){var t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}},{key:"set",value:function(e,t){var n=this._keyMapper(e);this._map.get(n)&&this.delete(e);var r=this.head(),o={key:e,right:r,left:null,value:t};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}},{key:"_maybeDeleteLRU",value:function(){this.size()>this.maxSize()&&this.deleteLru()}},{key:"deleteLru",value:function(){var e=this.tail();e&&this.delete(e.key)}},{key:"delete",value:function(e){var t=this._keyMapper(e);if(this._size&&this._map.has(t)){var n=I(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--}}},{key:"clear",value:function(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}]),e}()}.LRUCache,Qa=Object.freeze({__proto__:null,LRUCache:qa}),$a=Qa.LRUCache,Ga=Xa.TreeCache;var Za=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=new $a({maxSize:e}),r=new Ga({mapNodeValue:t,onHit:function(e){n.set(e,!0)},onSet:function(t){var o=n.tail();n.set(t,!0),o&&r.size()>e&&r.delete(o.key)}});return r};function Ja(e,t,n){if("string"===typeof e&&!e.includes('"')&&!e.includes("\\"))return'"'.concat(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?void 0:t.allowFunctions))throw M("Attempt to serialize function in a Recoil cache key");return"__FUNCTION(".concat(e.name,")__")}if(null===e)return"null";var r;if("object"!==typeof e)return null!==(r=JSON.stringify(e))&&void 0!==r?r:"";if(D(e))return"__PROMISE__";if(Array.isArray(e))return"[".concat(e.map((function(e,n){return Ja(e,t,n.toString())})),"]");if("function"===typeof e.toJSON)return Ja(e.toJSON(n),t,n);if(e instanceof Map){var o,a={},i=Object(h.a)(e);try{for(i.s();!(o=i.n()).done;){var l=Object(u.a)(o.value,2),c=l[0],s=l[1];a["string"===typeof c?c:Ja(c,t)]=s}}catch(f){i.e(f)}finally{i.f()}return Ja(a,t,n)}return e instanceof Set?Ja(Array.from(e).sort((function(e,n){return Ja(e,t).localeCompare(Ja(n,t))})),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?Ja(Array.from(e),t,n):"{".concat(Object.keys(e).filter((function(t){return void 0!==e[t]})).sort().map((function(n){return"".concat(Ja(n,t),":").concat(Ja(e[n],t,n))})).join(","),"}")}var ei=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{allowFunctions:!1};return Ja(e,t)},ti=Xa.TreeCache,ni={equality:"reference",eviction:"keep-all",maxSize:1/0};function ri(e){switch(e){case"reference":return function(e){return e};case"value":return function(e){return ei(e)}}throw M("Unrecognized equality policy ".concat(e))}function oi(e,t,n){switch(e){case"keep-all":return new ti({mapNodeValue:n});case"lru":return Za(I(t),n);case"most-recent":return Za(1,n)}throw M("Unrecognized eviction policy ".concat(e))}var ai=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ni,t=e.equality,n=void 0===t?ni.equality:t,r=e.eviction,o=void 0===r?ni.eviction:r,a=e.maxSize,i=void 0===a?ni.maxSize:a,u=ri(n),l=oi(o,i,u);return l};var ii=function(e){return function(){return null}},ui=re.loadableWithError,li=re.loadableWithPromise,ci=re.loadableWithValue,si=yt,fi=gt,di=wt,pi=Ve,vi=Te.DEFAULT_VALUE,hi=Te.RecoilValueNotReady,mi=Te.getConfigDeletionHandler,bi=Te.getNode,yi=Te.registerNode,gi=de.isRecoilValue,wi=Gt.markRecoilValueModified,Oi=pn,Ei=Ra,Si=ii,ji=function e(){S(this,e)},ki=new ji,_i=[],Ci=new Map,Ti=function(){var e=0;return function(){return e++}}();var xi=function(e){var t=null,n=e.key,r=e.get,o=e.cachePolicy_UNSTABLE,a=null!=e.set?e.set:void 0,i=new Set,l=ai(null!==o&&void 0!==o?o:{equality:"reference",eviction:"keep-all"}),c=Oi(e.retainedBy_UNSTABLE),s=new Map,f=0;function d(){return!me("recoil_memory_managament_2020")||f>0}function p(e){return e.getState().knownSelectors.add(n),f++,function(){f--}}function v(){return void 0!==mi(n)&&!d()}function m(e,t,n,r,o){P(t,r,o),O(e,t,new Set(o.keys()),n),b(e,n)}function b(e,n){R(e,n)&&x(e);var r=Ci.get(n);if(void 0!==r){var o,a=Object(h.a)(r);try{for(a.s();!(o=a.n()).done;){var i=o.value;wi(i,I(t))}}catch(u){a.e(u)}finally{a.f()}Ci.delete(n)}}function y(e,t){var n=Ci.get(t);null==n&&Ci.set(t,n=new Set),n.add(e)}function g(e,t,n){var r=e.getState().knownSelectors.has(n);if(r&&t.atomValues.has(n))return I(t.atomValues.get(n));var o=si(e,t,n);return"loading"!==o.state&&r&&t.atomValues.set(n,o),o}function w(e,t,n,r,o,a){return t.then((function(r){if(!d())throw x(e),ki;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,ci(r)):e.getState().knownSelectors.forEach((function(e){n.atomValues.delete(e)}));var i=S(e,n);if(i&&"loading"!==i.state){if((R(e,o)||null==C(e))&&b(e,o),"hasValue"===i.state)return i.contents;throw i.contents}if(!R(e,o)){var l=k(n);if("loading"===(null===l||void 0===l?void 0:l.latestLoadable.state))return l.latestLoadable.contents}var c=E(e,n,o),s=Object(u.a)(c,2),f=s[0],p=s[1];if(T(e,o,p),"loading"!==f.state&&m(e,n,o,f,p),"hasError"===f.state)throw f.contents;return f.contents})).catch((function(t){if(t instanceof ji)throw ki;if(!d())throw x(e),ki;var a=ui(t);throw m(e,n,o,a,r),t}))}function O(e,t,r,o){var a,u,l,c,s,f,d;(R(e,o)||t.version===(null===(a=e.getState())||void 0===a||null===(u=a.currentTree)||void 0===u?void 0:u.version)||t.version===(null===(l=e.getState())||void 0===l||null===(c=l.nextTree)||void 0===c?void 0:c.version))&&(pi(new Map([[n,r]]),e,null!==(s=null===(f=e.getState())||void 0===f||null===(d=f.nextTree)||void 0===d?void 0:d.version)&&void 0!==s?s:e.getState().currentTree.version),r.forEach((function(e){return i.add(e)})))}function E(e,o,a){var i,u=Si(n),l=!0,c=function(){u(),l=!1},s=!1,f={loadingDepKey:null,loadingDepPromise:null},p=new Map,v=new Set;function h(t){var n=t.key;!function(e,t,n,r,o){n.add(r),O(e,t,n,o)}(e,o,v,n,a);var r=g(e,o,n);switch(p.set(n,r),r.state){case"hasValue":return r.contents;case"hasError":throw r.contents;case"loading":throw f.loadingDepKey=n,f.loadingDepPromise=r.contents,r.contents}throw M("Invalid Loadable state")}O(e,o,v,a);try{i=r({get:h,getCallback:function(n){return function(){if(l)throw M("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.");null==t&&ba(!1);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ei(e,n,o,{node:t})}}}),i=gi(i)?h(i):i,D(i)?i=function(e,t,n,r,o,a){return t.then((function(t){if(!d())throw x(e),ki;var a=ci(t);return m(e,n,o,a,r),t})).catch((function(t){if(!d())throw x(e),ki;if(T(e,o,r),D(t))return w(e,t,n,r,o,a);var i=ui(t);throw m(e,n,o,i,r),t}))}(e,i,o,p,a,f).finally(c):c()}catch(b){D(i=b)?i=w(e,i,o,p,a,f).finally(c):(s=!0,c())}return[s?ui(i):D(i)?li(i):ci(i),p]}function S(e,t){var r,o=new Set,a=C(e);try{r=l.get((function(n){return"string"!==typeof n&&ba(!1),g(e,t,n).contents}),{onNodeVisit:function(e){"branch"===e.type&&e.nodeKey!==n&&o.add(e.nodeKey)}})}catch(i){throw M('Problem with cache lookup for selector "'.concat(n,'": ').concat(i.message))}return r&&O(e,t,o,null===a||void 0===a?void 0:a.latestExecutionId),r}function j(e,t){var n=Ti(),r=E(e,t,n),o=Object(u.a)(r,2),a=o[0],i=o[1];return"loading"===a.state?(!function(e,t,n,r,o){s.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:r,latestExecutionId:t,latestLoadable:n,stateVersion:o.version})}(e,n,a,i,t),y(e,n)):(x(e),P(t,a,i)),a}function k(e){var t,n=null!==(t=Array.from(s.entries()).find((function(t){var n=Object(u.a)(t,2),r=n[0],o=n[1];return null!=o.latestLoadable&&null!=o.latestExecutionId&&!function(e,t){var n,r,o=C(e),a=null!==(n=null===o||void 0===o?void 0:o.depValuesDiscoveredSoFarDuringAsyncWork)&&void 0!==n?n:new Map,i=Array((null!==(r=_.get(t.version))&&void 0!==r?r:new Map).entries()),l=_.has(t.version)&&i.length===a.size&&i.every((function(e){var t=Object(u.a)(e,2),n=t[0],r=t[1];return a.get(n)===r}));if(null==a||t.version===(null===o||void 0===o?void 0:o.stateVersion)||l)return!1;return _.set(t.version,new Map(a)),Array.from(a).some((function(n){var r=Object(u.a)(n,2),o=r[0],a=r[1];return g(e,t,o).contents!==a.contents}))}(r,e)})))&&void 0!==t?t:[];return Object(u.a)(n,2)[1]}var _=new Map;function C(e){return s.get(e)}function T(e,t,n){if(R(e,t)){var r=C(e);null!=r&&(r.depValuesDiscoveredSoFarDuringAsyncWork=n)}}function x(e){s.delete(e)}function R(e,t){var n;return t===(null===(n=C(e))||void 0===n?void 0:n.latestExecutionId)}function P(e,t,r){e.atomValues.set(n,t);try{l.set(function(e){return Array.from(e.entries()).map((function(e){var t=Object(u.a)(e,2);return[t[0],t[1].contents]}))}(r),t)}catch(o){throw M('Problem with setting cache for selector "'.concat(n,'": ').concat(o.message))}}function N(e,t){return l.get((function(n){var r;return"string"!==typeof n&&ba(!1),null===(r=fi(e,t,n))||void 0===r?void 0:r.contents}))}function L(e,t){return function(e){if(_i.includes(n)){var t="Recoil selector has circular dependencies: ".concat(_i.slice(_i.indexOf(n)).join(" \u2192 "));return ui(M(t))}_i.push(n);try{return e()}finally{_i.pop()}}((function(){return function(e,t){var n=S(e,t);if(null!=n)return x(e),n;var r,o=k(t);return null!=o?("loading"===(null===(r=o.latestLoadable)||void 0===r?void 0:r.state)&&y(e,I(o.latestExecutionId)),I(o.latestLoadable)):j(e,t)}(e,t)}))}function A(e){e.atomValues.delete(n)}function z(e,n){null==t&&ba(!1);var r,o=Object(h.a)(i);try{for(o.s();!(r=o.n()).done;){var a,u=r.value,c=bi(u);null===(a=c.clearCache)||void 0===a||a.call(c,e,n)}}catch(s){o.e(s)}finally{o.f()}i.clear(),A(n),l.clear(),wi(e,t)}if(null!=a){return t=yi({key:n,nodeType:"selector",peek:N,get:L,set:function(e,t,n){var r=!1,o=new Map;function i(n){var o=n.key;if(r)throw M("Recoil: Async selector sets are not currently supported.");var a=g(e,t,o);if("hasValue"===a.state)return a.contents;throw"loading"===a.state?new hi(o):a.contents}function u(n,a){if(r)throw M("Recoil: Async selector sets are not currently supported.");var u="function"===typeof a?a(i(n)):a;di(e,t,n.key,u).forEach((function(e,t){return o.set(t,e)}))}var l=a({set:u,get:i,reset:function(e){u(e,vi)}},n);if(void 0!==l)throw D(l)?M("Recoil: Async selector sets are not currently supported."):M("Recoil: selector set should be a void function.");return r=!0,o},init:p,invalidate:A,clearCache:z,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}return t=yi({key:n,nodeType:"selector",peek:N,get:L,init:p,invalidate:A,clearCache:z,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})},Ri=re.loadableWithError,Pi=re.loadableWithPromise,Ni=re.loadableWithValue,Li=jt,Ai=Te.DEFAULT_VALUE,Mi=Te.DefaultValue,Di=Te.getConfigDeletionHandler,Ii=Te.registerNode,zi=Te.setConfigDeletionHandler,Fi=de.isRecoilValue,Vi=Gt.getRecoilValueAsLoadable,Ui=Gt.markRecoilValueModified,Bi=Gt.setRecoilValue,Wi=Gt.setRecoilValueLoadable,Hi=pn;function Yi(e){var t=e.key,n=e.persistence_UNSTABLE,r=Hi(e.retainedBy_UNSTABLE),a=0,i=D(e.default)?Pi(e.default.then((function(e){return i=Ni(e),e})).catch((function(e){throw i=Ri(e),e}))):Ni(e.default);c(e.default);var u=void 0,l=new Map;function c(e){return e}function s(e,n){var r,o;return null!==(r=null!==(o=n.atomValues.get(t))&&void 0!==o?o:u)&&void 0!==r?r:i}var f=Ii({key:t,nodeType:"atom",peek:s,get:function(e,r){if(r.atomValues.has(t))return I(r.atomValues.get(t));if(r.nonvalidatedAtoms.has(t)){if(null!=u)return u;if(null==n)return pe("Tried to restore a persisted value for atom ".concat(t," but it has no persistence settings.")),i;var o=r.nonvalidatedAtoms.get(t),a=n.validator(o,Ai),l=a instanceof Mi?i:Ni(a);return u=l}return i},set:function(e,n,r){if(n.atomValues.has(t)){var o=I(n.atomValues.get(t));if("hasValue"===o.state&&r===o.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof Mi)return new Map;return u=void 0,(new Map).set(t,Ni(r))},init:function(n,r,u){var c;if(a++,n.getState().knownAtoms.add(t),"loading"===i.state){i.contents.finally((function(){var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||Ui(n,f)}))}var d=null!==(c=e.effects)&&void 0!==c?c:e.effects_UNSTABLE;if(null!=d){var p,v=function(e){if(g&&e.key===t){var o=w;return o instanceof Mi?s(n,r):D(o)?Pi(o.then((function(e){return e instanceof Mi?i.toPromise():e}))):Ni(o)}return Vi(n,e)},m=function(e){return v(e).toPromise()},y=function(e){var r,o=Li(n,null!==(r=n.getState().nextTree)&&void 0!==r?r:n.getState().currentTree,e.key);return!g||e.key!==t||w instanceof Mi?o:Object(b.a)(Object(b.a)({},o),{},{isSet:!0,loadable:v(e)})},g=!0,w=Ai,O=!1,E=null,S=function(e){return function(t){if(g){var r=v(f),o="hasValue"===r.state?r.contents:Ai;w="function"===typeof t?t(o):t,D(w)&&(w=w.then((function(t){return E={effect:e,value:t},t})))}else{if(D(t))throw M("Setting atoms to async values is not implemented.");"function"!==typeof t&&(E={effect:e,value:t}),Bi(n,f,"function"===typeof t?function(n){var r=t(n);return E={effect:e,value:r},r}:t)}}},j=function(e){return function(){return S(e)(Ai)}},k=function(e){return function(r){var a,u=n.subscribeToTransactions((function(n){var o,a=n.getState(),u=a.currentTree,l=a.previousTree;l||(ge("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),l=u);var c=null!==(o=u.atomValues.get(t))&&void 0!==o?o:i;if("hasValue"===c.state){var s,f,d,p,v=c.contents,h=null!==(s=l.atomValues.get(t))&&void 0!==s?s:i,m="hasValue"===h.state?h.contents:Ai;(null===(f=E)||void 0===f?void 0:f.effect)!==e||(null===(d=E)||void 0===d?void 0:d.value)!==v?r(v,m,!u.atomValues.has(t)):(null===(p=E)||void 0===p?void 0:p.effect)===e&&(E=null)}}),t).release;l.set(n,[].concat(Object(o.a)(null!==(a=l.get(n))&&void 0!==a?a:[]),[u]))}},_=Object(h.a)(d);try{for(_.s();!(p=_.n()).done;){var C=p.value;try{var T,x=C({node:f,storeID:n.storeID,trigger:u,setSelf:S(C),resetSelf:j(C),onSet:k(C),getPromise:m,getLoadable:v,getInfo_UNSTABLE:y});if(null!=x)l.set(n,[].concat(Object(o.a)(null!==(T=l.get(n))&&void 0!==T?T:[]),[x]))}catch(L){w=L,O=!0}}}catch(A){_.e(A)}finally{_.f()}if(g=!1,!(w instanceof Mi)){var R,P=w,N=O?Ri(w):D(P)?Pi(function(e,n){var r=n.then((function(n){var o,a;return(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&Bi(e,f,n),n})).catch((function(n){var o,a;throw(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&Wi(e,f,Ri(n)),n}));return r}(n,P)):Ni(P);r.atomValues.set(t,N),null===(R=n.getState().nextTree)||void 0===R||R.atomValues.set(t,N)}}return function(){var e;a--,null===(e=l.get(n))||void 0===e||e.forEach((function(e){return e()})),l.delete(n)}},invalidate:function(){u=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==Di(t)&&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:r});return f}function Ki(e){var t=e.default,n=Object(a.a)(e,P);return Fi(t)?function(e){var t=Ki(Object(b.a)(Object(b.a)({},e),{},{default:Ai,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:Object(b.a)(Object(b.a)({},e.persistence_UNSTABLE),{},{validator:function(t){return t instanceof Mi?t:I(e.persistence_UNSTABLE).validator(t,Ai)}}),effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE})),n=xi({key:"".concat(e.key,"__withFallback"),get:function(n){var r=(0,n.get)(t);return r instanceof Mi?e.default:r},set:function(e,n){return(0,e.set)(t,n)},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return zi(n.key,Di(e.key)),n}(Object(b.a)(Object(b.a)({},n),{},{default:t})):Yi(Object(b.a)(Object(b.a)({},n),{},{default:t}))}var Xi=Ki,qi={MapCache:function(){function e(t){var n;S(this,e),z(this,"_map",void 0),z(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(n=null===t||void 0===t?void 0:t.mapKey)&&void 0!==n?n:function(e){return e}}return k(e,[{key:"size",value:function(){return this._map.size}},{key:"has",value:function(e){return this._map.has(this._keyMapper(e))}},{key:"get",value:function(e){return this._map.get(this._keyMapper(e))}},{key:"set",value:function(e,t){this._map.set(this._keyMapper(e),t)}},{key:"delete",value:function(e){this._map.delete(this._keyMapper(e))}},{key:"clear",value:function(){this._map.clear()}}]),e}()}.MapCache,Qi=Object.freeze({__proto__:null,MapCache:qi}),$i=Qa.LRUCache,Gi=Qi.MapCache,Zi={equality:"reference",eviction:"none",maxSize:1/0};function Ji(e){switch(e){case"reference":return function(e){return e};case"value":return function(e){return ei(e)}}throw M("Unrecognized equality policy ".concat(e))}function eu(e,t,n){switch(e){case"keep-all":return new Gi({mapKey:n});case"lru":return new $i({mapKey:n,maxSize:I(t)});case"most-recent":return new $i({mapKey:n,maxSize:1})}throw M("Unrecognized eviction policy ".concat(e))}var tu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zi,t=e.equality,n=void 0===t?Zi.equality:t,r=e.eviction,o=void 0===r?Zi.eviction:r,a=e.maxSize,i=void 0===a?Zi.maxSize:a,u=Ji(n),l=eu(o,i,u);return l},nu=Te.setConfigDeletionHandler;var ru=function(e){var t,n,r=tu({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return function(t){var n,o,i=r.get(t);if(null!=i)return i;e.cachePolicyForParams_UNSTABLE;var u=Object(a.a)(e,N),l=Xi(Object(b.a)(Object(b.a)({},u),{},{key:"".concat(e.key,"__").concat(null!==(n=ei(t))&&void 0!==n?n:"void"),default:"function"===typeof e.default?e.default(t):e.default,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,l),nu(l.key,(function(){r.delete(t)})),l}},ou=Te.setConfigDeletionHandler,au=0;var iu=function(e){var t,n,r=tu({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return function(t){var n,o=r.get(t);if(null!=o)return o;var a,i="".concat(e.key,"__selectorFamily/").concat(null!==(n=ei(t,{allowFunctions:!0}))&&void 0!==n?n:"void","/").concat(au++),u=function(n){return e.get(t)(n)},l=e.cachePolicy_UNSTABLE,c="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;if(null!=e.set){var s=e.set;a=xi({key:i,get:u,set:function(e,n){return s(t)(e,n)},cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else a=xi({key:i,get:u,cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return r.set(t,a),ou(a.key,(function(){r.delete(t)})),a}},uu=iu({key:"__constant",get:function(e){return function(){return e}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var lu=function(e){return uu(e)},cu=iu({key:"__error",get:function(e){return function(){throw M(e)}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var su=function(e){return cu(e)};var fu=function(e){return e},du=re.loadableWithError,pu=re.loadableWithPromise,vu=re.loadableWithValue;function hu(e,t){var n,r=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0),a=Object(h.a)(t.entries());try{for(a.s();!(n=a.n()).done;){var i=Object(u.a)(n.value,2),l=i[0],c=i[1];try{r[l]=e(c)}catch(s){o[l]=s}}}catch(f){a.e(f)}finally{a.f()}return[r,o]}function mu(e){return null!=e&&!D(e)}function bu(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((function(t){return e[t]}))}function yu(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((function(e,n,r){return Object(b.a)(Object(b.a)({},e),{},Object(m.a)({},n,t[r]))}),{})}function gu(e,t,n){return yu(e,n.map((function(e,n){return null==e?vu(t[n]):D(e)?pu(e):du(e)})))}var wu=iu({key:"__waitForNone",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];return gu(e,o,a)}},dangerouslyAllowMutability:!0}),Ou=iu({key:"__waitForAny",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];return a.some((function(e){return!D(e)}))?gu(e,o,a):new Promise((function(t){var n,r=Object(h.a)(a.entries());try{var i=function(){var r=Object(u.a)(n.value,2),i=r[0],l=r[1];D(l)&&l.then((function(n){o[i]=n,a[i]=void 0,t(gu(e,o,a))})).catch((function(n){a[i]=n,t(gu(e,o,a))}))};for(r.s();!(n=r.n()).done;)i()}catch(l){r.e(l)}finally{r.f()}}))}},dangerouslyAllowMutability:!0}),Eu={waitForNone:wu,waitForAny:Ou,waitForAll:iu({key:"__waitForAll",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];if(a.every((function(e){return null==e})))return yu(e,o);var i=a.find(mu);if(null!=i)throw i;return Promise.all(a).then((function(t){return yu(e,(n=o,t.map((function(e,t){return void 0===e?n[t]:e}))));var n}))}},dangerouslyAllowMutability:!0}),waitForAllSettled:iu({key:"__waitForAllSettled",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];return a.every((function(e){return!D(e)}))?gu(e,o,a):Promise.all(a.map((function(e,t){return D(e)?e.then((function(e){o[t]=e,a[t]=void 0})).catch((function(e){o[t]=void 0,a[t]=e})):null}))).then((function(){return gu(e,o,a)}))}},dangerouslyAllowMutability:!0}),noWait:iu({key:"__noWait",get:function(e){return function(t){var n=t.get;try{return vu(n(e))}catch(r){return D(r)?pu(r):du(r)}}},dangerouslyAllowMutability:!0})},Su=re.RecoilLoadable,ju=Te.DefaultValue,ku=Ar,_u=Ir,Cu=de.isRecoilValue,Tu=et,xu=Gn.freshSnapshot,Ru={DefaultValue:ju,isRecoilValue:Cu,RecoilLoadable:Su,RecoilRoot:ku,useRecoilStoreID:_u,useRecoilBridgeAcrossReactRoots_UNSTABLE:oa,atom:Xi,selector:xi,atomFamily:ru,selectorFamily:iu,constSelector:lu,errorSelector:su,readOnlySelector:fu,noWait:Eu.noWait,waitForNone:Eu.waitForNone,waitForAny:Eu.waitForAny,waitForAll:Eu.waitForAll,waitForAllSettled:Eu.waitForAllSettled,useRecoilValue:ko,useRecoilValueLoadable:_o,useRecoilState:So,useRecoilStateLoadable:jo,useSetRecoilState:To,useResetRecoilState:Co,useGetRecoilValueInfo_UNSTABLE:Jo,useRecoilRefresher_UNSTABLE:Ma,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:xo,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ro,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Po,useRecoilCallback:Pa,useRecoilTransaction_UNSTABLE:Fa,useGotoRecoilSnapshot:Qo,useRecoilSnapshot:Xo,useRecoilTransactionObserver_UNSTABLE:$o,snapshot_UNSTABLE:xu,useRetain:Qr,retentionZone:Tu},Pu=Ru.RecoilRoot,Nu=Ru.atom,Lu=Ru.useRecoilValue,Au=Ru.useRecoilState,Mu=Ru.useSetRecoilState},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(51)},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(c){return void n(c)}u.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function u(e){r(i,o,a,u,l,"next",e)}function l(e){r(i,o,a,u,l,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"k",(function(){return v}));var r=n(0);var o=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"}))};var a=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))};var i=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"}))};var u=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"}))};var l=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"}))};var c=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))};var s=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))};var f=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"}))};var d=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"}))};var p=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"}))};var v=function(e){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0);var o,a,i,u;function l(e){var t=Object(r.useRef)(e);return Object(r.useEffect)((function(){t.current=e})),Object(r.useMemo)((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return null===(n=t.current)||void 0===n?void 0:(e=n).call.apply(e,[t].concat(o))}}),[])}o={},a="useCallbackRef",i=function(){return l},Object.defineProperty(o,a,{get:i,set:u,enumerable:!0,configurable:!0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r.useLayoutEffect:function(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(8),o=n(4),a=n(2),i=n(18),u=n(0),l=n(5),c=["children"],s=["children"],f=u.forwardRef((function(e,t){var n=e.children,r=Object(o.a)(e,c);return u.Children.toArray(n).some(v)?u.createElement(u.Fragment,null,u.Children.map(n,(function(e){return v(e)?u.createElement(d,Object(l.a)({},r,{ref:t}),e.props.children):e}))):u.createElement(d,Object(l.a)({},r,{ref:t}),n)}));f.displayName="Slot";var d=u.forwardRef((function(e,t){var n=e.children,r=Object(o.a)(e,s);return u.isValidElement(n)?u.cloneElement(n,Object(a.a)(Object(a.a)({},function(e,t){var n=Object(a.a)({},t),r=function(r){var o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=function(){null==i||i.apply(void 0,arguments),null==o||o.apply(void 0,arguments)}:"style"===r?n[r]=Object(a.a)(Object(a.a)({},o),i):"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))};for(var o in t)r(o);return Object(a.a)(Object(a.a)({},e),n)}(r,n.props)),{},{ref:Object(i.a)(t,n.ref)})):u.Children.count(n)>1?u.Children.only(null):null}));d.displayName="SlotClone";var p=function(e){var t=e.children;return u.createElement(u.Fragment,null,t)};function v(e){return u.isValidElement(e)&&e.type===p}var h=["asChild"],m=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(a.a)(Object(a.a)({},e),{},Object(r.a)({},t,u.forwardRef((function(e,n){var r=e.asChild,a=Object(o.a)(e,h),i=r?f:t;return u.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),u.createElement(i,Object(l.a)({},a,{ref:n}))}))))}),{})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(0);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(t,e)}))}}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useCallback(o.apply(void 0,t),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(2),o=n(4),a=n(5),i=n(0);function u(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var l={};function c(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return c(t,e)}))}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(i.useCallback)(s.apply(void 0,t),t)}u(l,"composeRefs",(function(){return s})),u(l,"useComposedRefs",(function(){return f}));var d=["children"],p=["children"];function v(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var h={};v(h,"Slot",(function(){return m})),v(h,"Slottable",(function(){return y})),v(h,"Root",(function(){return w}));var m=Object(i.forwardRef)((function(e,t){var n=e.children,r=Object(o.a)(e,d),u=i.Children.toArray(n),l=u.find(g);if(l){var c=l.props.children,s=u.map((function(e){return e===l?i.Children.count(c)>1?i.Children.only(null):Object(i.isValidElement)(c)?c.props.children:null:e}));return Object(i.createElement)(b,Object(a.a)({},r,{ref:t}),Object(i.isValidElement)(c)?Object(i.cloneElement)(c,void 0,s):null)}return Object(i.createElement)(b,Object(a.a)({},r,{ref:t}),n)}));m.displayName="Slot";var b=Object(i.forwardRef)((function(e,t){var n=e.children,a=Object(o.a)(e,p);return Object(i.isValidElement)(n)?Object(i.cloneElement)(n,Object(r.a)(Object(r.a)({},function(e,t){var n=Object(r.a)({},t),o=function(o){var a=e[o],i=t[o];/^on[A-Z]/.test(o)?n[o]=function(){null===i||void 0===i||i.apply(void 0,arguments),null===a||void 0===a||a.apply(void 0,arguments)}:"style"===o?n[o]=Object(r.a)(Object(r.a)({},a),i):"className"===o&&(n[o]=[a,i].filter(Boolean).join(" "))};for(var a in t)o(a);return Object(r.a)(Object(r.a)({},e),n)}(a,n.props)),{},{ref:s(t,n.ref)})):i.Children.count(n)>1?i.Children.only(null):null}));b.displayName="SlotClone";var y=function(e){var t=e.children;return Object(i.createElement)(i.Fragment,null,t)};function g(e){return Object(i.isValidElement)(e)&&e.type===y}var w=m},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r=function(){};function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var i="undefined"!==typeof window},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(3),o=n(0);var a,i,u,l;a={},i="useLayoutEffect",u=function(){return c},Object.defineProperty(a,i,{get:u,set:l,enumerable:!0,configurable:!0});var c=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:function(){};function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var f={};s(f,"useId",(function(){return v})),s(f,"IdProvider",(function(){return h}));var d=o["useId".toString()]||function(){},p=0;function v(e){var t=o.useState(d()),n=Object(r.a)(t,2),a=n[0],i=n[1];return c((function(){e||i((function(e){return null!==e&&void 0!==e?e:String(p++)}))}),[e]),e||(a?"radix-".concat(a):"")}function h(e){var t=e.children;return o.useEffect((function(){}),[]),o.createElement(o.Fragment,null,t)}},function(e,t,n){"use strict";n.d(t,"f",(function(){return nn})),n.d(t,"g",(function(){return rn})),n.d(t,"h",(function(){return on})),n.d(t,"b",(function(){return an})),n.d(t,"a",(function(){return un})),n.d(t,"i",(function(){return ln})),n.d(t,"c",(function(){return fn})),n.d(t,"e",(function(){return dn})),n.d(t,"d",(function(){return pn}));var r=n(2),o=n(7),a=n(28),i=n(4),u=n(3),l=n(5),c=n(0),s=n.n(c),f=n(12),d=n.n(f);function p(e,t){var n=Object(u.a)(t,2),r=n[0],o=n[1];return Math.min(o,Math.max(r,e))}var v=n(9),h=n(8),m=n(6),b=["children"],y=["scope","children"];function g(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var w={};function O(e,t){var n=Object(c.createContext)(t);function r(e){var t=e.children,r=Object(i.a)(e,b),o=Object(c.useMemo)((function(){return r}),Object.values(r));return Object(c.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){var o=Object(c.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function o(t,r){var o=Object(c.createContext)(r),a=n.length;function u(t){var n=t.scope,r=t.children,u=Object(i.a)(t,y),l=(null===n||void 0===n?void 0:n[e][a])||o,s=Object(c.useMemo)((function(){return u}),Object.values(u));return Object(c.createElement)(l.Provider,{value:s},r)}return n=[].concat(Object(m.a)(n),[r]),u.displayName=t+"Provider",[u,function(n,i){var u=(null===i||void 0===i?void 0:i[e][a])||o,l=Object(c.useContext)(u);if(l)return l;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]}var a=function(){var t=n.map((function(e){return Object(c.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(c.useMemo)((function(){return Object(h.a)({},"__scope".concat(e),Object(r.a)(Object(r.a)({},n),{},Object(h.a)({},e,o)))}),[n,o])}};return a.scopeName=e,[o,S.apply(void 0,[a].concat(Object(m.a)(t)))]}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(1===t.length)return o;var a=function(){var e=t.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(t){var n=e.reduce((function(e,n){var o=n.useScope,a=n.scopeName,i=o(t)["__scope".concat(a)];return Object(r.a)(Object(r.a)({},e),i)}),{});return Object(c.useMemo)((function(){return Object(h.a)({},"__scope".concat(o.scopeName),n)}),[n])}};return a.scopeName=o.scopeName,a}function j(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}g(w,"createContext",(function(){return O})),g(w,"createContextScope",(function(){return E}));var k={};function _(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return _(t,e)}))}}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(c.useCallback)(C.apply(void 0,t),t)}j(k,"composeRefs",(function(){return C})),j(k,"useComposedRefs",(function(){return T}));var x=n(19),R=["scope","children"];var P,N,L,A;function M(e){var t=e+"CollectionProvider",n=E(t),o=Object(u.a)(n,2),a=o[0],l=o[1],c=a(t,{collectionRef:{current:null},itemMap:new Map}),f=Object(u.a)(c,2),d=f[0],p=f[1],v=function(e){var t=e.scope,n=e.children,r=s.a.useRef(null),o=s.a.useRef(new Map).current;return s.a.createElement(d,{scope:t,itemMap:o,collectionRef:r},n)},m=e+"CollectionSlot",b=s.a.forwardRef((function(e,t){var n=e.scope,r=e.children,o=T(t,p(m,n).collectionRef);return s.a.createElement(x.a,{ref:o},r)})),y=e+"CollectionItemSlot",g="data-radix-collection-item",w=s.a.forwardRef((function(e,t){var n,o=e.scope,a=e.children,u=Object(i.a)(e,R),l=s.a.useRef(null),c=T(t,l),f=p(y,o);return s.a.useEffect((function(){return f.itemMap.set(l,Object(r.a)({ref:l},u)),function(){f.itemMap.delete(l)}})),s.a.createElement(x.a,(n={},Object(h.a)(n,g,""),Object(h.a)(n,"ref",c),n),a)}));return[{Provider:v,Slot:b,ItemSlot:w},function(t){var n=p(e+"CollectionConsumer",t);return s.a.useCallback((function(){var e=n.collectionRef.current;if(!e)return[];var t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(n.itemMap.values()).sort((function(e,n){return t.indexOf(e.ref.current)-t.indexOf(n.ref.current)}))}),[n.collectionRef,n.itemMap])},l]}function D(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}P={},N="createCollection",L=function(){return M},Object.defineProperty(P,N,{get:L,set:A,enumerable:!0,configurable:!0});var I={};function z(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return z(t,e)}))}}function V(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(c.useCallback)(F.apply(void 0,t),t)}D(I,"composeRefs",(function(){return F})),D(I,"useComposedRefs",(function(){return V}));var U=["children"],B=["scope","children"];function W(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var H={};function Y(e,t){var n=Object(c.createContext)(t);function r(e){var t=e.children,r=Object(i.a)(e,U),o=Object(c.useMemo)((function(){return r}),Object.values(r));return Object(c.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){var o=Object(c.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function o(t,r){var o=Object(c.createContext)(r),a=n.length;function u(t){var n=t.scope,r=t.children,u=Object(i.a)(t,B),l=(null===n||void 0===n?void 0:n[e][a])||o,s=Object(c.useMemo)((function(){return u}),Object.values(u));return Object(c.createElement)(l.Provider,{value:s},r)}return n=[].concat(Object(m.a)(n),[r]),u.displayName=t+"Provider",[u,function(n,i){var u=(null===i||void 0===i?void 0:i[e][a])||o,l=Object(c.useContext)(u);if(l)return l;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]}var a=function(){var t=n.map((function(e){return Object(c.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(c.useMemo)((function(){return Object(h.a)({},"__scope".concat(e),Object(r.a)(Object(r.a)({},n),{},Object(h.a)({},e,o)))}),[n,o])}};return a.scopeName=e,[o,X.apply(void 0,[a].concat(Object(m.a)(t)))]}function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(1===t.length)return o;var a=function(){var e=t.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(t){var n=e.reduce((function(e,n){var o=n.useScope,a=n.scopeName,i=o(t)["__scope".concat(a)];return Object(r.a)(Object(r.a)({},e),i)}),{});return Object(c.useMemo)((function(){return Object(h.a)({},"__scope".concat(o.scopeName),n)}),[n])}};return a.scopeName=o.scopeName,a}W(H,"createContext",(function(){return Y})),W(H,"createContextScope",(function(){return K}));var q=n(39),Q=n(40),$=n(21),G=["asChild"];function Z(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var J={};Z(J,"Primitive",(function(){return ee})),Z(J,"dispatchDiscreteCustomEvent",(function(){return te})),Z(J,"Root",(function(){return ne}));var ee=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(r.a)(Object(r.a)({},e),{},Object(h.a)({},t,Object(c.forwardRef)((function(e,n){var r=e.asChild,o=Object(i.a)(e,G),a=r?x.a:t;return Object(c.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(c.createElement)(a,Object(l.a)({},o,{ref:n}))}))))}),{});function te(e,t){e&&Object(f.flushSync)((function(){return e.dispatchEvent(t)}))}var ne=ee,re=["htmlFor","id"];function oe(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ae={};oe(ae,"Label",(function(){return fe})),oe(ae,"useLabelContext",(function(){return de})),oe(ae,"Root",(function(){return pe}));var ie="Label",ue=Y(ie,{id:void 0,controlRef:{current:null}}),le=Object(u.a)(ue,2),ce=le[0],se=le[1],fe=Object(c.forwardRef)((function(e,t){var n=e.htmlFor,r=e.id,o=Object(i.a)(e,re),a=Object(c.useRef)(null),u=Object(c.useRef)(null),s=V(t,u),f=Object($.a)(r);return Object(c.useEffect)((function(){if(n){var e=document.getElementById(n);if(u.current&&e){var t=function(){return e.getAttribute("aria-labelledby")},r=[f,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",r),a.current=e,function(){var n,r=null===(n=t())||void 0===n?void 0:n.replace(f,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}}),[f,n]),Object(c.createElement)(ce,{id:f,controlRef:a},Object(c.createElement)(ee.span,Object(l.a)({role:"label",id:f},o,{ref:s,onMouseDown:function(t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:function(t){var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),a.current&&!t.defaultPrevented){var r=a.current.contains(t.target),o=!0===t.isTrusted;!r&&o&&(a.current.click(),a.current.focus())}}})))})),de=function(e){var t=se("LabelConsumer"),n=t.controlRef;return Object(c.useEffect)((function(){e&&(n.current=e)}),[e,n]),t.id},pe=fe;!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useLayoutEffect",(function(){return ve}));var ve=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?c.useLayoutEffect:function(){},he=["containerRef","style"],me=["container"];function be(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ye={};be(ye,"Portal",(function(){return ge})),be(ye,"UnstablePortal",(function(){return we})),be(ye,"Root",(function(){return Oe}));var ge=Object(c.forwardRef)((function(e,t){var n,o,a=e.containerRef,s=e.style,f=Object(i.a)(e,he),p=null!==(n=null===a||void 0===a?void 0:a.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body,v=Object(c.useState)({}),h=Object(u.a)(v,2)[1];return ve((function(){h({})}),[]),p?d.a.createPortal(Object(c.createElement)(ee.div,Object(l.a)({"data-radix-portal":""},f,{ref:t,style:p===document.body?Object(r.a)({position:"absolute",top:0,left:0,zIndex:2147483647},s):void 0})),p):null})),we=Object(c.forwardRef)((function(e,t){var n,r=e.container,o=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,a=Object(i.a)(e,me);return o?d.a.createPortal(Object(c.createElement)(ee.div,Object(l.a)({},a,{ref:t})),o):null})),Oe=ge;function Ee(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Se={};Ee(Se,"DirectionProvider",(function(){return ke})),Ee(Se,"useDirection",(function(){return _e})),Ee(Se,"Provider",(function(){return Ce}));var je=Object(c.createContext)(void 0),ke=function(e){var t=e.dir,n=e.children;return Object(c.createElement)(je.Provider,{value:t},n)};function _e(e){var t=Object(c.useContext)(je);return e||t||"ltr"}var Ce=ke,Te=n(15);function xe(e){var t=e.prop,n=e.defaultProp,r=e.onChange,o=void 0===r?function(){}:r,a=function(e){var t=e.defaultProp,n=e.onChange,r=Object(c.useState)(t),o=Object(u.a)(r,1)[0],a=Object(c.useRef)(o),i=Object(Te.a)(n);return Object(c.useEffect)((function(){a.current!==o&&(i(o),a.current=o)}),[o,a,i]),r}({defaultProp:n,onChange:o}),i=Object(u.a)(a,2),l=i[0],s=i[1],f=void 0!==t,d=f?t:l,p=Object(Te.a)(o);return[d,Object(c.useCallback)((function(e){if(f){var n="function"===typeof e?e(t):e;n!==t&&p(n)}else s(e)}),[f,t,s,p])]}!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useControllableState",(function(){return xe}));function Re(e){var t=Object(c.useRef)({value:e,previous:e});return Object(c.useMemo)((function(){return t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous}),[e])}function Pe(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"usePrevious",(function(){return Re}));var Ne={};Pe(Ne,"VisuallyHidden",(function(){return Le})),Pe(Ne,"Root",(function(){return Ae}));var Le=Object(c.forwardRef)((function(e,t){return Object(c.createElement)(ee.span,Object(l.a)({},e,{ref:t,style:Object(r.a)({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)}))})),Ae=Le,Me=n(36),De=n(59),Ie=["__scopeSelect","disabled","aria-labelledby"],ze=["__scopeSelect","className","style","children","placeholder"],Fe=["__scopeSelect","children"],Ve=["__scopeSelect","onCloseAutoFocus"],Ue=["__scopeSelect"],Be=["__scopeSelect"],We=["__scopeSelect"],He=["__scopeSelect","value","disabled","textValue"],Ye=["__scopeSelect","className","style"],Ke=["__scopeSelect"],Xe=["__scopeSelect","onAutoScroll"],qe=["__scopeSelect"],Qe=["value"];function $e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Ge={};$e(Ge,"createSelectScope",(function(){return lt})),$e(Ge,"Select",(function(){return pt})),$e(Ge,"SelectTrigger",(function(){return ht})),$e(Ge,"SelectValue",(function(){return bt})),$e(Ge,"SelectIcon",(function(){return yt})),$e(Ge,"SelectContent",(function(){return wt})),$e(Ge,"SelectViewport",(function(){return Tt})),$e(Ge,"SelectGroup",(function(){return At})),$e(Ge,"SelectLabel",(function(){return Dt})),$e(Ge,"SelectItem",(function(){return Bt})),$e(Ge,"SelectItemText",(function(){return Ht})),$e(Ge,"SelectItemIndicator",(function(){return Kt})),$e(Ge,"SelectScrollUpButton",(function(){return qt})),$e(Ge,"SelectScrollDownButton",(function(){return $t})),$e(Ge,"SelectSeparator",(function(){return Zt})),$e(Ge,"Root",(function(){return nn})),$e(Ge,"Trigger",(function(){return rn})),$e(Ge,"Value",(function(){return on})),$e(Ge,"Icon",(function(){return an})),$e(Ge,"Content",(function(){return un})),$e(Ge,"Viewport",(function(){return ln})),$e(Ge,"Group",(function(){return cn})),$e(Ge,"Label",(function(){return sn})),$e(Ge,"Item",(function(){return fn})),$e(Ge,"ItemText",(function(){return dn})),$e(Ge,"ItemIndicator",(function(){return pn})),$e(Ge,"ScrollUpButton",(function(){return vn})),$e(Ge,"ScrollDownButton",(function(){return hn})),$e(Ge,"Separator",(function(){return mn}));var Ze=[" ","Enter","ArrowUp","ArrowDown"],Je=[" ","Enter"],et="Select",tt=M(et),nt=Object(u.a)(tt,3),rt=nt[0],ot=nt[1],at=K(et,[nt[2]]),it=Object(u.a)(at,2),ut=it[0],lt=it[1],ct=ut(et),st=Object(u.a)(ct,2),ft=st[0],dt=st[1],pt=function(e){var t=e.__scopeSelect,n=e.children,r=e.open,o=e.defaultOpen,a=e.onOpenChange,i=e.value,l=e.defaultValue,s=e.onValueChange,f=e.dir,d=e.name,p=e.autoComplete,v=Object(c.useState)(null),h=Object(u.a)(v,2),m=h[0],b=h[1],y=Object(c.useState)(null),g=Object(u.a)(y,2),w=g[0],O=g[1],E=Object(c.useState)(!1),S=Object(u.a)(E,2),j=S[0],k=S[1],_=_e(f),C=xe({prop:r,defaultProp:o,onChange:a}),T=Object(u.a)(C,2),x=T[0],R=void 0!==x&&x,P=T[1],N=xe({prop:i,defaultProp:l,onChange:s}),L=Object(u.a)(N,2),A=L[0],M=L[1],D=!m||Boolean(m.closest("form")),I=Object(c.useState)(null),z=Object(u.a)(I,2),F=z[0],V=z[1],U=Object(c.useRef)(null);return Object(c.createElement)(ft,{scope:t,trigger:m,onTriggerChange:b,valueNode:w,onValueNodeChange:O,valueNodeHasChildren:j,onValueNodeHasChildrenChange:k,contentId:Object($.a)(),value:A,onValueChange:M,open:R,onOpenChange:P,dir:_,bubbleSelect:F,triggerPointerDownPosRef:U},Object(c.createElement)(rt.Provider,{scope:t},n),D?Object(c.createElement)(Jt,{ref:V,"aria-hidden":!0,tabIndex:-1,name:d,autoComplete:p,value:A,onChange:function(e){return M(e.target.value)}}):null)},vt="SelectTrigger",ht=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,r=e.disabled,o=void 0!==r&&r,a=e["aria-labelledby"],s=Object(i.a)(e,Ie),f=dt(vt,n),d=V(t,f.onTriggerChange),p=ot(n),h=de(f.trigger),m=a||h,b=en((function(e){var t=p().filter((function(e){return!e.disabled})),n=t.find((function(e){return e.value===f.value})),r=tn(t,e,n);void 0!==r&&f.onValueChange(r.value)})),y=Object(u.a)(b,3),g=y[0],w=y[1],O=y[2],E=function(){o||(f.onOpenChange(!0),O())};return Object(c.createElement)(ee.button,Object(l.a)({type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-autocomplete":"none","aria-labelledby":m,dir:f.dir,"data-state":f.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":void 0===f.value?"":void 0},s,{ref:d,onPointerDown:Object(v.a)(s.onPointerDown,(function(e){e.target.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(E(),f.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:Object(v.a)(s.onKeyDown,(function(e){var t=""!==g.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||w(e.key),t&&" "===e.key||Ze.includes(e.key)&&(E(),e.preventDefault())}))}))})),mt="SelectValue",bt=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,r=(e.className,e.style,e.children),o=e.placeholder,a=Object(i.a)(e,ze),u=dt(mt,n),s=u.onValueNodeHasChildrenChange,f=void 0!==r,d=V(t,u.onValueNodeChange);return ve((function(){s(f)}),[s,f]),Object(c.createElement)(ee.span,Object(l.a)({},a,{ref:d,style:{pointerEvents:"none"}}),void 0===u.value&&void 0!==o?o:r)})),yt=Object(c.forwardRef)((function(e,t){e.__scopeSelect;var n=e.children,r=Object(i.a)(e,Fe);return Object(c.createElement)(ee.span,Object(l.a)({"aria-hidden":!0},r,{ref:t}),n||"\u25bc")})),gt="SelectContent",wt=Object(c.forwardRef)((function(e,t){var n=dt(gt,e.__scopeSelect),r=Object(c.useState)(),o=Object(u.a)(r,2),a=o[0],i=o[1];return ve((function(){i(new DocumentFragment)}),[]),n.open?Object(c.createElement)(_t,Object(l.a)({},e,{ref:t})):a?Object(f.createPortal)(Object(c.createElement)(jt,{scope:e.__scopeSelect},Object(c.createElement)(rt.Slot,{scope:e.__scopeSelect},Object(c.createElement)("div",null,e.children))),a):null})),Ot=10,Et=ut(gt),St=Object(u.a)(Et,2),jt=St[0],kt=St[1],_t=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,s=e.onCloseAutoFocus,f=Object(i.a)(e,Ve),d=dt(gt,n),h=Object(c.useState)(null),m=Object(u.a)(h,2),b=m[0],y=m[1],g=Object(c.useState)(null),w=Object(u.a)(g,2),O=w[0],E=w[1],S=Object(c.useState)(null),j=Object(u.a)(S,2),k=j[0],_=j[1],C=V(t,(function(e){return E(e)})),T=Object(c.useState)(null),x=Object(u.a)(T,2),R=x[0],P=x[1],N=Object(c.useState)(null),L=Object(u.a)(N,2),A=L[0],M=L[1],D=ot(n),I=Object(c.useState)(!1),z=Object(u.a)(I,2),F=z[0],U=z[1],B=Object(c.useRef)(!0),W=Object(c.useRef)(!1),H=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(O)return Object(Me.a)(O)}),[O]);var Y=Object(c.useCallback)((function(e){var t,n=D().map((function(e){return e.ref.current})),r=Object(a.a)(n),i=r[0],l=r.slice(1).slice(-1),c=Object(u.a)(l,1)[0],s=document.activeElement,f=Object(o.a)(e);try{for(f.s();!(t=f.n()).done;){var d=t.value;if(d===s)return;if(null===d||void 0===d||d.scrollIntoView({block:"nearest"}),d===i&&k&&(k.scrollTop=0),d===c&&k&&(k.scrollTop=k.scrollHeight),null===d||void 0===d||d.focus(),document.activeElement!==s)return}}catch(p){f.e(p)}finally{f.f()}}),[D,k]),K=Object(c.useCallback)((function(){if(d.trigger&&d.valueNode&&b&&O&&k&&R&&A){var e=d.trigger.getBoundingClientRect(),t=O.getBoundingClientRect(),n=d.valueNode.getBoundingClientRect(),r=A.getBoundingClientRect();if("rtl"!==d.dir){var o=r.left-t.left,a=n.left-o,i=e.left-a,u=e.width+i,l=Math.max(u,t.width),c=window.innerWidth-Ot,s=p(a,[Ot,c-l]);b.style.minWidth=u+"px",b.style.left=s+"px"}else{var f=t.right-r.right,v=window.innerWidth-n.right-f,h=window.innerWidth-e.right-v,m=e.width+h,y=Math.max(m,t.width),g=window.innerWidth-Ot,w=p(v,[Ot,g-y]);b.style.minWidth=m+"px",b.style.right=w+"px"}var E=D(),S=window.innerHeight-20,j=k.scrollHeight,_=window.getComputedStyle(O),C=parseInt(_.borderTopWidth,10),T=parseInt(_.paddingTop,10),x=parseInt(_.borderBottomWidth,10),P=C+T+j+parseInt(_.paddingBottom,10)+x,N=Math.min(5*R.offsetHeight,P),L=window.getComputedStyle(k),M=parseInt(L.paddingTop,10),I=parseInt(L.paddingBottom,10),z=e.top+e.height/2-Ot,F=S-z,V=R.offsetHeight/2,B=C+T+(R.offsetTop+V),H=P-B;if(B<=z){var Y=R===E[E.length-1].ref.current;b.style.bottom="0px";var K=O.clientHeight-k.offsetTop-k.offsetHeight,X=B+Math.max(F,V+(Y?I:0)+K+x);b.style.height=X+"px"}else{var q=R===E[0].ref.current;b.style.top="0px";var Q=Math.max(z,C+k.offsetTop+(q?M:0)+V)+H;b.style.height=Q+"px",k.scrollTop=B-z+k.offsetTop}b.style.margin="".concat(Ot,"px 0"),b.style.minHeight=N+"px",b.style.maxHeight=S+"px",U(!0),requestAnimationFrame((function(){return W.current=!0}))}}),[D,d.trigger,d.valueNode,b,O,k,R,A,d.dir]);ve((function(){return K()}),[K]);var X=Object(c.useCallback)((function(){return Y([R,O])}),[Y,R,O]);Object(c.useEffect)((function(){F&&X()}),[F,X]);var $=Object(c.useCallback)((function(e){e&&!0===B.current&&(K(),X(),B.current=!1)}),[K,X]),G=d.onOpenChange,Z=d.triggerPointerDownPosRef;Object(c.useEffect)((function(){if(O){var e={x:0,y:0},t=function(t){var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=Z.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=Z.current)||void 0===a?void 0:a.y)&&void 0!==o?o:0))}},n=function(n){e.x<=10&&e.y<=10?n.preventDefault():O.contains(n.target)||G(!1),document.removeEventListener("pointermove",t),Z.current=null};return null!==Z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),function(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[O,G,Z]),Object(c.useEffect)((function(){var e=function(){return G(!1)};return window.addEventListener("blur",e),window.addEventListener("resize",e),function(){window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[G]);var J=en((function(e){var t=D().filter((function(e){return!e.disabled})),n=t.find((function(e){return e.ref.current===document.activeElement})),r=tn(t,e,n);r&&setTimeout((function(){return r.ref.current.focus()}))})),ee=Object(u.a)(J,2),te=ee[0],ne=ee[1],re=Object(c.useCallback)((function(e,t,n){var r=!H.current&&!n;(void 0!==d.value&&d.value===t||r)&&(P(e),r&&(H.current=!0))}),[d.value]),oe=Object(c.useCallback)((function(){return null===O||void 0===O?void 0:O.focus()}),[O]),ae=Object(c.useCallback)((function(e,t,n){var r=!H.current&&!n;(void 0!==d.value&&d.value===t||r)&&M(e)}),[d.value]);return Object(c.createElement)(jt,{scope:n,contentWrapper:b,content:O,viewport:k,onViewportChange:_,itemRefCallback:re,selectedItem:R,onItemLeave:oe,itemTextRefCallback:ae,selectedItemText:A,onScrollButtonChange:$,isPositioned:F,shouldExpandOnScrollRef:W,searchRef:te},Object(c.createElement)(ge,null,Object(c.createElement)(De.a,null,Object(c.createElement)("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:0}},Object(c.createElement)(Q.a,{asChild:!0,trapped:d.open,onMountAutoFocus:function(e){e.preventDefault()},onUnmountAutoFocus:Object(v.a)(s,(function(e){var t;null===(t=d.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},Object(c.createElement)(q.a,Object(l.a)({role:"listbox",id:d.contentId,"data-state":d.open?"open":"closed",dir:d.dir,onContextMenu:function(e){return e.preventDefault()}},f,{ref:C,style:Object(r.a)({display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none"},f.style),disableOutsidePointerEvents:!0,onFocusOutside:function(e){return e.preventDefault()},onDismiss:function(){return d.onOpenChange(!1)},onKeyDown:Object(v.a)(f.onKeyDown,(function(e){var t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||ne(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){var n=D().filter((function(e){return!e.disabled})).map((function(e){return e.ref.current}));if(["ArrowUp","End"].includes(e.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){var r=e.target,o=n.indexOf(r);n=n.slice(o+1)}setTimeout((function(){return Y(n)})),e.preventDefault()}}))})))))))})),Ct="SelectViewport",Tt=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,o=Object(i.a)(e,Ue),a=kt(Ct,n),u=V(t,a.onViewportChange),s=Object(c.useRef)(0);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),Object(c.createElement)(rt.Slot,{scope:n},Object(c.createElement)(ee.div,Object(l.a)({"data-radix-select-viewport":"",role:"presentation"},o,{ref:u,style:Object(r.a)({position:"relative",flex:1,overflow:"auto"},o.style),onScroll:Object(v.a)(o.onScroll,(function(e){var t=e.currentTarget,n=a.contentWrapper,r=a.shouldExpandOnScrollRef;if(null!==r&&void 0!==r&&r.current&&n){var o=Math.abs(s.current-t.scrollTop);if(o>0){var i=window.innerHeight-20,u=parseFloat(n.style.minHeight),l=parseFloat(n.style.height),c=Math.max(u,l);if(c<i){var f=c+o,d=Math.min(i,f),p=f-d;n.style.height=d+"px","0px"===n.style.bottom&&(t.scrollTop=p>0?p:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),xt="SelectGroup",Rt=ut(xt),Pt=Object(u.a)(Rt,2),Nt=Pt[0],Lt=Pt[1],At=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,Be),o=Object($.a)();return Object(c.createElement)(Nt,{scope:n,id:o},Object(c.createElement)(ee.div,Object(l.a)({role:"group","aria-labelledby":o},r,{ref:t})))})),Mt="SelectLabel",Dt=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,We),o=Lt(Mt,n);return Object(c.createElement)(ee.div,Object(l.a)({id:o.id},r,{ref:t}))})),It="SelectItem",zt=ut(It),Ft=Object(u.a)(zt,2),Vt=Ft[0],Ut=Ft[1],Bt=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,r=e.value,o=e.disabled,a=void 0!==o&&o,s=e.textValue,f=Object(i.a)(e,He),d=dt(It,n),p=kt(It,n),h=d.value===r,m=Object(c.useState)(null!==s&&void 0!==s?s:""),b=Object(u.a)(m,2),y=b[0],g=b[1],w=Object(c.useState)(!1),O=Object(u.a)(w,2),E=O[0],S=O[1],j=V(t,(function(e){var t;return null===(t=p.itemRefCallback)||void 0===t?void 0:t.call(p,e,r,a)})),k=Object($.a)(),_=function(){a||(d.onValueChange(r),d.onOpenChange(!1))};return Object(c.createElement)(Vt,{scope:n,value:r,disabled:a,textId:k,isSelected:h,onItemTextChange:Object(c.useCallback)((function(e){g((function(t){var n;return t||(null!==(n=null===e||void 0===e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},Object(c.createElement)(rt.ItemSlot,{scope:n,value:r,disabled:a,textValue:y},Object(c.createElement)(ee.div,Object(l.a)({role:"option","aria-labelledby":k,"data-highlighted":E?"":void 0,"aria-selected":h&&E,"data-state":h?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},f,{ref:j,onFocus:Object(v.a)(f.onFocus,(function(){return S(!0)})),onBlur:Object(v.a)(f.onBlur,(function(){return S(!1)})),onPointerUp:Object(v.a)(f.onPointerUp,_),onPointerMove:Object(v.a)(f.onPointerMove,(function(e){var t;a?null===(t=p.onItemLeave)||void 0===t||t.call(p):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Object(v.a)(f.onPointerLeave,(function(e){var t;e.currentTarget===document.activeElement&&(null===(t=p.onItemLeave)||void 0===t||t.call(p))})),onKeyDown:Object(v.a)(f.onKeyDown,(function(e){var t;""!==(null===(t=p.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Je.includes(e.key)&&_()," "===e.key&&e.preventDefault())}))}))))})),Wt="SelectItemText",Ht=Object(c.forwardRef)((function(e,t){var n,r=e.__scopeSelect,o=(e.className,e.style,Object(i.a)(e,Ye)),a=dt(Wt,r),u=kt(Wt,r),s=Ut(Wt,r),d=Object(c.useRef)(null),p=V(t,d,s.onItemTextChange,(function(e){var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,s.value,s.disabled)}));return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(ee.span,Object(l.a)({id:s.textId},o,{ref:p})),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Object(f.createPortal)(o.children,a.valueNode):null,a.bubbleSelect?Object(f.createPortal)(Object(c.createElement)("option",{value:s.value},null===(n=d.current)||void 0===n?void 0:n.textContent),a.bubbleSelect):null)})),Yt="SelectItemIndicator",Kt=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,Ke);return Ut(Yt,n).isSelected?Object(c.createElement)(ee.span,Object(l.a)({"aria-hidden":!0},r,{ref:t})):null})),Xt="SelectScrollUpButton",qt=Object(c.forwardRef)((function(e,t){var n=kt(Xt,e.__scopeSelect),r=Object(c.useState)(!1),o=Object(u.a)(r,2),a=o[0],i=o[1],s=V(t,n.onScrollButtonChange);return ve((function(){if(n.viewport&&n.isPositioned){var e=function(){var e=t.scrollTop>0;i(e)},t=n.viewport;return e(),t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}}),[n.viewport,n.isPositioned]),a?Object(c.createElement)(Gt,Object(l.a)({},e,{ref:s,onAutoScroll:function(){var e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),Qt="SelectScrollDownButton",$t=Object(c.forwardRef)((function(e,t){var n=kt(Qt,e.__scopeSelect),r=Object(c.useState)(!1),o=Object(u.a)(r,2),a=o[0],i=o[1],s=V(t,n.onScrollButtonChange);return ve((function(){if(n.viewport&&n.isPositioned){var e=function(){var e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)},t=n.viewport;return e(),t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}}),[n.viewport,n.isPositioned]),a?Object(c.createElement)(Gt,Object(l.a)({},e,{ref:s,onAutoScroll:function(){var e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),Gt=Object(c.forwardRef)((function(e,t){var n=e.__scopeSelect,o=e.onAutoScroll,a=Object(i.a)(e,Xe),u=kt("SelectScrollButton",n),s=Object(c.useRef)(null),f=ot(n),d=Object(c.useCallback)((function(){null!==s.current&&(window.clearInterval(s.current),s.current=null)}),[]);return Object(c.useEffect)((function(){return function(){return d()}}),[d]),ve((function(){var e,t=f().find((function(e){return e.ref.current===document.activeElement}));null===t||void 0===t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[f]),Object(c.createElement)(ee.div,Object(l.a)({"aria-hidden":!0},a,{ref:t,style:Object(r.a)({flexShrink:0},a.style),onPointerMove:Object(v.a)(a.onPointerMove,(function(){var e;null===(e=u.onItemLeave)||void 0===e||e.call(u),null===s.current&&(s.current=window.setInterval(o,50))})),onPointerLeave:Object(v.a)(a.onPointerLeave,(function(){d()}))}))})),Zt=Object(c.forwardRef)((function(e,t){e.__scopeSelect;var n=Object(i.a)(e,qe);return Object(c.createElement)(ee.div,Object(l.a)({"aria-hidden":!0},n,{ref:t}))})),Jt=Object(c.forwardRef)((function(e,t){var n=e.value,r=Object(i.a)(e,Qe),o=Object(c.useRef)(null),a=V(t,o),u=Re(n);return Object(c.useEffect)((function(){var e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(u!==n&&r){var a=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(a)}}),[u,n]),Object(c.createElement)(Le,{asChild:!0},Object(c.createElement)("select",Object(l.a)({},r,{ref:a,defaultValue:n})))}));function en(e){var t=Object(Te.a)(e),n=Object(c.useRef)(""),r=Object(c.useRef)(0),o=Object(c.useCallback)((function(e){var o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((function(){return e("")}),1e3))}(o)}),[t]),a=Object(c.useCallback)((function(){n.current="",window.clearTimeout(r.current)}),[]);return Object(c.useEffect)((function(){return function(){return window.clearTimeout(r.current)}}),[]),[n,o,a]}function tn(e,t,n){var r,o,a=t.length>1&&Array.from(t).every((function(e){return e===t[0]}))?t[0]:t,i=n?e.indexOf(n):-1,u=(r=e,o=Math.max(i,0),r.map((function(e,t){return r[(o+t)%r.length]})));1===a.length&&(u=u.filter((function(e){return e!==n})));var l=u.find((function(e){return e.textValue.toLowerCase().startsWith(a.toLowerCase())}));return l!==n?l:void 0}var nn=pt,rn=ht,on=bt,an=yt,un=wt,ln=Tt,cn=At,sn=Dt,fn=Bt,dn=Ht,pn=Kt,vn=qt,hn=$t,mn=Zt},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(29);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(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)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(6),o=n(8),a=n(2),i=n(4),u=n(0),l=["scope","children"];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],c=function(){var t=n.map((function(e){return u.createContext(e)}));return function(n){var r=(null==n?void 0:n[e])||t;return u.useMemo((function(){return Object(o.a)({},"__scope".concat(e),Object(a.a)(Object(a.a)({},n),{},Object(o.a)({},e,r)))}),[n,r])}};return c.scopeName=e,[function(t,o){var a=u.createContext(o),c=n.length;function s(t){var n=t.scope,r=t.children,o=Object(i.a)(t,l),s=(null==n?void 0:n[e][c])||a,f=u.useMemo((function(){return o}),Object.values(o));return u.createElement(s.Provider,{value:f},r)}return n=[].concat(Object(r.a)(n),[o]),s.displayName=t+"Provider",[s,function(n,r){var i=(null==r?void 0:r[e][c])||a,l=u.useContext(i);if(l)return l;if(void 0!==o)return o;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},s.apply(void 0,[c].concat(Object(r.a)(t)))]}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(1===t.length)return r;var i=function(){var e=t.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(t){var n=e.reduce((function(e,n){var r=n.useScope,o=n.scopeName;return Object(a.a)(Object(a.a)({},e),r(t)["__scope".concat(o)])}),{});return u.useMemo((function(){return Object(o.a)({},"__scope".concat(r.scopeName),n)}),[n])}};return i.scopeName=r.scopeName,i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(0);function a(e){var t=o.useRef(e);return o.useEffect((function(){t.current=e})),o.useMemo((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return null===(n=t.current)||void 0===n?void 0:(e=n).call.apply(e,[t].concat(o))}}),[])}function i(e){var t=e.prop,n=e.defaultProp,i=e.onChange,u=void 0===i?function(){}:i,l=function(e){var t=e.defaultProp,n=e.onChange,i=o.useState(t),u=Object(r.a)(i,1)[0],l=o.useRef(u),c=a(n);return o.useEffect((function(){l.current!==u&&(c(u),l.current=u)}),[u,l,c]),i}({defaultProp:n,onChange:u}),c=Object(r.a)(l,2),s=c[0],f=c[1],d=void 0!==t,p=d?t:s,v=a(u);return[p,o.useCallback((function(e){if(d){var n="function"==typeof e?e(t):e;n!==t&&v(n)}else f(e)}),[d,t,f,v])]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return Le})),n.d(t,"d",(function(){return Ae})),n.d(t,"e",(function(){return Me})),n.d(t,"b",(function(){return De})),n.d(t,"a",(function(){return Ie}));var r=n(2),o=n(4),a=n(3),i=n(16),u=n(0),l=u["useId".toString()]||function(){},c=0;var s=n(38),f=n(18),d=n(5),p=["children"],v=["children"],h=u.forwardRef((function(e,t){var n=e.children,r=Object(o.a)(e,p);return u.Children.toArray(n).some(y)?u.createElement(u.Fragment,null,u.Children.map(n,(function(e){return y(e)?u.createElement(m,Object(d.a)({},r,{ref:t}),e.props.children):e}))):u.createElement(m,Object(d.a)({},r,{ref:t}),n)}));h.displayName="Slot";var m=u.forwardRef((function(e,t){var n=e.children,a=Object(o.a)(e,v);return u.isValidElement(n)?u.cloneElement(n,Object(r.a)(Object(r.a)({},function(e,t){var n=Object(r.a)({},t),o=function(o){var a=e[o],i=t[o];/^on[A-Z]/.test(o)?n[o]=function(){null==i||i.apply(void 0,arguments),null==a||a.apply(void 0,arguments)}:"style"===o?n[o]=Object(r.a)(Object(r.a)({},a),i):"className"===o&&(n[o]=[a,i].filter(Boolean).join(" "))};for(var a in t)o(a);return Object(r.a)(Object(r.a)({},e),n)}(a,n.props)),{},{ref:Object(f.a)(t,n.ref)})):u.Children.count(n)>1?u.Children.only(null):null}));m.displayName="SlotClone";var b=function(e){var t=e.children;return u.createElement(u.Fragment,null,t)};function y(e){return u.isValidElement(e)&&e.type===b}var g,w=n(17),O=n(12),E=n.n(O),S=["containerRef","style"],j=u.forwardRef((function(e,t){var n,l,c=e.containerRef,s=e.style,f=Object(o.a)(e,S),p=null!==(n=null==c?void 0:c.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(l=globalThis.document)||void 0===l?void 0:l.body,v=u.useState({}),h=Object(a.a)(v,2)[1];return Object(i.a)((function(){h({})}),[]),p?E.a.createPortal(u.createElement(w.a.div,Object(d.a)({"data-radix-portal":""},f,{ref:t,style:p===document.body?Object(r.a)({position:"absolute",top:0,left:0,zIndex:2147483647},s):void 0})),p):null})),k=["children","width","height"],_=u.forwardRef((function(e,t){var n=e.children,r=e.width,a=void 0===r?10:r,i=e.height,l=void 0===i?5:i,c=Object(o.a)(e,k);return u.createElement(w.a.svg,Object(d.a)({},c,{ref:t,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:u.createElement("polygon",{points:"0,0 30,0 15,10"}))})),C=n(30);var T=new Map;function x(){var e=[];T.forEach((function(t,n){var r,o,a=n.getBoundingClientRect();o=a,((r=t.rect).width!==o.width||r.height!==o.height||r.top!==o.top||r.right!==o.right||r.bottom!==o.bottom||r.left!==o.left)&&(t.rect=a,e.push(t))})),e.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),g=requestAnimationFrame(x)}function R(e){var t=u.useState(),n=Object(a.a)(t,2),r=n[0],o=n[1];return u.useEffect((function(){if(e){var t=function(e,t){var n=T.get(e);return void 0===n?(T.set(e,{rect:{},callbacks:[t]}),1===T.size&&(g=requestAnimationFrame(x))):(n.callbacks.push(t),t(e.getBoundingClientRect())),function(){var n=T.get(e);if(void 0!==n){var r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(T.delete(e),0===T.size&&cancelAnimationFrame(g))}}}(e,o);return function(){o(void 0),t()}}}),[e]),r}var P=n(24),N=n(8);function L(e,t,n){var r=e["x"===n?"left":"top"],o="x"===n?"width":"height",a=e[o],i=t[o];return{before:r-i,start:r,center:r+(a-i)/2,end:r+a-i,after:r+a}}function A(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:"translate3d(".concat(Math.round(e.x+window.scrollX),"px, ").concat(Math.round(e.y+window.scrollY),"px, 0)")}}function M(e,t,n,r,o){var a="top"===t||"bottom"===t,i=o?o.width:0,u=o?o.height:0,l=i/2+r,c="",s="";return a?(c={start:"".concat(l,"px"),center:"center",end:e.width-l+"px"}[n],s="top"===t?"".concat(e.height+u,"px"):-u+"px"):(c="left"===t?"".concat(e.width+u,"px"):-u+"px",s={start:"".concat(l,"px"),center:"center",end:e.height-l+"px"}[n]),"".concat(c," ").concat(s)}var D={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},I={position:"absolute",opacity:0};function z(e){var t,n=e.popperSize,r=e.arrowSize,o=e.arrowOffset,a=e.side,i=e.align,u=(n.width-r.width)/2,l=(n.height-r.width)/2,c={top:0,right:90,bottom:180,left:-90}[a],s=Math.max(r.width,r.height),f=(t={width:"".concat(s,"px"),height:"".concat(s,"px"),transform:"rotate(".concat(c,"deg)"),willChange:"transform",position:"absolute"},Object(N.a)(t,a,"100%"),Object(N.a)(t,"direction",function(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}(a,i)),t);return"top"!==a&&"bottom"!==a||("start"===i&&(f.left="".concat(o,"px")),"center"===i&&(f.left="".concat(u,"px")),"end"===i&&(f.right="".concat(o,"px"))),"left"!==a&&"right"!==a||("start"===i&&(f.top="".concat(o,"px")),"center"===i&&(f.top="".concat(l,"px")),"end"===i&&(f.bottom="".concat(o,"px"))),f}function F(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function V(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}var U=["__scopePopper","virtualRef"],B=["__scopePopper","side","sideOffset","align","alignOffset","collisionTolerance","avoidCollisions"],W=["__scopePopper","offset"],H=Object(P.a)("Popper"),Y=Object(a.a)(H,2),K=Y[0],X=Y[1],q=K("Popper"),Q=Object(a.a)(q,2),$=Q[0],G=Q[1],Z=u.forwardRef((function(e,t){var n=e.__scopePopper,r=e.virtualRef,a=Object(o.a)(e,U),i=G("PopperAnchor",n),l=u.useRef(null),c=Object(f.b)(t,l);return u.useEffect((function(){i.onAnchorChange((null==r?void 0:r.current)||l.current)})),r?null:u.createElement(w.a.div,Object(d.a)({},a,{ref:c}))})),J=K("PopperContent"),ee=Object(a.a)(J,2),te=ee[0],ne=ee[1],re=u.forwardRef((function(e,t){var n=e.__scopePopper,i=e.side,l=void 0===i?"bottom":i,c=e.sideOffset,s=e.align,p=void 0===s?"center":s,v=e.alignOffset,h=e.collisionTolerance,m=e.avoidCollisions,b=void 0===m||m,y=Object(o.a)(e,B),g=G("PopperContent",n),O=u.useState(),E=Object(a.a)(O,2),S=E[0],j=E[1],k=R(g.anchor),_=u.useState(null),T=Object(a.a)(_,2),x=T[0],P=T[1],N=Object(C.a)(x),U=u.useState(null),W=Object(a.a)(U,2),H=W[0],Y=W[1],K=Object(C.a)(H),X=Object(f.b)(t,(function(e){return P(e)})),q=function(){var e=u.useState(void 0),t=Object(a.a)(e,2),n=t[0],r=t[1];return u.useEffect((function(){var e;function t(){r({width:window.innerWidth,height:window.innerHeight})}function n(){window.clearTimeout(e),e=window.setTimeout(t,100)}return t(),window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}),[]),n}(),Q=function(e){var t=e.anchorRect,n=e.popperSize,o=e.arrowSize,a=e.arrowOffset,i=void 0===a?0:a,u=e.side,l=e.sideOffset,c=void 0===l?0:l,s=e.align,f=e.alignOffset,d=void 0===f?0:f,p=e.shouldAvoidCollisions,v=void 0===p||p,h=e.collisionBoundariesRect,m=e.collisionTolerance,b=void 0===m?0:m;if(!t||!n||!h)return{popperStyles:D,arrowStyles:I};var y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=o?o.height:0,i=L(t,e,"x"),u=L(t,e,"y"),l=u.before-n-a,c=u.after+n+a,s=i.before-n-a,f=i.after+n+a;return{top:{start:{x:i.start+r,y:l},center:{x:i.center,y:l},end:{x:i.end-r,y:l}},right:{start:{x:f,y:u.start+r},center:{x:f,y:u.center},end:{x:f,y:u.end-r}},bottom:{start:{x:i.start+r,y:c},center:{x:i.center,y:c},end:{x:i.end-r,y:c}},left:{start:{x:s,y:u.start+r},center:{x:s,y:u.center},end:{x:s,y:u.end-r}}}}(n,t,c,d,o),g=y[u][s];if(!1===v){var w=A(g),O=I;return o&&(O=z({popperSize:n,arrowSize:o,arrowOffset:i,side:u,align:s})),{popperStyles:Object(r.a)(Object(r.a)({},w),{},{"--radix-popper-transform-origin":M(n,u,s,i,o)}),arrowStyles:O,placedSide:u,placedAlign:s}}var E,S,j=DOMRect.fromRect(Object(r.a)(Object(r.a)({},n),g)),k=(E=h,S=b,DOMRect.fromRect({width:E.width-2*S,height:E.height-2*S,x:E.left+S,y:E.top+S})),_=V(j,k),C=y[F(u)][s],T=function(e,t,n){var r=F(e);return t[e]&&!n[r]?r:e}(u,_,V(DOMRect.fromRect(Object(r.a)(Object(r.a)({},n),C)),k)),x=function(e,t,n,r,o){var a="top"===n||"bottom"===n,i=a?"left":"top",u=a?"right":"bottom",l=a?"width":"height",c=t[l]>e[l];return"start"!==r&&"center"!==r||!(o[i]&&c||o[u]&&!c)?"end"!==r&&"center"!==r||!(o[u]&&c||o[i]&&!c)?r:"start":"end"}(n,t,u,s,_),R=A(y[T][x]),P=I;return o&&(P=z({popperSize:n,arrowSize:o,arrowOffset:i,side:T,align:x})),{popperStyles:Object(r.a)(Object(r.a)({},R),{},{"--radix-popper-transform-origin":M(n,T,x,i,o)}),arrowStyles:P,placedSide:T,placedAlign:x}}({anchorRect:k,popperSize:N,arrowSize:K,arrowOffset:S,side:l,sideOffset:c,align:p,alignOffset:v,shouldAvoidCollisions:b,collisionBoundariesRect:q?DOMRect.fromRect(Object(r.a)(Object(r.a)({},q),{},{x:0,y:0})):void 0,collisionTolerance:h}),$=Q.popperStyles,Z=Q.arrowStyles,J=Q.placedSide,ee=Q.placedAlign,ne=void 0!==J;return u.createElement("div",{style:$,"data-radix-popper-content-wrapper":""},u.createElement(te,{scope:n,arrowStyles:Z,onArrowChange:Y,onArrowOffsetChange:j},u.createElement(w.a.div,Object(d.a)({"data-side":J,"data-align":ee},y,{style:Object(r.a)(Object(r.a)({},y.style),{},{animation:ne?void 0:"none"}),ref:X}))))})),oe=function(e){var t=e.__scopePopper,n=e.children,r=u.useState(null),o=Object(a.a)(r,2),i=o[0],l=o[1];return u.createElement($,{scope:t,anchor:i,onAnchorChange:l},n)},ae=Z,ie=re,ue=u.forwardRef((function(e,t){var n=e.__scopePopper,a=e.offset,i=Object(o.a)(e,W),l=ne("PopperArrow",n),c=l.onArrowOffsetChange;return u.useEffect((function(){return c(a)}),[c,a]),u.createElement("span",{style:Object(r.a)(Object(r.a)({},l.arrowStyles),{},{pointerEvents:"none"})},u.createElement("span",{ref:l.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},u.createElement(_,Object(d.a)({},i,{ref:t,style:Object(r.a)(Object(r.a)({},i.style),{},{display:"block"})}))))})),le=n(37),ce=n(31);function se(e){var t=function(e){var t=u.useRef(e);return u.useEffect((function(){t.current=e})),u.useMemo((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return null===(n=t.current)||void 0===n?void 0:(e=n).call.apply(e,[t].concat(o))}}),[])}(e);u.useEffect((function(){var e=function(e){"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[t])}var fe=n(25),de=n(9),pe=["__scopeTooltip"],ve=["forceMount"],he=["__scopeTooltip","children","aria-label","portalled"],me=["__scopeTooltip"],be=Object(P.a)("Tooltip",[X]),ye=Object(a.a)(be,2),ge=ye[0],we=(ye[1],X()),Oe=ge("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:function(){},onClose:function(){}}),Ee=Object(a.a)(Oe,2),Se=Ee[0],je=Ee[1],ke=ge("Tooltip"),_e=Object(a.a)(ke,2),Ce=_e[0],Te=_e[1],xe=u.forwardRef((function(e,t){var n=e.__scopeTooltip,r=Object(o.a)(e,pe),a=Te("TooltipTrigger",n),i=we(n),l=Object(f.b)(t,a.onTriggerChange),c=u.useRef(!1),s=u.useCallback((function(){return c.current=!1}),[]);return u.useEffect((function(){return function(){return document.removeEventListener("mouseup",s)}}),[s]),u.createElement(ae,Object(d.a)({asChild:!0},i),u.createElement(w.a.button,Object(d.a)({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:l,onMouseEnter:Object(de.a)(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Object(de.a)(e.onMouseLeave,a.onClose),onMouseDown:Object(de.a)(e.onMouseDown,(function(){a.onClose(),c.current=!0,document.addEventListener("mouseup",s,{once:!0})})),onFocus:Object(de.a)(e.onFocus,(function(){c.current||a.onOpen()})),onBlur:Object(de.a)(e.onBlur,a.onClose),onClick:Object(de.a)(e.onClick,(function(e){0===e.detail&&a.onClose()}))})))})),Re=u.forwardRef((function(e,t){var n=e.forceMount,r=Object(o.a)(e,ve),a=Te("TooltipContent",e.__scopeTooltip);return u.createElement(le.a,{present:n||a.open},u.createElement(Pe,Object(d.a)({ref:t},r)))})),Pe=u.forwardRef((function(e,t){var n=e.__scopeTooltip,a=e.children,i=e["aria-label"],l=e.portalled,c=void 0===l||l,f=Object(o.a)(e,he),p=Te("TooltipContent",n),v=we(n),h=c?j:u.Fragment,m=p.onClose;return se((function(){return m()})),u.useEffect((function(){return document.addEventListener("tooltip.open",m),function(){return document.removeEventListener("tooltip.open",m)}}),[m]),u.createElement(h,null,u.createElement(Ne,{__scopeTooltip:n}),u.createElement(ie,Object(d.a)({"data-state":p.stateAttribute},v,f,{ref:t,style:Object(r.a)(Object(r.a)({},f.style),{},{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"})}),u.createElement(b,null,a),u.createElement(s.a,{id:p.contentId,role:"tooltip"},i||a)))}));function Ne(e){var t=e.__scopeTooltip,n=Te("CheckTriggerMoved",t),r=R(n.trigger),o=null==r?void 0:r.left,a=Object(ce.a)(o),i=null==r?void 0:r.top,l=Object(ce.a)(i),c=n.onClose;return u.useEffect((function(){(void 0!==a&&a!==o||void 0!==l&&l!==i)&&c()}),[c,a,l,o,i]),null}var Le=function(e){var t=e.__scopeTooltip,n=e.delayDuration,r=void 0===n?700:n,o=e.skipDelayDuration,i=void 0===o?300:o,l=e.children,c=u.useState(!0),s=Object(a.a)(c,2),f=s[0],d=s[1],p=u.useRef(0);return u.useEffect((function(){var e=p.current;return function(){return window.clearTimeout(e)}}),[]),u.createElement(Se,{scope:t,isOpenDelayed:f,delayDuration:r,onOpen:u.useCallback((function(){window.clearTimeout(p.current),d(!1)}),[]),onClose:u.useCallback((function(){window.clearTimeout(p.current),p.current=window.setTimeout((function(){return d(!0)}),i)}),[i])},l)},Ae=function(e){var t=e.__scopeTooltip,n=e.children,r=e.open,o=e.defaultOpen,s=void 0!==o&&o,f=e.onOpenChange,d=e.delayDuration,p=je("Tooltip",t),v=we(t),h=u.useState(null),m=Object(a.a)(h,2),b=m[0],y=m[1],g=function(e){var t=u.useState(l()),n=Object(a.a)(t,2),r=n[0],o=n[1];return Object(i.a)((function(){e||o((function(e){return null!=e?e:String(c++)}))}),[e]),e||(r?"radix-".concat(r):"")}(),w=u.useRef(0),O=null!=d?d:p.delayDuration,E=u.useRef(!1),S=p.onOpen,j=p.onClose,k=Object(fe.a)({prop:r,defaultProp:s,onChange:function(e){e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),S()),null==f||f(e)}}),_=Object(a.a)(k,2),C=_[0],T=void 0!==C&&C,x=_[1],R=u.useMemo((function(){return T?E.current?"delayed-open":"instant-open":"closed"}),[T]),P=u.useCallback((function(){window.clearTimeout(w.current),E.current=!1,x(!0)}),[x]),N=u.useCallback((function(){window.clearTimeout(w.current),w.current=window.setTimeout((function(){E.current=!0,x(!0)}),O)}),[O,x]);return u.useEffect((function(){return function(){return window.clearTimeout(w.current)}}),[]),u.createElement(oe,v,u.createElement(Ce,{scope:t,contentId:g,open:T,stateAttribute:R,trigger:b,onTriggerChange:y,onTriggerEnter:u.useCallback((function(){p.isOpenDelayed?N():P()}),[p.isOpenDelayed,N,P]),onOpen:u.useCallback(P,[P]),onClose:u.useCallback((function(){window.clearTimeout(w.current),x(!1),j()}),[x,j])},n))},Me=xe,De=Re,Ie=u.forwardRef((function(e,t){var n=e.__scopeTooltip,r=Object(o.a)(e,me),a=we(n);return u.createElement(ue,Object(d.a)({},a,r,{ref:t}))}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return Je})),n.d(t,"c",(function(){return tt})),n.d(t,"b",(function(){return nt})),n.d(t,"a",(function(){return rt})),n.d(t,"e",(function(){return ot}));var r=n(2),o=n(4),a=n(3),i=n(5),u=n(0),l=n(9);function c(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var s={};function f(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return f(t,e)}))}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(u.useCallback)(d.apply(void 0,t),t)}c(s,"composeRefs",(function(){return d})),c(s,"useComposedRefs",(function(){return p}));var v=n(8),h=n(6),m=["children"],b=["scope","children"];function y(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var g={};function w(e,t){var n=Object(u.createContext)(t);function r(e){var t=e.children,r=Object(o.a)(e,m),a=Object(u.useMemo)((function(){return r}),Object.values(r));return Object(u.createElement)(n.Provider,{value:a},t)}return r.displayName=e+"Provider",[r,function(r){var o=Object(u.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function a(t,r){var a=Object(u.createContext)(r),i=n.length;function l(t){var n=t.scope,r=t.children,l=Object(o.a)(t,b),c=(null===n||void 0===n?void 0:n[e][i])||a,s=Object(u.useMemo)((function(){return l}),Object.values(l));return Object(u.createElement)(c.Provider,{value:s},r)}return n=[].concat(Object(h.a)(n),[r]),l.displayName=t+"Provider",[l,function(n,o){var l=(null===o||void 0===o?void 0:o[e][i])||a,c=Object(u.useContext)(l);if(c)return c;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]}var i=function(){var t=n.map((function(e){return Object(u.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(u.useMemo)((function(){return Object(v.a)({},"__scope".concat(e),Object(r.a)(Object(r.a)({},n),{},Object(v.a)({},e,o)))}),[n,o])}};return i.scopeName=e,[a,E.apply(void 0,[i].concat(Object(h.a)(t)))]}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(1===t.length)return o;var a=function(){var e=t.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(t){var n=e.reduce((function(e,n){var o=n.useScope,a=n.scopeName,i=o(t)["__scope".concat(a)];return Object(r.a)(Object(r.a)({},e),i)}),{});return Object(u.useMemo)((function(){return Object(v.a)({},"__scope".concat(o.scopeName),n)}),[n])}};return a.scopeName=o.scopeName,a}y(g,"createContext",(function(){return w})),y(g,"createContextScope",(function(){return O}));var S=n(21),j=n(15);var k,_,C,T;function x(e){var t=e.prop,n=e.defaultProp,r=e.onChange,o=void 0===r?function(){}:r,i=function(e){var t=e.defaultProp,n=e.onChange,r=Object(u.useState)(t),o=Object(a.a)(r,1)[0],i=Object(u.useRef)(o),l=Object(j.a)(n);return Object(u.useEffect)((function(){i.current!==o&&(l(o),i.current=o)}),[o,i,l]),r}({defaultProp:n,onChange:o}),l=Object(a.a)(i,2),c=l[0],s=l[1],f=void 0!==t,d=f?t:c,p=Object(j.a)(o);return[d,Object(u.useCallback)((function(e){if(f){var n="function"===typeof e?e(t):e;n!==t&&p(n)}else s(e)}),[f,t,s,p])]}k={},_="useControllableState",C=function(){return x},Object.defineProperty(k,_,{get:C,set:T,enumerable:!0,configurable:!0});var R=n(39),P=n(40),N=n(12),L=n.n(N);!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useLayoutEffect",(function(){return A}));var A=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u.useLayoutEffect:function(){},M=n(19),D=["asChild"];function I(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var z={};I(z,"Primitive",(function(){return F})),I(z,"dispatchDiscreteCustomEvent",(function(){return V})),I(z,"Root",(function(){return U}));var F=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(r.a)(Object(r.a)({},e),{},Object(v.a)({},t,Object(u.forwardRef)((function(e,n){var r=e.asChild,a=Object(o.a)(e,D),l=r?M.a:t;return Object(u.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(u.createElement)(l,Object(i.a)({},a,{ref:n}))}))))}),{});function V(e,t){e&&Object(N.flushSync)((function(){return e.dispatchEvent(t)}))}var U=F,B=["containerRef","style"],W=["container"];function H(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Y={};H(Y,"Portal",(function(){return K})),H(Y,"UnstablePortal",(function(){return X})),H(Y,"Root",(function(){return q}));var K=Object(u.forwardRef)((function(e,t){var n,l,c=e.containerRef,s=e.style,f=Object(o.a)(e,B),d=null!==(n=null===c||void 0===c?void 0:c.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(l=globalThis.document)||void 0===l?void 0:l.body,p=Object(u.useState)({}),v=Object(a.a)(p,2)[1];return A((function(){v({})}),[]),d?L.a.createPortal(Object(u.createElement)(F.div,Object(i.a)({"data-radix-portal":""},f,{ref:t,style:d===document.body?Object(r.a)({position:"absolute",top:0,left:0,zIndex:2147483647},s):void 0})),d):null})),X=Object(u.forwardRef)((function(e,t){var n,r=e.container,a=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,l=Object(o.a)(e,W);return a?L.a.createPortal(Object(u.createElement)(F.div,Object(i.a)({},l,{ref:t})),a):null})),q=K;!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"Presence",(function(){return Q}));var Q=function(e){var t=e.present,n=e.children,r=function(e){var t=Object(u.useState)(),n=Object(a.a)(t,2),r=n[0],o=n[1],i=Object(u.useRef)({}),l=Object(u.useRef)(e),c=Object(u.useRef)("none"),s=function(e,t){return Object(u.useReducer)((function(e,n){var r=t[e][n];return null!==r&&void 0!==r?r:e}),e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=Object(a.a)(s,2),d=f[0],p=f[1];return Object(u.useEffect)((function(){var e=$(i.current);c.current="mounted"===d?e:"none"}),[d]),A((function(){var t=i.current,n=l.current;if(n!==e){var r=c.current,o=$(t);if(e)p("MOUNT");else if("none"===o||"none"===(null===t||void 0===t?void 0:t.display))p("UNMOUNT");else{p(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}l.current=e}}),[e,p]),A((function(){if(r){var e=function(e){var t=$(i.current).includes(e.animationName);e.target===r&&t&&Object(N.flushSync)((function(){return p("ANIMATION_END")}))},t=function(e){e.target===r&&(c.current=$(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),function(){r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[r,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:Object(u.useCallback)((function(e){e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(t),o="function"===typeof n?n({present:r.isPresent}):u.Children.only(n),i=p(r.ref,o.ref);return"function"===typeof n||r.isPresent?Object(u.cloneElement)(o,{ref:i}):null};function $(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}function G(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Q.displayName="Presence";var Z={};G(Z,"FocusGuards",(function(){return ee})),G(Z,"useFocusGuards",(function(){return te})),G(Z,"Root",(function(){return re}));var J=0;function ee(e){return te(),e.children}function te(){Object(u.useEffect)((function(){var e,t,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ne()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ne()),J++,function(){1===J&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(e){return e.remove()})),J--}}),[])}function ne(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var re=ee,oe=n(59),ae=n(36),ie=["__scopeDialog"],ue=["forceMount"],le=["__scopeDialog"],ce=["forceMount"],se=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],fe=["__scopeDialog"],de=["__scopeDialog"],pe=["__scopeDialog"];function ve(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var he={};ve(he,"createDialogScope",(function(){return we})),ve(he,"Dialog",(function(){return ke})),ve(he,"DialogTrigger",(function(){return Ce})),ve(he,"DialogPortal",(function(){return Le})),ve(he,"DialogOverlay",(function(){return Me})),ve(he,"DialogContent",(function(){return ze})),ve(he,"DialogTitle",(function(){return We})),ve(he,"DialogDescription",(function(){return Ye})),ve(he,"DialogClose",(function(){return Xe})),ve(he,"WarningProvider",(function(){return Ze})),ve(he,"Root",(function(){return Je})),ve(he,"Trigger",(function(){return et})),ve(he,"Portal",(function(){return tt})),ve(he,"Overlay",(function(){return nt})),ve(he,"Content",(function(){return rt})),ve(he,"Title",(function(){return ot})),ve(he,"Description",(function(){return at})),ve(he,"Close",(function(){return it}));var me="Dialog",be=O(me),ye=Object(a.a)(be,2),ge=ye[0],we=ye[1],Oe=ge(me),Ee=Object(a.a)(Oe,2),Se=Ee[0],je=Ee[1],ke=function(e){var t=e.__scopeDialog,n=e.children,r=e.open,o=e.defaultOpen,i=e.onOpenChange,l=e.modal,c=void 0===l||l,s=e.allowPinchZoom,f=Object(u.useRef)(null),d=Object(u.useRef)(null),p=x({prop:r,defaultProp:o,onChange:i}),v=Object(a.a)(p,2),h=v[0],m=void 0!==h&&h,b=v[1];return Object(u.createElement)(Se,{scope:t,triggerRef:f,contentRef:d,contentId:Object(S.a)(),titleId:Object(S.a)(),descriptionId:Object(S.a)(),open:m,onOpenChange:b,onOpenToggle:Object(u.useCallback)((function(){return b((function(e){return!e}))}),[b]),modal:c,allowPinchZoom:s},n)},_e="DialogTrigger",Ce=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,ie),a=je(_e,n),c=p(t,a.triggerRef);return Object(u.createElement)(F.button,Object(i.a)({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":qe(a.open)},r,{ref:c,onClick:Object(l.a)(e.onClick,a.onOpenToggle)}))})),Te="DialogPortal",xe=ge(Te,{forceMount:void 0}),Re=Object(a.a)(xe,2),Pe=Re[0],Ne=Re[1],Le=function(e){var t=e.__scopeDialog,n=e.forceMount,r=e.children,o=e.container,a=je(Te,t);return Object(u.createElement)(Pe,{scope:t,forceMount:n},u.Children.map(r,(function(e){return Object(u.createElement)(Q,{present:n||a.open},Object(u.createElement)(X,{asChild:!0,container:o},e))})))},Ae="DialogOverlay",Me=Object(u.forwardRef)((function(e,t){var n=Ne(Ae,e.__scopeDialog),r=e.forceMount,a=void 0===r?n.forceMount:r,l=Object(o.a)(e,ue),c=je(Ae,e.__scopeDialog);return c.modal?Object(u.createElement)(Q,{present:a||c.open},Object(u.createElement)(De,Object(i.a)({},l,{ref:t}))):null})),De=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,a=Object(o.a)(e,le),l=je(Ae,n);return Object(u.createElement)(oe.a,{as:M.a,allowPinchZoom:l.allowPinchZoom,shards:[l.contentRef]},Object(u.createElement)(F.div,Object(i.a)({"data-state":qe(l.open)},a,{ref:t,style:Object(r.a)({pointerEvents:"auto"},a.style)})))})),Ie="DialogContent",ze=Object(u.forwardRef)((function(e,t){var n=Ne(Ie,e.__scopeDialog),r=e.forceMount,a=void 0===r?n.forceMount:r,l=Object(o.a)(e,ce),c=je(Ie,e.__scopeDialog);return Object(u.createElement)(Q,{present:a||c.open},c.modal?Object(u.createElement)(Fe,Object(i.a)({},l,{ref:t})):Object(u.createElement)(Ve,Object(i.a)({},l,{ref:t})))})),Fe=Object(u.forwardRef)((function(e,t){var n=je(Ie,e.__scopeDialog),r=Object(u.useRef)(null),o=p(t,n.contentRef,r);return Object(u.useEffect)((function(){var e=r.current;if(e)return Object(ae.a)(e)}),[]),Object(u.createElement)(Ue,Object(i.a)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Object(l.a)(e.onCloseAutoFocus,(function(e){var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Object(l.a)(e.onPointerDownOutside,(function(e){var t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Object(l.a)(e.onFocusOutside,(function(e){return e.preventDefault()}))}))})),Ve=Object(u.forwardRef)((function(e,t){var n=je(Ie,e.__scopeDialog),r=Object(u.useRef)(!1);return Object(u.createElement)(Ue,Object(i.a)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(t){var o,a;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1},onInteractOutside:function(t){var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);var i=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(i))&&t.preventDefault()}}))})),Ue=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=e.trapFocus,a=e.onOpenAutoFocus,l=e.onCloseAutoFocus,c=Object(o.a)(e,se),s=je(Ie,n),f=p(t,Object(u.useRef)(null));return te(),Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.a,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:l},Object(u.createElement)(R.a,Object(i.a)({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":qe(s.open)},c,{ref:f,onDismiss:function(){return s.onOpenChange(!1)}}))),!1)})),Be="DialogTitle",We=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,fe),a=je(Be,n);return Object(u.createElement)(F.h2,Object(i.a)({id:a.titleId},r,{ref:t}))})),He="DialogDescription",Ye=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,de),a=je(He,n);return Object(u.createElement)(F.p,Object(i.a)({id:a.descriptionId},r,{ref:t}))})),Ke="DialogClose",Xe=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,pe),a=je(Ke,n);return Object(u.createElement)(F.button,Object(i.a)({type:"button"},r,{ref:t,onClick:Object(l.a)(e.onClick,(function(){return a.onOpenChange(!1)}))}))}));function qe(e){return e?"open":"closed"}var Qe="DialogTitleWarning",$e=w(Qe,{contentName:Ie,titleName:Be,docsSlug:"dialog"}),Ge=Object(a.a)($e,2),Ze=Ge[0],Je=(Ge[1],ke),et=Ce,tt=Le,nt=Me,rt=ze,ot=We,at=Ye,it=Xe},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(33),o=n(34),a=n(23),i=n(35);function u(e){return Object(r.a)(e)||Object(o.a)(e)||Object(a.a)(e)||Object(i.a)()}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(0);function a(e){var t=o.useState(void 0),n=Object(r.a)(t,2),a=n[0],i=n[1];return o.useEffect((function(){if(e){var t=new ResizeObserver((function(t){if(Array.isArray(t)&&t.length){var n,r,o=t[0];if("borderBoxSize"in o){var a=o.borderBoxSize,u=Array.isArray(a)?a[0]:a;n=u.inlineSize,r=u.blockSize}else{var l=e.getBoundingClientRect();n=l.width,r=l.height}i({width:n,height:r})}}));return t.observe(e,{box:"border-box"}),function(){return t.unobserve(e)}}i(void 0)}),[e]),a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t=r.useRef({value:e,previous:e});return r.useMemo((function(){return t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous}),[e])}},function(e,t,n){"use strict";n.d(t,"b",(function(){return ve})),n.d(t,"d",(function(){return he})),n.d(t,"c",(function(){return me})),n.d(t,"a",(function(){return be}));var r=n(2),o=n(6),a=n(4),i=n(3),u=n(38),l=n(16),c=n(25),s=n(0);function f(e){var t=s.useRef(e);return s.useEffect((function(){t.current=e})),s.useMemo((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return null===(n=t.current)||void 0===n?void 0:(e=n).call.apply(e,[t].concat(o))}}),[])}var d=n(8);function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(t,e)}))}}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.useCallback(p.apply(void 0,t),t)}var h=n(5),m=["children"],b=["children"],y=s.forwardRef((function(e,t){var n=e.children,r=Object(a.a)(e,m);return s.Children.toArray(n).some(O)?s.createElement(s.Fragment,null,s.Children.map(n,(function(e){return O(e)?s.createElement(g,Object(h.a)({},r,{ref:t}),e.props.children):e}))):s.createElement(g,Object(h.a)({},r,{ref:t}),n)}));y.displayName="Slot";var g=s.forwardRef((function(e,t){var n=e.children,o=Object(a.a)(e,b);return s.isValidElement(n)?s.cloneElement(n,Object(r.a)(Object(r.a)({},function(e,t){var n=Object(r.a)({},t),o=function(o){var a=e[o],i=t[o];/^on[A-Z]/.test(o)?n[o]=function(){null==i||i.apply(void 0,arguments),null==a||a.apply(void 0,arguments)}:"style"===o?n[o]=Object(r.a)(Object(r.a)({},a),i):"className"===o&&(n[o]=[a,i].filter(Boolean).join(" "))};for(var a in t)o(a);return Object(r.a)(Object(r.a)({},e),n)}(o,n.props)),{},{ref:p(t,n.ref)})):s.Children.count(n)>1?s.Children.only(null):null}));g.displayName="SlotClone";var w=function(e){var t=e.children;return s.createElement(s.Fragment,null,t)};function O(e){return s.isValidElement(e)&&e.type===w}var E=["asChild"],S=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(r.a)(Object(r.a)({},e),{},Object(d.a)({},t,s.forwardRef((function(e,n){var r=e.asChild,o=Object(a.a)(e,E),i=r?y:t;return s.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),s.createElement(i,Object(h.a)({},o,{ref:n}))}))))}),{}),j=n(37),k=n(12),_=n.n(k),C=["container"],T=s.forwardRef((function(e,t){var n,r=e.container,o=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,i=Object(a.a)(e,C);return o?_.a.createPortal(s.createElement(S.div,Object(h.a)({},i,{ref:t})),o):null}));var x,R=0;var P=n(9),N=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"],L=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});function A(){var e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function M(e,t,n){var r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return t&&r.addEventListener(e,t,{once:!0}),!r.dispatchEvent(o)}var D=s.forwardRef((function(e,t){var n=e.disableOutsidePointerEvents,u=void 0!==n&&n,c=e.onEscapeKeyDown,d=e.onPointerDownOutside,p=e.onFocusOutside,m=e.onInteractOutside,b=e.onDismiss,y=Object(a.a)(e,N),g=s.useContext(L),w=s.useState(null),O=Object(i.a)(w,2),E=O[0],j=O[1],k=s.useState({}),_=Object(i.a)(k,2)[1],C=v(t,(function(e){return j(e)})),T=Array.from(g.layers),D=Object(o.a)(g.layersWithOutsidePointerEventsDisabled).slice(-1),I=Object(i.a)(D,1)[0],z=T.indexOf(I),F=E?T.indexOf(E):-1,V=g.layersWithOutsidePointerEventsDisabled.size>0,U=F>=z,B=function(e){var t=f((function(e){var t=e.target,n=Object(o.a)(g.branches).some((function(e){return e.contains(t)}));U&&!n&&(null==d||d(e),null==m||m(e),e.defaultPrevented||null==b||b())})),n=s.useRef(!1);return s.useEffect((function(){var e=function(e){e.target&&!n.current&&M("dismissableLayer.pointerDownOutside",t,{originalEvent:e}),n.current=!1},r=window.setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:function(){return n.current=!0}}}(),W=function(e){var t=f((function(e){var t=e.target;Object(o.a)(g.branches).some((function(e){return e.contains(t)}))||(null==p||p(e),null==m||m(e),e.defaultPrevented||null==b||b())})),n=s.useRef(!1);return s.useEffect((function(){var e=function(e){e.target&&!n.current&&M("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),function(){return document.removeEventListener("focusin",e)}}),[t]),{onFocusCapture:function(){return n.current=!0},onBlurCapture:function(){return n.current=!1}}}();return function(e){var t=f(e);s.useEffect((function(){var e=function(e){"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[t])}((function(e){F===g.layers.size-1&&(null==c||c(e),e.defaultPrevented||null==b||b())})),function(e){var t=e.disabled,n=s.useRef(!1);Object(l.a)((function(){if(t){var e=function(){0===--R&&(document.body.style.pointerEvents=x)},r=function(e){n.current="mouse"!==e.pointerType};return 0===R&&(x=document.body.style.pointerEvents),document.body.style.pointerEvents="none",R++,document.addEventListener("pointerup",r),function(){n.current?document.addEventListener("click",e,{once:!0}):e(),document.removeEventListener("pointerup",r)}}}),[t])}({disabled:u}),s.useEffect((function(){E&&(u&&g.layersWithOutsidePointerEventsDisabled.add(E),g.layers.add(E),A())}),[E,u,g]),s.useEffect((function(){return function(){E&&(g.layers.delete(E),g.layersWithOutsidePointerEventsDisabled.delete(E),A())}}),[E,g]),s.useEffect((function(){var e=function(){return _({})};return document.addEventListener("dismissableLayer.update",e),function(){return document.removeEventListener("dismissableLayer.update",e)}}),[]),s.createElement(S.div,Object(h.a)({},y,{ref:C,style:Object(r.a)({pointerEvents:V?U?"auto":"none":void 0},e.style),onFocusCapture:Object(P.a)(e.onFocusCapture,W.onFocusCapture),onBlurCapture:Object(P.a)(e.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Object(P.a)(e.onPointerDownCapture,B.onPointerDownCapture)}))})),I=s.forwardRef((function(e,t){var n=s.useContext(L),r=s.useRef(null),o=v(t,r);return s.useEffect((function(){var e=r.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}}),[n.branches]),s.createElement(S.div,Object(h.a)({},e,{ref:o}))})),z=["scope","children"];function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(1===t.length)return o;var a=function(){var e=t.map((function(e){return{useScope:e(),scopeName:e.scopeName}}));return function(t){var n=e.reduce((function(e,n){var o=n.useScope,a=n.scopeName;return Object(r.a)(Object(r.a)({},e),o(t)["__scope".concat(a)])}),{});return s.useMemo((function(){return Object(d.a)({},"__scope".concat(o.scopeName),n)}),[n])}};return a.scopeName=o.scopeName,a}var V=["__scopeToast","hotkey","label"],U=["forceMount","open","defaultOpen","onOpenChange"],B=["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"],W=["__scopeToast"],H=["__scopeToast"],Y=["altText"],K=["__scopeToast"],X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],i=function(){var t=n.map((function(e){return s.createContext(e)}));return function(n){var o=(null==n?void 0:n[e])||t;return s.useMemo((function(){return Object(d.a)({},"__scope".concat(e),Object(r.a)(Object(r.a)({},n),{},Object(d.a)({},e,o)))}),[n,o])}};return i.scopeName=e,[function(t,r){var i=s.createContext(r),u=n.length;function l(t){var n=t.scope,r=t.children,o=Object(a.a)(t,z),l=(null==n?void 0:n[e][u])||i,c=s.useMemo((function(){return o}),Object.values(o));return s.createElement(l.Provider,{value:c},r)}return n=[].concat(Object(o.a)(n),[r]),l.displayName=t+"Provider",[l,function(n,o){var a=(null==o?void 0:o[e][u])||i,l=s.useContext(a);if(l)return l;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},F.apply(void 0,[i].concat(Object(o.a)(t)))]}("Toast"),q=Object(i.a)(X,2),Q=q[0],$=(q[1],Q("ToastProvider")),G=Object(i.a)($,2),Z=G[0],J=G[1],ee=["F8"],te=s.forwardRef((function(e,t){var n=e.__scopeToast,r=e.hotkey,u=void 0===r?ee:r,l=e.label,c=void 0===l?"Notifications ({hotkey})":l,f=Object(a.a)(e,V),d=J("ToastViewport",n),p=s.useRef(null),m=s.useRef(null),b=v(t,m,d.onViewportChange),y=u.join("+").replace(/Key/g,"").replace(/Digit/g,"");return s.useEffect((function(){var e=function(e){var t;u.every((function(t){return e[t]||e.code===t}))&&(null===(t=m.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[u]),s.useEffect((function(){var e=p.current,t=m.current;if(e&&t){var n=function(){var e=new Event("toast.viewportPause");t.dispatchEvent(e),d.isClosePausedRef.current=!0},r=function(){var e=new Event("toast.viewportResume");t.dispatchEvent(e),d.isClosePausedRef.current=!1};return e.addEventListener("focusin",n),e.addEventListener("focusout",r),e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),window.addEventListener("blur",n),window.addEventListener("focus",r),function(){e.removeEventListener("focusin",n),e.removeEventListener("focusout",r),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[d.isClosePausedRef]),s.useEffect((function(){var e=m.current;if(e){var t=[],n=new MutationObserver((function(n){Object(i.a)(n,1)[0].addedNodes.forEach((function(n){t.includes(n)||(e.prepend(n),t=[].concat(Object(o.a)(t),[n]))}))}));return n.observe(e,{childList:!0}),function(){return n.disconnect()}}}),[]),s.createElement(I,{ref:p,role:"region","aria-label":c.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:d.toastCount>0?void 0:"none"}},s.createElement(S.ol,Object(h.a)({tabIndex:-1},f,{ref:b})))})),ne=s.forwardRef((function(e,t){var n=e.forceMount,r=e.open,o=e.defaultOpen,u=e.onOpenChange,l=Object(a.a)(e,U),f=Object(c.a)({prop:r,defaultProp:o,onChange:u}),d=Object(i.a)(f,2),p=d[0],v=void 0===p||p,m=d[1];return s.createElement(j.a,{present:n||v},s.createElement(ue,Object(h.a)({open:v},l,{ref:t,onClose:function(){return m(!1)},onSwipeStart:Object(P.a)(e.onSwipeStart,(function(e){e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Object(P.a)(e.onSwipeMove,(function(e){var t=e.detail.delta,n=t.x,r=t.y;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(n,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))})),onSwipeCancel:Object(P.a)(e.onSwipeCancel,(function(e){e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:Object(P.a)(e.onSwipeEnd,(function(e){var t=e.detail.delta,n=t.x,r=t.y;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(n,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),m(!1)}))})))})),re=Q("Toast",{isInteractive:!1,onClose:function(){}}),oe=Object(i.a)(re,2),ae=oe[0],ie=oe[1],ue=s.forwardRef((function(e,t){var n=e.__scopeToast,o=e.type,i=void 0===o?"foreground":o,u=e.duration,l=e.open,c=e.onClose,d=e.onEscapeKeyDown,p=e.onSwipeStart,m=e.onSwipeMove,b=e.onSwipeCancel,y=e.onSwipeEnd,g=Object(a.a)(e,B),w=J("Toast",n),O=s.useRef(null),E=v(t,O),j=s.useRef(null),_=s.useRef(null),C=u||w.duration,T=s.useRef(0),x=s.useRef(C),R=s.useRef(0),N=w.onToastAdd,L=w.onToastRemove,A=f((function(){var e,t;(null===(e=O.current)||void 0===e?void 0:e.contains(document.activeElement))&&(null===(t=w.viewport)||void 0===t||t.focus()),c()})),M=s.useCallback((function(e){e&&e!==1/0&&(window.clearTimeout(R.current),T.current=(new Date).getTime(),R.current=window.setTimeout(A,e))}),[A]);return s.useEffect((function(){var e=w.viewport;if(e){var t=function(){M(x.current)},n=function(){var e=(new Date).getTime()-T.current;x.current=x.current-e,window.clearTimeout(R.current)};return e.addEventListener("toast.viewportPause",n),e.addEventListener("toast.viewportResume",t),function(){e.removeEventListener("toast.viewportPause",n),e.removeEventListener("toast.viewportResume",t)}}}),[w.viewport,C,M]),s.useEffect((function(){l&&!w.isClosePausedRef.current&&M(C)}),[l,C,w.isClosePausedRef,M]),s.useEffect((function(){return N(),function(){return L()}}),[N,L]),w.viewport?s.createElement(s.Fragment,null,s.createElement(le,{__scopeToast:n,role:"status","aria-live":"foreground"===i?"assertive":"polite","aria-atomic":!0},e.children),s.createElement(ae,{scope:n,isInteractive:!0,onClose:A},k.createPortal(s.createElement(D,{asChild:!0,onEscapeKeyDown:Object(P.a)(d,(function(){w.isFocusedToastEscapeKeyDownRef.current||A(),w.isFocusedToastEscapeKeyDownRef.current=!1}))},s.createElement(S.li,Object(h.a)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":w.swipeDirection},g,{ref:E,style:Object(r.a)({userSelect:"none",touchAction:"none"},e.style),onKeyDown:Object(P.a)(e.onKeyDown,(function(e){"Escape"===e.key&&(null==d||d(e.nativeEvent),e.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,A()))})),onPointerDown:Object(P.a)(e.onPointerDown,(function(e){0===e.button&&(j.current={x:e.clientX,y:e.clientY})})),onPointerMove:Object(P.a)(e.onPointerMove,(function(e){if(j.current){var t=e.clientX-j.current.x,n=e.clientY-j.current.y,r=Boolean(_.current),o=["left","right"].includes(w.swipeDirection),a=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,u=o?0:a(0,n),l="touch"===e.pointerType?10:2,c={x:i,y:u},s={originalEvent:e,delta:c};r?(_.current=c,de("toast.swipeMove",m,s)):pe(c,w.swipeDirection,l)?(_.current=c,de("toast.swipeStart",p,s),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(j.current=null)}})),onPointerUp:Object(P.a)(e.onPointerUp,(function(e){var t=_.current;if(e.target.releasePointerCapture(e.pointerId),_.current=null,j.current=null,t){var n=e.currentTarget,r={originalEvent:e,delta:t};pe(t,w.swipeDirection,w.swipeThreshold)?de("toast.swipeEnd",y,r):de("toast.swipeCancel",b,r),n.addEventListener("click",(function(e){return e.preventDefault()}),{once:!0})}}))}))),w.viewport))):null}));ue.propTypes={type:function(e){if(e.type&&!["foreground","background"].includes(e.type))throw new Error("Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.");return null}};var le=function(e){var t=e.__scopeToast,n=Object(a.a)(e,W),r=J("Toast",t),o=s.useState(!1),c=Object(i.a)(o,2),d=c[0],p=c[1],v=s.useState(!1),h=Object(i.a)(v,2),m=h[0],b=h[1];return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=f(e);Object(l.a)((function(){var e,n=0;return e=window.requestAnimationFrame((function(){return n=window.requestAnimationFrame(t)})),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((function(){return p(!0)})),s.useEffect((function(){var e=window.setTimeout((function(){return b(!0)}),1e3);return function(){return window.clearTimeout(e)}}),[]),m?null:s.createElement(T,{asChild:!0},s.createElement(u.b,{asChild:!0},s.createElement("div",n,d&&s.createElement(s.Fragment,null,r.label," ",e.children))))},ce=s.forwardRef((function(e,t){e.__scopeToast;var n=Object(a.a)(e,H);return s.createElement(S.div,Object(h.a)({},n,{ref:t}))})),se=s.forwardRef((function(e,t){var n=e.altText,r=Object(a.a)(e,Y),o=ie("ToastAction",e.__scopeToast);return n?o.isInteractive?s.createElement(fe,Object(h.a)({},r,{ref:t})):s.createElement("span",null,n):null}));se.propTypes={altText:function(e){if(!e.altText)throw new Error("Missing prop `altText` expected on `ToastAction`");return null}};var fe=s.forwardRef((function(e,t){var n=e.__scopeToast,r=Object(a.a)(e,K),o=ie("ToastClose",n);return o.isInteractive?s.createElement(S.button,Object(h.a)({type:"button"},r,{ref:t,onClick:Object(P.a)(e.onClick,o.onClose)})):null}));function de(e,t,n){var r=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(o)}var pe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return"left"===t||"right"===t?a&&r>n:!a&&o>n},ve=function(e){var t=e.__scopeToast,n=e.label,r=void 0===n?"Notification":n,o=e.duration,a=void 0===o?5e3:o,u=e.swipeDirection,l=void 0===u?"right":u,c=e.swipeThreshold,f=void 0===c?50:c,d=e.children,p=s.useState(null),v=Object(i.a)(p,2),h=v[0],m=v[1],b=s.useState(0),y=Object(i.a)(b,2),g=y[0],w=y[1],O=s.useRef(!1),E=s.useRef(!1);return s.createElement(Z,{scope:t,label:r,duration:a,swipeDirection:l,swipeThreshold:f,toastCount:g,viewport:h,onViewportChange:m,onToastAdd:s.useCallback((function(){return w((function(e){return e+1}))}),[]),onToastRemove:s.useCallback((function(){return w((function(e){return e-1}))}),[]),isFocusedToastEscapeKeyDownRef:O,isClosePausedRef:E},d)},he=te,me=ne,be=ce},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){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,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=new WeakMap,o=new WeakMap,a={},i=0,u=function(e,t,n){void 0===t&&(t=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var u=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var l=a[n],c=[],s=new Set;u.forEach((function e(t){t&&!s.has(t)&&(s.add(t),e(t.parentNode))}));return function e(t){!t||u.indexOf(t)>=0||Array.prototype.forEach.call(t.children,(function(t){if(s.has(t))e(t);else{var a=t.getAttribute("aria-hidden"),i=null!==a&&"false"!==a,u=(r.get(t)||0)+1,f=(l.get(t)||0)+1;r.set(t,u),l.set(t,f),c.push(t),1===u&&i&&o.set(t,!0),1===f&&t.setAttribute(n,"true"),i||t.setAttribute("aria-hidden","true")}}))}(t),s.clear(),i++,function(){c.forEach((function(e){var t=r.get(e)-1,a=l.get(e)-1;r.set(e,t),l.set(e,a),t||(o.has(e)||e.removeAttribute("aria-hidden"),o.delete(e)),a||e.removeAttribute(n)})),--i||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),o=n(16),a=n(18),i=n(0),u=function(e){var t=e.present,n=e.children,u=function(e){var t=i.useState(),n=Object(r.a)(t,2),a=n[0],u=n[1],c=i.useRef({}),s=i.useRef(e),f=i.useRef("none"),d=function(e,t){return i.useReducer((function(e,n){var r=t[e][n];return null!=r?r:e}),e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),p=Object(r.a)(d,2),v=p[0],h=p[1];return i.useEffect((function(){var e=l(c.current);f.current="mounted"===v?e:"none"}),[v]),Object(o.a)((function(){var t=c.current,n=s.current;if(n!==e){var r=f.current,o=l(t);if(e)h("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))h("UNMOUNT");else{h(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=e}}),[e,h]),Object(o.a)((function(){if(a){var e=function(e){var t=l(c.current).includes(e.animationName);e.target===a&&t&&h("ANIMATION_END")},t=function(e){e.target===a&&(f.current=l(c.current))};return a.addEventListener("animationstart",t),a.addEventListener("animationcancel",e),a.addEventListener("animationend",e),function(){a.removeEventListener("animationstart",t),a.removeEventListener("animationcancel",e),a.removeEventListener("animationend",e)}}h("ANIMATION_END")}),[a,h]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:i.useCallback((function(e){e&&(c.current=getComputedStyle(e)),u(e)}),[])}}(t),c="function"==typeof n?n({present:u.isPresent}):i.Children.only(n),s=Object(a.b)(u.ref,c.ref);return"function"==typeof n||u.isPresent?i.cloneElement(c,{ref:s}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(2),o=n(17),a=n(0),i=n(5),u=a.forwardRef((function(e,t){return a.createElement(o.a.span,Object(i.a)({},e,{ref:t,style:Object(r.a)({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)}))})),l=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return U}));var r=n(2),o=n(6),a=n(3),i=n(4),u=n(5),l=n(0),c=n(9),s=n(8),f=n(12),d=n(19),p=["asChild"];function v(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var h={};v(h,"Primitive",(function(){return m})),v(h,"dispatchDiscreteCustomEvent",(function(){return b})),v(h,"Root",(function(){return y}));var m=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(r.a)(Object(r.a)({},e),{},Object(s.a)({},t,Object(l.forwardRef)((function(e,n){var r=e.asChild,o=Object(i.a)(e,p),a=r?d.a:t;return Object(l.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(l.createElement)(a,Object(u.a)({},o,{ref:n}))}))))}),{});function b(e,t){e&&Object(f.flushSync)((function(){return e.dispatchEvent(t)}))}var y=m;function g(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var w={};function O(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return O(t,e)}))}}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(l.useCallback)(E.apply(void 0,t),t)}g(w,"composeRefs",(function(){return E})),g(w,"useComposedRefs",(function(){return S}));var j,k,_,C;j={},k="useLayoutEffect",_=function(){return T},Object.defineProperty(j,k,{get:_,set:C,enumerable:!0,configurable:!0});var T=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?l.useLayoutEffect:function(){};!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useBodyPointerEvents",(function(){return P}));var x,R=0;function P(e){var t=e.disabled,n=Object(l.useRef)(!1);T((function(){if(t){var e=function(){0===--R&&(document.body.style.pointerEvents=x)},r=function(e){n.current="mouse"!==e.pointerType};return 0===R&&(x=document.body.style.pointerEvents),document.body.style.pointerEvents="none",R++,document.addEventListener("pointerup",r),function(){n.current?document.addEventListener("click",e,{once:!0}):e(),document.removeEventListener("pointerup",r)}}}),[t])}var N=n(15);function L(e){var t=Object(N.a)(e);Object(l.useEffect)((function(){var e=function(e){"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[t])}!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useEscapeKeydown",(function(){return L}));var A=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];function M(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var D={};M(D,"DismissableLayer",(function(){return U})),M(D,"DismissableLayerBranch",(function(){return B})),M(D,"Root",(function(){return Y})),M(D,"Branch",(function(){return K}));var I="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",F="dismissableLayer.focusOutside",V=Object(l.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),U=Object(l.forwardRef)((function(e,t){var n=e.disableOutsidePointerEvents,s=void 0!==n&&n,f=e.onEscapeKeyDown,d=e.onPointerDownOutside,p=e.onFocusOutside,v=e.onInteractOutside,h=e.onDismiss,b=Object(i.a)(e,A),y=Object(l.useContext)(V),g=Object(l.useState)(null),w=Object(a.a)(g,2),O=w[0],E=w[1],j=Object(l.useState)({}),k=Object(a.a)(j,2)[1],_=S(t,(function(e){return E(e)})),C=Array.from(y.layers),T=Object(o.a)(y.layersWithOutsidePointerEventsDisabled).slice(-1),x=Object(a.a)(T,1)[0],R=C.indexOf(x),M=O?C.indexOf(O):-1,D=y.layersWithOutsidePointerEventsDisabled.size>0,U=M>=R,B=function(e){var t=Object(N.a)(e),n=Object(l.useRef)(!1);return Object(l.useEffect)((function(){var e=function(e){e.target&&!n.current&&H(z,t,{originalEvent:e},{discrete:!0});n.current=!1},r=window.setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:function(){return n.current=!0}}}((function(e){var t=e.target,n=Object(o.a)(y.branches).some((function(e){return e.contains(t)}));U&&!n&&(null===d||void 0===d||d(e),null===v||void 0===v||v(e),e.defaultPrevented||null===h||void 0===h||h())})),Y=function(e){var t=Object(N.a)(e),n=Object(l.useRef)(!1);return Object(l.useEffect)((function(){var e=function(e){e.target&&!n.current&&H(F,t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),function(){return document.removeEventListener("focusin",e)}}),[t]),{onFocusCapture:function(){return n.current=!0},onBlurCapture:function(){return n.current=!1}}}((function(e){var t=e.target;Object(o.a)(y.branches).some((function(e){return e.contains(t)}))||(null===p||void 0===p||p(e),null===v||void 0===v||v(e),e.defaultPrevented||null===h||void 0===h||h())}));return L((function(e){M===y.layers.size-1&&(null===f||void 0===f||f(e),e.defaultPrevented||null===h||void 0===h||h())})),P({disabled:s}),Object(l.useEffect)((function(){O&&(s&&y.layersWithOutsidePointerEventsDisabled.add(O),y.layers.add(O),W())}),[O,s,y]),Object(l.useEffect)((function(){return function(){O&&(y.layers.delete(O),y.layersWithOutsidePointerEventsDisabled.delete(O),W())}}),[O,y]),Object(l.useEffect)((function(){var e=function(){return k({})};return document.addEventListener(I,e),function(){return document.removeEventListener(I,e)}}),[]),Object(l.createElement)(m.div,Object(u.a)({},b,{ref:_,style:Object(r.a)({pointerEvents:D?U?"auto":"none":void 0},e.style),onFocusCapture:Object(c.a)(e.onFocusCapture,Y.onFocusCapture),onBlurCapture:Object(c.a)(e.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:Object(c.a)(e.onPointerDownCapture,B.onPointerDownCapture)}))})),B=Object(l.forwardRef)((function(e,t){var n=Object(l.useContext)(V),r=Object(l.useRef)(null),o=S(t,r);return Object(l.useEffect)((function(){var e=r.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}}),[n.branches]),Object(l.createElement)(m.div,Object(u.a)({},e,{ref:o}))}));function W(){var e=new CustomEvent(I);document.dispatchEvent(e)}function H(e,t,n,r){var o=r.discrete,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?b(a,i):a.dispatchEvent(i)}var Y=U,K=B},function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n(6),o=n(7),a=n(3),i=n(4),u=n(5),l=n(0);function c(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var s={};function f(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return f(t,e)}))}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(l.useCallback)(d.apply(void 0,t),t)}c(s,"composeRefs",(function(){return d})),c(s,"useComposedRefs",(function(){return p}));var v=n(8),h=n(2),m=n(12),b=n(19),y=["asChild"];function g(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var w={};g(w,"Primitive",(function(){return O})),g(w,"dispatchDiscreteCustomEvent",(function(){return E})),g(w,"Root",(function(){return S}));var O=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(h.a)(Object(h.a)({},e),{},Object(v.a)({},t,Object(l.forwardRef)((function(e,n){var r=e.asChild,o=Object(i.a)(e,y),a=r?b.a:t;return Object(l.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(l.createElement)(a,Object(u.a)({},o,{ref:n}))}))))}),{});function E(e,t){e&&Object(m.flushSync)((function(){return e.dispatchEvent(t)}))}var S=O,j=n(15),k=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];function _(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var C={};_(C,"FocusScope",(function(){return P})),_(C,"Root",(function(){return F}));var T="focusScope.autoFocusOnMount",x="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},P=Object(l.forwardRef)((function(e,t){var n=e.loop,r=void 0!==n&&n,c=e.trapped,s=void 0!==c&&c,f=e.onMountAutoFocus,d=e.onUnmountAutoFocus,v=Object(i.a)(e,k),h=Object(l.useState)(null),m=Object(a.a)(h,2),b=m[0],y=m[1],g=Object(j.a)(f),w=Object(j.a)(d),E=Object(l.useRef)(null),S=p(t,(function(e){return y(e)})),_=Object(l.useRef)({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;Object(l.useEffect)((function(){if(s){var e=function(e){if(!_.paused&&b){var t=e.target;b.contains(t)?E.current=t:D(E.current,{select:!0})}},t=function(e){!_.paused&&b&&(b.contains(e.relatedTarget)||D(E.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[s,b,_.paused]),Object(l.useEffect)((function(){if(b){I.add(_);var e=document.activeElement;if(!b.contains(e)){var t=new CustomEvent(T,R);b.addEventListener(T,g),b.dispatchEvent(t),t.defaultPrevented||(!function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,a=document.activeElement,i=Object(o.a)(e);try{for(i.s();!(t=i.n()).done;){if(D(t.value,{select:r}),document.activeElement!==a)return}}catch(u){i.e(u)}finally{i.f()}}((n=N(b),n.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&D(b))}return function(){b.removeEventListener(T,g),setTimeout((function(){var t=new CustomEvent(x,R);b.addEventListener(x,w),b.dispatchEvent(t),t.defaultPrevented||D(null!==e&&void 0!==e?e:document.body,{select:!0}),b.removeEventListener(x,w),I.remove(_)}),0)}}var n}),[b,g,w,_]);var C=Object(l.useCallback)((function(e){if((r||s)&&!_.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var o=e.currentTarget,i=function(e){var t=N(e),n=L(t,e),r=L(t.reverse(),e);return[n,r]}(o),u=Object(a.a)(i,2),l=u[0],c=u[1];l&&c?e.shiftKey||n!==c?e.shiftKey&&n===l&&(e.preventDefault(),r&&D(c,{select:!0})):(e.preventDefault(),r&&D(l,{select:!0})):n===o&&e.preventDefault()}}}),[r,s,_.paused]);return Object(l.createElement)(O.div,Object(u.a)({tabIndex:-1},v,{ref:S,onKeyDown:C}))}));function N(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t}function L(e,t){var n,r=Object(o.a)(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(!A(a,{upTo:t}))return a}}catch(i){r.e(i)}finally{r.f()}}function A(e,t){var n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function M(e){return e instanceof HTMLInputElement&&"select"in e}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,r=void 0!==n&&n;if(e&&e.focus){var o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&M(e)&&r&&e.select()}}var I=function(){var e=[];return{add:function(t){var n=e[0];t!==n&&(null===n||void 0===n||n.pause()),(e=z(e,t)).unshift(t)},remove:function(t){var n;null===(n=(e=z(e,t))[0])||void 0===n||n.resume()}}}();function z(e,t){var n=Object(r.a)(e),o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var F=P},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,u,l=i(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))o.call(n,s)&&(l[s]=n[s]);if(r){u=r(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(l[u[f]]=n[u[f]])}}return l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return me})),n.d(t,"b",(function(){return pe}));var r=n(0),o=n.n(r),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)};var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}var l=function(e,t){return Number(e.toFixed(t))},c=function(e,t,n){n&&"function"===typeof n&&n(e,t)},s={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},f=function(e){"number"===typeof e&&cancelAnimationFrame(e)},d=function(e){e.mounted&&(f(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function p(e,t,n,r){if(e.mounted){var o=(new Date).getTime();d(e),e.animation=function(){if(!e.mounted)return f(e.animation);var a=(new Date).getTime()-o,i=(0,s[t])(a/n);a>=n?(r(1),e.animation=null):e.animation&&(r(i),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function v(e,t,n,r){var o=function(e){var t=e.scale,n=e.positionX,r=e.positionY;if(isNaN(t)||isNaN(n)||isNaN(r))return!1;return!0}(t);if(e.mounted&&o){var a=e.setTransformState,i=e.transformState,u=i.scale,l=i.positionX,c=i.positionY,s=t.scale-u,f=t.positionX-l,d=t.positionY-c;0===n?a(t.scale,t.positionX,t.positionY):p(e,r,n,(function(e){a(u+s*e,l+f*e,c+d*e)}))}}var h=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,o=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var a=function(e,t,n){var r=e.offsetWidth,o=e.offsetHeight,a=t.offsetWidth*n,i=t.offsetHeight*n;return{wrapperWidth:r,wrapperHeight:o,newContentWidth:a,newDiffWidth:r-a,newContentHeight:i,newDiffHeight:o-i}}(n,r,t),i=a.wrapperWidth,u=a.wrapperHeight,l=function(e,t,n,r,o,a,i){var u=e>t?n*(i?1:.5):0,l=r>o?a*(i?1:.5):0;return{minPositionX:e-t-u,maxPositionX:u,minPositionY:r-o-l,maxPositionY:l}}(i,a.newContentWidth,a.newDiffWidth,u,a.newContentHeight,a.newDiffHeight,Boolean(o));return l},m=function(e,t){var n=h(e,t);return e.bounds=n,n};function b(e,t,n,r,o,a,i){var u=n.minPositionX,l=n.minPositionY,c=n.maxPositionX,s=n.maxPositionY,f=0,d=0;return i&&(f=o,d=a),{x:y(e,u-f,c+f,r),y:y(t,l-d,s+d,r)}}var y=function(e,t,n,r){return l(r?e<t?t:e>n?n:e:e,2)};function g(e,t,n,r,o,a){var i=e.transformState,u=i.scale,l=i.positionX,c=i.positionY,s=r-u;return"number"!==typeof t||"number"!==typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:c}):b(l-t*s,c-n*s,o,a,0,0,null)}function w(e,t,n,r,o){var a=t-(o?r:0);return!isNaN(n)&&e>=n?n:!isNaN(t)&&e<=a?a:e}var O=function(e,t){var n=e.setup.panning.excluded,r=e.isInitialized,o=e.wrapperComponent,a=t.target,i=null===o||void 0===o?void 0:o.contains(a);return!!(r&&a&&i)&&!q(a,n)},E=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)};var S=function(e,t){var n=e.setup,r=e.transformState.scale,o=n.minScale;return t>0&&r>=o?t:0};function j(e,t,n,r,o,a,i,u,l,c){if(o){var s;if(t>i&&n>i)return(s=i+(e-i)*c)>l?l:s<i?i:s;if(t<a&&n<a)return(s=a+(e-a)*c)<u?u:s>a?a:s}return r?t:y(e,a,i,o)}function k(e,t){var n=function(e){var t=e.mounted,n=e.setup,r=n.disabled,o=n.velocityAnimation,a=e.transformState.scale;return!(o.disabled&&!(a>1)&&r&&!t)}(e);if(n){var r=e.lastMousePosition,o=e.velocityTime,a=e.setup,i=e.wrapperComponent,u=a.velocityAnimation.equalToMove,l=Date.now();if(r&&o&&i){var c=function(e,t){return t?Math.min(1,e.offsetWidth/window.innerWidth):1}(i,u),s=t.x-r.x,f=t.y-r.y,d=s/c,p=f/c,v=l-o,h=s*s+f*f,m=Math.sqrt(h)/v;e.velocity={velocityX:d,velocityY:p,total:m}}e.lastMousePosition=t,e.velocityTime=l}}function _(e,t){var n=e.transformState.scale;d(e),m(e,n),t.touches?function(e,t){var n=t.touches,r=e.transformState,o=r.positionX,a=r.positionY;if(e.isPanning=!0,1===n.length){var i=n[0].clientX,u=n[0].clientY;e.startCoords={x:i-o,y:u-a}}}(e,t):function(e,t){var n=e.transformState,r=n.positionX,o=n.positionY;e.isPanning=!0;var a=t.clientX,i=t.clientY;e.startCoords={x:a-r,y:i-o}}(e,t)}function C(e,t,n){var r=e.startCoords,o=e.setup.alignmentAnimation,a=o.sizeX,i=o.sizeY;if(r){var u=function(e,t,n){var r=e.startCoords,o=e.transformState,a=e.setup.panning,i=a.lockAxisX,u=a.lockAxisY,l=o.positionX,c=o.positionY;if(!r)return{x:l,y:c};var s=t-r.x,f=n-r.y;return{x:i?l:s,y:u?c:f}}(e,t,n),l=u.x,c=u.y,s=S(e,a),f=S(e,i);k(e,{x:l,y:c}),function(e,t,n,r,o){var a=e.setup.limitToBounds,i=e.wrapperComponent,u=e.bounds,l=e.transformState,c=l.scale,s=l.positionX,f=l.positionY;if(i&&t!==s&&n!==f&&u){var d=b(t,n,u,a,r,o,i),p=d.x,v=d.y;e.setTransformState(c,p,v)}}(e,l,c,s,f)}}function T(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,r=e.wrapperComponent,o=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var a=null===r||void 0===r?void 0:r.getBoundingClientRect(),i=null===o||void 0===o?void 0:o.getBoundingClientRect(),u=(null===a||void 0===a?void 0:a.width)||0,l=(null===a||void 0===a?void 0:a.height)||0,c=(null===i||void 0===i?void 0:i.width)||0,f=(null===i||void 0===i?void 0:i.height)||0,d=u<c||l<f;!t&&n&&(null===n||void 0===n?void 0:n.total)>.1&&d?function(e){var t=e.velocity,n=e.bounds,r=e.setup,o=e.wrapperComponent,a=function(e){var t=e.mounted,n=e.velocity,r=e.bounds,o=e.setup,a=o.disabled,i=o.velocityAnimation,u=e.transformState.scale;return!(i.disabled&&!(u>1)&&a&&!t)&&!(!n||!r)}(e);if(a&&t&&n&&o){var i=t.velocityX,u=t.velocityY,l=t.total,c=n.maxPositionX,f=n.minPositionX,d=n.maxPositionY,v=n.minPositionY,h=r.limitToBounds,m=r.alignmentAnimation,b=r.zoomAnimation,y=r.panning,g=y.lockAxisY,w=y.lockAxisX,O=b.animationType,E=m.sizeX,k=m.sizeY,_=m.velocityAlignmentTime,C=function(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,o=n.animationTime,a=n.sensitivity;return r?o*t*a:o}(e,l),T=Math.max(C,_),x=S(e,E),R=S(e,k),P=x*o.offsetWidth/100,N=R*o.offsetHeight/100,L=c+P,A=f-P,M=d+N,D=v-N,I=e.transformState,z=(new Date).getTime();p(e,O,T,(function(t){var n=e.transformState,r=n.scale,o=n.positionX,a=n.positionY,l=((new Date).getTime()-z)/_,p=1-(0,s[m.animationType])(Math.min(1,l)),b=1-t,y=o+i*b,O=a+u*b,E=j(y,I.positionX,o,w,h,f,c,A,L,p),S=j(O,I.positionY,a,g,h,v,d,D,M,p);o===y&&a===O||e.setTransformState(r,E,S)}))}}(e):x(e)}}function x(e){var t=e.transformState.scale,n=e.setup,r=n.minScale,o=n.alignmentAnimation,a=o.disabled,i=o.sizeX,u=o.sizeY,l=o.animationTime,c=o.animationType;if(!(a||t<r||!i&&!u)){var s=function(e){var t=e.transformState,n=t.positionX,r=t.positionY,o=t.scale,a=e.setup,i=a.disabled,u=a.limitToBounds,l=a.centerZoomedOut,c=e.wrapperComponent;if(!i&&c&&e.bounds){var s=e.bounds,f=s.maxPositionX,d=s.minPositionX,p=s.maxPositionY,v=s.minPositionY,h=n>f||n<d,m=r>p||r<v,b=g(e,n>f?c.offsetWidth:e.setup.minPositionX||0,r>p?c.offsetHeight:e.setup.minPositionY||0,o,e.bounds,u||l),y=b.x,w=b.y;return{scale:o,positionX:h?y:n,positionY:m?w:r}}}(e);s&&v(e,s,l,c)}}function R(e,t,n){var r=e.transformState.scale,o=e.wrapperComponent,a=e.setup,i=a.minScale,u=a.limitToBounds,l=a.zoomAnimation,c=l.disabled,s=l.animationTime,f=l.animationType,d=c||r>=i;if((r>=1||u)&&x(e),!d&&o&&e.mounted){var p=P(e,i,t||o.offsetWidth/2,n||o.offsetHeight/2);p&&v(e,p,s,f)}}function P(e,t,n,r){var o=e.setup,a=o.minScale,i=o.maxScale,u=o.limitToBounds,c=w(l(t,2),a,i,0,!1),s=g(e,n,r,c,m(e,c),u);return{scale:c,positionX:s.x,positionY:s.y}}var N={previousScale:1,scale:1,positionX:0,positionY:0},L=i(i({},N),{setComponents:function(){},contextInstance:null}),A={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,wheel:{step:.2,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},M=function(e){var t,n,r,o;return{previousScale:null!==(t=e.initialScale)&&void 0!==t?t:N.scale,scale:null!==(n=e.initialScale)&&void 0!==n?n:N.scale,positionX:null!==(r=e.initialPositionX)&&void 0!==r?r:N.positionX,positionY:null!==(o=e.initialPositionY)&&void 0!==o?o:N.positionY}},D=function(e){var t=i({},A);return Object.keys(e).forEach((function(n){var r="undefined"!==typeof e[n];if("undefined"!==typeof A[n]&&r){var o=Object.prototype.toString.call(A[n]),a="[object Object]"===o,l="[object Array]"===o;t[n]=a?i(i({},A[n]),e[n]):l?u(u([],A[n]),e[n]):e[n]}})),t},I=function(e,t,n){var r=e.transformState.scale,o=e.wrapperComponent,a=e.setup,i=a.maxScale,u=a.minScale,c=a.zoomAnimation.size;if(!o)throw new Error("Wrapper is not mounted");var s=r*Math.exp(t*n);return w(l(s,3),u,i,c,!1)};function z(e,t,n,r,o){var a=e.wrapperComponent,i=e.transformState,u=i.scale,l=i.positionX,c=i.positionY;if(!a)return console.error("No WrapperComponent found");var s=(a.offsetWidth/2-l)/u,f=(a.offsetHeight/2-c)/u,d=P(e,I(e,t,n),s,f);if(!d)return console.error("Error during zoom event. New transformation state was not calculated.");v(e,d,r,o)}function F(e,t,n){var r=e.setup,o=e.wrapperComponent,a=r.limitToBounds,i=M(e.props),u=e.transformState,l=u.scale,c=u.positionX,s=u.positionY;if(o){var f=h(e,i.scale),d=b(i.positionX,i.positionY,f,a,0,0,o),p={scale:i.scale,positionX:d.x,positionY:d.y};l===i.scale&&c===i.positionX&&s===i.positionY||v(e,p,t,n)}}var V=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),z(e,1,t,n,r)}},U=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),z(e,-1,t,n,r)}},B=function(e){return function(t,n,r,o,a){void 0===o&&(o=300),void 0===a&&(a="easeOut");var i=e.transformState,u=i.positionX,l=i.positionY,c=i.scale,s=e.wrapperComponent,f=e.contentComponent;if(!e.setup.disabled&&s&&f){var d={positionX:isNaN(t)?u:t,positionY:isNaN(n)?l:n,scale:isNaN(r)?c:r};v(e,d,o,a)}}},W=function(e){return function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),F(e,t,n)}},H=function(e){return function(t,n,r){void 0===n&&(n=200),void 0===r&&(r="easeOut");var o=e.transformState,a=e.wrapperComponent,i=e.contentComponent;if(a&&i){var u=G(t||o.scale,a,i);v(e,u,n,r)}}},Y=function(e){return function(t,n,r,o){void 0===r&&(r=600),void 0===o&&(o="easeOut"),d(e);var a=e.wrapperComponent,i="string"===typeof t?document.getElementById(t):t;if(a&&function(e){return e?void 0!==(null===e||void 0===e?void 0:e.offsetWidth)&&void 0!==(null===e||void 0===e?void 0:e.offsetHeight)||(console.error("Zoom node is not valid - it must contain offsetWidth and offsetHeight"),!1):(console.error("Zoom node not found"),!1)}(i)&&i&&a.contains(i)){var u=function(e,t,n){var r=e.wrapperComponent,o=e.setup,a=o.limitToBounds,i=o.minScale,u=o.maxScale;if(!r)return N;var l=r.getBoundingClientRect(),c=function(e){for(var t=e,n=0,r=0;t;)n+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{x:n,y:r}}(t),s=c.x,f=c.y,d=t.offsetWidth,p=t.offsetHeight,v=r.offsetWidth/d,m=r.offsetHeight/p,y=w(n||Math.min(v,m),i,u,0,!1),g=(l.width-d*y)/2,O=(l.height-p*y)/2,E=b((l.left-s)*y+g,(l.top-f)*y+O,h(e,y),a,0,0,r);return{positionX:E.x,positionY:E.y,scale:y}}(e,i,n);v(e,u,r,o)}}},K=function(e){return{instance:e,state:e.transformState,zoomIn:V(e),zoomOut:U(e),setTransform:B(e),resetTransform:W(e),centerView:H(e),zoomToElement:Y(e)}};function X(){try{return{get passive(){return!0,!1}}}catch(e){return!1}}var q=function(e,t){var n=e.tagName.toUpperCase();return!!t.find((function(e){return e.toUpperCase()===n}))||!!t.find((function(t){return e.classList.contains(t)}))},Q=function(e){e&&clearTimeout(e)},$=function(e,t,n){return"translate3d("+e+"px, "+t+"px, 0) scale("+n+")"},G=function(e,t,n){var r=n.offsetWidth*e,o=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-r)/2,positionY:(t.offsetHeight-o)/2}},Z=function(e,t){var n=e.setup.wheel,r=n.disabled,o=n.wheelDisabled,a=n.touchPadDisabled,i=n.excluded,u=e.isInitialized,l=e.isPanning,c=t.target;return!(!u||l||r||!c)&&(!(o&&!t.ctrlKey)&&((!a||!t.ctrlKey)&&!q(c,i)))};function J(e,t,n){var r=t.getBoundingClientRect(),o=0,a=0;if("clientX"in e)o=(e.clientX-r.left)/n,a=(e.clientY-r.top)/n;else{var i=e.touches[0];o=(i.clientX-r.left)/n,a=(i.clientY-r.top)/n}return(isNaN(o)||isNaN(a))&&console.error("No mouse or touch offset found"),{x:o,y:a}}var ee=function(e,t){var n=e.setup.pinch,r=n.disabled,o=n.excluded,a=e.isInitialized,i=t.target;return!(!a||r||!i)&&!q(i,o)},te=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,r=e.pinchStartDistance;return!(!n||t||!r)},ne=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},re=function(e,t){var n=e.props,r=n.onWheelStart,o=n.onZoomStart;e.wheelStopEventTimer||(d(e),c(K(e),t,r),c(K(e),t,o))},oe=function(e,t){var n=e.props,r=n.onWheel,o=n.onZoom,a=e.contentComponent,i=e.setup,u=e.transformState.scale,s=i.limitToBounds,f=i.centerZoomedOut,d=i.zoomAnimation,p=i.wheel,v=d.size,h=d.disabled,b=p.step;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var y=function(e,t){var n,r,o=e?e.deltaY<0?1:-1:0;return r=o,"number"===typeof(n=t)?n:r}(t,null),O=function(e,t,n,r,o){var a=e.transformState.scale,i=e.wrapperComponent,u=e.setup,c=u.maxScale,s=u.minScale,f=u.zoomAnimation,d=f.size,p=f.disabled;if(!i)throw new Error("Wrapper is not mounted");var v=a+t*(a-a*n)*n;if(o)return v;var h=!r&&!p;return w(l(v,3),s,c,d,h)}(e,y,b,!t.ctrlKey);if(u!==O){var E=m(e,O),S=J(t,a,u),j=s&&(h||0===v||f),k=g(e,S.x,S.y,O,E,j),_=k.x,C=k.y;e.previousWheelEvent=t,e.setTransformState(O,_,C),c(K(e),t,r),c(K(e),t,o)}},ae=function(e,t){var n=e.props,r=n.onWheelStop,o=n.onZoomStop;Q(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout((function(){e.mounted&&(R(e,t.x,t.y),e.wheelAnimationTimer=null)}),100);var a=function(e,t){var n=e.previousWheelEvent,r=e.transformState.scale,o=e.setup,a=o.maxScale,i=o.minScale;return!!n&&(r<a||r>i||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))}(e,t);a&&(Q(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,c(K(e),t,r),c(K(e),t,o))}),160))},ie=function(e,t){var n=ne(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1,d(e)},ue=function(e,t){var n=e.contentComponent,r=e.pinchStartDistance,o=e.transformState.scale,a=e.setup,i=a.limitToBounds,u=a.centerZoomedOut,c=a.zoomAnimation,s=c.disabled,f=c.size;if(null!==r&&n){var d=function(e,t,n){var r=n.getBoundingClientRect(),o=e.touches,a=l(o[0].clientX-r.left,5),i=l(o[0].clientY-r.top,5);return{x:(a+l(o[1].clientX-r.left,5))/2/t,y:(i+l(o[1].clientY-r.top,5))/2/t}}(t,o,n);if(isFinite(d.x)&&isFinite(d.y)){var p=ne(t),v=function(e,t){var n=e.pinchStartScale,r=e.pinchStartDistance,o=e.setup,a=o.maxScale,i=o.minScale,u=o.zoomAnimation,c=u.size,s=u.disabled;if(!n||null===r||!t)throw new Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:w(l(t/r*n,2),i,a,c,!s)}(e,p);if(v!==o){var h=m(e,v),b=i&&(s||0===f||u),y=g(e,d.x,d.y,v,h,b),O=y.x,E=y.y;e.pinchMidpoint=d,e.lastDistance=p,e.setTransformState(v,O,E)}}}},le=function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,R(e,null===t||void 0===t?void 0:t.x,null===t||void 0===t?void 0:t.y)};function ce(e,t){var n=e.setup.doubleClick,r=n.disabled,o=n.mode,a=n.step,i=n.animationTime,u=n.animationType;if(!r){if("reset"===o)return F(e,i,u);var l=e.transformState.scale,c=e.contentComponent;if(!c)return console.error("No ContentComponent found");var s=I(e,"zoomOut"===o?-1:1,a),f=J(t,c,l),d=P(e,s,f.x,f.y);if(!d)return console.error("Error during zoom event. New transformation state was not calculated.");v(e,d,i,u)}}var se=function(e,t){var n=e.isInitialized,r=e.setup,o=e.wrapperComponent,a=r.doubleClick,i=a.disabled,u=a.excluded,l=t.target,c=null===o||void 0===o?void 0:o.contains(l),s=n&&l&&c&&!i;return!!s&&(!q(l,u)&&!!s)},fe=o.a.createContext(L),de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mounted=!0,t.transformState=M(t.props),t.setup=D(t.props),t.wrapperComponent=null,t.contentComponent=null,t.isInitialized=!1,t.bounds=null,t.previousWheelEvent=null,t.wheelStopEventTimer=null,t.wheelAnimationTimer=null,t.isPanning=!1,t.startCoords=null,t.lastTouch=null,t.distance=null,t.lastDistance=null,t.pinchStartDistance=null,t.pinchStartScale=null,t.pinchMidpoint=null,t.velocity=null,t.velocityTime=null,t.lastMousePosition=null,t.animate=!1,t.animation=null,t.maxBounds=null,t.pressedKeys={},t.handleInitializeWrapperEvents=function(e){var n=X();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},t.handleInitialize=function(){var e=t.setup.centerOnInit;t.applyTransformation(),t.forceUpdate(),e&&(setTimeout((function(){t.mounted&&t.setCenter()}),50),setTimeout((function(){t.mounted&&t.setCenter()}),100),setTimeout((function(){t.mounted&&t.setCenter()}),200))},t.onWheelZoom=function(e){t.setup.disabled||Z(t,e)&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(re(t,e),oe(t,e),ae(t,e))},t.onPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;n||O(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),d(t),_(t,e),c(K(t),e,r))},t.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||E(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),C(t,e.clientX,e.clientY),c(K(t),e,r))},t.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(T(t),c(K(t),e,n))},t.onPinchStart=function(e){var n=t.setup.disabled,r=t.props,o=r.onPinchingStart,a=r.onZoomStart;n||ee(t,e)&&(ie(t,e),d(t),c(K(t),e,o),c(K(t),e,a))},t.onPinch=function(e){var n=t.setup.disabled,r=t.props,o=r.onPinching,a=r.onZoom;n||te(t)&&(e.preventDefault(),e.stopPropagation(),ue(t,e),c(K(t),e,o),c(K(t),e,a))},t.onPinchStop=function(e){var n=t.props,r=n.onPinchingStop,o=n.onZoomStop;t.pinchStartScale&&(le(t),c(K(t),e,r),c(K(t),e,o))},t.onTouchPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;if(!n&&O(t,e))if(t.lastTouch&&+new Date-t.lastTouch<200&&1===e.touches.length)t.onDoubleClick(e);else{t.lastTouch=+new Date,d(t);var o=e.touches,a=1===o.length,i=2===o.length;a&&(d(t),_(t,e),c(K(t),e,r)),i&&t.onPinchStart(e)}},t.onTouchPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n)return;if(!E(t))return;e.preventDefault(),e.stopPropagation();var o=e.touches[0];C(t,o.clientX,o.clientY),c(K(t),e,r)}else e.touches.length>1&&t.onPinch(e)},t.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},t.onDoubleClick=function(e){t.setup.disabled||se(t,e)&&ce(t,e)},t.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},t.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},t.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},t.isPressingKeys=function(e){return!e.length||Boolean(e.find((function(e){return t.pressedKeys[e]})))},t.setComponents=function(e,n){t.wrapperComponent=e,t.contentComponent=n,m(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(),t.handleRef(),t.isInitialized=!0,c(K(t),void 0,t.props.onInit)},t.setTransformState=function(e,n,r){isNaN(e)||isNaN(n)||isNaN(r)?console.error("Detected NaN set state values"):(e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=r,t.applyTransformation())},t.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=G(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},t.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,r=e.positionX,o=e.positionY,a=$(r,o,n);t.contentComponent.style.transform=a,t.handleRef()}},t.handleRef=function(){t.props.setRef(K(t))},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){var e=X();window.addEventListener("mousedown",this.onPanningStart,e),window.addEventListener("mousemove",this.onPanning,e),window.addEventListener("mouseup",this.onPanningStop,e),document.addEventListener("mouseleave",this.clearPanning,e),window.addEventListener("keyup",this.setKeyUnPressed,e),window.addEventListener("keydown",this.setKeyPressed,e),this.handleRef()},t.prototype.componentWillUnmount=function(){var e=X();window.removeEventListener("mousedown",this.onPanningStart,e),window.removeEventListener("mousemove",this.onPanning,e),window.removeEventListener("mouseup",this.onPanningStop,e),window.removeEventListener("keyup",this.setKeyUnPressed,e),window.removeEventListener("keydown",this.setKeyPressed,e),d(this)},t.prototype.componentDidUpdate=function(e){e!==this.props&&(m(this,this.transformState.scale),this.setup=D(this.props))},t.prototype.render=function(){var e=K(this),t=this.props.children,n="function"===typeof t?t(e):t;return o.a.createElement(fe.Provider,{value:i(i({},this.transformState),{setComponents:this.setComponents,contextInstance:this})},n)},t}(r.Component),pe=o.a.forwardRef((function(e,t){var n=Object(r.useState)(null),a=n[0],u=n[1];return Object(r.useImperativeHandle)(t,(function(){return a}),[a]),o.a.createElement(de,i({},e,{setRef:u}))}));var ve="transform-component-module_wrapper__1_Fgj",he="transform-component-module_content__2jYgh";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__1_Fgj {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__2jYgh {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__2jYgh img {\n pointer-events: none;\n}\n");var me=function(e){var t=e.children,n=e.wrapperClass,a=void 0===n?"":n,i=e.contentClass,u=void 0===i?"":i,l=e.wrapperStyle,c=e.contentStyle,s=Object(r.useContext)(fe).setComponents,f=Object(r.useRef)(null),d=Object(r.useRef)(null);return Object(r.useEffect)((function(){var e=f.current,t=d.current;null!==e&&null!==t&&s&&s(e,t)}),[]),o.a.createElement("div",{ref:f,className:"react-transform-wrapper "+ve+" "+a,style:l},o.a.createElement("div",{ref:d,className:"react-transform-component "+he+" "+u,style:c},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return B}));var r=n(2),o=n(4),a=n(3),i=(n(16),n(0));i["useId".toString()];var u=n(8);function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(t,e)}))}}var c=n(5),s=["children"],f=["children"],d=i.forwardRef((function(e,t){var n=e.children,r=Object(o.a)(e,s);return i.Children.toArray(n).some(h)?i.createElement(i.Fragment,null,i.Children.map(n,(function(e){return h(e)?i.createElement(p,Object(c.a)({},r,{ref:t}),e.props.children):e}))):i.createElement(p,Object(c.a)({},r,{ref:t}),n)}));d.displayName="Slot";var p=i.forwardRef((function(e,t){var n=e.children,a=Object(o.a)(e,f);return i.isValidElement(n)?i.cloneElement(n,Object(r.a)(Object(r.a)({},function(e,t){var n=Object(r.a)({},t),o=function(o){var a=e[o],i=t[o];/^on[A-Z]/.test(o)?n[o]=function(){null==i||i.apply(void 0,arguments),null==a||a.apply(void 0,arguments)}:"style"===o?n[o]=Object(r.a)(Object(r.a)({},a),i):"className"===o&&(n[o]=[a,i].filter(Boolean).join(" "))};for(var a in t)o(a);return Object(r.a)(Object(r.a)({},e),n)}(a,n.props)),{},{ref:l(t,n.ref)})):i.Children.count(n)>1?i.Children.only(null):null}));p.displayName="SlotClone";var v=function(e){var t=e.children;return i.createElement(i.Fragment,null,t)};function h(e){return i.isValidElement(e)&&e.type===v}var m=["asChild"],b=(["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(r.a)(Object(r.a)({},e),{},Object(u.a)({},t,i.forwardRef((function(e,n){var r=e.asChild,a=Object(o.a)(e,m),u=r?d:t;return i.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),i.createElement(u,Object(c.a)({},a,{ref:n}))}))))}),{}),n(6),["children"]);var y=function(e,t){var n=i.createContext(t);function r(e){var t=e.children,r=Object(o.a)(e,b),a=i.useMemo((function(){return r}),Object.values(r));return i.createElement(n.Provider,{value:a},t)}return r.displayName=e+"Provider",[r,function(r){var o=i.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}("Label",{id:void 0,controlRef:{current:null}}),g=Object(a.a)(y,2),w=(g[0],g[1]),O=n(17),E=n(30),S=n(31),j=n(25),k=n(24),_=n(18),C=n(9),T=["__scopeSwitch","aria-labelledby","name","checked","defaultChecked","required","disabled","value","onCheckedChange"],x=["__scopeSwitch"],R=["control","checked","bubbles"],P=Object(k.a)("Switch"),N=Object(a.a)(P,2),L=N[0],A=(N[1],L("Switch")),M=Object(a.a)(A,2),D=M[0],I=M[1],z=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=e["aria-labelledby"],u=e.name,l=e.checked,s=e.defaultChecked,f=e.required,d=e.disabled,p=e.value,v=void 0===p?"on":p,h=e.onCheckedChange,m=Object(o.a)(e,T),b=i.useState(null),y=Object(a.a)(b,2),g=y[0],E=y[1],S=Object(_.b)(t,(function(e){return E(e)})),k=function(e){var t=w("LabelConsumer"),n=t.controlRef;return i.useEffect((function(){e&&(n.current=e)}),[e,n]),t.id}(g),x=r||k,R=i.useRef(!1),P=!g||Boolean(g.closest("form")),N=Object(j.a)({prop:l,defaultProp:s,onChange:h}),L=Object(a.a)(N,2),A=L[0],M=void 0!==A&&A,I=L[1];return i.createElement(D,{scope:n,checked:M,disabled:d},i.createElement(O.a.button,Object(c.a)({type:"button",role:"switch","aria-checked":M,"aria-labelledby":x,"aria-required":f,"data-state":V(M),"data-disabled":d?"":void 0,disabled:d,value:v},m,{ref:S,onClick:Object(C.a)(e.onClick,(function(e){I((function(e){return!e})),P&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())}))})),P&&i.createElement(F,{control:g,bubbles:!R.current,name:u,value:v,checked:M,required:f,disabled:d,style:{transform:"translateX(-100%)"}}))})),F=function(e){var t=e.control,n=e.checked,a=e.bubbles,u=void 0===a||a,l=Object(o.a)(e,R),s=i.useRef(null),f=Object(S.a)(n),d=Object(E.a)(t);return i.useEffect((function(){var e=s.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(f!==n&&r){var o=new Event("click",{bubbles:u});r.call(e,n),e.dispatchEvent(o)}}),[f,n,u]),i.createElement("input",Object(c.a)({type:"checkbox","aria-hidden":!0,defaultChecked:n},l,{tabIndex:-1,ref:s,style:Object(r.a)(Object(r.a)(Object(r.a)({},e.style),d),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function V(e){return e?"checked":"unchecked"}var U=z,B=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=Object(o.a)(e,x),a=I("SwitchThumb",n);return i.createElement(O.a.span,Object(c.a)({"data-state":V(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}))},function(e,t,n){"use strict";var r=n(0),o=n(20),a=o.a?window:null,i=function(e){return!!e.addEventListener},u=function(e){return!!e.on},l=function(e,t,n,l){void 0===n&&(n=a),Object(r.useEffect)((function(){if(t&&n)return i(n)?Object(o.d)(n,e,t,l):u(n)&&n.on(e,t,l),function(){i(n)?Object(o.c)(n,e,t,l):u(n)&&n.off(e,t,l)}}),[e,t,n,JSON.stringify(l)])};t.a=function(e,t,n,a){void 0===t&&(t=o.b),void 0===n&&(n={}),void 0===a&&(a=[e]);var i=n.event,u=void 0===i?"keydown":i,c=n.target,s=n.options,f=Object(r.useMemo)((function(){var n,r="function"===typeof(n=e)?n:"string"===typeof n?function(e){return e.key===n}:n?function(){return!0}:function(){return!1};return function(e){if(r(e))return t(e)}}),a);l(u,f,c,s)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"}),"")}},,,,function(e,t,n){"use strict";var r=n(41),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,u=60110,l=60112;t.Suspense=60113;var c=60115,s=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),i=f("react.provider"),u=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),s=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||v}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||v}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var g=y.prototype=new b;g.constructor=y,r(g,m.prototype),g.isPureReactComponent=!0;var w={current:null},O=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,a={},i=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)O.call(t,r)&&!E.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),s=0;s<l;s++)c[s]=arguments[s+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:o,type:e,key:i,ref:u,props:a,_owner:w.current}}function j(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function _(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case a:l=!0}}if(l)return i=i(l=e),e=""===r?"."+_(l,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),C(i,t,n,"",(function(e){return e}))):null!=i&&(j(i)&&(i=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(k,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var s=r+_(u=e[c],c);l+=C(u,t,n,s,i)}else if(s=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof s)for(e=s.call(e),c=0;!(u=e.next()).done;)l+=C(u=u.value,t,n,s=r+_(u,c++),i);else if("object"===u)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function x(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function P(){var e=R.current;if(null===e)throw Error(p(321));return e}var N={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error(p(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var a=r({},e.props),i=e.key,u=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,l=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)O.call(t,s)&&!E.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){c=Array(s);for(var f=0;f<s;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:e.type,key:i,ref:u,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:s,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(0),o=n(41),a=n(52);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var u=new Set,l={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,v={},h={};function m(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(h,e)||!p.call(v,e)&&(d.test(e)?h[e]=!0:(v[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,g);b[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,g);b[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,g);b[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var O=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,j=60107,k=60108,_=60114,C=60109,T=60110,x=60112,R=60113,P=60120,N=60115,L=60116,A=60121,M=60128,D=60129,I=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;E=F("react.element"),S=F("react.portal"),j=F("react.fragment"),k=F("react.strict_mode"),_=F("react.profiler"),C=F("react.provider"),T=F("react.context"),x=F("react.forward_ref"),R=F("react.suspense"),P=F("react.suspense_list"),N=F("react.memo"),L=F("react.lazy"),A=F("react.block"),F("react.scope"),M=F("react.opaque.id"),D=F("react.debug_trace_mode"),I=F("react.offscreen"),z=F("react.legacy_hidden")}var V,U="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function W(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var H=!1;function Y(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,u=a.length-1;1<=i&&0<=u&&o[i]!==a[u];)u--;for(;1<=i&&0<=u;i--,u--)if(o[i]!==a[u]){if(1!==i||1!==u)do{if(i--,0>--u||o[i]!==a[u])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=u);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function K(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=Y(e.type,!1);case 11:return e=Y(e.type.render,!1);case 22:return e=Y(e.type._render,!1);case 1:return e=Y(e.type,!0);default:return""}}function X(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case S:return"Portal";case _:return"Profiler";case k:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case x:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return X(e.type);case A:return X(e._render);case L:t=e._payload,e=e._init;try{return X(e(t))}catch(n){}}return null}function q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function ce(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ve(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,be=(me=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Oe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ge).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var Se=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function je(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ke(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Te=null,xe=null;function Re(e){if(e=ro(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=ao(t),Ce(e.stateNode,e.type,t))}}function Pe(e){Te?xe?xe.push(e):xe=[e]:Te=e}function Ne(){if(Te){var e=Te,t=xe;if(xe=Te=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Le(e,t){return e(t)}function Ae(e,t,n,r,o){return e(t,n,r,o)}function Me(){}var De=Le,Ie=!1,ze=!1;function Fe(){null===Te&&null===xe||(Me(),Ne())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=ao(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(me){Ue=!1}function We(e,t,n,r,o,a,i,u,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(s){this.onError(s)}}var He=!1,Ye=null,Ke=!1,Xe=null,qe={onError:function(e){He=!0,Ye=e}};function Qe(e,t,n,r,o,a,i,u,l){He=!1,Ye=null,We.apply(qe,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if($e(e)!==e)throw Error(i(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ze(o),e;if(a===r)return Ze(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,l=o.child;l;){if(l===n){u=!0,n=o,r=a;break}if(l===r){u=!0,r=o,n=a;break}l=l.sibling}if(!u){for(l=a.child;l;){if(l===n){u=!0,n=a,r=o;break}if(l===r){u=!0,r=a,n=o;break}l=l.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,at=!1,it=[],ut=null,lt=null,ct=null,st=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=vt(t,n,r,o,a),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function bt(e){var t=no(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(at=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==ut&&yt(ut)&&(ut=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),st.forEach(gt),ft.forEach(gt)}function Ot(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,wt)))}function Et(e){function t(t){return Ot(t,e)}if(0<it.length){Ot(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&Ot(ut,e),null!==lt&&Ot(lt,e),null!==ct&&Ot(ct,e),st.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)bt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},kt={},_t={};function Ct(e){if(kt[e])return kt[e];if(!jt[e])return e;var t,n=jt[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return kt[e]=n[t];return e}f&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete jt.animationend.animation,delete jt.animationiteration.animation,delete jt.animationstart.animation),"TransitionEvent"in window||delete jt.transitionend.transition);var Tt=Ct("animationend"),xt=Ct("animationiteration"),Rt=Ct("animationstart"),Pt=Ct("transitionend"),Nt=new Map,Lt=new Map,At=["abort","abort",Tt,"animationEnd",xt,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Lt.set(r,t),Nt.set(r,o),c(o,[r])}}(0,a.unstable_now)();var Dt=8;function It(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function zt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,u=e.pingedLanes;if(0!==a)r=a,o=Dt=15;else if(0!==(a=134217727&n)){var l=a&~i;0!==l?(r=It(l),o=Dt):0!==(u&=a)&&(r=It(u),o=Dt)}else 0!==(a=n&~i)?(r=It(a),o=Dt):0!==u&&(r=It(u),o=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&i)){if(It(t),o<=Dt)return t;Dt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Vt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Vt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Vt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Yt(e)/Kt|0)|0},Yt=Math.log,Kt=Math.LN2;var Xt=a.unstable_UserBlockingPriority,qt=a.unstable_runWithPriority,Qt=!0;function $t(e,t,n,r){Ie||Me();var o=Zt,a=Ie;Ie=!0;try{Ae(o,e,t,n,r)}finally{(Ie=a)||Fe()}}function Gt(e,t,n,r){qt(Xt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var o;if(Qt)if((o=0===(4&t))&&0<it.length&&-1<pt.indexOf(e))e=vt(null,e,t,n,r),it.push(e);else{var a=Jt(e,t,n,r);if(null===a)o&&ht(e,r);else{if(o){if(-1<pt.indexOf(e))return e=vt(a,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return ut=mt(ut,e,t,n,r,o),!0;case"dragenter":return lt=mt(lt,e,t,n,r,o),!0;case"mouseover":return ct=mt(ct,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return st.set(a,mt(st.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,ft.set(a,mt(ft.get(a)||null,e,t,n,r,o)),!0}return!1}(a,e,t,n,r))return;ht(e,r)}Mr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=_e(r);if(null!==(o=no(o))){var a=$e(o);if(null===a)o=null;else{var i=a.tag;if(13===i){if(null!==(o=Ge(a)))return o;o=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Mr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function un(){return!1}function ln(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:un,this.isPropagationStopped=un,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,sn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=ln(dn),vn=o({},dn,{view:0,detail:0}),hn=ln(vn),mn=o({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(cn=e.screenX-fn.screenX,sn=e.screenY-fn.screenY):sn=cn=0,fn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),bn=ln(mn),yn=ln(o({},mn,{dataTransfer:0})),gn=ln(o({},vn,{relatedTarget:0})),wn=ln(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=ln(On),Sn=ln(o({},dn,{data:0})),jn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Tn(){return Cn}var xn=o({},vn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=ln(xn),Pn=ln(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=ln(o({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Ln=ln(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=o({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=ln(An),Dn=[9,13,27,32],In=f&&"CompositionEvent"in window,zn=null;f&&"documentMode"in document&&(zn=document.documentMode);var Fn=f&&"TextEvent"in window&&!zn,Vn=f&&(!In||zn&&8<zn&&11>=zn),Un=String.fromCharCode(32),Bn=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Yn=!1;var Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function qn(e,t,n,r){Pe(r),0<(t=Ir(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,$n=null;function Gn(e){xr(e,0)}function Zn(e){if(G(oo(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Qn&&(Qn.detachEvent("onpropertychange",ar),$n=Qn=null)}function ar(e){if("value"===e.propertyName&&Zn($n)){var t=[];if(qn(t,$n,e,_e(e)),e=Gn,Ie)e(t);else{Ie=!0;try{Le(e,t)}finally{Ie=!1,Fe()}}}}function ir(e,t,n){"focusin"===e?(or(),$n=n,(Qn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&or()}function ur(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn($n)}function lr(e,t){if("click"===e)return Zn(t)}function cr(e,t){if("input"===e||"change"===e)return Zn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function dr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=f&&"documentMode"in document&&11>=document.documentMode,gr=null,wr=null,Or=null,Er=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==gr||gr!==Z(r)||("selectionStart"in(r=gr)&&br(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Or&&dr(Or,r)||(Or=r,0<(r=Ir(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(At,2);for(var jr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<jr.length;kr++)Lt.set(jr[kr],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,l,c){if(Qe.apply(this,arguments),He){if(!He)throw Error(i(198));var s=Ye;He=!1,Ye=null,Ke||(Ke=!0,Xe=s)}}(r,t,void 0,e),e.currentTarget=null}function xr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],l=u.instance,c=u.currentTarget;if(u=u.listener,l!==a&&o.isPropagationStopped())break e;Tr(o,u,c),a=l}else for(i=0;i<r.length;i++){if(l=(u=r[i]).instance,c=u.currentTarget,u=u.listener,l!==a&&o.isPropagationStopped())break e;Tr(o,u,c),a=l}}}if(Ke)throw e=Xe,Ke=!1,Xe=null,e}function Rr(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Ar(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Pr]||(e[Pr]=!0,u.forEach((function(t){Cr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;o|=2,a=r}var i=io(a),u=e+"__"+(t?"capture":"bubble");i.has(u)||(t&&(o|=4),Ar(a,e,o,t),i.add(u))}function Ar(e,t,n,r){var o=Lt.get(t);switch(void 0===o?2:o){case 0:o=$t;break;case 1:o=Gt;break;default:o=Zt}n=o.bind(null,t,n,e),o=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Mr(e,t,n,r,o){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==u;){if(null===(i=no(u)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(ze)return e(t,n);ze=!0;try{De(e,t,n)}finally{ze=!1,Fe()}}((function(){var r=a,o=_e(n),i=[];e:{var u=Nt.get(e);if(void 0!==u){var l=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=Rn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=bn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Tt:case xt:case Rt:l=wn;break;case Pt:l=Ln;break;case"scroll":l=hn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var s=0!==(4&t),f=!s&&"scroll"===e,d=s?null!==u?u+"Capture":null:u;s=[];for(var p,v=r;null!==v;){var h=(p=v).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&(null!=(h=Ve(v,d))&&s.push(Dr(v,h,p)))),f)break;v=v.return}0<s.length&&(u=new l(u,c,null,n,o),i.push({event:u,listeners:s}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(l||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?no(c):null)&&(c!==(f=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(s=bn,h="onMouseLeave",d="onMouseEnter",v="mouse","pointerout"!==e&&"pointerover"!==e||(s=Pn,h="onPointerLeave",d="onPointerEnter",v="pointer"),f=null==l?u:oo(l),p=null==c?u:oo(c),(u=new s(h,v+"leave",l,n,o)).target=f,u.relatedTarget=p,h=null,no(o)===r&&((s=new s(d,v+"enter",c,n,o)).target=p,s.relatedTarget=f,h=s),f=h,l&&c)e:{for(d=c,v=0,p=s=l;p;p=zr(p))v++;for(p=0,h=d;h;h=zr(h))p++;for(;0<v-p;)s=zr(s),v--;for(;0<p-v;)d=zr(d),p--;for(;v--;){if(s===d||null!==d&&s===d.alternate)break e;s=zr(s),d=zr(d)}s=null}else s=null;null!==l&&Fr(i,u,l,s,!1),null!==c&&null!==f&&Fr(i,f,c,s,!0)}if("select"===(l=(u=r?oo(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===l&&"file"===u.type)var m=Jn;else if(Xn(u))if(er)m=cr;else{m=ur;var b=ir}else(l=u.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(m=lr);switch(m&&(m=m(e,r))?qn(i,m,n,o):(b&&b(e,u,r),"focusout"===e&&(b=u._wrapperState)&&b.controlled&&"number"===u.type&&oe(u,"number",u.value)),b=r?oo(r):window,e){case"focusin":(Xn(b)||"true"===b.contentEditable)&&(gr=b,wr=r,Or=null);break;case"focusout":Or=wr=gr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,Sr(i,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(i,n,o)}var y;if(In)e:{switch(e){case"compositionstart":var g="onCompositionStart";break e;case"compositionend":g="onCompositionEnd";break e;case"compositionupdate":g="onCompositionUpdate";break e}g=void 0}else Yn?Wn(e,n)&&(g="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(g="onCompositionStart");g&&(Vn&&"ko"!==n.locale&&(Yn||"onCompositionStart"!==g?"onCompositionEnd"===g&&Yn&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,Yn=!0)),0<(b=Ir(r,g)).length&&(g=new Sn(g,e,null,n,o),i.push({event:g,listeners:b}),y?g.data=y:null!==(y=Hn(n))&&(g.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Un);case"textInput":return(e=t.data)===Un&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Yn)return"compositionend"===e||!In&&Wn(e,t)?(e=rn(),nn=tn=en=null,Yn=!1,e):null;switch(e){default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ir(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}xr(i,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ve(e,n))&&r.unshift(Dr(e,a,o)),null!=(a=Ve(e,t))&&r.push(Dr(e,a,o))),e=e.return}return r}function zr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var u=n,l=u.alternate,c=u.stateNode;if(null!==l&&l===r)break;5===u.tag&&null!==c&&(u=c,o?null!=(l=Ve(n,a))&&i.unshift(Dr(n,l,u)):o||null!=(l=Ve(n,a))&&i.push(Dr(n,l,u))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Vr(){}var Ur=null,Br=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Yr="function"===typeof setTimeout?setTimeout:void 0,Kr="function"===typeof clearTimeout?clearTimeout:void 0;function Xr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $r=0;var Gr=Math.random().toString(36).slice(2),Zr="__reactFiber$"+Gr,Jr="__reactProps$"+Gr,eo="__reactContainer$"+Gr,to="__reactEvents$"+Gr;function no(e){var t=e[Zr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Zr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Qr(e);null!==e;){if(n=e[Zr])return n;e=Qr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Zr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ao(e){return e[Jr]||null}function io(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var uo=[],lo=-1;function co(e){return{current:e}}function so(e){0>lo||(e.current=uo[lo],uo[lo]=null,lo--)}function fo(e,t){lo++,uo[lo]=e.current,e.current=t}var po={},vo=co(po),ho=co(!1),mo=po;function bo(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function yo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function go(){so(ho),so(vo)}function wo(e,t,n){if(vo.current!==po)throw Error(i(168));fo(vo,t),fo(ho,n)}function Oo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(i(108,X(t)||"Unknown",a));return o({},n,r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,mo=vo.current,fo(vo,e),fo(ho,ho.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Oo(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,so(ho),so(vo),fo(vo,e)):so(ho),fo(ho,n)}var jo=null,ko=null,_o=a.unstable_runWithPriority,Co=a.unstable_scheduleCallback,To=a.unstable_cancelCallback,xo=a.unstable_shouldYield,Ro=a.unstable_requestPaint,Po=a.unstable_now,No=a.unstable_getCurrentPriorityLevel,Lo=a.unstable_ImmediatePriority,Ao=a.unstable_UserBlockingPriority,Mo=a.unstable_NormalPriority,Do=a.unstable_LowPriority,Io=a.unstable_IdlePriority,zo={},Fo=void 0!==Ro?Ro:function(){},Vo=null,Uo=null,Bo=!1,Wo=Po(),Ho=1e4>Wo?Po:function(){return Po()-Wo};function Yo(){switch(No()){case Lo:return 99;case Ao:return 98;case Mo:return 97;case Do:return 96;case Io:return 95;default:throw Error(i(332))}}function Ko(e){switch(e){case 99:return Lo;case 98:return Ao;case 97:return Mo;case 96:return Do;case 95:return Io;default:throw Error(i(332))}}function Xo(e,t){return e=Ko(e),_o(e,t)}function qo(e,t,n){return e=Ko(e),Co(e,t,n)}function Qo(){if(null!==Uo){var e=Uo;Uo=null,To(e)}$o()}function $o(){if(!Bo&&null!==Vo){Bo=!0;var e=0;try{var t=Vo;Xo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Vo=null}catch(n){throw null!==Vo&&(Vo=Vo.slice(e+1)),Co(Lo,Qo),n}finally{Bo=!1}}}var Go=O.ReactCurrentBatchConfig;function Zo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=co(null),ea=null,ta=null,na=null;function ra(){na=ta=ea=null}function oa(e){var t=Jo.current;so(Jo),e.type._context._currentValue=t}function aa(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ia(e,t){ea=e,na=ta=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ii=!0),e.firstContext=null)}function ua(e,t){if(na!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(na=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ta){if(null===ea)throw Error(i(308));ta=t,ea.dependencies={lanes:0,firstContext:t,responders:null}}else ta=ta.next=t;return e._currentValue}var la=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function da(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function va(e,t,n,r){var a=e.updateQueue;la=!1;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var c=l,s=c.next;c.next=null,null===u?i=s:u.next=s,u=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=s:d.next=s,f.lastBaseUpdate=c)}}if(null!==i){for(d=a.baseState,u=0,f=s=c=null;;){l=i.lane;var p=i.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,h=i;switch(l=t,p=n,h.tag){case 1:if("function"===typeof(v=h.payload)){d=v.call(p,d,l);break e}d=v;break e;case 3:v.flags=-4097&v.flags|64;case 0:if(null===(l="function"===typeof(v=h.payload)?v.call(p,d,l):v)||void 0===l)break e;d=o({},d,l);break e;case 2:la=!0}}null!==i.callback&&(e.flags|=32,null===(l=a.effects)?a.effects=[i]:l.push(i))}else p={eventTime:p,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(s=f=p,c=d):f=f.next=p,u|=l;if(null===(i=i.next)){if(null===(l=a.shared.pending))break;i=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}null===f&&(c=d),a.baseState=c,a.firstBaseUpdate=s,a.lastBaseUpdate=f,Uu|=u,e.lanes=u,e.memoizedState=d}}function ha(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var ma=(new r.Component).refs;function ba(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ya={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dl(),o=pl(e),a=fa(r,o);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),vl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dl(),o=pl(e),a=fa(r,o);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),vl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dl(),r=pl(e),o=fa(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),da(e,o),vl(e,r,n)}};function ga(e,t,n,r,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(o,a))}function wa(e,t,n){var r=!1,o=po,a=t.contextType;return"object"===typeof a&&null!==a?a=ua(a):(o=yo(t)?mo:vo.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?bo(e,o):po),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ya,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Oa(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ya.enqueueReplaceState(t,t.state,null)}function Ea(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ma,ca(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=ua(a):(a=yo(t)?mo:vo.current,o.context=bo(e,a)),va(e,n,o,r),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ba(e,t,a,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ya.enqueueReplaceState(o,o.state,null),va(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var Sa=Array.isArray;function ja(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===ma&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function ka(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _a(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Kl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=$l(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=ja(e,t,n),r.return=e,r):((r=Xl(n.type,n.key,n.props,null,e.mode,r)).ref=ja(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=ql(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=$l(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Xl(t.type,t.key,t.props,null,e.mode,n)).ref=ja(e,null,t),n.return=e,n;case S:return(t=Gl(t,e.mode,n)).return=e,t}if(Sa(t)||B(t))return(t=ql(t,e.mode,n,null)).return=e,t;ka(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?n.type===j?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case S:return n.key===o?s(e,t,n,r):null}if(Sa(n)||B(n))return null!==o?null:f(e,t,n,r,null);ka(e,n)}return null}function v(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===j?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case S:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Sa(r)||B(r))return f(t,e=e.get(n)||null,r,o,null);ka(t,r)}return null}function h(o,i,u,l){for(var c=null,s=null,f=i,h=i=0,m=null;null!==f&&h<u.length;h++){f.index>h?(m=f,f=null):m=f.sibling;var b=p(o,f,u[h],l);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),i=a(b,i,h),null===s?c=b:s.sibling=b,s=b,f=m}if(h===u.length)return n(o,f),c;if(null===f){for(;h<u.length;h++)null!==(f=d(o,u[h],l))&&(i=a(f,i,h),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(o,f);h<u.length;h++)null!==(m=v(f,o,h,u[h],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?h:m.key),i=a(m,i,h),null===s?c=m:s.sibling=m,s=m);return e&&f.forEach((function(e){return t(o,e)})),c}function m(o,u,l,c){var s=B(l);if("function"!==typeof s)throw Error(i(150));if(null==(l=s.call(l)))throw Error(i(151));for(var f=s=null,h=u,m=u=0,b=null,y=l.next();null!==h&&!y.done;m++,y=l.next()){h.index>m?(b=h,h=null):b=h.sibling;var g=p(o,h,y.value,c);if(null===g){null===h&&(h=b);break}e&&h&&null===g.alternate&&t(o,h),u=a(g,u,m),null===f?s=g:f.sibling=g,f=g,h=b}if(y.done)return n(o,h),s;if(null===h){for(;!y.done;m++,y=l.next())null!==(y=d(o,y.value,c))&&(u=a(y,u,m),null===f?s=y:f.sibling=y,f=y);return s}for(h=r(o,h);!y.done;m++,y=l.next())null!==(y=v(h,o,m,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?m:y.key),u=a(y,u,m),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return t(o,e)})),s}return function(e,r,a,l){var c="object"===typeof a&&null!==a&&a.type===j&&null===a.key;c&&(a=a.props.children);var s="object"===typeof a&&null!==a;if(s)switch(a.$$typeof){case E:e:{for(s=a.key,c=r;null!==c;){if(c.key===s){if(7===c.tag){if(a.type===j){n(e,c.sibling),(r=o(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=o(c,a.props)).ref=ja(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===j?((r=ql(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Xl(a.type,a.key,a.props,null,e.mode,l)).ref=ja(e,r,a),l.return=e,e=l)}return u(e);case S:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gl(a,e.mode,l)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=$l(a,e.mode,l)).return=e,e=r),u(e);if(Sa(a))return h(e,r,a,l);if(B(a))return m(e,r,a,l);if(s&&ka(e,a),"undefined"===typeof a&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,X(e.type)||"Component"))}return n(e,r)}}var Ca=_a(!0),Ta=_a(!1),xa={},Ra=co(xa),Pa=co(xa),Na=co(xa);function La(e){if(e===xa)throw Error(i(174));return e}function Aa(e,t){switch(fo(Na,t),fo(Pa,e),fo(Ra,xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ve(null,"");break;default:t=ve(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}so(Ra),fo(Ra,t)}function Ma(){so(Ra),so(Pa),so(Na)}function Da(e){La(Na.current);var t=La(Ra.current),n=ve(t,e.type);t!==n&&(fo(Pa,e),fo(Ra,n))}function Ia(e){Pa.current===e&&(so(Ra),so(Pa))}var za=co(0);function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Va=null,Ua=null,Ba=!1;function Wa(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ha(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ya(e){if(Ba){var t=Ua;if(t){var n=t;if(!Ha(e,t)){if(!(t=qr(n.nextSibling))||!Ha(e,t))return e.flags=-1025&e.flags|2,Ba=!1,void(Va=e);Wa(Va,n)}Va=e,Ua=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ba=!1,Va=e}}function Ka(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Va=e}function Xa(e){if(e!==Va)return!1;if(!Ba)return Ka(e),Ba=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Ua;t;)Wa(e,t),t=qr(t.nextSibling);if(Ka(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ua=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ua=null}}else Ua=Va?qr(e.stateNode.nextSibling):null;return!0}function qa(){Ua=Va=null,Ba=!1}var Qa=[];function $a(){for(var e=0;e<Qa.length;e++)Qa[e]._workInProgressVersionPrimary=null;Qa.length=0}var Ga=O.ReactCurrentDispatcher,Za=O.ReactCurrentBatchConfig,Ja=0,ei=null,ti=null,ni=null,ri=!1,oi=!1;function ai(){throw Error(i(321))}function ii(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ui(e,t,n,r,o,a){if(Ja=a,ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ga.current=null===e||null===e.memoizedState?Li:Ai,e=n(r,o),oi){a=0;do{if(oi=!1,!(25>a))throw Error(i(301));a+=1,ni=ti=null,t.updateQueue=null,Ga.current=Mi,e=n(r,o)}while(oi)}if(Ga.current=Ni,t=null!==ti&&null!==ti.next,Ja=0,ni=ti=ei=null,ri=!1,t)throw Error(i(300));return e}function li(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ni?ei.memoizedState=ni=e:ni=ni.next=e,ni}function ci(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ni?ei.memoizedState:ni.next;if(null!==t)ni=t,ti=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ni?ei.memoizedState=ni=e:ni=ni.next=e}return ni}function si(e,t){return"function"===typeof t?t(e):t}function fi(e){var t=ci(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ti,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=u=a=null,c=o;do{var s=c.lane;if((Ja&s)===s)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:s,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(u=l=f,a=r):l=l.next=f,ei.lanes|=s,Uu|=s}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=u,sr(r,t.memoizedState)||(Ii=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=ci(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);sr(a,t.memoizedState)||(Ii=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ja&e)===e)&&(t._workInProgressVersionPrimary=r,Qa.push(t))),e)return n(t._source);throw Qa.push(t),Error(i(350))}function vi(e,t,n,r){var o=Lu;if(null===o)throw Error(i(349));var a=t._getVersion,u=a(t._source),l=Ga.current,c=l.useState((function(){return pi(o,t,n)})),s=c[1],f=c[0];c=ni;var d=e.memoizedState,p=d.refs,v=p.getSnapshot,h=d.source;d=d.subscribe;var m=ei;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=s;var e=a(t._source);if(!sr(u,e)){e=n(t._source),sr(f,e)||(s(e),e=pl(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,i=e;0<i;){var l=31-Ht(i),c=1<<l;r[l]|=e,i&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pl(m);o.mutableReadLanes|=r&o.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),sr(v,n)&&sr(h,t)&&sr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:si,lastRenderedState:f}).dispatch=s=Pi.bind(null,ei,e),c.queue=e,c.baseQueue=null,f=pi(o,t,n),c.memoizedState=c.baseState=f),f}function hi(e,t,n){return vi(ci(),e,t,n)}function mi(e){var t=li();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:si,lastRenderedState:e}).dispatch=Pi.bind(null,ei,e),[t.memoizedState,e]}function bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ei.updateQueue)?(t={lastEffect:null},ei.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function yi(e){return e={current:e},li().memoizedState=e}function gi(){return ci().memoizedState}function wi(e,t,n,r){var o=li();ei.flags|=e,o.memoizedState=bi(1|t,n,void 0,void 0===r?null:r)}function Oi(e,t,n,r){var o=ci();r=void 0===r?null:r;var a=void 0;if(null!==ti){var i=ti.memoizedState;if(a=i.destroy,null!==r&&ii(r,i.deps))return void bi(t,n,a,r)}ei.flags|=e,o.memoizedState=bi(1|t,n,a,r)}function Ei(e,t){return wi(516,4,e,t)}function Si(e,t){return Oi(516,4,e,t)}function ji(e,t){return Oi(4,2,e,t)}function ki(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _i(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oi(4,2,ki.bind(null,t,e),n)}function Ci(){}function Ti(e,t){var n=ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xi(e,t){var n=ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ri(e,t){var n=Yo();Xo(98>n?98:n,(function(){e(!0)})),Xo(97<n?97:n,(function(){var n=Za.transition;Za.transition=1;try{e(!1),t()}finally{Za.transition=n}}))}function Pi(e,t,n){var r=dl(),o=pl(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===ei||null!==i&&i===ei)oi=ri=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var u=t.lastRenderedState,l=i(u,n);if(a.eagerReducer=i,a.eagerState=l,sr(l,u))return}catch(c){}vl(e,o,r)}}var Ni={readContext:ua,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Li={readContext:ua,useCallback:function(e,t){return li().memoizedState=[e,void 0===t?null:t],e},useContext:ua,useEffect:Ei,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wi(4,2,ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wi(4,2,e,t)},useMemo:function(e,t){var n=li();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Pi.bind(null,ei,e),[r.memoizedState,e]},useRef:yi,useState:mi,useDebugValue:Ci,useDeferredValue:function(e){var t=mi(e),n=t[0],r=t[1];return Ei((function(){var t=Za.transition;Za.transition=1;try{r(e)}finally{Za.transition=t}}),[e]),n},useTransition:function(){var e=mi(!1),t=e[0];return yi(e=Ri.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=li();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},vi(r,e,t,n)},useOpaqueIdentifier:function(){if(Ba){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+($r++).toString(36))),Error(i(355))})),n=mi(t)[1];return 0===(2&ei.mode)&&(ei.flags|=516,bi(5,(function(){n("r:"+($r++).toString(36))}),void 0,null)),t}return mi(t="r:"+($r++).toString(36)),t},unstable_isNewReconciler:!1},Ai={readContext:ua,useCallback:Ti,useContext:ua,useEffect:Si,useImperativeHandle:_i,useLayoutEffect:ji,useMemo:xi,useReducer:fi,useRef:gi,useState:function(){return fi(si)},useDebugValue:Ci,useDeferredValue:function(e){var t=fi(si),n=t[0],r=t[1];return Si((function(){var t=Za.transition;Za.transition=1;try{r(e)}finally{Za.transition=t}}),[e]),n},useTransition:function(){var e=fi(si)[0];return[gi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return fi(si)[0]},unstable_isNewReconciler:!1},Mi={readContext:ua,useCallback:Ti,useContext:ua,useEffect:Si,useImperativeHandle:_i,useLayoutEffect:ji,useMemo:xi,useReducer:di,useRef:gi,useState:function(){return di(si)},useDebugValue:Ci,useDeferredValue:function(e){var t=di(si),n=t[0],r=t[1];return Si((function(){var t=Za.transition;Za.transition=1;try{r(e)}finally{Za.transition=t}}),[e]),n},useTransition:function(){var e=di(si)[0];return[gi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return di(si)[0]},unstable_isNewReconciler:!1},Di=O.ReactCurrentOwner,Ii=!1;function zi(e,t,n,r){t.child=null===e?Ta(t,null,n,r):Ca(t,e.child,n,r)}function Fi(e,t,n,r,o){n=n.render;var a=t.ref;return ia(t,o),r=ui(e,t,n,r,a,o),null===e||Ii?(t.flags|=1,zi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,au(e,t,o))}function Vi(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!==typeof i||Yl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ui(e,t,i,r,o,a))}return i=e.child,0===(o&a)&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:dr)(o,r)&&e.ref===t.ref)?au(e,t,a):(t.flags|=1,(e=Kl(i,r)).ref=t.ref,e.return=t,t.child=e)}function Ui(e,t,n,r,o,a){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Ii=!1,0===(a&o))return t.lanes=e.lanes,au(e,t,a);0!==(16384&e.flags)&&(Ii=!0)}return Hi(e,t,n,r,a)}function Bi(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},El(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},El(t,e),null;t.memoizedState={baseLanes:0},El(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,El(t,r);return zi(e,t,o,n),t.child}function Wi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hi(e,t,n,r,o){var a=yo(n)?mo:vo.current;return a=bo(t,a),ia(t,o),n=ui(e,t,n,r,a,o),null===e||Ii?(t.flags|=1,zi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,au(e,t,o))}function Yi(e,t,n,r,o){if(yo(n)){var a=!0;Eo(t)}else a=!1;if(ia(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wa(t,n,r),Ea(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,u=t.memoizedProps;i.props=u;var l=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=ua(c):c=bo(t,c=yo(n)?mo:vo.current);var s=n.getDerivedStateFromProps,f="function"===typeof s||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==r||l!==c)&&Oa(t,i,r,c),la=!1;var d=t.memoizedState;i.state=d,va(t,r,i,o),l=t.memoizedState,u!==r||d!==l||ho.current||la?("function"===typeof s&&(ba(t,n,s,r),l=t.memoizedState),(u=la||ga(t,n,u,r,d,l,c))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4)):("function"===typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=u):("function"===typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,sa(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:Zo(t.type,u),i.props=c,f=t.pendingProps,d=i.context,"object"===typeof(l=n.contextType)&&null!==l?l=ua(l):l=bo(t,l=yo(n)?mo:vo.current);var p=n.getDerivedStateFromProps;(s="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(u!==f||d!==l)&&Oa(t,i,r,l),la=!1,d=t.memoizedState,i.state=d,va(t,r,i,o);var v=t.memoizedState;u!==f||d!==v||ho.current||la?("function"===typeof p&&(ba(t,n,p,r),v=t.memoizedState),(c=la||ga(t,n,c,r,d,v,l))?(s||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,v,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,v,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ki(e,t,n,r,a,o)}function Ki(e,t,n,r,o,a){Wi(e,t);var i=0!==(64&t.flags);if(!r&&!i)return o&&So(t,n,!1),au(e,t,a);r=t.stateNode,Di.current=t;var u=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ca(t,e.child,null,a),t.child=Ca(t,null,u,a)):zi(e,t,u,a),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function Xi(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Aa(e,t.containerInfo)}var qi,Qi,$i,Gi={dehydrated:null,retryLane:0};function Zi(e,t,n){var r,o=t.pendingProps,a=za.current,i=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),fo(za,1&a),null===e?(void 0!==o.fallback&&Ya(t),e=o.children,a=o.fallback,i?(e=Ji(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Gi,e):"number"===typeof o.unstable_expectedLoadTime?(e=Ji(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Gi,t.lanes=33554432,e):((n=Ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(o=tu(e,t,o.children,o.fallback,n),i=t.child,a=e.child.memoizedState,i.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Gi,o):(n=eu(e,t,o.children,n),t.memoizedState=null,n))}function Ji(e,t,n,r){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Ql(t,o,0,null),n=ql(n,o,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function eu(e,t,n,r){var o=e.child;return e=o.sibling,n=Kl(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tu(e,t,n,r,o){var a=t.mode,i=e.child;e=i.sibling;var u={mode:"hidden",children:n};return 0===(2&a)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=u,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Kl(i,u),null!==e?r=Kl(e,r):(r=ql(r,a,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nu(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),aa(e.return,t)}function ru(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.lastEffect=a)}function ou(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(zi(e,t,r.children,n),0!==(2&(r=za.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nu(e,n);else if(19===e.tag)nu(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(za,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ru(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ru(t,!0,n,null,a,t.lastEffect);break;case"together":ru(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function au(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Uu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Kl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function iu(e,t){if(!Ba)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&go(),null;case 3:return Ma(),so(ho),so(vo),$a(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Xa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ia(t);var a=La(Na.current);if(n=t.type,null!==e&&null!=t.stateNode)Qi(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=La(Ra.current),Xa(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Zr]=t,r[Jr]=u,n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Rr(_r[e],r);break;case"source":Rr("error",r);break;case"img":case"image":case"link":Rr("error",r),Rr("load",r);break;case"details":Rr("toggle",r);break;case"input":ee(r,u),Rr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Rr("invalid",r);break;case"textarea":le(r,u),Rr("invalid",r)}for(var c in je(n,u),e=null,u)u.hasOwnProperty(c)&&(a=u[c],"children"===c?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):l.hasOwnProperty(c)&&null!=a&&"onScroll"===c&&Rr("scroll",r));switch(n){case"input":$(r),re(r,u,!0);break;case"textarea":$(r),se(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Vr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Zr]=t,e[Jr]=r,qi(e,t),t.stateNode=e,c=ke(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),a=r;break;case"iframe":case"object":case"embed":Rr("load",e),a=r;break;case"video":case"audio":for(a=0;a<_r.length;a++)Rr(_r[a],e);a=r;break;case"source":Rr("error",e),a=r;break;case"img":case"image":case"link":Rr("error",e),Rr("load",e),a=r;break;case"details":Rr("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Rr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=o({},r,{value:void 0}),Rr("invalid",e);break;case"textarea":le(e,r),a=ue(e,r),Rr("invalid",e);break;default:a=r}je(n,a);var s=a;for(u in s)if(s.hasOwnProperty(u)){var f=s[u];"style"===u?Ee(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&be(e,f):"children"===u?"string"===typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"===typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Rr("scroll",e):null!=f&&w(e,u,f,c))}switch(n){case"input":$(e),re(e,r,!1);break;case"textarea":$(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?ie(e,!!r.multiple,u,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Vr)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$i(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));n=La(Na.current),La(Ra.current),Xa(t)?(r=t.stateNode,n=t.memoizedProps,r[Zr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Zr]=t,t.stateNode=r)}return null;case 13:return so(za),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Xa(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&za.current)?0===zu&&(zu=3):(0!==zu&&3!==zu||(zu=4),null===Lu||0===(134217727&Uu)&&0===(134217727&Bu)||yl(Lu,Mu))),(r||n)&&(t.flags|=4),null);case 4:return Ma(),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return oa(t),null;case 19:if(so(za),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(c=r.rendering))if(u)iu(r,!1);else{if(0!==zu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Fa(e))){for(t.flags|=64,iu(r,!1),null!==(u=c.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(c=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=c.childLanes,u.lanes=c.lanes,u.child=c.child,u.memoizedProps=c.memoizedProps,u.memoizedState=c.memoizedState,u.updateQueue=c.updateQueue,u.type=c.type,e=c.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fo(za,1&za.current|2),t.child}e=e.sibling}null!==r.tail&&Ho()>Ku&&(t.flags|=64,u=!0,iu(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Fa(c))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),iu(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ba)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>Ku&&1073741824!==n&&(t.flags|=64,u=!0,iu(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=za.current,fo(za,u?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function lu(e){switch(e.tag){case 1:yo(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ma(),so(ho),so(vo),$a(),0!==(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Ia(e),null;case 13:return so(za),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return so(za),null;case 4:return Ma(),null;case 10:return oa(e),null;case 23:case 24:return Sl(),null;default:return null}}function cu(e,t){try{var n="",r=t;do{n+=K(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o}}function su(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}qi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qi=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,La(Ra.current);var i,u=null;switch(n){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Vr)}for(f in je(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var c=a[f];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var s=r[f];if(c=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&s!==c&&(null!=s||null!=c))if("style"===f)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(u||(u=[]),u.push(f,n)),n=s;else"dangerouslySetInnerHTML"===f?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(u=u||[]).push(f,s)):"children"===f?"string"!==typeof s&&"number"!==typeof s||(u=u||[]).push(f,""+s):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=s&&"onScroll"===f&&Rr("scroll",e),u||c===s||(u=[])):"object"===typeof s&&null!==s&&s.$$typeof===M?s.toString():(u=u||[]).push(f,s))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},$i=function(e,t,n,r){n!==r&&(t.flags|=4)};var fu="function"===typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=fa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$u||($u=!0,Gu=r),su(0,t)},n}function pu(e,t,n){(n=fa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return su(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Zu?Zu=new Set([this]):Zu.add(this),su(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var vu="function"===typeof WeakSet?WeakSet:Set;function hu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Vl(e,n)}else t.current=null}function mu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Xr(t.stateNode.containerInfo))}throw Error(i(163))}function bu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Il(n,e),Dl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Zo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ha(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ha(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(i(163))}function yu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=Oe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gu(e,t){if(ko&&"function"===typeof ko.onCommitFiberUnmount)try{ko.onCommitFiberUnmount(jo,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Il(t,n);else{r=t;try{o()}catch(a){Vl(r,a)}}n=n.next}while(n!==e)}break;case 1:if(hu(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Vl(t,a)}break;case 5:hu(t);break;case 4:ku(e,t)}}function wu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ou(e){return 5===e.tag||3===e.tag||4===e.tag}function Eu(e){e:{for(var t=e.return;null!==t;){if(Ou(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ou(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Su(e,n,t):ju(e,n,t)}function Su(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Vr));else if(4!==r&&null!==(e=e.child))for(Su(e,t,n),e=e.sibling;null!==e;)Su(e,t,n),e=e.sibling}function ju(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ju(e,t,n),e=e.sibling;null!==e;)ju(e,t,n),e=e.sibling}function ku(e,t){for(var n,r,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(i(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var u=e,l=o,c=l;;)if(gu(u,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(u=n,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(gu(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function _u(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),ke(e,o),t=ke(e,r),o=0;o<a.length;o+=2){var u=a[o],l=a[o+1];"style"===u?Ee(n,l):"dangerouslySetInnerHTML"===u?be(n,l):"children"===u?ye(n,l):w(n,u,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?ie(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Yu=Ho(),yu(t.child,!0)),void Cu(t);case 19:return void Cu(t);case 23:case 24:return void yu(t,null!==t.memoizedState)}throw Error(i(163))}function Cu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new vu),t.forEach((function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Tu(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var xu=Math.ceil,Ru=O.ReactCurrentDispatcher,Pu=O.ReactCurrentOwner,Nu=0,Lu=null,Au=null,Mu=0,Du=0,Iu=co(0),zu=0,Fu=null,Vu=0,Uu=0,Bu=0,Wu=0,Hu=null,Yu=0,Ku=1/0;function Xu(){Ku=Ho()+500}var qu,Qu=null,$u=!1,Gu=null,Zu=null,Ju=!1,el=null,tl=90,nl=[],rl=[],ol=null,al=0,il=null,ul=-1,ll=0,cl=0,sl=null,fl=!1;function dl(){return 0!==(48&Nu)?Ho():-1!==ul?ul:ul=Ho()}function pl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Yo()?1:2;if(0===ll&&(ll=Vu),0!==Go.transition){0!==cl&&(cl=null!==Hu?Hu.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Yo(),0!==(4&Nu)&&98===e?e=Vt(12,ll):e=Vt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function vl(e,t,n){if(50<al)throw al=0,il=null,Error(i(185));if(null===(e=hl(e,t)))return null;Wt(e,t,n),e===Lu&&(Bu|=t,4===zu&&yl(e,Mu));var r=Yo();1===t?0!==(8&Nu)&&0===(48&Nu)?gl(e):(ml(e,n),0===Nu&&(Xu(),Qo())):(0===(4&Nu)||98!==r&&99!==r||(null===ol?ol=new Set([e]):ol.add(e)),ml(e,n)),Hu=e}function hl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ml(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var l=31-Ht(u),c=1<<l,s=a[l];if(-1===s){if(0===(c&r)||0!==(c&o)){s=t,It(c);var f=Dt;a[l]=10<=f?s+250:6<=f?s+5e3:-1}}else s<=t&&(e.expiredLanes|=c);u&=~c}if(r=zt(e,e===Lu?Mu:0),t=Dt,0===r)null!==n&&(n!==zo&&To(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zo&&To(n)}15===t?(n=gl.bind(null,e),null===Vo?(Vo=[n],Uo=Co(Lo,$o)):Vo.push(n),n=zo):14===t?n=qo(99,gl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=qo(n,bl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bl(e){if(ul=-1,cl=ll=0,0!==(48&Nu))throw Error(i(327));var t=e.callbackNode;if(Ml()&&e.callbackNode!==t)return null;var n=zt(e,e===Lu?Mu:0);if(0===n)return null;var r=n,o=Nu;Nu|=16;var a=_l();for(Lu===e&&Mu===r||(Xu(),jl(e,r));;)try{xl();break}catch(l){kl(e,l)}if(ra(),Ru.current=a,Nu=o,null!==Au?r=0:(Lu=null,Mu=0,r=zu),0!==(Vu&Bu))jl(e,0);else if(0!==r){if(2===r&&(Nu|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(n=Ft(e))&&(r=Cl(e,n))),1===r)throw t=Fu,jl(e,0),yl(e,n),ml(e,Ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Nl(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Yu+500-Ho())){if(0!==zt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){dl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Yr(Nl.bind(null,e),r);break}Nl(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var u=31-Ht(n);a=1<<u,(u=r[u])>o&&(o=u),n&=~a}if(n=o,10<(n=(120>(n=Ho()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xu(n/1960))-n)){e.timeoutHandle=Yr(Nl.bind(null,e),n);break}Nl(e);break;default:throw Error(i(329))}}return ml(e,Ho()),e.callbackNode===t?bl.bind(null,e):null}function yl(e,t){for(t&=~Wu,t&=~Bu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function gl(e){if(0!==(48&Nu))throw Error(i(327));if(Ml(),e===Lu&&0!==(e.expiredLanes&Mu)){var t=Mu,n=Cl(e,t);0!==(Vu&Bu)&&(n=Cl(e,t=zt(e,t)))}else n=Cl(e,t=zt(e,0));if(0!==e.tag&&2===n&&(Nu|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(t=Ft(e))&&(n=Cl(e,t))),1===n)throw n=Fu,jl(e,0),yl(e,t),ml(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nl(e),ml(e,Ho()),null}function wl(e,t){var n=Nu;Nu|=1;try{return e(t)}finally{0===(Nu=n)&&(Xu(),Qo())}}function Ol(e,t){var n=Nu;Nu&=-2,Nu|=8;try{return e(t)}finally{0===(Nu=n)&&(Xu(),Qo())}}function El(e,t){fo(Iu,Du),Du|=t,Vu|=t}function Sl(){Du=Iu.current,so(Iu)}function jl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Kr(n)),null!==Au)for(n=Au.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&go();break;case 3:Ma(),so(ho),so(vo),$a();break;case 5:Ia(r);break;case 4:Ma();break;case 13:case 19:so(za);break;case 10:oa(r);break;case 23:case 24:Sl()}n=n.return}Lu=e,Au=Kl(e.current,null),Mu=Du=Vu=t,zu=0,Fu=null,Wu=Bu=Uu=0}function kl(e,t){for(;;){var n=Au;try{if(ra(),Ga.current=Ni,ri){for(var r=ei.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ri=!1}if(Ja=0,ni=ti=ei=null,oi=!1,Pu.current=null,null===n||null===n.return){zu=1,Fu=t,Au=null;break}e:{var a=e,i=n.return,u=n,l=t;if(t=Mu,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&u.mode)){var s=u.alternate;s?(u.updateQueue=s.updateQueue,u.memoizedState=s.memoizedState,u.lanes=s.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!==(1&za.current),d=i;do{var p;if(p=13===d.tag){var v=d.memoizedState;if(null!==v)p=null!==v.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!f)}}if(p){var m=d.updateQueue;if(null===m){var b=new Set;b.add(c),d.updateQueue=b}else m.add(c);if(0===(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var y=fa(-1,1);y.tag=2,da(u,y)}u.lanes|=1;break e}l=void 0,u=t;var g=a.pingCache;if(null===g?(g=a.pingCache=new fu,l=new Set,g.set(c,l)):void 0===(l=g.get(c))&&(l=new Set,g.set(c,l)),!l.has(u)){l.add(u);var w=Ul.bind(null,a,c,u);c.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((X(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==zu&&(zu=2),l=cu(l,u),d=i;do{switch(d.tag){case 3:a=l,d.flags|=4096,t&=-t,d.lanes|=t,pa(d,du(0,a,t));break e;case 1:a=l;var O=d.type,E=d.stateNode;if(0===(64&d.flags)&&("function"===typeof O.getDerivedStateFromError||null!==E&&"function"===typeof E.componentDidCatch&&(null===Zu||!Zu.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,pa(d,pu(d,a,t));break e}}d=d.return}while(null!==d)}Pl(n)}catch(S){t=S,Au===n&&null!==n&&(Au=n=n.return);continue}break}}function _l(){var e=Ru.current;return Ru.current=Ni,null===e?Ni:e}function Cl(e,t){var n=Nu;Nu|=16;var r=_l();for(Lu===e&&Mu===t||jl(e,t);;)try{Tl();break}catch(o){kl(e,o)}if(ra(),Nu=n,Ru.current=r,null!==Au)throw Error(i(261));return Lu=null,Mu=0,zu}function Tl(){for(;null!==Au;)Rl(Au)}function xl(){for(;null!==Au&&!xo();)Rl(Au)}function Rl(e){var t=qu(e.alternate,e,Du);e.memoizedProps=e.pendingProps,null===t?Pl(e):Au=t,Pu.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=uu(n,t,Du)))return void(Au=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Du)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=lu(t)))return n.flags&=2047,void(Au=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Au=t);Au=t=e}while(null!==t);0===zu&&(zu=5)}function Nl(e){var t=Yo();return Xo(99,Ll.bind(null,e,t)),null}function Ll(e,t){do{Ml()}while(null!==el);if(0!==(48&Nu))throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,a=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var u=e.eventTimes,l=e.expirationTimes;0<a;){var c=31-Ht(a),s=1<<c;o[c]=0,u[c]=-1,l[c]=-1,a&=~s}if(null!==ol&&0===(24&r)&&ol.has(e)&&ol.delete(e),e===Lu&&(Au=Lu=null,Mu=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Nu,Nu|=32,Pu.current=null,Ur=Qt,br(u=mr())){if("selectionStart"in u)l={start:u.selectionStart,end:u.selectionEnd};else e:if(l=(l=u.ownerDocument)&&l.defaultView||window,(s=l.getSelection&&l.getSelection())&&0!==s.rangeCount){l=s.anchorNode,a=s.anchorOffset,c=s.focusNode,s=s.focusOffset;try{l.nodeType,c.nodeType}catch(_){l=null;break e}var f=0,d=-1,p=-1,v=0,h=0,m=u,b=null;t:for(;;){for(var y;m!==l||0!==a&&3!==m.nodeType||(d=f+a),m!==c||0!==s&&3!==m.nodeType||(p=f+s),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)b=m,m=y;for(;;){if(m===u)break t;if(b===l&&++v===a&&(d=f),b===c&&++h===s&&(p=f),null!==(y=m.nextSibling))break;b=(m=b).parentNode}m=y}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Br={focusedElem:u,selectionRange:l},Qt=!1,sl=null,fl=!1,Qu=r;do{try{Al()}catch(_){if(null===Qu)throw Error(i(330));Vl(Qu,_),Qu=Qu.nextEffect}}while(null!==Qu);sl=null,Qu=r;do{try{for(u=e;null!==Qu;){var g=Qu.flags;if(16&g&&ye(Qu.stateNode,""),128&g){var w=Qu.alternate;if(null!==w){var O=w.ref;null!==O&&("function"===typeof O?O(null):O.current=null)}}switch(1038&g){case 2:Eu(Qu),Qu.flags&=-3;break;case 6:Eu(Qu),Qu.flags&=-3,_u(Qu.alternate,Qu);break;case 1024:Qu.flags&=-1025;break;case 1028:Qu.flags&=-1025,_u(Qu.alternate,Qu);break;case 4:_u(Qu.alternate,Qu);break;case 8:ku(u,l=Qu);var E=l.alternate;wu(l),null!==E&&wu(E)}Qu=Qu.nextEffect}}catch(_){if(null===Qu)throw Error(i(330));Vl(Qu,_),Qu=Qu.nextEffect}}while(null!==Qu);if(O=Br,w=mr(),g=O.focusedElem,u=O.selectionRange,w!==g&&g&&g.ownerDocument&&hr(g.ownerDocument.documentElement,g)){null!==u&&br(g)&&(w=u.start,void 0===(O=u.end)&&(O=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(O,g.value.length)):(O=(w=g.ownerDocument||document)&&w.defaultView||window).getSelection&&(O=O.getSelection(),l=g.textContent.length,E=Math.min(u.start,l),u=void 0===u.end?E:Math.min(u.end,l),!O.extend&&E>u&&(l=u,u=E,E=l),l=vr(g,E),a=vr(g,u),l&&a&&(1!==O.rangeCount||O.anchorNode!==l.node||O.anchorOffset!==l.offset||O.focusNode!==a.node||O.focusOffset!==a.offset)&&((w=w.createRange()).setStart(l.node,l.offset),O.removeAllRanges(),E>u?(O.addRange(w),O.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),O.addRange(w))))),w=[];for(O=g;O=O.parentNode;)1===O.nodeType&&w.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"===typeof g.focus&&g.focus(),g=0;g<w.length;g++)(O=w[g]).element.scrollLeft=O.left,O.element.scrollTop=O.top}Qt=!!Ur,Br=Ur=null,e.current=n,Qu=r;do{try{for(g=e;null!==Qu;){var S=Qu.flags;if(36&S&&bu(g,Qu.alternate,Qu),128&S){w=void 0;var j=Qu.ref;if(null!==j){var k=Qu.stateNode;Qu.tag,w=k,"function"===typeof j?j(w):j.current=w}}Qu=Qu.nextEffect}}catch(_){if(null===Qu)throw Error(i(330));Vl(Qu,_),Qu=Qu.nextEffect}}while(null!==Qu);Qu=null,Fo(),Nu=o}else e.current=n;if(Ju)Ju=!1,el=e,tl=t;else for(Qu=r;null!==Qu;)t=Qu.nextEffect,Qu.nextEffect=null,8&Qu.flags&&((S=Qu).sibling=null,S.stateNode=null),Qu=t;if(0===(r=e.pendingLanes)&&(Zu=null),1===r?e===il?al++:(al=0,il=e):al=0,n=n.stateNode,ko&&"function"===typeof ko.onCommitFiberRoot)try{ko.onCommitFiberRoot(jo,n,void 0,64===(64&n.current.flags))}catch(_){}if(ml(e,Ho()),$u)throw $u=!1,e=Gu,Gu=null,e;return 0!==(8&Nu)||Qo(),null}function Al(){for(;null!==Qu;){var e=Qu.alternate;fl||null===sl||(0!==(8&Qu.flags)?et(Qu,sl)&&(fl=!0):13===Qu.tag&&Tu(e,Qu)&&et(Qu,sl)&&(fl=!0));var t=Qu.flags;0!==(256&t)&&mu(e,Qu),0===(512&t)||Ju||(Ju=!0,qo(97,(function(){return Ml(),null}))),Qu=Qu.nextEffect}}function Ml(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Xo(e,zl)}return!1}function Dl(e,t){nl.push(t,e),Ju||(Ju=!0,qo(97,(function(){return Ml(),null})))}function Il(e,t){rl.push(t,e),Ju||(Ju=!0,qo(97,(function(){return Ml(),null})))}function zl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Nu))throw Error(i(331));var t=Nu;Nu|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var o=n[r],a=n[r+1],u=o.destroy;if(o.destroy=void 0,"function"===typeof u)try{u()}catch(c){if(null===a)throw Error(i(330));Vl(a,c)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var l=o.create;o.destroy=l()}catch(c){if(null===a)throw Error(i(330));Vl(a,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Nu=t,Qo(),!0}function Fl(e,t,n){da(e,t=du(0,t=cu(n,t),1)),t=dl(),null!==(e=hl(e,1))&&(Wt(e,1,t),ml(e,t))}function Vl(e,t){if(3===e.tag)Fl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Zu||!Zu.has(r))){var o=pu(n,e=cu(t,e),1);if(da(n,o),o=dl(),null!==(n=hl(n,1)))Wt(n,1,o),ml(n,o);else if("function"===typeof r.componentDidCatch&&(null===Zu||!Zu.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Ul(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dl(),e.pingedLanes|=e.suspendedLanes&n,Lu===e&&(Mu&n)===n&&(4===zu||3===zu&&(62914560&Mu)===Mu&&500>Ho()-Yu?jl(e,0):Wu|=n),ml(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Yo()?1:2:(0===ll&&(ll=Vu),0===(t=Ut(62914560&~ll))&&(t=4194304))),n=dl(),null!==(e=hl(e,t))&&(Wt(e,t,n),ml(e,n))}function Wl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,r){return new Wl(e,t,n,r)}function Yl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kl(e,t){var n=e.alternate;return null===n?((n=Hl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,r,o,a){var u=2;if(r=e,"function"===typeof e)Yl(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case j:return ql(n.children,o,a,t);case D:u=8,o|=16;break;case k:u=8,o|=1;break;case _:return(e=Hl(12,n,t,8|o)).elementType=_,e.type=_,e.lanes=a,e;case R:return(e=Hl(13,n,t,o)).type=R,e.elementType=R,e.lanes=a,e;case P:return(e=Hl(19,n,t,o)).elementType=P,e.lanes=a,e;case I:return Ql(n,o,a,t);case z:return(e=Hl(24,n,t,o)).elementType=z,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:u=10;break e;case T:u=9;break e;case x:u=11;break e;case N:u=14;break e;case L:u=16,r=null;break e;case A:u=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Hl(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function ql(e,t,n,r){return(e=Hl(7,e,r,t)).lanes=n,e}function Ql(e,t,n,r){return(e=Hl(23,e,r,t)).elementType=I,e.lanes=n,e}function $l(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function Gl(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e,t,n,r){var o=t.current,a=dl(),u=pl(o);e:if(n){t:{if($e(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var c=n.type;if(yo(c)){n=Oo(n,c,l);break e}}n=l}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=fa(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),da(o,t),vl(o,u,a),u}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zl(e,t,null!=n&&!0===n.hydrate),t=Hl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ca(t),e[eo]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ac(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ic(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"===typeof o){var u=o;o=function(){var e=tc(i);u.call(e)}}ec(t,i,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"===typeof o){var l=o;o=function(){var e=tc(i);l.call(e)}}Ol((function(){ec(t,i,e,o)}))}return tc(i)}function uc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ac(t))throw Error(i(200));return Jl(e,t,null,n)}qu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ho.current)Ii=!0;else{if(0===(n&r)){switch(Ii=!1,t.tag){case 3:Xi(t),qa();break;case 5:Da(t);break;case 1:yo(t.type)&&Eo(t);break;case 4:Aa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;fo(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Zi(e,t,n):(fo(za,1&za.current),null!==(t=au(e,t,n))?t.sibling:null);fo(za,1&za.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ou(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),fo(za,za.current),r)break;return null;case 23:case 24:return t.lanes=0,Bi(e,t,n)}return au(e,t,n)}Ii=0!==(16384&e.flags)}else Ii=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=bo(t,vo.current),ia(t,n),o=ui(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var a=!0;Eo(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ca(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&ba(t,r,u,e),o.updater=ya,t.stateNode=o,o._reactInternals=t,Ea(t,r,e,n),t=Ki(null,t,r,!0,a,n)}else t.tag=0,zi(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"===typeof e)return Yl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===x)return 11;if(e===N)return 14}return 2}(o),e=Zo(o,e),a){case 0:t=Hi(null,t,o,e,n);break e;case 1:t=Yi(null,t,o,e,n);break e;case 11:t=Fi(null,t,o,e,n);break e;case 14:t=Vi(null,t,o,Zo(o.type,e),r,n);break e}throw Error(i(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Hi(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Yi(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 3:if(Xi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,sa(e,t),va(t,r,null,n),(r=t.memoizedState.element)===o)qa(),t=au(e,t,n);else{if((a=(o=t.stateNode).hydrate)&&(Ua=qr(t.stateNode.containerInfo.firstChild),Va=t,a=Ba=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],Qa.push(a);for(n=Ta(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else zi(e,t,r,n),qa();t=t.child}return t;case 5:return Da(t),null===e&&Ya(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,Hr(r,o)?u=null:null!==a&&Hr(r,a)&&(t.flags|=16),Wi(e,t),zi(e,t,u,n),t.child;case 6:return null===e&&Ya(t),null;case 13:return Zi(e,t,n);case 4:return Aa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ca(t,null,r,n):zi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Fi(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 7:return zi(e,t,t.pendingProps,n),t.child;case 8:case 12:return zi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value;var l=t.type._context;if(fo(Jo,l._currentValue),l._currentValue=a,null!==u)if(l=u.value,0===(a=sr(l,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(u.children===o.children&&!ho.current){t=au(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){u=l.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&a)){1===l.tag&&((s=fa(-1,n&-n)).tag=2,da(l,s)),l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),aa(l.return,n),c.lanes|=n;break}s=s.next}}else u=10===l.tag&&l.type===t.type?null:l.child;if(null!==u)u.return=l;else for(u=l;null!==u;){if(u===t){u=null;break}if(null!==(l=u.sibling)){l.return=u.return,u=l;break}u=u.return}l=u}zi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,ia(t,n),r=r(o=ua(o,a.unstable_observedBits)),t.flags|=1,zi(e,t,r,n),t.child;case 14:return a=Zo(o=t.type,t.pendingProps),Vi(e,t,o,a=Zo(o.type,a),r,n);case 15:return Ui(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Zo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,Eo(t)):e=!1,ia(t,n),wa(t,r,o),Ea(t,r,o,n),Ki(null,t,r,!0,e,n);case 19:return ou(e,t,n);case 23:case 24:return Bi(e,t,n)}throw Error(i(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(vl(e,4,dl()),rc(e,4))},nt=function(e){13===e.tag&&(vl(e,67108864,dl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=dl(),n=pl(e);vl(e,n,t),rc(e,n)}},ot=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ao(r);if(!o)throw Error(i(90));G(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Le=wl,Ae=function(e,t,n,r,o){var a=Nu;Nu|=4;try{return Xo(98,e.bind(null,t,n,r,o))}finally{0===(Nu=a)&&(Xu(),Qo())}},Me=function(){0===(49&Nu)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ml(e,Ho())}))}Qo()}(),Ml())},De=function(e,t){var n=Nu;Nu|=2;try{return e(t)}finally{0===(Nu=n)&&(Xu(),Qo())}};var lc={Events:[ro,oo,ao,Pe,Ne,Ml,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{jo=fc.inject(sc),ko=fc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=uc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Nu;if(0!==(48&n))return e(t);Nu|=1;try{if(e)return Xo(99,e.bind(null,t))}finally{Nu=n,Qo()}},t.hydrate=function(e,t,n){if(!ac(t))throw Error(i(200));return ic(null,e,t,!0,n)},t.render=function(e,t,n){if(!ac(t))throw Error(i(200));return ic(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ac(e))throw Error(i(40));return!!e._reactRootContainer&&(Ol((function(){ic(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return uc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ac(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ic(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(53)},function(e,t,n){"use strict";var r,o,a,i;if("object"===typeof performance&&"function"===typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,f=null,d=function e(){if(null!==s)try{var n=t.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(d,0))},o=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,b=null,y=-1,g=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var O=new MessageChannel,E=O.port2;O.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+g;try{b(!0,e)?E.postMessage(null):(m=!1,b=null)}catch(n){throw E.postMessage(null),n}}else m=!1},r=function(e){b=e,m||(m=!0,E.postMessage(null))},o=function(e,n){y=p((function(){e(t.unstable_now())}),n)},a=function(){v(y),y=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function j(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],u=a+1,l=e[u];if(void 0!==i&&0>_(i,n))void 0!==l&&0>_(l,i)?(e[r]=l,e[u]=n,r=u):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==l&&0>_(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],x=1,R=null,P=3,N=!1,L=!1,A=!1;function M(e){for(var t=j(T);null!==t;){if(null===t.callback)k(T);else{if(!(t.startTime<=e))break;k(T),t.sortIndex=t.expirationTime,S(C,t)}t=j(T)}}function D(e){if(A=!1,M(e),!L)if(null!==j(C))L=!0,r(I);else{var t=j(T);null!==t&&o(D,t.startTime-e)}}function I(e,n){L=!1,A&&(A=!1,a()),N=!0;var r=P;try{for(M(n),R=j(C);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=R.callback;if("function"===typeof i){R.callback=null,P=R.priorityLevel;var u=i(R.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?R.callback=u:R===j(C)&&k(C),M(n)}else k(C);R=j(C)}if(null!==R)var l=!0;else{var c=j(T);null!==c&&o(D,c.startTime-n),l=!1}return l}finally{R=null,P=r,N=!1}}var z=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||N||(L=!0,r(I))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return j(C)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,i){var u=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?u+i:u:i=u,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:x++,callback:n,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>u?(e.sortIndex=i,S(T,e),null===j(C)&&e===j(T)&&(A?a():A=!0,o(D,i-u))):(e.sortIndex=l,S(C,e),L||N||(L=!0,r(I))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},,function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new T(r||[]);return a._invoke=function(e,t,n){var r=f;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw a;return R()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=k(i,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=s(e,t,n);if("normal"===l.type){if(r=n.done?v:d,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=v,n.method="throw",n.arg=l.arg)}}}(e,n,i),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function m(){}function b(){}function y(){}var g={};l(g,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(x([])));O&&O!==n&&r.call(O,a)&&(g=O);var E=y.prototype=m.prototype=Object.create(g);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,a,i,u){var l=s(e[o],e,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,u)}))}u(l.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=s(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function x(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:R}}function R(){return{value:t,done:!0}}return b.prototype=y,l(E,"constructor",y),l(y,"constructor",b),b.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(j.prototype),l(j.prototype,i,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new j(c(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:x(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n(41);var r=n(0),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,s=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)u.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:s,props:a,_owner:i.current}}t.jsx=c,t.jsxs=c},,,function(e,t,n){"use strict";var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.create;Object.create;var o=n(0),a="right-scroll-bar-position",i="width-before-scroll-bar";function u(e,t){return function(e,t){var n=Object(o.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};Object.create;Object.create;function c(e){return e}function s(e,t){void 0===t&&(t=c);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}var f=function(e){void 0===e&&(e={});var t=s(null);return t.options=l({async:!0,ssr:!1},e),t}(),d=function(){},p=o.forwardRef((function(e,t){var n=o.useRef(null),a=o.useState({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:d}),i=a[0],l=a[1],c=e.forwardProps,s=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,b=e.sideCar,y=e.noIsolation,g=e.inert,w=e.allowPinchZoom,O=e.as,E=void 0===O?"div":O,S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),j=b,k=u([n,t]),_=r(r({},S),i);return o.createElement(o.Fragment,null,h&&o.createElement(j,{sideCar:f,removeScrollBar:v,shards:m,noIsolation:y,inert:g,setCallbacks:l,allowPinchZoom:!!w,lockRef:n}),c?o.cloneElement(o.Children.only(s),r(r({},_),{ref:k})):o.createElement(E,r({},_,{className:p,ref:k}),s))}));p.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},p.classNames={fullWidth:i,zeroRight:a};var v,h=function(e){var t=e.sideCar,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return o.createElement(r,l({},n))};h.isSideCarExport=!0;function m(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=v||n.nc;return t&&e.setAttribute("nonce",t),e}var b=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=m())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=function(){var e=b();return function(t){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t])}}();return function(t){var n=t.styles;return e(n),null}},g={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},O=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return g;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},E=y(),S=function(e,t,n,r){var o=e.left,u=e.top,l=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(u,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(i," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(a," .").concat(a," {\n right: 0 ").concat(r,";\n }\n \n .").concat(i," .").concat(i," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},j=function(e){var t=o.useState(O(e.gapMode)),n=t[0],r=t[1];o.useEffect((function(){r(O(e.gapMode))}),[e.gapMode]);var a=e.noRelative,i=e.noImportant,u=e.gapMode,l=void 0===u?"margin":u;return o.createElement(E,{styles:S(n,!a,l,i?"":"!important")})},k=!1;if("undefined"!==typeof window)try{var _=Object.defineProperty({},"passive",{get:function(){return k=!0,!0}});window.addEventListener("test",_,_),window.removeEventListener("test",_,_)}catch(V){k=!1}var C=!!k&&{passive:!1},T=function(e,t){var n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),x(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},x=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},R=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},P=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},N=function(e){return[e.deltaX,e.deltaY]},L=function(e){return e&&"current"in e?e.current:e},A=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},M=0,D=[];var I,z=(I=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),a=o.useState(M++)[0],i=o.useState((function(){return y()}))[0],u=o.useRef(e);o.useEffect((function(){u.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(L),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var o,a=P(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,f=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=T(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=T(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,u=n.target,l=t.contains(u),c=!1,s=i>0,f=0,d=0;do{var p=R(e,u),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&x(e,u)&&(f+=h,d+=v),u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return(s&&(o&&0===f||!o&&i>f)||!s&&(o&&0===d||!o&&-i>d))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),c=o.useCallback((function(e){var n=e;if(D.length&&D[D.length-1]===i){var r="deltaY"in n?N(n):P(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var a=(u.current.shards||[]).map(L).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!u.current.noIsolation)&&n.preventDefault()}}}),[]),s=o.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=o.useCallback((function(e){n.current=P(e),r.current=void 0}),[]),d=o.useCallback((function(t){s(t.type,N(t),t.target,l(t,e.lockRef.current))}),[]),p=o.useCallback((function(t){s(t.type,P(t),t.target,l(t,e.lockRef.current))}),[]);o.useEffect((function(){return D.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,C),document.addEventListener("touchmove",c,C),document.addEventListener("touchstart",f,C),function(){D=D.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,C),document.removeEventListener("touchmove",c,C),document.removeEventListener("touchstart",f,C)}}),[]);var v=e.removeScrollBar,h=e.inert;return o.createElement(o.Fragment,null,h?o.createElement(i,{styles:A(a)}):null,v?o.createElement(j,{gapMode:"margin"}):null)},f.useMedium(I),h),F=o.forwardRef((function(e,t){return o.createElement(p,r({},e,{ref:t,sideCar:z}))}));F.classNames=p.classNames;t.a=F},function(e,t,n){"use strict";var r=n(0),o=function(e){Object(r.useEffect)(e,[])},a=function(e){var t=Object(r.useRef)(e);t.current=e,o((function(){return function(){return t.current()}}))},i=function(e){var t=Object(r.useRef)(0),n=Object(r.useState)(e),o=n[0],i=n[1],u=Object(r.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){i(e)}))}),[]);return a((function(){cancelAnimationFrame(t.current)})),[o,u]},u=n(20);t.a=function(e,t){void 0===e&&(e=1/0),void 0===t&&(t=1/0);var n=i({width:u.a?window.innerWidth:e,height:u.a?window.innerHeight:t}),o=n[0],a=n[1];return Object(r.useEffect)((function(){if(u.a){var e=function(){a({width:window.innerWidth,height:window.innerHeight})};return Object(u.d)(window,"resize",e),function(){Object(u.c)(window,"resize",e)}}}),[]),o}},function(e,t,n){"use strict";var r=n(0),o=n(44),a=function(e){var t=Object(r.useState)([!1,null]),n=t[0],a=t[1];return Object(o.a)(e,(function(e){return a([!0,e])}),{event:"keydown"},[n]),Object(o.a)(e,(function(e){return a([!1,e])}),{event:"keyup"},[n]),n};var i=function(e,t){var n=function(){var e=Object(r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}();Object(r.useEffect)((function(){if(!n)return e()}),t)};t.a=function(e,t,n,r){void 0===r&&(r=a);var o=r(e),u=o[0],l=o[1];i((function(){!u&&n?n(l):u&&t&&t(l)}),[u])}}]]); |