IOPaint/lama_cleaner/app/build/static/js/2.17f9840f.chunk.js
2022-10-27 22:51:43 +08:00

2 lines
499 KiB
JavaScript

/*! For license information please see 2.17f9840f.chunk.js.LICENSE.txt */
(this["webpackJsonplama-cleaner"]=this["webpackJsonplama-cleaner"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(61)},function(e,t,n){"use strict";e.exports=n(67)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(7);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(38);var o=n(25),a=n(40);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(c){o=!0,a=c}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 Pu})),n.d(t,"b",(function(){return Au})),n.d(t,"c",(function(){return Lu})),n.d(t,"d",(function(){return Mu})),n.d(t,"e",(function(){return Nu}));var r=n(30),o=n(8),a=n(4),i=n(13),u=n(3);function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(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&&l(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,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},d(e)}var p=n(9),v=n.n(p),h=n(10),m=n(7),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&&l(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){var t=s();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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 S(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}var k=n(0),x=n.n(k),C=n(12),T=n.n(C),R=["override"],P=["default"],A=["cachePolicyForParams_UNSTABLE"],L=v.a.mark(nt),N=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(){j(this,e)}return S(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}(),U=function(e){g(n,e);var t=_(n);function n(e){var r;return j(this,n),z(y(r=t.call(this)),"state","hasValue"),z(y(r),"contents",void 0),r.contents=e,r}return S(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)?K(n):X(n)?n:W(n)}catch(r){return D(r)?K(r.next((function(){return t.map(e)}))):H(r)}}}]),n}(F),B=function(e){g(n,e);var t=_(n);function n(e){var r;return j(this,n),z(y(r=t.call(this)),"state","hasError"),z(y(r),"contents",void 0),r.contents=e,r}return S(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),V=function(e){g(n,e);var t=_(n);function n(e){var r;return j(this,n),z(y(r=t.call(this)),"state","loading"),z(y(r),"contents",void 0),r.contents=e,r}return S(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 K(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 U(e))}function H(e){return Object.freeze(new B(e))}function K(e){return Object.freeze(new V(e))}function Y(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):K(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)?K(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)?K(e):X(e)?e:W(e)},error:function(e){return H(e)},all:Y,isLoadable:X},$={loadableWithValue:W,loadableWithError:H,loadableWithPromise:K,loadableLoading:function(){return Object.freeze(new V(new Promise((function(){}))))},loadableAll:Y,isLoadable:X,RecoilLoadable:q},Q=$.loadableWithValue,Z=$.loadableWithError,G=$.loadableWithPromise,J=$.loadableLoading,ee=$.loadableAll,te=$.isLoadable,ne=$.RecoilLoadable,re=Object.freeze({__proto__:null,loadableWithValue:Q,loadableWithError:Z,loadableWithPromise:G,loadableLoading:J,loadableAll:ee,isLoadable:te,RecoilLoadable:ne}),oe=function e(t){j(this,e),z(this,"key",void 0),this.key=t},ae=function(e){g(n,e);var t=_(n);function n(){return j(this,n),t.apply(this,arguments)}return n}(oe),ie=function(e){g(n,e);var t=_(n);function n(){return j(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}},ce=ue.AbstractRecoilValue,le=ue.RecoilState,se=ue.RecoilValueReadOnly,fe=ue.isRecoilValue,de=Object.freeze({__proto__:null,AbstractRecoilValue:ce,RecoilState:le,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(){j(this,e)},Oe=new we,_e=function(e){g(n,e);var t=_(n);function n(e){return j(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)),je=new Map,Ee=new Map;var Se=function(e){g(n,e);var t=_(n);function n(){return j(this,n),t.apply(this,arguments)}return n}(d(Error));var ke=new Map;function xe(e){return ke.get(e)}var Ce={nodes:je,recoilValues:Ee,registerNode:function(e){if(je.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)}je.set(e.key,e);var n=null==e.set?new de.RecoilValueReadOnly(e.key):new de.RecoilState(e.key);return Ee.set(e.key,n),n},getNode:function(e){var t=je.get(e);if(null==t)throw new Se('Missing definition for RecoilValue: "'.concat(e,'""'));return t},getNodeMaybe:function(e){return je.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(me("recoil_memory_managament_2020")){var n,r=je.get(e);if(null!==r&&void 0!==r&&null!==(t=r.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(r))je.delete(e),null===(n=xe(e))||void 0===n||n(),ke.delete(e)}},setConfigDeletionHandler:function(e,t){me("recoil_memory_managament_2020")&&(void 0===t?ke.delete(e):ke.set(e,t))},getConfigDeletionHandler:xe,recoilValuesForKeys:function(e){return be(e,(function(e){return I(Ee.get(e))}))},NodeMissingError:Se,DefaultValue:we,DEFAULT_VALUE:Oe,RecoilValueNotReady:_e};var Te={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={},c=function(e){return function(){return e}},l=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:j}},y=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:E}},g=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:S}},w=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:k}},O=function e(t,n,r,o,a,i){if(r===a)return y(t,r,[i,o]);var u=s(n,r),c=s(n,a);return g(t,f(u)|f(c),u===c?[e(t,n+5,r,o,a,i)]:u<c?[o,i]:[i,o])},_=function(e,t){return e===t.edit},j=function(e,t,n,r,o,a,i){if(t(a,this.key)){var c=r(this.value);return c===this.value?this:c===u?(--i.value,h):_(e,this)?(this.value=c,this):b(e,o,a,c)}var l=r();return l===u?this:(++i.value,O(e,n,this.hash,this,o,b(e,o,a,l)))},E=function(e,t,n,r,o,a,i){if(o===this.hash){var c=function(e,t,n,r,o,a,i,c){for(var l=o.length,s=0;s<l;++s){var f=o[s];if(n(i,f.key)){var d=f.value,h=a(d);return h===d?o:h===u?(--c.value,v(e,s,o)):p(e,s,b(t,r,i,h),o)}}var m=a();return m===u?o:(++c.value,p(e,l,b(t,r,i,m),o))}(_(e,this),e,t,this.hash,this.children,r,a,i);return c===this.children?this:c.length>1?y(e,this.hash,c):c[0]}var l=r();return l===u?this:(++i.value,O(e,n,this.hash,this,o,b(e,o,a,l)))},S=function(e,t,n,r,o,i,u){var c=this.mask,l=this.children,b=s(n,o),y=f(b),O=d(c,y),j=c&y,E=j?l[O]:h,S=E._modify(e,t,n+5,r,o,i,u);if(E===S)return this;var k,x=_(e,this),C=c,T=void 0;if(j&&m(S)){if(!(C&=~y))return h;if(l.length<=2&&((k=l[1^O])===h||1===k.type||2===k.type))return l[1^O];T=v(x,O,l)}else if(j||m(S))T=p(x,O,S,l);else{if(l.length>=a)return function(e,t,n,r,o){for(var a=[],i=r,u=0,c=0;i;++c)1&i&&(a[c]=o[u++]),i>>>=1;return a[t]=n,w(e,u+1,a)}(e,b,S,c,l);C|=y,T=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,c=new Array(o+1);i<t;)c[u++]=r[i++];for(c[t]=n;i<o;)c[++u]=r[i++];return c}(x,O,S,l)}return x?(this.mask=C,this.children=T,this):g(e,C,T)},k=function(e,t,n,r,o,a,u){var c=this.size,l=this.children,f=s(n,o),d=l[f],v=(d||h)._modify(e,t,n+5,r,o,a,u);if(d===v)return this;var b=_(e,this),y=void 0;if(m(d)&&!m(v))++c,y=p(b,f,v,l);else if(!m(d)&&m(v)){if(--c<=i)return function(e,t,n,r){for(var o=new Array(t-1),a=0,i=0,u=0,c=r.length;u<c;++u)if(u!==n){var l=r[u];l&&!m(l)&&(o[a++]=l,i|=1<<u)}return g(e,i,o)}(e,c,f,l);y=p(b,f,h,l)}else y=p(b,f,v,l);return b?(this.size=c,this.children=y,this):w(e,c,y)};function x(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 c=r();return c===u?h:(++i.value,b(e,o,a,c))},x.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new x(this._editable,this._edit,this._config,e,t)};var C=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,c=0,l=u.length;c<l;++c){var p=u[c];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}};x.prototype.tryGetHash=function(e,t,n){return C(e,t,n,this)};var T=n.tryGet=function(e,t,n){return C(e,n._config.hash(t),t,n)};x.prototype.tryGet=function(e,t){return T(e,t,this)};var R=n.getHash=function(e,t,n){return C(void 0,e,t,n)};x.prototype.getHash=function(e,t){return R(e,t,this)};n.get=function(e,t){return C(void 0,t._config.hash(e),e,t)};x.prototype.get=function(e,t){return T(t,e,this)};var P=n.has=function(e,t,n){return C(u,e,t,n)!==u};x.prototype.hasHash=function(e,t){return P(e,t,this)};var A=n.has=function(e,t){return P(t._config.hash(e),e,t)};x.prototype.has=function(e){return A(e,this)};var L=function(e,t){return e===t};n.make=function(e){return new x(0,0,{keyEq:e&&e.keyEq||L,hash:e&&e.hash||l},h,0)},n.empty=n.make();var N=n.isEmpty=function(e){return e&&!!m(e._root)};x.prototype.isEmpty=function(){return N(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)};x.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)};x.prototype.modify=function(e,t){return D(t,e,this)};var I=n.setHash=function(e,t,n,r){return M(c(n),e,t,r)};x.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)};x.prototype.set=function(e,t){return z(e,t,this)};var F=c(u),U=n.removeHash=function(e,t,n){return M(F,e,t,n)};x.prototype.removeHash=x.prototype.deleteHash=function(e,t){return U(e,t,this)};var B=n.remove=function(e,t){return U(t._config.hash(e),e,t)};x.prototype.remove=x.prototype.delete=function(e){return B(e,this)};var V=n.beginMutation=function(e){return new x(e._editable+1,e._edit+1,e._config,e._root,e._size)};x.prototype.beginMutation=function(){return V(this)};var W=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};x.prototype.endMutation=function(){return W(this)};var H=n.mutate=function(e,t){var n=V(t);return e(n),W(n)};x.prototype.mutate=function(e){return H(e,this)};var K=function(e){return e&&Y(e[0],e[1],e[2],e[3],e[4])},Y=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 K(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 Y(r.length,r,0,t,n);default:return K(n)}},q={done:!0};function $(e){this.v=e}$.prototype.next=function(){if(!this.v)return q;var e=this.v;return this.v=K(e.rest),e},$.prototype[Symbol.iterator]=function(){return this};var Q=function(e,t){return new $(X(e._root,t))},Z=function(e){return[e.key,e.value]},G=n.entries=function(e){return Q(e,Z)};x.prototype.entries=x.prototype[Symbol.iterator]=function(){return G(this)};var J=function(e){return e.key},ee=n.keys=function(e){return Q(e,J)};x.prototype.keys=function(){return ee(this)};var te=function(e){return e.value},ne=n.values=x.prototype.values=function(e){return Q(e,te)};x.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 c=a[i++];c&&c.type&&(1===c.type?t=e(t,c.value,c.key):o.push(c.children))}return t};x.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)};x.prototype.forEach=function(e){return oe(e,this)};var ae=n.count=function(e){return e._size};x.prototype.count=function(){return ae(this)},Object.defineProperty(x.prototype,"size",{get:x.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n})),Pe=function(){function e(t){j(this,e),z(this,"_map",void 0),this._map=new Map(null===t||void 0===t?void 0:t.entries())}return S(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}(),Ae=function(){function e(t){if(j(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],c=a[1];this._hamt.set(i,c)}}catch(l){o.e(l)}finally{o.f()}}}return S(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 Ae(e):new Pe(e)}var Ne=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,c=a.value,l=Object(h.a)(r);try{for(l.s();!(u=l.n()).done;){var s=u.value;if(s.has(c))continue e}}catch(f){l.e(f)}finally{l.f()}t.add(c)}}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}},Ue=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 c=t.getGraph(n);if(Ie(e,c),n===(null===(a=u.previousTree)||void 0===a?void 0:a.version)&&Ie(e,t.getGraph(u.currentTree.version),c),n===(null===(i=u.previousTree)||void 0===i?void 0:i.version)||n===u.currentTree.version){var l,s=null===(l=u.nextTree)||void 0===l?void 0:l.version;if(void 0!==s)Ie(e,t.getGraph(s),c)}},Be=0,Ve=0,We=0,He=function(){return Be++},Ke=function(){return Ve++},Ye=function(){return We++},Xe=Object.freeze({__proto__:null,persistentMap:Ne}).persistentMap,qe=Fe,$e=He;function Qe(){var e=$e();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Xe(),nonvalidatedAtoms:Xe()}}var Ze={makeEmptyTreeState:Qe,makeEmptyStoreState:function(){var e=Qe();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:$e},Ge=function e(){j(this,e)};var Je=Ge,et=function(){return new Ge};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=Ce.getNode,it=Ce.getNodeMaybe,ut=Ce.recoilValuesForKeys,ct=Je,lt=tt,st=Object.freeze(new Set),ft=function(e){g(n,e);var t=_(n);function n(){return j(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 ct)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 ct)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 c,l=null!==(u=a.nodeToNodeSubscriptions.get(i))&&void 0!==u?u:st,s=Object(h.a)(l);try{for(s.s();!(c=s.n()).done;){var f=c.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)},_t=function(e,t){var n,r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},jt=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:lt(e.dirtyAtoms,t)})},Et=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]}}))}}})},St=vt,kt=null!==(ht=x.a.createMutableSource)&&void 0!==ht?ht:x.a.unstable_createMutableSource,xt=null!==(mt=x.a.useMutableSource)&&void 0!==mt?mt:x.a.unstable_useMutableSource,Ct=null!==(bt=x.a.useSyncExternalStore)&&void 0!==bt?bt:x.a.unstable_useSyncExternalStore;var Tt={createMutableSource:kt,useMutableSource:xt,useSyncExternalStore:Ct,reactMode:function(){return me("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:me("recoil_sync_external_store")&&null!=Ct?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:me("recoil_mutable_source")&&null!=xt&&"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=St,Pt=yt,At=wt,Lt=Ye,Nt=Ce.getNode,Mt=Ce.getNodeMaybe,Dt=Ce.DefaultValue,It=Ce.RecoilValueNotReady,zt=Tt.reactMode,Ft=de.AbstractRecoilValue,Ut=de.RecoilState,Bt=de.RecoilValueReadOnly,Vt=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=At(e,t,o.key,a),c=Object(h.a)(i.entries());try{for(c.s();!(r=c.n()).done;){var l=Object(u.a)(r.value,2);Ht(t,l[0],l[1])}}catch(m){c.e(m)}finally{c.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 Kt(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 $t(e,o),o}))}function Yt(e,t){if(Xt.length){var n=Xt[Xt.length-1],r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Kt(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 $t(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(c){o.e(c)}finally{o.f()}}function Qt(e,t,n){Yt(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var Zt={RecoilValueReadOnly:Bt,AbstractRecoilValue:Ft,RecoilState:Ut,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:Qt,setRecoilValueLoadable:function(e,t,n){if(n instanceof Dt)return Qt(e,t,n);Yt(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){Yt(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){Yt(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 c=e.getState().nextTree;c&&c.dirtyAtoms.has(r)&&n(c)}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:Vt,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);Kt(r[0],r[1])}}catch(o){n.e(o)}finally{n.f()}Xt.pop()!==e&&ge("Incorrect order of batch popping")}},writeLoadableToTreeState:Ht,invalidateDownstreams:$t,copyTreeState:qt,refreshRecoilValue:function(e,t){var n,r=e.getState().currentTree,o=Nt(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)},invalidateDownstreams_FOR_TESTING:$t};var Gt=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=_t,en=Ce.deleteNodeConfigIfPossible,tn=Ce.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 c,l=Object(h.a)(un(n,u));try{for(l.s();!(c=l.n()).done;){var s=c.value;a.add(s)}}catch(v){l.e(v)}finally{l.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 c,l=new Set,s=function(e,t,n,r,o){var a=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)c(I(n.values().next().value));return i;function c(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 l,s=Object(h.a)(t);try{for(s.s();!(l=s.n()).done;){c(l.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();!(c=f.n()).done;){var d,p=c.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(cn(p).some((function(e){return n.retention.referenceCounts.get(e)})))i.add(p);else{var m=o.nodeToNodeSubscriptions.get(p);m&&Gt(m,(function(e){return i.has(e)}))?i.add(p):(a.add(p),l.add(p))}else i.add(p)}}catch(v){f.e(v)}finally{f.f()}var b,y=new Set,g=Object(h.a)(l);try{for(g.s();!(b=g.n()).done;){var w,O=b.value,_=Object(h.a)(null!==(j=o.nodeDeps.get(O))&&void 0!==j?j:rn);try{for(_.s();!(w=_.n()).done;){var j,E=w.value;a.has(E)||y.add(E)}}catch(v){_.e(v)}finally{_.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=cn(n),i=Object(h.a)(a);try{for(i.s();!(o=i.n()).done;){var u,c=o.value;null===(u=r.retention.nodesRetainedByZone.get(c))||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 l=r.graphsByVersion.get(t.version);if(l){var s=l.nodeDeps.get(n);if(void 0!==s){l.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=l.nodeToNodeSubscriptions.get(v))||void 0===p||p.delete(n)}}catch(m){d.e(m)}finally{d.f()}}l.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 cn(e){var t=tn(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof nn?[t]:t}function ln(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?ln(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=T.a.unstable_batchedUpdates,hn=Zt.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()}}),N,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 c=t.apply(void 0,i);return n===c?r:(n=c,r=e.apply(o,i))},function(){n=null}]},_n=bn,jn=Ot,En=Et,Sn=Fe,kn=Ke,xn=Ce.DEFAULT_VALUE,Cn=Ce.recoilValues,Tn=Ce.recoilValuesForKeys,Rn=Zt.AbstractRecoilValue,Pn=Zt.getRecoilValueAsLoadable,An=Zt.setRecoilValue,Ln=Zt.setUnvalidatedRecoilValue,Nn=fn,Mn=Ze.getNextTreeStateVersion,Dn=Ze.makeEmptyStoreState,In=wn.isSSR,zn=On,Fn=function(){function e(t){var n=this;j(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 Tn(t.dirtyAtoms)}var r=n._store.getState().knownAtoms,o=n._store.getState().knownSelectors;return null==(null===e||void 0===e?void 0:e.isInitialized)?Cn.values():!0===e.isInitialized?Tn(gn([n._store.getState().knownAtoms,n._store.getState().knownSelectors])):rt(Cn.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(),En(n._store,n._store.getState().currentTree,t)})),z(this,"map",(function(e){n.checkRefCount_INTERNAL();var t=new Kn(n,_n);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 Kn(n,_n)).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:kn(),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=Sn();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;jn(this._store,a,"get"),Nn(this._store,a,1)}}catch(u){o.e(u)}finally{o.f()}this.autoRelease_INTERNAL()}return S(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 Un(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 Bn=zn((function(e,t){var n=e.getState(),r="current"===t?n.currentTree:I(n.previousTree);return new Fn(Un(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)})),Vn=Object(u.a)(Bn,2),Wn=Vn[0],Hn=Vn[1];var Kn=function(e){g(n,e);var t=_(n);function n(e,r){var o;return j(this,n),z(y(o=t.call(this,Un(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(){Nn(n,e.key,1),An(o.getStore_INTERNAL(),e,t)}))})),z(y(o),"reset",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();o._batch((function(){Nn(t,e.key,1),An(o.getStore_INTERNAL(),e,xn)}))})),z(y(o),"setUnvalidatedAtomValues_DEPRECATED",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();_n((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];Nn(t,a,1),Ln(t,new Rn(a),i)}}catch(c){r.e(c)}finally{r.f()}}))})),o._batch=r,o}return n}(Fn),Yn={Snapshot:Fn,MutableSnapshot:Kn,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=Yn.Snapshot,qn=Yn.MutableSnapshot,$n=Yn.freshSnapshot,Qn=Yn.cloneSnapshot,Zn=Object.freeze({__proto__:null,Snapshot:Xn,MutableSnapshot:qn,freshSnapshot:$n,cloneSnapshot:Qn});var Gn=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],c=Object(h.a)(u);try{for(c.s();!(i=c.n()).done;){var l=i.value;e.add(l)}}catch(s){c.e(s)}finally{c.f()}}return e},Jn=x.a.useRef;var er=function(e){var t=Jn(e);return t.current===e&&"function"===typeof e&&(t.current=e()),t},tr=Ze.getNextTreeStateVersion,nr=Ze.makeEmptyStoreState,rr=_t,or=St,ar=Ot,ir=wt,ur=jt,cr=Fe,lr=ze,sr=Ke,fr=Tt.createMutableSource,dr=Tt.reactMode,pr=Zt.applyAtomValueWrites,vr=dn,hr=Zn.freshSnapshot,mr=x.a.useCallback,br=x.a.useContext,yr=x.a.useEffect,gr=x.a.useMemo,wr=x.a.useRef,Or=x.a.useState;function _r(){throw M("This component must be used inside a <RecoilRoot> component.")}var jr=Object.freeze({storeID:sr(),getState:_r,replaceState:_r,getGraph:_r,subscribeToTransactions:_r,addTransactionMetadata:_r}),Er=!1;function Sr(e){if(Er)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,lr(I(t.graphsByVersion.get(n))))}}var kr=x.a.createContext({current:jr}),xr=function(){return br(kr)},Cr=x.a.createContext(null);function Tr(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,c=t.nodeToComponentSubscriptions.get(i);if(c){var l,s=Object(h.a)(c);try{for(s.s();!(l=s.n()).done;){var f=Object(u.a)(l.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),c=i[0],l=i[1];if(r.has(c)){var s,f=Object(h.a)(l);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)&&(Tr(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=xr(),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(){Te.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 Ar=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=cr();return n.set(e,r),r},u=function(e,t){if(null==t){var n=d.current.getState().transactionSubscriptions,r=Ar++;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=Ar++;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))}}},c=function(e){Sr(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]}},l=function(e){Sr(d.current);var n,r=I(t.current.nextTree);try{Er=!0,n=e(r)}finally{Er=!1}n!==r&&(t.current.nextTree=n,dr().early&&Tr(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:l,getGraph:i,subscribeToTransactions:u,addTransactionMetadata:c}}));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()),c=a.nonvalidatedAtoms.clone(),l=Object(h.a)(u);try{for(l.s();!(o=l.n()).done;){var s=o.value;c.delete(s)}}catch(f){l.e(f)}finally{l.f()}n.currentTree=Object(b.a)(Object(b.a)({},a),{},{dirtyAtoms:Gn(a.dirtyAtoms,u),atomValues:pr(a.atomValues,i),nonvalidatedAtoms:c})},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]),x.a.createElement(kr.Provider,{value:d},x.a.createElement(Cr.Provider,{value:p},x.a.createElement(Pr,{setNotifyBatcherOfChange:f}),a))}var Nr=function(e){var t=e.override,n=Object(a.a)(e,R),r=xr();return!1===t&&r.current!==jr?e.children:x.a.createElement(Lr,n)},Mr=xr,Dr=function(){var e=br(Cr);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 xr().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=x.a.useEffect,Ur=x.a.useRef;var Br=function(e){var t=Ur();return Fr((function(){t.current=e})),t.current},Vr=Mr,Wr=sn,Hr=fn,Kr=Je,Yr=x.a.useEffect,Xr=x.a.useRef,qr=wn.isSSR;var $r=function(e){if(me("recoil_memory_managament_2020"))return function(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e instanceof Kr?e:e.key})),n=Vr();Yr((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=Br(t);if(!qr&&(void 0===a||!zr(a,t))){var i,u=n.current,c=Object(h.a)(t);try{for(c.s();!(i=c.n()).done;){var l=i.value;Hr(u,l,1)}}catch(p){c.e(p)}finally{c.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 Qr=x.a.useRef;var Zr=function(){return Qr(),"<component name not available>"},Gr=Ce.DEFAULT_VALUE,Jr=Tt.reactMode,eo=Tt.useMutableSource,to=Tt.useSyncExternalStore,no=Dr,ro=Mr,oo=(de.isRecoilValue,Zt.getRecoilValueAsLoadable),ao=Zt.setRecoilValue,io=Zt.subscribeToRecoilValue,uo=x.a.useCallback,co=x.a.useEffect,lo=x.a.useMemo,so=x.a.useRef,fo=x.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=Zr(),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=lo((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=Zr(),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();c.current.is(e)||a(),c.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),c=so(u);return co((function(){c.current=u})),u}function mo(e){var t=ro(),n=Zr(),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]);co((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),c=Object(u.a)(i,2),l=c[0],s=c[1];return l.key!==e.key?o().loadable:l.loadable}function bo(e){var t=ro(),n=fo([]),r=Object(u.a)(n,2)[1],o=Zr(),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(),c=so(i);return co((function(){c.current=i})),co((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=c.current)&&void 0!==t&&t.is(n)||r(n),c.current=n}),o);if(i.nextTree)n.getState().queuedComponentCallbacks_DEPRECATED.push((function(){c.current=null,r([])}));else{var l;if(!me("recoil_suppress_rerender_in_callback"))return r([]);var s=a();null!==(l=c.current)&&void 0!==l&&l.is(s)||r(s),c.current=s}return u.release}),[o,a,e,t]),i}function yo(e){return me("recoil_memory_managament_2020")&&$r(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")&&$r(e),mo(e)}function _o(e){var t=ro();return po(Oo(e),e,t)}var jo=function(e){return[go(e),wo(e)]},Eo=function(e){return[yo(e),wo(e)]},So=go,ko=yo,xo=function(e){var t=ro();return uo((function(){ao(t.current,e,Gr)}),[t,e])},Co=wo,To=Oo,Ro=_o,Po=function(e){return[_o(e),wo(e)]};var Ao=bn,Lo=Ce.DEFAULT_VALUE,No=Ce.getNode,Mo=Mr,Do=Zt.AbstractRecoilValue,Io=Zt.setRecoilValueLoadable,zo=sn,Fo=Zn.cloneSnapshot,Uo=x.a.useCallback,Bo=x.a.useEffect,Vo=x.a.useRef,Wo=x.a.useState,Ho=wn.isSSR;function Ko(e){var t=Mo();Bo((function(){return t.current.subscribeToTransactions(e).release}),[e,t])}function Yo(e,t){var n,r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;Ao((function(){for(var n=new Set,r=0,i=[o.atomValues.keys(),a.atomValues.keys()];r<i.length;r++){var u,c=i[r],l=Object(h.a)(c);try{for(l.s();!(u=l.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)&&No(d).shouldRestoreFromSnapshots&&n.add(d)}}catch(p){l.e(p)}finally{l.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=Br(r),i=Vo(),c=Vo();if(Ko(Uo((function(e){return o(Fo(e))}),[])),Bo((function(){var e,t=r.retain();i.current&&!Ho&&(window.clearTimeout(i.current),i.current=null,null===(e=c.current)||void 0===e||e.call(c),c.current=null);return t}),[r]),a!==r&&!Ho){var l;if(i.current)window.clearTimeout(i.current),i.current=null,null===(l=c.current)||void 0===l||l.call(c),c.current=null;c.current=r.retain(),i.current=window.setTimeout((function(){var e;i.current=null,null===(e=c.current)||void 0===e||e.call(c),c.current=null}),zo)}return r},qo=Yo,$o=function(){var e=Mo();return Uo((function(t){return Yo(e.current,t)}),[e])},Qo=function(e){Ko(Uo((function(t){var n=Fo(t,"current"),r=Fo(t,"previous");e({snapshot:n,previousSnapshot:r})}),[e]))},Zo=Et,Go=Mr;var Jo=function(){var e=Go();return function(t){var n=t.key;return Zo(e.current,e.current.getState().currentTree,n)}},ea=Tt.reactMode,ta=Nr,na=Mr,ra=x.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 x.a.createElement(ta,{store_INTERNAL:e},n)}}),[e])},aa=re.loadableWithValue,ia=Ot,ua=Ce.DEFAULT_VALUE,ca=Ce.getNode,la=Zt.copyTreeState,sa=Zt.getRecoilValueAsLoadable,fa=Zt.invalidateDownstreams,da=Zt.writeLoadableToTreeState;function pa(e){return"atom"===ca(e.key).nodeType}var va=function(){function e(t,n){var r=this;j(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 S(e,[{key:"newTreeState_INTERNAL",value:function(){if(0===this._changes.size)return this._treeState;var e,t=la(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=Ce.DEFAULT_VALUE,Oa=Mr,_a=Zt.refreshRecoilValue,ja=Zt.setRecoilValue,Ea=(Zn.Snapshot,Zn.cloneSnapshot),Sa=qo,ka=x.a.useCallback,xa=function e(){j(this,e)},Ca=new xa;function Ta(e,t,n,r){var a=Ca;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 ja(e,t,n)},reset:function(t){return ja(e,t,wa)},refresh:function(t){return _a(e,t)},gotoSnapshot:function(t){return Sa(e,t)},transact_UNSTABLE:function(t){return ya(e)(t)}}),{snapshot:function(){return Ea(e)}}),c=t(u);if("function"!==typeof c)throw M(i);a=c.apply(void 0,Object(o.a)(n))})),a instanceof xa&&ba(!1),a}var Ra=Ta,Pa=function(e,t){var n=Oa();return ka((function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Ta(n.current,e,r)}),null!=t?[].concat(Object(o.a)(t),[n]):void 0)},Aa=Mr,La=Zt.refreshRecoilValue,Na=x.a.useCallback;var Ma=function(e){var t=Aa();return Na((function(){var n=t.current;La(n,e)}),[e,t])},Da=ma.atomicUpdater,Ia=Mr,za=x.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)},Ua=function(){function e(t){var n,r,o;j(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 S(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 Ba(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=Va(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-=Ka(e),!0))}},{key:"clear",value:function(){this._numLeafs=0,this._root=null}}]),e}(),Ba=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)}},Va=function e(t,n,o,a,i,c,l){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,c,l))}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),_=O[0],j=O[1];if("branch"!==t.type||t.nodeKey!==_)return ge("Existing cache must have a branch midway through the route with matching node key. Resetting cache."),l(),f;t.branches.set(j,e(t.branches.get(j),w,t,a,j,c,l))}return null===c||void 0===c||null===(s=c.onNodeVisit)||void 0===s||s.call(c,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},Ka=function e(t){return"leaf"===t.type?1:Array.from(t.branches.values()).reduce((function(t,n){return t+e(n)}),0)},Ya={TreeCache:Ua}.TreeCache,Xa=Object.freeze({__proto__:null,TreeCache:Ya}),qa={LRUCache:function(){function e(t){var n;j(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 S(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,$a=Object.freeze({__proto__:null,LRUCache:qa}),Qa=$a.LRUCache,Za=Xa.TreeCache;var Ga=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=new Qa({maxSize:e}),r=new Za({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 c=Object(u.a)(o.value,2),l=c[0],s=c[1];a["string"===typeof l?l:Ja(l,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 Ga(I(t),n);case"most-recent":return Ga(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),c=oi(o,i,u);return c};var ii=function(e){return function(){return null}},ui=re.loadableWithError,ci=re.loadableWithPromise,li=re.loadableWithValue,si=yt,fi=gt,di=wt,pi=Ue,vi=Ce.DEFAULT_VALUE,hi=Ce.RecoilValueNotReady,mi=Ce.getConfigDeletionHandler,bi=Ce.getNode,yi=Ce.registerNode,gi=de.isRecoilValue,wi=Zt.markRecoilValueModified,Oi=pn,_i=Ra,ji=ii,Ei=function e(){j(this,e)},Si=new Ei,ki=[],xi=new Map,Ci=function(){var e=0;return function(){return e++}}();var Ti=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,c=ai(null!==o&&void 0!==o?o:{equality:"reference",eviction:"keep-all"}),l=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)&&T(e);var r=xi.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()}xi.delete(n)}}function y(e,t){var n=xi.get(t);null==n&&xi.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 T(e),Si;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,li(r)):e.getState().knownSelectors.forEach((function(e){n.atomValues.delete(e)}));var i=j(e,n);if(i&&"loading"!==i.state){if((R(e,o)||null==x(e))&&b(e,o),"hasValue"===i.state)return i.contents;throw i.contents}if(!R(e,o)){var c=S(n);if("loading"===(null===c||void 0===c?void 0:c.latestLoadable.state))return c.latestLoadable.contents}var l=_(e,n,o),s=Object(u.a)(l,2),f=s[0],p=s[1];if(C(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 Ei)throw Si;if(!d())throw T(e),Si;var a=ui(t);throw m(e,n,o,a,r),t}))}function O(e,t,r,o){var a,u,c,l,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===(c=e.getState())||void 0===c||null===(l=c.nextTree)||void 0===l?void 0:l.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,o,a){var i,u=ji(n),c=!0,l=function(){u(),c=!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(c)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 _i(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 T(e),Si;var a=li(t);return m(e,n,o,a,r),t})).catch((function(t){if(!d())throw T(e),Si;if(C(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(l):l()}catch(b){D(i=b)?i=w(e,i,o,p,a,f).finally(l):(s=!0,l())}return[s?ui(i):D(i)?ci(i):li(i),p]}function j(e,t){var r,o=new Set,a=x(e);try{r=c.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 E(e,t){var n=Ci(),r=_(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)):(T(e),P(t,a,i)),a}function S(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=x(e),a=null!==(n=null===o||void 0===o?void 0:o.depValuesDiscoveredSoFarDuringAsyncWork)&&void 0!==n?n:new Map,i=Array((null!==(r=k.get(t.version))&&void 0!==r?r:new Map).entries()),c=k.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)||c)return!1;return k.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 k=new Map;function x(e){return s.get(e)}function C(e,t,n){if(R(e,t)){var r=x(e);null!=r&&(r.depValuesDiscoveredSoFarDuringAsyncWork=n)}}function T(e){s.delete(e)}function R(e,t){var n;return t===(null===(n=x(e))||void 0===n?void 0:n.latestExecutionId)}function P(e,t,r){e.atomValues.set(n,t);try{c.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 A(e,t){return c.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(ki.includes(n)){var t="Recoil selector has circular dependencies: ".concat(ki.slice(ki.indexOf(n)).join(" \u2192 "));return ui(M(t))}ki.push(n);try{return e()}finally{ki.pop()}}((function(){return function(e,t){var n=j(e,t);if(null!=n)return T(e),n;var r,o=S(t);return null!=o?("loading"===(null===(r=o.latestLoadable)||void 0===r?void 0:r.state)&&y(e,I(o.latestExecutionId)),I(o.latestLoadable)):E(e,t)}(e,t)}))}function N(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,l=bi(u);null===(a=l.clearCache)||void 0===a||a.call(l,e,n)}}catch(s){o.e(s)}finally{o.f()}i.clear(),N(n),c.clear(),wi(e,t)}if(null!=a){return t=yi({key:n,nodeType:"selector",peek:A,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 c=a({set:u,get:i,reset:function(e){u(e,vi)}},n);if(void 0!==c)throw D(c)?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:N,clearCache:z,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}return t=yi({key:n,nodeType:"selector",peek:A,get:L,init:p,invalidate:N,clearCache:z,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})},Ri=re.loadableWithError,Pi=re.loadableWithPromise,Ai=re.loadableWithValue,Li=Et,Ni=Ce.DEFAULT_VALUE,Mi=Ce.DefaultValue,Di=Ce.getConfigDeletionHandler,Ii=Ce.registerNode,zi=Ce.setConfigDeletionHandler,Fi=de.isRecoilValue,Ui=Zt.getRecoilValueAsLoadable,Bi=Zt.markRecoilValueModified,Vi=Zt.setRecoilValue,Wi=Zt.setRecoilValueLoadable,Hi=pn;function Ki(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=Ai(e),e})).catch((function(e){throw i=Ri(e),e}))):Ai(e.default);l(e.default);var u=void 0,c=new Map;function l(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,Ni),c=a instanceof Mi?i:Ai(a);return u=c}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,Ai(r))},init:function(n,r,u){var l;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)||Bi(n,f)}))}var d=null!==(l=e.effects)&&void 0!==l?l: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}))):Ai(o)}return Ui(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=Ni,O=!1,_=null,j=function(e){return function(t){if(g){var r=v(f),o="hasValue"===r.state?r.contents:Ni;w="function"===typeof t?t(o):t,D(w)&&(w=w.then((function(t){return _={effect:e,value:t},t})))}else{if(D(t))throw M("Setting atoms to async values is not implemented.");"function"!==typeof t&&(_={effect:e,value:t}),Vi(n,f,"function"===typeof t?function(n){var r=t(n);return _={effect:e,value:r},r}:t)}}},E=function(e){return function(){return j(e)(Ni)}},S=function(e){return function(r){var a,u=n.subscribeToTransactions((function(n){var o,a=n.getState(),u=a.currentTree,c=a.previousTree;c||(ge("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),c=u);var l=null!==(o=u.atomValues.get(t))&&void 0!==o?o:i;if("hasValue"===l.state){var s,f,d,p,v=l.contents,h=null!==(s=c.atomValues.get(t))&&void 0!==s?s:i,m="hasValue"===h.state?h.contents:Ni;(null===(f=_)||void 0===f?void 0:f.effect)!==e||(null===(d=_)||void 0===d?void 0:d.value)!==v?r(v,m,!u.atomValues.has(t)):(null===(p=_)||void 0===p?void 0:p.effect)===e&&(_=null)}}),t).release;c.set(n,[].concat(Object(o.a)(null!==(a=c.get(n))&&void 0!==a?a:[]),[u]))}},k=Object(h.a)(d);try{for(k.s();!(p=k.n()).done;){var x=p.value;try{var C,T=x({node:f,storeID:n.storeID,trigger:u,setSelf:j(x),resetSelf:E(x),onSet:S(x),getPromise:m,getLoadable:v,getInfo_UNSTABLE:y});if(null!=T)c.set(n,[].concat(Object(o.a)(null!==(C=c.get(n))&&void 0!==C?C:[]),[T]))}catch(L){w=L,O=!0}}}catch(N){k.e(N)}finally{k.f()}if(g=!1,!(w instanceof Mi)){var R,P=w,A=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&&Vi(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)):Ai(P);r.atomValues.set(t,A),null===(R=n.getState().nextTree)||void 0===R||R.atomValues.set(t,A)}}return function(){var e;a--,null===(e=c.get(n))||void 0===e||e.forEach((function(e){return e()})),c.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 Yi(e){var t=e.default,n=Object(a.a)(e,P);return Fi(t)?function(e){var t=Yi(Object(b.a)(Object(b.a)({},e),{},{default:Ni,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,Ni)}}),effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE})),n=Ti({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})):Ki(Object(b.a)(Object(b.a)({},n),{},{default:t}))}var Xi=Yi,qi={MapCache:function(){function e(t){var n;j(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 S(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,$i=Object.freeze({__proto__:null,MapCache:qi}),Qi=$a.LRUCache,Zi=$i.MapCache,Gi={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 Zi({mapKey:n});case"lru":return new Qi({mapKey:n,maxSize:I(t)});case"most-recent":return new Qi({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]:Gi,t=e.equality,n=void 0===t?Gi.equality:t,r=e.eviction,o=void 0===r?Gi.eviction:r,a=e.maxSize,i=void 0===a?Gi.maxSize:a,u=Ji(n),c=eu(o,i,u);return c},nu=Ce.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,A),c=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,c),nu(c.key,(function(){r.delete(t)})),c}},ou=Ce.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)},c=e.cachePolicy_UNSTABLE,l="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;if(null!=e.set){var s=e.set;a=Ti({key:i,get:u,set:function(e,n){return s(t)(e,n)},cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else a=Ti({key:i,get:u,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});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 cu=function(e){return uu(e)},lu=iu({key:"__error",get:function(e){return function(){throw M(e)}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var su=function(e){return lu(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),c=i[0],l=i[1];try{r[c]=e(l)}catch(s){o[c]=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],c=r[1];D(c)&&c.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(c){r.e(c)}finally{r.f()}}))}},dangerouslyAllowMutability:!0}),_u={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})},ju=re.RecoilLoadable,Eu=Ce.DefaultValue,Su=Nr,ku=Ir,xu=de.isRecoilValue,Cu=et,Tu=Zn.freshSnapshot,Ru={DefaultValue:Eu,isRecoilValue:xu,RecoilLoadable:ju,RecoilRoot:Su,useRecoilStoreID:ku,useRecoilBridgeAcrossReactRoots_UNSTABLE:oa,atom:Xi,selector:Ti,atomFamily:ru,selectorFamily:iu,constSelector:cu,errorSelector:su,readOnlySelector:fu,noWait:_u.noWait,waitForNone:_u.waitForNone,waitForAny:_u.waitForAny,waitForAll:_u.waitForAll,waitForAllSettled:_u.waitForAllSettled,useRecoilValue:So,useRecoilValueLoadable:ko,useRecoilState:jo,useRecoilStateLoadable:Eo,useSetRecoilState:Co,useResetRecoilState:xo,useGetRecoilValueInfo_UNSTABLE:Jo,useRecoilRefresher_UNSTABLE:Ma,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:To,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ro,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Po,useRecoilCallback:Pa,useRecoilTransaction_UNSTABLE:Fa,useGotoRecoilSnapshot:$o,useRecoilSnapshot:Xo,useRecoilTransactionObserver_UNSTABLE:Qo,snapshot_UNSTABLE:Tu,useRetain:$r,retentionZone:Cu},Pu=Ru.RecoilRoot,Au=Ru.atom,Lu=Ru.selector,Nu=Ru.useRecoilValue,Mu=Ru.useRecoilState},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";n.d(t,"a",(function(){return i}));var r=n(31);var o=n(39),a=n(25);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){e.exports=n(66)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25);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,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}},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){"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(62)},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var u=e[a](i),c=u.value}catch(l){return void n(l)}u.done?t(c):Promise.resolve(c).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,c,"next",e)}function c(e){r(i,o,a,u,c,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(7),o=n(4),a=n(2),i=n(15),u=n(0),c=n(5),l=["children"],s=["children"],f=u.forwardRef((function(e,t){var n=e.children,r=Object(o.a)(e,l);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(c.a)({},r,{ref:t}),e.props.children):e}))):u.createElement(d,Object(c.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(c.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 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 c})),n.d(t,"f",(function(){return l})),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 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:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"}))};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:"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 c}));var r=n(0);var o,a,i,u;function c(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 c},Object.defineProperty(o,a,{get:i,set:u,enumerable:!0,configurable:!0})},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 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(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 c={};function l(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 l(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(c,"composeRefs",(function(){return s})),u(c,"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),c=u.find(g);if(c){var l=c.props.children,s=u.map((function(e){return e===c?i.Children.count(l)>1?i.Children.only(null):Object(i.isValidElement)(l)?l.props.children:null:e}));return Object(i.createElement)(b,Object(a.a)({},r,{ref:t}),Object(i.isValidElement)(l)?Object(i.cloneElement)(l,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,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));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)};function o(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}Object.create;function a(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))}Object.create},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return f}));var r=n(8),o=n(7),a=n(2),i=n(4),u=n(0),c=["children"],l=["scope","children"];function s(e,t){var n=u.createContext(t);function r(e){var t=e.children,r=Object(i.a)(e,c),o=u.useMemo((function(){return r}),Object.values(r));return u.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){var o=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 f(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,"`"))}]},d.apply(void 0,[c].concat(Object(r.a)(t)))]}function d(){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 v}));var r=n(3),o=n(0);var a,i,u,c;a={},i="useLayoutEffect",u=function(){return l},Object.defineProperty(a,i,{get:u,set:c,enumerable:!0,configurable:!0});var l=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 l((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 cn})),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(10),a=n(30),i=n(4),u=n(3),c=n(5),l=n(0),s=n.n(l),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(11),h=n(7),m=n(8),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(l.createContext)(t);function r(e){var t=e.children,r=Object(i.a)(e,b),o=Object(l.useMemo)((function(){return r}),Object.values(r));return Object(l.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){var o=Object(l.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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function o(t,r){var o=Object(l.createContext)(r),a=n.length;function u(t){var n=t.scope,r=t.children,u=Object(i.a)(t,y),c=(null===n||void 0===n?void 0:n[e][a])||o,s=Object(l.useMemo)((function(){return u}),Object.values(u));return Object(l.createElement)(c.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,c=Object(l.useContext)(u);if(c)return c;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(l.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(l.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,j.apply(void 0,[a].concat(Object(m.a)(t)))]}function j(){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(l.useMemo)((function(){return Object(h.a)({},"__scope".concat(o.scopeName),n)}),[n])}};return a.scopeName=o.scopeName,a}function E(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 _}));var S={};function k(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function x(){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 k(t,e)}))}}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(l.useCallback)(x.apply(void 0,t),t)}E(S,"composeRefs",(function(){return x})),E(S,"useComposedRefs",(function(){return C}));var T=n(20),R=["scope","children"];var P,A,L,N;function M(e){var t=e+"CollectionProvider",n=_(t),o=Object(u.a)(n,2),a=o[0],c=o[1],l=a(t,{collectionRef:{current:null},itemMap:new Map}),f=Object(u.a)(l,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=C(t,p(m,n).collectionRef);return s.a.createElement(T.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),c=s.a.useRef(null),l=C(t,c),f=p(y,o);return s.a.useEffect((function(){return f.itemMap.set(c,Object(r.a)({ref:c},u)),function(){f.itemMap.delete(c)}})),s.a.createElement(T.a,(n={},Object(h.a)(n,g,""),Object(h.a)(n,"ref",l),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])},c]}function D(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}P={},A="createCollection",L=function(){return M},Object.defineProperty(P,A,{get:L,set:N,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 U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(l.useCallback)(F.apply(void 0,t),t)}D(I,"composeRefs",(function(){return F})),D(I,"useComposedRefs",(function(){return U}));var B=["children"],V=["scope","children"];function W(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var H={};function K(e,t){var n=Object(l.createContext)(t);function r(e){var t=e.children,r=Object(i.a)(e,B),o=Object(l.useMemo)((function(){return r}),Object.values(r));return Object(l.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){var o=Object(l.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function o(t,r){var o=Object(l.createContext)(r),a=n.length;function u(t){var n=t.scope,r=t.children,u=Object(i.a)(t,V),c=(null===n||void 0===n?void 0:n[e][a])||o,s=Object(l.useMemo)((function(){return u}),Object.values(u));return Object(l.createElement)(c.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,c=Object(l.useContext)(u);if(c)return c;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(l.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(l.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(l.useMemo)((function(){return Object(h.a)({},"__scope".concat(o.scopeName),n)}),[n])}};return a.scopeName=o.scopeName,a}W(H,"createContext",(function(){return K})),W(H,"createContextScope",(function(){return Y}));var q=n(45),$=n(46),Q=n(23),Z=["asChild"];function G(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var J={};G(J,"Primitive",(function(){return ee})),G(J,"dispatchDiscreteCustomEvent",(function(){return te})),G(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(l.forwardRef)((function(e,n){var r=e.asChild,o=Object(i.a)(e,Z),a=r?T.a:t;return Object(l.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(l.createElement)(a,Object(c.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=K(ie,{id:void 0,controlRef:{current:null}}),ce=Object(u.a)(ue,2),le=ce[0],se=ce[1],fe=Object(l.forwardRef)((function(e,t){var n=e.htmlFor,r=e.id,o=Object(i.a)(e,re),a=Object(l.useRef)(null),u=Object(l.useRef)(null),s=U(t,u),f=Object(Q.a)(r);return Object(l.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(l.createElement)(le,{id:f,controlRef:a},Object(l.createElement)(ee.span,Object(c.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(l.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)?l.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(l.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(l.useState)({}),h=Object(u.a)(v,2)[1];return ve((function(){h({})}),[]),p?d.a.createPortal(Object(l.createElement)(ee.div,Object(c.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(l.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(l.createElement)(ee.div,Object(c.a)({},a,{ref:t})),o):null})),Oe=ge;function _e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var je={};_e(je,"DirectionProvider",(function(){return Se})),_e(je,"useDirection",(function(){return ke})),_e(je,"Provider",(function(){return xe}));var Ee=Object(l.createContext)(void 0),Se=function(e){var t=e.dir,n=e.children;return Object(l.createElement)(Ee.Provider,{value:t},n)};function ke(e){var t=Object(l.useContext)(Ee);return e||t||"ltr"}var xe=Se,Ce=n(17);function Te(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(l.useState)(t),o=Object(u.a)(r,1)[0],a=Object(l.useRef)(o),i=Object(Ce.a)(n);return Object(l.useEffect)((function(){a.current!==o&&(i(o),a.current=o)}),[o,a,i]),r}({defaultProp:n,onChange:o}),i=Object(u.a)(a,2),c=i[0],s=i[1],f=void 0!==t,d=f?t:c,p=Object(Ce.a)(o);return[d,Object(l.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 Te}));function Re(e){var t=Object(l.useRef)({value:e,previous:e});return Object(l.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 Ae={};Pe(Ae,"VisuallyHidden",(function(){return Le})),Pe(Ae,"Root",(function(){return Ne}));var Le=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(ee.span,Object(c.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)}))})),Ne=Le,Me=n(26),De=n(80),Ie=["__scopeSelect","disabled","aria-labelledby"],ze=["__scopeSelect","className","style","children","placeholder"],Fe=["__scopeSelect","children"],Ue=["__scopeSelect","onCloseAutoFocus"],Be=["__scopeSelect"],Ve=["__scopeSelect"],We=["__scopeSelect"],He=["__scopeSelect","value","disabled","textValue"],Ke=["__scopeSelect","className","style"],Ye=["__scopeSelect"],Xe=["__scopeSelect","onAutoScroll"],qe=["__scopeSelect"],$e=["value"];function Qe(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Ze={};Qe(Ze,"createSelectScope",(function(){return ct})),Qe(Ze,"Select",(function(){return pt})),Qe(Ze,"SelectTrigger",(function(){return ht})),Qe(Ze,"SelectValue",(function(){return bt})),Qe(Ze,"SelectIcon",(function(){return yt})),Qe(Ze,"SelectContent",(function(){return wt})),Qe(Ze,"SelectViewport",(function(){return Ct})),Qe(Ze,"SelectGroup",(function(){return Nt})),Qe(Ze,"SelectLabel",(function(){return Dt})),Qe(Ze,"SelectItem",(function(){return Vt})),Qe(Ze,"SelectItemText",(function(){return Ht})),Qe(Ze,"SelectItemIndicator",(function(){return Yt})),Qe(Ze,"SelectScrollUpButton",(function(){return qt})),Qe(Ze,"SelectScrollDownButton",(function(){return Qt})),Qe(Ze,"SelectSeparator",(function(){return Gt})),Qe(Ze,"Root",(function(){return nn})),Qe(Ze,"Trigger",(function(){return rn})),Qe(Ze,"Value",(function(){return on})),Qe(Ze,"Icon",(function(){return an})),Qe(Ze,"Content",(function(){return un})),Qe(Ze,"Viewport",(function(){return cn})),Qe(Ze,"Group",(function(){return ln})),Qe(Ze,"Label",(function(){return sn})),Qe(Ze,"Item",(function(){return fn})),Qe(Ze,"ItemText",(function(){return dn})),Qe(Ze,"ItemIndicator",(function(){return pn})),Qe(Ze,"ScrollUpButton",(function(){return vn})),Qe(Ze,"ScrollDownButton",(function(){return hn})),Qe(Ze,"Separator",(function(){return mn}));var Ge=[" ","Enter","ArrowUp","ArrowDown"],Je=[" ","Enter"],et="Select",tt=M(et),nt=Object(u.a)(tt,3),rt=nt[0],ot=nt[1],at=Y(et,[nt[2]]),it=Object(u.a)(at,2),ut=it[0],ct=it[1],lt=ut(et),st=Object(u.a)(lt,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,c=e.defaultValue,s=e.onValueChange,f=e.dir,d=e.name,p=e.autoComplete,v=Object(l.useState)(null),h=Object(u.a)(v,2),m=h[0],b=h[1],y=Object(l.useState)(null),g=Object(u.a)(y,2),w=g[0],O=g[1],_=Object(l.useState)(!1),j=Object(u.a)(_,2),E=j[0],S=j[1],k=ke(f),x=Te({prop:r,defaultProp:o,onChange:a}),C=Object(u.a)(x,2),T=C[0],R=void 0!==T&&T,P=C[1],A=Te({prop:i,defaultProp:c,onChange:s}),L=Object(u.a)(A,2),N=L[0],M=L[1],D=!m||Boolean(m.closest("form")),I=Object(l.useState)(null),z=Object(u.a)(I,2),F=z[0],U=z[1],B=Object(l.useRef)(null);return Object(l.createElement)(ft,{scope:t,trigger:m,onTriggerChange:b,valueNode:w,onValueNodeChange:O,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:Object(Q.a)(),value:N,onValueChange:M,open:R,onOpenChange:P,dir:k,bubbleSelect:F,triggerPointerDownPosRef:B},Object(l.createElement)(rt.Provider,{scope:t},n),D?Object(l.createElement)(Jt,{ref:U,"aria-hidden":!0,tabIndex:-1,name:d,autoComplete:p,value:N,onChange:function(e){return M(e.target.value)}}):null)},vt="SelectTrigger",ht=Object(l.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=U(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],_=function(){o||(f.onOpenChange(!0),O())};return Object(l.createElement)(ee.button,Object(c.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&&(_(),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||Ge.includes(e.key)&&(_(),e.preventDefault())}))}))})),mt="SelectValue",bt=Object(l.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=U(t,u.onValueNodeChange);return ve((function(){s(f)}),[s,f]),Object(l.createElement)(ee.span,Object(c.a)({},a,{ref:d,style:{pointerEvents:"none"}}),void 0===u.value&&void 0!==o?o:r)})),yt=Object(l.forwardRef)((function(e,t){e.__scopeSelect;var n=e.children,r=Object(i.a)(e,Fe);return Object(l.createElement)(ee.span,Object(c.a)({"aria-hidden":!0},r,{ref:t}),n||"\u25bc")})),gt="SelectContent",wt=Object(l.forwardRef)((function(e,t){var n=dt(gt,e.__scopeSelect),r=Object(l.useState)(),o=Object(u.a)(r,2),a=o[0],i=o[1];return ve((function(){i(new DocumentFragment)}),[]),n.open?Object(l.createElement)(kt,Object(c.a)({},e,{ref:t})):a?Object(f.createPortal)(Object(l.createElement)(Et,{scope:e.__scopeSelect},Object(l.createElement)(rt.Slot,{scope:e.__scopeSelect},Object(l.createElement)("div",null,e.children))),a):null})),Ot=10,_t=ut(gt),jt=Object(u.a)(_t,2),Et=jt[0],St=jt[1],kt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,s=e.onCloseAutoFocus,f=Object(i.a)(e,Ue),d=dt(gt,n),h=Object(l.useState)(null),m=Object(u.a)(h,2),b=m[0],y=m[1],g=Object(l.useState)(null),w=Object(u.a)(g,2),O=w[0],_=w[1],j=Object(l.useState)(null),E=Object(u.a)(j,2),S=E[0],k=E[1],x=U(t,(function(e){return _(e)})),C=Object(l.useState)(null),T=Object(u.a)(C,2),R=T[0],P=T[1],A=Object(l.useState)(null),L=Object(u.a)(A,2),N=L[0],M=L[1],D=ot(n),I=Object(l.useState)(!1),z=Object(u.a)(I,2),F=z[0],B=z[1],V=Object(l.useRef)(!0),W=Object(l.useRef)(!1),H=Object(l.useRef)(!1);Object(l.useEffect)((function(){if(O)return Object(Me.a)(O)}),[O]);var K=Object(l.useCallback)((function(e){var t,n=D().map((function(e){return e.ref.current})),r=Object(a.a)(n),i=r[0],c=r.slice(1).slice(-1),l=Object(u.a)(c,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&&S&&(S.scrollTop=0),d===l&&S&&(S.scrollTop=S.scrollHeight),null===d||void 0===d||d.focus(),document.activeElement!==s)return}}catch(p){f.e(p)}finally{f.f()}}),[D,S]),Y=Object(l.useCallback)((function(){if(d.trigger&&d.valueNode&&b&&O&&S&&R&&N){var e=d.trigger.getBoundingClientRect(),t=O.getBoundingClientRect(),n=d.valueNode.getBoundingClientRect(),r=N.getBoundingClientRect();if("rtl"!==d.dir){var o=r.left-t.left,a=n.left-o,i=e.left-a,u=e.width+i,c=Math.max(u,t.width),l=window.innerWidth-Ot,s=p(a,[Ot,l-c]);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 _=D(),j=window.innerHeight-20,E=S.scrollHeight,k=window.getComputedStyle(O),x=parseInt(k.borderTopWidth,10),C=parseInt(k.paddingTop,10),T=parseInt(k.borderBottomWidth,10),P=x+C+E+parseInt(k.paddingBottom,10)+T,A=Math.min(5*R.offsetHeight,P),L=window.getComputedStyle(S),M=parseInt(L.paddingTop,10),I=parseInt(L.paddingBottom,10),z=e.top+e.height/2-Ot,F=j-z,U=R.offsetHeight/2,V=x+C+(R.offsetTop+U),H=P-V;if(V<=z){var K=R===_[_.length-1].ref.current;b.style.bottom="0px";var Y=O.clientHeight-S.offsetTop-S.offsetHeight,X=V+Math.max(F,U+(K?I:0)+Y+T);b.style.height=X+"px"}else{var q=R===_[0].ref.current;b.style.top="0px";var $=Math.max(z,x+S.offsetTop+(q?M:0)+U)+H;b.style.height=$+"px",S.scrollTop=V-z+S.offsetTop}b.style.margin="".concat(Ot,"px 0"),b.style.minHeight=A+"px",b.style.maxHeight=j+"px",B(!0),requestAnimationFrame((function(){return W.current=!0}))}}),[D,d.trigger,d.valueNode,b,O,S,R,N,d.dir]);ve((function(){return Y()}),[Y]);var X=Object(l.useCallback)((function(){return K([R,O])}),[K,R,O]);Object(l.useEffect)((function(){F&&X()}),[F,X]);var Q=Object(l.useCallback)((function(e){e&&!0===V.current&&(Y(),X(),V.current=!1)}),[Y,X]),Z=d.onOpenChange,G=d.triggerPointerDownPosRef;Object(l.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=G.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=G.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)||Z(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.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,Z,G]),Object(l.useEffect)((function(){var e=function(){return Z(!1)};return window.addEventListener("blur",e),window.addEventListener("resize",e),function(){window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[Z]);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(l.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(l.useCallback)((function(){return null===O||void 0===O?void 0:O.focus()}),[O]),ae=Object(l.useCallback)((function(e,t,n){var r=!H.current&&!n;(void 0!==d.value&&d.value===t||r)&&M(e)}),[d.value]);return Object(l.createElement)(Et,{scope:n,contentWrapper:b,content:O,viewport:S,onViewportChange:k,itemRefCallback:re,selectedItem:R,onItemLeave:oe,itemTextRefCallback:ae,selectedItemText:N,onScrollButtonChange:Q,isPositioned:F,shouldExpandOnScrollRef:W,searchRef:te},Object(l.createElement)(ge,null,Object(l.createElement)(De.a,null,Object(l.createElement)("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:0}},Object(l.createElement)($.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(l.createElement)(q.a,Object(c.a)({role:"listbox",id:d.contentId,"data-state":d.open?"open":"closed",dir:d.dir,onContextMenu:function(e){return e.preventDefault()}},f,{ref:x,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 K(n)})),e.preventDefault()}}))})))))))})),xt="SelectViewport",Ct=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,o=Object(i.a)(e,Be),a=St(xt,n),u=U(t,a.onViewportChange),s=Object(l.useRef)(0);return Object(l.createElement)(l.Fragment,null,Object(l.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(l.createElement)(rt.Slot,{scope:n},Object(l.createElement)(ee.div,Object(c.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),c=parseFloat(n.style.height),l=Math.max(u,c);if(l<i){var f=l+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}))}))))})),Tt="SelectGroup",Rt=ut(Tt),Pt=Object(u.a)(Rt,2),At=Pt[0],Lt=Pt[1],Nt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,Ve),o=Object(Q.a)();return Object(l.createElement)(At,{scope:n,id:o},Object(l.createElement)(ee.div,Object(c.a)({role:"group","aria-labelledby":o},r,{ref:t})))})),Mt="SelectLabel",Dt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,We),o=Lt(Mt,n);return Object(l.createElement)(ee.div,Object(c.a)({id:o.id},r,{ref:t}))})),It="SelectItem",zt=ut(It),Ft=Object(u.a)(zt,2),Ut=Ft[0],Bt=Ft[1],Vt=Object(l.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=St(It,n),h=d.value===r,m=Object(l.useState)(null!==s&&void 0!==s?s:""),b=Object(u.a)(m,2),y=b[0],g=b[1],w=Object(l.useState)(!1),O=Object(u.a)(w,2),_=O[0],j=O[1],E=U(t,(function(e){var t;return null===(t=p.itemRefCallback)||void 0===t?void 0:t.call(p,e,r,a)})),S=Object(Q.a)(),k=function(){a||(d.onValueChange(r),d.onOpenChange(!1))};return Object(l.createElement)(Ut,{scope:n,value:r,disabled:a,textId:S,isSelected:h,onItemTextChange:Object(l.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(l.createElement)(rt.ItemSlot,{scope:n,value:r,disabled:a,textValue:y},Object(l.createElement)(ee.div,Object(c.a)({role:"option","aria-labelledby":S,"data-highlighted":_?"":void 0,"aria-selected":h&&_,"data-state":h?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},f,{ref:E,onFocus:Object(v.a)(f.onFocus,(function(){return j(!0)})),onBlur:Object(v.a)(f.onBlur,(function(){return j(!1)})),onPointerUp:Object(v.a)(f.onPointerUp,k),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)&&k()," "===e.key&&e.preventDefault())}))}))))})),Wt="SelectItemText",Ht=Object(l.forwardRef)((function(e,t){var n,r=e.__scopeSelect,o=(e.className,e.style,Object(i.a)(e,Ke)),a=dt(Wt,r),u=St(Wt,r),s=Bt(Wt,r),d=Object(l.useRef)(null),p=U(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(l.createElement)(l.Fragment,null,Object(l.createElement)(ee.span,Object(c.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(l.createElement)("option",{value:s.value},null===(n=d.current)||void 0===n?void 0:n.textContent),a.bubbleSelect):null)})),Kt="SelectItemIndicator",Yt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,Ye);return Bt(Kt,n).isSelected?Object(l.createElement)(ee.span,Object(c.a)({"aria-hidden":!0},r,{ref:t})):null})),Xt="SelectScrollUpButton",qt=Object(l.forwardRef)((function(e,t){var n=St(Xt,e.__scopeSelect),r=Object(l.useState)(!1),o=Object(u.a)(r,2),a=o[0],i=o[1],s=U(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(l.createElement)(Zt,Object(c.a)({},e,{ref:s,onAutoScroll:function(){var e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),$t="SelectScrollDownButton",Qt=Object(l.forwardRef)((function(e,t){var n=St($t,e.__scopeSelect),r=Object(l.useState)(!1),o=Object(u.a)(r,2),a=o[0],i=o[1],s=U(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(l.createElement)(Zt,Object(c.a)({},e,{ref:s,onAutoScroll:function(){var e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),Zt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,o=e.onAutoScroll,a=Object(i.a)(e,Xe),u=St("SelectScrollButton",n),s=Object(l.useRef)(null),f=ot(n),d=Object(l.useCallback)((function(){null!==s.current&&(window.clearInterval(s.current),s.current=null)}),[]);return Object(l.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(l.createElement)(ee.div,Object(c.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()}))}))})),Gt=Object(l.forwardRef)((function(e,t){e.__scopeSelect;var n=Object(i.a)(e,qe);return Object(l.createElement)(ee.div,Object(c.a)({"aria-hidden":!0},n,{ref:t}))})),Jt=Object(l.forwardRef)((function(e,t){var n=e.value,r=Object(i.a)(e,$e),o=Object(l.useRef)(null),a=U(t,o),u=Re(n);return Object(l.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(l.createElement)(Le,{asChild:!0},Object(l.createElement)("select",Object(c.a)({},r,{ref:a,defaultValue:n})))}));function en(e){var t=Object(Ce.a)(e),n=Object(l.useRef)(""),r=Object(l.useRef)(0),o=Object(l.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(l.useCallback)((function(){n.current="",window.clearTimeout(r.current)}),[]);return Object(l.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 c=u.find((function(e){return e.textValue.toLowerCase().startsWith(a.toLowerCase())}));return c!==n?c:void 0}var nn=pt,rn=ht,on=bt,an=yt,un=wt,cn=Ct,ln=Nt,sn=Dt,fn=Vt,dn=Ht,pn=Yt,vn=qt,hn=Qt,mn=Gt},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(31);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 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 c=a[n],l=[],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=(c.get(t)||0)+1;r.set(t,u),c.set(t,f),l.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(){l.forEach((function(e){var t=r.get(e)-1,a=c.get(e)-1;r.set(e,t),c.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 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,c=function(e){var t=e.defaultProp,n=e.onChange,i=o.useState(t),u=Object(r.a)(i,1)[0],c=o.useRef(u),l=a(n);return o.useEffect((function(){c.current!==u&&(l(u),c.current=u)}),[u,c,l]),i}({defaultProp:n,onChange:u}),l=Object(r.a)(c,2),s=l[0],f=l[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,"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),c=n(11);function l(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)}l(s,"composeRefs",(function(){return d})),l(s,"useComposedRefs",(function(){return p}));var v=n(7),h=n(8),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 c(t){var n=t.scope,r=t.children,c=Object(o.a)(t,b),l=(null===n||void 0===n?void 0:n[e][i])||a,s=Object(u.useMemo)((function(){return c}),Object.values(c));return Object(u.createElement)(l.Provider,{value:s},r)}return n=[].concat(Object(h.a)(n),[r]),c.displayName=t+"Provider",[c,function(n,o){var c=(null===o||void 0===o?void 0:o[e][i])||a,l=Object(u.useContext)(c);if(l)return l;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,_.apply(void 0,[i].concat(Object(h.a)(t)))]}function _(){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 j=n(23),E=n(17);var S,k,x,C;function T(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),c=Object(E.a)(n);return Object(u.useEffect)((function(){i.current!==o&&(c(o),i.current=o)}),[o,i,c]),r}({defaultProp:n,onChange:o}),c=Object(a.a)(i,2),l=c[0],s=c[1],f=void 0!==t,d=f?t:l,p=Object(E.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])]}S={},k="useControllableState",x=function(){return T},Object.defineProperty(S,k,{get:x,set:C,enumerable:!0,configurable:!0});var R=n(45),P=n(46),A=n(12),L=n.n(A);!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useLayoutEffect",(function(){return N}));var N=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u.useLayoutEffect:function(){},M=n(20),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 U})),I(z,"Root",(function(){return B}));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),c=r?M.a:t;return Object(u.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(u.createElement)(c,Object(i.a)({},a,{ref:n}))}))))}),{});function U(e,t){e&&Object(A.flushSync)((function(){return e.dispatchEvent(t)}))}var B=F,V=["containerRef","style"],W=["container"];function H(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var K={};H(K,"Portal",(function(){return Y})),H(K,"UnstablePortal",(function(){return X})),H(K,"Root",(function(){return q}));var Y=Object(u.forwardRef)((function(e,t){var n,c,l=e.containerRef,s=e.style,f=Object(o.a)(e,V),d=null!==(n=null===l||void 0===l?void 0:l.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(c=globalThis.document)||void 0===c?void 0:c.body,p=Object(u.useState)({}),v=Object(a.a)(p,2)[1];return N((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,c=Object(o.a)(e,W);return a?L.a.createPortal(Object(u.createElement)(F.div,Object(i.a)({},c,{ref:t})),a):null})),q=Y;!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"Presence",(function(){return $}));var $=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)({}),c=Object(u.useRef)(e),l=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=Q(i.current);l.current="mounted"===d?e:"none"}),[d]),N((function(){var t=i.current,n=c.current;if(n!==e){var r=l.current,o=Q(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")}c.current=e}}),[e,p]),N((function(){if(r){var e=function(e){var t=Q(i.current).includes(e.animationName);e.target===r&&t&&Object(A.flushSync)((function(){return p("ANIMATION_END")}))},t=function(e){e.target===r&&(l.current=Q(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 Q(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}function Z(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}$.displayName="Presence";var G={};Z(G,"FocusGuards",(function(){return ee})),Z(G,"useFocusGuards",(function(){return te})),Z(G,"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(80),ae=n(26),ie=["__scopeDialog"],ue=["forceMount"],ce=["__scopeDialog"],le=["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 Se})),ve(he,"DialogTrigger",(function(){return xe})),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 Ke})),ve(he,"DialogClose",(function(){return Xe})),ve(he,"WarningProvider",(function(){return Ge})),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),_e=Object(a.a)(Oe,2),je=_e[0],Ee=_e[1],Se=function(e){var t=e.__scopeDialog,n=e.children,r=e.open,o=e.defaultOpen,i=e.onOpenChange,c=e.modal,l=void 0===c||c,s=e.allowPinchZoom,f=Object(u.useRef)(null),d=Object(u.useRef)(null),p=T({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)(je,{scope:t,triggerRef:f,contentRef:d,contentId:Object(j.a)(),titleId:Object(j.a)(),descriptionId:Object(j.a)(),open:m,onOpenChange:b,onOpenToggle:Object(u.useCallback)((function(){return b((function(e){return!e}))}),[b]),modal:l,allowPinchZoom:s},n)},ke="DialogTrigger",xe=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,ie),a=Ee(ke,n),l=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:l,onClick:Object(c.a)(e.onClick,a.onOpenToggle)}))})),Ce="DialogPortal",Te=ge(Ce,{forceMount:void 0}),Re=Object(a.a)(Te,2),Pe=Re[0],Ae=Re[1],Le=function(e){var t=e.__scopeDialog,n=e.forceMount,r=e.children,o=e.container,a=Ee(Ce,t);return Object(u.createElement)(Pe,{scope:t,forceMount:n},u.Children.map(r,(function(e){return Object(u.createElement)($,{present:n||a.open},Object(u.createElement)(X,{asChild:!0,container:o},e))})))},Ne="DialogOverlay",Me=Object(u.forwardRef)((function(e,t){var n=Ae(Ne,e.__scopeDialog),r=e.forceMount,a=void 0===r?n.forceMount:r,c=Object(o.a)(e,ue),l=Ee(Ne,e.__scopeDialog);return l.modal?Object(u.createElement)($,{present:a||l.open},Object(u.createElement)(De,Object(i.a)({},c,{ref:t}))):null})),De=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,a=Object(o.a)(e,ce),c=Ee(Ne,n);return Object(u.createElement)(oe.a,{as:M.a,allowPinchZoom:c.allowPinchZoom,shards:[c.contentRef]},Object(u.createElement)(F.div,Object(i.a)({"data-state":qe(c.open)},a,{ref:t,style:Object(r.a)({pointerEvents:"auto"},a.style)})))})),Ie="DialogContent",ze=Object(u.forwardRef)((function(e,t){var n=Ae(Ie,e.__scopeDialog),r=e.forceMount,a=void 0===r?n.forceMount:r,c=Object(o.a)(e,le),l=Ee(Ie,e.__scopeDialog);return Object(u.createElement)($,{present:a||l.open},l.modal?Object(u.createElement)(Fe,Object(i.a)({},c,{ref:t})):Object(u.createElement)(Ue,Object(i.a)({},c,{ref:t})))})),Fe=Object(u.forwardRef)((function(e,t){var n=Ee(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)(Be,Object(i.a)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Object(c.a)(e.onCloseAutoFocus,(function(e){var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Object(c.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(c.a)(e.onFocusOutside,(function(e){return e.preventDefault()}))}))})),Ue=Object(u.forwardRef)((function(e,t){var n=Ee(Ie,e.__scopeDialog),r=Object(u.useRef)(!1);return Object(u.createElement)(Be,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()}}))})),Be=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=e.trapFocus,a=e.onOpenAutoFocus,c=e.onCloseAutoFocus,l=Object(o.a)(e,se),s=Ee(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:c},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)},l,{ref:f,onDismiss:function(){return s.onOpenChange(!1)}}))),!1)})),Ve="DialogTitle",We=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,fe),a=Ee(Ve,n);return Object(u.createElement)(F.h2,Object(i.a)({id:a.titleId},r,{ref:t}))})),He="DialogDescription",Ke=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,de),a=Ee(He,n);return Object(u.createElement)(F.p,Object(i.a)({id:a.descriptionId},r,{ref:t}))})),Ye="DialogClose",Xe=Object(u.forwardRef)((function(e,t){var n=e.__scopeDialog,r=Object(o.a)(e,pe),a=Ee(Ye,n);return Object(u.createElement)(F.button,Object(i.a)({type:"button"},r,{ref:t,onClick:Object(c.a)(e.onClick,(function(){return a.onOpenChange(!1)}))}))}));function qe(e){return e?"open":"closed"}var $e="DialogTitleWarning",Qe=w($e,{contentName:Ie,titleName:Ve,docsSlug:"dialog"}),Ze=Object(a.a)(Qe,2),Ge=Ze[0],Je=(Ze[1],Se),et=xe,tt=Le,nt=Me,rt=ze,ot=We,at=Ke,it=Xe},function(e,t,n){"use strict";n.d(t,"c",(function(){return Re})),n.d(t,"d",(function(){return Pe})),n.d(t,"e",(function(){return Ae})),n.d(t,"b",(function(){return Le})),n.d(t,"a",(function(){return Ne}));var r=n(2),o=n(4),a=n(3),i=n(19),u=n(0),c=u["useId".toString()]||function(){},l=0;var s=n(44),f=n(15),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(43),O=n(14),_=["children","width","height"],j=u.forwardRef((function(e,t){var n=e.children,r=e.width,a=void 0===r?10:r,i=e.height,c=void 0===i?5:i,l=Object(o.a)(e,_);return u.createElement(O.a.svg,Object(d.a)({},l,{ref:t,width:a,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:u.createElement("polygon",{points:"0,0 30,0 15,10"}))})),E=n(33);var S=new Map;function k(){var e=[];S.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(k)}function x(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=S.get(e);return void 0===n?(S.set(e,{rect:{},callbacks:[t]}),1===S.size&&(g=requestAnimationFrame(k))):(n.callbacks.push(t),t(e.getBoundingClientRect())),function(){var n=S.get(e);if(void 0!==n){var r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(S.delete(e),0===S.size&&cancelAnimationFrame(g))}}}(e,o);return function(){o(void 0),t()}}}),[e]),r}var C=n(22),T=n(7);function R(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 P(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 A(e,t,n,r,o){var a="top"===t||"bottom"===t,i=o?o.width:0,u=o?o.height:0,c=i/2+r,l="",s="";return a?(l={start:"".concat(c,"px"),center:"center",end:e.width-c+"px"}[n],s="top"===t?"".concat(e.height+u,"px"):-u+"px"):(l="left"===t?"".concat(e.width+u,"px"):-u+"px",s={start:"".concat(c,"px"),center:"center",end:e.height-c+"px"}[n]),"".concat(l," ").concat(s)}var L={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},N={position:"absolute",opacity:0};function M(e){var t,n=e.popperSize,r=e.arrowSize,o=e.arrowOffset,a=e.side,i=e.align,u=(n.width-r.width)/2,c=(n.height-r.width)/2,l={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(l,"deg)"),willChange:"transform",position:"absolute"},Object(T.a)(t,a,"100%"),Object(T.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(c,"px")),"end"===i&&(f.bottom="".concat(o,"px"))),f}function D(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function I(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}var z=["__scopePopper","virtualRef"],F=["__scopePopper","side","sideOffset","align","alignOffset","collisionTolerance","avoidCollisions"],U=["__scopePopper","offset"],B=Object(C.b)("Popper"),V=Object(a.a)(B,2),W=V[0],H=V[1],K=W("Popper"),Y=Object(a.a)(K,2),X=Y[0],q=Y[1],$=u.forwardRef((function(e,t){var n=e.__scopePopper,r=e.virtualRef,a=Object(o.a)(e,z),i=q("PopperAnchor",n),c=u.useRef(null),l=Object(f.b)(t,c);return u.useEffect((function(){i.onAnchorChange((null==r?void 0:r.current)||c.current)})),r?null:u.createElement(O.a.div,Object(d.a)({},a,{ref:l}))})),Q=W("PopperContent"),Z=Object(a.a)(Q,2),G=Z[0],J=Z[1],ee=u.forwardRef((function(e,t){var n=e.__scopePopper,i=e.side,c=void 0===i?"bottom":i,l=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,F),g=q("PopperContent",n),w=u.useState(),_=Object(a.a)(w,2),j=_[0],S=_[1],k=x(g.anchor),C=u.useState(null),T=Object(a.a)(C,2),z=T[0],U=T[1],B=Object(E.a)(z),V=u.useState(null),W=Object(a.a)(V,2),H=W[0],K=W[1],Y=Object(E.a)(H),X=Object(f.b)(t,(function(e){return U(e)})),$=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,c=e.sideOffset,l=void 0===c?0:c,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:L,arrowStyles:N};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=R(t,e,"x"),u=R(t,e,"y"),c=u.before-n-a,l=u.after+n+a,s=i.before-n-a,f=i.after+n+a;return{top:{start:{x:i.start+r,y:c},center:{x:i.center,y:c},end:{x:i.end-r,y:c}},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:l},center:{x:i.center,y:l},end:{x:i.end-r,y:l}},left:{start:{x:s,y:u.start+r},center:{x:s,y:u.center},end:{x:s,y:u.end-r}}}}(n,t,l,d,o),g=y[u][s];if(!1===v){var w=P(g),O=N;return o&&(O=M({popperSize:n,arrowSize:o,arrowOffset:i,side:u,align:s})),{popperStyles:Object(r.a)(Object(r.a)({},w),{},{"--radix-popper-transform-origin":A(n,u,s,i,o)}),arrowStyles:O,placedSide:u,placedAlign:s}}var _,j,E=DOMRect.fromRect(Object(r.a)(Object(r.a)({},n),g)),S=(_=h,j=b,DOMRect.fromRect({width:_.width-2*j,height:_.height-2*j,x:_.left+j,y:_.top+j})),k=I(E,S),x=y[D(u)][s],C=function(e,t,n){var r=D(e);return t[e]&&!n[r]?r:e}(u,k,I(DOMRect.fromRect(Object(r.a)(Object(r.a)({},n),x)),S)),T=function(e,t,n,r,o){var a="top"===n||"bottom"===n,i=a?"left":"top",u=a?"right":"bottom",c=a?"width":"height",l=t[c]>e[c];return"start"!==r&&"center"!==r||!(o[i]&&l||o[u]&&!l)?"end"!==r&&"center"!==r||!(o[u]&&l||o[i]&&!l)?r:"start":"end"}(n,t,u,s,k),z=P(y[C][T]),F=N;return o&&(F=M({popperSize:n,arrowSize:o,arrowOffset:i,side:C,align:T})),{popperStyles:Object(r.a)(Object(r.a)({},z),{},{"--radix-popper-transform-origin":A(n,C,T,i,o)}),arrowStyles:F,placedSide:C,placedAlign:T}}({anchorRect:k,popperSize:B,arrowSize:Y,arrowOffset:j,side:c,sideOffset:l,align:p,alignOffset:v,shouldAvoidCollisions:b,collisionBoundariesRect:$?DOMRect.fromRect(Object(r.a)(Object(r.a)({},$),{},{x:0,y:0})):void 0,collisionTolerance:h}),Z=Q.popperStyles,J=Q.arrowStyles,ee=Q.placedSide,te=Q.placedAlign,ne=void 0!==ee;return u.createElement("div",{style:Z,"data-radix-popper-content-wrapper":""},u.createElement(G,{scope:n,arrowStyles:J,onArrowChange:K,onArrowOffsetChange:S},u.createElement(O.a.div,Object(d.a)({"data-side":ee,"data-align":te},y,{style:Object(r.a)(Object(r.a)({},y.style),{},{animation:ne?void 0:"none"}),ref:X}))))})),te=function(e){var t=e.__scopePopper,n=e.children,r=u.useState(null),o=Object(a.a)(r,2),i=o[0],c=o[1];return u.createElement(X,{scope:t,anchor:i,onAnchorChange:c},n)},ne=$,re=ee,oe=u.forwardRef((function(e,t){var n=e.__scopePopper,a=e.offset,i=Object(o.a)(e,U),c=J("PopperArrow",n),l=c.onArrowOffsetChange;return u.useEffect((function(){return l(a)}),[l,a]),u.createElement("span",{style:Object(r.a)(Object(r.a)({},c.arrowStyles),{},{pointerEvents:"none"})},u.createElement("span",{ref:c.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},u.createElement(j,Object(d.a)({},i,{ref:t,style:Object(r.a)(Object(r.a)({},i.style),{},{display:"block"})}))))})),ae=n(42),ie=n(34),ue=n(47),ce=n(27),le=n(11),se=["__scopeTooltip"],fe=["forceMount"],de=["__scopeTooltip","children","aria-label","portalled"],pe=["__scopeTooltip"],ve=Object(C.b)("Tooltip",[H]),he=Object(a.a)(ve,2),me=he[0],be=(he[1],H()),ye=me("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:function(){},onClose:function(){}}),ge=Object(a.a)(ye,2),we=ge[0],Oe=ge[1],_e=me("Tooltip"),je=Object(a.a)(_e,2),Ee=je[0],Se=je[1],ke=u.forwardRef((function(e,t){var n=e.__scopeTooltip,r=Object(o.a)(e,se),a=Se("TooltipTrigger",n),i=be(n),c=Object(f.b)(t,a.onTriggerChange),l=u.useRef(!1),s=u.useCallback((function(){return l.current=!1}),[]);return u.useEffect((function(){return function(){return document.removeEventListener("mouseup",s)}}),[s]),u.createElement(ne,Object(d.a)({asChild:!0},i),u.createElement(O.a.button,Object(d.a)({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:c,onMouseEnter:Object(le.a)(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Object(le.a)(e.onMouseLeave,a.onClose),onMouseDown:Object(le.a)(e.onMouseDown,(function(){a.onClose(),l.current=!0,document.addEventListener("mouseup",s,{once:!0})})),onFocus:Object(le.a)(e.onFocus,(function(){l.current||a.onOpen()})),onBlur:Object(le.a)(e.onBlur,a.onClose),onClick:Object(le.a)(e.onClick,(function(e){0===e.detail&&a.onClose()}))})))})),xe=u.forwardRef((function(e,t){var n=e.forceMount,r=Object(o.a)(e,fe),a=Se("TooltipContent",e.__scopeTooltip);return u.createElement(ae.a,{present:n||a.open},u.createElement(Ce,Object(d.a)({ref:t},r)))})),Ce=u.forwardRef((function(e,t){var n=e.__scopeTooltip,a=e.children,i=e["aria-label"],c=e.portalled,l=void 0===c||c,f=Object(o.a)(e,de),p=Se("TooltipContent",n),v=be(n),h=l?w.a:u.Fragment,m=p.onClose;return Object(ue.a)((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(Te,{__scopeTooltip:n}),u.createElement(re,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 Te(e){var t=e.__scopeTooltip,n=Se("CheckTriggerMoved",t),r=x(n.trigger),o=null==r?void 0:r.left,a=Object(ie.a)(o),i=null==r?void 0:r.top,c=Object(ie.a)(i),l=n.onClose;return u.useEffect((function(){(void 0!==a&&a!==o||void 0!==c&&c!==i)&&l()}),[l,a,c,o,i]),null}var Re=function(e){var t=e.__scopeTooltip,n=e.delayDuration,r=void 0===n?700:n,o=e.skipDelayDuration,i=void 0===o?300:o,c=e.children,l=u.useState(!0),s=Object(a.a)(l,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(we,{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])},c)},Pe=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=Oe("Tooltip",t),v=be(t),h=u.useState(null),m=Object(a.a)(h,2),b=m[0],y=m[1],g=function(e){var t=u.useState(c()),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(l++)}))}),[e]),e||(r?"radix-".concat(r):"")}(),w=u.useRef(0),O=null!=d?d:p.delayDuration,_=u.useRef(!1),j=p.onOpen,E=p.onClose,S=Object(ce.a)({prop:r,defaultProp:s,onChange:function(e){e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),j()),null==f||f(e)}}),k=Object(a.a)(S,2),x=k[0],C=void 0!==x&&x,T=k[1],R=u.useMemo((function(){return C?_.current?"delayed-open":"instant-open":"closed"}),[C]),P=u.useCallback((function(){window.clearTimeout(w.current),_.current=!1,T(!0)}),[T]),A=u.useCallback((function(){window.clearTimeout(w.current),w.current=window.setTimeout((function(){_.current=!0,T(!0)}),O)}),[O,T]);return u.useEffect((function(){return function(){return window.clearTimeout(w.current)}}),[]),u.createElement(te,v,u.createElement(Ee,{scope:t,contentId:g,open:C,stateAttribute:R,trigger:b,onTriggerChange:y,onTriggerEnter:u.useCallback((function(){p.isOpenDelayed?A():P()}),[p.isOpenDelayed,A,P]),onOpen:u.useCallback(P,[P]),onClose:u.useCallback((function(){window.clearTimeout(w.current),T(!1),E()}),[T,E])},n))},Ae=ke,Le=xe,Ne=u.forwardRef((function(e,t){var n=e.__scopeTooltip,r=Object(o.a)(e,pe),a=be(n);return u.createElement(oe,Object(d.a)({},a,r,{ref:t}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(38),o=n(39),a=n(25),i=n(40);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 r})),n.d(t,"b",(function(){return o}));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)};function o(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}Object.create;Object.create},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 c=e.getBoundingClientRect();n=c.width,r=c.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){e.exports=n(70)()},function(e,t,n){"use strict";n.d(t,"c",(function(){return ur})),n.d(t,"d",(function(){return cr})),n.d(t,"b",(function(){return lr})),n.d(t,"a",(function(){return sr}));var r=n(7),o=n(2),a=n(4),i=n(3),u=n(5),c=n(0);function l(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||void 0===e||e(n),!1===o||!n.defaultPrevented)return null===t||void 0===t?void 0:t(n)}}function s(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 s(t,e)}))}}function d(){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)}var p=n(8),v=["scope","children"];function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function i(t,r){var o=Object(c.createContext)(r),i=n.length;function u(t){var n=t.scope,r=t.children,u=Object(a.a)(t,v),l=(null===n||void 0===n?void 0:n[e][i])||o,s=Object(c.useMemo)((function(){return u}),Object.values(u));return Object(c.createElement)(l.Provider,{value:s},r)}return n=[].concat(Object(p.a)(n),[r]),u.displayName=t+"Provider",[u,function(n,a){var u=(null===a||void 0===a?void 0:a[e][i])||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 u=function(){var t=n.map((function(e){return Object(c.createContext)(e)}));return function(n){var a=(null===n||void 0===n?void 0:n[e])||t;return Object(c.useMemo)((function(){return Object(r.a)({},"__scope".concat(e),Object(o.a)(Object(o.a)({},n),{},Object(r.a)({},e,a)))}),[n,a])}};return u.scopeName=e,[i,m.apply(void 0,[u].concat(Object(p.a)(t)))]}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0];if(1===t.length)return a;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,a=n.scopeName,i=r(t)["__scope".concat(a)];return Object(o.a)(Object(o.a)({},e),i)}),{});return Object(c.useMemo)((function(){return Object(r.a)({},"__scope".concat(a.scopeName),n)}),[n])}};return i.scopeName=a.scopeName,i}var b=n(12),y=n.n(b),g=["children"],w=["children"],O=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,g),o=c.Children.toArray(n),i=o.find(E);if(i){var l=i.props.children,s=o.map((function(e){return e===i?c.Children.count(l)>1?c.Children.only(null):Object(c.isValidElement)(l)?l.props.children:null:e}));return Object(c.createElement)(_,Object(u.a)({},r,{ref:t}),Object(c.isValidElement)(l)?Object(c.cloneElement)(l,void 0,s):null)}return Object(c.createElement)(_,Object(u.a)({},r,{ref:t}),n)}));O.displayName="Slot";var _=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,w);return Object(c.isValidElement)(n)?Object(c.cloneElement)(n,Object(o.a)(Object(o.a)({},function(e,t){var n=Object(o.a)({},t),r=function(r){var a=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=function(){null===i||void 0===i||i.apply(void 0,arguments),null===a||void 0===a||a.apply(void 0,arguments)}:"style"===r?n[r]=Object(o.a)(Object(o.a)({},a),i):"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))};for(var a in t)r(a);return Object(o.a)(Object(o.a)({},e),n)}(r,n.props)),{},{ref:f(t,n.ref)})):c.Children.count(n)>1?c.Children.only(null):null}));_.displayName="SlotClone";var j=function(e){var t=e.children;return Object(c.createElement)(c.Fragment,null,t)};function E(e){return Object(c.isValidElement)(e)&&e.type===j}var S=["asChild"],k=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){var n=Object(c.forwardRef)((function(e,n){var r=e.asChild,o=Object(a.a)(e,S),i=r?O:t;return Object(c.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(c.createElement)(i,Object(u.a)({},o,{ref:n}))}));return n.displayName="Primitive.".concat(t),Object(o.a)(Object(o.a)({},e),{},Object(r.a)({},t,n))}),{});function x(e){var t=Object(c.useRef)(e);return Object(c.useEffect)((function(){t.current=e})),Object(c.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 C,T=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"],R="dismissableLayer.update",P="dismissableLayer.pointerDownOutside",A="dismissableLayer.focusOutside",L=Object(c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=Object(c.forwardRef)((function(e,t){var n=e.disableOutsidePointerEvents,r=void 0!==n&&n,s=e.onEscapeKeyDown,f=e.onPointerDownOutside,v=e.onFocusOutside,h=e.onInteractOutside,m=e.onDismiss,b=Object(a.a)(e,T),y=Object(c.useContext)(L),g=Object(c.useState)(null),w=Object(i.a)(g,2),O=w[0],_=w[1],j=Object(c.useState)({}),E=Object(i.a)(j,2)[1],S=d(t,(function(e){return _(e)})),N=Array.from(y.layers),I=Object(p.a)(y.layersWithOutsidePointerEventsDisabled).slice(-1),z=Object(i.a)(I,1)[0],F=N.indexOf(z),U=O?N.indexOf(O):-1,B=y.layersWithOutsidePointerEventsDisabled.size>0,V=U>=F,W=function(e){var t=x(e),n=Object(c.useRef)(!1),r=Object(c.useRef)((function(){}));return Object(c.useEffect)((function(){var e=function(e){if(e.target&&!n.current){var o=function(){D(P,t,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=o,document.addEventListener("click",r.current,{once:!0})):o()}n.current=!1},o=window.setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(o),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}}),[t]),{onPointerDownCapture:function(){return n.current=!0}}}((function(e){var t=e.target,n=Object(p.a)(y.branches).some((function(e){return e.contains(t)}));V&&!n&&(null===f||void 0===f||f(e),null===h||void 0===h||h(e),e.defaultPrevented||null===m||void 0===m||m())})),H=function(e){var t=x(e),n=Object(c.useRef)(!1);return Object(c.useEffect)((function(){var e=function(e){e.target&&!n.current&&D(A,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(p.a)(y.branches).some((function(e){return e.contains(t)}))||(null===v||void 0===v||v(e),null===h||void 0===h||h(e),e.defaultPrevented||null===m||void 0===m||m())}));return function(e){var t=x(e);Object(c.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){U===y.layers.size-1&&(null===s||void 0===s||s(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))})),Object(c.useEffect)((function(){if(O)return r&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(C=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(O)),y.layers.add(O),M(),function(){r&&1===y.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=C)}}),[O,r,y]),Object(c.useEffect)((function(){return function(){O&&(y.layers.delete(O),y.layersWithOutsidePointerEventsDisabled.delete(O),M())}}),[O,y]),Object(c.useEffect)((function(){var e=function(){return E({})};return document.addEventListener(R,e),function(){return document.removeEventListener(R,e)}}),[]),Object(c.createElement)(k.div,Object(u.a)({},b,{ref:S,style:Object(o.a)({pointerEvents:B?V?"auto":"none":void 0},e.style),onFocusCapture:l(e.onFocusCapture,H.onFocusCapture),onBlurCapture:l(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,W.onPointerDownCapture)}))}));function M(){var e=new CustomEvent(R);document.dispatchEvent(e)}function D(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?function(e,t){e&&Object(b.flushSync)((function(){return e.dispatchEvent(t)}))}(a,i):a.dispatchEvent(i)}var I=0;function z(){Object(c.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:F()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:F()),I++,function(){1===I&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(e){return e.remove()})),I--}}),[])}function F(){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 U=n(10),B=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"],V="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",H={bubbles:!1,cancelable:!0},K=Object(c.forwardRef)((function(e,t){var n=e.loop,r=void 0!==n&&n,o=e.trapped,l=void 0!==o&&o,s=e.onMountAutoFocus,f=e.onUnmountAutoFocus,p=Object(a.a)(e,B),v=Object(c.useState)(null),h=Object(i.a)(v,2),m=h[0],b=h[1],y=x(s),g=x(f),w=Object(c.useRef)(null),O=d(t,(function(e){return b(e)})),_=Object(c.useRef)({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;Object(c.useEffect)((function(){if(l){var e=function(e){if(!_.paused&&m){var t=e.target;m.contains(t)?w.current=t:Q(w.current,{select:!0})}},t=function(e){!_.paused&&m&&(m.contains(e.relatedTarget)||Q(w.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[l,m,_.paused]),Object(c.useEffect)((function(){if(m){Z.add(_);var e=document.activeElement;if(!m.contains(e)){var t=new CustomEvent(V,H);m.addEventListener(V,y),m.dispatchEvent(t),t.defaultPrevented||(!function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,o=document.activeElement,a=Object(U.a)(e);try{for(a.s();!(t=a.n()).done;){if(Q(t.value,{select:r}),document.activeElement!==o)return}}catch(i){a.e(i)}finally{a.f()}}((n=Y(m),n.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&Q(m))}return function(){m.removeEventListener(V,y),setTimeout((function(){var t=new CustomEvent(W,H);m.addEventListener(W,g),m.dispatchEvent(t),t.defaultPrevented||Q(null!==e&&void 0!==e?e:document.body,{select:!0}),m.removeEventListener(W,g),Z.remove(_)}),0)}}var n}),[m,y,g,_]);var j=Object(c.useCallback)((function(e){if((r||l)&&!_.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var o=e.currentTarget,a=function(e){var t=Y(e),n=X(t,e),r=X(t.reverse(),e);return[n,r]}(o),u=Object(i.a)(a,2),c=u[0],s=u[1];c&&s?e.shiftKey||n!==s?e.shiftKey&&n===c&&(e.preventDefault(),r&&Q(s,{select:!0})):(e.preventDefault(),r&&Q(c,{select:!0})):n===o&&e.preventDefault()}}}),[r,l,_.paused]);return Object(c.createElement)(k.div,Object(u.a)({tabIndex:-1},p,{ref:O,onKeyDown:j}))}));function Y(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 X(e,t){var n,r=Object(U.a)(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!q(o,{upTo:t}))return o}}catch(a){r.e(a)}finally{r.f()}}function q(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 $(e){return e instanceof HTMLInputElement&&"select"in e}function Q(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&&$(e)&&r&&e.select()}}var Z=function(){var e=[];return{add:function(t){var n=e[0];t!==n&&(null===n||void 0===n||n.pause()),(e=G(e,t)).unshift(t)},remove:function(t){var n;null===(n=(e=G(e,t))[0])||void 0===n||n.resume()}}}();function G(e,t){var n=Object(p.a)(e),r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var J=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?c.useLayoutEffect:function(){},ee=c["useId".toString()]||function(){},te=0;function ne(e){var t=c.useState(ee()),n=Object(i.a)(t,2),r=n[0],o=n[1];return J((function(){e||o((function(e){return null!==e&&void 0!==e?e:String(te++)}))}),[e]),e||(r?"radix-".concat(r):"")}var re=n(9),oe=n.n(re),ae=n(13),ie=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],ue=["strategy"],ce=["mainAxis","crossAxis","limiter"];function le(e){return e.split("-")[0]}function se(e){return e.split("-")[1]}function fe(e){return["top","bottom"].includes(le(e))?"x":"y"}function de(e){return"y"===e?"height":"width"}function pe(e,t,n){var r,o=e.reference,a=e.floating,i=o.x+o.width/2-a.width/2,u=o.y+o.height/2-a.height/2,c=fe(t),l=de(c),s=o[l]/2-a[l]/2,f="x"===c;switch(le(t)){case"top":r={x:i,y:o.y-a.height};break;case"bottom":r={x:i,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:u};break;case"left":r={x:o.x-a.width,y:u};break;default:r={x:o.x,y:o.y}}switch(se(t)){case"start":r[c]-=s*(n&&f?-1:1);break;case"end":r[c]+=s*(n&&f?-1:1)}return r}var ve=function(){var e=Object(ae.a)(oe.a.mark((function e(t,n,a){var i,u,c,l,s,f,d,p,v,h,m,b,y,g,w,O,_,j,E,S,k,x,C,T,R;return oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.placement,u=void 0===i?"bottom":i,c=a.strategy,l=void 0===c?"absolute":c,s=a.middleware,f=void 0===s?[]:s,d=a.platform,e.next=3,null==d.isRTL?void 0:d.isRTL(n);case 3:p=e.sent,e.next=8;break;case 8:return e.next=10,d.getElementRects({reference:t,floating:n,strategy:l});case 10:v=e.sent,h=pe(v,u,p),m=h.x,b=h.y,y=u,g={},w=0,O=0;case 16:if(!(O<f.length)){e.next=50;break}return _=f[O],j=_.name,E=_.fn,e.next=20,E({x:m,y:b,initialPlacement:u,placement:y,strategy:l,middlewareData:g,rects:v,platform:d,elements:{reference:t,floating:n}});case 20:if(S=e.sent,k=S.x,x=S.y,C=S.data,T=S.reset,m=null!=k?k:m,b=null!=x?x:b,g=Object(o.a)(Object(o.a)({},g),{},Object(r.a)({},j,Object(o.a)(Object(o.a)({},g[j]),C))),!(T&&w<=50)){e.next=47;break}if(w++,"object"!==typeof T){e.next=45;break}if(T.placement&&(y=T.placement),!T.rects){e.next=42;break}if(!0!==T.rects){e.next=40;break}return e.next=37,d.getElementRects({reference:t,floating:n,strategy:l});case 37:e.t0=e.sent,e.next=41;break;case 40:e.t0=T.rects;case 41:v=e.t0;case 42:R=pe(v,y,p),m=R.x,b=R.y;case 45:return O=-1,e.abrupt("continue",47);case 47:O++,e.next=16;break;case 50:return e.abrupt("return",{x:m,y:b,placement:y,strategy:l,middlewareData:g});case 51:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function he(e){return"number"!==typeof e?function(e){return Object(o.a)({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function me(e){return Object(o.a)(Object(o.a)({},e),{},{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function be(e,t){return ye.apply(this,arguments)}function ye(){return(ye=Object(ae.a)(oe.a.mark((function e(t,n){var r,a,i,u,c,l,s,f,d,p,v,h,m,b,y,g,w,O,_,j,E,S;return oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),a=t.x,i=t.y,u=t.platform,c=t.rects,l=t.elements,s=t.strategy,d=(f=n).boundary,p=void 0===d?"clippingAncestors":d,v=f.rootBoundary,h=void 0===v?"viewport":v,m=f.elementContext,b=void 0===m?"floating":m,y=f.altBoundary,g=void 0!==y&&y,w=f.padding,O=he(void 0===w?0:w),_="floating"===b?"reference":"floating",j=l[g?_:b],e.t0=me,e.t1=u,e.next=10,null==u.isElement?void 0:u.isElement(j);case 10:if(e.t2=r=e.sent,null==e.t2){e.next=15;break}e.t3=r,e.next=16;break;case 15:e.t3=!0;case 16:if(!e.t3){e.next=20;break}e.t4=j,e.next=26;break;case 20:if(e.t5=j.contextElement,e.t5){e.next=25;break}return e.next=24,null==u.getDocumentElement?void 0:u.getDocumentElement(l.floating);case 24:e.t5=e.sent;case 25:e.t4=e.t5;case 26:return e.t6=e.t4,e.t7=p,e.t8=h,e.t9=s,e.t10={element:e.t6,boundary:e.t7,rootBoundary:e.t8,strategy:e.t9},e.next=33,e.t1.getClippingRect.call(e.t1,e.t10);case 33:if(e.t11=e.sent,E=(0,e.t0)(e.t11),e.t12=me,!u.convertOffsetParentRelativeRectToViewportRelativeRect){e.next=49;break}return e.t14=u,e.t15="floating"===b?Object(o.a)(Object(o.a)({},c.floating),{},{x:a,y:i}):c.reference,e.next=41,null==u.getOffsetParent?void 0:u.getOffsetParent(l.floating);case 41:return e.t16=e.sent,e.t17=s,e.t18={rect:e.t15,offsetParent:e.t16,strategy:e.t17},e.next=46,e.t14.convertOffsetParentRelativeRectToViewportRelativeRect.call(e.t14,e.t18);case 46:e.t13=e.sent,e.next=50;break;case 49:e.t13=c[b];case 50:return e.t19=e.t13,S=(0,e.t12)(e.t19),e.abrupt("return",{top:E.top-S.top+O.top,bottom:S.bottom-E.bottom+O.bottom,left:E.left-S.left+O.left,right:S.right-E.right+O.right});case 53:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ge=Math.min,we=Math.max;function Oe(e,t,n){return we(e,ge(t,n))}var _e=function(e){return{name:"arrow",options:e,fn:function(t){return Object(ae.a)(oe.a.mark((function n(){var o,a,i,u,c,l,s,f,d,p,v,h,m,b,y,g,w,O,_,j,E,S,k,x,C,T,R,P,A,L,N;return oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(u=(i=null!=e?e:{}).element,c=i.padding,l=void 0===c?0:c,s=t.x,f=t.y,d=t.placement,p=t.rects,v=t.platform,null!=u){n.next=5;break}return n.abrupt("return",{});case 5:return h=he(l),m={x:s,y:f},b=fe(d),y=se(d),g=de(b),n.next=12,v.getDimensions(u);case 12:return w=n.sent,O="y"===b?"top":"left",_="y"===b?"bottom":"right",j=p.reference[g]+p.reference[b]-m[b]-p.floating[g],E=m[b]-p.reference[b],n.next=19,null==v.getOffsetParent?void 0:v.getOffsetParent(u);case 19:return S=n.sent,0===(k=S?"y"===b?S.clientHeight||0:S.clientWidth||0:0)&&(k=p.floating[g]),x=j/2-E/2,C=h[O],T=k-w[g]-h[_],R=k/2-w[g]/2+x,P=Oe(C,R,T),A="start"===y?h[O]:h[_],L=A>0&&R!==P&&p.reference[g]<=p.floating[g],N=L?R<C?C-R:T-R:0,n.abrupt("return",(a={},Object(r.a)(a,b,m[b]-N),Object(r.a)(a,"data",(o={},Object(r.a)(o,b,P),Object(r.a)(o,"centerOffset",R-P),o)),a));case 31:case"end":return n.stop()}}),n)})))()}}},je={left:"right",right:"left",bottom:"top",top:"bottom"};function Ee(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}function Se(e,t,n){void 0===n&&(n=!1);var r=se(e),o=fe(e),a=de(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ee(i)),{main:i,cross:Ee(i)}}var ke={start:"end",end:"start"};function xe(e){return e.replace(/start|end/g,(function(e){return ke[e]}))}var Ce=["top","right","bottom","left"];function Te(e){var t=Ee(e);return[xe(e),t,xe(t)]}var Re=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return Object(ae.a)(oe.a.mark((function n(){var r,o,i,u,c,l,s,f,d,v,h,m,b,y,g,w,O,_,j,E,S,k,x,C,T,R,P,A,L,N,M,D,I,z,F;return oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.placement,i=t.middlewareData,u=t.rects,c=t.initialPlacement,l=t.platform,s=t.elements,d=(f=e).mainAxis,v=void 0===d||d,h=f.crossAxis,m=void 0===h||h,b=f.fallbackPlacements,y=f.fallbackStrategy,g=void 0===y?"bestFit":y,w=f.flipAlignment,O=void 0===w||w,_=Object(a.a)(f,ie),j=le(o),E=j===c,S=b||(E||!O?[Ee(c)]:Te(c)),k=[c].concat(Object(p.a)(S)),n.next=8,be(t,_);case 8:if(x=n.sent,C=[],T=(null==(r=i.flip)?void 0:r.overflows)||[],v&&C.push(x[j]),!m){n.next=23;break}return n.t0=Se,n.t1=o,n.t2=u,n.next=18,null==l.isRTL?void 0:l.isRTL(s.floating);case 18:n.t3=n.sent,R=(0,n.t0)(n.t1,n.t2,n.t3),P=R.main,A=R.cross,C.push(x[P],x[A]);case 23:if(T=[].concat(Object(p.a)(T),[{placement:o,overflows:C}]),C.every((function(e){return e<=0}))){n.next=40;break}if(M=(null!=(L=null==(N=i.flip)?void 0:N.index)?L:0)+1,!(D=k[M])){n.next=29;break}return n.abrupt("return",{data:{index:M,overflows:T},reset:{placement:D}});case 29:I="bottom",n.t4=g,n.next="bestFit"===n.t4?33:"initialPlacement"===n.t4?36:38;break;case 33:return F=null==(z=T.map((function(e){return[e,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:z[0].placement,F&&(I=F),n.abrupt("break",38);case 36:return I=c,n.abrupt("break",38);case 38:if(o===I){n.next=40;break}return n.abrupt("return",{reset:{placement:I}});case 40:return n.abrupt("return",{});case 41:case"end":return n.stop()}}),n)})))()}}};function Pe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ae(e){return Ce.some((function(t){return e[t]>=0}))}var Le=function(e){var t=void 0===e?{}:e,n=t.strategy,r=void 0===n?"referenceHidden":n,i=Object(a.a)(t,ue);return{name:"hide",fn:function(e){return Object(ae.a)(oe.a.mark((function t(){var n,a,u,c,l;return oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.rects,t.t0=r,t.next="referenceHidden"===t.t0?4:"escaped"===t.t0?9:14;break;case 4:return t.next=6,be(e,Object(o.a)(Object(o.a)({},i),{},{elementContext:"reference"}));case 6:return a=t.sent,u=Pe(a,n.reference),t.abrupt("return",{data:{referenceHiddenOffsets:u,referenceHidden:Ae(u)}});case 9:return t.next=11,be(e,Object(o.a)(Object(o.a)({},i),{},{altBoundary:!0}));case 11:return c=t.sent,l=Pe(c,n.floating),t.abrupt("return",{data:{escapedOffsets:l,escaped:Ae(l)}});case 14:return t.abrupt("return",{});case 15:case"end":return t.stop()}}),t)})))()}}};function Ne(e,t){return Me.apply(this,arguments)}function Me(){return(Me=Object(ae.a)(oe.a.mark((function e(t,n){var r,a,i,u,c,l,s,f,d,p,v,h,m,b;return oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.placement,a=t.platform,i=t.elements,e.next=3,null==a.isRTL?void 0:a.isRTL(i.floating);case 3:return u=e.sent,c=le(r),l=se(r),s="x"===fe(r),f=["left","top"].includes(c)?-1:1,d=u&&s?-1:1,p="function"===typeof n?n(t):n,v="number"===typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:Object(o.a)({mainAxis:0,crossAxis:0,alignmentAxis:null},p),h=v.mainAxis,m=v.crossAxis,b=v.alignmentAxis,l&&"number"===typeof b&&(m="end"===l?-1*b:b),e.abrupt("return",s?{x:m*d,y:h*f}:{x:h*f,y:m*d});case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){return"x"===e?"y":"x"}var Ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return Object(ae.a)(oe.a.mark((function n(){var i,u,c,l,s,f,d,p,v,h,m,b,y,g,w,O,_,j,E,S,k,x,C,T,R;return oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=t.x,c=t.y,l=t.placement,f=(s=e).mainAxis,d=void 0===f||f,p=s.crossAxis,v=void 0!==p&&p,h=s.limiter,m=void 0===h?{fn:function(e){return{x:e.x,y:e.y}}}:h,b=Object(a.a)(s,ce),y={x:u,y:c},n.next=5,be(t,b);case 5:return g=n.sent,w=fe(le(l)),O=De(w),_=y[w],j=y[O],d&&(E="y"===w?"bottom":"right",S=_+g["y"===w?"top":"left"],k=_-g[E],_=Oe(S,_,k)),v&&(x="y"===O?"bottom":"right",C=j+g["y"===O?"top":"left"],T=j-g[x],j=Oe(C,j,T)),R=m.fn(Object(o.a)(Object(o.a)({},t),{},(i={},Object(r.a)(i,w,_),Object(r.a)(i,O,j),i))),n.abrupt("return",Object(o.a)(Object(o.a)({},R),{},{data:{x:R.x-u,y:R.y-c}}));case 14:case"end":return n.stop()}}),n)})))()}}};function ze(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Fe(e){if(null==e)return window;if(!ze(e)){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ue(e){return Fe(e).getComputedStyle(e)}function Be(e){return ze(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ve(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function We(e){return e instanceof Fe(e).HTMLElement}function He(e){return e instanceof Fe(e).Element}function Ke(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Fe(e).ShadowRoot||e instanceof ShadowRoot)}function Ye(e){var t=Ue(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Xe(e){return["table","td","th"].includes(Be(e))}function qe(e){var t=/firefox/i.test(Ve()),n=Ue(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function $e(){return!/^((?!chrome|android).)*safari/i.test(Ve())}var Qe=Math.min,Ze=Math.max,Ge=Math.round;function Je(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);var u=e.getBoundingClientRect(),c=1,l=1;t&&We(e)&&(c=e.offsetWidth>0&&Ge(u.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Ge(u.height)/e.offsetHeight||1);var s=He(e)?Fe(e):window,f=!$e()&&n,d=(u.left+(f&&null!=(r=null==(o=s.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(u.top+(f&&null!=(a=null==(i=s.visualViewport)?void 0:i.offsetTop)?a:0))/l,v=u.width/c,h=u.height/l;return{width:v,height:h,top:p,right:d+v,bottom:p+h,left:d,x:d,y:p}}function et(e){return(t=e,(t instanceof Fe(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function tt(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){return Je(et(e)).left+tt(e).scrollLeft}function rt(e,t,n){var r=We(t),o=et(t),a=Je(e,r&&function(e){var t=Je(e);return Ge(t.width)!==e.offsetWidth||Ge(t.height)!==e.offsetHeight}(t),"fixed"===n),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Be(t)||Ye(o))&&(i=tt(t)),We(t)){var c=Je(t,!0);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else o&&(u.x=nt(o));return{x:a.left+i.scrollLeft-u.x,y:a.top+i.scrollTop-u.y,width:a.width,height:a.height}}function ot(e){return"html"===Be(e)?e:e.assignedSlot||e.parentNode||(Ke(e)?e.host:null)||et(e)}function at(e){return We(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function it(e){for(var t=Fe(e),n=at(e);n&&Xe(n)&&"static"===getComputedStyle(n).position;)n=at(n);return n&&("html"===Be(n)||"body"===Be(n)&&"static"===getComputedStyle(n).position&&!qe(n))?t:n||function(e){var t=ot(e);for(Ke(t)&&(t=t.host);We(t)&&!["html","body"].includes(Be(t));){if(qe(t))return t;t=t.parentNode}return null}(e)||t}function ut(e){if(We(e))return{width:e.offsetWidth,height:e.offsetHeight};var t=Je(e);return{width:t.width,height:t.height}}function ct(e){var t=ot(e);return["html","body","#document"].includes(Be(t))?e.ownerDocument.body:We(t)&&Ye(t)?t:ct(t)}function lt(e,t){var n;void 0===t&&(t=[]);var r=ct(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Fe(r),i=o?[a].concat(a.visualViewport||[],Ye(r)?r:[]):r,u=t.concat(i);return o?u:u.concat(lt(i))}function st(e,t,n){return"viewport"===t?me(function(e,t){var n=Fe(e),r=et(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,u=0,c=0;if(o){a=o.width,i=o.height;var l=$e();(l||!l&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:u,y:c}}(e,n)):He(t)?function(e,t){var n=Je(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):me(function(e){var t,n=et(e),r=tt(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Ze(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ze(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+nt(e),c=-r.scrollTop;return"rtl"===Ue(o||n).direction&&(u+=Ze(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:u,y:c}}(et(e)))}function ft(e){var t=lt(e),n=["absolute","fixed"].includes(Ue(e).position)&&We(e)?it(e):e;return He(n)?t.filter((function(e){return He(e)&&function(e,t){var n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ke(n)){var r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,n)&&"body"!==Be(e)})):[]}var dt={getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,a="clippingAncestors"===n?ft(t):[].concat(n),i=[].concat(Object(p.a)(a),[r]),u=i[0],c=i.reduce((function(e,n){var r=st(t,n,o);return e.top=Ze(r.top,e.top),e.right=Qe(r.right,e.right),e.bottom=Qe(r.bottom,e.bottom),e.left=Ze(r.left,e.left),e}),st(t,u,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,a=We(n),i=et(n);if(n===i)return t;var u={scrollLeft:0,scrollTop:0},c={x:0,y:0};if((a||!a&&"fixed"!==r)&&(("body"!==Be(n)||Ye(i))&&(u=tt(n)),We(n))){var l=Je(n,!0);c.x=l.x+n.clientLeft,c.y=l.y+n.clientTop}return Object(o.a)(Object(o.a)({},t),{},{x:t.x-u.scrollLeft+c.x,y:t.y-u.scrollTop+c.y})},isElement:He,getDimensions:ut,getOffsetParent:it,getDocumentElement:et,getElementRects:function(e){var t=e.reference,n=e.floating,r=e.strategy;return{reference:rt(t,it(n),r),floating:Object(o.a)(Object(o.a)({},ut(n)),{},{x:0,y:0})}},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return"rtl"===Ue(e).direction}};function pt(e,t,n,r){void 0===r&&(r={});var o=r,a=o.ancestorScroll,i=void 0===a||a,u=o.ancestorResize,c=void 0===u||u,l=o.elementResize,s=void 0===l||l,f=o.animationFrame,d=void 0!==f&&f,v=i&&!d,h=c&&!d,m=v||h?[].concat(Object(p.a)(He(e)?lt(e):[]),Object(p.a)(lt(t))):[];m.forEach((function(e){v&&e.addEventListener("scroll",n,{passive:!0}),h&&e.addEventListener("resize",n)}));var b,y=null;if(s){var g=!0;y=new ResizeObserver((function(){g||n(),g=!1})),He(e)&&!d&&y.observe(e),y.observe(t)}var w=d?Je(e):null;return d&&function t(){var r=Je(e);!w||r.x===w.x&&r.y===w.y&&r.width===w.width&&r.height===w.height||n();w=r,b=requestAnimationFrame(t)}(),n(),function(){var e;m.forEach((function(e){v&&e.removeEventListener("scroll",n),h&&e.removeEventListener("resize",n)})),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(b)}}var vt="undefined"!==typeof document?c.useLayoutEffect:c.useEffect;function ht(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;var n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!ht(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){var a=o[r];if(("_owner"!==a||!e.$$typeof)&&!ht(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function mt(e){var t=void 0===e?{}:e,n=t.middleware,r=t.placement,a=void 0===r?"bottom":r,u=t.strategy,l=void 0===u?"absolute":u,s=t.whileElementsMounted,f=c.useRef(null),d=c.useRef(null),p=function(e){var t=c.useRef(e);return vt((function(){t.current=e})),t}(s),v=c.useRef(null),h=c.useState({x:null,y:null,strategy:l,placement:a,middlewareData:{}}),m=Object(i.a)(h,2),y=m[0],g=m[1],w=c.useState(n),O=Object(i.a)(w,2),_=O[0],j=O[1];ht(null==_?void 0:_.map((function(e){return e.options})),null==n?void 0:n.map((function(e){return e.options})))||j(n);var E=c.useCallback((function(){f.current&&d.current&&function(e,t,n){return ve(e,t,Object(o.a)({platform:dt},n))}(f.current,d.current,{middleware:_,placement:a,strategy:l}).then((function(e){S.current&&b.flushSync((function(){g(e)}))}))}),[_,a,l]);vt((function(){S.current&&E()}),[E]);var S=c.useRef(!1);vt((function(){return S.current=!0,function(){S.current=!1}}),[]);var k=c.useCallback((function(){if("function"===typeof v.current&&(v.current(),v.current=null),f.current&&d.current)if(p.current){var e=p.current(f.current,d.current,E);v.current=e}else E()}),[E,p]),x=c.useCallback((function(e){f.current=e,k()}),[k]),C=c.useCallback((function(e){d.current=e,k()}),[k]),T=c.useMemo((function(){return{reference:f,floating:d}}),[]);return c.useMemo((function(){return Object(o.a)(Object(o.a)({},y),{},{update:E,refs:T,reference:x,floating:C})}),[y,E,T,x,C])}var bt=function(e){var t=e.element,n=e.padding;return{name:"arrow",options:e,fn:function(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?_e({element:t.current,padding:n}).fn(e):{}:t?_e({element:t,padding:n}).fn(e):{};var r}}};var yt=["__scopePopper","virtualRef"],gt=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],wt="Popper",Ot=h(wt),_t=Object(i.a)(Ot,2),jt=_t[0],Et=_t[1],St=jt(wt),kt=Object(i.a)(St,2),xt=kt[0],Ct=kt[1],Tt=function(e){var t=e.__scopePopper,n=e.children,r=Object(c.useState)(null),o=Object(i.a)(r,2),a=o[0],u=o[1];return Object(c.createElement)(xt,{scope:t,anchor:a,onAnchorChange:u},n)},Rt="PopperAnchor",Pt=Object(c.forwardRef)((function(e,t){var n=e.__scopePopper,r=e.virtualRef,o=Object(a.a)(e,yt),i=Ct(Rt,n),l=Object(c.useRef)(null),s=d(t,l);return Object(c.useEffect)((function(){i.onAnchorChange((null===r||void 0===r?void 0:r.current)||l.current)})),r?null:Object(c.createElement)(k.div,Object(u.a)({},o,{ref:s}))})),At="PopperContent",Lt=jt(At),Nt=Object(i.a)(Lt,2),Mt=Nt[0],Dt=(Nt[1],jt(At,{hasParent:!1,positionUpdateFns:new Set})),It=Object(i.a)(Dt,2),zt=It[0],Ft=It[1],Ut=Object(c.forwardRef)((function(e,t){var n,u,l,s,f,p,v,h,m,b,y=e.__scopePopper,g=e.side,w=void 0===g?"bottom":g,O=e.sideOffset,_=void 0===O?0:O,j=e.align,E=void 0===j?"center":j,S=e.alignOffset,x=void 0===S?0:S,C=e.arrowPadding,T=void 0===C?0:C,R=e.collisionBoundary,P=void 0===R?[]:R,A=e.collisionPadding,L=void 0===A?0:A,N=e.sticky,M=void 0===N?"partial":N,D=e.hideWhenDetached,I=void 0!==D&&D,z=e.avoidCollisions,F=void 0===z||z,U=Object(a.a)(e,gt),B=Ct(At,y),V=Object(c.useState)(null),W=Object(i.a)(V,2),H=W[0],K=W[1],Y=d(t,(function(e){return K(e)})),X=Object(c.useState)(null),q=Object(i.a)(X,2),$=q[0],Q=q[1],Z=function(e){var t=Object(c.useState)(void 0),n=Object(i.a)(t,2),r=n[0],o=n[1];return J((function(){if(e){o({width:e.offsetWidth,height:e.offsetHeight});var t=new ResizeObserver((function(t){if(Array.isArray(t)&&t.length){var n,r,a=t[0];if("borderBoxSize"in a){var i=a.borderBoxSize,u=Array.isArray(i)?i[0]:i;n=u.inlineSize,r=u.blockSize}else n=e.offsetWidth,r=e.offsetHeight;o({width:n,height:r})}}));return t.observe(e,{box:"border-box"}),function(){return t.unobserve(e)}}o(void 0)}),[e]),r}($),G=null!==(n=null===Z||void 0===Z?void 0:Z.width)&&void 0!==n?n:0,ee=null!==(u=null===Z||void 0===Z?void 0:Z.height)&&void 0!==u?u:0,te=w+("center"!==E?"-"+E:""),ne="number"===typeof L?L:Object(o.a)({top:0,right:0,bottom:0,left:0},L),re=Array.isArray(P)?P:[P],ie=re.length>0,ue={padding:ne,boundary:re.filter(Vt),altBoundary:ie},ce=mt({strategy:"fixed",placement:te,whileElementsMounted:pt,middleware:[(b={mainAxis:_+ee,alignmentAxis:x},void 0===b&&(b=0),{name:"offset",options:b,fn:function(e){return Object(ae.a)(oe.a.mark((function t(){var n,r,o;return oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.x,r=e.y,t.next=3,Ne(e,b);case 3:return o=t.sent,t.abrupt("return",{x:n+o.x,y:r+o.y,data:o});case 5:case"end":return t.stop()}}),t)})))()}}),F?Ie(Object(o.a)({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(void 0===m&&(m={}),{options:m,fn:function(e){var t,n=e.x,a=e.y,i=e.placement,u=e.rects,c=e.middlewareData,l=m,s=l.offset,f=void 0===s?0:s,d=l.mainAxis,p=void 0===d||d,v=l.crossAxis,h=void 0===v||v,b={x:n,y:a},y=fe(i),g=De(y),w=b[y],O=b[g],_="function"===typeof f?f(Object(o.a)(Object(o.a)({},u),{},{placement:i})):f,j="number"===typeof _?{mainAxis:_,crossAxis:0}:Object(o.a)({mainAxis:0,crossAxis:0},_);if(p){var E="y"===y?"height":"width",S=u.reference[y]-u.floating[E]+j.mainAxis,k=u.reference[y]+u.reference[E]-j.mainAxis;w<S?w=S:w>k&&(w=k)}if(h){var x,C,T,R,P="y"===y?"width":"height",A=["top","left"].includes(le(i)),L=u.reference[g]-u.floating[P]+(A&&null!=(x=null==(C=c.offset)?void 0:C[g])?x:0)+(A?0:j.crossAxis),N=u.reference[g]+u.reference[P]+(A?0:null!=(T=null==(R=c.offset)?void 0:R[g])?T:0)-(A?j.crossAxis:0);O<L?O=L:O>N&&(O=N)}return t={},Object(r.a)(t,y,w),Object(r.a)(t,g,O),t}}):void 0},ue)):void 0,$?bt({element:$,padding:T}):void 0,F?Re(Object(o.a)({},ue)):void 0,Wt({arrowWidth:G,arrowHeight:ee}),I?Le({strategy:"referenceHidden"}):void 0].filter(Bt)}),se=ce.reference,de=ce.floating,pe=ce.strategy,ve=ce.x,he=ce.y,me=ce.placement,be=ce.middlewareData,ye=ce.update;J((function(){se(B.anchor)}),[se,B.anchor]);var ge=null!==ve&&null!==he,we=Ht(me),Oe=Object(i.a)(we,2),_e=Oe[0],je=Oe[1],Ee=null===(l=be.arrow)||void 0===l?void 0:l.x,Se=null===(s=be.arrow)||void 0===s?void 0:s.y,ke=0!==(null===(f=be.arrow)||void 0===f?void 0:f.centerOffset),xe=Object(c.useState)(),Ce=Object(i.a)(xe,2),Te=Ce[0],Pe=Ce[1];J((function(){H&&Pe(window.getComputedStyle(H).zIndex)}),[H]);var Ae=Ft(At,y),Me=Ae.hasParent,ze=Ae.positionUpdateFns,Fe=!Me;Object(c.useLayoutEffect)((function(){if(!Fe)return ze.add(ye),function(){ze.delete(ye)}}),[Fe,ze,ye]),Object(c.useLayoutEffect)((function(){Fe&&ge&&Array.from(ze).reverse().forEach((function(e){return requestAnimationFrame(e)}))}),[Fe,ge,ze]);var Ue=Object(o.a)(Object(o.a)({"data-side":_e,"data-align":je},U),{},{ref:Y,style:Object(o.a)(Object(o.a)({},U.style),{},{animation:ge?void 0:"none",opacity:null!==(p=be.hide)&&void 0!==p&&p.referenceHidden?0:void 0})});return Object(c.createElement)("div",{ref:de,"data-radix-popper-content-wrapper":"",style:Object(r.a)({position:pe,left:0,top:0,transform:ge?"translate3d(".concat(Math.round(ve),"px, ").concat(Math.round(he),"px, 0)"):"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Te},"--radix-popper-transform-origin",[null===(v=be.transformOrigin)||void 0===v?void 0:v.x,null===(h=be.transformOrigin)||void 0===h?void 0:h.y].join(" "))},Object(c.createElement)(Mt,{scope:y,placedSide:_e,onArrowChange:Q,arrowX:Ee,arrowY:Se,shouldHideArrow:ke},Fe?Object(c.createElement)(zt,{scope:y,hasParent:!0,positionUpdateFns:ze},Object(c.createElement)(k.div,Ue)):Object(c.createElement)(k.div,Ue)))}));function Bt(e){return void 0!==e}function Vt(e){return null!==e}var Wt=function(e){return{name:"transformOrigin",options:e,fn:function(t){var n,r,o,a,u,c=t.placement,l=t.rects,s=t.middlewareData,f=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=f?0:e.arrowWidth,p=f?0:e.arrowHeight,v=Ht(c),h=Object(i.a)(v,2),m=h[0],b={start:"0%",center:"50%",end:"100%"}[h[1]],y=(null!==(r=null===(o=s.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(u=s.arrow)||void 0===u?void 0:u.y)&&void 0!==a?a:0)+p/2,w="",O="";return"bottom"===m?(w=f?b:"".concat(y,"px"),O="".concat(-p,"px")):"top"===m?(w=f?b:"".concat(y,"px"),O="".concat(l.floating.height+p,"px")):"right"===m?(w="".concat(-p,"px"),O=f?b:"".concat(g,"px")):"left"===m&&(w="".concat(l.floating.width+p,"px"),O=f?b:"".concat(g,"px")),{data:{x:w,y:O}}}}};function Ht(e){var t=e.split("-"),n=Object(i.a)(t,2),r=n[0],o=n[1];return[r,void 0===o?"center":o]}var Kt=Tt,Yt=Pt,Xt=Ut,qt=["container"],$t=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,i=Object(a.a)(e,qt);return o?y.a.createPortal(Object(c.createElement)(k.div,Object(u.a)({},i,{ref:t})),o):null}));var Qt=function(e){var t=e.present,n=e.children,r=function(e){var t=Object(c.useState)(),n=Object(i.a)(t,2),r=n[0],o=n[1],a=Object(c.useRef)({}),u=Object(c.useRef)(e),l=Object(c.useRef)("none"),s=function(e,t){return Object(c.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(i.a)(s,2),d=f[0],p=f[1];return Object(c.useEffect)((function(){var e=Zt(a.current);l.current="mounted"===d?e:"none"}),[d]),J((function(){var t=a.current,n=u.current;if(n!==e){var r=l.current,o=Zt(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")}u.current=e}}),[e,p]),J((function(){if(r){var e=function(e){var t=Zt(a.current).includes(e.animationName);e.target===r&&t&&Object(b.flushSync)((function(){return p("ANIMATION_END")}))},t=function(e){e.target===r&&(l.current=Zt(a.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(c.useCallback)((function(e){e&&(a.current=getComputedStyle(e)),o(e)}),[])}}(t),o="function"===typeof n?n({present:r.isPresent}):c.Children.only(n),a=d(r.ref,o.ref);return"function"===typeof n||r.isPresent?Object(c.cloneElement)(o,{ref:a}):null};function Zt(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}function Gt(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(i.a)(r,1)[0],a=Object(c.useRef)(o),u=x(n);return Object(c.useEffect)((function(){a.current!==o&&(u(o),a.current=o)}),[o,a,u]),r}({defaultProp:n,onChange:o}),u=Object(i.a)(a,2),l=u[0],s=u[1],f=void 0!==t,d=f?t:l,p=x(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])]}Qt.displayName="Presence";var Jt=n(26),en=n(21),tn="right-scroll-bar-position",nn="width-before-scroll-bar",rn=n(83),on=n(76),an=Object(on.a)(),un=function(){},cn=c.forwardRef((function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),o=r[0],a=r[1],i=e.forwardProps,u=e.children,l=e.className,s=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,v=e.noIsolation,h=e.inert,m=e.allowPinchZoom,b=e.as,y=void 0===b?"div":b,g=Object(en.b)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,O=Object(rn.a)([n,t]),_=Object(en.a)(Object(en.a)({},g),o);return c.createElement(c.Fragment,null,f&&c.createElement(w,{sideCar:an,removeScrollBar:s,shards:d,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?c.cloneElement(c.Children.only(u),Object(en.a)(Object(en.a)({},_),{ref:O})):c.createElement(y,Object(en.a)({},_,{className:l,ref:O}),u))}));cn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cn.classNames={fullWidth:nn,zeroRight:tn};var ln=n(75),sn=n(41);var fn=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Object(sn.a)();return t&&e.setAttribute("nonce",t),e}())&&(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)}}},dn=function(){var e=function(){var e=fn();return function(t,n){c.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},pn={left:0,top:0,right:0,gap:0},vn=function(e){return parseInt(e||"",10)||0},hn=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return pn;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[vn(n),vn(r),vn(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])}},mn=dn(),bn=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tn," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(nn," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(tn," .").concat(tn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(nn," .").concat(nn," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},yn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=c.useMemo((function(){return hn(o)}),[o]);return c.createElement(mn,{styles:bn(a,!t,o,n?"":"!important")})},gn=!1;if("undefined"!==typeof window)try{var wn=Object.defineProperty({},"passive",{get:function(){return gn=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch(fr){gn=!1}var On=!!gn&&{passive:!1},_n=function(e,t){var n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),jn(e,n)){var r=En(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},jn=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)},En=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},Sn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kn=function(e){return[e.deltaX,e.deltaY]},xn=function(e){return e&&"current"in e?e.current:e},Cn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Tn=0,Rn=[];var Pn=Object(ln.a)(an,(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Tn++)[0],a=c.useState((function(){return dn()}))[0],i=c.useRef(e);c.useEffect((function(){i.current=e}),[e]),c.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Object(en.c)([e.lockRef.current],(e.shards||[]).map(xn),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=c.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=Sn(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-a[0],l="deltaY"in e?e.deltaY:u[1]-a[1],s=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=_n(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=_n(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(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,c=t.contains(u),l=!1,s=i>0,f=0,d=0;do{var p=En(e,u),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&jn(e,u)&&(f+=h,d+=v),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(s&&(o&&0===f||!o&&i>f)||!s&&(o&&0===d||!o&&-i>d))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)}),[]),l=c.useCallback((function(e){var n=e;if(Rn.length&&Rn[Rn.length-1]===a){var r="deltaY"in n?kn(n):Sn(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 c=(i.current.shards||[]).map(xn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?u(n,c[0]):!i.current.noIsolation)&&n.preventDefault()}}}),[]),s=c.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=c.useCallback((function(e){n.current=Sn(e),r.current=void 0}),[]),d=c.useCallback((function(t){s(t.type,kn(t),t.target,u(t,e.lockRef.current))}),[]),p=c.useCallback((function(t){s(t.type,Sn(t),t.target,u(t,e.lockRef.current))}),[]);c.useEffect((function(){return Rn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,On),document.addEventListener("touchmove",l,On),document.addEventListener("touchstart",f,On),function(){Rn=Rn.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,On),document.removeEventListener("touchmove",l,On),document.removeEventListener("touchstart",f,On)}}),[]);var v=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Cn(o)}):null,v?c.createElement(yn,{gapMode:"margin"}):null)})),An=c.forwardRef((function(e,t){return c.createElement(cn,Object(en.a)({},e,{ref:t,sideCar:Pn}))}));An.classNames=cn.classNames;var Ln=An,Nn=["__scopePopover"],Mn=["forceMount"],Dn=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],In="Popover",zn=h(In,[Et]),Fn=Object(i.a)(zn,2),Un=Fn[0],Bn=(Fn[1],Et()),Vn=Un(In),Wn=Object(i.a)(Vn,2),Hn=Wn[0],Kn=Wn[1],Yn=function(e){var t=e.__scopePopover,n=e.children,r=e.open,o=e.defaultOpen,a=e.onOpenChange,u=e.modal,l=void 0!==u&&u,s=Bn(t),f=Object(c.useRef)(null),d=Object(c.useState)(!1),p=Object(i.a)(d,2),v=p[0],h=p[1],m=Gt({prop:r,defaultProp:o,onChange:a}),b=Object(i.a)(m,2),y=b[0],g=void 0!==y&&y,w=b[1];return Object(c.createElement)(Kt,s,Object(c.createElement)(Hn,{scope:t,contentId:ne(),triggerRef:f,open:g,onOpenChange:w,onOpenToggle:Object(c.useCallback)((function(){return w((function(e){return!e}))}),[w]),hasCustomAnchor:v,onCustomAnchorAdd:Object(c.useCallback)((function(){return h(!0)}),[]),onCustomAnchorRemove:Object(c.useCallback)((function(){return h(!1)}),[]),modal:l},n))},Xn="PopoverTrigger",qn=Object(c.forwardRef)((function(e,t){var n=e.__scopePopover,r=Object(a.a)(e,Nn),o=Kn(Xn,n),i=Bn(n),s=d(t,o.triggerRef),f=Object(c.createElement)(k.button,Object(u.a)({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ir(o.open)},r,{ref:s,onClick:l(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?f:Object(c.createElement)(Yt,Object(u.a)({asChild:!0},i),f)})),$n="PopoverPortal",Qn=Un($n,{forceMount:void 0}),Zn=Object(i.a)(Qn,2),Gn=Zn[0],Jn=Zn[1],er=function(e){var t=e.__scopePopover,n=e.forceMount,r=e.children,o=e.container,a=Kn($n,t);return Object(c.createElement)(Gn,{scope:t,forceMount:n},Object(c.createElement)(Qt,{present:n||a.open},Object(c.createElement)($t,{asChild:!0,container:o},r)))},tr="PopoverContent",nr=Object(c.forwardRef)((function(e,t){var n=Jn(tr,e.__scopePopover),r=e.forceMount,o=void 0===r?n.forceMount:r,i=Object(a.a)(e,Mn),l=Kn(tr,e.__scopePopover);return Object(c.createElement)(Qt,{present:o||l.open},l.modal?Object(c.createElement)(rr,Object(u.a)({},i,{ref:t})):Object(c.createElement)(or,Object(u.a)({},i,{ref:t})))})),rr=Object(c.forwardRef)((function(e,t){var n=Kn(tr,e.__scopePopover),r=Object(c.useRef)(null),o=d(t,r),a=Object(c.useRef)(!1);return Object(c.useEffect)((function(){var e=r.current;if(e)return Object(Jt.a)(e)}),[]),Object(c.createElement)(Ln,{as:O,allowPinchZoom:!0},Object(c.createElement)(ar,Object(u.a)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,(function(e){var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:l(e.onPointerDownOutside,(function(e){var t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:l(e.onFocusOutside,(function(e){return e.preventDefault()}),{checkForDefaultPrevented:!1})})))})),or=Object(c.forwardRef)((function(e,t){var n=Kn(tr,e.__scopePopover),r=Object(c.useRef)(!1);return Object(c.createElement)(ar,Object(u.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()}}))})),ar=Object(c.forwardRef)((function(e,t){var n=e.__scopePopover,i=e.trapFocus,l=e.onOpenAutoFocus,s=e.onCloseAutoFocus,f=e.disableOutsidePointerEvents,d=e.onEscapeKeyDown,p=e.onPointerDownOutside,v=e.onFocusOutside,h=e.onInteractOutside,m=Object(a.a)(e,Dn),b=Kn(tr,n),y=Bn(n);return z(),Object(c.createElement)(K,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:s},Object(c.createElement)(N,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:h,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:v,onDismiss:function(){return b.onOpenChange(!1)}},Object(c.createElement)(Xt,Object(u.a)({"data-state":ir(b.open),role:"dialog",id:b.contentId},y,m,{ref:t,style:Object(o.a)(Object(o.a)({},m.style),{},Object(r.a)({},"--radix-popover-content-transform-origin","var(--radix-popper-transform-origin)"))}))))}));function ir(e){return e?"open":"closed"}var ur=Yn,cr=qn,lr=er,sr=nr},function(e,t,n){"use strict";n.d(t,"b",(function(){return re})),n.d(t,"d",(function(){return oe})),n.d(t,"c",(function(){return ae})),n.d(t,"a",(function(){return ie}));var r=n(2),o=n(8),a=n(4),i=n(3),u=n(44),c=n(19),l=n(27),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,p=n(14),v=n(42),h=n(43),m=n(47),b=0;var y=n(15),g=n(11),w=n(5),O=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"],_=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});function j(){var e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function E(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 S=s.forwardRef((function(e,t){var n=e.disableOutsidePointerEvents,u=void 0!==n&&n,l=e.onEscapeKeyDown,v=e.onPointerDownOutside,h=e.onFocusOutside,S=e.onInteractOutside,k=e.onDismiss,x=Object(a.a)(e,O),C=s.useContext(_),T=s.useState(null),R=Object(i.a)(T,2),P=R[0],A=R[1],L=s.useState({}),N=Object(i.a)(L,2)[1],M=Object(y.b)(t,(function(e){return A(e)})),D=Array.from(C.layers),I=Object(o.a)(C.layersWithOutsidePointerEventsDisabled).slice(-1),z=Object(i.a)(I,1)[0],F=D.indexOf(z),U=P?D.indexOf(P):-1,B=C.layersWithOutsidePointerEventsDisabled.size>0,V=U>=F,W=function(e){var t=f((function(e){var t=e.target,n=Object(o.a)(C.branches).some((function(e){return e.contains(t)}));V&&!n&&(null==v||v(e),null==S||S(e),e.defaultPrevented||null==k||k())})),n=s.useRef(!1);return s.useEffect((function(){var e=function(e){e.target&&!n.current&&E("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}}}(),H=function(e){var t=f((function(e){var t=e.target;Object(o.a)(C.branches).some((function(e){return e.contains(t)}))||(null==h||h(e),null==S||S(e),e.defaultPrevented||null==k||k())})),n=s.useRef(!1);return s.useEffect((function(){var e=function(e){e.target&&!n.current&&E("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 Object(m.a)((function(e){U===C.layers.size-1&&(null==l||l(e),e.defaultPrevented||null==k||k())})),function(e){var t=e.disabled,n=s.useRef(!1);Object(c.a)((function(){if(t){var e=function(){0===--b&&(document.body.style.pointerEvents=d)},r=function(e){n.current="mouse"!==e.pointerType};return 0===b&&(d=document.body.style.pointerEvents),document.body.style.pointerEvents="none",b++,document.addEventListener("pointerup",r),function(){n.current?document.addEventListener("click",e,{once:!0}):e(),document.removeEventListener("pointerup",r)}}}),[t])}({disabled:u}),s.useEffect((function(){P&&(u&&C.layersWithOutsidePointerEventsDisabled.add(P),C.layers.add(P),j())}),[P,u,C]),s.useEffect((function(){return function(){P&&(C.layers.delete(P),C.layersWithOutsidePointerEventsDisabled.delete(P),j())}}),[P,C]),s.useEffect((function(){var e=function(){return N({})};return document.addEventListener("dismissableLayer.update",e),function(){return document.removeEventListener("dismissableLayer.update",e)}}),[]),s.createElement(p.a.div,Object(w.a)({},x,{ref:M,style:Object(r.a)({pointerEvents:B?V?"auto":"none":void 0},e.style),onFocusCapture:Object(g.a)(e.onFocusCapture,H.onFocusCapture),onBlurCapture:Object(g.a)(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:Object(g.a)(e.onPointerDownCapture,W.onPointerDownCapture)}))})),k=s.forwardRef((function(e,t){var n=s.useContext(_),r=s.useRef(null),o=Object(y.b)(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(p.a.div,Object(w.a)({},e,{ref:o}))})),x=n(22),C=n(12),T=["__scopeToast","hotkey","label"],R=["forceMount","open","defaultOpen","onOpenChange"],P=["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"],A=["__scopeToast"],L=["__scopeToast"],N=["altText"],M=["__scopeToast"],D=Object(x.b)("Toast"),I=Object(i.a)(D,2),z=I[0],F=(I[1],z("ToastProvider")),U=Object(i.a)(F,2),B=U[0],V=U[1],W=["F8"],H=s.forwardRef((function(e,t){var n=e.__scopeToast,r=e.hotkey,u=void 0===r?W:r,c=e.label,l=void 0===c?"Notifications ({hotkey})":c,f=Object(a.a)(e,T),d=V("ToastViewport",n),v=s.useRef(null),h=s.useRef(null),m=Object(y.b)(t,h,d.onViewportChange),b=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=h.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[u]),s.useEffect((function(){var e=v.current,t=h.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=h.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(k,{ref:v,role:"region","aria-label":l.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:d.toastCount>0?void 0:"none"}},s.createElement(p.a.ol,Object(w.a)({tabIndex:-1},f,{ref:m})))})),K=s.forwardRef((function(e,t){var n=e.forceMount,r=e.open,o=e.defaultOpen,u=e.onOpenChange,c=Object(a.a)(e,R),f=Object(l.a)({prop:r,defaultProp:o,onChange:u}),d=Object(i.a)(f,2),p=d[0],h=void 0===p||p,m=d[1];return s.createElement(v.a,{present:n||h},s.createElement(Q,Object(w.a)({open:h},c,{ref:t,onClose:function(){return m(!1)},onSwipeStart:Object(g.a)(e.onSwipeStart,(function(e){e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Object(g.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(g.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(g.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)}))})))})),Y=z("Toast",{isInteractive:!1,onClose:function(){}}),X=Object(i.a)(Y,2),q=X[0],$=X[1],Q=s.forwardRef((function(e,t){var n=e.__scopeToast,o=e.type,i=void 0===o?"foreground":o,u=e.duration,c=e.open,l=e.onClose,d=e.onEscapeKeyDown,v=e.onSwipeStart,h=e.onSwipeMove,m=e.onSwipeCancel,b=e.onSwipeEnd,O=Object(a.a)(e,P),_=V("Toast",n),j=s.useRef(null),E=Object(y.b)(t,j),k=s.useRef(null),x=s.useRef(null),T=u||_.duration,R=s.useRef(0),A=s.useRef(T),L=s.useRef(0),N=_.onToastAdd,M=_.onToastRemove,D=f((function(){var e,t;(null===(e=j.current)||void 0===e?void 0:e.contains(document.activeElement))&&(null===(t=_.viewport)||void 0===t||t.focus()),l()})),I=s.useCallback((function(e){e&&e!==1/0&&(window.clearTimeout(L.current),R.current=(new Date).getTime(),L.current=window.setTimeout(D,e))}),[D]);return s.useEffect((function(){var e=_.viewport;if(e){var t=function(){I(A.current)},n=function(){var e=(new Date).getTime()-R.current;A.current=A.current-e,window.clearTimeout(L.current)};return e.addEventListener("toast.viewportPause",n),e.addEventListener("toast.viewportResume",t),function(){e.removeEventListener("toast.viewportPause",n),e.removeEventListener("toast.viewportResume",t)}}}),[_.viewport,T,I]),s.useEffect((function(){c&&!_.isClosePausedRef.current&&I(T)}),[c,T,_.isClosePausedRef,I]),s.useEffect((function(){return N(),function(){return M()}}),[N,M]),_.viewport?s.createElement(s.Fragment,null,s.createElement(Z,{__scopeToast:n,role:"status","aria-live":"foreground"===i?"assertive":"polite","aria-atomic":!0},e.children),s.createElement(q,{scope:n,isInteractive:!0,onClose:D},C.createPortal(s.createElement(S,{asChild:!0,onEscapeKeyDown:Object(g.a)(d,(function(){_.isFocusedToastEscapeKeyDownRef.current||D(),_.isFocusedToastEscapeKeyDownRef.current=!1}))},s.createElement(p.a.li,Object(w.a)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":_.swipeDirection},O,{ref:E,style:Object(r.a)({userSelect:"none",touchAction:"none"},e.style),onKeyDown:Object(g.a)(e.onKeyDown,(function(e){"Escape"===e.key&&(null==d||d(e.nativeEvent),e.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,D()))})),onPointerDown:Object(g.a)(e.onPointerDown,(function(e){0===e.button&&(k.current={x:e.clientX,y:e.clientY})})),onPointerMove:Object(g.a)(e.onPointerMove,(function(e){if(k.current){var t=e.clientX-k.current.x,n=e.clientY-k.current.y,r=Boolean(x.current),o=["left","right"].includes(_.swipeDirection),a=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,u=o?0:a(0,n),c="touch"===e.pointerType?10:2,l={x:i,y:u},s={originalEvent:e,delta:l};r?(x.current=l,te("toast.swipeMove",h,s)):ne(l,_.swipeDirection,c)?(x.current=l,te("toast.swipeStart",v,s),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(k.current=null)}})),onPointerUp:Object(g.a)(e.onPointerUp,(function(e){var t=x.current;if(e.target.releasePointerCapture(e.pointerId),x.current=null,k.current=null,t){var n=e.currentTarget,r={originalEvent:e,delta:t};ne(t,_.swipeDirection,_.swipeThreshold)?te("toast.swipeEnd",b,r):te("toast.swipeCancel",m,r),n.addEventListener("click",(function(e){return e.preventDefault()}),{once:!0})}}))}))),_.viewport))):null}));Q.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 Z=function(e){var t=e.__scopeToast,n=Object(a.a)(e,A),r=V("Toast",t),o=s.useState(!1),l=Object(i.a)(o,2),d=l[0],p=l[1],v=s.useState(!1),m=Object(i.a)(v,2),b=m[0],y=m[1];return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=f(e);Object(c.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 y(!0)}),1e3);return function(){return window.clearTimeout(e)}}),[]),b?null:s.createElement(h.b,{asChild:!0},s.createElement(u.b,{asChild:!0},s.createElement("div",n,d&&s.createElement(s.Fragment,null,r.label," ",e.children))))},G=s.forwardRef((function(e,t){e.__scopeToast;var n=Object(a.a)(e,L);return s.createElement(p.a.div,Object(w.a)({},n,{ref:t}))})),J=s.forwardRef((function(e,t){var n=e.altText,r=Object(a.a)(e,N),o=$("ToastAction",e.__scopeToast);return n?o.isInteractive?s.createElement(ee,Object(w.a)({},r,{ref:t})):s.createElement("span",null,n):null}));J.propTypes={altText:function(e){if(!e.altText)throw new Error("Missing prop `altText` expected on `ToastAction`");return null}};var ee=s.forwardRef((function(e,t){var n=e.__scopeToast,r=Object(a.a)(e,M),o=$("ToastClose",n);return o.isInteractive?s.createElement(p.a.button,Object(w.a)({type:"button"},r,{ref:t,onClick:Object(g.a)(e.onClick,o.onClose)})):null}));function te(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 ne=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},re=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,c=void 0===u?"right":u,l=e.swipeThreshold,f=void 0===l?50:l,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),_=s.useRef(!1);return s.createElement(B,{scope:t,label:r,duration:a,swipeDirection:c,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:_},d)},oe=H,ae=K,ie=G},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";var r;n.d(t,"a",(function(){return o}));var o=function(){return r||n.nc}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),o=n(19),a=n(15),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],l=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=c(l.current);f.current="mounted"===v?e:"none"}),[v]),Object(o.a)((function(){var t=l.current,n=s.current;if(n!==e){var r=f.current,o=c(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=c(l.current).includes(e.animationName);e.target===a&&t&&h("ANIMATION_END")},t=function(e){e.target===a&&(f.current=c(l.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&&(l.current=getComputedStyle(e)),u(e)}),[])}}(t),l="function"==typeof n?n({present:u.isPresent}):i.Children.only(n),s=Object(a.b)(u.ref,l.ref);return"function"==typeof n||u.isPresent?i.cloneElement(l,{ref:s}):null};function c(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return h}));var r=n(2),o=n(3),a=n(4),i=n(14),u=n(19),c=n(12),l=n.n(c),s=n(0),f=n(5),d=["containerRef","style"],p=["container"],v=s.forwardRef((function(e,t){var n,c,p=e.containerRef,v=e.style,h=Object(a.a)(e,d),m=null!==(n=null==p?void 0:p.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(c=globalThis.document)||void 0===c?void 0:c.body,b=s.useState({}),y=Object(o.a)(b,2)[1];return Object(u.a)((function(){y({})}),[]),m?l.a.createPortal(s.createElement(i.a.div,Object(f.a)({"data-radix-portal":""},h,{ref:t,style:m===document.body?Object(r.a)({position:"absolute",top:0,left:0,zIndex:2147483647},v):void 0})),m):null})),h=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,u=Object(a.a)(e,p);return o?l.a.createPortal(s.createElement(i.a.div,Object(f.a)({},u,{ref:t})),o):null}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(2),o=n(14),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)}))})),c=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r=n(2),o=n(8),a=n(3),i=n(4),u=n(5),c=n(0),l=n(11),s=n(7),f=n(12),d=n(20),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(c.forwardRef)((function(e,n){var r=e.asChild,o=Object(i.a)(e,p),a=r?d.a:t;return Object(c.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(c.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 _(){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 j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(c.useCallback)(_.apply(void 0,t),t)}g(w,"composeRefs",(function(){return _})),g(w,"useComposedRefs",(function(){return j}));var E,S,k,x;E={},S="useLayoutEffect",k=function(){return C},Object.defineProperty(E,S,{get:k,set:x,enumerable:!0,configurable:!0});var C=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?c.useLayoutEffect:function(){};!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useBodyPointerEvents",(function(){return P}));var T,R=0;function P(e){var t=e.disabled,n=Object(c.useRef)(!1);C((function(){if(t){var e=function(){0===--R&&(document.body.style.pointerEvents=T)},r=function(e){n.current="mouse"!==e.pointerType};return 0===R&&(T=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 A=n(17);function L(e){var t=Object(A.a)(e);Object(c.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 N=["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 B})),M(D,"DismissableLayerBranch",(function(){return V})),M(D,"Root",(function(){return K})),M(D,"Branch",(function(){return Y}));var I="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",F="dismissableLayer.focusOutside",U=Object(c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B=Object(c.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,N),y=Object(c.useContext)(U),g=Object(c.useState)(null),w=Object(a.a)(g,2),O=w[0],_=w[1],E=Object(c.useState)({}),S=Object(a.a)(E,2)[1],k=j(t,(function(e){return _(e)})),x=Array.from(y.layers),C=Object(o.a)(y.layersWithOutsidePointerEventsDisabled).slice(-1),T=Object(a.a)(C,1)[0],R=x.indexOf(T),M=O?x.indexOf(O):-1,D=y.layersWithOutsidePointerEventsDisabled.size>0,B=M>=R,V=function(e){var t=Object(A.a)(e),n=Object(c.useRef)(!1);return Object(c.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)}));B&&!n&&(null===d||void 0===d||d(e),null===v||void 0===v||v(e),e.defaultPrevented||null===h||void 0===h||h())})),K=function(e){var t=Object(A.a)(e),n=Object(c.useRef)(!1);return Object(c.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(c.useEffect)((function(){O&&(s&&y.layersWithOutsidePointerEventsDisabled.add(O),y.layers.add(O),W())}),[O,s,y]),Object(c.useEffect)((function(){return function(){O&&(y.layers.delete(O),y.layersWithOutsidePointerEventsDisabled.delete(O),W())}}),[O,y]),Object(c.useEffect)((function(){var e=function(){return S({})};return document.addEventListener(I,e),function(){return document.removeEventListener(I,e)}}),[]),Object(c.createElement)(m.div,Object(u.a)({},b,{ref:k,style:Object(r.a)({pointerEvents:D?B?"auto":"none":void 0},e.style),onFocusCapture:Object(l.a)(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Object(l.a)(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Object(l.a)(e.onPointerDownCapture,V.onPointerDownCapture)}))})),V=Object(c.forwardRef)((function(e,t){var n=Object(c.useContext)(U),r=Object(c.useRef)(null),o=j(t,r);return Object(c.useEffect)((function(){var e=r.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}}),[n.branches]),Object(c.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 K=B,Y=V},function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n(8),o=n(10),a=n(3),i=n(4),u=n(5),c=n(0);function l(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(c.useCallback)(d.apply(void 0,t),t)}l(s,"composeRefs",(function(){return d})),l(s,"useComposedRefs",(function(){return p}));var v=n(7),h=n(2),m=n(12),b=n(20),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 _})),g(w,"Root",(function(){return j}));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(c.forwardRef)((function(e,n){var r=e.asChild,o=Object(i.a)(e,y),a=r?b.a:t;return Object(c.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(c.createElement)(a,Object(u.a)({},o,{ref:n}))}))))}),{});function _(e,t){e&&Object(m.flushSync)((function(){return e.dispatchEvent(t)}))}var j=O,E=n(17),S=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];function k(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var x={};k(x,"FocusScope",(function(){return P})),k(x,"Root",(function(){return F}));var C="focusScope.autoFocusOnMount",T="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},P=Object(c.forwardRef)((function(e,t){var n=e.loop,r=void 0!==n&&n,l=e.trapped,s=void 0!==l&&l,f=e.onMountAutoFocus,d=e.onUnmountAutoFocus,v=Object(i.a)(e,S),h=Object(c.useState)(null),m=Object(a.a)(h,2),b=m[0],y=m[1],g=Object(E.a)(f),w=Object(E.a)(d),_=Object(c.useRef)(null),j=p(t,(function(e){return y(e)})),k=Object(c.useRef)({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;Object(c.useEffect)((function(){if(s){var e=function(e){if(!k.paused&&b){var t=e.target;b.contains(t)?_.current=t:D(_.current,{select:!0})}},t=function(e){!k.paused&&b&&(b.contains(e.relatedTarget)||D(_.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[s,b,k.paused]),Object(c.useEffect)((function(){if(b){I.add(k);var e=document.activeElement;if(!b.contains(e)){var t=new CustomEvent(C,R);b.addEventListener(C,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=A(b),n.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&D(b))}return function(){b.removeEventListener(C,g),setTimeout((function(){var t=new CustomEvent(T,R);b.addEventListener(T,w),b.dispatchEvent(t),t.defaultPrevented||D(null!==e&&void 0!==e?e:document.body,{select:!0}),b.removeEventListener(T,w),I.remove(k)}),0)}}var n}),[b,g,w,k]);var x=Object(c.useCallback)((function(e){if((r||s)&&!k.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=A(e),n=L(t,e),r=L(t.reverse(),e);return[n,r]}(o),u=Object(a.a)(i,2),c=u[0],l=u[1];c&&l?e.shiftKey||n!==l?e.shiftKey&&n===c&&(e.preventDefault(),r&&D(l,{select:!0})):(e.preventDefault(),r&&D(c,{select:!0})):n===o&&e.preventDefault()}}}),[r,s,k.paused]);return Object(c.createElement)(O.div,Object(u.a)({tabIndex:-1},v,{ref:j,onKeyDown:x}))}));function A(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(!N(a,{upTo:t}))return a}}catch(i){r.e(i)}finally{r.f()}}function N(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";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t=function(e){var t=r.useRef(e);return r.useEffect((function(){t.current=e})),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))}}),[])}(e);r.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){"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,c=i(e),l=1;l<arguments.length;l++){for(var s in n=Object(arguments[l]))o.call(n,s)&&(c[s]=n[s]);if(r){u=r(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},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 c=function(e,t){return Number(e.toFixed(t))},l=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,c=i.positionX,l=i.positionY,s=t.scale-u,f=t.positionX-c,d=t.positionY-l;0===n?a(t.scale,t.positionX,t.positionY):p(e,r,n,(function(e){a(u+s*e,c+f*e,l+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,c=function(e,t,n,r,o,a,i){var u=e>t?n*(i?1:.5):0,c=r>o?a*(i?1:.5):0;return{minPositionX:e-t-u,maxPositionX:u,minPositionY:r-o-c,maxPositionY:c}}(i,a.newContentWidth,a.newDiffWidth,u,a.newContentHeight,a.newDiffHeight,Boolean(o));return c},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,c=n.minPositionY,l=n.maxPositionX,s=n.maxPositionY,f=0,d=0;return i&&(f=o,d=a),{x:y(e,u-f,l+f,r),y:y(t,c-d,s+d,r)}}var y=function(e,t,n,r){return c(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,c=i.positionX,l=i.positionY,s=r-u;return"number"!==typeof t||"number"!==typeof n?(console.error("Mouse X and Y position were not provided!"),{x:c,y:l}):b(c-t*s,l-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)},_=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)};var j=function(e,t){var n=e.setup,r=e.transformState.scale,o=n.minScale;return t>0&&r>=o?t:0};function E(e,t,n,r,o,a,i,u,c,l){if(o){var s;if(t>i&&n>i)return(s=i+(e-i)*l)>c?c:s<i?i:s;if(t<a&&n<a)return(s=a+(e-a)*l)<u?u:s>a?a:s}return r?t:y(e,a,i,o)}function S(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,c=Date.now();if(r&&o&&i){var l=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/l,p=f/l,v=c-o,h=s*s+f*f,m=Math.sqrt(h)/v;e.velocity={velocityX:d,velocityY:p,total:m}}e.lastMousePosition=t,e.velocityTime=c}}function k(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 x(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,c=o.positionX,l=o.positionY;if(!r)return{x:c,y:l};var s=t-r.x,f=n-r.y;return{x:i?c:s,y:u?l:f}}(e,t,n),c=u.x,l=u.y,s=j(e,a),f=j(e,i);S(e,{x:c,y:l}),function(e,t,n,r,o){var a=e.setup.limitToBounds,i=e.wrapperComponent,u=e.bounds,c=e.transformState,l=c.scale,s=c.positionX,f=c.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(l,p,v)}}(e,c,l,s,f)}}function C(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,c=(null===a||void 0===a?void 0:a.height)||0,l=(null===i||void 0===i?void 0:i.width)||0,f=(null===i||void 0===i?void 0:i.height)||0,d=u<l||c<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,c=t.total,l=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,_=m.sizeX,S=m.sizeY,k=m.velocityAlignmentTime,x=function(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,o=n.animationTime,a=n.sensitivity;return r?o*t*a:o}(e,c),C=Math.max(x,k),T=j(e,_),R=j(e,S),P=T*o.offsetWidth/100,A=R*o.offsetHeight/100,L=l+P,N=f-P,M=d+A,D=v-A,I=e.transformState,z=(new Date).getTime();p(e,O,C,(function(t){var n=e.transformState,r=n.scale,o=n.positionX,a=n.positionY,c=((new Date).getTime()-z)/k,p=1-(0,s[m.animationType])(Math.min(1,c)),b=1-t,y=o+i*b,O=a+u*b,_=E(y,I.positionX,o,w,h,f,l,N,L,p),j=E(O,I.positionY,a,g,h,v,d,D,M,p);o===y&&a===O||e.setTransformState(r,_,j)}))}}(e):T(e)}}function T(e){var t=e.transformState.scale,n=e.setup,r=n.minScale,o=n.alignmentAnimation,a=o.disabled,i=o.sizeX,u=o.sizeY,c=o.animationTime,l=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,c=a.centerZoomedOut,l=e.wrapperComponent;if(!i&&l&&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?l.offsetWidth:e.setup.minPositionX||0,r>p?l.offsetHeight:e.setup.minPositionY||0,o,e.bounds,u||c),y=b.x,w=b.y;return{scale:o,positionX:h?y:n,positionY:m?w:r}}}(e);s&&v(e,s,c,l)}}function R(e,t,n){var r=e.transformState.scale,o=e.wrapperComponent,a=e.setup,i=a.minScale,u=a.limitToBounds,c=a.zoomAnimation,l=c.disabled,s=c.animationTime,f=c.animationType,d=l||r>=i;if((r>=1||u)&&T(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,l=w(c(t,2),a,i,0,!1),s=g(e,n,r,l,m(e,l),u);return{scale:l,positionX:s.x,positionY:s.y}}var A={previousScale:1,scale:1,positionX:0,positionY:0},L=i(i({},A),{setComponents:function(){},contextInstance:null}),N={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:A.scale,scale:null!==(n=e.initialScale)&&void 0!==n?n:A.scale,positionX:null!==(r=e.initialPositionX)&&void 0!==r?r:A.positionX,positionY:null!==(o=e.initialPositionY)&&void 0!==o?o:A.positionY}},D=function(e){var t=i({},N);return Object.keys(e).forEach((function(n){var r="undefined"!==typeof e[n];if("undefined"!==typeof N[n]&&r){var o=Object.prototype.toString.call(N[n]),a="[object Object]"===o,c="[object Array]"===o;t[n]=a?i(i({},N[n]),e[n]):c?u(u([],N[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,l=a.zoomAnimation.size;if(!o)throw new Error("Wrapper is not mounted");var s=r*Math.exp(t*n);return w(c(s,3),u,i,l,!1)};function z(e,t,n,r,o){var a=e.wrapperComponent,i=e.transformState,u=i.scale,c=i.positionX,l=i.positionY;if(!a)return console.error("No WrapperComponent found");var s=(a.offsetWidth/2-c)/u,f=(a.offsetHeight/2-l)/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,c=u.scale,l=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};c===i.scale&&l===i.positionX&&s===i.positionY||v(e,p,t,n)}}var 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){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),z(e,-1,t,n,r)}},V=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,c=i.positionY,l=i.scale,s=e.wrapperComponent,f=e.contentComponent;if(!e.setup.disabled&&s&&f){var d={positionX:isNaN(t)?u:t,positionY:isNaN(n)?c:n,scale:isNaN(r)?l: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=Z(t||o.scale,a,i);v(e,u,n,r)}}},K=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 A;var c=r.getBoundingClientRect(),l=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=l.x,f=l.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=(c.width-d*y)/2,O=(c.height-p*y)/2,_=b((c.left-s)*y+g,(c.top-f)*y+O,h(e,y),a,0,0,r);return{positionX:_.x,positionY:_.y,scale:y}}(e,i,n);v(e,u,r,o)}}},Y=function(e){return{instance:e,state:e.transformState,zoomIn:U(e),zoomOut:B(e),setTransform:V(e),resetTransform:W(e),centerView:H(e),zoomToElement:K(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)}))},$=function(e){e&&clearTimeout(e)},Q=function(e,t,n){return"translate3d("+e+"px, "+t+"px, 0) scale("+n+")"},Z=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}},G=function(e,t){var n=e.setup.wheel,r=n.disabled,o=n.wheelDisabled,a=n.touchPadDisabled,i=n.excluded,u=e.isInitialized,c=e.isPanning,l=t.target;return!(!u||c||r||!l)&&(!(o&&!t.ctrlKey)&&((!a||!t.ctrlKey)&&!q(l,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),l(Y(e),t,r),l(Y(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,l=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(c(v,3),s,l,d,h)}(e,y,b,!t.ctrlKey);if(u!==O){var _=m(e,O),j=J(t,a,u),E=s&&(h||0===v||f),S=g(e,j.x,j.y,O,_,E),k=S.x,x=S.y;e.previousWheelEvent=t,e.setTransformState(O,k,x),l(Y(e),t,r),l(Y(e),t,o)}},ae=function(e,t){var n=e.props,r=n.onWheelStop,o=n.onZoomStop;$(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&&($(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,l(Y(e),t,r),l(Y(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,l=a.zoomAnimation,s=l.disabled,f=l.size;if(null!==r&&n){var d=function(e,t,n){var r=n.getBoundingClientRect(),o=e.touches,a=c(o[0].clientX-r.left,5),i=c(o[0].clientY-r.top,5);return{x:(a+c(o[1].clientX-r.left,5))/2/t,y:(i+c(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,l=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(c(t/r*n,2),i,a,l,!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,_=y.y;e.pinchMidpoint=d,e.lastDistance=p,e.setTransformState(v,O,_)}}}},ce=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 le(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 c=e.transformState.scale,l=e.contentComponent;if(!l)return console.error("No ContentComponent found");var s=I(e,"zoomOut"===o?-1:1,a),f=J(t,l,c),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,c=t.target,l=null===o||void 0===o?void 0:o.contains(c),s=n&&c&&l&&!i;return!!s&&(!q(c,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||G(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),k(t,e),l(Y(t),e,r))},t.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||_(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),x(t,e.clientX,e.clientY),l(Y(t),e,r))},t.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(C(t),l(Y(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),l(Y(t),e,o),l(Y(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),l(Y(t),e,o),l(Y(t),e,a))},t.onPinchStop=function(e){var n=t.props,r=n.onPinchingStop,o=n.onZoomStop;t.pinchStartScale&&(ce(t),l(Y(t),e,r),l(Y(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),k(t,e),l(Y(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(!_(t))return;e.preventDefault(),e.stopPropagation();var o=e.touches[0];x(t,o.clientX,o.clientY),l(Y(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)&&le(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,l(Y(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=Z(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=Q(r,o,n);t.contentComponent.style.transform=a,t.handleRef()}},t.handleRef=function(){t.props.setRef(Y(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=Y(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,c=e.wrapperStyle,l=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:c},o.a.createElement("div",{ref:d,className:"react-transform-component "+he+" "+u,style:l},t))}},function(e,t,n){(function(e,r){var o;(function(){var a,i="Expected a function",u="__lodash_hash_undefined__",c="__lodash_placeholder__",l=16,s=32,f=64,d=128,p=256,v=1/0,h=9007199254740991,m=NaN,b=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",f],["rearg",p]],g="[object Arguments]",w="[object Array]",O="[object Boolean]",_="[object Date]",j="[object Error]",E="[object Function]",S="[object GeneratorFunction]",k="[object Map]",x="[object Number]",C="[object Object]",T="[object Promise]",R="[object RegExp]",P="[object Set]",A="[object String]",L="[object Symbol]",N="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",I="[object Float32Array]",z="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",W="[object Uint8ClampedArray]",H="[object Uint16Array]",K="[object Uint32Array]",Y=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Z=RegExp($.source),G=RegExp(Q.source),J=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ae.source),ue=/^\s+/,ce=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,ve=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,be=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,Oe=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,je=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['\u2019]",Ae="[\\ud800-\\udfff]",Le="["+Re+"]",Ne="["+Se+"]",Me="\\d+",De="[\\u2700-\\u27bf]",Ie="["+xe+"]",ze="[^\\ud800-\\udfff"+Re+Me+ke+xe+Ce+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ue="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ce+"]",He="(?:"+Ie+"|"+ze+")",Ke="(?:"+We+"|"+ze+")",Ye="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Xe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ne+"|"+Fe+")"+"?",$e="[\\ufe0e\\ufe0f]?",Qe=$e+qe+("(?:\\u200d(?:"+[Ue,Be,Ve].join("|")+")"+$e+qe+")*"),Ze="(?:"+[De,Be,Ve].join("|")+")"+Qe,Ge="(?:"+[Ue+Ne+"?",Ne,Be,Ve,Ae].join("|")+")",Je=RegExp(Pe,"g"),et=RegExp(Ne,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Ge+Qe,"g"),nt=RegExp([We+"?"+Ie+"+"+Ye+"(?="+[Le,We,"$"].join("|")+")",Ke+"+"+Xe+"(?="+[Le,We+He,"$"].join("|")+")",We+"?"+He+"+"+Ye,We+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Ze].join("|"),"g"),rt=RegExp("[\\u200d\\ud800-\\udfff"+Se+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,ut={};ut[I]=ut[z]=ut[F]=ut[U]=ut[B]=ut[V]=ut[W]=ut[H]=ut[K]=!0,ut[g]=ut[w]=ut[M]=ut[O]=ut[D]=ut[_]=ut[j]=ut[E]=ut[k]=ut[x]=ut[C]=ut[R]=ut[P]=ut[A]=ut[N]=!1;var ct={};ct[g]=ct[w]=ct[M]=ct[D]=ct[O]=ct[_]=ct[I]=ct[z]=ct[F]=ct[U]=ct[B]=ct[k]=ct[x]=ct[C]=ct[R]=ct[P]=ct[A]=ct[L]=ct[V]=ct[W]=ct[H]=ct[K]=!0,ct[j]=ct[E]=ct[N]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ft=parseInt,dt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&"object"==typeof r&&r&&!r.nodeType&&r,bt=mt&&mt.exports===ht,yt=bt&&dt.process,gt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),wt=gt&&gt.isArrayBuffer,Ot=gt&&gt.isDate,_t=gt&&gt.isMap,jt=gt&&gt.isRegExp,Et=gt&&gt.isSet,St=gt&&gt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xt(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function At(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Dt(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function It(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=Yt("length");function Ut(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Bt(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function Vt(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Ht,n)}function Wt(e,t,n,r){for(var o=n-1,a=e.length;++o<a;)if(r(e[o],t))return o;return-1}function Ht(e){return e!==e}function Kt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:m}function Yt(e){return function(t){return null==t?a:t[e]}}function Xt(e){return function(t){return null==e?a:e[t]}}function qt(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function $t(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==a&&(n=n===a?i:n+i)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,mn(e)+1).replace(ue,""):e}function Gt(e){return function(t){return e(t)}}function Jt(e,t){return Nt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Xt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function un(e){return"\\"+lt[e]}function cn(e){return rt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n];i!==t&&i!==c||(e[n]=c,a[o++]=n)}return a}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function vn(e){return cn(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Ft(e)}function hn(e){return cn(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&ce.test(e.charAt(t)););return t}var bn=Xt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function e(t){var n=(t=null==t?vt:yn.defaults(vt.Object(),t,yn.pick(vt,at))).Array,r=t.Date,o=t.Error,ce=t.Function,Se=t.Math,ke=t.Object,xe=t.RegExp,Ce=t.String,Te=t.TypeError,Re=n.prototype,Pe=ce.prototype,Ae=ke.prototype,Le=t["__core-js_shared__"],Ne=Pe.toString,Me=Ae.hasOwnProperty,De=0,Ie=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Ae.toString,Fe=Ne.call(ke),Ue=vt._,Be=xe("^"+Ne.call(Me).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=bt?t.Buffer:a,We=t.Symbol,He=t.Uint8Array,Ke=Ve?Ve.allocUnsafe:a,Ye=sn(ke.getPrototypeOf,ke),Xe=ke.create,qe=Ae.propertyIsEnumerable,$e=Re.splice,Qe=We?We.isConcatSpreadable:a,Ze=We?We.iterator:a,Ge=We?We.toStringTag:a,tt=function(){try{var e=pa(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,lt=r&&r.now!==vt.Date.now&&r.now,dt=t.setTimeout!==vt.setTimeout&&t.setTimeout,pt=Se.ceil,ht=Se.floor,mt=ke.getOwnPropertySymbols,yt=Ve?Ve.isBuffer:a,gt=t.isFinite,Ft=Re.join,Xt=sn(ke.keys,ke),gn=Se.max,wn=Se.min,On=r.now,_n=t.parseInt,jn=Se.random,En=Re.reverse,Sn=pa(t,"DataView"),kn=pa(t,"Map"),xn=pa(t,"Promise"),Cn=pa(t,"Set"),Tn=pa(t,"WeakMap"),Rn=pa(ke,"create"),Pn=Tn&&new Tn,An={},Ln=Ua(Sn),Nn=Ua(kn),Mn=Ua(xn),Dn=Ua(Cn),In=Ua(Tn),zn=We?We.prototype:a,Fn=zn?zn.valueOf:a,Un=zn?zn.toString:a;function Bn(e){if(ru(e)&&!Yi(e)&&!(e instanceof Kn)){if(e instanceof Hn)return e;if(Me.call(e,"__wrapped__"))return Ba(e)}return new Hn(e)}var Vn=function(){function e(){}return function(t){if(!nu(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Wn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=b,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Qn(e){var t=this.__data__=new Xn(e);this.size=t.size}function Zn(e,t){var n=Yi(e),r=!n&&Ki(e),o=!n&&!r&&Qi(e),a=!n&&!r&&!o&&fu(e),i=n||r||o||a,u=i?Qt(e.length,Ce):[],c=u.length;for(var l in e)!t&&!Me.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||wa(l,c))||u.push(l);return u}function Gn(e){var t=e.length;return t?e[$r(0,t-1)]:a}function Jn(e,t){return Ia(Po(e),cr(t,0,e.length))}function er(e){return Ia(Po(e))}function tr(e,t,n){(n!==a&&!Vi(e[t],n)||n===a&&!(t in e))&&ir(e,t,n)}function nr(e,t,n){var r=e[t];Me.call(e,t)&&Vi(r,n)&&(n!==a||t in e)||ir(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Vi(e[n][0],t))return n;return-1}function or(e,t,n,r){return pr(e,(function(e,o,a){t(r,e,n(e),a)})),r}function ar(e,t){return e&&Ao(t,Lu(t),e)}function ir(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ur(e,t){for(var r=-1,o=t.length,i=n(o),u=null==e;++r<o;)i[r]=u?a:Cu(e,t[r]);return i}function cr(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function lr(e,t,n,r,o,i){var u,c=1&t,l=2&t,s=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),u!==a)return u;if(!nu(e))return e;var f=Yi(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Po(e,u)}else{var d=ma(e),p=d==E||d==S;if(Qi(e))return So(e,c);if(d==C||d==g||p&&!o){if(u=l||p?{}:ya(e),!c)return l?function(e,t){return Ao(e,ha(e),t)}(e,function(e,t){return e&&Ao(t,Nu(t),e)}(u,e)):function(e,t){return Ao(e,va(e),t)}(e,ar(u,e))}else{if(!ct[d])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case M:return ko(e);case O:case _:return new r(+e);case D:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case z:case F:case U:case B:case V:case W:case H:case K:return xo(e,n);case k:case P:return new r;case x:case A:return new r(e);case R:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return o=e,Fn?ke(Fn.call(o)):{}}var o}(e,d,c)}}i||(i=new Qn);var v=i.get(e);if(v)return v;i.set(e,u),cu(e)?e.forEach((function(r){u.add(lr(r,t,n,r,e,i))})):ou(e)&&e.forEach((function(r,o){u.set(o,lr(r,t,n,o,e,i))}));var h=f?a:(s?l?ia:aa:l?Nu:Lu)(e);return Ct(h||e,(function(r,o){h&&(r=e[o=r]),nr(u,o,lr(r,t,n,o,e,i))})),u}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var o=n[r],i=t[o],u=e[o];if(u===a&&!(o in e)||!i(u))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Te(i);return La((function(){e.apply(a,n)}),t)}function dr(e,t,n,r){var o=-1,a=At,i=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Nt(t,Gt(n))),r?(a=Lt,i=!1):t.length>=200&&(a=en,i=!1,t=new $n(t));e:for(;++o<u;){var s=e[o],f=null==n?s:n(s);if(s=r||0!==s?s:0,i&&f===f){for(var d=l;d--;)if(t[d]===f)continue e;c.push(s)}else a(t,f,r)||c.push(s)}return c}Bn.templateSettings={escape:J,evaluate:ee,interpolate:te,variable:"",imports:{_:Bn}},Bn.prototype=Wn.prototype,Bn.prototype.constructor=Bn,Hn.prototype=Vn(Wn.prototype),Hn.prototype.constructor=Hn,Kn.prototype=Vn(Wn.prototype),Kn.prototype.constructor=Kn,Yn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===u?a:n}return Me.call(t,e)?t[e]:a},Yn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==a:Me.call(t,e)},Yn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===a?u:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Xn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?a:t[n][1]},Xn.prototype.has=function(e){return rr(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(kn||Xn),string:new Yn}},qn.prototype.delete=function(e){var t=fa(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return fa(this,e).get(e)},qn.prototype.has=function(e){return fa(this,e).has(e)},qn.prototype.set=function(e,t){var n=fa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,u),this},$n.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var pr=Mo(Or),vr=Mo(_r,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],u=t(i);if(null!=u&&(c===a?u===u&&!su(u):n(u,c)))var c=u,l=i}return l}function br(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=ga),o||(o=[]);++a<i;){var u=e[a];t>0&&n(u)?t>1?yr(u,t-1,n,r,o):Mt(o,u):r||(o[o.length]=u)}return o}var gr=Do(),wr=Do(!0);function Or(e,t){return e&&gr(e,t,Lu)}function _r(e,t){return e&&wr(e,t,Lu)}function jr(e,t){return Pt(t,(function(t){return Ji(e[t])}))}function Er(e,t){for(var n=0,r=(t=Oo(t,e)).length;null!=e&&n<r;)e=e[Fa(t[n++])];return n&&n==r?e:a}function Sr(e,t,n){var r=t(e);return Yi(e)?r:Mt(r,n(e))}function kr(e){return null==e?e===a?"[object Undefined]":"[object Null]":Ge&&Ge in ke(e)?function(e){var t=Me.call(e,Ge),n=e[Ge];try{e[Ge]=a;var r=!0}catch(i){}var o=ze.call(e);r&&(t?e[Ge]=n:delete e[Ge]);return o}(e):function(e){return ze.call(e)}(e)}function xr(e,t){return e>t}function Cr(e,t){return null!=e&&Me.call(e,t)}function Tr(e,t){return null!=e&&t in ke(e)}function Rr(e,t,r){for(var o=r?Lt:At,i=e[0].length,u=e.length,c=u,l=n(u),s=1/0,f=[];c--;){var d=e[c];c&&t&&(d=Nt(d,Gt(t))),s=wn(d.length,s),l[c]=!r&&(t||i>=120&&d.length>=120)?new $n(c&&d):a}d=e[0];var p=-1,v=l[0];e:for(;++p<i&&f.length<s;){var h=d[p],m=t?t(h):h;if(h=r||0!==h?h:0,!(v?en(v,m):o(f,m,r))){for(c=u;--c;){var b=l[c];if(!(b?en(b,m):o(e[c],m,r)))continue e}v&&v.push(m),f.push(h)}}return f}function Pr(e,t,n){var r=null==(e=Ta(e,t=Oo(t,e)))?e:e[Fa(Ga(t))];return null==r?a:kt(r,e,n)}function Ar(e){return ru(e)&&kr(e)==g}function Lr(e,t,n,r,o){return e===t||(null==e||null==t||!ru(e)&&!ru(t)?e!==e&&t!==t:function(e,t,n,r,o,i){var u=Yi(e),c=Yi(t),l=u?w:ma(e),s=c?w:ma(t),f=(l=l==g?C:l)==C,d=(s=s==g?C:s)==C,p=l==s;if(p&&Qi(e)){if(!Qi(t))return!1;u=!0,f=!1}if(p&&!f)return i||(i=new Qn),u||fu(e)?ra(e,t,n,r,o,i):function(e,t,n,r,o,a,i){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!a(new He(e),new He(t)));case O:case _:case x:return Vi(+e,+t);case j:return e.name==t.name&&e.message==t.message;case R:case A:return e==t+"";case k:var u=ln;case P:var c=1&r;if(u||(u=dn),e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;r|=2,i.set(e,t);var s=ra(u(e),u(t),r,o,a,i);return i.delete(e),s;case L:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var v=f&&Me.call(e,"__wrapped__"),h=d&&Me.call(t,"__wrapped__");if(v||h){var m=v?e.value():e,b=h?t.value():t;return i||(i=new Qn),o(m,b,n,r,i)}}if(!p)return!1;return i||(i=new Qn),function(e,t,n,r,o,i){var u=1&n,c=aa(e),l=c.length,s=aa(t).length;if(l!=s&&!u)return!1;var f=l;for(;f--;){var d=c[f];if(!(u?d in t:Me.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var h=!0;i.set(e,t),i.set(t,e);var m=u;for(;++f<l;){var b=e[d=c[f]],y=t[d];if(r)var g=u?r(y,b,d,t,e,i):r(b,y,d,e,t,i);if(!(g===a?b===y||o(b,y,n,r,i):g)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var w=e.constructor,O=t.constructor;w==O||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof O&&O instanceof O||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,i)}(e,t,n,r,Lr,o))}function Nr(e,t,n,r){var o=n.length,i=o,u=!r;if(null==e)return!i;for(e=ke(e);o--;){var c=n[o];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<i;){var l=(c=n[o])[0],s=e[l],f=c[1];if(u&&c[2]){if(s===a&&!(l in e))return!1}else{var d=new Qn;if(r)var p=r(s,f,l,e,t,d);if(!(p===a?Lr(f,s,3,r,d):p))return!1}}return!0}function Mr(e){return!(!nu(e)||(t=e,Ie&&Ie in t))&&(Ji(e)?Be:ge).test(Ua(e));var t}function Dr(e){return"function"==typeof e?e:null==e?ac:"object"==typeof e?Yi(e)?Vr(e[0],e[1]):Br(e):vc(e)}function Ir(e){if(!Sa(e))return Xt(e);var t=[];for(var n in ke(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!nu(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Sa(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Ur(e,t){var r=-1,o=qi(e)?n(e.length):[];return pr(e,(function(e,n,a){o[++r]=t(e,n,a)})),o}function Br(e){var t=da(e);return 1==t.length&&t[0][2]?xa(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Vr(e,t){return _a(e)&&ka(t)?xa(Fa(e),t):function(n){var r=Cu(n,e);return r===a&&r===t?Tu(n,e):Lr(t,r,3)}}function Wr(e,t,n,r,o){e!==t&&gr(t,(function(i,u){if(o||(o=new Qn),nu(i))!function(e,t,n,r,o,i,u){var c=Pa(e,n),l=Pa(t,n),s=u.get(l);if(s)return void tr(e,n,s);var f=i?i(c,l,n+"",e,t,u):a,d=f===a;if(d){var p=Yi(l),v=!p&&Qi(l),h=!p&&!v&&fu(l);f=l,p||v||h?Yi(c)?f=c:$i(c)?f=Po(c):v?(d=!1,f=So(l,!0)):h?(d=!1,f=xo(l,!0)):f=[]:iu(l)||Ki(l)?(f=c,Ki(c)?f=gu(c):nu(c)&&!Ji(c)||(f=ya(l))):d=!1}d&&(u.set(l,f),o(f,l,r,i,u),u.delete(l));tr(e,n,f)}(e,t,u,n,Wr,r,o);else{var c=r?r(Pa(e,u),i,u+"",e,t,o):a;c===a&&(c=i),tr(e,u,c)}}),Nu)}function Hr(e,t){var n=e.length;if(n)return wa(t+=t<0?n:0,n)?e[t]:a}function Kr(e,t,n){t=t.length?Nt(t,(function(e){return Yi(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[ac];var r=-1;t=Nt(t,Gt(sa()));var o=Ur(e,(function(e,n,o){var a=Nt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,a=t.criteria,i=o.length,u=n.length;for(;++r<i;){var c=Co(o[r],a[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],u=Er(e,i);n(u,i)&&eo(a,Oo(i,e),u)}return a}function Xr(e,t,n,r){var o=r?Wt:Vt,a=-1,i=t.length,u=e;for(e===t&&(t=Po(t)),n&&(u=Nt(e,Gt(n)));++a<i;)for(var c=0,l=t[a],s=n?n(l):l;(c=o(u,s,c,r))>-1;)u!==e&&$e.call(u,c,1),$e.call(e,c,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;wa(o)?$e.call(e,o,1):po(e,o)}}return e}function $r(e,t){return e+ht(jn()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Na(Ca(e,t,ac),e+"")}function Gr(e){return Gn(Vu(e))}function Jr(e,t){var n=Vu(e);return Ia(n,cr(t,0,n.length))}function eo(e,t,n,r){if(!nu(e))return e;for(var o=-1,i=(t=Oo(t,e)).length,u=i-1,c=e;null!=c&&++o<i;){var l=Fa(t[o]),s=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=u){var f=c[l];(s=r?r(f,l,c):a)===a&&(s=nu(f)?f:wa(t[o+1])?[]:{})}nr(c,l,s),c=c[l]}return e}var to=Pn?function(e,t){return Pn.set(e,t),e}:ac,no=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:nc(t),writable:!0})}:ac;function ro(e){return Ia(Vu(e))}function oo(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=n(a);++o<a;)i[o]=e[o+t];return i}function ao(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var a=r+o>>>1,i=e[a];null!==i&&!su(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return uo(e,t,ac,n)}function uo(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var u=(t=n(t))!==t,c=null===t,l=su(t),s=t===a;o<i;){var f=ht((o+i)/2),d=n(e[f]),p=d!==a,v=null===d,h=d===d,m=su(d);if(u)var b=r||h;else b=s?h&&(r||p):c?h&&p&&(r||!v):l?h&&p&&!v&&(r||!m):!v&&!m&&(r?d<=t:d<t);b?o=f+1:i=f}return wn(i,4294967294)}function co(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n],u=t?t(i):i;if(!n||!Vi(u,c)){var c=u;a[o++]=0===i?0:i}}return a}function lo(e){return"number"==typeof e?e:su(e)?m:+e}function so(e){if("string"==typeof e)return e;if(Yi(e))return Nt(e,so)+"";if(su(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=At,a=e.length,i=!0,u=[],c=u;if(n)i=!1,o=Lt;else if(a>=200){var l=t?null:Zo(e);if(l)return dn(l);i=!1,o=en,c=new $n}else c=t?[]:u;e:for(;++r<a;){var s=e[r],f=t?t(s):s;if(s=n||0!==s?s:0,i&&f===f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),u.push(s)}else o(c,f,n)||(c!==u&&c.push(f),u.push(s))}return u}function po(e,t){return null==(e=Ta(e,t=Oo(t,e)))||delete e[Fa(Ga(t))]}function vo(e,t,n,r){return eo(e,t,n(Er(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?oo(e,r?0:a,r?a+1:o):oo(e,r?a+1:0,r?o:a)}function mo(e,t){var n=e;return n instanceof Kn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))}),n)}function bo(e,t,r){var o=e.length;if(o<2)return o?fo(e[0]):[];for(var a=-1,i=n(o);++a<o;)for(var u=e[a],c=-1;++c<o;)c!=a&&(i[a]=dr(i[a]||u,e[c],t,r));return fo(yr(i,1),t,r)}function yo(e,t,n){for(var r=-1,o=e.length,i=t.length,u={};++r<o;){var c=r<i?t[r]:a;n(u,e[r],c)}return u}function go(e){return $i(e)?e:[]}function wo(e){return"function"==typeof e?e:ac}function Oo(e,t){return Yi(e)?e:_a(e,t)?[e]:za(wu(e))}var _o=Zr;function jo(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:oo(e,t,n)}var Eo=rt||function(e){return vt.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function xo(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==a,r=null===e,o=e===e,i=su(e),u=t!==a,c=null===t,l=t===t,s=su(t);if(!c&&!s&&!i&&e>t||i&&u&&l&&!c&&!s||r&&u&&l||!n&&l||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||c&&n&&o||!u&&o||!l)return-1}return 0}function To(e,t,r,o){for(var a=-1,i=e.length,u=r.length,c=-1,l=t.length,s=gn(i-u,0),f=n(l+s),d=!o;++c<l;)f[c]=t[c];for(;++a<u;)(d||a<i)&&(f[r[a]]=e[a]);for(;s--;)f[c++]=e[a++];return f}function Ro(e,t,r,o){for(var a=-1,i=e.length,u=-1,c=r.length,l=-1,s=t.length,f=gn(i-c,0),d=n(f+s),p=!o;++a<f;)d[a]=e[a];for(var v=a;++l<s;)d[v+l]=t[l];for(;++u<c;)(p||a<i)&&(d[v+r[u]]=e[a++]);return d}function Po(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Ao(e,t,n,r){var o=!n;n||(n={});for(var i=-1,u=t.length;++i<u;){var c=t[i],l=r?r(n[c],e[c],c,n,e):a;l===a&&(l=e[c]),o?ir(n,c,l):nr(n,c,l)}return n}function Lo(e,t){return function(n,r){var o=Yi(n)?xt:or,a=t?t():{};return o(n,e,sa(r,2),a)}}function No(e){return Zr((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:a,u=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,u&&Oa(n[0],n[1],u)&&(i=o<3?a:i,o=1),t=ke(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t}))}function Mo(e,t){return function(n,r){if(null==n)return n;if(!qi(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=ke(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}function Do(e){return function(t,n,r){for(var o=-1,a=ke(t),i=r(t),u=i.length;u--;){var c=i[e?u:++o];if(!1===n(a[c],c,a))break}return t}}function Io(e){return function(t){var n=cn(t=wu(t))?hn(t):a,r=n?n[0]:t.charAt(0),o=n?jo(n,1).join(""):t.slice(1);return r[e]()+o}}function zo(e){return function(t){return Dt(Ju(Ku(t).replace(Je,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return nu(r)?r:n}}function Uo(e){return function(t,n,r){var o=ke(t);if(!qi(t)){var i=sa(n,3);t=Lu(t),n=function(e){return i(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[i?t[u]:u]:a}}function Bo(e){return oa((function(t){var n=t.length,r=n,o=Hn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Te(i);if(o&&!c&&"wrapper"==ca(u))var c=new Hn([],!0)}for(r=c?r:n;++r<n;){var l=ca(u=t[r]),s="wrapper"==l?ua(u):a;c=s&&ja(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?c[ca(s[0])].apply(c,s[3]):1==u.length&&ja(u)?c[l]():c.thru(u)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Yi(r))return c.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}}))}function Vo(e,t,r,o,i,u,c,l,s,f){var p=t&d,v=1&t,h=2&t,m=24&t,b=512&t,y=h?a:Fo(e);return function a(){for(var d=arguments.length,g=n(d),w=d;w--;)g[w]=arguments[w];if(m)var O=la(a),_=rn(g,O);if(o&&(g=To(g,o,i,m)),u&&(g=Ro(g,u,c,m)),d-=_,m&&d<f){var j=fn(g,O);return $o(e,t,Vo,a.placeholder,r,g,j,l,s,f-d)}var E=v?r:this,S=h?E[e]:e;return d=g.length,l?g=Ra(g,l):b&&d>1&&g.reverse(),p&&s<d&&(g.length=s),this&&this!==vt&&this instanceof a&&(S=y||Fo(S)),S.apply(E,g)}}function Wo(e,t){return function(n,r){return function(e,t,n,r){return Or(e,(function(e,o,a){t(r,n(e),o,a)})),r}(n,e,t(r),{})}}function Ho(e,t){return function(n,r){var o;if(n===a&&r===a)return t;if(n!==a&&(o=n),r!==a){if(o===a)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=lo(n),r=lo(r)),o=e(n,r)}return o}}function Ko(e){return oa((function(t){return t=Nt(t,Gt(sa())),Zr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Yo(e,t){var n=(t=t===a?" ":so(t)).length;if(n<2)return n?Qr(t,e):t;var r=Qr(t,pt(e/vn(t)));return cn(t)?jo(hn(r),0,e).join(""):r.slice(0,e)}function Xo(e){return function(t,r,o){return o&&"number"!=typeof o&&Oa(t,r,o)&&(r=o=a),t=hu(t),r===a?(r=t,t=0):r=hu(r),function(e,t,r,o){for(var a=-1,i=gn(pt((t-e)/(r||1)),0),u=n(i);i--;)u[o?i:++a]=e,e+=r;return u}(t,r,o=o===a?t<r?1:-1:hu(o),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yu(t),n=yu(n)),e(t,n)}}function $o(e,t,n,r,o,i,u,c,l,d){var p=8&t;t|=p?s:f,4&(t&=~(p?f:s))||(t&=-4);var v=[e,t,o,p?i:a,p?u:a,p?a:i,p?a:u,c,l,d],h=n.apply(a,v);return ja(e)&&Aa(h,v),h.placeholder=r,Ma(h,e,t)}function Qo(e){var t=Se[e];return function(e,n){if(e=yu(e),(n=null==n?0:wn(mu(n),292))&&gt(e)){var r=(wu(e)+"e").split("e");return+((r=(wu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zo=Cn&&1/dn(new Cn([,-0]))[1]==v?function(e){return new Cn(e)}:sc;function Go(e){return function(t){var n=ma(t);return n==k?ln(t):n==P?pn(t):function(e,t){return Nt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,r,o,u,v,h,m){var b=2&t;if(!b&&"function"!=typeof e)throw new Te(i);var y=o?o.length:0;if(y||(t&=-97,o=u=a),h=h===a?h:gn(mu(h),0),m=m===a?m:mu(m),y-=u?u.length:0,t&f){var g=o,w=u;o=u=a}var O=b?a:ua(e),_=[e,t,r,o,u,g,w,v,h,m];if(O&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,i=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!i)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?To(l,u,t[4]):u,e[4]=l?fn(e[3],c):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ro(l,u,t[6]):u,e[6]=l?fn(e[5],c):t[6]);(u=t[7])&&(e[7]=u);r&d&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(_,O),e=_[0],t=_[1],r=_[2],o=_[3],u=_[4],!(m=_[9]=_[9]===a?b?0:e.length:gn(_[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)j=8==t||t==l?function(e,t,r){var o=Fo(e);return function i(){for(var u=arguments.length,c=n(u),l=u,s=la(i);l--;)c[l]=arguments[l];var f=u<3&&c[0]!==s&&c[u-1]!==s?[]:fn(c,s);return(u-=f.length)<r?$o(e,t,Vo,i.placeholder,a,c,f,a,a,r-u):kt(this&&this!==vt&&this instanceof i?o:e,this,c)}}(e,t,m):t!=s&&33!=t||u.length?Vo.apply(a,_):function(e,t,r,o){var a=1&t,i=Fo(e);return function t(){for(var u=-1,c=arguments.length,l=-1,s=o.length,f=n(s+c),d=this&&this!==vt&&this instanceof t?i:e;++l<s;)f[l]=o[l];for(;c--;)f[l++]=arguments[++u];return kt(d,a?r:this,f)}}(e,t,r,o);else var j=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==vt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Ma((O?to:Aa)(j,_),e,t)}function ea(e,t,n,r){return e===a||Vi(e,Ae[n])&&!Me.call(r,n)?t:e}function ta(e,t,n,r,o,i){return nu(e)&&nu(t)&&(i.set(t,e),Wr(e,t,a,ta,i),i.delete(t)),e}function na(e){return iu(e)?a:e}function ra(e,t,n,r,o,i){var u=1&n,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var d=-1,p=!0,v=2&n?new $n:a;for(i.set(e,t),i.set(t,e);++d<c;){var h=e[d],m=t[d];if(r)var b=u?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(b!==a){if(b)continue;p=!1;break}if(v){if(!zt(t,(function(e,t){if(!en(v,t)&&(h===e||o(h,e,n,r,i)))return v.push(t)}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function oa(e){return Na(Ca(e,a,Xa),e+"")}function aa(e){return Sr(e,Lu,va)}function ia(e){return Sr(e,Nu,ha)}var ua=Pn?function(e){return Pn.get(e)}:sc;function ca(e){for(var t=e.name+"",n=An[t],r=Me.call(An,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function la(e){return(Me.call(Bn,"placeholder")?Bn:e).placeholder}function sa(){var e=Bn.iteratee||ic;return e=e===ic?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function fa(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function da(e){for(var t=Lu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ka(o)]}return t}function pa(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Mr(n)?n:a}var va=mt?function(e){return null==e?[]:(e=ke(e),Pt(mt(e),(function(t){return qe.call(e,t)})))}:bc,ha=mt?function(e){for(var t=[];e;)Mt(t,va(e)),e=Ye(e);return t}:bc,ma=kr;function ba(e,t,n){for(var r=-1,o=(t=Oo(t,e)).length,a=!1;++r<o;){var i=Fa(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&tu(o)&&wa(i,o)&&(Yi(e)||Ki(e))}function ya(e){return"function"!=typeof e.constructor||Sa(e)?{}:Vn(Ye(e))}function ga(e){return Yi(e)||Ki(e)||!!(Qe&&e&&e[Qe])}function wa(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&Oe.test(e))&&e>-1&&e%1==0&&e<t}function Oa(e,t,n){if(!nu(n))return!1;var r=typeof t;return!!("number"==r?qi(n)&&wa(t,n.length):"string"==r&&t in n)&&Vi(n[t],e)}function _a(e,t){if(Yi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!su(e))||(re.test(e)||!ne.test(e)||null!=t&&e in ke(t))}function ja(e){var t=ca(e),n=Bn[t];if("function"!=typeof n||!(t in Kn.prototype))return!1;if(e===n)return!0;var r=ua(n);return!!r&&e===r[0]}(Sn&&ma(new Sn(new ArrayBuffer(1)))!=D||kn&&ma(new kn)!=k||xn&&ma(xn.resolve())!=T||Cn&&ma(new Cn)!=P||Tn&&ma(new Tn)!=N)&&(ma=function(e){var t=kr(e),n=t==C?e.constructor:a,r=n?Ua(n):"";if(r)switch(r){case Ln:return D;case Nn:return k;case Mn:return T;case Dn:return P;case In:return N}return t});var Ea=Le?Ji:yc;function Sa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function ka(e){return e===e&&!nu(e)}function xa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in ke(n)))}}function Ca(e,t,r){return t=gn(t===a?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=gn(o.length-t,0),u=n(i);++a<i;)u[a]=o[t+a];a=-1;for(var c=n(t+1);++a<t;)c[a]=o[a];return c[t]=r(u),kt(e,this,c)}}function Ta(e,t){return t.length<2?e:Er(e,oo(t,0,-1))}function Ra(e,t){for(var n=e.length,r=wn(t.length,n),o=Po(e);r--;){var i=t[r];e[r]=wa(i,n)?o[i]:a}return e}function Pa(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Aa=Da(to),La=dt||function(e,t){return vt.setTimeout(e,t)},Na=Da(no);function Ma(e,t,n){var r=t+"";return Na(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(y,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(fe):[]}(r),n)))}function Da(e){var t=0,n=0;return function(){var r=On(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ia(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n<t;){var i=$r(n,o),u=e[i];e[i]=e[n],e[n]=u}return e.length=t,e}var za=function(e){var t=Di(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oe,(function(e,n,r,o){t.push(r?o.replace(ve,"$1"):n||e)})),t}));function Fa(e){if("string"==typeof e||su(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ua(e){if(null!=e){try{return Ne.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ba(e){if(e instanceof Kn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Va=Zr((function(e,t){return $i(e)?dr(e,yr(t,1,$i,!0)):[]})),Wa=Zr((function(e,t){var n=Ga(t);return $i(n)&&(n=a),$i(e)?dr(e,yr(t,1,$i,!0),sa(n,2)):[]})),Ha=Zr((function(e,t){var n=Ga(t);return $i(n)&&(n=a),$i(e)?dr(e,yr(t,1,$i,!0),a,n):[]}));function Ka(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mu(n);return o<0&&(o=gn(r+o,0)),Bt(e,sa(t,3),o)}function Ya(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==a&&(o=mu(n),o=n<0?gn(r+o,0):wn(o,r-1)),Bt(e,sa(t,3),o,!0)}function Xa(e){return(null==e?0:e.length)?yr(e,1):[]}function qa(e){return e&&e.length?e[0]:a}var $a=Zr((function(e){var t=Nt(e,go);return t.length&&t[0]===e[0]?Rr(t):[]})),Qa=Zr((function(e){var t=Ga(e),n=Nt(e,go);return t===Ga(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Rr(n,sa(t,2)):[]})),Za=Zr((function(e){var t=Ga(e),n=Nt(e,go);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,a,t):[]}));function Ga(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Ja=Zr(ei);function ei(e,t){return e&&e.length&&t&&t.length?Xr(e,t):e}var ti=oa((function(e,t){var n=null==e?0:e.length,r=ur(e,t);return qr(e,Nt(t,(function(e){return wa(e,n)?+e:e})).sort(Co)),r}));function ni(e){return null==e?e:En.call(e)}var ri=Zr((function(e){return fo(yr(e,1,$i,!0))})),oi=Zr((function(e){var t=Ga(e);return $i(t)&&(t=a),fo(yr(e,1,$i,!0),sa(t,2))})),ai=Zr((function(e){var t=Ga(e);return t="function"==typeof t?t:a,fo(yr(e,1,$i,!0),a,t)}));function ii(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if($i(e))return t=gn(e.length,t),!0})),Qt(t,(function(t){return Nt(e,Yt(t))}))}function ui(e,t){if(!e||!e.length)return[];var n=ii(e);return null==t?n:Nt(n,(function(e){return kt(t,a,e)}))}var ci=Zr((function(e,t){return $i(e)?dr(e,t):[]})),li=Zr((function(e){return bo(Pt(e,$i))})),si=Zr((function(e){var t=Ga(e);return $i(t)&&(t=a),bo(Pt(e,$i),sa(t,2))})),fi=Zr((function(e){var t=Ga(e);return t="function"==typeof t?t:a,bo(Pt(e,$i),a,t)})),di=Zr(ii);var pi=Zr((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ui(e,n)}));function vi(e){var t=Bn(e);return t.__chain__=!0,t}function hi(e,t){return t(e)}var mi=oa((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Kn&&wa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hi,args:[o],thisArg:a}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(o)}));var bi=Lo((function(e,t,n){Me.call(e,n)?++e[n]:ir(e,n,1)}));var yi=Uo(Ka),gi=Uo(Ya);function wi(e,t){return(Yi(e)?Ct:pr)(e,sa(t,3))}function Oi(e,t){return(Yi(e)?Tt:vr)(e,sa(t,3))}var _i=Lo((function(e,t,n){Me.call(e,n)?e[n].push(t):ir(e,n,[t])}));var ji=Zr((function(e,t,r){var o=-1,a="function"==typeof t,i=qi(e)?n(e.length):[];return pr(e,(function(e){i[++o]=a?kt(t,e,r):Pr(e,t,r)})),i})),Ei=Lo((function(e,t,n){ir(e,n,t)}));function Si(e,t){return(Yi(e)?Nt:Ur)(e,sa(t,3))}var ki=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var xi=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Oa(e,t[0],t[1])?t=[]:n>2&&Oa(t[0],t[1],t[2])&&(t=[t[0]]),Kr(e,yr(t,1),[])})),Ci=lt||function(){return vt.Date.now()};function Ti(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Jo(e,d,a,a,a,a,t)}function Ri(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=mu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Pi=Zr((function(e,t,n){var r=1;if(n.length){var o=fn(n,la(Pi));r|=s}return Jo(e,r,t,n,o)})),Ai=Zr((function(e,t,n){var r=3;if(n.length){var o=fn(n,la(Ai));r|=s}return Jo(t,r,e,n,o)}));function Li(e,t,n){var r,o,u,c,l,s,f=0,d=!1,p=!1,v=!0;if("function"!=typeof e)throw new Te(i);function h(t){var n=r,i=o;return r=o=a,f=t,c=e.apply(i,n)}function m(e){return f=e,l=La(y,t),d?h(e):c}function b(e){var n=e-s;return s===a||n>=t||n<0||p&&e-f>=u}function y(){var e=Ci();if(b(e))return g(e);l=La(y,function(e){var n=t-(e-s);return p?wn(n,u-(e-f)):n}(e))}function g(e){return l=a,v&&r?h(e):(r=o=a,c)}function w(){var e=Ci(),n=b(e);if(r=arguments,o=this,s=e,n){if(l===a)return m(s);if(p)return Eo(l),l=La(y,t),h(s)}return l===a&&(l=La(y,t)),c}return t=yu(t)||0,nu(n)&&(d=!!n.leading,u=(p="maxWait"in n)?gn(yu(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),w.cancel=function(){l!==a&&Eo(l),f=0,r=s=o=l=a},w.flush=function(){return l===a?c:g(Ci())},w}var Ni=Zr((function(e,t){return fr(e,1,t)})),Mi=Zr((function(e,t,n){return fr(e,yu(t)||0,n)}));function Di(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Di.Cache||qn),n}function Ii(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Di.Cache=qn;var zi=_o((function(e,t){var n=(t=1==t.length&&Yi(t[0])?Nt(t[0],Gt(sa())):Nt(yr(t,1),Gt(sa()))).length;return Zr((function(r){for(var o=-1,a=wn(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),Fi=Zr((function(e,t){var n=fn(t,la(Fi));return Jo(e,s,a,t,n)})),Ui=Zr((function(e,t){var n=fn(t,la(Ui));return Jo(e,f,a,t,n)})),Bi=oa((function(e,t){return Jo(e,p,a,a,a,t)}));function Vi(e,t){return e===t||e!==e&&t!==t}var Wi=qo(xr),Hi=qo((function(e,t){return e>=t})),Ki=Ar(function(){return arguments}())?Ar:function(e){return ru(e)&&Me.call(e,"callee")&&!qe.call(e,"callee")},Yi=n.isArray,Xi=wt?Gt(wt):function(e){return ru(e)&&kr(e)==M};function qi(e){return null!=e&&tu(e.length)&&!Ji(e)}function $i(e){return ru(e)&&qi(e)}var Qi=yt||yc,Zi=Ot?Gt(Ot):function(e){return ru(e)&&kr(e)==_};function Gi(e){if(!ru(e))return!1;var t=kr(e);return t==j||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!iu(e)}function Ji(e){if(!nu(e))return!1;var t=kr(e);return t==E||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==mu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function nu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==typeof e}var ou=_t?Gt(_t):function(e){return ru(e)&&ma(e)==k};function au(e){return"number"==typeof e||ru(e)&&kr(e)==x}function iu(e){if(!ru(e)||kr(e)!=C)return!1;var t=Ye(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Fe}var uu=jt?Gt(jt):function(e){return ru(e)&&kr(e)==R};var cu=Et?Gt(Et):function(e){return ru(e)&&ma(e)==P};function lu(e){return"string"==typeof e||!Yi(e)&&ru(e)&&kr(e)==A}function su(e){return"symbol"==typeof e||ru(e)&&kr(e)==L}var fu=St?Gt(St):function(e){return ru(e)&&tu(e.length)&&!!ut[kr(e)]};var du=qo(Fr),pu=qo((function(e,t){return e<=t}));function vu(e){if(!e)return[];if(qi(e))return lu(e)?hn(e):Po(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=ma(e);return(t==k?ln:t==P?dn:Vu)(e)}function hu(e){return e?(e=yu(e))===v||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function mu(e){var t=hu(e),n=t%1;return t===t?n?t-n:t:0}function bu(e){return e?cr(mu(e),0,b):0}function yu(e){if("number"==typeof e)return e;if(su(e))return m;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ye.test(e);return n||we.test(e)?ft(e.slice(2),n?2:8):be.test(e)?m:+e}function gu(e){return Ao(e,Nu(e))}function wu(e){return null==e?"":so(e)}var Ou=No((function(e,t){if(Sa(t)||qi(t))Ao(t,Lu(t),e);else for(var n in t)Me.call(t,n)&&nr(e,n,t[n])})),_u=No((function(e,t){Ao(t,Nu(t),e)})),ju=No((function(e,t,n,r){Ao(t,Nu(t),e,r)})),Eu=No((function(e,t,n,r){Ao(t,Lu(t),e,r)})),Su=oa(ur);var ku=Zr((function(e,t){e=ke(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&Oa(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],u=Nu(i),c=-1,l=u.length;++c<l;){var s=u[c],f=e[s];(f===a||Vi(f,Ae[s])&&!Me.call(e,s))&&(e[s]=i[s])}return e})),xu=Zr((function(e){return e.push(a,ta),kt(Du,a,e)}));function Cu(e,t,n){var r=null==e?a:Er(e,t);return r===a?n:r}function Tu(e,t){return null!=e&&ba(e,t,Tr)}var Ru=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=n}),nc(ac)),Pu=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),sa),Au=Zr(Pr);function Lu(e){return qi(e)?Zn(e):Ir(e)}function Nu(e){return qi(e)?Zn(e,!0):zr(e)}var Mu=No((function(e,t,n){Wr(e,t,n)})),Du=No((function(e,t,n,r){Wr(e,t,n,r)})),Iu=oa((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nt(t,(function(t){return t=Oo(t,e),r||(r=t.length>1),t})),Ao(e,ia(e),n),r&&(n=lr(n,7,na));for(var o=t.length;o--;)po(n,t[o]);return n}));var zu=oa((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Tu(e,n)}))}(e,t)}));function Fu(e,t){if(null==e)return{};var n=Nt(ia(e),(function(e){return[e]}));return t=sa(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Uu=Go(Lu),Bu=Go(Nu);function Vu(e){return null==e?[]:Jt(e,Lu(e))}var Wu=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hu(t):t)}));function Hu(e){return Gu(wu(e).toLowerCase())}function Ku(e){return(e=wu(e))&&e.replace(_e,on).replace(et,"")}var Yu=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Xu=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qu=Io("toLowerCase");var $u=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Qu=zo((function(e,t,n){return e+(n?" ":"")+Gu(t)}));var Zu=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Gu=Io("toUpperCase");function Ju(e,t,n){return e=wu(e),(t=n?a:t)===a?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var ec=Zr((function(e,t){try{return kt(e,a,t)}catch(n){return Gi(n)?n:new o(n)}})),tc=oa((function(e,t){return Ct(t,(function(t){t=Fa(t),ir(e,t,Pi(e[t],e))})),e}));function nc(e){return function(){return e}}var rc=Bo(),oc=Bo(!0);function ac(e){return e}function ic(e){return Dr("function"==typeof e?e:lr(e,1))}var uc=Zr((function(e,t){return function(n){return Pr(n,e,t)}})),cc=Zr((function(e,t){return function(n){return Pr(e,n,t)}}));function lc(e,t,n){var r=Lu(t),o=jr(t,r);null!=n||nu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=jr(t,Lu(t)));var a=!(nu(n)&&"chain"in n)||!!n.chain,i=Ji(e);return Ct(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),o=n.__actions__=Po(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function sc(){}var fc=Ko(Nt),dc=Ko(Rt),pc=Ko(zt);function vc(e){return _a(e)?Yt(Fa(e)):function(e){return function(t){return Er(t,e)}}(e)}var hc=Xo(),mc=Xo(!0);function bc(){return[]}function yc(){return!1}var gc=Ho((function(e,t){return e+t}),0),wc=Qo("ceil"),Oc=Ho((function(e,t){return e/t}),1),_c=Qo("floor");var jc=Ho((function(e,t){return e*t}),1),Ec=Qo("round"),Sc=Ho((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=mu(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ti,Bn.assign=Ou,Bn.assignIn=_u,Bn.assignInWith=ju,Bn.assignWith=Eu,Bn.at=Su,Bn.before=Ri,Bn.bind=Pi,Bn.bindAll=tc,Bn.bindKey=Ai,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Yi(e)?e:[e]},Bn.chain=vi,Bn.chunk=function(e,t,r){t=(r?Oa(e,t,r):t===a)?1:gn(mu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,u=0,c=n(pt(o/t));i<o;)c[u++]=oo(e,i,i+=t);return c},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Mt(Yi(r)?Po(r):[r],yr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=sa();return e=t?Nt(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Lu(e);return function(n){return sr(n,e,t)}}(lr(e,1))},Bn.constant=nc,Bn.countBy=bi,Bn.create=function(e,t){var n=Vn(e);return null==t?n:ar(n,t)},Bn.curry=function e(t,n,r){var o=Jo(t,8,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},Bn.curryRight=function e(t,n,r){var o=Jo(t,l,a,a,a,a,a,n=r?a:n);return o.placeholder=e.placeholder,o},Bn.debounce=Li,Bn.defaults=ku,Bn.defaultsDeep=xu,Bn.defer=Ni,Bn.delay=Mi,Bn.difference=Va,Bn.differenceBy=Wa,Bn.differenceWith=Ha,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===a?1:mu(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===a?1:mu(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?ho(e,sa(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?ho(e,sa(t,3),!0):[]},Bn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Oa(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=mu(n))<0&&(n=-n>o?0:o+n),(r=r===a||r>o?o:mu(r))<0&&(r+=o),r=n>r?0:bu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Yi(e)?Pt:br)(e,sa(t,3))},Bn.flatMap=function(e,t){return yr(Si(e,t),1)},Bn.flatMapDeep=function(e,t){return yr(Si(e,t),v)},Bn.flatMapDepth=function(e,t,n){return n=n===a?1:mu(n),yr(Si(e,t),n)},Bn.flatten=Xa,Bn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,v):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===a?1:mu(t)):[]},Bn.flip=function(e){return Jo(e,512)},Bn.flow=rc,Bn.flowRight=oc,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:jr(e,Lu(e))},Bn.functionsIn=function(e){return null==e?[]:jr(e,Nu(e))},Bn.groupBy=_i,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=$a,Bn.intersectionBy=Qa,Bn.intersectionWith=Za,Bn.invert=Ru,Bn.invertBy=Pu,Bn.invokeMap=ji,Bn.iteratee=ic,Bn.keyBy=Ei,Bn.keys=Lu,Bn.keysIn=Nu,Bn.map=Si,Bn.mapKeys=function(e,t){var n={};return t=sa(t,3),Or(e,(function(e,r,o){ir(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=sa(t,3),Or(e,(function(e,r,o){ir(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(lr(e,1))},Bn.matchesProperty=function(e,t){return Vr(e,lr(t,1))},Bn.memoize=Di,Bn.merge=Mu,Bn.mergeWith=Du,Bn.method=uc,Bn.methodOf=cc,Bn.mixin=lc,Bn.negate=Ii,Bn.nthArg=function(e){return e=mu(e),Zr((function(t){return Hr(t,e)}))},Bn.omit=Iu,Bn.omitBy=function(e,t){return Fu(e,Ii(sa(t)))},Bn.once=function(e){return Ri(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Yi(t)||(t=null==t?[]:[t]),Yi(n=r?a:n)||(n=null==n?[]:[n]),Kr(e,t,n))},Bn.over=fc,Bn.overArgs=zi,Bn.overEvery=dc,Bn.overSome=pc,Bn.partial=Fi,Bn.partialRight=Ui,Bn.partition=ki,Bn.pick=zu,Bn.pickBy=Fu,Bn.property=vc,Bn.propertyOf=function(e){return function(t){return null==e?a:Er(e,t)}},Bn.pull=Ja,Bn.pullAll=ei,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,sa(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,a,n):e},Bn.pullAt=ti,Bn.range=hc,Bn.rangeRight=mc,Bn.rearg=Bi,Bn.reject=function(e,t){return(Yi(e)?Pt:br)(e,Ii(sa(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;for(t=sa(t,3);++r<a;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return qr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Zr(e,t=t===a?t:mu(t))},Bn.reverse=ni,Bn.sampleSize=function(e,t,n){return t=(n?Oa(e,t,n):t===a)?1:mu(t),(Yi(e)?Jn:Jr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Yi(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Oa(e,t,n)?(t=0,n=r):(t=null==t?0:mu(t),n=n===a?r:mu(n)),oo(e,t,n)):[]},Bn.sortBy=xi,Bn.sortedUniq=function(e){return e&&e.length?co(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?co(e,sa(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&Oa(e,t,n)&&(t=n=a),(n=n===a?b:n>>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=so(t))&&cn(e)?jo(hn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:gn(mu(t),0),Zr((function(n){var r=n[t],o=jo(n,0,t);return r&&Mt(o,r),kt(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===a?1:mu(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===a?1:mu(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?ho(e,sa(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?ho(e,sa(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return nu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Li(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=hi,Bn.toArray=vu,Bn.toPairs=Uu,Bn.toPairsIn=Bu,Bn.toPath=function(e){return Yi(e)?Nt(e,Fa):su(e)?[e]:Po(za(wu(e)))},Bn.toPlainObject=gu,Bn.transform=function(e,t,n){var r=Yi(e),o=r||Qi(e)||fu(e);if(t=sa(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:nu(e)&&Ji(a)?Vn(Ye(e)):{}}return(o?Ct:Or)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Ti(e,1)},Bn.union=ri,Bn.unionBy=oi,Bn.unionWith=ai,Bn.uniq=function(e){return e&&e.length?fo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fo(e,sa(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?fo(e,a,t):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=ii,Bn.unzipWith=ui,Bn.update=function(e,t,n){return null==e?e:vo(e,t,wo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:vo(e,t,wo(n),r)},Bn.values=Vu,Bn.valuesIn=function(e){return null==e?[]:Jt(e,Nu(e))},Bn.without=ci,Bn.words=Ju,Bn.wrap=function(e,t){return Fi(wo(t),e)},Bn.xor=li,Bn.xorBy=si,Bn.xorWith=fi,Bn.zip=di,Bn.zipObject=function(e,t){return yo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Bn.zipWith=pi,Bn.entries=Uu,Bn.entriesIn=Bu,Bn.extend=_u,Bn.extendWith=ju,lc(Bn,Bn),Bn.add=gc,Bn.attempt=ec,Bn.camelCase=Wu,Bn.capitalize=Hu,Bn.ceil=wc,Bn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=yu(n))===n?n:0),t!==a&&(t=(t=yu(t))===t?t:0),cr(yu(e),t,n)},Bn.clone=function(e){return lr(e,4)},Bn.cloneDeep=function(e){return lr(e,5)},Bn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:a)},Bn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:a)},Bn.conformsTo=function(e,t){return null==t||sr(e,t,Lu(t))},Bn.deburr=Ku,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=Oc,Bn.endsWith=function(e,t,n){e=wu(e),t=so(t);var r=e.length,o=n=n===a?r:cr(mu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Bn.eq=Vi,Bn.escape=function(e){return(e=wu(e))&&G.test(e)?e.replace(Q,an):e},Bn.escapeRegExp=function(e){return(e=wu(e))&&ie.test(e)?e.replace(ae,"\\$&"):e},Bn.every=function(e,t,n){var r=Yi(e)?Rt:hr;return n&&Oa(e,t,n)&&(t=a),r(e,sa(t,3))},Bn.find=yi,Bn.findIndex=Ka,Bn.findKey=function(e,t){return Ut(e,sa(t,3),Or)},Bn.findLast=gi,Bn.findLastIndex=Ya,Bn.findLastKey=function(e,t){return Ut(e,sa(t,3),_r)},Bn.floor=_c,Bn.forEach=wi,Bn.forEachRight=Oi,Bn.forIn=function(e,t){return null==e?e:gr(e,sa(t,3),Nu)},Bn.forInRight=function(e,t){return null==e?e:wr(e,sa(t,3),Nu)},Bn.forOwn=function(e,t){return e&&Or(e,sa(t,3))},Bn.forOwnRight=function(e,t){return e&&_r(e,sa(t,3))},Bn.get=Cu,Bn.gt=Wi,Bn.gte=Hi,Bn.has=function(e,t){return null!=e&&ba(e,t,Cr)},Bn.hasIn=Tu,Bn.head=qa,Bn.identity=ac,Bn.includes=function(e,t,n,r){e=qi(e)?e:Vu(e),n=n&&!r?mu(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),lu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mu(n);return o<0&&(o=gn(r+o,0)),Vt(e,t,o)},Bn.inRange=function(e,t,n){return t=hu(t),n===a?(n=t,t=0):n=hu(n),function(e,t,n){return e>=wn(t,n)&&e<gn(t,n)}(e=yu(e),t,n)},Bn.invoke=Au,Bn.isArguments=Ki,Bn.isArray=Yi,Bn.isArrayBuffer=Xi,Bn.isArrayLike=qi,Bn.isArrayLikeObject=$i,Bn.isBoolean=function(e){return!0===e||!1===e||ru(e)&&kr(e)==O},Bn.isBuffer=Qi,Bn.isDate=Zi,Bn.isElement=function(e){return ru(e)&&1===e.nodeType&&!iu(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(qi(e)&&(Yi(e)||"string"==typeof e||"function"==typeof e.splice||Qi(e)||fu(e)||Ki(e)))return!e.length;var t=ma(e);if(t==k||t==P)return!e.size;if(Sa(e))return!Ir(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Lr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Lr(e,t,a,n):!!r},Bn.isError=Gi,Bn.isFinite=function(e){return"number"==typeof e&&gt(e)},Bn.isFunction=Ji,Bn.isInteger=eu,Bn.isLength=tu,Bn.isMap=ou,Bn.isMatch=function(e,t){return e===t||Nr(e,t,da(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,Nr(e,t,da(t),n)},Bn.isNaN=function(e){return au(e)&&e!=+e},Bn.isNative=function(e){if(Ea(e))throw new o("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=au,Bn.isObject=nu,Bn.isObjectLike=ru,Bn.isPlainObject=iu,Bn.isRegExp=uu,Bn.isSafeInteger=function(e){return eu(e)&&e>=-9007199254740991&&e<=h},Bn.isSet=cu,Bn.isString=lu,Bn.isSymbol=su,Bn.isTypedArray=fu,Bn.isUndefined=function(e){return e===a},Bn.isWeakMap=function(e){return ru(e)&&ma(e)==N},Bn.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==kr(e)},Bn.join=function(e,t){return null==e?"":Ft.call(e,t)},Bn.kebabCase=Yu,Bn.last=Ga,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=mu(n))<0?gn(r+o,0):wn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Ht,o,!0)},Bn.lowerCase=Xu,Bn.lowerFirst=qu,Bn.lt=du,Bn.lte=pu,Bn.max=function(e){return e&&e.length?mr(e,ac,xr):a},Bn.maxBy=function(e,t){return e&&e.length?mr(e,sa(t,2),xr):a},Bn.mean=function(e){return Kt(e,ac)},Bn.meanBy=function(e,t){return Kt(e,sa(t,2))},Bn.min=function(e){return e&&e.length?mr(e,ac,Fr):a},Bn.minBy=function(e,t){return e&&e.length?mr(e,sa(t,2),Fr):a},Bn.stubArray=bc,Bn.stubFalse=yc,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=jc,Bn.nth=function(e,t){return e&&e.length?Hr(e,mu(t)):a},Bn.noConflict=function(){return vt._===this&&(vt._=Ue),this},Bn.noop=sc,Bn.now=Ci,Bn.pad=function(e,t,n){e=wu(e);var r=(t=mu(t))?vn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Yo(ht(o),n)+e+Yo(pt(o),n)},Bn.padEnd=function(e,t,n){e=wu(e);var r=(t=mu(t))?vn(e):0;return t&&r<t?e+Yo(t-r,n):e},Bn.padStart=function(e,t,n){e=wu(e);var r=(t=mu(t))?vn(e):0;return t&&r<t?Yo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(wu(e).replace(ue,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Oa(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=hu(e),t===a?(t=e,e=0):t=hu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=jn();return wn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return $r(e,t)},Bn.reduce=function(e,t,n){var r=Yi(e)?Dt:qt,o=arguments.length<3;return r(e,sa(t,4),n,o,pr)},Bn.reduceRight=function(e,t,n){var r=Yi(e)?It:qt,o=arguments.length<3;return r(e,sa(t,4),n,o,vr)},Bn.repeat=function(e,t,n){return t=(n?Oa(e,t,n):t===a)?1:mu(t),Qr(wu(e),t)},Bn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,o=(t=Oo(t,e)).length;for(o||(o=1,e=a);++r<o;){var i=null==e?a:e[Fa(t[r])];i===a&&(r=o,i=n),e=Ji(i)?i.call(e):i}return e},Bn.round=Ec,Bn.runInContext=e,Bn.sample=function(e){return(Yi(e)?Gn:Gr)(e)},Bn.size=function(e){if(null==e)return 0;if(qi(e))return lu(e)?vn(e):e.length;var t=ma(e);return t==k||t==P?e.size:Ir(e).length},Bn.snakeCase=$u,Bn.some=function(e,t,n){var r=Yi(e)?zt:ao;return n&&Oa(e,t,n)&&(t=a),r(e,sa(t,3))},Bn.sortedIndex=function(e,t){return io(e,t)},Bn.sortedIndexBy=function(e,t,n){return uo(e,t,sa(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&Vi(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return io(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return uo(e,t,sa(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=io(e,t,!0)-1;if(Vi(e[n],t))return n}return-1},Bn.startCase=Qu,Bn.startsWith=function(e,t,n){return e=wu(e),n=null==n?0:cr(mu(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Bn.subtract=Sc,Bn.sum=function(e){return e&&e.length?$t(e,ac):0},Bn.sumBy=function(e,t){return e&&e.length?$t(e,sa(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&Oa(e,t,n)&&(t=a),e=wu(e),t=ju({},t,r,ea);var i,u,c=ju({},t.imports,r.imports,ea),l=Lu(c),s=Jt(c,l),f=0,d=t.interpolate||je,p="__p += '",v=xe((t.escape||je).source+"|"+d.source+"|"+(d===te?he:je).source+"|"+(t.evaluate||je).source+"|$","g"),h="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(v,(function(t,n,r,o,a,c){return r||(r=o),p+=e.slice(f,c).replace(Ee,un),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),a&&(u=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+t.length,t})),p+="';\n";var m=Me.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new o("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(u?p.replace(Y,""):p).replace(X,"$1").replace(q,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var b=ec((function(){return ce(l,h+"return "+p).apply(a,s)}));if(b.source=p,Gi(b))throw b;return b},Bn.times=function(e,t){if((e=mu(e))<1||e>h)return[];var n=b,r=wn(e,b);t=sa(t),e-=b;for(var o=Qt(r,t);++n<e;)t(n);return o},Bn.toFinite=hu,Bn.toInteger=mu,Bn.toLength=bu,Bn.toLower=function(e){return wu(e).toLowerCase()},Bn.toNumber=yu,Bn.toSafeInteger=function(e){return e?cr(mu(e),-9007199254740991,h):0===e?e:0},Bn.toString=wu,Bn.toUpper=function(e){return wu(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=wu(e))&&(n||t===a))return Zt(e);if(!e||!(t=so(t)))return e;var r=hn(e),o=hn(t);return jo(r,tn(r,o),nn(r,o)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=wu(e))&&(n||t===a))return e.slice(0,mn(e)+1);if(!e||!(t=so(t)))return e;var r=hn(e);return jo(r,0,nn(r,hn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=wu(e))&&(n||t===a))return e.replace(ue,"");if(!e||!(t=so(t)))return e;var r=hn(e);return jo(r,tn(r,hn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(nu(t)){var o="separator"in t?t.separator:o;n="length"in t?mu(t.length):n,r="omission"in t?so(t.omission):r}var i=(e=wu(e)).length;if(cn(e)){var u=hn(e);i=u.length}if(n>=i)return e;var c=n-vn(r);if(c<1)return r;var l=u?jo(u,0,c).join(""):e.slice(0,c);if(o===a)return l+r;if(u&&(c+=l.length-c),uu(o)){if(e.slice(c).search(o)){var s,f=l;for(o.global||(o=xe(o.source,wu(me.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var d=s.index;l=l.slice(0,d===a?c:d)}}else if(e.indexOf(so(o),c)!=c){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},Bn.unescape=function(e){return(e=wu(e))&&Z.test(e)?e.replace($,bn):e},Bn.uniqueId=function(e){var t=++De;return wu(e)+t},Bn.upperCase=Zu,Bn.upperFirst=Gu,Bn.each=wi,Bn.eachRight=Oi,Bn.first=qa,lc(Bn,function(){var e={};return Or(Bn,(function(t,n){Me.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Ct(["drop","take"],(function(e,t){Kn.prototype[e]=function(n){n=n===a?1:gn(mu(n),0);var r=this.__filtered__&&!t?new Kn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,b),type:e+(r.__dir__<0?"Right":"")}),r},Kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:sa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}})),Kn.prototype.compact=function(){return this.filter(ac)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Kn(this):this.map((function(n){return Pr(n,e,t)}))})),Kn.prototype.reject=function(e){return this.filter(Ii(sa(e)))},Kn.prototype.slice=function(e,t){e=mu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Kn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=mu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(b)},Or(Kn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Bn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,c=t instanceof Kn,l=u[0],s=c||Yi(t),f=function(e){var t=o.apply(Bn,Mt([e],u));return r&&d?t[0]:t};s&&n&&"function"==typeof l&&1!=l.length&&(c=s=!1);var d=this.__chain__,p=!!this.__actions__.length,v=i&&!d,h=c&&!p;if(!i&&s){t=h?t:new Kn(this);var m=e.apply(t,u);return m.__actions__.push({func:hi,args:[f],thisArg:a}),new Hn(m,d)}return v&&h?e.apply(this,u):(m=this.thru(f),v?r?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Yi(o)?o:[],e)}return this[n]((function(n){return t.apply(Yi(n)?n:[],e)}))}})),Or(Kn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Me.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Vo(a,2).name]=[{name:"wrapper",func:a}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Yi(e),r=t<0,o=n?e.length:0,a=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=wn(t,e+i);break;case"takeRight":e=gn(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,u=a.end,c=u-i,l=r?u:i-1,s=this.__iteratees__,f=s.length,d=0,p=wn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return mo(e,this.__actions__);var v=[];e:for(;c--&&d<p;){for(var h=-1,m=e[l+=t];++h<f;){var b=s[h],y=b.iteratee,g=b.type,w=y(m);if(2==g)m=w;else if(!w){if(1==g)continue e;break e}}v[d++]=m}return v},Bn.prototype.at=mi,Bn.prototype.chain=function(){return vi(this)},Bn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===a&&(this.__values__=vu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Ba(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kn){var t=e;return this.__actions__.length&&(t=new Kn(this)),(t=t.reverse()).__actions__.push({func:hi,args:[ni],thisArg:a}),new Hn(t,this.__chain__)}return this.thru(ni)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();vt._=yn,(o=function(){return yn}.call(t,n,t,r))===a||(r.exports=o)}).call(this)}).call(this,n(68),n(69)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return A}));var r=n(2),o=n(4),a=n(3),i=(n(19),n(0));i["useId".toString()];var u=n(14),c=n(15),l=n(22),s=n(5),f=Object(l.a)("Label",{id:void 0,controlRef:{current:null}}),d=Object(a.a)(f,2),p=(d[0],d[1]),v=n(33),h=n(34),m=n(27),b=n(11),y=["__scopeSwitch","aria-labelledby","name","checked","defaultChecked","required","disabled","value","onCheckedChange"],g=["__scopeSwitch"],w=["control","checked","bubbles"],O=Object(l.b)("Switch"),_=Object(a.a)(O,2),j=_[0],E=(_[1],j("Switch")),S=Object(a.a)(E,2),k=S[0],x=S[1],C=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=e["aria-labelledby"],l=e.name,f=e.checked,d=e.defaultChecked,v=e.required,h=e.disabled,g=e.value,w=void 0===g?"on":g,O=e.onCheckedChange,_=Object(o.a)(e,y),j=i.useState(null),E=Object(a.a)(j,2),S=E[0],x=E[1],C=Object(c.b)(t,(function(e){return x(e)})),P=function(e){var t=p("LabelConsumer"),n=t.controlRef;return i.useEffect((function(){e&&(n.current=e)}),[e,n]),t.id}(S),A=r||P,L=i.useRef(!1),N=!S||Boolean(S.closest("form")),M=Object(m.a)({prop:f,defaultProp:d,onChange:O}),D=Object(a.a)(M,2),I=D[0],z=void 0!==I&&I,F=D[1];return i.createElement(k,{scope:n,checked:z,disabled:h},i.createElement(u.a.button,Object(s.a)({type:"button",role:"switch","aria-checked":z,"aria-labelledby":A,"aria-required":v,"data-state":R(z),"data-disabled":h?"":void 0,disabled:h,value:w},_,{ref:C,onClick:Object(b.a)(e.onClick,(function(e){F((function(e){return!e})),N&&(L.current=e.isPropagationStopped(),L.current||e.stopPropagation())}))})),N&&i.createElement(T,{control:S,bubbles:!L.current,name:l,value:w,checked:z,required:v,disabled:h,style:{transform:"translateX(-100%)"}}))})),T=function(e){var t=e.control,n=e.checked,a=e.bubbles,u=void 0===a||a,c=Object(o.a)(e,w),l=i.useRef(null),f=Object(h.a)(n),d=Object(v.a)(t);return i.useEffect((function(){var e=l.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(s.a)({type:"checkbox","aria-hidden":!0,defaultChecked:n},c,{tabIndex:-1,ref:l,style:Object(r.a)(Object(r.a)(Object(r.a)({},e.style),d),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function R(e){return e?"checked":"unchecked"}var P=C,A=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=Object(o.a)(e,g),a=x("SwitchThumb",n);return i.createElement(u.a.span,Object(s.a)({"data-state":R(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}))},function(e,t,n){"use strict";var r=n(0),o=n(18),a=o.a?window:null,i=function(e){return!!e.addEventListener},u=function(e){return!!e.on},c=function(e,t,n,c){void 0===n&&(n=a),Object(r.useEffect)((function(){if(t&&n)return i(n)?Object(o.d)(n,e,t,c):u(n)&&n.on(e,t,c),function(){i(n)?Object(o.c)(n,e,t,c):u(n)&&n.off(e,t,c)}}),[e,t,n,JSON.stringify(c)])};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,l=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);c(u,f,l,s)}},function(e,t,n){"use strict";t.a=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}},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";n.d(t,"a",(function(){return T}));var r="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function a(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function i(e){"string"!==typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var u={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},c={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},l={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)u["f".concat(d)]=111+d;var p=[],v=!1,h="all",m=[],b=function(e){return u[e.toLowerCase()]||c[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function y(e){h=e||"all"}function g(){return h||"all"}var w=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,u=void 0===o?"+":o;i(t).forEach((function(e){var t=e.split(u),o=t.length,i=t[o-1],l="*"===i?"*":b(i);if(f[l]){n||(n=g());var s=o>1?a(c,t):[];f[l]=f[l].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,a=0;a<n.length;a++)-1===r.indexOf(n[a])&&(o=!1);return o}(e.mods,s))}))}}))};function O(e,t,n,r){var o;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var a in o=t.mods.length>0,s)Object.prototype.hasOwnProperty.call(s,a)&&(!s[a]&&t.mods.indexOf(+a)>-1||s[a]&&-1===t.mods.indexOf(+a))&&(o=!1);(0!==t.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function _(e,t){var n=f["*"],r=e.keyCode||e.which||e.charCode;if(j.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=l[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(n))))})),r in s){for(var o in s[r]=!0,c)c[o]===r&&(j[o]=!0);if(!n)return}for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(s[a]=e[l[a]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var i=g();if(n)for(var u=0;u<n.length;u++)n[u].scope===i&&("keydown"===e.type&&n[u].keydown||"keyup"===e.type&&n[u].keyup)&&O(e,n[u],i,t);if(r in f)for(var d=0;d<f[r].length;d++)if(("keydown"===e.type&&f[r][d].keydown||"keyup"===e.type&&f[r][d].keyup)&&f[r][d].key){for(var v=f[r][d],h=v.splitKey,m=v.key.split(h),y=[],w=0;w<m.length;w++)y.push(b(m[w]));y.sort().join("")===p.sort().join("")&&O(e,v,i,t)}}}function j(e,t,n){p=[];var r=i(e),u=[],l="all",d=document,h=0,y=!1,g=!0,w="+",O=!1;for(void 0===n&&"function"===typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(l=t.scope),t.element&&(d=t.element),t.keyup&&(y=t.keyup),void 0!==t.keydown&&(g=t.keydown),void 0!==t.capture&&(O=t.capture),"string"===typeof t.splitKey&&(w=t.splitKey)),"string"===typeof t&&(l=t);h<r.length;h++)u=[],(e=r[h].split(w)).length>1&&(u=a(c,e)),(e="*"===(e=e[e.length-1])?"*":b(e))in f||(f[e]=[]),f[e].push({keyup:y,keydown:g,scope:l,mods:u,shortcut:r[h],method:n,key:r[h],splitKey:w,element:d});"undefined"!==typeof d&&!function(e){return m.indexOf(e)>-1}(d)&&window&&(m.push(d),o(d,"keydown",(function(e){_(e,d)}),O),v||(v=!0,o(window,"focus",(function(){p=[]}),O)),o(d,"keyup",(function(e){_(e,d),function(e){var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==t&&224!==t||(t=91),t in s)for(var r in s[t]=!1,c)c[r]===t&&(j[r]=!1)}(e)}),O))}var E={setScope:y,getScope:g,deleteScope:function(e,t){var n,r;for(var o in e||(e=g()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(n=f[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;g()===e&&y(t||"all")},getPressedKeyCodes:function(){return p.slice(0)},isPressed:function(e){return"string"===typeof e&&(e=b(e)),-1!==p.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(n){var r=f[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&w(e)}));else if("object"===typeof e)e.key&&w(e);else if("string"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],a=n[1];"function"===typeof o&&(a=o,o=""),w({key:e,scope:o,method:a,splitKey:"+"})}},keyMap:u,modifier:c,modifierMap:l};for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(j[S]=E[S]);if("undefined"!==typeof window){var k=window.hotkeys;j.noConflict=function(e){return e&&window.hotkeys===j&&(window.hotkeys=k),j},window.hotkeys=j}var x=n(0);j.filter=function(){return!0};var C=function(e,t){var n=e.target,r=n&&n.tagName;return Boolean(r&&t&&t.includes(r))};function T(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var o=n||{},a=o.enableOnTags,i=o.filter,u=o.keyup,c=o.keydown,l=o.filterPreventDefault,s=void 0===l||l,f=o.enabled,d=void 0===f||f,p=o.enableOnContentEditable,v=void 0!==p&&p,h=Object(x.useRef)(null),m=Object(x.useCallback)((function(e,n){var r,o;return i&&!i(e)?!s:!!(C(e,["INPUT","TEXTAREA","SELECT"])&&!C(e,a)||null!=(r=e.target)&&r.isContentEditable&&!v)||!!(null===h.current||document.activeElement===h.current||null!=(o=h.current)&&o.contains(document.activeElement))&&(t(e,n),!0)}),r?[h,a,i].concat(r):[h,a,i]);return Object(x.useEffect)((function(){if(d)return u&&!0!==c&&(n.keydown=!1),j(e,n||{},m),function(){return j.unbind(e,m)};j.unbind(e,m)}),[m,e,d]),h}j.isPressed},,,,function(e,t,n){"use strict";var r=n(50),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,u=60110,c=60112;t.Suspense=60113;var l=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"),c=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=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,_={key:!0,ref:!0,__self:!0,__source:!0};function j(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)&&!_.hasOwnProperty(r)&&(a[r]=t[r]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var l=Array(c),s=0;s<c;s++)l[s]=arguments[s+2];a.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===a[r]&&(a[r]=c[r]);return{$$typeof:o,type:e,key:i,ref:u,props:a,_owner:w.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g;function k(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 x(e,t,n,r,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case a:c=!0}}if(c)return i=i(c=e),e=""===r?"."+k(c,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),x(i,t,n,"",(function(e){return e}))):null!=i&&(E(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||c&&c.key===i.key?"":(""+i.key).replace(S,"$&/")+"/")+e)),t.push(i)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var s=r+k(u=e[l],l);c+=x(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),l=0;!(u=e.next()).done;)c+=x(u=u.value,t,n,s=r+k(u,l++),i);else if("object"===u)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function C(e,t,n){if(null==e)return e;var r=[],o=0;return x(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(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 A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,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,c=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,c=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)O.call(t,s)&&!_.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){l=Array(s);for(var f=0;f<s;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:o,type:e.type,key:i,ref:u,props:a,_owner:c}},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=j,t.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:s,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:l,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(50),a=n(63);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,c={};function l(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(c[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,_=60103,j=60106,E=60107,S=60108,k=60114,x=60109,C=60110,T=60112,R=60113,P=60120,A=60115,L=60116,N=60121,M=60128,D=60129,I=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),j=F("react.portal"),E=F("react.fragment"),S=F("react.strict_mode"),k=F("react.profiler"),x=F("react.provider"),C=F("react.context"),T=F("react.forward_ref"),R=F("react.suspense"),P=F("react.suspense_list"),A=F("react.memo"),L=F("react.lazy"),N=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 U,B="function"===typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function K(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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.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 Y(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=K(e.type,!1);case 11:return e=K(e.type.render,!1);case 22:return e=K(e.type._render,!1);case 1:return e=K(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 E:return"Fragment";case j:return"Portal";case k:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return X(e.type);case N: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 $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(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 Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(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&&G(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 ce(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 le(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 _e(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 je=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 Ee(e,t){if(t){if(je[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 Se(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 ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ce=null,Te=null;function Re(e){if(e=ro(e)){if("function"!==typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=ao(t),xe(e.stateNode,e.type,t))}}function Pe(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Ae(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Le(e,t){return e(t)}function Ne(e,t,n,r,o){return e(t,n,r,o)}function Me(){}var De=Le,Ie=!1,ze=!1;function Fe(){null===Ce&&null===Te||(Me(),Ae())}function Ue(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 Be=!1;if(f)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(me){Be=!1}function We(e,t,n,r,o,a,i,u,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(s){this.onError(s)}}var He=!1,Ke=null,Ye=!1,Xe=null,qe={onError:function(e){He=!0,Ke=e}};function $e(e,t,n,r,o,a,i,u,c){He=!1,Ke=null,We.apply(qe,arguments)}function Qe(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 Ze(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 Ge(e){if(Qe(e)!==e)throw Error(i(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(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 Ge(o),e;if(a===r)return Ge(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,c=o.child;c;){if(c===n){u=!0,n=o,r=a;break}if(c===r){u=!0,r=o,n=a;break}c=c.sibling}if(!u){for(c=a.child;c;){if(c===n){u=!0,n=a,r=o;break}if(c===r){u=!0,r=a,n=o;break}c=c.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,ct=null,lt=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":ct=null;break;case"mouseover":case"mouseout":lt=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=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(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!==ct&&yt(ct)&&(ct=null),null!==lt&&yt(lt)&&(lt=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 _t(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!==ct&&Ot(ct,e),null!==lt&&Ot(lt,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 jt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:jt("Animation","AnimationEnd"),animationiteration:jt("Animation","AnimationIteration"),animationstart:jt("Animation","AnimationStart"),transitionend:jt("Transition","TransitionEnd")},St={},kt={};function xt(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return St[e]=n[t];return e}f&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ct=xt("animationend"),Tt=xt("animationiteration"),Rt=xt("animationstart"),Pt=xt("transitionend"),At=new Map,Lt=new Map,Nt=["abort","abort",Ct,"animationEnd",Tt,"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),At.set(r,o),l(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 c=a&~i;0!==c?(r=It(c),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 Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ut(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ut(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Bt(e){return e&-e}function Vt(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-(Kt(e)/Yt|0)|0},Kt=Math.log,Yt=Math.LN2;var Xt=a.unstable_UserBlockingPriority,qt=a.unstable_runWithPriority,$t=!0;function Qt(e,t,n,r){Ie||Me();var o=Gt,a=Ie;Ie=!0;try{Ne(o,e,t,n,r)}finally{(Ie=a)||Fe()}}function Zt(e,t,n,r){qt(Xt,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){var o;if($t)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 ct=mt(ct,e,t,n,r,o),!0;case"mouseover":return lt=mt(lt,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=ke(r);if(null!==(o=no(o))){var a=Qe(o);if(null===a)o=null;else{var i=a.tag;if(13===i){if(null!==(o=Ze(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 cn(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 ln,sn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=cn(dn),vn=o({},dn,{view:0,detail:0}),hn=cn(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:Cn,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?(ln=e.screenX-fn.screenX,sn=e.screenY-fn.screenY):sn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),bn=cn(mn),yn=cn(o({},mn,{dataTransfer:0})),gn=cn(o({},vn,{relatedTarget:0})),wn=cn(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=cn(On),jn=cn(o({},dn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return xn}var Tn=o({},vn,{key:function(e){if(e.key){var t=En[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?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,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=cn(Tn),Pn=cn(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=cn(o({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=cn(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=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=cn(Nn),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,Un=f&&(!In||zn&&8<zn&&11>=zn),Bn=String.fromCharCode(32),Vn=!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 Kn=!1;var Yn={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?!!Yn[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 $n=null,Qn=null;function Zn(e){Tr(e,0)}function Gn(e){if(Z(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(){$n&&($n.detachEvent("onpropertychange",ar),Qn=$n=null)}function ar(e){if("value"===e.propertyName&&Gn(Qn)){var t=[];if(qn(t,Qn,e,ke(e)),e=Zn,Ie)e(t);else{Ie=!0;try{Le(e,t)}finally{Ie=!1,Fe()}}}}function ir(e,t,n){"focusin"===e?(or(),Qn=n,($n=t).attachEvent("onpropertychange",ar)):"focusout"===e&&or()}function ur(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Qn)}function cr(e,t){if("click"===e)return Gn(t)}function lr(e,t){if("input"===e||"change"===e)return Gn(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=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((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,_r=!1;function jr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==gr||gr!==G(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(Nt,2);for(var Er="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<Er.length;Sr++)Lt.set(Er[Sr],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,c,l){if($e.apply(this,arguments),He){if(!He)throw Error(i(198));var s=Ke;He=!1,Ke=null,Ye||(Ye=!0,Xe=s)}}(r,t,void 0,e),e.currentTarget=null}function Tr(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],c=u.instance,l=u.currentTarget;if(u=u.listener,c!==a&&o.isPropagationStopped())break e;Cr(o,u,l),a=c}else for(i=0;i<r.length;i++){if(c=(u=r[i]).instance,l=u.currentTarget,u=u.listener,c!==a&&o.isPropagationStopped())break e;Cr(o,u,l),a=c}}}if(Ye)throw e=Xe,Ye=!1,Xe=null,e}function Rr(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){e[Pr]||(e[Pr]=!0,u.forEach((function(t){xr.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&&xr.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),Nr(a,e,o,t),i.add(u))}function Nr(e,t,n,r){var o=Lt.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Zt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Be||"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 c=i.tag;if((3===c||4===c)&&((c=i.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;i=i.return}for(;null!==u;){if(null===(i=no(u)))return;if(5===(c=i.tag)||6===c){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=ke(n),i=[];e:{var u=At.get(e);if(void 0!==u){var c=pn,l=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":c=Rn;break;case"focusin":l="focus",c=gn;break;case"focusout":l="blur",c=gn;break;case"beforeblur":case"afterblur":c=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":c=bn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=An;break;case Ct:case Tt:case Rt:c=wn;break;case Pt:c=Ln;break;case"scroll":c=hn;break;case"wheel":c=Mn;break;case"copy":case"cut":case"paste":c=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=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=Ue(v,d))&&s.push(Dr(v,h,p)))),f)break;v=v.return}0<s.length&&(u=new c(u,l,null,n,o),i.push({event:u,listeners:s}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!no(l)&&!l[eo])&&(c||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?no(l):null)&&(l!==(f=Qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(s=bn,h="onMouseLeave",d="onMouseEnter",v="mouse","pointerout"!==e&&"pointerover"!==e||(s=Pn,h="onPointerLeave",d="onPointerEnter",v="pointer"),f=null==c?u:oo(c),p=null==l?u:oo(l),(u=new s(h,v+"leave",c,n,o)).target=f,u.relatedTarget=p,h=null,no(o)===r&&((s=new s(d,v+"enter",l,n,o)).target=p,s.relatedTarget=f,h=s),f=h,c&&l)e:{for(d=l,v=0,p=s=c;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!==c&&Fr(i,u,c,s,!1),null!==l&&null!==f&&Fr(i,f,l,s,!0)}if("select"===(c=(u=r?oo(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===c&&"file"===u.type)var m=Jn;else if(Xn(u))if(er)m=lr;else{m=ur;var b=ir}else(c=u.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(m=cr);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":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,jr(i,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":jr(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 Kn?Wn(e,n)&&(g="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(g="onCompositionStart");g&&(Un&&"ko"!==n.locale&&(Kn||"onCompositionStart"!==g?"onCompositionEnd"===g&&Kn&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,Kn=!0)),0<(b=Ir(r,g)).length&&(g=new jn(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:(Vn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Kn)return"compositionend"===e||!In&&Wn(e,t)?(e=rn(),nn=tn=en=null,Kn=!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 Un&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ir(r,"onBeforeInput")).length&&(o=new jn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Tr(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=Ue(e,n))&&r.unshift(Dr(e,a,o)),null!=(a=Ue(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,c=u.alternate,l=u.stateNode;if(null!==c&&c===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(c=Ue(n,a))&&i.unshift(Dr(n,c,u)):o||null!=(c=Ue(n,a))&&i.push(Dr(n,c,u))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Ur(){}var Br=null,Vr=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 Kr="function"===typeof setTimeout?setTimeout:void 0,Yr="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 $r(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 Qr=0;var Zr=Math.random().toString(36).slice(2),Gr="__reactFiber$"+Zr,Jr="__reactProps$"+Zr,eo="__reactContainer$"+Zr,to="__reactEvents$"+Zr;function no(e){var t=e[Gr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Gr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[Gr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Gr]||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=[],co=-1;function lo(e){return{current:e}}function so(e){0>co||(e.current=uo[co],uo[co]=null,co--)}function fo(e,t){co++,uo[co]=e.current,e.current=t}var po={},vo=lo(po),ho=lo(!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 _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,mo=vo.current,fo(vo,e),fo(ho,ho.current),!0}function jo(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 Eo=null,So=null,ko=a.unstable_runWithPriority,xo=a.unstable_scheduleCallback,Co=a.unstable_cancelCallback,To=a.unstable_shouldYield,Ro=a.unstable_requestPaint,Po=a.unstable_now,Ao=a.unstable_getCurrentPriorityLevel,Lo=a.unstable_ImmediatePriority,No=a.unstable_UserBlockingPriority,Mo=a.unstable_NormalPriority,Do=a.unstable_LowPriority,Io=a.unstable_IdlePriority,zo={},Fo=void 0!==Ro?Ro:function(){},Uo=null,Bo=null,Vo=!1,Wo=Po(),Ho=1e4>Wo?Po:function(){return Po()-Wo};function Ko(){switch(Ao()){case Lo:return 99;case No:return 98;case Mo:return 97;case Do:return 96;case Io:return 95;default:throw Error(i(332))}}function Yo(e){switch(e){case 99:return Lo;case 98:return No;case 97:return Mo;case 96:return Do;case 95:return Io;default:throw Error(i(332))}}function Xo(e,t){return e=Yo(e),ko(e,t)}function qo(e,t,n){return e=Yo(e),xo(e,t,n)}function $o(){if(null!==Bo){var e=Bo;Bo=null,Co(e)}Qo()}function Qo(){if(!Vo&&null!==Uo){Vo=!0;var e=0;try{var t=Uo;Xo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Uo=null}catch(n){throw null!==Uo&&(Uo=Uo.slice(e+1)),xo(Lo,$o),n}finally{Vo=!1}}}var Zo=O.ReactCurrentBatchConfig;function Go(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=lo(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 ca=!1;function la(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;ca=!1;var i=a.firstBaseUpdate,u=a.lastBaseUpdate,c=a.shared.pending;if(null!==c){a.shared.pending=null;var l=c,s=l.next;l.next=null,null===u?i=s:u.next=s,u=l;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=l)}}if(null!==i){for(d=a.baseState,u=0,f=s=l=null;;){c=i.lane;var p=i.eventTime;if((r&c)===c){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(c=t,p=n,h.tag){case 1:if("function"===typeof(v=h.payload)){d=v.call(p,d,c);break e}d=v;break e;case 3:v.flags=-4097&v.flags|64;case 0:if(null===(c="function"===typeof(v=h.payload)?v.call(p,d,c):v)||void 0===c)break e;d=o({},d,c);break e;case 2:ca=!0}}null!==i.callback&&(e.flags|=32,null===(c=a.effects)?a.effects=[i]:c.push(i))}else p={eventTime:p,lane:c,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(s=f=p,l=d):f=f.next=p,u|=c;if(null===(i=i.next)){if(null===(c=a.shared.pending))break;i=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}null===f&&(l=d),a.baseState=l,a.firstBaseUpdate=s,a.lastBaseUpdate=f,Bu|=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)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dc(),o=pc(e),a=fa(r,o);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),vc(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dc(),o=pc(e),a=fa(r,o);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),vc(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dc(),r=pc(e),o=fa(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),da(e,o),vc(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 _a(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ma,la(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 ja=Array.isArray;function Ea(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 Sa(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 ka(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=Yc(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 c(e,t,n,r){return null===t||6!==t.tag?((t=Qc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ea(e,t,n),r.return=e,r):((r=Xc(n.type,n.key,n.props,null,e.mode,r)).ref=Ea(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=Zc(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=qc(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=Qc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Xc(t.type,t.key,t.props,null,e.mode,n)).ref=Ea(e,null,t),n.return=e,n;case j:return(t=Zc(t,e.mode,n)).return=e,t}if(ja(t)||V(t))return(t=qc(t,e.mode,n,null)).return=e,t;Sa(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:c(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?n.type===E?f(e,t,n.props.children,r,o):l(e,t,n,r):null;case j:return n.key===o?s(e,t,n,r):null}if(ja(n)||V(n))return null!==o?null:f(e,t,n,r,null);Sa(e,n)}return null}function v(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,o,r.key):l(t,e,r,o);case j:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ja(r)||V(r))return f(t,e=e.get(n)||null,r,o,null);Sa(t,r)}return null}function h(o,i,u,c){for(var l=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],c);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),i=a(b,i,h),null===s?l=b:s.sibling=b,s=b,f=m}if(h===u.length)return n(o,f),l;if(null===f){for(;h<u.length;h++)null!==(f=d(o,u[h],c))&&(i=a(f,i,h),null===s?l=f:s.sibling=f,s=f);return l}for(f=r(o,f);h<u.length;h++)null!==(m=v(f,o,h,u[h],c))&&(e&&null!==m.alternate&&f.delete(null===m.key?h:m.key),i=a(m,i,h),null===s?l=m:s.sibling=m,s=m);return e&&f.forEach((function(e){return t(o,e)})),l}function m(o,u,c,l){var s=V(c);if("function"!==typeof s)throw Error(i(150));if(null==(c=s.call(c)))throw Error(i(151));for(var f=s=null,h=u,m=u=0,b=null,y=c.next();null!==h&&!y.done;m++,y=c.next()){h.index>m?(b=h,h=null):b=h.sibling;var g=p(o,h,y.value,l);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=c.next())null!==(y=d(o,y.value,l))&&(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=c.next())null!==(y=v(h,o,m,y.value,l))&&(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,c){var l="object"===typeof a&&null!==a&&a.type===E&&null===a.key;l&&(a=a.props.children);var s="object"===typeof a&&null!==a;if(s)switch(a.$$typeof){case _:e:{for(s=a.key,l=r;null!==l;){if(l.key===s){if(7===l.tag){if(a.type===E){n(e,l.sibling),(r=o(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=o(l,a.props)).ref=Ea(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===E?((r=qc(a.props.children,e.mode,c,a.key)).return=e,e=r):((c=Xc(a.type,a.key,a.props,null,e.mode,c)).ref=Ea(e,r,a),c.return=e,e=c)}return u(e);case j:e:{for(l=a.key;null!==r;){if(r.key===l){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=Zc(a,e.mode,c)).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=Qc(a,e.mode,c)).return=e,e=r),u(e);if(ja(a))return h(e,r,a,c);if(V(a))return m(e,r,a,c);if(s&&Sa(e,a),"undefined"===typeof a&&!l)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 xa=ka(!0),Ca=ka(!1),Ta={},Ra=lo(Ta),Pa=lo(Ta),Aa=lo(Ta);function La(e){if(e===Ta)throw Error(i(174));return e}function Na(e,t){switch(fo(Aa,t),fo(Pa,e),fo(Ra,Ta),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(Aa)}function Da(e){La(Aa.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=lo(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 Ua=null,Ba=null,Va=!1;function Wa(e,t){var n=Hc(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 Ka(e){if(Va){var t=Ba;if(t){var n=t;if(!Ha(e,t)){if(!(t=qr(n.nextSibling))||!Ha(e,t))return e.flags=-1025&e.flags|2,Va=!1,void(Ua=e);Wa(Ua,n)}Ua=e,Ba=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Va=!1,Ua=e}}function Ya(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ua=e}function Xa(e){if(e!==Ua)return!1;if(!Va)return Ya(e),Va=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Ba;t;)Wa(e,t),t=qr(t.nextSibling);if(Ya(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){Ba=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ba=null}}else Ba=Ua?qr(e.stateNode.nextSibling):null;return!0}function qa(){Ba=Ua=null,Va=!1}var $a=[];function Qa(){for(var e=0;e<$a.length;e++)$a[e]._workInProgressVersionPrimary=null;$a.length=0}var Za=O.ReactCurrentDispatcher,Ga=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,Za.current=null===e||null===e.memoizedState?Li:Ni,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,Za.current=Mi,e=n(r,o)}while(oi)}if(Za.current=Ai,t=null!==ti&&null!==ti.next,Ja=0,ni=ti=ei=null,ri=!1,t)throw Error(i(300));return e}function ci(){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 li(){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=li(),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 c=u=a=null,l=o;do{var s=l.lane;if((Ja&s)===s)null!==c&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:s,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(u=c=f,a=r):c=c.next=f,ei.lanes|=s,Bu|=s}l=l.next}while(null!==l&&l!==o);null===c?a=r:c.next=u,sr(r,t.memoizedState)||(Ii=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=li(),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,$a.push(t))),e)return n(t._source);throw $a.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),c=Za.current,l=c.useState((function(){return pi(o,t,n)})),s=l[1],f=l[0];l=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},c.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=pc(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,i=e;0<i;){var c=31-Ht(i),l=1<<c;r[c]|=e,i&=~l}}}),[n,t,r]),c.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pc(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),l.queue=e,l.baseQueue=null,f=pi(o,t,n),l.memoizedState=l.baseState=f),f}function hi(e,t,n){return vi(li(),e,t,n)}function mi(e){var t=ci();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},ci().memoizedState=e}function gi(){return li().memoizedState}function wi(e,t,n,r){var o=ci();ei.flags|=e,o.memoizedState=bi(1|t,n,void 0,void 0===r?null:r)}function Oi(e,t,n,r){var o=li();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 _i(e,t){return wi(516,4,e,t)}function ji(e,t){return Oi(516,4,e,t)}function Ei(e,t){return Oi(4,2,e,t)}function Si(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 ki(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oi(4,2,Si.bind(null,t,e),n)}function xi(){}function Ci(e,t){var n=li();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 Ti(e,t){var n=li();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=Ko();Xo(98>n?98:n,(function(){e(!0)})),Xo(97<n?97:n,(function(){var n=Ga.transition;Ga.transition=1;try{e(!1),t()}finally{Ga.transition=n}}))}function Pi(e,t,n){var r=dc(),o=pc(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,c=i(u,n);if(a.eagerReducer=i,a.eagerState=c,sr(c,u))return}catch(l){}vc(e,o,r)}}var Ai={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 ci().memoizedState=[e,void 0===t?null:t],e},useContext:ua,useEffect:_i,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wi(4,2,Si.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wi(4,2,e,t)},useMemo:function(e,t){var n=ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ci();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:xi,useDeferredValue:function(e){var t=mi(e),n=t[0],r=t[1];return _i((function(){var t=Ga.transition;Ga.transition=1;try{r(e)}finally{Ga.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=ci();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},vi(r,e,t,n)},useOpaqueIdentifier:function(){if(Va){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(i(355))})),n=mi(t)[1];return 0===(2&ei.mode)&&(ei.flags|=516,bi(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return mi(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},Ni={readContext:ua,useCallback:Ci,useContext:ua,useEffect:ji,useImperativeHandle:ki,useLayoutEffect:Ei,useMemo:Ti,useReducer:fi,useRef:gi,useState:function(){return fi(si)},useDebugValue:xi,useDeferredValue:function(e){var t=fi(si),n=t[0],r=t[1];return ji((function(){var t=Ga.transition;Ga.transition=1;try{r(e)}finally{Ga.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:Ci,useContext:ua,useEffect:ji,useImperativeHandle:ki,useLayoutEffect:Ei,useMemo:Ti,useReducer:di,useRef:gi,useState:function(){return di(si)},useDebugValue:xi,useDeferredValue:function(e){var t=di(si),n=t[0],r=t[1];return ji((function(){var t=Ga.transition;Ga.transition=1;try{r(e)}finally{Ga.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?Ca(t,null,n,r):xa(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 Ui(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!==typeof i||Kc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Bi(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=Yc(i,r)).ref=t.ref,e.return=t,t.child=e)}function Bi(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 Vi(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},_c(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_c(t,e),null;t.memoizedState={baseLanes:0},_c(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,_c(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 Ki(e,t,n,r,o){if(yo(n)){var a=!0;_o(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),_a(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,u=t.memoizedProps;i.props=u;var c=i.context,l=n.contextType;"object"===typeof l&&null!==l?l=ua(l):l=bo(t,l=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||c!==l)&&Oa(t,i,r,l),ca=!1;var d=t.memoizedState;i.state=d,va(t,r,i,o),c=t.memoizedState,u!==r||d!==c||ho.current||ca?("function"===typeof s&&(ba(t,n,s,r),c=t.memoizedState),(u=ca||ga(t,n,u,r,d,c,l))?(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=c),i.props=r,i.state=c,i.context=l,r=u):("function"===typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,sa(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:Go(t.type,u),i.props=l,f=t.pendingProps,d=i.context,"object"===typeof(c=n.contextType)&&null!==c?c=ua(c):c=bo(t,c=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!==c)&&Oa(t,i,r,c),ca=!1,d=t.memoizedState,i.state=d,va(t,r,i,o);var v=t.memoizedState;u!==f||d!==v||ho.current||ca?("function"===typeof p&&(ba(t,n,p,r),v=t.memoizedState),(l=ca||ga(t,n,l,r,d,v,c))?(s||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,v,c),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,v,c)),"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=c,r=l):("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 Yi(e,t,n,r,a,o)}function Yi(e,t,n,r,o,a){Wi(e,t);var i=0!==(64&t.flags);if(!r&&!i)return o&&jo(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=xa(t,e.child,null,a),t.child=xa(t,null,u,a)):zi(e,t,u,a),t.memoizedState=r.state,o&&jo(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),Na(e,t.containerInfo)}var qi,$i,Qi,Zi={dehydrated:null,retryLane:0};function Gi(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&&Ka(t),e=o.children,a=o.fallback,i?(e=Ji(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Zi,e):"number"===typeof o.unstable_expectedLoadTime?(e=Ji(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Zi,t.lanes=33554432,e):((n=$c({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=Zi,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=$c(t,o,0,null),n=qc(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=Yc(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=Yc(i,u),null!==e?r=Yc(e,r):(r=qc(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),Bu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Yc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function iu(e,t){if(!Va)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),Qa(),(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(Aa.current);if(n=t.type,null!==e&&null!=t.stateNode)$i(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[Gr]=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<kr.length;e++)Rr(kr[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":ce(r,u),Rr("invalid",r)}for(var l in Ee(n,u),e=null,u)u.hasOwnProperty(l)&&(a=u[l],"children"===l?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):c.hasOwnProperty(l)&&null!=a&&"onScroll"===l&&Rr("scroll",r));switch(n){case"input":Q(r),re(r,u,!0);break;case"textarea":Q(r),se(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Ur)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Gr]=t,e[Jr]=r,qi(e,t),t.stateNode=e,l=Se(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<kr.length;a++)Rr(kr[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":ce(e,r),a=ue(e,r),Rr("invalid",e);break;default:a=r}Ee(n,a);var s=a;for(u in s)if(s.hasOwnProperty(u)){var f=s[u];"style"===u?_e(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&&(c.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Rr("scroll",e):null!=f&&w(e,u,f,l))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(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=Ur)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qi(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));n=La(Aa.current),La(Ra.current),Xa(t)?(r=t.stateNode,n=t.memoizedProps,r[Gr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Gr]=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&Bu)&&0===(134217727&Vu)||yc(Lu,Mu))),(r||n)&&(t.flags|=4),null);case 4:return Ma(),null===e&&Ar(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===(l=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!==(l=Fa(e))){for(t.flags|=64,iu(r,!1),null!==(u=l.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===(l=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=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,u.type=l.type,e=l.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()>Yu&&(t.flags|=64,u=!0,iu(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Fa(l))){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&&!l.alternate&&!Va)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>Yu&&1073741824!==n&&(t.flags|=64,u=!0,iu(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}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 jc(),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 cu(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),Qa(),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 jc(),null;default:return null}}function lu(e,t){try{var n="",r=t;do{n+=Y(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}},$i=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=Ur)}for(f in Ee(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var l=a[f];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(c.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var s=r[f];if(l=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&s!==l&&(null!=s||null!=l))if("style"===f)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[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,l=l?l.__html:void 0,null!=s&&l!==s&&(u=u||[]).push(f,s)):"children"===f?"string"!==typeof s&&"number"!==typeof s||(u=u||[]).push(f,""+s):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(c.hasOwnProperty(f)?(null!=s&&"onScroll"===f&&Rr("scroll",e),u||l===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)}},Qi=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(){Qu||(Qu=!0,Zu=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===Gu?Gu=new Set([this]):Gu.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){Uc(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:Go(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)&&(Ic(n,e),Dc(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:Go(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&&_t(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(So&&"function"===typeof So.onCommitFiberUnmount)try{So.onCommitFiberUnmount(Eo,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))Ic(t,n);else{r=t;try{o()}catch(a){Uc(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){Uc(t,a)}break;case 5:hu(t);break;case 4:Su(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 _u(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?ju(e,n,t):Eu(e,n,t)}function ju(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=Ur));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 Eu(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(Eu(e,t,n),e=e.sibling;null!==e;)Eu(e,t,n),e=e.sibling}function Su(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,c=o,l=c;;)if(gu(u,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break e;for(;null===l.sibling;){if(null===l.return||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(u=n,c=o.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):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 ku(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),Se(e,o),t=Se(e,r),o=0;o<a.length;o+=2){var u=a[o],c=a[o+1];"style"===u?_e(n,c):"dangerouslySetInnerHTML"===u?be(n,c):"children"===u?ye(n,c):w(n,u,c,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(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,_t(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ku=Ho(),yu(t.child,!0)),void xu(t);case 19:return void xu(t);case 23:case 24:return void yu(t,null!==t.memoizedState)}throw Error(i(163))}function xu(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=Vc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cu(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Tu=Math.ceil,Ru=O.ReactCurrentDispatcher,Pu=O.ReactCurrentOwner,Au=0,Lu=null,Nu=null,Mu=0,Du=0,Iu=lo(0),zu=0,Fu=null,Uu=0,Bu=0,Vu=0,Wu=0,Hu=null,Ku=0,Yu=1/0;function Xu(){Yu=Ho()+500}var qu,$u=null,Qu=!1,Zu=null,Gu=null,Ju=!1,ec=null,tc=90,nc=[],rc=[],oc=null,ac=0,ic=null,uc=-1,cc=0,lc=0,sc=null,fc=!1;function dc(){return 0!==(48&Au)?Ho():-1!==uc?uc:uc=Ho()}function pc(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Ko()?1:2;if(0===cc&&(cc=Uu),0!==Zo.transition){0!==lc&&(lc=null!==Hu?Hu.pendingLanes:0),e=cc;var t=4186112&~lc;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ko(),0!==(4&Au)&&98===e?e=Ut(12,cc):e=Ut(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),cc),e}function vc(e,t,n){if(50<ac)throw ac=0,ic=null,Error(i(185));if(null===(e=hc(e,t)))return null;Wt(e,t,n),e===Lu&&(Vu|=t,4===zu&&yc(e,Mu));var r=Ko();1===t?0!==(8&Au)&&0===(48&Au)?gc(e):(mc(e,n),0===Au&&(Xu(),$o())):(0===(4&Au)||98!==r&&99!==r||(null===oc?oc=new Set([e]):oc.add(e)),mc(e,n)),Hu=e}function hc(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 mc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var c=31-Ht(u),l=1<<c,s=a[c];if(-1===s){if(0===(l&r)||0!==(l&o)){s=t,It(l);var f=Dt;a[c]=10<=f?s+250:6<=f?s+5e3:-1}}else s<=t&&(e.expiredLanes|=l);u&=~l}if(r=zt(e,e===Lu?Mu:0),t=Dt,0===r)null!==n&&(n!==zo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zo&&Co(n)}15===t?(n=gc.bind(null,e),null===Uo?(Uo=[n],Bo=xo(Lo,Qo)):Uo.push(n),n=zo):14===t?n=qo(99,gc.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,bc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bc(e){if(uc=-1,lc=cc=0,0!==(48&Au))throw Error(i(327));var t=e.callbackNode;if(Mc()&&e.callbackNode!==t)return null;var n=zt(e,e===Lu?Mu:0);if(0===n)return null;var r=n,o=Au;Au|=16;var a=kc();for(Lu===e&&Mu===r||(Xu(),Ec(e,r));;)try{Tc();break}catch(c){Sc(e,c)}if(ra(),Ru.current=a,Au=o,null!==Nu?r=0:(Lu=null,Mu=0,r=zu),0!==(Uu&Vu))Ec(e,0);else if(0!==r){if(2===r&&(Au|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(n=Ft(e))&&(r=xc(e,n))),1===r)throw t=Fu,Ec(e,0),yc(e,n),mc(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:Ac(e);break;case 3:if(yc(e,n),(62914560&n)===n&&10<(r=Ku+500-Ho())){if(0!==zt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){dc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Kr(Ac.bind(null,e),r);break}Ac(e);break;case 4:if(yc(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*Tu(n/1960))-n)){e.timeoutHandle=Kr(Ac.bind(null,e),n);break}Ac(e);break;default:throw Error(i(329))}}return mc(e,Ho()),e.callbackNode===t?bc.bind(null,e):null}function yc(e,t){for(t&=~Wu,t&=~Vu,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 gc(e){if(0!==(48&Au))throw Error(i(327));if(Mc(),e===Lu&&0!==(e.expiredLanes&Mu)){var t=Mu,n=xc(e,t);0!==(Uu&Vu)&&(n=xc(e,t=zt(e,t)))}else n=xc(e,t=zt(e,0));if(0!==e.tag&&2===n&&(Au|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(t=Ft(e))&&(n=xc(e,t))),1===n)throw n=Fu,Ec(e,0),yc(e,t),mc(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ac(e),mc(e,Ho()),null}function wc(e,t){var n=Au;Au|=1;try{return e(t)}finally{0===(Au=n)&&(Xu(),$o())}}function Oc(e,t){var n=Au;Au&=-2,Au|=8;try{return e(t)}finally{0===(Au=n)&&(Xu(),$o())}}function _c(e,t){fo(Iu,Du),Du|=t,Uu|=t}function jc(){Du=Iu.current,so(Iu)}function Ec(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yr(n)),null!==Nu)for(n=Nu.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),Qa();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:jc()}n=n.return}Lu=e,Nu=Yc(e.current,null),Mu=Du=Uu=t,zu=0,Fu=null,Wu=Vu=Bu=0}function Sc(e,t){for(;;){var n=Nu;try{if(ra(),Za.current=Ai,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,Nu=null;break}e:{var a=e,i=n.return,u=n,c=t;if(t=Mu,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c;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(l),d.updateQueue=b}else m.add(l);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}c=void 0,u=t;var g=a.pingCache;if(null===g?(g=a.pingCache=new fu,c=new Set,g.set(l,c)):void 0===(c=g.get(l))&&(c=new Set,g.set(l,c)),!c.has(u)){c.add(u);var w=Bc.bind(null,a,l,u);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);c=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),c=lu(c,u),d=i;do{switch(d.tag){case 3:a=c,d.flags|=4096,t&=-t,d.lanes|=t,pa(d,du(0,a,t));break e;case 1:a=c;var O=d.type,_=d.stateNode;if(0===(64&d.flags)&&("function"===typeof O.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Gu||!Gu.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,pa(d,pu(d,a,t));break e}}d=d.return}while(null!==d)}Pc(n)}catch(j){t=j,Nu===n&&null!==n&&(Nu=n=n.return);continue}break}}function kc(){var e=Ru.current;return Ru.current=Ai,null===e?Ai:e}function xc(e,t){var n=Au;Au|=16;var r=kc();for(Lu===e&&Mu===t||Ec(e,t);;)try{Cc();break}catch(o){Sc(e,o)}if(ra(),Au=n,Ru.current=r,null!==Nu)throw Error(i(261));return Lu=null,Mu=0,zu}function Cc(){for(;null!==Nu;)Rc(Nu)}function Tc(){for(;null!==Nu&&!To();)Rc(Nu)}function Rc(e){var t=qu(e.alternate,e,Du);e.memoizedProps=e.pendingProps,null===t?Pc(e):Nu=t,Pu.current=null}function Pc(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(Nu=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=cu(t)))return n.flags&=2047,void(Nu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Nu=t);Nu=t=e}while(null!==t);0===zu&&(zu=5)}function Ac(e){var t=Ko();return Xo(99,Lc.bind(null,e,t)),null}function Lc(e,t){do{Mc()}while(null!==ec);if(0!==(48&Au))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,c=e.expirationTimes;0<a;){var l=31-Ht(a),s=1<<l;o[l]=0,u[l]=-1,c[l]=-1,a&=~s}if(null!==oc&&0===(24&r)&&oc.has(e)&&oc.delete(e),e===Lu&&(Nu=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=Au,Au|=32,Pu.current=null,Br=$t,br(u=mr())){if("selectionStart"in u)c={start:u.selectionStart,end:u.selectionEnd};else e:if(c=(c=u.ownerDocument)&&c.defaultView||window,(s=c.getSelection&&c.getSelection())&&0!==s.rangeCount){c=s.anchorNode,a=s.anchorOffset,l=s.focusNode,s=s.focusOffset;try{c.nodeType,l.nodeType}catch(k){c=null;break e}var f=0,d=-1,p=-1,v=0,h=0,m=u,b=null;t:for(;;){for(var y;m!==c||0!==a&&3!==m.nodeType||(d=f+a),m!==l||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===c&&++v===a&&(d=f),b===l&&++h===s&&(p=f),null!==(y=m.nextSibling))break;b=(m=b).parentNode}m=y}c=-1===d||-1===p?null:{start:d,end:p}}else c=null;c=c||{start:0,end:0}}else c=null;Vr={focusedElem:u,selectionRange:c},$t=!1,sc=null,fc=!1,$u=r;do{try{Nc()}catch(k){if(null===$u)throw Error(i(330));Uc($u,k),$u=$u.nextEffect}}while(null!==$u);sc=null,$u=r;do{try{for(u=e;null!==$u;){var g=$u.flags;if(16&g&&ye($u.stateNode,""),128&g){var w=$u.alternate;if(null!==w){var O=w.ref;null!==O&&("function"===typeof O?O(null):O.current=null)}}switch(1038&g){case 2:_u($u),$u.flags&=-3;break;case 6:_u($u),$u.flags&=-3,ku($u.alternate,$u);break;case 1024:$u.flags&=-1025;break;case 1028:$u.flags&=-1025,ku($u.alternate,$u);break;case 4:ku($u.alternate,$u);break;case 8:Su(u,c=$u);var _=c.alternate;wu(c),null!==_&&wu(_)}$u=$u.nextEffect}}catch(k){if(null===$u)throw Error(i(330));Uc($u,k),$u=$u.nextEffect}}while(null!==$u);if(O=Vr,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(),c=g.textContent.length,_=Math.min(u.start,c),u=void 0===u.end?_:Math.min(u.end,c),!O.extend&&_>u&&(c=u,u=_,_=c),c=vr(g,_),a=vr(g,u),c&&a&&(1!==O.rangeCount||O.anchorNode!==c.node||O.anchorOffset!==c.offset||O.focusNode!==a.node||O.focusOffset!==a.offset)&&((w=w.createRange()).setStart(c.node,c.offset),O.removeAllRanges(),_>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}$t=!!Br,Vr=Br=null,e.current=n,$u=r;do{try{for(g=e;null!==$u;){var j=$u.flags;if(36&j&&bu(g,$u.alternate,$u),128&j){w=void 0;var E=$u.ref;if(null!==E){var S=$u.stateNode;$u.tag,w=S,"function"===typeof E?E(w):E.current=w}}$u=$u.nextEffect}}catch(k){if(null===$u)throw Error(i(330));Uc($u,k),$u=$u.nextEffect}}while(null!==$u);$u=null,Fo(),Au=o}else e.current=n;if(Ju)Ju=!1,ec=e,tc=t;else for($u=r;null!==$u;)t=$u.nextEffect,$u.nextEffect=null,8&$u.flags&&((j=$u).sibling=null,j.stateNode=null),$u=t;if(0===(r=e.pendingLanes)&&(Gu=null),1===r?e===ic?ac++:(ac=0,ic=e):ac=0,n=n.stateNode,So&&"function"===typeof So.onCommitFiberRoot)try{So.onCommitFiberRoot(Eo,n,void 0,64===(64&n.current.flags))}catch(k){}if(mc(e,Ho()),Qu)throw Qu=!1,e=Zu,Zu=null,e;return 0!==(8&Au)||$o(),null}function Nc(){for(;null!==$u;){var e=$u.alternate;fc||null===sc||(0!==(8&$u.flags)?et($u,sc)&&(fc=!0):13===$u.tag&&Cu(e,$u)&&et($u,sc)&&(fc=!0));var t=$u.flags;0!==(256&t)&&mu(e,$u),0===(512&t)||Ju||(Ju=!0,qo(97,(function(){return Mc(),null}))),$u=$u.nextEffect}}function Mc(){if(90!==tc){var e=97<tc?97:tc;return tc=90,Xo(e,zc)}return!1}function Dc(e,t){nc.push(t,e),Ju||(Ju=!0,qo(97,(function(){return Mc(),null})))}function Ic(e,t){rc.push(t,e),Ju||(Ju=!0,qo(97,(function(){return Mc(),null})))}function zc(){if(null===ec)return!1;var e=ec;if(ec=null,0!==(48&Au))throw Error(i(331));var t=Au;Au|=32;var n=rc;rc=[];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(l){if(null===a)throw Error(i(330));Uc(a,l)}}for(n=nc,nc=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var c=o.create;o.destroy=c()}catch(l){if(null===a)throw Error(i(330));Uc(a,l)}}for(c=e.current.firstEffect;null!==c;)e=c.nextEffect,c.nextEffect=null,8&c.flags&&(c.sibling=null,c.stateNode=null),c=e;return Au=t,$o(),!0}function Fc(e,t,n){da(e,t=du(0,t=lu(n,t),1)),t=dc(),null!==(e=hc(e,1))&&(Wt(e,1,t),mc(e,t))}function Uc(e,t){if(3===e.tag)Fc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gu||!Gu.has(r))){var o=pu(n,e=lu(t,e),1);if(da(n,o),o=dc(),null!==(n=hc(n,1)))Wt(n,1,o),mc(n,o);else if("function"===typeof r.componentDidCatch&&(null===Gu||!Gu.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Bc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dc(),e.pingedLanes|=e.suspendedLanes&n,Lu===e&&(Mu&n)===n&&(4===zu||3===zu&&(62914560&Mu)===Mu&&500>Ho()-Ku?Ec(e,0):Wu|=n),mc(e,t)}function Vc(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===Ko()?1:2:(0===cc&&(cc=Uu),0===(t=Bt(62914560&~cc))&&(t=4194304))),n=dc(),null!==(e=hc(e,t))&&(Wt(e,t,n),mc(e,n))}function Wc(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 Hc(e,t,n,r){return new Wc(e,t,n,r)}function Kc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yc(e,t){var n=e.alternate;return null===n?((n=Hc(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 Xc(e,t,n,r,o,a){var u=2;if(r=e,"function"===typeof e)Kc(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case E:return qc(n.children,o,a,t);case D:u=8,o|=16;break;case S:u=8,o|=1;break;case k:return(e=Hc(12,n,t,8|o)).elementType=k,e.type=k,e.lanes=a,e;case R:return(e=Hc(13,n,t,o)).type=R,e.elementType=R,e.lanes=a,e;case P:return(e=Hc(19,n,t,o)).elementType=P,e.lanes=a,e;case I:return $c(n,o,a,t);case z:return(e=Hc(24,n,t,o)).elementType=z,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case x:u=10;break e;case C:u=9;break e;case T:u=11;break e;case A:u=14;break e;case L:u=16,r=null;break e;case N:u=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Hc(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function qc(e,t,n,r){return(e=Hc(7,e,r,t)).lanes=n,e}function $c(e,t,n,r){return(e=Hc(23,e,r,t)).elementType=I,e.lanes=n,e}function Qc(e,t,n){return(e=Hc(6,e,null,t)).lanes=n,e}function Zc(e,t,n){return(t=Hc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gc(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=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Jc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:j,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function el(e,t,n,r){var o=t.current,a=dc(),u=pc(o);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(yo(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(i(171))}if(1===n.tag){var l=n.type;if(yo(l)){n=Oo(n,l,c);break e}}n=c}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),vc(o,u,a),u}function tl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rl(e,t){nl(e,t),(e=e.alternate)&&nl(e,t)}function ol(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Gc(e,t,null!=n&&!0===n.hydrate),t=Hc(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,la(t),e[eo]=n.current,Ar(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 al(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function il(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=tl(i);u.call(e)}}el(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 ol(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"===typeof o){var c=o;o=function(){var e=tl(i);c.call(e)}}Oc((function(){el(t,i,e,o)}))}return tl(i)}function ul(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!al(t))throw Error(i(200));return Jc(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)&&_o(t);break;case 4:Na(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)?Gi(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,Vi(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;_o(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,la(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&ba(t,r,u,e),o.updater=ya,t.stateNode=o,o._reactInternals=t,_a(t,r,e,n),t=Yi(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 Kc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(o),e=Go(o,e),a){case 0:t=Hi(null,t,o,e,n);break e;case 1:t=Ki(null,t,o,e,n);break e;case 11:t=Fi(null,t,o,e,n);break e;case 14:t=Ui(null,t,o,Go(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:Go(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ki(e,t,r,o=t.elementType===r?o:Go(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)&&(Ba=qr(t.stateNode.containerInfo.firstChild),Ua=t,a=Va=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],$a.push(a);for(n=Ca(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&&Ka(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&&Ka(t),null;case 13:return Gi(e,t,n);case 4:return Na(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xa(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:Go(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 c=t.type._context;if(fo(Jo,c._currentValue),c._currentValue=a,null!==u)if(c=u.value,0===(a=sr(c,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(c,a):1073741823))){if(u.children===o.children&&!ho.current){t=au(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){u=c.child;for(var s=l.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&a)){1===c.tag&&((s=fa(-1,n&-n)).tag=2,da(c,s)),c.lanes|=n,null!==(s=c.alternate)&&(s.lanes|=n),aa(c.return,n),l.lanes|=n;break}s=s.next}}else u=10===c.tag&&c.type===t.type?null:c.child;if(null!==u)u.return=c;else for(u=c;null!==u;){if(u===t){u=null;break}if(null!==(c=u.sibling)){c.return=u.return,u=c;break}u=u.return}c=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=Go(o=t.type,t.pendingProps),Ui(e,t,o,a=Go(o.type,a),r,n);case 15:return Bi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Go(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,_o(t)):e=!1,ia(t,n),wa(t,r,o),_a(t,r,o,n),Yi(null,t,r,!0,e,n);case 19:return ou(e,t,n);case 23:case 24:return Vi(e,t,n)}throw Error(i(156,t.tag))},ol.prototype.render=function(e){el(e,this._internalRoot,null,null)},ol.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;el(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(vc(e,4,dc()),rl(e,4))},nt=function(e){13===e.tag&&(vc(e,67108864,dc()),rl(e,67108864))},rt=function(e){if(13===e.tag){var t=dc(),n=pc(e);vc(e,n,t),rl(e,n)}},ot=function(e,t){return t()},xe=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));Z(r),ne(r,o)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Le=wc,Ne=function(e,t,n,r,o){var a=Au;Au|=4;try{return Xo(98,e.bind(null,t,n,r,o))}finally{0===(Au=a)&&(Xu(),$o())}},Me=function(){0===(49&Au)&&(function(){if(null!==oc){var e=oc;oc=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,mc(e,Ho())}))}$o()}(),Mc())},De=function(e,t){var n=Au;Au|=2;try{return e(t)}finally{0===(Au=n)&&(Xu(),$o())}};var cl={Events:[ro,oo,ao,Pe,Ae,Mc,{current:!1}]},ll={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sl={bundleType:ll.bundleType,version:ll.version,rendererPackageName:ll.rendererPackageName,rendererConfig:ll.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:ll.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{Eo=fl.inject(sl),So=fl}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cl,t.createPortal=ul,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=Au;if(0!==(48&n))return e(t);Au|=1;try{if(e)return Xo(99,e.bind(null,t))}finally{Au=n,$o()}},t.hydrate=function(e,t,n){if(!al(t))throw Error(i(200));return il(null,e,t,!0,n)},t.render=function(e,t,n){if(!al(t))throw Error(i(200));return il(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!al(e))throw Error(i(40));return!!e._reactRootContainer&&(Oc((function(){il(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=wc,t.unstable_createPortal=function(e,t){return ul(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!al(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return il(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(64)},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 c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}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,_=O.port2;O.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+g;try{b(!0,e)?_.postMessage(null):(m=!1,b=null)}catch(n){throw _.postMessage(null),n}}else m=!1},r=function(e){b=e,m||(m=!0,_.postMessage(null))},o=function(e,n){y=p((function(){e(t.unstable_now())}),n)},a=function(){v(y),y=-1}}function j(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function S(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,c=e[u];if(void 0!==i&&0>k(i,n))void 0!==c&&0>k(c,i)?(e[r]=c,e[u]=n,r=u):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==c&&0>k(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],C=[],T=1,R=null,P=3,A=!1,L=!1,N=!1;function M(e){for(var t=E(C);null!==t;){if(null===t.callback)S(C);else{if(!(t.startTime<=e))break;S(C),t.sortIndex=t.expirationTime,j(x,t)}t=E(C)}}function D(e){if(N=!1,M(e),!L)if(null!==E(x))L=!0,r(I);else{var t=E(C);null!==t&&o(D,t.startTime-e)}}function I(e,n){L=!1,N&&(N=!1,a()),A=!0;var r=P;try{for(M(n),R=E(x);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===E(x)&&S(x),M(n)}else S(x);R=E(x)}if(null!==R)var c=!0;else{var l=E(C);null!==l&&o(D,l.startTime-n),c=!1}return c}finally{R=null,P=r,A=!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||A||(L=!0,r(I))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return E(x)},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 c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:T++,callback:n,priorityLevel:e,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>u?(e.sortIndex=i,j(C,e),null===E(x)&&e===E(C)&&(N?a():N=!0,o(D,i-u))):(e.sortIndex=c,j(x,e),L||A||(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 c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(P){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new C(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=S(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 c=s(e,t,n);if("normal"===c.type){if(r=n.done?v:d,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.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=l;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",h={};function m(){}function b(){}function y(){}var g={};c(g,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(T([])));O&&O!==n&&r.call(O,a)&&(g=O);var _=y.prototype=m.prototype=Object.create(g);function j(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,i,u){var c=s(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.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){l.value=e,i(l)}),(function(e){return n("throw",e,i,u)}))}u(c.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 S(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,S(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 k(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(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,c(_,"constructor",y),c(y,"constructor",b),b.displayName=c(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,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},j(E.prototype),c(E.prototype,i,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(_),c(_,u,"Generator"),c(_,a,(function(){return this})),c(_,"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=T,C.prototype={constructor:C,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(x),!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 c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)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),x(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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(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(50);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,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,s=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(s=t.ref),t)u.call(t,r)&&!c.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:l,ref:s,props:a,_owner:i.current}}t.jsx=l,t.jsxs=l},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(71);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(32),o=n(0),a=function(e){var t=e.sideCar,n=Object(r.b)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,Object(r.a)({},n))};function i(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(32);function o(e){return e}function a(e,t){void 0===t&&(t=o);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}}}}}function i(e){void 0===e&&(e={});var t=a(null);return t.options=Object(r.a)({async:!0,ssr:!1},e),t}},function(e,t,n){"use strict";var r=n(0),o=n(18),a=["mousedown","touchstart"];t.a=function(e,t,n){void 0===n&&(n=a);var i=Object(r.useRef)(t);Object(r.useEffect)((function(){i.current=t}),[t]),Object(r.useEffect)((function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&i.current(t)},r=0,a=n;r<a.length;r++){var u=a[r];Object(o.d)(document,u,t)}return function(){for(var e=0,r=n;e<r.length;e++){var a=r[e];Object(o.c)(document,a,t)}}}),[n,e])}},function(e,t,n){"use strict";var r=n(0),o=function(e,t){return"boolean"===typeof t?t:!e};t.a=function(e){return Object(r.useReducer)(o,e)}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(35),i=n.n(a);function u(){return u=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},u.apply(this,arguments)}function c(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}var l=Object(r.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,a=e.size,i=void 0===a?24:a,l=c(e,["color","size"]);return o.a.createElement("svg",u({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),o.a.createElement("path",{d:"M18 8h1a4 4 0 0 1 0 8h-1"}),o.a.createElement("path",{d:"M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"}),o.a.createElement("line",{x1:"6",y1:"1",x2:"6",y2:"4"}),o.a.createElement("line",{x1:"10",y1:"1",x2:"10",y2:"4"}),o.a.createElement("line",{x1:"14",y1:"1",x2:"14",y2:"4"}))}));l.propTypes={color:i.a.string,size:i.a.oneOfType([i.a.string,i.a.number])},l.displayName="Coffee",t.a=l},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",u=n(83),c=n(76),l=Object(c.a)(),s=function(){},f=o.forwardRef((function(e,t){var n=o.useRef(null),a=o.useState({onScrollCapture:s,onWheelCapture:s,onTouchMoveCapture:s}),i=a[0],c=a[1],f=e.forwardProps,d=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,_=void 0===O?"div":O,j=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"]),E=b,S=Object(u.a)([n,t]),k=r(r({},j),i);return o.createElement(o.Fragment,null,h&&o.createElement(E,{sideCar:l,removeScrollBar:v,shards:m,noIsolation:y,inert:g,setCallbacks:c,allowPinchZoom:!!w,lockRef:n}),f?o.cloneElement(o.Children.only(d),r(r({},k),{ref:S})):o.createElement(_,r({},k,{className:p,ref:S}),d))}));f.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},f.classNames={fullWidth:i,zeroRight:a};var d=n(75),p=n(41);var v=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Object(p.a)();return t&&e.setAttribute("nonce",t),e}())&&(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)}}},h=function(){var e=function(){var e=v();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}},m={left:0,top:0,right:0,gap:0},b=function(e){return parseInt(e||"",10)||0},y=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return m;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[b(n),b(r),b(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])}},g=h(),w=function(e,t,n,r){var o=e.left,u=e.top,c=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"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(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(i," {\n margin-right: ").concat(l,"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(l,"px;\n }\n")},O=function(e){var t=o.useState(y(e.gapMode)),n=t[0],r=t[1];o.useEffect((function(){r(y(e.gapMode))}),[e.gapMode]);var a=e.noRelative,i=e.noImportant,u=e.gapMode,c=void 0===u?"margin":u;return o.createElement(g,{styles:w(n,!a,c,i?"":"!important")})},_=!1;if("undefined"!==typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(D){_=!1}var E=!!_&&{passive:!1},S=function(e,t){var n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),k(e,n)){var r=x(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},k=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)},x=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},C=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},T=function(e){return[e.deltaX,e.deltaY]},R=function(e){return e&&"current"in e?e.current:e},P=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},A=0,L=[];var N=Object(d.a)(l,(function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),a=o.useState(A++)[0],i=o.useState((function(){return h()}))[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(R),!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 c=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var o,a=C(e),i=n.current,c="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=S(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=S(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(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,c=t.contains(u),l=!1,s=i>0,f=0,d=0;do{var p=x(e,u),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&k(e,u)&&(f+=h,d+=v),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(s&&(o&&0===f||!o&&i>f)||!s&&(o&&0===d||!o&&-i>d))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)}),[]),l=o.useCallback((function(e){var n=e;if(L.length&&L[L.length-1]===i){var r="deltaY"in n?T(n):C(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(R).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?c(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=C(e),r.current=void 0}),[]),d=o.useCallback((function(t){s(t.type,T(t),t.target,c(t,e.lockRef.current))}),[]),p=o.useCallback((function(t){s(t.type,C(t),t.target,c(t,e.lockRef.current))}),[]);o.useEffect((function(){return L.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,E),document.addEventListener("touchmove",l,E),document.addEventListener("touchstart",f,E),function(){L=L.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,E),document.removeEventListener("touchmove",l,E),document.removeEventListener("touchstart",f,E)}}),[]);var v=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(i,{styles:P(a)}):null,v?o.createElement(O,{gapMode:"margin"}):null)})),M=o.forwardRef((function(e,t){return o.createElement(f,r({},e,{ref:t,sideCar:N}))}));M.classNames=f.classNames;t.a=M},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(18);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(54),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],c=o[1];i((function(){!u&&n?n(c):u&&t&&t(c)}),[u])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e,t){return function(e,t){var n=Object(r.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)}))}))}}]]);