130 lines
471 KiB
JavaScript
130 lines
471 KiB
JavaScript
var g_=Object.defineProperty;var y_=(e,t,n)=>t in e?g_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ch=(e,t,n)=>(y_(e,typeof t!="symbol"?t+"":t,n),n);function w_(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var vU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ni={},__={get exports(){return Ni},set exports(e){Ni=e}},gl={},w={},b_={get exports(){return w},set exports(e){w=e}},ce={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var aa=Symbol.for("react.element"),E_=Symbol.for("react.portal"),C_=Symbol.for("react.fragment"),R_=Symbol.for("react.strict_mode"),x_=Symbol.for("react.profiler"),k_=Symbol.for("react.provider"),O_=Symbol.for("react.context"),T_=Symbol.for("react.forward_ref"),P_=Symbol.for("react.suspense"),N_=Symbol.for("react.memo"),L_=Symbol.for("react.lazy"),fh=Symbol.iterator;function A_(e){return e===null||typeof e!="object"?null:(e=fh&&e[fh]||e["@@iterator"],typeof e=="function"?e:null)}var Tg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pg=Object.assign,Ng={};function Io(e,t,n){this.props=e,this.context=t,this.refs=Ng,this.updater=n||Tg}Io.prototype.isReactComponent={};Io.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Io.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lg(){}Lg.prototype=Io.prototype;function ud(e,t,n){this.props=e,this.context=t,this.refs=Ng,this.updater=n||Tg}var cd=ud.prototype=new Lg;cd.constructor=ud;Pg(cd,Io.prototype);cd.isPureReactComponent=!0;var dh=Array.isArray,Ag=Object.prototype.hasOwnProperty,fd={current:null},Ig={key:!0,ref:!0,__self:!0,__source:!0};function Dg(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Ag.call(t,r)&&!Ig.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:aa,type:e,key:i,ref:a,props:o,_owner:fd.current}}function I_(e,t){return{$$typeof:aa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dd(e){return typeof e=="object"&&e!==null&&e.$$typeof===aa}function D_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ph=/\/+/g;function Su(e,t){return typeof e=="object"&&e!==null&&e.key!=null?D_(""+e.key):t.toString(36)}function is(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case aa:case E_:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Su(a,0):r,dh(o)?(n="",e!=null&&(n=e.replace(ph,"$&/")+"/"),is(o,t,n,"",function(u){return u})):o!=null&&(dd(o)&&(o=I_(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(ph,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",dh(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+Su(i,s);a+=is(i,t,n,l,o)}else if(l=A_(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+Su(i,s++),a+=is(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ta(e,t,n){if(e==null)return e;var r=[],o=0;return is(e,r,"","",function(i){return t.call(n,i,o++)}),r}function M_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},as={transition:null},$_={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:as,ReactCurrentOwner:fd};ce.Children={map:Ta,forEach:function(e,t,n){Ta(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ta(e,function(){t++}),t},toArray:function(e){return Ta(e,function(t){return t})||[]},only:function(e){if(!dd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Io;ce.Fragment=C_;ce.Profiler=x_;ce.PureComponent=ud;ce.StrictMode=R_;ce.Suspense=P_;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$_;ce.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Pg({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=fd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Ag.call(t,l)&&!Ig.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:aa,type:e.type,key:o,ref:i,props:r,_owner:a}};ce.createContext=function(e){return e={$$typeof:O_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:k_,_context:e},e.Consumer=e};ce.createElement=Dg;ce.createFactory=function(e){var t=Dg.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:T_,render:e}};ce.isValidElement=dd;ce.lazy=function(e){return{$$typeof:L_,_payload:{_status:-1,_result:e},_init:M_}};ce.memo=function(e,t){return{$$typeof:N_,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=as.transition;as.transition={};try{e()}finally{as.transition=t}};ce.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ce.useCallback=function(e,t){return tt.current.useCallback(e,t)};ce.useContext=function(e){return tt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return tt.current.useEffect(e,t)};ce.useId=function(){return tt.current.useId()};ce.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return tt.current.useMemo(e,t)};ce.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};ce.useRef=function(e){return tt.current.useRef(e)};ce.useState=function(e){return tt.current.useState(e)};ce.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return tt.current.useTransition()};ce.version="18.2.0";(function(e){e.exports=ce})(b_);const q=ld(w),Lt=w_({__proto__:null,default:q},[w]);/**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var U_=w,F_=Symbol.for("react.element"),j_=Symbol.for("react.fragment"),z_=Object.prototype.hasOwnProperty,B_=U_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V_={key:!0,ref:!0,__self:!0,__source:!0};function Mg(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)z_.call(t,r)&&!V_.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:F_,type:e,key:i,ref:a,props:o,_owner:B_.current}}gl.Fragment=j_;gl.jsx=Mg;gl.jsxs=Mg;(function(e){e.exports=gl})(__);const wn=Ni.Fragment,R=Ni.jsx,se=Ni.jsxs;const W_="modulepreload",H_=function(e,t){return new URL(e,t).href},hh={},_n=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=H_(i,r),i in hh)return;hh[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":W_,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function Qt(e){return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K_(e,t){if(Qt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $g(e){var t=K_(e,"string");return Qt(t)==="symbol"?t:String(t)}function vh(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,$g(r.key),r)}}function Mt(e,t,n){return t&&vh(e.prototype,t),n&&vh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _c(e,t){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_c(e,t)}function yl(e,t){if(typeof t!="function"&&t!==null)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_c(e,t)}function sa(e,t){if(t&&(Qt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hn(e)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cn(e)}function fn(e,t,n){return t=$g(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ug(e){if(Array.isArray(e))return e}function Q_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fg(e,t){if(e){if(typeof e=="string")return mh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mh(e,t)}}function jg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q_(e){return Ug(e)||Q_(e)||Fg(e)||jg()}function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var G_={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},Y_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.init(t,n)}return Mt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||G_,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,o,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,yh(yh({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),an=new Y_,nr=function(){function e(){Dt(this,e),this.observers={}}return Mt(e,[{key:"on",value:function(n,r){var o=this;return n.split(" ").forEach(function(i){o.observers[i]=o.observers[i]||[],o.observers[i].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(o){return o!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,o)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(o))})}}}]),e}();function Qo(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function wh(e){return e==null?"":""+e}function X_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function pd(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function Sh(e,t,n){var r=pd(e,t,Object),o=r.obj,i=r.k;o[i]=n}function J_(e,t,n,r){var o=pd(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function Es(e,t){var n=pd(e,t),r=n.obj,o=n.k;if(r)return r[o]}function _h(e,t,n){var r=Es(e,n);return r!==void 0?r:Es(t,n)}function zg(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):zg(e[r],t[r],n):e[r]=t[r]);return e}function Br(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Z_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function eb(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Z_[t]}):e}var wl=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,tb=[" ",",","?","!",";"];function nb(e,t,n){t=t||"",n=n||"";var r=tb.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var o=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rb(e){var t=ob();return function(){var r=cn(e),o;if(t){var i=cn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return sa(this,o)}}function ob(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,s=r.slice(i,i+a).join(n),l=o[s];l===void 0&&r.length>i+a;)a++,s=r.slice(i,i+a).join(n),l=o[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var u=r.slice(i+a).join(n);return u?Bg(l,u,n):void 0}o=o[r[i]]}return o}}var ib=function(e){yl(n,e);var t=rb(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Dt(this,n),o=t.call(this),wl&&nr.call(Hn(o)),o.data=r||{},o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return Mt(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var i=this.options.ns.indexOf(o);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,u=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[o,i];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(l?a.split(l):a)),o.indexOf(".")>-1&&(c=o.split("."));var f=Es(this.data,c);return f||!u||typeof a!="string"?f:Bg(this.data&&this.data[o]&&this.data[o][i],a,l)}},{key:"addResource",value:function(o,i,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var c=[o,i];a&&(c=c.concat(u?a.split(u):a)),o.indexOf(".")>-1&&(c=o.split("."),s=i,i=c[1]),this.addNamespaces(i),Sh(this.data,c,s),l.silent||this.emit("added",o,i,a,s)}},{key:"addResources",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(o,i,l,a[l],{silent:!0});s.silent||this.emit("added",o,i,a)}},{key:"addResourceBundle",value:function(o,i,a,s,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[o,i];o.indexOf(".")>-1&&(c=o.split("."),s=a,a=i,i=c[1]),this.addNamespaces(i);var f=Es(this.data,c)||{};s?zg(f,a,l):f=Pa(Pa({},f),a),Sh(this.data,c,f),u.silent||this.emit("added",o,i,a)}},{key:"removeResourceBundle",value:function(o,i){this.hasResourceBundle(o,i)&&delete this.data[o][i],this.removeNamespaces(i),this.emit("removed",o,i)}},{key:"hasResourceBundle",value:function(o,i){return this.getResource(o,i)!==void 0}},{key:"getResourceBundle",value:function(o,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Pa(Pa({},{}),this.getResource(o,i)):this.getResource(o,i)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var i=this.getDataByLanguage(o),a=i&&Object.keys(i)||[];return!!a.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(nr),Vg={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,o,i){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,o,i))}),n}};function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ab(e){var t=sb();return function(){var r=cn(e),o;if(t){var i=cn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return sa(this,o)}}function sb(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Ch={},Rh=function(e){yl(n,e);var t=ab(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Dt(this,n),o=t.call(this),wl&&nr.call(Hn(o)),X_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Hn(o)),o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=an.create("translator"),o}return Mt(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var a=this.resolve(o,i);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(o,i){var a=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ns||this.options.defaultNS||[],u=a&&o.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!nb(o,a,s);if(u&&!c){var f=o.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:o,namespaces:l};var p=o.split(a);(a!==s||a===s&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),o=p.join(s)}return typeof l=="string"&&(l=[l]),{key:o,namespaces:l}}},{key:"translate",value:function(o,i,a){var s=this;if(Qt(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,u=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,c=this.extractFromKey(o[o.length-1],i),f=c.key,p=c.namespaces,v=p[p.length-1],g=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g&&g.toLowerCase()==="cimode"){if(y){var S=i.nsSeparator||this.options.nsSeparator;return l?(h.res="".concat(v).concat(S).concat(f),h):"".concat(v).concat(S).concat(f)}return l?(h.res=f,h):f}var h=this.resolve(o,i),d=h&&h.res,m=h&&h.usedKey||f,_=h&&h.exactUsedKey||f,x=Object.prototype.toString.apply(d),C=["[object Number]","[object Function]","[object RegExp]"],T=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,W=typeof d!="string"&&typeof d!="boolean"&&typeof d!="number";if(N&&d&&W&&C.indexOf(x)<0&&!(typeof T=="string"&&x==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var M=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,d,Je(Je({},i),{},{ns:p})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return l?(h.res=M,h):M}if(u){var ee=x==="[object Array]",pe=ee?[]:{},ue=ee?_:m;for(var K in d)if(Object.prototype.hasOwnProperty.call(d,K)){var j="".concat(ue).concat(u).concat(K);pe[K]=this.translate(j,Je(Je({},i),{joinArrays:!1,ns:p})),pe[K]===j&&(pe[K]=d[K])}d=pe}}else if(N&&typeof T=="string"&&x==="[object Array]")d=d.join(T),d&&(d=this.extendTranslation(d,o,i,a));else{var X=!1,O=!1,P=i.count!==void 0&&typeof i.count!="string",H=n.hasDefaultValue(i),$=P?this.pluralResolver.getSuffix(g,i.count,i):"",U=i["defaultValue".concat($)]||i.defaultValue;!this.isValidLookup(d)&&H&&(X=!0,d=U),this.isValidLookup(d)||(O=!0,d=f);var E=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=E&&O?void 0:d,A=H&&U!==d&&this.options.updateMissing;if(O||X||A){if(this.logger.log(A?"updateKey":"missingKey",g,v,f,A?U:d),u){var J=this.resolve(f,Je(Je({},i),{},{keySeparator:!1}));J&&J.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&z&&z[0])for(var Z=0;Z<z.length;Z++)F.push(z[Z]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(i.lng||this.language):F.push(i.lng||this.language);var Y=function(we,de,Se){var rt=H&&Se!==d?Se:L;s.options.missingKeyHandler?s.options.missingKeyHandler(we,v,de,rt,A,i):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(we,v,de,rt,A,i),s.emit("missingKey",we,v,de,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?F.forEach(function(he){s.pluralResolver.getSuffixes(he,i).forEach(function(we){Y([he],f+we,i["defaultValue".concat(we)]||U)})}):Y(F,f,U))}d=this.extendTranslation(d,o,i,h,a),O&&d===f&&this.options.appendNamespaceToMissingKey&&(d="".concat(v,":").concat(f)),(O||X)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(v,":").concat(f):f,X?d:void 0):d=this.options.parseMissingKeyHandler(d))}return l?(h.res=d,h):d}},{key:"extendTranslation",value:function(o,i,a,s,l){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,Je(Je({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Je(Je({},a),{interpolation:Je(Je({},this.options.interpolation),a.interpolation)}));var c=typeof o=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(c){var p=o.match(this.interpolator.nestingRegexp);f=p&&p.length}var v=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(v=Je(Je({},this.options.interpolation.defaultVariables),v)),o=this.interpolator.interpolate(o,v,a.lng||this.language,a),c){var g=o.match(this.interpolator.nestingRegexp),y=g&&g.length;f<y&&(a.nest=!1)}a.nest!==!1&&(o=this.interpolator.nest(o,function(){for(var d=arguments.length,m=new Array(d),_=0;_<d;_++)m[_]=arguments[_];return l&&l[0]===m[0]&&!a.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(m[0]," in key: ").concat(i[0])),null):u.translate.apply(u,m.concat([i]))},a)),a.interpolation&&this.interpolator.reset()}var S=a.postProcess||this.options.postProcess,h=typeof S=="string"?[S]:S;return o!=null&&h&&h.length&&a.applyPostProcessor!==!1&&(o=Vg.handle(h,o,i,this.options&&this.options.postProcessPassResolved?Je({i18nResolved:s},a):a,this)),o}},{key:"resolve",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,u,c,f;return typeof o=="string"&&(o=[o]),o.forEach(function(p){if(!i.isValidLookup(s)){var v=i.extractFromKey(p,a),g=v.key;l=g;var y=v.namespaces;i.options.fallbackNS&&(y=y.concat(i.options.fallbackNS));var S=a.count!==void 0&&typeof a.count!="string",h=S&&!a.ordinal&&a.count===0&&i.pluralResolver.shouldUseIntlApi(),d=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",m=a.lngs?a.lngs:i.languageUtils.toResolveHierarchy(a.lng||i.language,a.fallbackLng);y.forEach(function(_){i.isValidLookup(s)||(f=_,!Ch["".concat(m[0],"-").concat(_)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(f)&&(Ch["".concat(m[0],"-").concat(_)]=!0,i.logger.warn('key "'.concat(l,'" for languages "').concat(m.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(function(x){if(!i.isValidLookup(s)){c=x;var C=[g];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(C,g,x,_,a);else{var T;S&&(T=i.pluralResolver.getSuffix(x,a.count,a));var N="".concat(i.options.pluralSeparator,"zero");if(S&&(C.push(g+T),h&&C.push(g+N)),d){var W="".concat(g).concat(i.options.contextSeparator).concat(a.context);C.push(W),S&&(C.push(W+T),h&&C.push(W+N))}}for(var M;M=C.pop();)i.isValidLookup(s)||(u=M,s=i.getResource(x,_,M,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:u,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,i,a,s):this.resourceStore.getResource(o,i,a,s)}}],[{key:"hasDefaultValue",value:function(o){var i="defaultValue";for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)&&i===a.substring(0,i.length)&&o[a]!==void 0)return!0;return!1}}]),n}(nr);function _u(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xh=function(){function e(t){Dt(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=an.create("languageUtils")}return Mt(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(i){return i.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=_u(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=_u(o[1].toLowerCase())),r.indexOf(o[2].toLowerCase())>-1&&(o[2]=_u(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var o;return n.forEach(function(i){if(!o){var a=r.formatLanguageCode(i);(!r.options.supportedLngs||r.isSupportedCode(a))&&(o=a)}}),!o&&this.options.supportedLngs&&n.forEach(function(i){if(!o){var a=r.getLanguagePartFromCode(i);if(r.isSupportedCode(a))return o=a;o=r.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var o=n[r];return o||(o=n[this.getScriptPartFromCode(r)]),o||(o=n[this.formatLanguageCode(r)]),o||(o=n[this.getLanguagePartFromCode(r)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,r){var o=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(u){u&&(o.isSupportedCode(u)?a.push(u):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),i.forEach(function(l){a.indexOf(l)<0&&s(o.formatLanguageCode(l))}),a}}]),e}(),lb=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ub={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},cb=["v1","v2","v3"],kh={zero:0,one:1,two:2,few:3,many:4,other:5};function fb(){var e={};return lb.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:ub[t.fc]}})}),e}var db=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.languageUtils=t,this.options=n,this.logger=an.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=fb()}return Mt(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(i){return"".concat(r).concat(i)})}},{key:"getSuffixes",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(a,s){return kh[a]-kh[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):i.numbers.map(function(a){return r.getSuffix(n,a,o)}):[]}},{key:"getSuffix",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(r)):this.getSuffixRetroCompatible(i,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var o=this,i=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[i];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return o.options.prepend&&a.toString()?o.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!cb.includes(this.options.compatibilityJSON)}}]),e}();function Oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Oh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pb=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(this,e),this.logger=an.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Mt(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:eb,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Br(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Br(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Br(r.nestingPrefix):r.nestingPrefixEscaped||Br("$t("),this.nestingSuffix=r.nestingSuffix?Br(r.nestingSuffix):r.nestingSuffixEscaped||Br(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,r,o,i){var a=this,s,l,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(S){return S.replace(/\$/g,"$$$$")}var p=function(h){if(h.indexOf(a.formatSeparator)<0){var d=_h(r,c,h);return a.alwaysFormat?a.format(d,void 0,o,Ut(Ut(Ut({},i),r),{},{interpolationkey:h})):d}var m=h.split(a.formatSeparator),_=m.shift().trim(),x=m.join(a.formatSeparator).trim();return a.format(_h(r,c,_),x,o,Ut(Ut(Ut({},i),r),{},{interpolationkey:_}))};this.resetRegExp();var v=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,g=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(h){return f(h)}},{regex:this.regexp,safeValue:function(h){return a.escapeValue?f(a.escape(h)):f(h)}}];return y.forEach(function(S){for(u=0;s=S.regex.exec(n);){var h=s[1].trim();if(l=p(h),l===void 0)if(typeof v=="function"){var d=v(n,s,i);l=typeof d=="string"?d:""}else if(i&&i.hasOwnProperty(h))l="";else if(g){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=wh(l));var m=S.safeValue(l);if(n=n.replace(s[0],m),g?(S.regex.lastIndex+=l.length,S.regex.lastIndex-=s[0].length):S.regex.lastIndex=0,u++,u>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function u(v,g){var y=this.nestingOptionsSeparator;if(v.indexOf(y)<0)return v;var S=v.split(new RegExp("".concat(y,"[ ]*{"))),h="{".concat(S[1]);v=S[0],h=this.interpolate(h,l);var d=h.match(/'/g),m=h.match(/"/g);(d&&d.length%2===0&&!m||m.length%2!==0)&&(h=h.replace(/'/g,'"'));try{l=JSON.parse(h),g&&(l=Ut(Ut({},g),l))}catch(_){return this.logger.warn("failed parsing options string in nesting for key ".concat(v),_),"".concat(v).concat(y).concat(h)}return delete l.defaultValue,v}for(;a=this.nestingRegexp.exec(n);){var c=[];l=Ut({},i),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var p=a[1].split(this.formatSeparator).map(function(v){return v.trim()});a[1]=p.shift(),c=p,f=!0}if(s=r(u.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=wh(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),f&&(s=c.reduce(function(v,g){return o.format(v,g,i.lng,Ut(Ut({},i),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function Th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Th(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Th(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hb(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if(t==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(t==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var i=o.split(";");i.forEach(function(a){if(a){var s=a.split(":"),l=q_(s),u=l[0],c=l.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=f),f==="false"&&(n[u.trim()]=!1),f==="true"&&(n[u.trim()]=!0),isNaN(f)||(n[u.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:n}}function Vr(e){var t={};return function(r,o,i){var a=o+JSON.stringify(i),s=t[a];return s||(s=e(o,i),t[a]=s),s(r)}}var vb=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(this,e),this.logger=an.create("formatter"),this.options=t,this.formats={number:Vr(function(n,r){var o=new Intl.NumberFormat(n,r);return function(i){return o.format(i)}}),currency:Vr(function(n,r){var o=new Intl.NumberFormat(n,Tn(Tn({},r),{},{style:"currency"}));return function(i){return o.format(i)}}),datetime:Vr(function(n,r){var o=new Intl.DateTimeFormat(n,Tn({},r));return function(i){return o.format(i)}}),relativetime:Vr(function(n,r){var o=new Intl.RelativeTimeFormat(n,Tn({},r));return function(i){return o.format(i,r.range||"day")}}),list:Vr(function(n,r){var o=new Intl.ListFormat(n,Tn({},r));return function(i){return o.format(i)}})},this.init(t)}return Mt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=r.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Vr(r)}},{key:"format",value:function(n,r,o,i){var a=this,s=r.split(this.formatSeparator),l=s.reduce(function(u,c){var f=hb(c),p=f.formatName,v=f.formatOptions;if(a.formats[p]){var g=u;try{var y=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},S=y.locale||y.lng||i.locale||i.lng||o;g=a.formats[p](u,S,Tn(Tn(Tn({},v),i),y))}catch(h){a.logger.warn(h)}return g}else a.logger.warn("there was no format function for ".concat(p));return u},n);return l}}]),e}();function Ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ph(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ph(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mb(e){var t=gb();return function(){var r=cn(e),o;if(t){var i=cn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return sa(this,o)}}function gb(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yb(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var wb=function(e){yl(n,e);var t=mb(n);function n(r,o,i){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Dt(this,n),a=t.call(this),wl&&nr.call(Hn(a)),a.backend=r,a.store=o,a.services=i,a.languageUtils=i.languageUtils,a.options=s,a.logger=an.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,s.backend,s),a}return Mt(n,[{key:"queueLoad",value:function(o,i,a,s){var l=this,u={},c={},f={},p={};return o.forEach(function(v){var g=!0;i.forEach(function(y){var S="".concat(v,"|").concat(y);!a.reload&&l.store.hasResourceBundle(v,y)?l.state[S]=2:l.state[S]<0||(l.state[S]===1?c[S]===void 0&&(c[S]=!0):(l.state[S]=1,g=!1,c[S]===void 0&&(c[S]=!0),u[S]===void 0&&(u[S]=!0),p[y]===void 0&&(p[y]=!0)))}),g||(f[v]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}},{key:"loaded",value:function(o,i,a){var s=o.split("|"),l=s[0],u=s[1];i&&this.emit("failedLoading",l,u,i),a&&this.store.addResourceBundle(l,u,a),this.state[o]=i?-1:2;var c={};this.queue.forEach(function(f){J_(f.loaded,[l],u),yb(f,o),i&&f.errors.push(i),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(p){c[p]||(c[p]={});var v=f.loaded[p];v.length&&v.forEach(function(g){c[p][g]===void 0&&(c[p][g]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(o,i,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!o.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:i,fcName:a,tried:l,wait:u,callback:c});return}this.readingCalls++;var f=function(y,S){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(y&&S&&l<s.maxRetries){setTimeout(function(){s.read.call(s,o,i,a,l+1,u*2,c)},u);return}c(y,S)},p=this.backend[a].bind(this.backend);if(p.length===2){try{var v=p(o,i);v&&typeof v.then=="function"?v.then(function(g){return f(null,g)}).catch(f):f(null,v)}catch(g){f(g)}return}return p(o,i,f)}},{key:"prepareLoading",value:function(o,i){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof i=="string"&&(i=[i]);var u=this.queueLoad(o,i,s,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(o,i,a){this.prepareLoading(o,i,{},a)}},{key:"reload",value:function(o,i,a){this.prepareLoading(o,i,{reload:!0},a)}},{key:"loadOne",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=o.split("|"),l=s[0],u=s[1];this.read(l,u,"read",void 0,void 0,function(c,f){c&&i.logger.warn("".concat(a,"loading namespace ").concat(u," for language ").concat(l," failed"),c),!c&&f&&i.logger.log("".concat(a,"loaded namespace ").concat(u," for language ").concat(l),f),i.loaded(o,c,f)})}},{key:"saveMissing",value:function(o,i,a,s,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=Nh(Nh({},u),{},{isUpdate:l}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var v;p.length===5?v=p(o,i,a,s,f):v=p(o,i,a,s),v&&typeof v.then=="function"?v.then(function(g){return c(null,g)}).catch(c):c(null,v)}catch(g){c(g)}else p(o,i,a,s,c,f)}!o||!o[0]||this.store.addResource(o[0],i,a,s)}}}]),n}(nr);function Lh(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Qt(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Qt(t[2])==="object"||Qt(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(o){n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Ah(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sb(e){var t=_b();return function(){var r=cn(e),o;if(t){var i=cn(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return sa(this,o)}}function _b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Na(){}function bb(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Cs=function(e){yl(n,e);var t=Sb(n);function n(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Dt(this,n),r=t.call(this),wl&&nr.call(Hn(r)),r.options=Ah(o),r.services={},r.logger=an,r.modules={external:[]},bb(Hn(r)),i&&!r.isInitialized&&!o.isClone){if(!r.options.initImmediate)return r.init(o,i),sa(r,Hn(r));setTimeout(function(){r.init(o,i)},0)}return r}return Mt(n,[{key:"init",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(a=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=Lh();this.options=en(en(en({},s),this.options),Ah(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=en(en({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function l(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?an.init(l(this.modules.logger),this.options):an.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=vb);var c=new xh(this.options);this.store=new ib(this.options.resources,this.options);var f=this.services;f.logger=an,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new db(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=l(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new pb(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new wb(l(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(h){for(var d=arguments.length,m=new Array(d>1?d-1:0),_=1;_<d;_++)m[_-1]=arguments[_];o.emit.apply(o,[h].concat(m))}),this.modules.languageDetector&&(f.languageDetector=l(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=l(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Rh(this.services,this.options),this.translator.on("*",function(h){for(var d=arguments.length,m=new Array(d>1?d-1:0),_=1;_<d;_++)m[_-1]=arguments[_];o.emit.apply(o,[h].concat(m))}),this.modules.external.forEach(function(h){h.init&&h.init(o)})}if(this.format=this.options.interpolation.format,a||(a=Na),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var v=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];v.forEach(function(h){o[h]=function(){var d;return(d=o.store)[h].apply(d,arguments)}});var g=["addResource","addResources","addResourceBundle","removeResourceBundle"];g.forEach(function(h){o[h]=function(){var d;return(d=o.store)[h].apply(d,arguments),o}});var y=Qo(),S=function(){var d=function(_,x){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),y.resolve(x),a(_,x)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return d(null,o.t.bind(o));o.changeLanguage(o.options.lng,d)};return this.options.resources||!this.options.initImmediate?S():setTimeout(S,0),y}},{key:"loadResources",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Na,s=a,l=typeof o=="string"?o:this.language;if(typeof o=="function"&&(s=o),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var u=[],c=function(v){if(v){var g=i.services.languageUtils.toResolveHierarchy(v);g.forEach(function(y){u.indexOf(y)<0&&u.push(y)})}};if(l)c(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(p){return c(p)})}this.options.preload&&this.options.preload.forEach(function(p){return c(p)}),this.services.backendConnector.load(u,this.options.ns,function(p){!p&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(p)})}else s(null)}},{key:"reloadResources",value:function(o,i,a){var s=Qo();return o||(o=this.languages),i||(i=this.options.ns),a||(a=Na),this.services.backendConnector.reload(o,i,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&Vg.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var i=0;i<this.languages.length;i++){var a=this.languages[i];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(o,i){var a=this;this.isLanguageChangingTo=o;var s=Qo();this.emit("languageChanging",o);var l=function(p){a.language=p,a.languages=a.services.languageUtils.toResolveHierarchy(p),a.resolvedLanguage=void 0,a.setResolvedLanguage(p)},u=function(p,v){v?(l(v),a.translator.changeLanguage(v),a.isLanguageChangingTo=void 0,a.emit("languageChanged",v),a.logger.log("languageChanged",v)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),i&&i(p,function(){return a.t.apply(a,arguments)})},c=function(p){!o&&!p&&a.services.languageDetector&&(p=[]);var v=typeof p=="string"?p:a.services.languageUtils.getBestMatchFromCodes(p);v&&(a.language||l(v),a.translator.language||a.translator.changeLanguage(v),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(v)),a.loadResources(v,function(g){u(g,v)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(o),s}},{key:"getFixedT",value:function(o,i,a){var s=this,l=function u(c,f){var p;if(Qt(f)!=="object"){for(var v=arguments.length,g=new Array(v>2?v-2:0),y=2;y<v;y++)g[y-2]=arguments[y];p=s.options.overloadTranslationOptionHandler([c,f].concat(g))}else p=en({},f);p.lng=p.lng||u.lng,p.lngs=p.lngs||u.lngs,p.ns=p.ns||u.ns,p.keyPrefix=p.keyPrefix||a||u.keyPrefix;var S=s.options.keySeparator||".",h;return p.keyPrefix&&Array.isArray(c)?h=c.map(function(d){return"".concat(p.keyPrefix).concat(S).concat(d)}):h=p.keyPrefix?"".concat(p.keyPrefix).concat(S).concat(c):c,s.t(h,p)};return typeof o=="string"?l.lng=o:l.lngs=o,l.ns=i,l.keyPrefix=a,l}},{key:"t",value:function(){var o;return this.translator&&(o=this.translator).translate.apply(o,arguments)}},{key:"exists",value:function(){var o;return this.translator&&(o=this.translator).exists.apply(o,arguments)}},{key:"setDefaultNamespace",value:function(o){this.options.defaultNS=o}},{key:"hasLoadedNamespace",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(v,g){var y=i.services.backendConnector.state["".concat(v,"|").concat(g)];return y===-1||y===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,o)&&(!l||c(u,o)))}},{key:"loadNamespaces",value:function(o,i){var a=this,s=Qo();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),i&&i(l)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(o,i){var a=Qo();typeof o=="string"&&(o=[o]);var s=this.options.preload||[],l=o.filter(function(u){return s.indexOf(u)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(u){a.resolve(),i&&i(u)}),a):(i&&i(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new xh(Lh());return i.indexOf(a.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Na,s=en(en(en({},this.options),i),{isClone:!0}),l=new n(s);(i.debug!==void 0||i.prefix!==void 0)&&(l.logger=l.logger.clone(i));var u=["store","services","language"];return u.forEach(function(c){l[c]=o[c]}),l.services=en({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new Rh(l.services,l.options),l.translator.on("*",function(c){for(var f=arguments.length,p=new Array(f>1?f-1:0),v=1;v<f;v++)p[v-1]=arguments[v];l.emit.apply(l,[c].concat(p))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(nr);fn(Cs,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Cs(e,t)});var Xe=Cs.createInstance();Xe.createInstance=Cs.createInstance;Xe.createInstance;Xe.dir;Xe.init;Xe.loadResources;Xe.reloadResources;Xe.use;Xe.changeLanguage;Xe.getFixedT;Xe.t;Xe.exists;Xe.setDefaultNamespace;Xe.hasLoadedNamespace;Xe.loadNamespaces;Xe.loadLanguages;var Wg=[],Eb=Wg.forEach,Cb=Wg.slice;function Rb(e){return Eb.call(Cb.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var Dh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,xb=function(t,n,r){var o=r||{};o.path=o.path||"/";var i=encodeURIComponent(n),a="".concat(t,"=").concat(i);if(o.maxAge>0){var s=o.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(s))}if(o.domain){if(!Dh.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(o.domain)}if(o.path){if(!Dh.test(o.path))throw new TypeError("option path is invalid");a+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite){var l=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},Mh={create:function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),o&&(i.domain=o),document.cookie=xb(t,encodeURIComponent(n),i)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),o=0;o<r.length;o++){for(var i=r[o];i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(n)===0)return i.substring(n.length,i.length)}return null},remove:function(t){this.create(t,"",-1)}},kb={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=Mh.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&Mh.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Ob={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=r.substring(1),i=o.split("&"),a=0;a<i.length;a++){var s=i[a].indexOf("=");if(s>0){var l=i[a].substring(0,s);l===t.lookupQuerystring&&(n=i[a].substring(s+1))}}}return n}},qo=null,$h=function(){if(qo!==null)return qo;try{qo=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{qo=!1}return qo},Tb={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&$h()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&$h()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Go=null,Uh=function(){if(Go!==null)return Go;try{Go=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Go=!1}return Go},Pb={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Uh()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Uh()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Nb={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Lb={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Ab={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},Ib={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function Db(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var Hg=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Mt(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Rb(r,this.options||{},Db()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(kb),this.addDetector(Ob),this.addDetector(Tb),this.addDetector(Pb),this.addDetector(Nb),this.addDetector(Lb),this.addDetector(Ab),this.addDetector(Ib)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var o=[];return n.forEach(function(i){if(r.detectors[i]){var a=r.detectors[i].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(o=o.concat(a))}}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var o=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(i){o.detectors[i]&&o.detectors[i].cacheUserLanguage(n,o.options)}))}}]),e}();Hg.type="languageDetector";function Mb(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Fh={};function bc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Fh[t[0]]||(typeof t[0]=="string"&&(Fh[t[0]]=new Date),Mb.apply(void 0,t))}function jh(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{var r=function o(){setTimeout(function(){e.off("initialized",o)},0),n()};e.on("initialized",r)}})}function $b(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(l,u){var c=t.services.backendConnector.state["".concat(l,"|").concat(u)];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}function Ub(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return bc("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{precheck:function(i,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):$b(e,t,n)}var Fb=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,jb={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},zb=function(t){return jb[t]},Bb=function(t){return t.replace(Fb,zb)};function zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ec={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Bb};function Vb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ec=Bh(Bh({},Ec),e)}function Wb(){return Ec}var Kg;function Hb(e){Kg=e}function Kb(){return Kg}var Qb={type:"3rdParty",init:function(t){Vb(t.options.react),Hb(t)}},qb=w.createContext(),Gb=function(){function e(){Dt(this,e),this.usedNamespaces={}}return Mt(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(o){r.usedNamespaces[o]||(r.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function Yb(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Xb(e,t){return Ug(e)||Yb(e,t)||Fg(e,t)||jg()}function Vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vh(Object(n),!0).forEach(function(r){fn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Jb=function(t,n){var r=w.useRef();return w.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function la(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=w.useContext(qb)||{},o=r.i18n,i=r.defaultNS,a=n||o||Kb();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Gb),!a){bc("You will need to pass in an i18next instance by using initReactI18next");var s=function(W){return Array.isArray(W)?W[W.length-1]:W},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&bc("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=bu(bu(bu({},Wb()),a.options.react),t),c=u.useSuspense,f=u.keyPrefix,p=e||i||a.options&&a.options.defaultNS;p=typeof p=="string"?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var v=(a.isInitialized||a.initializedStoreOnce)&&p.every(function(N){return Ub(N,a,u)});function g(){return a.getFixedT(null,u.nsMode==="fallback"?p:p[0],f)}var y=w.useState(g),S=Xb(y,2),h=S[0],d=S[1],m=p.join(),_=Jb(m),x=w.useRef(!0);w.useEffect(function(){var N=u.bindI18n,W=u.bindI18nStore;x.current=!0,!v&&!c&&jh(a,p,function(){x.current&&d(g)}),v&&_&&_!==m&&x.current&&d(g);function M(){x.current&&d(g)}return N&&a&&a.on(N,M),W&&a&&a.store.on(W,M),function(){x.current=!1,N&&a&&N.split(" ").forEach(function(ee){return a.off(ee,M)}),W&&a&&W.split(" ").forEach(function(ee){return a.store.off(ee,M)})}},[a,m]);var C=w.useRef(!0);w.useEffect(function(){x.current&&!C.current&&d(g),C.current=!1},[a,f]);var T=[h,a,v];if(T.t=h,T.i18n=a,T.ready=v,v||!v&&!c)return T;throw new Promise(function(N){jh(a,p,function(){N()})})}const Zb={type:"backend",read:(e,t,n)=>{let r;switch(e){case"zh":case"zh-CN":r=_n(()=>import("./zh-972d6106.js"),[],import.meta.url);break;case"en":default:r=_n(()=>import("./en-0b55644c.js"),[],import.meta.url);break}r?r.then(o=>n(null,o.data),o=>n(o,null)):n(new Error(`unable to load translation file for language ${e}`),null)}};Xe.use(Qb).use(Hg).use(Zb).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1}});const eE=""+new URL("inter-latin-400-normal-0364d368.woff2",import.meta.url).href,tE=""+new URL("inter-latin-800-normal-a51ac27d.woff2",import.meta.url).href,nE=""+new URL("roboto-mono-latin-400-normal-7295944e.woff2",import.meta.url).href;var go={},rE={get exports(){return go},set exports(e){go=e}},wt={},Cc={},oE={get exports(){return Cc},set exports(e){Cc=e}},Qg={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){function t(P,H){var $=P.length;P.push(H);e:for(;0<$;){var U=$-1>>>1,E=P[U];if(0<o(E,H))P[U]=H,P[$]=E,$=U;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var H=P[0],$=P.pop();if($!==H){P[0]=$;e:for(var U=0,E=P.length,L=E>>>1;U<L;){var A=2*(U+1)-1,J=P[A],F=A+1,z=P[F];if(0>o(J,$))F<E&&0>o(z,J)?(P[U]=z,P[F]=$,U=F):(P[U]=J,P[A]=$,U=A);else if(F<E&&0>o(z,$))P[U]=z,P[F]=$,U=F;else break e}}return H}function o(P,H){var $=P.sortIndex-H.sortIndex;return $!==0?$:P.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(P){for(var H=n(u);H!==null;){if(H.callback===null)r(u);else if(H.startTime<=P)r(u),H.sortIndex=H.expirationTime,t(l,H);else break;H=n(u)}}function _(P){if(y=!1,m(P),!g)if(n(l)!==null)g=!0,X(x);else{var H=n(u);H!==null&&O(_,H.startTime-P)}}function x(P,H){g=!1,y&&(y=!1,h(N),N=-1),v=!0;var $=p;try{for(m(H),f=n(l);f!==null&&(!(f.expirationTime>H)||P&&!ee());){var U=f.callback;if(typeof U=="function"){f.callback=null,p=f.priorityLevel;var E=U(f.expirationTime<=H);H=e.unstable_now(),typeof E=="function"?f.callback=E:f===n(l)&&r(l),m(H)}else r(l);f=n(l)}if(f!==null)var L=!0;else{var A=n(u);A!==null&&O(_,A.startTime-H),L=!1}return L}finally{f=null,p=$,v=!1}}var C=!1,T=null,N=-1,W=5,M=-1;function ee(){return!(e.unstable_now()-M<W)}function pe(){if(T!==null){var P=e.unstable_now();M=P;var H=!0;try{H=T(!0,P)}finally{H?ue():(C=!1,T=null)}}else C=!1}var ue;if(typeof d=="function")ue=function(){d(pe)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,j=K.port2;K.port1.onmessage=pe,ue=function(){j.postMessage(null)}}else ue=function(){S(pe,0)};function X(P){T=P,C||(C=!0,ue())}function O(P,H){N=S(function(){P(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,X(x))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(p){case 1:case 2:case 3:var H=3;break;default:H=p}var $=p;p=H;try{return P()}finally{p=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,H){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var $=p;p=P;try{return H()}finally{p=$}},e.unstable_scheduleCallback=function(P,H,$){var U=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?U+$:U):$=U,P){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=$+E,P={id:c++,callback:H,priorityLevel:P,startTime:$,expirationTime:E,sortIndex:-1},$>U?(P.sortIndex=$,t(u,P),n(l)===null&&P===n(u)&&(y?(h(N),N=-1):y=!0,O(_,$-U))):(P.sortIndex=E,t(l,P),g||v||(g=!0,X(x))),P},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(P){var H=p;return function(){var $=p;p=H;try{return P.apply(this,arguments)}finally{p=$}}}})(Qg);(function(e){e.exports=Qg})(oE);/**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var qg=w,mt=Cc;function D(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 Gg=new Set,Li={};function Ir(e,t){yo(e,t),yo(e+"Capture",t)}function yo(e,t){for(Li[e]=t,e=0;e<t.length;e++)Gg.add(t[e])}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rc=Object.prototype.hasOwnProperty,iE=/^[: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]*$/,Wh={},Hh={};function aE(e){return Rc.call(Hh,e)?!0:Rc.call(Wh,e)?!1:iE.test(e)?Hh[e]=!0:(Wh[e]=!0,!1)}function sE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lE(e,t,n,r){if(t===null||typeof t>"u"||sE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new nt(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){We[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var hd=/[\-:]([a-z])/g;function vd(e){return e[1].toUpperCase()}"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(hd,vd);We[t]=new nt(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(hd,vd);We[t]=new nt(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(hd,vd);We[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function md(e,t,n,r){var o=We.hasOwnProperty(t)?We[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(lE(t,n,o,r)&&(n=null),r||o===null?aE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var xn=qg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,La=Symbol.for("react.element"),Qr=Symbol.for("react.portal"),qr=Symbol.for("react.fragment"),gd=Symbol.for("react.strict_mode"),xc=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),yd=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),Oc=Symbol.for("react.suspense_list"),wd=Symbol.for("react.memo"),An=Symbol.for("react.lazy"),Jg=Symbol.for("react.offscreen"),Kh=Symbol.iterator;function Yo(e){return e===null||typeof e!="object"?null:(e=Kh&&e[Kh]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,Eu;function ui(e){if(Eu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Eu=t&&t[1]||""}return`
|
|
`+Eu+e}var Cu=!1;function Ru(e,t){if(!e||Cu)return"";Cu=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
`),i=r.stack.split(`
|
|
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
|
|
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Cu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ui(e):""}function uE(e){switch(e.tag){case 5:return ui(e.type);case 16:return ui("Lazy");case 13:return ui("Suspense");case 19:return ui("SuspenseList");case 0:case 2:case 15:return e=Ru(e.type,!1),e;case 11:return e=Ru(e.type.render,!1),e;case 1:return e=Ru(e.type,!0),e;default:return""}}function Tc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case qr:return"Fragment";case Qr:return"Portal";case xc:return"Profiler";case gd:return"StrictMode";case kc:return"Suspense";case Oc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xg:return(e.displayName||"Context")+".Consumer";case Yg:return(e._context.displayName||"Context")+".Provider";case yd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wd:return t=e.displayName||null,t!==null?t:Tc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return Tc(e(t))}catch{}}return null}function cE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tc(t);case 8:return t===gd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fE(e){var t=Zg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Aa(e){e._valueTracker||(e._valueTracker=fE(e))}function ey(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pc(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ty(e,t){t=t.checked,t!=null&&md(e,"checked",t,!1)}function Nc(e,t){ty(e,t);var n=rr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lc(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Lc(e,t,n){(t!=="number"||Rs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ci=Array.isArray;function lo(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=""+rr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ac(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(ci(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rr(n)}}function ny(e,t){var n=rr(t.value),r=rr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Yh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ry(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 Ic(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ry(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ia,oy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ia=Ia||document.createElement("div"),Ia.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ai(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gi={animationIterationCount:!0,aspectRatio:!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},dE=["Webkit","ms","Moz","O"];Object.keys(gi).forEach(function(e){dE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gi[t]=gi[e]})});function iy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gi.hasOwnProperty(e)&&gi[e]?(""+t).trim():t+"px"}function ay(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=iy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pE=Pe({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 Dc(e,t){if(t){if(pE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Mc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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}}var $c=null;function Sd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Uc=null,uo=null,co=null;function Xh(e){if(e=fa(e)){if(typeof Uc!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Cl(t),Uc(e.stateNode,e.type,t))}}function sy(e){uo?co?co.push(e):co=[e]:uo=e}function ly(){if(uo){var e=uo,t=co;if(co=uo=null,Xh(e),t)for(e=0;e<t.length;e++)Xh(t[e])}}function uy(e,t){return e(t)}function cy(){}var xu=!1;function fy(e,t,n){if(xu)return e(t,n);xu=!0;try{return uy(e,t,n)}finally{xu=!1,(uo!==null||co!==null)&&(cy(),ly())}}function Ii(e,t){var n=e.stateNode;if(n===null)return null;var r=Cl(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Fc=!1;if(bn)try{var Xo={};Object.defineProperty(Xo,"passive",{get:function(){Fc=!0}}),window.addEventListener("test",Xo,Xo),window.removeEventListener("test",Xo,Xo)}catch{Fc=!1}function hE(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var yi=!1,xs=null,ks=!1,jc=null,vE={onError:function(e){yi=!0,xs=e}};function mE(e,t,n,r,o,i,a,s,l){yi=!1,xs=null,hE.apply(vE,arguments)}function gE(e,t,n,r,o,i,a,s,l){if(mE.apply(this,arguments),yi){if(yi){var u=xs;yi=!1,xs=null}else throw Error(D(198));ks||(ks=!0,jc=u)}}function Dr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jh(e){if(Dr(e)!==e)throw Error(D(188))}function yE(e){var t=e.alternate;if(!t){if(t=Dr(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Jh(o),e;if(i===r)return Jh(o),t;i=i.sibling}throw Error(D(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function py(e){return e=yE(e),e!==null?hy(e):null}function hy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hy(e);if(t!==null)return t;e=e.sibling}return null}var vy=mt.unstable_scheduleCallback,Zh=mt.unstable_cancelCallback,wE=mt.unstable_shouldYield,SE=mt.unstable_requestPaint,Ae=mt.unstable_now,_E=mt.unstable_getCurrentPriorityLevel,_d=mt.unstable_ImmediatePriority,my=mt.unstable_UserBlockingPriority,Os=mt.unstable_NormalPriority,bE=mt.unstable_LowPriority,gy=mt.unstable_IdlePriority,Sl=null,sn=null;function EE(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(Sl,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:xE,CE=Math.log,RE=Math.LN2;function xE(e){return e>>>=0,e===0?32:31-(CE(e)/RE|0)|0}var Da=64,Ma=4194304;function fi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ts(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=fi(s):(i&=a,i!==0&&(r=fi(i)))}else a=n&~o,a!==0?r=fi(a):i!==0&&(r=fi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-qt(t),o=1<<n,r|=e[n],t&=~o;return r}function kE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function OE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-qt(i),s=1<<a,l=o[a];l===-1?(!(s&n)||s&r)&&(o[a]=kE(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function zc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yy(){var e=Da;return Da<<=1,!(Da&4194240)&&(Da=64),e}function ku(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ua(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=n}function TE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-qt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function bd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ve=0;function wy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sy,Ed,_y,by,Ey,Bc=!1,$a=[],Kn=null,Qn=null,qn=null,Di=new Map,Mi=new Map,$n=[],PE="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 ev(e,t){switch(e){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":Di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(t.pointerId)}}function Jo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=fa(t),t!==null&&Ed(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function NE(e,t,n,r,o){switch(t){case"focusin":return Kn=Jo(Kn,e,t,n,r,o),!0;case"dragenter":return Qn=Jo(Qn,e,t,n,r,o),!0;case"mouseover":return qn=Jo(qn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Di.set(i,Jo(Di.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mi.set(i,Jo(Mi.get(i)||null,e,t,n,r,o)),!0}return!1}function Cy(e){var t=yr(e.target);if(t!==null){var n=Dr(t);if(n!==null){if(t=n.tag,t===13){if(t=dy(n),t!==null){e.blockedOn=t,Ey(e.priority,function(){_y(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$c=r,n.target.dispatchEvent(r),$c=null}else return t=fa(n),t!==null&&Ed(t),e.blockedOn=n,!1;t.shift()}return!0}function tv(e,t,n){ss(e)&&n.delete(t)}function LE(){Bc=!1,Kn!==null&&ss(Kn)&&(Kn=null),Qn!==null&&ss(Qn)&&(Qn=null),qn!==null&&ss(qn)&&(qn=null),Di.forEach(tv),Mi.forEach(tv)}function Zo(e,t){e.blockedOn===t&&(e.blockedOn=null,Bc||(Bc=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,LE)))}function $i(e){function t(o){return Zo(o,e)}if(0<$a.length){Zo($a[0],e);for(var n=1;n<$a.length;n++){var r=$a[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kn!==null&&Zo(Kn,e),Qn!==null&&Zo(Qn,e),qn!==null&&Zo(qn,e),Di.forEach(t),Mi.forEach(t),n=0;n<$n.length;n++)r=$n[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)Cy(n),n.blockedOn===null&&$n.shift()}var fo=xn.ReactCurrentBatchConfig,Ps=!0;function AE(e,t,n,r){var o=ve,i=fo.transition;fo.transition=null;try{ve=1,Cd(e,t,n,r)}finally{ve=o,fo.transition=i}}function IE(e,t,n,r){var o=ve,i=fo.transition;fo.transition=null;try{ve=4,Cd(e,t,n,r)}finally{ve=o,fo.transition=i}}function Cd(e,t,n,r){if(Ps){var o=Vc(e,t,n,r);if(o===null)$u(e,t,r,Ns,n),ev(e,r);else if(NE(o,e,t,n,r))r.stopPropagation();else if(ev(e,r),t&4&&-1<PE.indexOf(e)){for(;o!==null;){var i=fa(o);if(i!==null&&Sy(i),i=Vc(e,t,n,r),i===null&&$u(e,t,r,Ns,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else $u(e,t,r,null,n)}}var Ns=null;function Vc(e,t,n,r){if(Ns=null,e=Sd(r),e=yr(e),e!==null)if(t=Dr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ns=e,null}function Ry(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_E()){case _d:return 1;case my:return 4;case Os:case bE:return 16;case gy:return 536870912;default:return 16}default:return 16}}var jn=null,Rd=null,ls=null;function xy(){if(ls)return ls;var e,t=Rd,n=t.length,r,o="value"in jn?jn.value:jn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return ls=o.slice(e,1<r?1-r:void 0)}function us(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ua(){return!0}function nv(){return!1}function St(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ua:nv,this.isPropagationStopped=nv,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ua)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ua)},persist:function(){},isPersistent:Ua}),t}var Do={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xd=St(Do),ca=Pe({},Do,{view:0,detail:0}),DE=St(ca),Ou,Tu,ei,_l=Pe({},ca,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ei&&(ei&&e.type==="mousemove"?(Ou=e.screenX-ei.screenX,Tu=e.screenY-ei.screenY):Tu=Ou=0,ei=e),Ou)},movementY:function(e){return"movementY"in e?e.movementY:Tu}}),rv=St(_l),ME=Pe({},_l,{dataTransfer:0}),$E=St(ME),UE=Pe({},ca,{relatedTarget:0}),Pu=St(UE),FE=Pe({},Do,{animationName:0,elapsedTime:0,pseudoElement:0}),jE=St(FE),zE=Pe({},Do,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),BE=St(zE),VE=Pe({},Do,{data:0}),ov=St(VE),WE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HE={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"},KE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=KE[e])?!!t[e]:!1}function kd(){return QE}var qE=Pe({},ca,{key:function(e){if(e.key){var t=WE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kd,charCode:function(e){return e.type==="keypress"?us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GE=St(qE),YE=Pe({},_l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iv=St(YE),XE=Pe({},ca,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kd}),JE=St(XE),ZE=Pe({},Do,{propertyName:0,elapsedTime:0,pseudoElement:0}),eC=St(ZE),tC=Pe({},_l,{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}),nC=St(tC),rC=[9,13,27,32],Od=bn&&"CompositionEvent"in window,wi=null;bn&&"documentMode"in document&&(wi=document.documentMode);var oC=bn&&"TextEvent"in window&&!wi,ky=bn&&(!Od||wi&&8<wi&&11>=wi),av=String.fromCharCode(32),sv=!1;function Oy(e,t){switch(e){case"keyup":return rC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ty(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gr=!1;function iC(e,t){switch(e){case"compositionend":return Ty(t);case"keypress":return t.which!==32?null:(sv=!0,av);case"textInput":return e=t.data,e===av&&sv?null:e;default:return null}}function aC(e,t){if(Gr)return e==="compositionend"||!Od&&Oy(e,t)?(e=xy(),ls=Rd=jn=null,Gr=!1,e):null;switch(e){case"paste":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 ky&&t.locale!=="ko"?null:t.data;default:return null}}var sC={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 lv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sC[e.type]:t==="textarea"}function Py(e,t,n,r){sy(r),t=Ls(t,"onChange"),0<t.length&&(n=new xd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Si=null,Ui=null;function lC(e){zy(e,0)}function bl(e){var t=Jr(e);if(ey(t))return e}function uC(e,t){if(e==="change")return t}var Ny=!1;if(bn){var Nu;if(bn){var Lu="oninput"in document;if(!Lu){var uv=document.createElement("div");uv.setAttribute("oninput","return;"),Lu=typeof uv.oninput=="function"}Nu=Lu}else Nu=!1;Ny=Nu&&(!document.documentMode||9<document.documentMode)}function cv(){Si&&(Si.detachEvent("onpropertychange",Ly),Ui=Si=null)}function Ly(e){if(e.propertyName==="value"&&bl(Ui)){var t=[];Py(t,Ui,e,Sd(e)),fy(lC,t)}}function cC(e,t,n){e==="focusin"?(cv(),Si=t,Ui=n,Si.attachEvent("onpropertychange",Ly)):e==="focusout"&&cv()}function fC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bl(Ui)}function dC(e,t){if(e==="click")return bl(t)}function pC(e,t){if(e==="input"||e==="change")return bl(t)}function hC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:hC;function Fi(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++){var o=n[r];if(!Rc.call(t,o)||!Xt(e[o],t[o]))return!1}return!0}function fv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dv(e,t){var n=fv(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fv(n)}}function Ay(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ay(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Iy(){for(var e=window,t=Rs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rs(e.document)}return t}function Td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vC(e){var t=Iy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ay(n.ownerDocument.documentElement,n)){if(r!==null&&Td(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dv(n,i);var a=dv(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mC=bn&&"documentMode"in document&&11>=document.documentMode,Yr=null,Wc=null,_i=null,Hc=!1;function pv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hc||Yr==null||Yr!==Rs(r)||(r=Yr,"selectionStart"in r&&Td(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_i&&Fi(_i,r)||(_i=r,r=Ls(Wc,"onSelect"),0<r.length&&(t=new xd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yr)))}function Fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xr={animationend:Fa("Animation","AnimationEnd"),animationiteration:Fa("Animation","AnimationIteration"),animationstart:Fa("Animation","AnimationStart"),transitionend:Fa("Transition","TransitionEnd")},Au={},Dy={};bn&&(Dy=document.createElement("div").style,"AnimationEvent"in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),"TransitionEvent"in window||delete Xr.transitionend.transition);function El(e){if(Au[e])return Au[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dy)return Au[e]=t[n];return e}var My=El("animationend"),$y=El("animationiteration"),Uy=El("animationstart"),Fy=El("transitionend"),jy=new Map,hv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function sr(e,t){jy.set(e,t),Ir(t,[e])}for(var Iu=0;Iu<hv.length;Iu++){var Du=hv[Iu],gC=Du.toLowerCase(),yC=Du[0].toUpperCase()+Du.slice(1);sr(gC,"on"+yC)}sr(My,"onAnimationEnd");sr($y,"onAnimationIteration");sr(Uy,"onAnimationStart");sr("dblclick","onDoubleClick");sr("focusin","onFocus");sr("focusout","onBlur");sr(Fy,"onTransitionEnd");yo("onMouseEnter",["mouseout","mouseover"]);yo("onMouseLeave",["mouseout","mouseover"]);yo("onPointerEnter",["pointerout","pointerover"]);yo("onPointerLeave",["pointerout","pointerover"]);Ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ir("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wC=new Set("cancel close invalid load scroll toggle".split(" ").concat(di));function vv(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,gE(r,t,void 0,e),e.currentTarget=null}function zy(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;vv(o,s,u),i=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;vv(o,s,u),i=l}}}if(ks)throw e=jc,ks=!1,jc=null,e}function be(e,t){var n=t[Yc];n===void 0&&(n=t[Yc]=new Set);var r=e+"__bubble";n.has(r)||(By(t,e,2,!1),n.add(r))}function Mu(e,t,n){var r=0;t&&(r|=4),By(n,e,r,t)}var ja="_reactListening"+Math.random().toString(36).slice(2);function ji(e){if(!e[ja]){e[ja]=!0,Gg.forEach(function(n){n!=="selectionchange"&&(wC.has(n)||Mu(n,!1,e),Mu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ja]||(t[ja]=!0,Mu("selectionchange",!1,t))}}function By(e,t,n,r){switch(Ry(t)){case 1:var o=AE;break;case 4:o=IE;break;default:o=Cd}n=o.bind(null,t,n,e),o=void 0,!Fc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function $u(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=yr(s),a===null)return;if(l=a.tag,l===5||l===6){r=i=a;continue e}s=s.parentNode}}r=r.return}fy(function(){var u=i,c=Sd(n),f=[];e:{var p=jy.get(e);if(p!==void 0){var v=xd,g=e;switch(e){case"keypress":if(us(n)===0)break e;case"keydown":case"keyup":v=GE;break;case"focusin":g="focus",v=Pu;break;case"focusout":g="blur",v=Pu;break;case"beforeblur":case"afterblur":v=Pu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=rv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=$E;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=JE;break;case My:case $y:case Uy:v=jE;break;case Fy:v=eC;break;case"scroll":v=DE;break;case"wheel":v=nC;break;case"copy":case"cut":case"paste":v=BE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=iv}var y=(t&4)!==0,S=!y&&e==="scroll",h=y?p!==null?p+"Capture":null:p;y=[];for(var d=u,m;d!==null;){m=d;var _=m.stateNode;if(m.tag===5&&_!==null&&(m=_,h!==null&&(_=Ii(d,h),_!=null&&y.push(zi(d,_,m)))),S)break;d=d.return}0<y.length&&(p=new v(p,g,null,n,c),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==$c&&(g=n.relatedTarget||n.fromElement)&&(yr(g)||g[En]))break e;if((v||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=u,g=g?yr(g):null,g!==null&&(S=Dr(g),g!==S||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=u),v!==g)){if(y=rv,_="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(y=iv,_="onPointerLeave",h="onPointerEnter",d="pointer"),S=v==null?p:Jr(v),m=g==null?p:Jr(g),p=new y(_,d+"leave",v,n,c),p.target=S,p.relatedTarget=m,_=null,yr(c)===u&&(y=new y(h,d+"enter",g,n,c),y.target=m,y.relatedTarget=S,_=y),S=_,v&&g)t:{for(y=v,h=g,d=0,m=y;m;m=Wr(m))d++;for(m=0,_=h;_;_=Wr(_))m++;for(;0<d-m;)y=Wr(y),d--;for(;0<m-d;)h=Wr(h),m--;for(;d--;){if(y===h||h!==null&&y===h.alternate)break t;y=Wr(y),h=Wr(h)}y=null}else y=null;v!==null&&mv(f,p,v,y,!1),g!==null&&S!==null&&mv(f,S,g,y,!0)}}e:{if(p=u?Jr(u):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var x=uC;else if(lv(p))if(Ny)x=pC;else{x=fC;var C=cC}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(x=dC);if(x&&(x=x(e,u))){Py(f,x,n,c);break e}C&&C(e,p,u),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&Lc(p,"number",p.value)}switch(C=u?Jr(u):window,e){case"focusin":(lv(C)||C.contentEditable==="true")&&(Yr=C,Wc=u,_i=null);break;case"focusout":_i=Wc=Yr=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,pv(f,n,c);break;case"selectionchange":if(mC)break;case"keydown":case"keyup":pv(f,n,c)}var T;if(Od)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Gr?Oy(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(ky&&n.locale!=="ko"&&(Gr||N!=="onCompositionStart"?N==="onCompositionEnd"&&Gr&&(T=xy()):(jn=c,Rd="value"in jn?jn.value:jn.textContent,Gr=!0)),C=Ls(u,N),0<C.length&&(N=new ov(N,e,null,n,c),f.push({event:N,listeners:C}),T?N.data=T:(T=Ty(n),T!==null&&(N.data=T)))),(T=oC?iC(e,n):aC(e,n))&&(u=Ls(u,"onBeforeInput"),0<u.length&&(c=new ov("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=T))}zy(f,t)})}function zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ls(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ii(e,n),i!=null&&r.unshift(zi(e,i,o)),i=Ii(e,t),i!=null&&r.push(zi(e,i,o))),e=e.return}return r}function Wr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mv(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,o?(l=Ii(n,i),l!=null&&a.unshift(zi(n,l,s))):o||(l=Ii(n,i),l!=null&&a.push(zi(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var SC=/\r\n?/g,_C=/\u0000|\uFFFD/g;function gv(e){return(typeof e=="string"?e:""+e).replace(SC,`
|
|
`).replace(_C,"")}function za(e,t,n){if(t=gv(t),gv(e)!==t&&n)throw Error(D(425))}function As(){}var Kc=null,Qc=null;function qc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gc=typeof setTimeout=="function"?setTimeout:void 0,bC=typeof clearTimeout=="function"?clearTimeout:void 0,yv=typeof Promise=="function"?Promise:void 0,EC=typeof queueMicrotask=="function"?queueMicrotask:typeof yv<"u"?function(e){return yv.resolve(null).then(e).catch(CC)}:Gc;function CC(e){setTimeout(function(){throw e})}function Uu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),$i(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);$i(t)}function Gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Mo=Math.random().toString(36).slice(2),on="__reactFiber$"+Mo,Bi="__reactProps$"+Mo,En="__reactContainer$"+Mo,Yc="__reactEvents$"+Mo,RC="__reactListeners$"+Mo,xC="__reactHandles$"+Mo;function yr(e){var t=e[on];if(t)return t;for(var n=e.parentNode;n;){if(t=n[En]||n[on]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wv(e);e!==null;){if(n=e[on])return n;e=wv(e)}return t}e=n,n=e.parentNode}return null}function fa(e){return e=e[on]||e[En],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Cl(e){return e[Bi]||null}var Xc=[],Zr=-1;function lr(e){return{current:e}}function Ee(e){0>Zr||(e.current=Xc[Zr],Xc[Zr]=null,Zr--)}function _e(e,t){Zr++,Xc[Zr]=e.current,e.current=t}var or={},Ye=lr(or),st=lr(!1),Rr=or;function wo(e,t){var n=e.type.contextTypes;if(!n)return or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function Is(){Ee(st),Ee(Ye)}function Sv(e,t,n){if(Ye.current!==or)throw Error(D(168));_e(Ye,t),_e(st,n)}function Vy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,cE(e)||"Unknown",o));return Pe({},n,r)}function Ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Rr=Ye.current,_e(Ye,e),_e(st,st.current),!0}function _v(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Vy(e,t,Rr),r.__reactInternalMemoizedMergedChildContext=e,Ee(st),Ee(Ye),_e(Ye,e)):Ee(st),_e(st,n)}var mn=null,Rl=!1,Fu=!1;function Wy(e){mn===null?mn=[e]:mn.push(e)}function kC(e){Rl=!0,Wy(e)}function ur(){if(!Fu&&mn!==null){Fu=!0;var e=0,t=ve;try{var n=mn;for(ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mn=null,Rl=!1}catch(o){throw mn!==null&&(mn=mn.slice(e+1)),vy(_d,ur),o}finally{ve=t,Fu=!1}}return null}var eo=[],to=0,Ms=null,$s=0,kt=[],Ot=0,xr=null,gn=1,yn="";function pr(e,t){eo[to++]=$s,eo[to++]=Ms,Ms=e,$s=t}function Hy(e,t,n){kt[Ot++]=gn,kt[Ot++]=yn,kt[Ot++]=xr,xr=e;var r=gn;e=yn;var o=32-qt(r)-1;r&=~(1<<o),n+=1;var i=32-qt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,gn=1<<32-qt(t)+o|n<<o|r,yn=i+e}else gn=1<<i|n<<o|r,yn=e}function Pd(e){e.return!==null&&(pr(e,1),Hy(e,1,0))}function Nd(e){for(;e===Ms;)Ms=eo[--to],eo[to]=null,$s=eo[--to],eo[to]=null;for(;e===xr;)xr=kt[--Ot],kt[Ot]=null,yn=kt[--Ot],kt[Ot]=null,gn=kt[--Ot],kt[Ot]=null}var vt=null,ht=null,Re=!1,Ht=null;function Ky(e,t){var n=Tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function bv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vt=e,ht=Gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,ht=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xr!==null?{id:gn,overflow:yn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,ht=null,!0):!1;default:return!1}}function Jc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zc(e){if(Re){var t=ht;if(t){var n=t;if(!bv(e,t)){if(Jc(e))throw Error(D(418));t=Gn(n.nextSibling);var r=vt;t&&bv(e,t)?Ky(r,n):(e.flags=e.flags&-4097|2,Re=!1,vt=e)}}else{if(Jc(e))throw Error(D(418));e.flags=e.flags&-4097|2,Re=!1,vt=e}}}function Ev(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function Ba(e){if(e!==vt)return!1;if(!Re)return Ev(e),Re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qc(e.type,e.memoizedProps)),t&&(t=ht)){if(Jc(e))throw Qy(),Error(D(418));for(;t;)Ky(e,t),t=Gn(t.nextSibling)}if(Ev(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ht=Gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ht=null}}else ht=vt?Gn(e.stateNode.nextSibling):null;return!0}function Qy(){for(var e=ht;e;)e=Gn(e.nextSibling)}function So(){ht=vt=null,Re=!1}function Ld(e){Ht===null?Ht=[e]:Ht.push(e)}var OC=xn.ReactCurrentBatchConfig;function zt(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Us=lr(null),Fs=null,no=null,Ad=null;function Id(){Ad=no=Fs=null}function Dd(e){var t=Us.current;Ee(Us),e._currentValue=t}function ef(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function po(e,t){Fs=e,Ad=no=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(at=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(Ad!==e)if(e={context:e,memoizedValue:t,next:null},no===null){if(Fs===null)throw Error(D(308));no=e,Fs.dependencies={lanes:0,firstContext:e}}else no=no.next=e;return t}var wr=null;function Md(e){wr===null?wr=[e]:wr.push(e)}function qy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Md(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cn(e,r)}function Cn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var In=!1;function $d(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gy(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 Sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Cn(e,n)}return o=r.interleaved,o===null?(t.next=t,Md(r)):(t.next=o.next,o.next=t),r.interleaved=t,Cn(e,n)}function cs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bd(e,n)}}function Cv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function js(e,t,n,r){var o=e.updateQueue;In=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,c=u=l=null,s=i;do{var p=s.lane,v=s.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=Pe({},f,p);break e;case 2:In=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=v,l=f):c=c.next=v,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(1);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Or|=a,e.lanes=a,e.memoizedState=f}}function Rv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(D(191,o));o.call(r)}}}var Yy=new qg.Component().refs;function tf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xl={isMounted:function(e){return(e=e._reactInternals)?Dr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=et(),o=Jn(e),i=Sn(r,o);i.payload=t,n!=null&&(i.callback=n),t=Yn(e,i,o),t!==null&&(Gt(t,e,o,r),cs(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=et(),o=Jn(e),i=Sn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Yn(e,i,o),t!==null&&(Gt(t,e,o,r),cs(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=et(),r=Jn(e),o=Sn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Yn(e,o,r),t!==null&&(Gt(t,e,r,n),cs(t,e,r))}};function xv(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Fi(n,r)||!Fi(o,i):!0}function Xy(e,t,n){var r=!1,o=or,i=t.contextType;return typeof i=="object"&&i!==null?i=At(i):(o=lt(t)?Rr:Ye.current,r=t.contextTypes,i=(r=r!=null)?wo(e,o):or),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function kv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xl.enqueueReplaceState(t,t.state,null)}function nf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Yy,$d(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=At(i):(i=lt(t)?Rr:Ye.current,o.context=wo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(tf(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&xl.enqueueReplaceState(o,o.state,null),js(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ti(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;s===Yy&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Va(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ov(e){var t=e._init;return t(e._payload)}function Jy(e){function t(h,d){if(e){var m=h.deletions;m===null?(h.deletions=[d],h.flags|=16):m.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function o(h,d){return h=Zn(h,d),h.index=0,h.sibling=null,h}function i(h,d,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<d?(h.flags|=2,d):m):(h.flags|=2,d)):(h.flags|=1048576,d)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,d,m,_){return d===null||d.tag!==6?(d=Ku(m,h.mode,_),d.return=h,d):(d=o(d,m),d.return=h,d)}function l(h,d,m,_){var x=m.type;return x===qr?c(h,d,m.props.children,_,m.key):d!==null&&(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===An&&Ov(x)===d.type)?(_=o(d,m.props),_.ref=ti(h,d,m),_.return=h,_):(_=ms(m.type,m.key,m.props,null,h.mode,_),_.ref=ti(h,d,m),_.return=h,_)}function u(h,d,m,_){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=Qu(m,h.mode,_),d.return=h,d):(d=o(d,m.children||[]),d.return=h,d)}function c(h,d,m,_,x){return d===null||d.tag!==7?(d=Er(m,h.mode,_,x),d.return=h,d):(d=o(d,m),d.return=h,d)}function f(h,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Ku(""+d,h.mode,m),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case La:return m=ms(d.type,d.key,d.props,null,h.mode,m),m.ref=ti(h,null,d),m.return=h,m;case Qr:return d=Qu(d,h.mode,m),d.return=h,d;case An:var _=d._init;return f(h,_(d._payload),m)}if(ci(d)||Yo(d))return d=Er(d,h.mode,m,null),d.return=h,d;Va(h,d)}return null}function p(h,d,m,_){var x=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return x!==null?null:s(h,d,""+m,_);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case La:return m.key===x?l(h,d,m,_):null;case Qr:return m.key===x?u(h,d,m,_):null;case An:return x=m._init,p(h,d,x(m._payload),_)}if(ci(m)||Yo(m))return x!==null?null:c(h,d,m,_,null);Va(h,m)}return null}function v(h,d,m,_,x){if(typeof _=="string"&&_!==""||typeof _=="number")return h=h.get(m)||null,s(d,h,""+_,x);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case La:return h=h.get(_.key===null?m:_.key)||null,l(d,h,_,x);case Qr:return h=h.get(_.key===null?m:_.key)||null,u(d,h,_,x);case An:var C=_._init;return v(h,d,m,C(_._payload),x)}if(ci(_)||Yo(_))return h=h.get(m)||null,c(d,h,_,x,null);Va(d,_)}return null}function g(h,d,m,_){for(var x=null,C=null,T=d,N=d=0,W=null;T!==null&&N<m.length;N++){T.index>N?(W=T,T=null):W=T.sibling;var M=p(h,T,m[N],_);if(M===null){T===null&&(T=W);break}e&&T&&M.alternate===null&&t(h,T),d=i(M,d,N),C===null?x=M:C.sibling=M,C=M,T=W}if(N===m.length)return n(h,T),Re&&pr(h,N),x;if(T===null){for(;N<m.length;N++)T=f(h,m[N],_),T!==null&&(d=i(T,d,N),C===null?x=T:C.sibling=T,C=T);return Re&&pr(h,N),x}for(T=r(h,T);N<m.length;N++)W=v(T,h,N,m[N],_),W!==null&&(e&&W.alternate!==null&&T.delete(W.key===null?N:W.key),d=i(W,d,N),C===null?x=W:C.sibling=W,C=W);return e&&T.forEach(function(ee){return t(h,ee)}),Re&&pr(h,N),x}function y(h,d,m,_){var x=Yo(m);if(typeof x!="function")throw Error(D(150));if(m=x.call(m),m==null)throw Error(D(151));for(var C=x=null,T=d,N=d=0,W=null,M=m.next();T!==null&&!M.done;N++,M=m.next()){T.index>N?(W=T,T=null):W=T.sibling;var ee=p(h,T,M.value,_);if(ee===null){T===null&&(T=W);break}e&&T&&ee.alternate===null&&t(h,T),d=i(ee,d,N),C===null?x=ee:C.sibling=ee,C=ee,T=W}if(M.done)return n(h,T),Re&&pr(h,N),x;if(T===null){for(;!M.done;N++,M=m.next())M=f(h,M.value,_),M!==null&&(d=i(M,d,N),C===null?x=M:C.sibling=M,C=M);return Re&&pr(h,N),x}for(T=r(h,T);!M.done;N++,M=m.next())M=v(T,h,N,M.value,_),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?N:M.key),d=i(M,d,N),C===null?x=M:C.sibling=M,C=M);return e&&T.forEach(function(pe){return t(h,pe)}),Re&&pr(h,N),x}function S(h,d,m,_){if(typeof m=="object"&&m!==null&&m.type===qr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case La:e:{for(var x=m.key,C=d;C!==null;){if(C.key===x){if(x=m.type,x===qr){if(C.tag===7){n(h,C.sibling),d=o(C,m.props.children),d.return=h,h=d;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===An&&Ov(x)===C.type){n(h,C.sibling),d=o(C,m.props),d.ref=ti(h,C,m),d.return=h,h=d;break e}n(h,C);break}else t(h,C);C=C.sibling}m.type===qr?(d=Er(m.props.children,h.mode,_,m.key),d.return=h,h=d):(_=ms(m.type,m.key,m.props,null,h.mode,_),_.ref=ti(h,d,m),_.return=h,h=_)}return a(h);case Qr:e:{for(C=m.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(h,d.sibling),d=o(d,m.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=Qu(m,h.mode,_),d.return=h,h=d}return a(h);case An:return C=m._init,S(h,d,C(m._payload),_)}if(ci(m))return g(h,d,m,_);if(Yo(m))return y(h,d,m,_);Va(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,m),d.return=h,h=d):(n(h,d),d=Ku(m,h.mode,_),d.return=h,h=d),a(h)):n(h,d)}return S}var _o=Jy(!0),Zy=Jy(!1),da={},ln=lr(da),Vi=lr(da),Wi=lr(da);function Sr(e){if(e===da)throw Error(D(174));return e}function Ud(e,t){switch(_e(Wi,t),_e(Vi,e),_e(ln,da),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ic(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ic(t,e)}Ee(ln),_e(ln,t)}function bo(){Ee(ln),Ee(Vi),Ee(Wi)}function e0(e){Sr(Wi.current);var t=Sr(ln.current),n=Ic(t,e.type);t!==n&&(_e(Vi,e),_e(ln,n))}function Fd(e){Vi.current===e&&(Ee(ln),Ee(Vi))}var Oe=lr(0);function zs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ju=[];function jd(){for(var e=0;e<ju.length;e++)ju[e]._workInProgressVersionPrimary=null;ju.length=0}var fs=xn.ReactCurrentDispatcher,zu=xn.ReactCurrentBatchConfig,kr=0,Te=null,Me=null,Fe=null,Bs=!1,bi=!1,Hi=0,TC=0;function He(){throw Error(D(321))}function zd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xt(e[n],t[n]))return!1;return!0}function Bd(e,t,n,r,o,i){if(kr=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fs.current=e===null||e.memoizedState===null?AC:IC,e=n(r,o),bi){i=0;do{if(bi=!1,Hi=0,25<=i)throw Error(D(301));i+=1,Fe=Me=null,t.updateQueue=null,fs.current=DC,e=n(r,o)}while(bi)}if(fs.current=Vs,t=Me!==null&&Me.next!==null,kr=0,Fe=Me=Te=null,Bs=!1,t)throw Error(D(300));return e}function Vd(){var e=Hi!==0;return Hi=0,e}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Te.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function It(){if(Me===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Fe===null?Te.memoizedState:Fe.next;if(t!==null)Fe=t,Me=e;else{if(e===null)throw Error(D(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Fe===null?Te.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Ki(e,t){return typeof t=="function"?t(e):t}function Bu(e){var t=It(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Me,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,l=null,u=i;do{var c=u.lane;if((kr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=f,a=r):l=l.next=f,Te.lanes|=c,Or|=c}u=u.next}while(u!==null&&u!==i);l===null?a=r:l.next=s,Xt(r,t.memoizedState)||(at=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Te.lanes|=i,Or|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vu(e){var t=It(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);Xt(i,t.memoizedState)||(at=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function t0(){}function n0(e,t){var n=Te,r=It(),o=t(),i=!Xt(r.memoizedState,o);if(i&&(r.memoizedState=o,at=!0),r=r.queue,Wd(i0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Qi(9,o0.bind(null,n,r,o,t),void 0,null),je===null)throw Error(D(349));kr&30||r0(n,t,o)}return o}function r0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function o0(e,t,n,r){t.value=n,t.getSnapshot=r,a0(t)&&s0(e)}function i0(e,t,n){return n(function(){a0(t)&&s0(e)})}function a0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xt(e,n)}catch{return!0}}function s0(e){var t=Cn(e,1);t!==null&&Gt(t,e,1,-1)}function Tv(e){var t=nn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:e},t.queue=e,e=e.dispatch=LC.bind(null,Te,e),[t.memoizedState,e]}function Qi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function l0(){return It().memoizedState}function ds(e,t,n,r){var o=nn();Te.flags|=e,o.memoizedState=Qi(1|t,n,void 0,r===void 0?null:r)}function kl(e,t,n,r){var o=It();r=r===void 0?null:r;var i=void 0;if(Me!==null){var a=Me.memoizedState;if(i=a.destroy,r!==null&&zd(r,a.deps)){o.memoizedState=Qi(t,n,i,r);return}}Te.flags|=e,o.memoizedState=Qi(1|t,n,i,r)}function Pv(e,t){return ds(8390656,8,e,t)}function Wd(e,t){return kl(2048,8,e,t)}function u0(e,t){return kl(4,2,e,t)}function c0(e,t){return kl(4,4,e,t)}function f0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function d0(e,t,n){return n=n!=null?n.concat([e]):null,kl(4,4,f0.bind(null,t,e),n)}function Hd(){}function p0(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function h0(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function v0(e,t,n){return kr&21?(Xt(n,t)||(n=yy(),Te.lanes|=n,Or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,at=!0),e.memoizedState=n)}function PC(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var r=zu.transition;zu.transition={};try{e(!1),t()}finally{ve=n,zu.transition=r}}function m0(){return It().memoizedState}function NC(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},g0(e))y0(t,n);else if(n=qy(e,t,n,r),n!==null){var o=et();Gt(n,e,r,o),w0(n,t,r)}}function LC(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(g0(e))y0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Xt(s,a)){var l=t.interleaved;l===null?(o.next=o,Md(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=qy(e,t,o,r),n!==null&&(o=et(),Gt(n,e,r,o),w0(n,t,r))}}function g0(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function y0(e,t){bi=Bs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function w0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bd(e,n)}}var Vs={readContext:At,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useInsertionEffect:He,useLayoutEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useMutableSource:He,useSyncExternalStore:He,useId:He,unstable_isNewReconciler:!1},AC={readContext:At,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Pv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ds(4194308,4,f0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){return ds(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=NC.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:Tv,useDebugValue:Hd,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=Tv(!1),t=e[0];return e=PC.bind(null,e[1]),nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=nn();if(Re){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),je===null)throw Error(D(349));kr&30||r0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Pv(i0.bind(null,r,i,e),[e]),r.flags|=2048,Qi(9,o0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=nn(),t=je.identifierPrefix;if(Re){var n=yn,r=gn;n=(r&~(1<<32-qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=TC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},IC={readContext:At,useCallback:p0,useContext:At,useEffect:Wd,useImperativeHandle:d0,useInsertionEffect:u0,useLayoutEffect:c0,useMemo:h0,useReducer:Bu,useRef:l0,useState:function(){return Bu(Ki)},useDebugValue:Hd,useDeferredValue:function(e){var t=It();return v0(t,Me.memoizedState,e)},useTransition:function(){var e=Bu(Ki)[0],t=It().memoizedState;return[e,t]},useMutableSource:t0,useSyncExternalStore:n0,useId:m0,unstable_isNewReconciler:!1},DC={readContext:At,useCallback:p0,useContext:At,useEffect:Wd,useImperativeHandle:d0,useInsertionEffect:u0,useLayoutEffect:c0,useMemo:h0,useReducer:Vu,useRef:l0,useState:function(){return Vu(Ki)},useDebugValue:Hd,useDeferredValue:function(e){var t=It();return Me===null?t.memoizedState=e:v0(t,Me.memoizedState,e)},useTransition:function(){var e=Vu(Ki)[0],t=It().memoizedState;return[e,t]},useMutableSource:t0,useSyncExternalStore:n0,useId:m0,unstable_isNewReconciler:!1};function Eo(e,t){try{var n="",r=t;do n+=uE(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
Error generating stack: `+i.message+`
|
|
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Wu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var MC=typeof WeakMap=="function"?WeakMap:Map;function S0(e,t,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,hf=r),rf(e,t)},n}function _0(e,t,n){n=Sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){rf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){rf(e,t),typeof r!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Nv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new MC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=YC.bind(null,e,t,n),t.then(e,e))}function Lv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Av(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Sn(-1,1),t.tag=2,Yn(n,t,1))),n.lanes|=1),e)}var $C=xn.ReactCurrentOwner,at=!1;function Ze(e,t,n,r){t.child=e===null?Zy(t,null,n,r):_o(t,e.child,n,r)}function Iv(e,t,n,r,o){n=n.render;var i=t.ref;return po(t,o),r=Bd(e,t,n,r,i,o),n=Vd(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Rn(e,t,o)):(Re&&n&&Pd(t),t.flags|=1,Ze(e,t,r,o),t.child)}function Dv(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Zd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,b0(e,t,i,r,o)):(e=ms(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Fi,n(a,r)&&e.ref===t.ref)return Rn(e,t,o)}return t.flags|=1,e=Zn(i,r),e.ref=t.ref,e.return=t,t.child=e}function b0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Fi(i,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(at=!0);else return t.lanes=e.lanes,Rn(e,t,o)}return of(e,t,n,r,o)}function E0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(oo,pt),pt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(oo,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,_e(oo,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,_e(oo,pt),pt|=r;return Ze(e,t,o,n),t.child}function C0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function of(e,t,n,r,o){var i=lt(n)?Rr:Ye.current;return i=wo(t,i),po(t,o),n=Bd(e,t,n,r,i,o),r=Vd(),e!==null&&!at?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Rn(e,t,o)):(Re&&r&&Pd(t),t.flags|=1,Ze(e,t,n,o),t.child)}function Mv(e,t,n,r,o){if(lt(n)){var i=!0;Ds(t)}else i=!1;if(po(t,o),t.stateNode===null)ps(e,t),Xy(t,n,r),nf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=At(u):(u=lt(n)?Rr:Ye.current,u=wo(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&kv(t,a,r,u),In=!1;var p=t.memoizedState;a.state=p,js(t,r,a,o),l=t.memoizedState,s!==r||p!==l||st.current||In?(typeof c=="function"&&(tf(t,n,c,r),l=t.memoizedState),(s=In||xv(t,n,s,r,p,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Gy(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:zt(t.type,s),a.props=u,f=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=At(l):(l=lt(n)?Rr:Ye.current,l=wo(t,l));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&kv(t,a,r,l),In=!1,p=t.memoizedState,a.state=p,js(t,r,a,o);var g=t.memoizedState;s!==f||p!==g||st.current||In?(typeof v=="function"&&(tf(t,n,v,r),g=t.memoizedState),(u=In||xv(t,n,u,r,p,g,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return af(e,t,n,r,i,o)}function af(e,t,n,r,o,i){C0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&_v(t,n,!1),Rn(e,t,i);r=t.stateNode,$C.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=_o(t,e.child,null,i),t.child=_o(t,null,s,i)):Ze(e,t,s,i),t.memoizedState=r.state,o&&_v(t,n,!0),t.child}function R0(e){var t=e.stateNode;t.pendingContext?Sv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sv(e,t.context,!1),Ud(e,t.containerInfo)}function $v(e,t,n,r,o){return So(),Ld(o),t.flags|=256,Ze(e,t,n,r),t.child}var sf={dehydrated:null,treeContext:null,retryLane:0};function lf(e){return{baseLanes:e,cachePool:null,transitions:null}}function x0(e,t,n){var r=t.pendingProps,o=Oe.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),_e(Oe,o&1),e===null)return Zc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Pl(a,r,0,null),e=Er(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=lf(n),t.memoizedState=sf,e):Kd(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return UC(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Zn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Zn(s,i):(i=Er(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?lf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=sf,r}return i=e.child,e=i.sibling,r=Zn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Kd(e,t){return t=Pl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Wa(e,t,n,r){return r!==null&&Ld(r),_o(t,e.child,null,n),e=Kd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function UC(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Wu(Error(D(422))),Wa(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Pl({mode:"visible",children:r.children},o,0,null),i=Er(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&_o(t,e.child,null,a),t.child.memoizedState=lf(a),t.memoizedState=sf,i);if(!(t.mode&1))return Wa(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(D(419)),r=Wu(i,r,void 0),Wa(e,t,a,r)}if(s=(a&e.childLanes)!==0,at||s){if(r=je,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Cn(e,o),Gt(r,e,o,-1))}return Jd(),r=Wu(Error(D(421))),Wa(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=XC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ht=Gn(o.nextSibling),vt=t,Re=!0,Ht=null,e!==null&&(kt[Ot++]=gn,kt[Ot++]=yn,kt[Ot++]=xr,gn=e.id,yn=e.overflow,xr=t),t=Kd(t,r.children),t.flags|=4096,t)}function Uv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ef(e.return,t,n)}function Hu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function k0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ze(e,t,r.children,n),r=Oe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uv(e,n,t);else if(e.tag===19)Uv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_e(Oe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&zs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&zs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hu(t,!0,n,null,i);break;case"together":Hu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ps(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=Zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function FC(e,t,n){switch(t.tag){case 3:R0(t),So();break;case 5:e0(t);break;case 1:lt(t.type)&&Ds(t);break;case 4:Ud(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_e(Us,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Oe,Oe.current&1),t.flags|=128,null):n&t.child.childLanes?x0(e,t,n):(_e(Oe,Oe.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);_e(Oe,Oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return k0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),_e(Oe,Oe.current),r)break;return null;case 22:case 23:return t.lanes=0,E0(e,t,n)}return Rn(e,t,n)}var O0,uf,T0,P0;O0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};uf=function(){};T0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Sr(ln.current);var i=null;switch(n){case"input":o=Pc(e,o),r=Pc(e,r),i=[];break;case"select":o=Pe({},o,{value:void 0}),r=Pe({},r,{value:void 0}),i=[];break;case"textarea":o=Ac(e,o),r=Ac(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=As)}Dc(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Li.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Li.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&be("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};P0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ni(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function jC(e,t,n){var r=t.pendingProps;switch(Nd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return lt(t.type)&&Is(),Ke(t),null;case 3:return r=t.stateNode,bo(),Ee(st),Ee(Ye),jd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ba(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ht!==null&&(gf(Ht),Ht=null))),uf(e,t),Ke(t),null;case 5:Fd(t);var o=Sr(Wi.current);if(n=t.type,e!==null&&t.stateNode!=null)T0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ke(t),null}if(e=Sr(ln.current),Ba(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[on]=t,r[Bi]=i,e=(t.mode&1)!==0,n){case"dialog":be("cancel",r),be("close",r);break;case"iframe":case"object":case"embed":be("load",r);break;case"video":case"audio":for(o=0;o<di.length;o++)be(di[o],r);break;case"source":be("error",r);break;case"img":case"image":case"link":be("error",r),be("load",r);break;case"details":be("toggle",r);break;case"input":Qh(r,i),be("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},be("invalid",r);break;case"textarea":Gh(r,i),be("invalid",r)}Dc(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&za(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&za(r.textContent,s,e),o=["children",""+s]):Li.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&be("scroll",r)}switch(n){case"input":Aa(r),qh(r,i,!0);break;case"textarea":Aa(r),Yh(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=As)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ry(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[on]=t,e[Bi]=r,O0(e,t,!1,!1),t.stateNode=e;e:{switch(a=Mc(n,r),n){case"dialog":be("cancel",e),be("close",e),o=r;break;case"iframe":case"object":case"embed":be("load",e),o=r;break;case"video":case"audio":for(o=0;o<di.length;o++)be(di[o],e);o=r;break;case"source":be("error",e),o=r;break;case"img":case"image":case"link":be("error",e),be("load",e),o=r;break;case"details":be("toggle",e),o=r;break;case"input":Qh(e,r),o=Pc(e,r),be("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Pe({},r,{value:void 0}),be("invalid",e);break;case"textarea":Gh(e,r),o=Ac(e,r),be("invalid",e);break;default:o=r}Dc(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?ay(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&oy(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ai(e,l):typeof l=="number"&&Ai(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Li.hasOwnProperty(i)?l!=null&&i==="onScroll"&&be("scroll",e):l!=null&&md(e,i,l,a))}switch(n){case"input":Aa(e),qh(e,r,!1);break;case"textarea":Aa(e),Yh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?lo(e,!!r.multiple,i,!1):r.defaultValue!=null&&lo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=As)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ke(t),null;case 6:if(e&&t.stateNode!=null)P0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Sr(Wi.current),Sr(ln.current),Ba(t)){if(r=t.stateNode,n=t.memoizedProps,r[on]=t,(i=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:za(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&za(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[on]=t,t.stateNode=r}return Ke(t),null;case 13:if(Ee(Oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Re&&ht!==null&&t.mode&1&&!(t.flags&128))Qy(),So(),t.flags|=98560,i=!1;else if(i=Ba(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[on]=t}else So(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else Ht!==null&&(gf(Ht),Ht=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Oe.current&1?$e===0&&($e=3):Jd())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return bo(),uf(e,t),e===null&&ji(t.stateNode.containerInfo),Ke(t),null;case 10:return Dd(t.type._context),Ke(t),null;case 17:return lt(t.type)&&Is(),Ke(t),null;case 19:if(Ee(Oe),i=t.memoizedState,i===null)return Ke(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ni(i,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=zs(e),a!==null){for(t.flags|=128,ni(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(Oe,Oe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>Co&&(t.flags|=128,r=!0,ni(i,!1),t.lanes=4194304)}else{if(!r)if(e=zs(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ni(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Re)return Ke(t),null}else 2*Ae()-i.renderingStartTime>Co&&n!==1073741824&&(t.flags|=128,r=!0,ni(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=Oe.current,_e(Oe,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Xd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function zC(e,t){switch(Nd(t),t.tag){case 1:return lt(t.type)&&Is(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bo(),Ee(st),Ee(Ye),jd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fd(t),null;case 13:if(Ee(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Oe),null;case 4:return bo(),null;case 10:return Dd(t.type._context),null;case 22:case 23:return Xd(),null;case 24:return null;default:return null}}var Ha=!1,qe=!1,BC=typeof WeakSet=="function"?WeakSet:Set,Q=null;function ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function cf(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var Fv=!1;function VC(e,t){if(Kc=Ps,e=Iy(),Td(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qc={focusedElem:e,selectionRange:n},Ps=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:zt(t.type,y),S);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(_){Ne(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return g=Fv,Fv=!1,g}function Ei(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&cf(t,n,i)}o=o.next}while(o!==r)}}function Ol(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ff(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function N0(e){var t=e.alternate;t!==null&&(e.alternate=null,N0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[on],delete t[Bi],delete t[Yc],delete t[RC],delete t[xC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L0(e){return e.tag===5||e.tag===3||e.tag===4}function jv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function df(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=As));else if(r!==4&&(e=e.child,e!==null))for(df(e,t,n),e=e.sibling;e!==null;)df(e,t,n),e=e.sibling}function pf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(pf(e,t,n),e=e.sibling;e!==null;)pf(e,t,n),e=e.sibling}var Be=null,Wt=!1;function Pn(e,t,n){for(n=n.child;n!==null;)A0(e,t,n),n=n.sibling}function A0(e,t,n){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:qe||ro(n,t);case 6:var r=Be,o=Wt;Be=null,Pn(e,t,n),Be=r,Wt=o,Be!==null&&(Wt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Wt?(e=Be,n=n.stateNode,e.nodeType===8?Uu(e.parentNode,n):e.nodeType===1&&Uu(e,n),$i(e)):Uu(Be,n.stateNode));break;case 4:r=Be,o=Wt,Be=n.stateNode.containerInfo,Wt=!0,Pn(e,t,n),Be=r,Wt=o;break;case 0:case 11:case 14:case 15:if(!qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&cf(n,t,a),o=o.next}while(o!==r)}Pn(e,t,n);break;case 1:if(!qe&&(ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ne(n,t,s)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,Pn(e,t,n),qe=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function zv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new BC),t.forEach(function(r){var o=JC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Be=s.stateNode,Wt=!1;break e;case 3:Be=s.stateNode.containerInfo,Wt=!0;break e;case 4:Be=s.stateNode.containerInfo,Wt=!0;break e}s=s.return}if(Be===null)throw Error(D(160));A0(i,a,o),Be=null,Wt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ne(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)I0(t,e),t=t.sibling}function I0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ft(t,e),tn(e),r&4){try{Ei(3,e,e.return),Ol(3,e)}catch(y){Ne(e,e.return,y)}try{Ei(5,e,e.return)}catch(y){Ne(e,e.return,y)}}break;case 1:Ft(t,e),tn(e),r&512&&n!==null&&ro(n,n.return);break;case 5:if(Ft(t,e),tn(e),r&512&&n!==null&&ro(n,n.return),e.flags&32){var o=e.stateNode;try{Ai(o,"")}catch(y){Ne(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&ty(o,i),Mc(s,a);var u=Mc(s,i);for(a=0;a<l.length;a+=2){var c=l[a],f=l[a+1];c==="style"?ay(o,f):c==="dangerouslySetInnerHTML"?oy(o,f):c==="children"?Ai(o,f):md(o,c,f,u)}switch(s){case"input":Nc(o,i);break;case"textarea":ny(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?lo(o,!!i.multiple,v,!1):p!==!!i.multiple&&(i.defaultValue!=null?lo(o,!!i.multiple,i.defaultValue,!0):lo(o,!!i.multiple,i.multiple?[]:"",!1))}o[Bi]=i}catch(y){Ne(e,e.return,y)}}break;case 6:if(Ft(t,e),tn(e),r&4){if(e.stateNode===null)throw Error(D(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){Ne(e,e.return,y)}}break;case 3:if(Ft(t,e),tn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{$i(t.containerInfo)}catch(y){Ne(e,e.return,y)}break;case 4:Ft(t,e),tn(e);break;case 13:Ft(t,e),tn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Gd=Ae())),r&4&&zv(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(u=qe)||c,Ft(t,e),qe=u):Ft(t,e),tn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(Q=e,c=e.child;c!==null;){for(f=Q=c;Q!==null;){switch(p=Q,v=p.child,p.tag){case 0:case 11:case 14:case 15:Ei(4,p,p.return);break;case 1:ro(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){Ne(r,n,y)}}break;case 5:ro(p,p.return);break;case 22:if(p.memoizedState!==null){Vv(f);continue}}v!==null?(v.return=p,Q=v):Vv(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=iy("display",a))}catch(y){Ne(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){Ne(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ft(t,e),tn(e),r&4&&zv(e);break;case 21:break;default:Ft(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(L0(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ai(o,""),r.flags&=-33);var i=jv(e);pf(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=jv(e);df(e,s,a);break;default:throw Error(D(161))}}catch(l){Ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WC(e,t,n){Q=e,D0(e)}function D0(e,t,n){for(var r=(e.mode&1)!==0;Q!==null;){var o=Q,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Ha;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||qe;s=Ha;var u=qe;if(Ha=a,(qe=l)&&!u)for(Q=o;Q!==null;)a=Q,l=a.child,a.tag===22&&a.memoizedState!==null?Wv(o):l!==null?(l.return=a,Q=l):Wv(o);for(;i!==null;)Q=i,D0(i),i=i.sibling;Q=o,Ha=s,qe=u}Bv(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Q=i):Bv(e)}}function Bv(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||Ol(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Rv(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Rv(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&$i(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}qe||t.flags&512&&ff(t)}catch(p){Ne(t,t.return,p)}}if(t===e){Q=null;break}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}}function Vv(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Q=n;break}Q=t.return}}function Wv(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ol(4,t)}catch(l){Ne(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ne(t,o,l)}}var i=t.return;try{ff(t)}catch(l){Ne(t,i,l)}break;case 5:var a=t.return;try{ff(t)}catch(l){Ne(t,a,l)}}}catch(l){Ne(t,t.return,l)}if(t===e){Q=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Q=s;break}Q=t.return}}var HC=Math.ceil,Ws=xn.ReactCurrentDispatcher,Qd=xn.ReactCurrentOwner,Nt=xn.ReactCurrentBatchConfig,fe=0,je=null,De=null,Ve=0,pt=0,oo=lr(0),$e=0,qi=null,Or=0,Tl=0,qd=0,Ci=null,it=null,Gd=0,Co=1/0,vn=null,Hs=!1,hf=null,Xn=null,Ka=!1,zn=null,Ks=0,Ri=0,vf=null,hs=-1,vs=0;function et(){return fe&6?Ae():hs!==-1?hs:hs=Ae()}function Jn(e){return e.mode&1?fe&2&&Ve!==0?Ve&-Ve:OC.transition!==null?(vs===0&&(vs=yy()),vs):(e=ve,e!==0||(e=window.event,e=e===void 0?16:Ry(e.type)),e):1}function Gt(e,t,n,r){if(50<Ri)throw Ri=0,vf=null,Error(D(185));ua(e,n,r),(!(fe&2)||e!==je)&&(e===je&&(!(fe&2)&&(Tl|=n),$e===4&&Un(e,Ve)),ut(e,r),n===1&&fe===0&&!(t.mode&1)&&(Co=Ae()+500,Rl&&ur()))}function ut(e,t){var n=e.callbackNode;OE(e,t);var r=Ts(e,e===je?Ve:0);if(r===0)n!==null&&Zh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zh(n),t===1)e.tag===0?kC(Hv.bind(null,e)):Wy(Hv.bind(null,e)),EC(function(){!(fe&6)&&ur()}),n=null;else{switch(wy(r)){case 1:n=_d;break;case 4:n=my;break;case 16:n=Os;break;case 536870912:n=gy;break;default:n=Os}n=V0(n,M0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function M0(e,t){if(hs=-1,vs=0,fe&6)throw Error(D(327));var n=e.callbackNode;if(ho()&&e.callbackNode!==n)return null;var r=Ts(e,e===je?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Qs(e,r);else{t=r;var o=fe;fe|=2;var i=U0();(je!==e||Ve!==t)&&(vn=null,Co=Ae()+500,br(e,t));do try{qC();break}catch(s){$0(e,s)}while(1);Id(),Ws.current=i,fe=o,De!==null?t=0:(je=null,Ve=0,t=$e)}if(t!==0){if(t===2&&(o=zc(e),o!==0&&(r=o,t=mf(e,o))),t===1)throw n=qi,br(e,0),Un(e,r),ut(e,Ae()),n;if(t===6)Un(e,r);else{if(o=e.current.alternate,!(r&30)&&!KC(o)&&(t=Qs(e,r),t===2&&(i=zc(e),i!==0&&(r=i,t=mf(e,i))),t===1))throw n=qi,br(e,0),Un(e,r),ut(e,Ae()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:hr(e,it,vn);break;case 3:if(Un(e,r),(r&130023424)===r&&(t=Gd+500-Ae(),10<t)){if(Ts(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){et(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Gc(hr.bind(null,e,it,vn),t);break}hr(e,it,vn);break;case 4:if(Un(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-qt(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HC(r/1960))-r,10<r){e.timeoutHandle=Gc(hr.bind(null,e,it,vn),r);break}hr(e,it,vn);break;case 5:hr(e,it,vn);break;default:throw Error(D(329))}}}return ut(e,Ae()),e.callbackNode===n?M0.bind(null,e):null}function mf(e,t){var n=Ci;return e.current.memoizedState.isDehydrated&&(br(e,t).flags|=256),e=Qs(e,t),e!==2&&(t=it,it=n,t!==null&&gf(t)),e}function gf(e){it===null?it=e:it.push.apply(it,e)}function KC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Xt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Un(e,t){for(t&=~qd,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function Hv(e){if(fe&6)throw Error(D(327));ho();var t=Ts(e,0);if(!(t&1))return ut(e,Ae()),null;var n=Qs(e,t);if(e.tag!==0&&n===2){var r=zc(e);r!==0&&(t=r,n=mf(e,r))}if(n===1)throw n=qi,br(e,0),Un(e,t),ut(e,Ae()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hr(e,it,vn),ut(e,Ae()),null}function Yd(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(Co=Ae()+500,Rl&&ur())}}function Tr(e){zn!==null&&zn.tag===0&&!(fe&6)&&ho();var t=fe;fe|=1;var n=Nt.transition,r=ve;try{if(Nt.transition=null,ve=1,e)return e()}finally{ve=r,Nt.transition=n,fe=t,!(fe&6)&&ur()}}function Xd(){pt=oo.current,Ee(oo)}function br(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bC(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(Nd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Is();break;case 3:bo(),Ee(st),Ee(Ye),jd();break;case 5:Fd(r);break;case 4:bo();break;case 13:Ee(Oe);break;case 19:Ee(Oe);break;case 10:Dd(r.type._context);break;case 22:case 23:Xd()}n=n.return}if(je=e,De=e=Zn(e.current,null),Ve=pt=t,$e=0,qi=null,qd=Tl=Or=0,it=Ci=null,wr!==null){for(t=0;t<wr.length;t++)if(n=wr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}wr=null}return e}function $0(e,t){do{var n=De;try{if(Id(),fs.current=Vs,Bs){for(var r=Te.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Bs=!1}if(kr=0,Fe=Me=Te=null,bi=!1,Hi=0,Qd.current=null,n===null||n.return===null){$e=1,qi=t,De=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Ve,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=Lv(a);if(v!==null){v.flags&=-257,Av(v,a,s,i,t),v.mode&1&&Nv(i,u,t),t=v,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if(!(t&1)){Nv(i,u,t),Jd();break e}l=Error(D(426))}}else if(Re&&s.mode&1){var S=Lv(a);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Av(S,a,s,i,t),Ld(Eo(l,s));break e}}i=l=Eo(l,s),$e!==4&&($e=2),Ci===null?Ci=[i]:Ci.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=S0(i,l,t);Cv(i,h);break e;case 1:s=l;var d=i.type,m=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Xn===null||!Xn.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=_0(i,s,t);Cv(i,_);break e}}i=i.return}while(i!==null)}j0(n)}catch(x){t=x,De===n&&n!==null&&(De=n=n.return);continue}break}while(1)}function U0(){var e=Ws.current;return Ws.current=Vs,e===null?Vs:e}function Jd(){($e===0||$e===3||$e===2)&&($e=4),je===null||!(Or&268435455)&&!(Tl&268435455)||Un(je,Ve)}function Qs(e,t){var n=fe;fe|=2;var r=U0();(je!==e||Ve!==t)&&(vn=null,br(e,t));do try{QC();break}catch(o){$0(e,o)}while(1);if(Id(),fe=n,Ws.current=r,De!==null)throw Error(D(261));return je=null,Ve=0,$e}function QC(){for(;De!==null;)F0(De)}function qC(){for(;De!==null&&!wE();)F0(De)}function F0(e){var t=B0(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?j0(e):De=t,Qd.current=null}function j0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zC(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,De=null;return}}else if(n=jC(n,t,pt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);$e===0&&($e=5)}function hr(e,t,n){var r=ve,o=Nt.transition;try{Nt.transition=null,ve=1,GC(e,t,n,r)}finally{Nt.transition=o,ve=r}return null}function GC(e,t,n,r){do ho();while(zn!==null);if(fe&6)throw Error(D(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(TE(e,i),e===je&&(De=je=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ka||(Ka=!0,V0(Os,function(){return ho(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Nt.transition,Nt.transition=null;var a=ve;ve=1;var s=fe;fe|=4,Qd.current=null,VC(e,n),I0(n,e),vC(Qc),Ps=!!Kc,Qc=Kc=null,e.current=n,WC(n),SE(),fe=s,ve=a,Nt.transition=i}else e.current=n;if(Ka&&(Ka=!1,zn=e,Ks=o),i=e.pendingLanes,i===0&&(Xn=null),EE(n.stateNode),ut(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hs)throw Hs=!1,e=hf,hf=null,e;return Ks&1&&e.tag!==0&&ho(),i=e.pendingLanes,i&1?e===vf?Ri++:(Ri=0,vf=e):Ri=0,ur(),null}function ho(){if(zn!==null){var e=wy(Ks),t=Nt.transition,n=ve;try{if(Nt.transition=null,ve=16>e?16:e,zn===null)var r=!1;else{if(e=zn,zn=null,Ks=0,fe&6)throw Error(D(331));var o=fe;for(fe|=4,Q=e.current;Q!==null;){var i=Q,a=i.child;if(Q.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Q=u;Q!==null;){var c=Q;switch(c.tag){case 0:case 11:case 15:Ei(8,c,i)}var f=c.child;if(f!==null)f.return=c,Q=f;else for(;Q!==null;){c=Q;var p=c.sibling,v=c.return;if(N0(c),c===u){Q=null;break}if(p!==null){p.return=v,Q=p;break}Q=v}}}var g=i.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}Q=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Q=a;else e:for(;Q!==null;){if(i=Q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ei(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,Q=h;break e}Q=i.return}}var d=e.current;for(Q=d;Q!==null;){a=Q;var m=a.child;if(a.subtreeFlags&2064&&m!==null)m.return=a,Q=m;else e:for(a=d;Q!==null;){if(s=Q,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ol(9,s)}}catch(x){Ne(s,s.return,x)}if(s===a){Q=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,Q=_;break e}Q=s.return}}if(fe=o,ur(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(Sl,e)}catch{}r=!0}return r}finally{ve=n,Nt.transition=t}}return!1}function Kv(e,t,n){t=Eo(n,t),t=S0(e,t,1),e=Yn(e,t,1),t=et(),e!==null&&(ua(e,1,t),ut(e,t))}function Ne(e,t,n){if(e.tag===3)Kv(e,e,n);else for(;t!==null;){if(t.tag===3){Kv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xn===null||!Xn.has(r))){e=Eo(n,e),e=_0(t,e,1),t=Yn(t,e,1),e=et(),t!==null&&(ua(t,1,e),ut(t,e));break}}t=t.return}}function YC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=et(),e.pingedLanes|=e.suspendedLanes&n,je===e&&(Ve&n)===n&&($e===4||$e===3&&(Ve&130023424)===Ve&&500>Ae()-Gd?br(e,0):qd|=n),ut(e,t)}function z0(e,t){t===0&&(e.mode&1?(t=Ma,Ma<<=1,!(Ma&130023424)&&(Ma=4194304)):t=1);var n=et();e=Cn(e,t),e!==null&&(ua(e,t,n),ut(e,n))}function XC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z0(e,n)}function JC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),z0(e,n)}var B0;B0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return at=!1,FC(e,t,n);at=!!(e.flags&131072)}else at=!1,Re&&t.flags&1048576&&Hy(t,$s,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ps(e,t),e=t.pendingProps;var o=wo(t,Ye.current);po(t,n),o=Bd(null,t,r,e,o,n);var i=Vd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(i=!0,Ds(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,$d(t),o.updater=xl,t.stateNode=o,o._reactInternals=t,nf(t,r,e,n),t=af(null,t,r,!0,i,n)):(t.tag=0,Re&&i&&Pd(t),Ze(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ps(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=eR(r),e=zt(r,e),o){case 0:t=of(null,t,r,e,n);break e;case 1:t=Mv(null,t,r,e,n);break e;case 11:t=Iv(null,t,r,e,n);break e;case 14:t=Dv(null,t,r,zt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),of(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Mv(e,t,r,o,n);case 3:e:{if(R0(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Gy(e,t),js(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Eo(Error(D(423)),t),t=$v(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(D(424)),t),t=$v(e,t,r,n,o);break e}else for(ht=Gn(t.stateNode.containerInfo.firstChild),vt=t,Re=!0,Ht=null,n=Zy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===o){t=Rn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return e0(t),e===null&&Zc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,qc(r,o)?a=null:i!==null&&qc(r,i)&&(t.flags|=32),C0(e,t),Ze(e,t,a,n),t.child;case 6:return e===null&&Zc(t),null;case 13:return x0(e,t,n);case 4:return Ud(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_o(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Iv(e,t,r,o,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,_e(Us,r._currentValue),r._currentValue=a,i!==null)if(Xt(i.value,a)){if(i.children===o.children&&!st.current){t=Rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Sn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ef(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(D(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ef(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ze(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,po(t,n),o=At(o),r=r(o),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,o=zt(r,t.pendingProps),o=zt(r.type,o),Dv(e,t,r,o,n);case 15:return b0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),ps(e,t),t.tag=1,lt(r)?(e=!0,Ds(t)):e=!1,po(t,n),Xy(t,r,o),nf(t,r,o,n),af(null,t,r,!0,e,n);case 19:return k0(e,t,n);case 22:return E0(e,t,n)}throw Error(D(156,t.tag))};function V0(e,t){return vy(e,t)}function ZC(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,r){return new ZC(e,t,n,r)}function Zd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eR(e){if(typeof e=="function")return Zd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yd)return 11;if(e===wd)return 14}return 2}function Zn(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.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.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ms(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Zd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case qr:return Er(n.children,o,i,t);case gd:a=8,o|=8;break;case xc:return e=Tt(12,n,t,o|2),e.elementType=xc,e.lanes=i,e;case kc:return e=Tt(13,n,t,o),e.elementType=kc,e.lanes=i,e;case Oc:return e=Tt(19,n,t,o),e.elementType=Oc,e.lanes=i,e;case Jg:return Pl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yg:a=10;break e;case Xg:a=9;break e;case yd:a=11;break e;case wd:a=14;break e;case An:a=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Tt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Er(e,t,n,r){return e=Tt(7,e,r,t),e.lanes=n,e}function Pl(e,t,n,r){return e=Tt(22,e,r,t),e.elementType=Jg,e.lanes=n,e.stateNode={isHidden:!1},e}function Ku(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function Qu(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ku(0),this.expirationTimes=ku(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ku(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ep(e,t,n,r,o,i,a,s,l){return e=new tR(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Tt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$d(i),e}function nR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function W0(e){if(!e)return or;e=e._reactInternals;e:{if(Dr(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(lt(n))return Vy(e,n,t)}return t}function H0(e,t,n,r,o,i,a,s,l){return e=ep(n,r,!0,e,o,i,a,s,l),e.context=W0(null),n=e.current,r=et(),o=Jn(n),i=Sn(r,o),i.callback=t??null,Yn(n,i,o),e.current.lanes=o,ua(e,o,r),ut(e,r),e}function Nl(e,t,n,r){var o=t.current,i=et(),a=Jn(o);return n=W0(n),t.context===null?t.context=n:t.pendingContext=n,t=Sn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yn(o,t,a),e!==null&&(Gt(e,o,a,i),cs(e,o,a)),a}function qs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Qv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tp(e,t){Qv(e,t),(e=e.alternate)&&Qv(e,t)}function rR(){return null}var K0=typeof reportError=="function"?reportError:function(e){console.error(e)};function np(e){this._internalRoot=e}Ll.prototype.render=np.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Nl(e,t,null,null)};Ll.prototype.unmount=np.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tr(function(){Nl(null,e,null,null)}),t[En]=null}};function Ll(e){this._internalRoot=e}Ll.prototype.unstable_scheduleHydration=function(e){if(e){var t=by();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&Cy(e)}};function rp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Al(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qv(){}function oR(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=qs(a);i.call(u)}}var a=H0(t,r,e,0,null,!1,!1,"",qv);return e._reactRootContainer=a,e[En]=a.current,ji(e.nodeType===8?e.parentNode:e),Tr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=qs(l);s.call(u)}}var l=ep(e,0,!1,null,null,!1,!1,"",qv);return e._reactRootContainer=l,e[En]=l.current,ji(e.nodeType===8?e.parentNode:e),Tr(function(){Nl(t,l,n,r)}),l}function Il(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=qs(a);s.call(l)}}Nl(t,a,e,o)}else a=oR(n,t,e,o,r);return qs(a)}Sy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fi(t.pendingLanes);n!==0&&(bd(t,n|1),ut(t,Ae()),!(fe&6)&&(Co=Ae()+500,ur()))}break;case 13:Tr(function(){var r=Cn(e,1);if(r!==null){var o=et();Gt(r,e,1,o)}}),tp(e,1)}};Ed=function(e){if(e.tag===13){var t=Cn(e,134217728);if(t!==null){var n=et();Gt(t,e,134217728,n)}tp(e,134217728)}};_y=function(e){if(e.tag===13){var t=Jn(e),n=Cn(e,t);if(n!==null){var r=et();Gt(n,e,t,r)}tp(e,t)}};by=function(){return ve};Ey=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}};Uc=function(e,t,n){switch(t){case"input":if(Nc(e,n),t=n.name,n.type==="radio"&&t!=null){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=Cl(r);if(!o)throw Error(D(90));ey(r),Nc(r,o)}}}break;case"textarea":ny(e,n);break;case"select":t=n.value,t!=null&&lo(e,!!n.multiple,t,!1)}};uy=Yd;cy=Tr;var iR={usingClientEntryPoint:!1,Events:[fa,Jr,Cl,sy,ly,Yd]},ri={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},aR={bundleType:ri.bundleType,version:ri.version,rendererPackageName:ri.rendererPackageName,rendererConfig:ri.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=py(e),e===null?null:e.stateNode},findFiberByHostInstance:ri.findFiberByHostInstance||rR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qa.isDisabled&&Qa.supportsFiber)try{Sl=Qa.inject(aR),sn=Qa}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iR;wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rp(t))throw Error(D(200));return nR(e,t,null,n)};wt.createRoot=function(e,t){if(!rp(e))throw Error(D(299));var n=!1,r="",o=K0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,!1,r,o),e[En]=t.current,ji(e.nodeType===8?e.parentNode:e),new np(t)};wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=py(t),e=e===null?null:e.stateNode,e};wt.flushSync=function(e){return Tr(e)};wt.hydrate=function(e,t,n){if(!Al(t))throw Error(D(200));return Il(null,e,t,!0,n)};wt.hydrateRoot=function(e,t,n){if(!rp(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=K0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=H0(t,null,e,1,n??null,o,!1,i,a),e[En]=t.current,ji(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ll(t)};wt.render=function(e,t,n){if(!Al(t))throw Error(D(200));return Il(null,e,t,!1,n)};wt.unmountComponentAtNode=function(e){if(!Al(e))throw Error(D(40));return e._reactRootContainer?(Tr(function(){Il(null,null,e,!1,function(){e._reactRootContainer=null,e[En]=null})}),!0):!1};wt.unstable_batchedUpdates=Yd;wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Al(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Il(e,t,n,!1,r)};wt.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=wt})(rE);const sR=ld(go);var Q0,Gv=go;Q0=Gv.createRoot,Gv.hydrateRoot;var Gs={},lR={get exports(){return Gs},set exports(e){Gs=e}},Pr={},ge={},uR={get exports(){return ge},set exports(e){ge=e}},cR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fR=cR,dR=fR;function q0(){}function G0(){}G0.resetWarningCache=q0;var pR=function(){function e(r,o,i,a,s,l){if(l!==dR){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}}e.isRequired=e;function t(){return e}var n={array:e,bigint: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:G0,resetWarningCache:q0};return n.PropTypes=n,n};uR.exports=pR();var Ys={},hR={get exports(){return Ys},set exports(e){Ys=e}},Jt={},Gi={},vR={get exports(){return Gi},set exports(e){Gi=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;/*!
|
|
* Adapted from jQuery UI core
|
|
*
|
|
* http://jqueryui.com
|
|
*
|
|
* Copyright 2014 jQuery Foundation and other contributors
|
|
* Released under the MIT license.
|
|
* http://jquery.org/license
|
|
*
|
|
* http://api.jqueryui.com/category/ui-core/
|
|
*/var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(f,p){return p.getPropertyValue("overflow")!=="visible"||f.scrollWidth<=0&&f.scrollHeight<=0}function a(f){var p=f.offsetWidth<=0&&f.offsetHeight<=0;if(p&&!f.innerHTML)return!0;try{var v=window.getComputedStyle(f),g=v.getPropertyValue("display");return p?g!==r&&i(f,v):g===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(f){for(var p=f,v=f.getRootNode&&f.getRootNode();p&&p!==document.body;){if(v&&p===v&&(p=v.host.parentNode),a(p))return!1;p=p.parentNode}return!0}function l(f,p){var v=f.nodeName.toLowerCase(),g=o.test(v)&&!f.disabled||v==="a"&&f.href||p;return g&&s(f)}function u(f){var p=f.getAttribute("tabindex");p===null&&(p=void 0);var v=isNaN(p);return(v||p>=0)&&l(f,!v)}function c(f){var p=[].slice.call(f.querySelectorAll("*"),0).reduce(function(v,g){return v.concat(g.shadowRoot?c(g.shadowRoot):[g])},[]);return p.filter(u)}e.exports=t.default})(vR,Gi);Object.defineProperty(Jt,"__esModule",{value:!0});Jt.resetState=wR;Jt.log=SR;Jt.handleBlur=Yi;Jt.handleFocus=Xi;Jt.markForFocusLater=_R;Jt.returnFocus=bR;Jt.popWithoutFocus=ER;Jt.setupScopedFocus=CR;Jt.teardownScopedFocus=RR;var mR=Gi,gR=yR(mR);function yR(e){return e&&e.__esModule?e:{default:e}}var Ro=[],io=null,yf=!1;function wR(){Ro=[]}function SR(){}function Yi(){yf=!0}function Xi(){if(yf){if(yf=!1,!io)return;setTimeout(function(){if(!io.contains(document.activeElement)){var e=(0,gR.default)(io)[0]||io;e.focus()}},0)}}function _R(){Ro.push(document.activeElement)}function bR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Ro.length!==0&&(t=Ro.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function ER(){Ro.length>0&&Ro.pop()}function CR(e){io=e,window.addEventListener?(window.addEventListener("blur",Yi,!1),document.addEventListener("focus",Xi,!0)):(window.attachEvent("onBlur",Yi),document.attachEvent("onFocus",Xi))}function RR(){io=null,window.addEventListener?(window.removeEventListener("blur",Yi),document.removeEventListener("focus",Xi)):(window.detachEvent("onBlur",Yi),document.detachEvent("onFocus",Xi))}var Xs={},xR={get exports(){return Xs},set exports(e){Xs=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=Gi,r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?i(s.activeElement.shadowRoot):s.activeElement}function a(s,l){var u=(0,r.default)(s);if(!u.length){l.preventDefault();return}var c=void 0,f=l.shiftKey,p=u[0],v=u[u.length-1],g=i();if(s===g){if(!f)return;c=v}if(v===g&&!f&&(c=p),p===g&&f&&(c=v),c){l.preventDefault(),c.focus();return}var y=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),S=y!=null&&y[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(S){var h=u.indexOf(g);if(h>-1&&(h+=f?-1:1),c=u[h],typeof c>"u"){l.preventDefault(),c=f?v:p,c.focus();return}l.preventDefault(),c.focus()}}e.exports=t.default})(xR,Xs);var Zt={},kR=function(){},OR=kR,Yt={},wf={},TR={get exports(){return wf},set exports(e){wf=e}};/*!
|
|
Copyright (c) 2015 Jed Watson.
|
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
All rights reserved.
|
|
*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(TR);Object.defineProperty(Yt,"__esModule",{value:!0});Yt.canUseDOM=Yt.SafeNodeList=Yt.SafeHTMLCollection=void 0;var PR=wf,NR=LR(PR);function LR(e){return e&&e.__esModule?e:{default:e}}var Dl=NR.default,AR=Dl.canUseDOM?window.HTMLElement:{};Yt.SafeHTMLCollection=Dl.canUseDOM?window.HTMLCollection:{};Yt.SafeNodeList=Dl.canUseDOM?window.NodeList:{};Yt.canUseDOM=Dl.canUseDOM;Yt.default=AR;Object.defineProperty(Zt,"__esModule",{value:!0});Zt.resetState=UR;Zt.log=FR;Zt.assertNodeList=Y0;Zt.setElement=jR;Zt.validateElement=op;Zt.hide=zR;Zt.show=BR;Zt.documentNotReadyOrSSRTesting=VR;var IR=OR,DR=$R(IR),MR=Yt;function $R(e){return e&&e.__esModule?e:{default:e}}var xt=null;function UR(){xt&&(xt.removeAttribute?xt.removeAttribute("aria-hidden"):xt.length!=null?xt.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(xt).forEach(function(e){return e.removeAttribute("aria-hidden")})),xt=null}function FR(){}function Y0(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function jR(e){var t=e;if(typeof t=="string"&&MR.canUseDOM){var n=document.querySelectorAll(t);Y0(n,t),t=n}return xt=t||xt,xt}function op(e){var t=e||xt;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,DR.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function zR(e){var t=!0,n=!1,r=void 0;try{for(var o=op(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function BR(e){var t=!0,n=!1,r=void 0;try{for(var o=op(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var a=i.value;a.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function VR(){xt=null}var $o={};Object.defineProperty($o,"__esModule",{value:!0});$o.resetState=WR;$o.log=HR;var xi={},ki={};function Yv(e,t){e.classList.remove(t)}function WR(){var e=document.getElementsByTagName("html")[0];for(var t in xi)Yv(e,xi[t]);var n=document.body;for(var r in ki)Yv(n,ki[r]);xi={},ki={}}function HR(){}var KR=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},QR=function(t,n){return t[n]&&(t[n]-=1),n},qR=function(t,n,r){r.forEach(function(o){KR(n,o),t.add(o)})},GR=function(t,n,r){r.forEach(function(o){QR(n,o),n[o]===0&&t.remove(o)})};$o.add=function(t,n){return qR(t.classList,t.nodeName.toLowerCase()=="html"?xi:ki,n.split(" "))};$o.remove=function(t,n){return GR(t.classList,t.nodeName.toLowerCase()=="html"?xi:ki,n.split(" "))};var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.log=XR;Uo.resetState=JR;function YR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var X0=function e(){var t=this;YR(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Js=new X0;function XR(){console.log("portalOpenInstances ----------"),console.log(Js.openInstances.length),Js.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function JR(){Js=new X0}Uo.default=Js;var ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.resetState=n2;ip.log=r2;var ZR=Uo,e2=t2(ZR);function t2(e){return e&&e.__esModule?e:{default:e}}var Qe=void 0,Bt=void 0,Cr=[];function n2(){for(var e=[Qe,Bt],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}Qe=Bt=null,Cr=[]}function r2(){console.log("bodyTrap ----------"),console.log(Cr.length);for(var e=[Qe,Bt],t=0;t<e.length;t++){var n=e[t],r=n||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")}function Xv(){Cr.length!==0&&Cr[Cr.length-1].focusContent()}function o2(e,t){!Qe&&!Bt&&(Qe=document.createElement("div"),Qe.setAttribute("data-react-modal-body-trap",""),Qe.style.position="absolute",Qe.style.opacity="0",Qe.setAttribute("tabindex","0"),Qe.addEventListener("focus",Xv),Bt=Qe.cloneNode(),Bt.addEventListener("focus",Xv)),Cr=t,Cr.length>0?(document.body.firstChild!==Qe&&document.body.insertBefore(Qe,document.body.firstChild),document.body.lastChild!==Bt&&document.body.appendChild(Bt)):(Qe.parentElement&&Qe.parentElement.removeChild(Qe),Bt.parentElement&&Bt.parentElement.removeChild(Bt))}e2.default.subscribe(o2);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(K){for(var j=1;j<arguments.length;j++){var X=arguments[j];for(var O in X)Object.prototype.hasOwnProperty.call(X,O)&&(K[O]=X[O])}return K},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},o=function(){function K(j,X){for(var O=0;O<X.length;O++){var P=X[O];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(j,P.key,P)}}return function(j,X,O){return X&&K(j.prototype,X),O&&K(j,O),j}}(),i=w,a=ge,s=x(a),l=Jt,u=_(l),c=Xs,f=x(c),p=Zt,v=_(p),g=$o,y=_(g),S=Yt,h=x(S),d=Uo,m=x(d);function _(K){if(K&&K.__esModule)return K;var j={};if(K!=null)for(var X in K)Object.prototype.hasOwnProperty.call(K,X)&&(j[X]=K[X]);return j.default=K,j}function x(K){return K&&K.__esModule?K:{default:K}}function C(K,j){if(!(K instanceof j))throw new TypeError("Cannot call a class as a function")}function T(K,j){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:K}function N(K,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);K.prototype=Object.create(j&&j.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(K,j):K.__proto__=j)}var W={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},M=function(j){return j.code==="Tab"||j.keyCode===9},ee=function(j){return j.code==="Escape"||j.keyCode===27},pe=0,ue=function(K){N(j,K);function j(X){C(this,j);var O=T(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,X));return O.setOverlayRef=function(P){O.overlay=P,O.props.overlayRef&&O.props.overlayRef(P)},O.setContentRef=function(P){O.content=P,O.props.contentRef&&O.props.contentRef(P)},O.afterClose=function(){var P=O.props,H=P.appElement,$=P.ariaHideApp,U=P.htmlOpenClassName,E=P.bodyOpenClassName,L=P.parentSelector,A=L&&L().ownerDocument||document;E&&y.remove(A.body,E),U&&y.remove(A.getElementsByTagName("html")[0],U),$&&pe>0&&(pe-=1,pe===0&&v.show(H)),O.props.shouldFocusAfterRender&&(O.props.shouldReturnFocusAfterClose?(u.returnFocus(O.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),O.props.onAfterClose&&O.props.onAfterClose(),m.default.deregister(O)},O.open=function(){O.beforeOpen(),O.state.afterOpen&&O.state.beforeClose?(clearTimeout(O.closeTimer),O.setState({beforeClose:!1})):(O.props.shouldFocusAfterRender&&(u.setupScopedFocus(O.node),u.markForFocusLater()),O.setState({isOpen:!0},function(){O.openAnimationFrame=requestAnimationFrame(function(){O.setState({afterOpen:!0}),O.props.isOpen&&O.props.onAfterOpen&&O.props.onAfterOpen({overlayEl:O.overlay,contentEl:O.content})})}))},O.close=function(){O.props.closeTimeoutMS>0?O.closeWithTimeout():O.closeWithoutTimeout()},O.focusContent=function(){return O.content&&!O.contentHasFocus()&&O.content.focus({preventScroll:!0})},O.closeWithTimeout=function(){var P=Date.now()+O.props.closeTimeoutMS;O.setState({beforeClose:!0,closesAt:P},function(){O.closeTimer=setTimeout(O.closeWithoutTimeout,O.state.closesAt-Date.now())})},O.closeWithoutTimeout=function(){O.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},O.afterClose)},O.handleKeyDown=function(P){M(P)&&(0,f.default)(O.content,P),O.props.shouldCloseOnEsc&&ee(P)&&(P.stopPropagation(),O.requestClose(P))},O.handleOverlayOnClick=function(P){O.shouldClose===null&&(O.shouldClose=!0),O.shouldClose&&O.props.shouldCloseOnOverlayClick&&(O.ownerHandlesClose()?O.requestClose(P):O.focusContent()),O.shouldClose=null},O.handleContentOnMouseUp=function(){O.shouldClose=!1},O.handleOverlayOnMouseDown=function(P){!O.props.shouldCloseOnOverlayClick&&P.target==O.overlay&&P.preventDefault()},O.handleContentOnClick=function(){O.shouldClose=!1},O.handleContentOnMouseDown=function(){O.shouldClose=!1},O.requestClose=function(P){return O.ownerHandlesClose()&&O.props.onRequestClose(P)},O.ownerHandlesClose=function(){return O.props.onRequestClose},O.shouldBeClosed=function(){return!O.state.isOpen&&!O.state.beforeClose},O.contentHasFocus=function(){return document.activeElement===O.content||O.content.contains(document.activeElement)},O.buildClassName=function(P,H){var $=(typeof H>"u"?"undefined":r(H))==="object"?H:{base:W[P],afterOpen:W[P]+"--after-open",beforeClose:W[P]+"--before-close"},U=$.base;return O.state.afterOpen&&(U=U+" "+$.afterOpen),O.state.beforeClose&&(U=U+" "+$.beforeClose),typeof H=="string"&&H?U+" "+H:U},O.attributesFromObject=function(P,H){return Object.keys(H).reduce(function($,U){return $[P+"-"+U]=H[U],$},{})},O.state={afterOpen:!1,beforeClose:!1},O.shouldClose=null,O.moveFromContentToOverlay=null,O}return o(j,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(O,P){this.props.isOpen&&!O.isOpen?this.open():!this.props.isOpen&&O.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!P.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var O=this.props,P=O.appElement,H=O.ariaHideApp,$=O.htmlOpenClassName,U=O.bodyOpenClassName,E=O.parentSelector,L=E&&E().ownerDocument||document;U&&y.add(L.body,U),$&&y.add(L.getElementsByTagName("html")[0],$),H&&(pe+=1,v.hide(P)),m.default.register(this)}},{key:"render",value:function(){var O=this.props,P=O.id,H=O.className,$=O.overlayClassName,U=O.defaultStyles,E=O.children,L=H?{}:U.content,A=$?{}:U.overlay;if(this.shouldBeClosed())return null;var J={ref:this.setOverlayRef,className:this.buildClassName("overlay",$),style:n({},A,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},F=n({id:P,ref:this.setContentRef,style:n({},L,this.props.style.content),className:this.buildClassName("content",H),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),z=this.props.contentElement(F,E);return this.props.overlayElement(J,z)}}]),j}(i.Component);ue.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ue.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(S.SafeHTMLCollection),s.default.instanceOf(S.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=ue,e.exports=t.default})(hR,Ys);function J0(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Z0(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function e1(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}J0.__suppressDeprecationWarning=!0;Z0.__suppressDeprecationWarning=!0;e1.__suppressDeprecationWarning=!0;function i2(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
|
|
`+i+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
|
|
`+n:"")+(r!==null?`
|
|
`+r:"")+(o!==null?`
|
|
`+o:"")+`
|
|
|
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=J0,t.componentWillReceiveProps=Z0),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=e1;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,c,f){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,u,c,p)}}return e}const a2=Object.freeze(Object.defineProperty({__proto__:null,polyfill:i2},Symbol.toStringTag,{value:"Module"})),s2=S_(a2);Object.defineProperty(Pr,"__esModule",{value:!0});Pr.bodyOpenClassName=Pr.portalClassName=void 0;var Jv=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},l2=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t1=w,Zs=pa(t1),u2=go,el=pa(u2),c2=ge,oe=pa(c2),f2=Ys,Zv=pa(f2),d2=Zt,p2=v2(d2),Bn=Yt,em=pa(Bn),h2=s2;function v2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function pa(e){return e&&e.__esModule?e:{default:e}}function m2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function g2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y2=Pr.portalClassName="ReactModalPortal",w2=Pr.bodyOpenClassName="ReactModal__Body--open",vr=Bn.canUseDOM&&el.default.createPortal!==void 0,nm=function(t){return document.createElement(t)},rm=function(){return vr?el.default.createPortal:el.default.unstable_renderSubtreeIntoContainer};function qa(e){return e()}var ha=function(e){g2(t,e);function t(){var n,r,o,i;m2(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return i=(r=(o=tm(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.removePortal=function(){!vr&&el.default.unmountComponentAtNode(o.node);var u=qa(o.props.parentSelector);u&&u.contains(o.node)?u.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(u){o.portal=u},o.renderPortal=function(u){var c=rm(),f=c(o,Zs.default.createElement(Zv.default,Jv({defaultStyles:t.defaultStyles},u)),o.node);o.portalRef(f)},r),tm(o,i)}return l2(t,[{key:"componentDidMount",value:function(){if(Bn.canUseDOM){vr||(this.node=nm("div")),this.node.className=this.props.portalClassName;var r=qa(this.props.parentSelector);r.appendChild(this.node),!vr&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(r){var o=qa(r.parentSelector),i=qa(this.props.parentSelector);return{prevParent:o,nextParent:i}}},{key:"componentDidUpdate",value:function(r,o,i){if(Bn.canUseDOM){var a=this.props,s=a.isOpen,l=a.portalClassName;r.portalClassName!==l&&(this.node.className=l);var u=i.prevParent,c=i.nextParent;c!==u&&(u.removeChild(this.node),c.appendChild(this.node)),!(!r.isOpen&&!s)&&!vr&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!Bn.canUseDOM||!this.node||!this.portal)){var r=this.portal.state,o=Date.now(),i=r.isOpen&&this.props.closeTimeoutMS&&(r.closesAt||o+this.props.closeTimeoutMS);i?(r.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,i-o)):this.removePortal()}}},{key:"render",value:function(){if(!Bn.canUseDOM||!vr)return null;!this.node&&vr&&(this.node=nm("div"));var r=rm();return r(Zs.default.createElement(Zv.default,Jv({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(r){p2.setElement(r)}}]),t}(t1.Component);ha.propTypes={isOpen:oe.default.bool.isRequired,style:oe.default.shape({content:oe.default.object,overlay:oe.default.object}),portalClassName:oe.default.string,bodyOpenClassName:oe.default.string,htmlOpenClassName:oe.default.string,className:oe.default.oneOfType([oe.default.string,oe.default.shape({base:oe.default.string.isRequired,afterOpen:oe.default.string.isRequired,beforeClose:oe.default.string.isRequired})]),overlayClassName:oe.default.oneOfType([oe.default.string,oe.default.shape({base:oe.default.string.isRequired,afterOpen:oe.default.string.isRequired,beforeClose:oe.default.string.isRequired})]),appElement:oe.default.oneOfType([oe.default.instanceOf(em.default),oe.default.instanceOf(Bn.SafeHTMLCollection),oe.default.instanceOf(Bn.SafeNodeList),oe.default.arrayOf(oe.default.instanceOf(em.default))]),onAfterOpen:oe.default.func,onRequestClose:oe.default.func,closeTimeoutMS:oe.default.number,ariaHideApp:oe.default.bool,shouldFocusAfterRender:oe.default.bool,shouldCloseOnOverlayClick:oe.default.bool,shouldReturnFocusAfterClose:oe.default.bool,preventScroll:oe.default.bool,parentSelector:oe.default.func,aria:oe.default.object,data:oe.default.object,role:oe.default.string,contentLabel:oe.default.string,shouldCloseOnEsc:oe.default.bool,overlayRef:oe.default.func,contentRef:oe.default.func,id:oe.default.string,overlayElement:oe.default.func,contentElement:oe.default.func};ha.defaultProps={isOpen:!1,portalClassName:y2,bodyOpenClassName:w2,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,n){return Zs.default.createElement("div",t,n)},contentElement:function(t,n){return Zs.default.createElement("div",t,n)}};ha.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}};(0,h2.polyfill)(ha);Pr.default=ha;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Pr,r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}t.default=r.default,e.exports=t.default})(lR,Gs);const n1=ld(Gs);class va{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Ji=typeof window>"u"||"Deno"in window;function Rt(){}function S2(e,t){return typeof e=="function"?e(t):e}function Sf(e){return typeof e=="number"&&e>=0&&e!==1/0}function r1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pi(e,t,n){return ma(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function mU(e,t,n){return ma(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Dn(e,t,n){return ma(e)?[{...t,queryKey:e},n]:[e||{},t]}function om(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(ma(a)){if(r){if(t.queryHash!==ap(a,t.options))return!1}else if(!tl(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function im(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(ma(i)){if(!t.options.mutationKey)return!1;if(n){if(_r(t.options.mutationKey)!==_r(i))return!1}else if(!tl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function ap(e,t){return((t==null?void 0:t.queryKeyHashFn)||_r)(e)}function _r(e){return JSON.stringify(e,(t,n)=>_f(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function tl(e,t){return o1(e,t)}function o1(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!o1(e[n],t[n])):!1}function i1(e,t){if(e===t)return e;const n=sm(e)&&sm(t);if(n||_f(e)&&_f(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=i1(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function am(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function sm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _f(e){if(!lm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!lm(n)||!n.hasOwnProperty("isPrototypeOf"))}function lm(e){return Object.prototype.toString.call(e)==="[object Object]"}function ma(e){return Array.isArray(e)}function a1(e){return new Promise(t=>{setTimeout(t,e)})}function um(e){a1(0).then(e)}function _2(){if(typeof AbortController=="function")return new AbortController}function bf(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?i1(e,t):t}class b2 extends va{constructor(){super(),this.setup=t=>{if(!Ji&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const nl=new b2;class E2 extends va{constructor(){super(),this.setup=t=>{if(!Ji&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const rl=new E2;function C2(e){return Math.min(1e3*2**e,3e4)}function Ml(e){return(e??"online")==="online"?rl.isOnline():!0}class s1{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function gs(e){return e instanceof s1}function l1(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((S,h)=>{i=S,a=h}),l=S=>{r||(v(new s1(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!nl.isFocused()||e.networkMode!=="always"&&!rl.isOnline(),p=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),o==null||o(),i(S))},v=S=>{r||(r=!0,e.onError==null||e.onError(S),o==null||o(),a(S))},g=()=>new Promise(S=>{o=h=>{if(r||!f())return S(h)},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let S;try{S=e.fn()}catch(h){S=Promise.reject(h)}Promise.resolve(S).then(p).catch(h=>{var d,m;if(r)return;const _=(d=e.retry)!=null?d:3,x=(m=e.retryDelay)!=null?m:C2,C=typeof x=="function"?x(n,h):x,T=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,h);if(t||!T){v(h);return}n++,e.onFail==null||e.onFail(n,h),a1(C).then(()=>{if(f())return g()}).then(()=>{t?v(h):y()})})};return Ml(e.networkMode)?y():g().then(y),{promise:s,cancel:l,continue:()=>{o==null||o()},cancelRetry:u,continueRetry:c}}const sp=console;function R2(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},i=c=>{t?e.push(c):um(()=>{n(c)})},a=c=>(...f)=>{i(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&um(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Ie=R2();class u1{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sf(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Ji?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class x2 extends u1{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||sp,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||k2(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=bf(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Rt).catch(Rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!r1(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(g=>g.options.queryFn);v&&this.setOptions(v.options)}Array.isArray(this.options.queryKey);const a=_2(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const p=v=>{if(gs(v)&&v.silent||this.dispatch({type:"error",error:v}),!gs(v)){var g,y;(g=(y=this.cache.config).onError)==null||g.call(y,v,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=l1({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:v=>{var g,y;if(typeof v>"u"){p(new Error("undefined"));return}this.setData(v),(g=(y=this.cache.config).onSuccess)==null||g.call(y,v,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(v,g)=>{this.dispatch({type:"failed",failureCount:v,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Ml(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return gs(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ie.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function k2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class c1 extends va{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:ap(i,n);let s=this.get(a);return s||(s=new x2({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Ie.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Dn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>om(r,o))}findAll(t,n){const[r]=Dn(t,n);return Object.keys(r).length>0?this.queries.filter(o=>om(r,o)):this.queries}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ie.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Ie.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class O2 extends u1{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||sp,this.observers=[],this.state=t.state||T2(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var m;return this.retryer=l1({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(_,x)=>{this.dispatch({type:"failed",failureCount:_,error:x})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(m=this.options.retry)!=null?m:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l;if(!n){var u,c,f,p;this.dispatch({type:"loading",variables:this.options.variables}),await((u=(c=this.mutationCache.config).onMutate)==null?void 0:u.call(c,this.state.variables,this));const _=await((f=(p=this.options).onMutate)==null?void 0:f.call(p,this.state.variables));_!==this.state.context&&this.dispatch({type:"loading",context:_,variables:this.state.variables})}const m=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,m,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,m,this.state.variables,this.state.context)),await((s=(l=this.options).onSettled)==null?void 0:s.call(l,m,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:m}),m}catch(m){try{var v,g,y,S,h,d;throw await((v=(g=this.mutationCache.config).onError)==null?void 0:v.call(g,m,this.state.variables,this.state.context,this)),await((y=(S=this.options).onError)==null?void 0:y.call(S,m,this.state.variables,this.state.context)),await((h=(d=this.options).onSettled)==null?void 0:h.call(d,void 0,m,this.state.variables,this.state.context)),m}finally{this.dispatch({type:"error",error:m})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ml(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ie.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function T2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class P2 extends va{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new O2({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Ie.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>im(t,n))}findAll(t){return this.mutations.filter(n=>im(t,n))}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return Ie.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Rt)),Promise.resolve()))}}function N2(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],v=((a=e.state.data)==null?void 0:a.pageParams)||[];let g=v,y=!1;const S=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var T;if((T=e.signal)!=null&&T.aborted)y=!0;else{var N;(N=e.signal)==null||N.addEventListener("abort",()=>{y=!0})}return e.signal}})},h=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),d=(C,T,N,W)=>(g=W?[T,...g]:[...g,T],W?[N,...C]:[...C,N]),m=(C,T,N,W)=>{if(y)return Promise.reject("Cancelled");if(typeof N>"u"&&!T&&C.length)return Promise.resolve(C);const M={queryKey:e.queryKey,pageParam:N,meta:e.options.meta};S(M);const ee=h(M);return Promise.resolve(ee).then(ue=>d(C,N,ue,W))};let _;if(!p.length)_=m([]);else if(c){const C=typeof u<"u",T=C?u:cm(e.options,p);_=m(p,C,T)}else if(f){const C=typeof u<"u",T=C?u:L2(e.options,p);_=m(p,C,T,!0)}else{g=[];const C=typeof e.options.getNextPageParam>"u";_=(s&&p[0]?s(p[0],0,p):!0)?m([],C,v[0]):Promise.resolve(d([],v[0],p[0]));for(let N=1;N<p.length;N++)_=_.then(W=>{if(s&&p[N]?s(p[N],N,p):!0){const ee=C?v[N]:cm(e.options,W);return m(W,C,ee)}return Promise.resolve(d(W,v[N],p[N]))})}return _.then(C=>({pages:C,pageParams:g}))}}}}function cm(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function L2(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class A2{constructor(t={}){this.queryCache=t.queryCache||new c1,this.mutationCache=t.mutationCache||new P2,this.logger=t.logger||sp,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=nl.subscribe(()=>{nl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=rl.subscribe(()=>{rl.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Dn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=pi(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=S2(n,i);if(typeof a>"u")return;const s=pi(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Ie.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Dn(t,n),o=this.queryCache;Ie.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Dn(t,n,r),a=this.queryCache,s={type:"active",...o};return Ie.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Dn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Ie.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(Rt).catch(Rt)}invalidateQueries(t,n,r){const[o,i]=Dn(t,n,r);return Ie.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=Dn(t,n,r),a=Ie.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(Rt);return i!=null&&i.throwOnError||(s=s.catch(Rt)),s}fetchQuery(t,n,r){const o=pi(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Rt).catch(Rt)}fetchInfiniteQuery(t,n,r){const o=pi(t,n,r);return o.behavior=N2(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Rt).catch(Rt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>_r(t)===_r(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>tl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>_r(t)===_r(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>tl(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=ap(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class I2 extends va{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),fm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return Ef(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ef(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),am(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&dm(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Rt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Ji||this.currentResult.isStale||!Sf(this.options.staleTime))return;const n=r1(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Ji||this.options.enabled===!1||!Sf(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||nl.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:v,errorUpdatedAt:g,fetchStatus:y,status:S}=f,h=!1,d=!1,m;if(n._optimisticResults){const N=this.hasListeners(),W=!N&&fm(t,n),M=N&&dm(t,r,n,o);(W||M)&&(y=Ml(t.options.networkMode)?"fetching":"paused",p||(S="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&S!=="error")m=c.data,p=c.dataUpdatedAt,S=c.status,h=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(a==null?void 0:a.data)&&n.select===this.selectFn)m=this.selectResult;else try{this.selectFn=n.select,m=n.select(f.data),m=bf(i==null?void 0:i.data,m,n),this.selectResult=m,this.selectError=null}catch(N){this.selectError=N}else m=f.data;if(typeof n.placeholderData<"u"&&typeof m>"u"&&S==="loading"){let N;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))N=i.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof N<"u")try{N=n.select(N),this.selectError=null}catch(W){this.selectError=W}typeof N<"u"&&(S="success",m=bf(i==null?void 0:i.data,N,n),d=!0)}this.selectError&&(v=this.selectError,m=this.selectResult,g=Date.now(),S="error");const _=y==="fetching",x=S==="loading",C=S==="error";return{status:S,fetchStatus:y,isLoading:x,isSuccess:S==="success",isError:C,isInitialLoading:x&&_,data:m,dataUpdatedAt:p,error:v,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:_,isRefetching:_&&!x,isLoadingError:C&&f.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:d,isPreviousData:h,isRefetchError:C&&f.dataUpdatedAt!==0,isStale:lp(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,am(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options;if(a==="all"||!a&&!this.trackedProps.size)return!0;const s=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==n[u]&&s.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!gs(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Ie.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,s,l,u;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(c=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function D2(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fm(e,t){return D2(e,t)||e.state.dataUpdatedAt>0&&Ef(e,t,t.refetchOnMount)}function Ef(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&lp(e,t)}return!1}function dm(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&lp(e,n)}function lp(e,t){return e.isStaleByTime(t.staleTime)}var Cf={},M2={get exports(){return Cf},set exports(e){Cf=e}},f1={};/**
|
|
* @license React
|
|
* use-sync-external-store-shim.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var xo=w;function $2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U2=typeof Object.is=="function"?Object.is:$2,F2=xo.useState,j2=xo.useEffect,z2=xo.useLayoutEffect,B2=xo.useDebugValue;function V2(e,t){var n=t(),r=F2({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return z2(function(){o.value=n,o.getSnapshot=t,qu(o)&&i({inst:o})},[e,n,t]),j2(function(){return qu(o)&&i({inst:o}),e(function(){qu(o)&&i({inst:o})})},[e]),B2(n),n}function qu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!U2(e,n)}catch{return!0}}function W2(e,t){return t()}var H2=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?W2:V2;f1.useSyncExternalStore=xo.useSyncExternalStore!==void 0?xo.useSyncExternalStore:H2;(function(e){e.exports=f1})(M2);const K2=Cf.useSyncExternalStore,pm=w.createContext(void 0),d1=w.createContext(!1);function p1(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pm),window.ReactQueryClientContext):pm)}const Q2=({context:e}={})=>{const t=w.useContext(p1(e,w.useContext(d1)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q2=({client:e,children:t,context:n,contextSharing:r=!1})=>{w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=p1(n,r);return w.createElement(d1.Provider,{value:!n&&r},w.createElement(o.Provider,{value:e},t))},h1=w.createContext(!1),G2=()=>w.useContext(h1);h1.Provider;function Y2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const X2=w.createContext(Y2()),J2=()=>w.useContext(X2);function Z2(e,t){return typeof e=="function"?e(...t):!!e}const ex=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},tx=e=>{w.useEffect(()=>{e.clearReset()},[e])},nx=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Z2(n,[e.error,r]),rx=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},ox=(e,t)=>e.isLoading&&e.isFetching&&!t,ix=(e,t,n)=>(e==null?void 0:e.suspense)&&ox(t,n),ax=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function sx(e,t){const n=Q2({context:e.context}),r=G2(),o=J2(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=Ie.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Ie.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Ie.batchCalls(i.onSettled)),rx(i),ex(i,o),tx(o);const[a]=w.useState(()=>new t(n,i)),s=a.getOptimisticResult(i);if(K2(w.useCallback(l=>r?()=>{}:a.subscribe(Ie.batchCalls(l)),[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),w.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),ix(i,s,r))throw ax(i,a,o);if(nx({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}function lx(e,t,n){const r=pi(e,t,n);return sx(r,I2)}/**
|
|
* @remix-run/router v1.3.2
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/function Zi(){return Zi=Object.assign?Object.assign.bind():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},Zi.apply(this,arguments)}var Vn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Vn||(Vn={}));const hm="popstate";function ux(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:s="",hash:l=""}=Mr(o.location.hash.substr(1));return Rf("",{pathname:a,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");s=u===-1?l:l.slice(0,u)}return s+"#"+(typeof i=="string"?i:ol(i))}function r(o,i){cx(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return dx(t,n,r,e)}function Ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fx(){return Math.random().toString(36).substr(2,8)}function vm(e,t){return{usr:e.state,key:e.key,idx:t}}function Rf(e,t,n,r){return n===void 0&&(n=null),Zi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mr(t):t,{state:n,key:t&&t.key||r||fx()})}function ol(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Mr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Vn.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Zi({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Vn.Pop;let S=c(),h=S==null?null:S-u;u=S,l&&l({action:s,location:y.location,delta:h})}function p(S,h){s=Vn.Push;let d=Rf(y.location,S,h);n&&n(d,S),u=c()+1;let m=vm(d,u),_=y.createHref(d);try{a.pushState(m,"",_)}catch{o.location.assign(_)}i&&l&&l({action:s,location:y.location,delta:1})}function v(S,h){s=Vn.Replace;let d=Rf(y.location,S,h);n&&n(d,S),u=c();let m=vm(d,u),_=y.createHref(d);a.replaceState(m,"",_),i&&l&&l({action:s,location:y.location,delta:0})}function g(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof S=="string"?S:ol(S);return Ge(h,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,h)}let y={get action(){return s},get location(){return e(o,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(hm,f),l=S,()=>{o.removeEventListener(hm,f),l=null}},createHref(S){return t(o,S)},createURL:g,encodeLocation(S){let h=g(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:v,go(S){return a.go(S)}};return y}var mm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mm||(mm={}));function px(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Mr(t):t,o=g1(r.pathname||"/",n);if(o==null)return null;let i=v1(e);hx(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=Ex(i[s],xx(o));return a}function v1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Ge(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=er([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Ge(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),v1(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_x(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of m1(i.path))o(i,a,l)}),t}function m1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=m1(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vx=/^:\w+$/,mx=3,gx=2,yx=1,wx=10,Sx=-2,gm=e=>e==="*";function _x(e,t){let n=e.split("/"),r=n.length;return n.some(gm)&&(r+=Sx),t&&(r+=gx),n.filter(o=>!gm(o)).reduce((o,i)=>o+(vx.test(i)?mx:i===""?yx:wx),r)}function bx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Ex(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=Cx({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);let f=s.route;i.push({params:r,pathname:er([o,c.pathname]),pathnameBase:Px(er([o,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(o=er([o,c.pathnameBase]))}return i}function Cx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Rx(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,c,f)=>{if(c==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=kx(s[f]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function Rx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),up(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function xx(e){try{return decodeURI(e)}catch(t){return up(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function kx(e,t){try{return decodeURIComponent(e)}catch(n){return up(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function g1(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function up(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ox(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Mr(e):e;return{pathname:n?n.startsWith("/")?n:Tx(n,t):t,search:Nx(r),hash:Lx(o)}}function Tx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Gu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function y1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function w1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Mr(e):(o=Zi({},e),Ge(!o.pathname||!o.pathname.includes("?"),Gu("?","pathname","search",o)),Ge(!o.pathname||!o.pathname.includes("#"),Gu("#","pathname","hash",o)),Ge(!o.search||!o.search.includes("#"),Gu("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=Ox(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const er=e=>e.join("/").replace(/\/\/+/g,"/"),Px=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Nx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Lx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ax(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ix=["post","put","patch","delete"];[...Ix];/**
|
|
* React Router v6.8.1
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/function xf(){return xf=Object.assign?Object.assign.bind():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},xf.apply(this,arguments)}function Dx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Mx=typeof Object.is=="function"?Object.is:Dx,{useState:$x,useEffect:Ux,useLayoutEffect:Fx,useDebugValue:jx}=Lt;function zx(e,t,n){const r=t(),[{inst:o},i]=$x({inst:{value:r,getSnapshot:t}});return Fx(()=>{o.value=r,o.getSnapshot=t,Yu(o)&&i({inst:o})},[e,r,t]),Ux(()=>(Yu(o)&&i({inst:o}),e(()=>{Yu(o)&&i({inst:o})})),[e]),jx(r),r}function Yu(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Mx(n,r)}catch{return!0}}function Bx(e,t,n){return t()}const Vx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wx=!Vx,Hx=Wx?Bx:zx;"useSyncExternalStore"in Lt&&(e=>e.useSyncExternalStore)(Lt);const Kx=w.createContext(null),S1=w.createContext(null),$l=w.createContext(null),Ul=w.createContext(null),Fo=w.createContext({outlet:null,matches:[]}),_1=w.createContext(null);function Qx(e,t){let{relative:n}=t===void 0?{}:t;ga()||Ge(!1);let{basename:r,navigator:o}=w.useContext($l),{hash:i,pathname:a,search:s}=b1(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:er([r,a])),o.createHref({pathname:l,search:s,hash:i})}function ga(){return w.useContext(Ul)!=null}function ya(){return ga()||Ge(!1),w.useContext(Ul).location}function qx(){ga()||Ge(!1);let{basename:e,navigator:t}=w.useContext($l),{matches:n}=w.useContext(Fo),{pathname:r}=ya(),o=JSON.stringify(y1(n).map(s=>s.pathnameBase)),i=w.useRef(!1);return w.useEffect(()=>{i.current=!0}),w.useCallback(function(s,l){if(l===void 0&&(l={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let u=w1(s,JSON.parse(o),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:er([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,r])}function b1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=w.useContext(Fo),{pathname:o}=ya(),i=JSON.stringify(y1(r).map(a=>a.pathnameBase));return w.useMemo(()=>w1(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function E1(e,t){ga()||Ge(!1);let{navigator:n}=w.useContext($l),r=w.useContext(S1),{matches:o}=w.useContext(Fo),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=ya(),u;if(t){var c;let y=typeof t=="string"?Mr(t):t;s==="/"||(c=y.pathname)!=null&&c.startsWith(s)||Ge(!1),u=y}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",v=px(e,{pathname:p}),g=Jx(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:er([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:er([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r||void 0);return t&&g?w.createElement(Ul.Provider,{value:{location:xf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Vn.Pop}},g):g}function Gx(){let e=nk(),t=Ax(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,i)}class Yx extends w.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?w.createElement(Fo.Provider,{value:this.props.routeContext},w.createElement(_1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xx(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(Kx);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Fo.Provider,{value:t},r)}function Jx(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||Ge(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,s)=>{let l=a.route.id?o==null?void 0:o[a.route.id]:null,u=n?a.route.errorElement||w.createElement(Gx,null):null,c=t.concat(r.slice(0,s+1)),f=()=>w.createElement(Xx,{match:a,routeContext:{outlet:i,matches:c}},l?u:a.route.element!==void 0?a.route.element:i);return n&&(a.route.errorElement||s===0)?w.createElement(Yx,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var ym;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(ym||(ym={}));var il;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(il||(il={}));function Zx(e){let t=w.useContext(S1);return t||Ge(!1),t}function ek(e){let t=w.useContext(Fo);return t||Ge(!1),t}function tk(e){let t=ek(),n=t.matches[t.matches.length-1];return n.route.id||Ge(!1),n.route.id}function nk(){var e;let t=w.useContext(_1),n=Zx(il.UseRouteError),r=tk(il.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function rk(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Vn.Pop,navigator:i,static:a=!1}=e;ga()&&Ge(!1);let s=t.replace(/^\/*/,"/"),l=w.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=Mr(r));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:v="default"}=r,g=w.useMemo(()=>{let y=g1(u,s);return y==null?null:{pathname:y,search:c,hash:f,state:p,key:v}},[s,u,c,f,p,v]);return g==null?null:w.createElement($l.Provider,{value:l},w.createElement(Ul.Provider,{children:n,value:{location:g,navigationType:o}}))}var wm;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(wm||(wm={}));new Promise(()=>{});/**
|
|
* React Router DOM v6.8.1
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/function kf(){return kf=Object.assign?Object.assign.bind():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},kf.apply(this,arguments)}function ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ik(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ak(e,t){return e.button===0&&(!t||t==="_self")&&!ik(e)}const sk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function lk(e){let{basename:t,children:n,window:r}=e,o=w.useRef();o.current==null&&(o.current=ux({window:r,v5Compat:!0}));let i=o.current,[a,s]=w.useState({action:i.action,location:i.location});return w.useLayoutEffect(()=>i.listen(s),[i]),w.createElement(rk,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}const uk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",C1=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=ok(t,sk),p,v=!1;if(uk&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){p=u;let h=new URL(window.location.href),d=u.startsWith("//")?new URL(h.protocol+u):new URL(u);d.origin===h.origin?u=d.pathname+d.search+d.hash:v=!0}let g=Qx(u,{relative:o}),y=ck(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function S(h){r&&r(h),h.defaultPrevented||y(h)}return w.createElement("a",kf({},f,{href:p||g,onClick:v||i?r:S,ref:n,target:l}))});var Sm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Sm||(Sm={}));var _m;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_m||(_m={}));function ck(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=qx(),l=ya(),u=b1(e,{relative:a});return w.useCallback(c=>{if(ak(c,n)){c.preventDefault();let f=r!==void 0?r:ol(l)===ol(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}function fk(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var dk=fk,ae=dk;function pk(e){return!!e&&typeof e.then=="function"}var xe=pk;function hk(e,t){if(e!=null)return e;throw ae(t??"Got unexpected null or undefined")}var ke=hk;function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Fl{getValue(){throw ae("BaseLoadable")}toPromise(){throw ae("BaseLoadable")}valueMaybe(){throw ae("BaseLoadable")}valueOrThrow(){throw ae(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw ae("BaseLoadable")}promiseOrThrow(){throw ae(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw ae("BaseLoadable")}errorOrThrow(){throw ae(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw ae("BaseLoadable")}}class vk extends Fl{constructor(t){super(),ie(this,"state","hasValue"),ie(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return xe(n)?Nr(n):ko(n)?n:wa(n)}catch(n){return xe(n)?Nr(n.next(()=>this.map(t))):jl(n)}}}class mk extends Fl{constructor(t){super(),ie(this,"state","hasError"),ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class R1 extends Fl{constructor(t){super(),ie(this,"state","loading"),ie(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return Nr(this.contents.then(n=>{const r=t(n);if(ko(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(xe(n))return n.then(()=>this.map(t).contents);throw n}))}}function wa(e){return Object.freeze(new vk(e))}function jl(e){return Object.freeze(new mk(e))}function Nr(e){return Object.freeze(new R1(e))}function x1(){return Object.freeze(new R1(new Promise(()=>{})))}function gk(e){return e.every(t=>t.state==="hasValue")?wa(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?jl(ke(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Nr(Promise.all(e.map(t=>t.contents)))}function k1(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>ko(o)?o:xe(o)?Nr(o):wa(o)),r=gk(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,s)=>({...i,[a]:o[s]}),{}))}function ko(e){return e instanceof Fl}const yk={of:e=>xe(e)?Nr(e):ko(e)?e:wa(e),error:e=>jl(e),loading:()=>x1(),all:k1,isLoadable:ko};var $r={loadableWithValue:wa,loadableWithError:jl,loadableWithPromise:Nr,loadableLoading:x1,loadableAll:k1,isLoadable:ko,RecoilLoadable:yk},wk=$r.loadableWithValue,Sk=$r.loadableWithError,_k=$r.loadableWithPromise,bk=$r.loadableLoading,Ek=$r.loadableAll,Ck=$r.isLoadable,Rk=$r.RecoilLoadable,Sa=Object.freeze({__proto__:null,loadableWithValue:wk,loadableWithError:Sk,loadableWithPromise:_k,loadableLoading:bk,loadableAll:Ek,isLoadable:Ck,RecoilLoadable:Rk});const zl=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 Bl(e){var t;return(t=zl.get(e))!==null&&t!==void 0?t:!1}Bl.setPass=e=>{zl.set(e,!0)};Bl.setFail=e=>{zl.set(e,!1)};Bl.clear=()=>{zl.clear()};var ye=Bl;function xk(e,t,{error:n}={}){return null}var kk=xk,cp=kk,Xu,Ju,Zu;const Ok=(Xu=q.createMutableSource)!==null&&Xu!==void 0?Xu:q.unstable_createMutableSource,O1=(Ju=q.useMutableSource)!==null&&Ju!==void 0?Ju:q.unstable_useMutableSource,T1=(Zu=q.useSyncExternalStore)!==null&&Zu!==void 0?Zu:q.unstable_useSyncExternalStore;function Tk(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function Pk(){return ye("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:ye("recoil_sync_external_store")&&T1!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:ye("recoil_mutable_source")&&O1!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?ye("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:ye("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function Nk(){return!1}var _a={createMutableSource:Ok,useMutableSource:O1,useSyncExternalStore:T1,currentRendererSupportsUseSyncExternalStore:Tk,reactMode:Pk,isFastRefreshEnabled:Nk};const P1={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0};function Lk(){var e,t,n;if(typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)==null)return;const r=(t={}.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED)===null||t===void 0||(n=t.toLowerCase())===null||n===void 0?void 0:n.trim();if(r==null||r==="")return;if(!["true","false"].includes(r))throw ae(`({}).RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED value must be 'true', 'false', or empty: ${r}`);P1.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=r==="true"}Lk();var N1=P1;class fp{constructor(t){ie(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class L1 extends fp{}class A1 extends fp{}function Ak(e){return e instanceof L1||e instanceof A1}var Vl={AbstractRecoilValue:fp,RecoilState:L1,RecoilValueReadOnly:A1,isRecoilValue:Ak},Ik=Vl.AbstractRecoilValue,Dk=Vl.RecoilState,Mk=Vl.RecoilValueReadOnly,$k=Vl.isRecoilValue,Oo=Object.freeze({__proto__:null,AbstractRecoilValue:Ik,RecoilState:Dk,RecoilValueReadOnly:Mk,isRecoilValue:$k});function Uk(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Wl=Uk;class I1{}const Fk=new I1,Lr=new Map,dp=new Map;function jk(e){return Wl(e,t=>ke(dp.get(t)))}function zk(e){if(Lr.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
|
|
production. But it is safe to ignore this warning if it occurred because of
|
|
hot module replacement.`;console.warn(t)}}function Bk(e){N1.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&zk(e.key),Lr.set(e.key,e);const t=e.set==null?new Oo.RecoilValueReadOnly(e.key):new Oo.RecoilState(e.key);return dp.set(e.key,t),t}class D1 extends Error{}function Vk(e){const t=Lr.get(e);if(t==null)throw new D1(`Missing definition for RecoilValue: "${e}""`);return t}function Wk(e){return Lr.get(e)}const al=new Map;function Hk(e){var t;if(!ye("recoil_memory_managament_2020"))return;const n=Lr.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Lr.delete(e),(r=M1(e))===null||r===void 0||r(),al.delete(e)}}function Kk(e,t){ye("recoil_memory_managament_2020")&&(t===void 0?al.delete(e):al.set(e,t))}function M1(e){return al.get(e)}var ft={nodes:Lr,recoilValues:dp,registerNode:Bk,getNode:Vk,getNodeMaybe:Wk,deleteNodeConfigIfPossible:Hk,setConfigDeletionHandler:Kk,getConfigDeletionHandler:M1,recoilValuesForKeys:jk,NodeMissingError:D1,DefaultValue:I1,DEFAULT_VALUE:Fk};function Qk(e,t){t()}var qk={enqueueExecution:Qk};function Gk(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Yk=Gk(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,s=o/4,l={},u=function(b){return function(){return b}},c=n.hash=function(k){var b=typeof k>"u"?"undefined":t(k);if(b==="number")return k;b!=="string"&&(k+="");for(var I=0,B=0,V=k.length;B<V;++B){var G=k.charCodeAt(B);I=(I<<5)-I+G|0}return I},f=function(b){return b-=b>>1&1431655765,b=(b&858993459)+(b>>2&858993459),b=b+(b>>4)&252645135,b+=b>>8,b+=b>>16,b&127},p=function(b,I){return I>>>b&i},v=function(b){return 1<<b},g=function(b,I){return f(b&I-1)},y=function(b,I,B,V){var G=V;if(!b){var re=V.length;G=new Array(re);for(var te=0;te<re;++te)G[te]=V[te]}return G[I]=B,G},S=function(b,I,B){var V=B.length-1,G=0,re=0,te=B;if(b)G=re=I;else for(te=new Array(V);G<I;)te[re++]=B[G++];for(++G;G<=V;)te[re++]=B[G++];return b&&(te.length=V),te},h=function(b,I,B,V){var G=V.length;if(b){for(var re=G;re>=I;)V[re--]=V[re];return V[I]=B,V}for(var te=0,ne=0,le=new Array(G+1);te<I;)le[ne++]=V[te++];for(le[I]=B;te<G;)le[++ne]=V[te++];return le},d=1,m=2,_=3,x=4,C={__hamt_isEmpty:!0},T=function(b){return b===C||b&&b.__hamt_isEmpty},N=function(b,I,B,V){return{type:d,edit:b,hash:I,key:B,value:V,_modify:P}},W=function(b,I,B){return{type:m,edit:b,hash:I,children:B,_modify:H}},M=function(b,I,B){return{type:_,edit:b,mask:I,children:B,_modify:$}},ee=function(b,I,B){return{type:x,edit:b,size:I,children:B,_modify:U}},pe=function(b){return b===C||b.type===d||b.type===m},ue=function(b,I,B,V,G){for(var re=[],te=V,ne=0,le=0;te;++le)te&1&&(re[le]=G[ne++]),te>>>=1;return re[I]=B,ee(b,ne+1,re)},K=function(b,I,B,V){for(var G=new Array(I-1),re=0,te=0,ne=0,le=V.length;ne<le;++ne)if(ne!==B){var Ce=V[ne];Ce&&!T(Ce)&&(G[re++]=Ce,te|=1<<ne)}return M(b,te,G)},j=function k(b,I,B,V,G,re){if(B===G)return W(b,B,[re,V]);var te=p(I,B),ne=p(I,G);return M(b,v(te)|v(ne),te===ne?[k(b,I+r,B,V,G,re)]:te<ne?[V,re]:[re,V])},X=function(b,I,B,V,G,re,te,ne){for(var le=G.length,Ce=0;Ce<le;++Ce){var ot=G[Ce];if(B(te,ot.key)){var Ue=ot.value,Ct=re(Ue);return Ct===Ue?G:Ct===l?(--ne.value,S(b,Ce,G)):y(b,Ce,N(I,V,te,Ct),G)}}var $t=re();return $t===l?G:(++ne.value,y(b,le,N(I,V,te,$t),G))},O=function(b,I){return b===I.edit},P=function(b,I,B,V,G,re,te){if(I(re,this.key)){var ne=V(this.value);return ne===this.value?this:ne===l?(--te.value,C):O(b,this)?(this.value=ne,this):N(b,G,re,ne)}var le=V();return le===l?this:(++te.value,j(b,B,this.hash,this,G,N(b,G,re,le)))},H=function(b,I,B,V,G,re,te){if(G===this.hash){var ne=O(b,this),le=X(ne,b,I,this.hash,this.children,V,re,te);return le===this.children?this:le.length>1?W(b,this.hash,le):le[0]}var Ce=V();return Ce===l?this:(++te.value,j(b,B,this.hash,this,G,N(b,G,re,Ce)))},$=function(b,I,B,V,G,re,te){var ne=this.mask,le=this.children,Ce=p(B,G),ot=v(Ce),Ue=g(ne,ot),Ct=ne&ot,$t=Ct?le[Ue]:C,zr=$t._modify(b,I,B+r,V,G,re,te);if($t===zr)return this;var Oa=O(b,this),Ho=ne,Ko=void 0;if(Ct&&T(zr)){if(Ho&=~ot,!Ho)return C;if(le.length<=2&&pe(le[Ue^1]))return le[Ue^1];Ko=S(Oa,Ue,le)}else if(!Ct&&!T(zr)){if(le.length>=a)return ue(b,Ce,zr,ne,le);Ho|=ot,Ko=h(Oa,Ue,zr,le)}else Ko=y(Oa,Ue,zr,le);return Oa?(this.mask=Ho,this.children=Ko,this):M(b,Ho,Ko)},U=function(b,I,B,V,G,re,te){var ne=this.size,le=this.children,Ce=p(B,G),ot=le[Ce],Ue=(ot||C)._modify(b,I,B+r,V,G,re,te);if(ot===Ue)return this;var Ct=O(b,this),$t=void 0;if(T(ot)&&!T(Ue))++ne,$t=y(Ct,Ce,Ue,le);else if(!T(ot)&&T(Ue)){if(--ne,ne<=s)return K(b,ne,Ce,le);$t=y(Ct,Ce,C,le)}else $t=y(Ct,Ce,Ue,le);return Ct?(this.size=ne,this.children=$t,this):ee(b,ne,$t)};C._modify=function(k,b,I,B,V,G,re){var te=B();return te===l?C:(++re.value,N(k,V,G,te))};function E(k,b,I,B,V){this._editable=k,this._edit=b,this._config=I,this._root=B,this._size=V}E.prototype.setTree=function(k,b){return this._editable?(this._root=k,this._size=b,this):k===this._root?this:new E(this._editable,this._edit,this._config,k,b)};var L=n.tryGetHash=function(k,b,I,B){for(var V=B._root,G=0,re=B._config.keyEq;;)switch(V.type){case d:return re(I,V.key)?V.value:k;case m:{if(b===V.hash)for(var te=V.children,ne=0,le=te.length;ne<le;++ne){var Ce=te[ne];if(re(I,Ce.key))return Ce.value}return k}case _:{var ot=p(G,b),Ue=v(ot);if(V.mask&Ue){V=V.children[g(V.mask,Ue)],G+=r;break}return k}case x:{if(V=V.children[p(G,b)],V){G+=r;break}return k}default:return k}};E.prototype.tryGetHash=function(k,b,I){return L(k,b,I,this)};var A=n.tryGet=function(k,b,I){return L(k,I._config.hash(b),b,I)};E.prototype.tryGet=function(k,b){return A(k,b,this)};var J=n.getHash=function(k,b,I){return L(void 0,k,b,I)};E.prototype.getHash=function(k,b){return J(k,b,this)},n.get=function(k,b){return L(void 0,b._config.hash(k),k,b)},E.prototype.get=function(k,b){return A(b,k,this)};var F=n.has=function(k,b,I){return L(l,k,b,I)!==l};E.prototype.hasHash=function(k,b){return F(k,b,this)};var z=n.has=function(k,b){return F(b._config.hash(k),k,b)};E.prototype.has=function(k){return z(k,this)};var Z=function(b,I){return b===I};n.make=function(k){return new E(0,0,{keyEq:k&&k.keyEq||Z,hash:k&&k.hash||c},C,0)},n.empty=n.make();var Y=n.isEmpty=function(k){return k&&!!T(k._root)};E.prototype.isEmpty=function(){return Y(this)};var he=n.modifyHash=function(k,b,I,B){var V={value:B._size},G=B._root._modify(B._editable?B._edit:NaN,B._config.keyEq,0,k,b,I,V);return B.setTree(G,V.value)};E.prototype.modifyHash=function(k,b,I){return he(I,k,b,this)};var we=n.modify=function(k,b,I){return he(k,I._config.hash(b),b,I)};E.prototype.modify=function(k,b){return we(b,k,this)};var de=n.setHash=function(k,b,I,B){return he(u(I),k,b,B)};E.prototype.setHash=function(k,b,I){return de(k,b,I,this)};var Se=n.set=function(k,b,I){return de(I._config.hash(k),k,b,I)};E.prototype.set=function(k,b){return Se(k,b,this)};var rt=u(l),dr=n.removeHash=function(k,b,I){return he(rt,k,b,I)};E.prototype.removeHash=E.prototype.deleteHash=function(k,b){return dr(k,b,this)};var Et=n.remove=function(k,b){return dr(b._config.hash(k),k,b)};E.prototype.remove=E.prototype.delete=function(k){return Et(k,this)};var dt=n.beginMutation=function(k){return new E(k._editable+1,k._edit+1,k._config,k._root,k._size)};E.prototype.beginMutation=function(){return dt(this)};var ah=n.endMutation=function(k){return k._editable=k._editable&&k._editable-1,k};E.prototype.endMutation=function(){return ah(this)};var s_=n.mutate=function(k,b){var I=dt(b);return k(I),ah(I)};E.prototype.mutate=function(k){return s_(k,this)};var gu=function(b){return b&&sh(b[0],b[1],b[2],b[3],b[4])},sh=function(b,I,B,V,G){for(;B<b;){var re=I[B++];if(re&&!T(re))return lh(re,V,[b,I,B,V,G])}return gu(G)},lh=function(b,I,B){switch(b.type){case d:return{value:I(b),rest:B};case m:case x:case _:var V=b.children;return sh(V.length,V,0,I,B);default:return gu(B)}},l_={done:!0};function yu(k){this.v=k}yu.prototype.next=function(){if(!this.v)return l_;var k=this.v;return this.v=gu(k.rest),k},yu.prototype[Symbol.iterator]=function(){return this};var wu=function(b,I){return new yu(lh(b._root,I))},u_=function(b){return[b.key,b.value]},c_=n.entries=function(k){return wu(k,u_)};E.prototype.entries=E.prototype[Symbol.iterator]=function(){return c_(this)};var f_=function(b){return b.key},d_=n.keys=function(k){return wu(k,f_)};E.prototype.keys=function(){return d_(this)};var p_=function(b){return b.value},h_=n.values=E.prototype.values=function(k){return wu(k,p_)};E.prototype.values=function(){return h_(this)};var uh=n.fold=function(k,b,I){var B=I._root;if(B.type===d)return k(b,B.value,B.key);for(var V=[B.children],G=void 0;G=V.pop();)for(var re=0,te=G.length;re<te;){var ne=G[re++];ne&&ne.type&&(ne.type===d?b=k(b,ne.value,ne.key):V.push(ne.children))}return b};E.prototype.fold=function(k,b){return uh(k,b,this)};var v_=n.forEach=function(k,b){return uh(function(I,B,V){return k(B,V,b)},null,b)};E.prototype.forEach=function(k){return v_(k,this)};var m_=n.count=function(k){return k._size};E.prototype.count=function(){return m_(this)},Object.defineProperty(E.prototype,"size",{get:E.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class Xk{constructor(t){ie(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return hp(this)}toMap(){return new Map(this._map)}}class pp{constructor(t){if(ie(this,"_hamt",Yk.empty.beginMutation()),t instanceof pp){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,r]of t.entries())this._hamt.set(n,r)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return hp(this)}toMap(){return new Map(this._hamt)}}function hp(e){return ye("recoil_hamt_2020")?new pp(e):new Xk(e)}var Jk={persistentMap:hp},Zk=Jk.persistentMap,eO=Object.freeze({__proto__:null,persistentMap:Zk});function tO(e,...t){const n=new Set;e:for(const r of e){for(const o of t)if(o.has(r))continue e;n.add(r)}return n}var Oi=tO;function nO(e,t){const n=new Map;return e.forEach((r,o)=>{n.set(o,t(r,o))}),n}var sl=nO;function rO(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function oO(e){return{nodeDeps:sl(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:sl(e.nodeToNodeSubscriptions,t=>new Set(t))}}function ec(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);const s=a==null?t:Oi(t,a);for(const l of s)i.has(l)||i.set(l,new Set),ke(i.get(l)).add(e);if(a){const l=Oi(a,t);for(const u of l){if(!i.has(u))return;const c=ke(i.get(u));c.delete(e),c.size===0&&i.delete(u)}}}function iO(e,t,n,r){var o,i,a,s;const l=n.getState();r===l.currentTree.version||r===((o=l.nextTree)===null||o===void 0?void 0:o.version)||((i=l.previousTree)===null||i===void 0||i.version);const u=n.getGraph(r);if(ec(e,t,u),r===((a=l.previousTree)===null||a===void 0?void 0:a.version)){const f=n.getGraph(l.currentTree.version);ec(e,t,f,u)}if(r===((s=l.previousTree)===null||s===void 0?void 0:s.version)||r===l.currentTree.version){var c;const f=(c=l.nextTree)===null||c===void 0?void 0:c.version;if(f!==void 0){const p=n.getGraph(f);ec(e,t,p,u)}}}var ba={cloneGraph:oO,graph:rO,saveDepsToStore:iO};let aO=0;const sO=()=>aO++;let lO=0;const uO=()=>lO++;let cO=0;const fO=()=>cO++;var Hl={getNextTreeStateVersion:sO,getNextStoreID:uO,getNextComponentID:fO};const{persistentMap:bm}=eO,{graph:dO}=ba,{getNextTreeStateVersion:$1}=Hl;function U1(){const e=$1();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:bm(),nonvalidatedAtoms:bm()}}function pO(){const e=U1();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,dO()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var F1={makeEmptyTreeState:U1,makeEmptyStoreState:pO,getNextTreeStateVersion:$1};class j1{}function hO(){return new j1}var Kl={RetentionZone:j1,retentionZone:hO};function vO(e,t){const n=new Set(e);return n.add(t),n}function mO(e,t){const n=new Set(e);return n.delete(t),n}function gO(e,t,n){const r=new Map(e);return r.set(t,n),r}function yO(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function wO(e,t){const n=new Map(e);return n.delete(t),n}function SO(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var z1={setByAddingToSet:vO,setByDeletingFromSet:mO,mapBySettingInMap:gO,mapByUpdatingInMap:yO,mapByDeletingFromMap:wO,mapByDeletingMultipleFromMap:SO};function*_O(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var vp=_O;function bO(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var B1=bO;const{getNode:Ea,getNodeMaybe:EO,recoilValuesForKeys:Em}=ft,{RetentionZone:Cm}=Kl,{setByAddingToSet:CO}=z1,RO=Object.freeze(new Set);class xO extends Error{}function kO(e,t,n){if(!ye("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof Cm)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!ye("recoil_memory_managament_2020"))return;const{retention:i}=e.getState();function a(s){const l=i.nodesRetainedByZone.get(s);l==null||l.delete(t),l&&l.size===0&&i.nodesRetainedByZone.delete(s)}if(n instanceof Cm)a(n);else if(Array.isArray(n))for(const s of n)a(s)}}function mp(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=Ea(n),a=kO(e,n,i.retainedBy),s=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{s(),a()})}function OO(e,t,n){mp(e,e.getState().currentTree,t,n)}function TO(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function PO(e,t,n){return mp(e,t,n,"get"),Ea(n).get(e,t)}function V1(e,t,n){return Ea(n).peek(e,t)}function NO(e,t,n){var r;const o=EO(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:CO(e.dirtyAtoms,t)}}function LO(e,t,n,r){const o=Ea(n);if(o.set==null)throw new xO(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return mp(e,t,n,"set"),i(e,t,r)}function AO(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=Ea(n).nodeType;return B1({type:i},{loadable:()=>V1(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>i==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var a;return Em((a=o.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,s;return{nodes:Em(vp(W1(e,t,new Set([n])),l=>l!==n)),components:Wl((a=(s=r.nodeToComponentSubscriptions.get(n))===null||s===void 0?void 0:s.values())!==null&&a!==void 0?a:[],([l])=>({name:l}))}}})}function W1(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let s=o.pop();s;s=o.pop()){var a;r.add(s);const l=(a=i.nodeToNodeSubscriptions.get(s))!==null&&a!==void 0?a:RO;for(const u of l)r.has(u)||o.push(u)}return r}var cr={getNodeLoadable:PO,peekNodeLoadable:V1,setNodeValue:LO,initializeNode:OO,cleanUpNode:TO,setUnvalidatedAtomValue_DEPRECATED:NO,peekNodeInfo:AO,getDownstreamNodes:W1};let H1=null;function IO(e){H1=e}function DO(){var e;(e=H1)===null||e===void 0||e()}var K1={setInvalidateMemoizedSnapshot:IO,invalidateMemoizedSnapshot:DO};const{getDownstreamNodes:MO,getNodeLoadable:Q1,setNodeValue:$O}=cr,{getNextComponentID:UO}=Hl,{getNode:FO,getNodeMaybe:q1}=ft,{DefaultValue:gp}=ft,{reactMode:jO}=_a,{AbstractRecoilValue:zO,RecoilState:BO,RecoilValueReadOnly:VO,isRecoilValue:WO}=Oo,{invalidateMemoizedSnapshot:HO}=K1;function KO(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=i.previousTree)===null||o===void 0||o.version);const a=Q1(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function QO(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof gp?n.delete(o):n.set(o,r)}),n}function qO(e,t,{key:n},r){if(typeof r=="function"){const o=Q1(e,t,n);if(o.state==="loading"){const i=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw ae(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function GO(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=qO(e,t,o,i),s=$O(e,t,o.key,a);for(const[l,u]of s.entries())Of(t,l,u)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;Of(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,a=q1(o);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else cp(`Unknown action ${n.type}`)}function Of(e,t,n){n.state==="hasValue"&&n.contents instanceof gp?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function G1(e,t){e.replaceState(n=>{const r=Y1(n);for(const o of t)GO(e,r,o);return X1(e,r),HO(),r})}function Ql(e,t){if(Ti.length){const n=Ti[Ti.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else G1(e,[t])}const Ti=[];function YO(){const e=new Map;return Ti.push(e),()=>{for(const[t,n]of e)G1(t,n);Ti.pop()}}function Y1(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function X1(e,t){const n=MO(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=q1(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function J1(e,t,n){Ql(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function XO(e,t,n){if(n instanceof gp)return J1(e,t,n);Ql(e,{type:"setLoadable",recoilValue:t,loadable:n})}function JO(e,t){Ql(e,{type:"markModified",recoilValue:t})}function ZO(e,t,n){Ql(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function eT(e,{key:t},n,r=null){const o=UO(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),ke(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"<not captured>",n]);const a=jO();if(a.early&&(a.mode==="LEGACY"||a.mode==="MUTABLE_SOURCE")){const s=e.getState().nextTree;s&&s.dirtyAtoms.has(t)&&n(s)}return{release:()=>{const s=e.getState(),l=s.nodeToComponentSubscriptions.get(t);l===void 0||!l.has(o)||(l.delete(o),l.size===0&&s.nodeToComponentSubscriptions.delete(t))}}}function tT(e,t){var n;const{currentTree:r}=e.getState(),o=FO(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var dn={RecoilValueReadOnly:VO,AbstractRecoilValue:zO,RecoilState:BO,getRecoilValueAsLoadable:KO,setRecoilValue:J1,setRecoilValueLoadable:XO,markRecoilValueModified:JO,setUnvalidatedRecoilValue:ZO,subscribeToRecoilValue:eT,isRecoilValue:WO,applyAtomValueWrites:QO,batchStart:YO,writeLoadableToTreeState:Of,invalidateDownstreams:X1,copyTreeState:Y1,refreshRecoilValue:tT};function nT(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var rT=nT;const{cleanUpNode:oT}=cr,{deleteNodeConfigIfPossible:iT,getNode:Z1}=ft,{RetentionZone:ew}=Kl,aT=12e4,tw=new Set;function nw(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const a of t)if(a instanceof ew)for(const s of cT(n,a))o.add(s);else o.add(a);const i=sT(e,o);for(const a of i)uT(e,r,a)}function sT(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return s(t),i;function s(l){const u=new Set,c=lT(e,r,l,i,a);for(const g of c){var f;if(Z1(g).retainedBy==="recoilRoot"){a.add(g);continue}if(((f=n.retention.referenceCounts.get(g))!==null&&f!==void 0?f:0)>0){a.add(g);continue}if(rw(g).some(S=>n.retention.referenceCounts.get(S))){a.add(g);continue}const y=o.nodeToNodeSubscriptions.get(g);if(y&&rT(y,S=>a.has(S))){a.add(g);continue}i.add(g),u.add(g)}const p=new Set;for(const g of u)for(const y of(v=o.nodeDeps.get(g))!==null&&v!==void 0?v:tw){var v;i.has(y)||p.add(y)}p.size&&s(p)}}function lT(e,t,n,r,o){const i=e.getGraph(t.version),a=[],s=new Set;for(;n.size>0;)l(ke(n.values().next().value));return a;function l(u){if(r.has(u)||o.has(u)){n.delete(u);return}if(s.has(u))return;const c=i.nodeToNodeSubscriptions.get(u);if(c)for(const f of c)l(f);s.add(u),n.delete(u),a.push(u)}}function uT(e,t,n){if(!ye("recoil_memory_managament_2020"))return;oT(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=rw(n);for(const l of o){var i;(i=r.retention.nodesRetainedByZone.get(l))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const l=a.nodeDeps.get(n);if(l!==void 0){a.nodeDeps.delete(n);for(const u of l){var s;(s=a.nodeToNodeSubscriptions.get(u))===null||s===void 0||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}iT(n)}function cT(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:tw}function rw(e){const t=Z1(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof ew?[t]:t}function fT(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):nw(e,new Set([t]))}function dT(e,t,n){var r;if(!ye("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?ow(e,t):o.set(t,i)}function ow(e,t){if(!ye("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),fT(e,t)}function pT(e){if(!ye("recoil_memory_managament_2020"))return;const t=e.getState();nw(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function hT(e){return e===void 0?"recoilRoot":e}var Ur={SUSPENSE_TIMEOUT_MS:aT,updateRetainCount:dT,updateRetainCountToZero:ow,releaseScheduledRetainablesNow:pT,retainedByOptionWithDefault:hT};const{unstable_batchedUpdates:vT}=sR;var mT={unstable_batchedUpdates:vT};const{unstable_batchedUpdates:gT}=mT;var yT={unstable_batchedUpdates:gT};const{batchStart:wT}=dn,{unstable_batchedUpdates:ST}=yT;let yp=ST;const _T=e=>{yp=e},bT=()=>yp,ET=e=>{yp(()=>{let t=()=>{};try{t=wT(),e()}finally{t()}})};var ql={getBatcher:bT,setBatcher:_T,batchUpdates:ET};function*CT(e){for(const t of e)for(const n of t)yield n}var iw=CT;const aw=typeof Window>"u"||typeof window>"u",RT=e=>!aw&&(e===window||e instanceof Window),xT=typeof navigator<"u"&&navigator.product==="ReactNative";var wp={isSSR:aw,isReactNative:xT,isWindow:RT};function kT(e,t){let n;return(...o)=>{n||(n={});const i=t(...o);return Object.hasOwnProperty.call(n,i)||(n[i]=e(...o)),n[i]}}function OT(e,t){let n,r;return(...i)=>{const a=t(...i);return n===a||(n=a,r=e(...i)),r}}function TT(e,t){let n,r;return[(...a)=>{const s=t(...a);return n===s||(n=s,r=e(...a)),r},()=>{n=null}]}var PT={memoizeWithArgsHash:kT,memoizeOneWithArgsHash:OT,memoizeOneWithArgsHashAndInvalidation:TT};const{batchUpdates:Tf}=ql,{initializeNode:NT,peekNodeInfo:LT}=cr,{graph:AT}=ba,{getNextStoreID:IT}=Hl,{DEFAULT_VALUE:DT,recoilValues:Rm,recoilValuesForKeys:xm}=ft,{AbstractRecoilValue:MT,getRecoilValueAsLoadable:$T,setRecoilValue:km,setUnvalidatedRecoilValue:UT}=dn,{updateRetainCount:ys}=Ur,{setInvalidateMemoizedSnapshot:FT}=K1,{getNextTreeStateVersion:jT,makeEmptyStoreState:zT}=F1,{isSSR:BT}=wp,{memoizeOneWithArgsHashAndInvalidation:VT}=PT;class Gl{constructor(t,n){ie(this,"_store",void 0),ie(this,"_refCount",1),ie(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),$T(this._store,r))),ie(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),ie(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const a=this._store.getState().currentTree;return xm(a.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Rm.values():r.isInitialized===!0?xm(iw([o,i])):vp(Rm.values(),({key:a})=>!o.has(a)&&!i.has(a))}),ie(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),LT(this._store,this._store.getState().currentTree,r))),ie(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new Pf(this,Tf);return r(o),o}),ie(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new Pf(this,Tf);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:IT(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return ke(o.get(r));const i=AT();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw ae("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)NT(this._store,r,"get"),ys(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){BT||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ye("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ye("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function sw(e,t,n=!1){const r=e.getState(),o=n?jT():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Wl(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function WT(e){const t=new Gl(zT());return e!=null?t.map(e):t}const[Om,lw]=VT((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:ke(r.previousTree);return new Gl(sw(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});FT(lw);function HT(e,t="latest"){const n=Om(e,t);return n.isRetained()?n:(lw(),Om(e,t))}class Pf extends Gl{constructor(t,n){super(sw(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),ie(this,"_batch",void 0),ie(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{ys(i,r.key,1),km(this.getStore_INTERNAL(),r,o)})}),ie(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{ys(o,r.key,1),km(this.getStore_INTERNAL(),r,DT)})}),ie(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();Tf(()=>{for(const[i,a]of r.entries())ys(o,i,1),UT(o,new MT(i),a)})}),this._batch=n}}var Yl={Snapshot:Gl,MutableSnapshot:Pf,freshSnapshot:WT,cloneSnapshot:HT},KT=Yl.Snapshot,QT=Yl.MutableSnapshot,qT=Yl.freshSnapshot,GT=Yl.cloneSnapshot,Xl=Object.freeze({__proto__:null,Snapshot:KT,MutableSnapshot:QT,freshSnapshot:qT,cloneSnapshot:GT});function YT(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var XT=YT;const{useRef:JT}=q;function ZT(e){const t=JT(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Tm=ZT;const{getNextTreeStateVersion:eP,makeEmptyStoreState:uw}=F1,{cleanUpNode:tP,getDownstreamNodes:nP,initializeNode:rP,setNodeValue:oP,setUnvalidatedAtomValue_DEPRECATED:iP}=cr,{graph:aP}=ba,{cloneGraph:sP}=ba,{getNextStoreID:cw}=Hl,{createMutableSource:tc,reactMode:fw}=_a,{applyAtomValueWrites:lP}=dn,{releaseScheduledRetainablesNow:dw}=Ur,{freshSnapshot:uP}=Xl,{useCallback:cP,useContext:pw,useEffect:Nf,useMemo:fP,useRef:dP,useState:pP}=q;function oi(){throw ae("This component must be used inside a <RecoilRoot> component.")}const hw=Object.freeze({storeID:cw(),getState:oi,replaceState:oi,getGraph:oi,subscribeToTransactions:oi,addTransactionMetadata:oi});let Lf=!1;function Pm(e){if(Lf)throw ae("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ye("recoil_memory_managament_2020")&&ye("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&dw(e);const n=t.currentTree.version,r=eP();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,sP(ke(t.graphsByVersion.get(n))))}}const vw=q.createContext({current:hw}),Jl=()=>pw(vw),mw=q.createContext(null);function hP(){return pw(mw)}function Sp(e,t,n){const r=nP(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[a,[s,l]]of i)l(n)}}function gw(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[a,s]of i)s(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!fw().early||t.suspendedComponentResolvers.size>0)&&(Sp(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function vP(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,gw(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):cp("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ye("recoil_memory_managament_2020")&&n==null&&dw(e)}finally{t.commitDepth--}}function mP({setNotifyBatcherOfChange:e}){const t=Jl(),[,n]=pP([]);return e(()=>n({})),Nf(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),Nf(()=>{qk.enqueueExecution("Batcher",()=>{vP(t.current)})}),null}function gP(e,t){const n=uw();return t({set:(r,o)=>{const i=n.currentTree,a=oP(e,i,r.key,o),s=new Set(a.keys()),l=i.nonvalidatedAtoms.clone();for(const u of s)l.delete(u);n.currentTree={...i,dirtyAtoms:XT(i.dirtyAtoms,s),atomValues:lP(i.atomValues,a),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=iP(n.currentTree,i,o)})}}),n}function yP(e){const t=uP(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let Nm=0;function wP({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=v=>{const g=o.current.graphsByVersion;if(g.has(v))return ke(g.get(v));const y=aP();return g.set(v,y),y},a=(v,g)=>{if(g==null){const{transactionSubscriptions:y}=f.current.getState(),S=Nm++;return y.set(S,v),{release:()=>{y.delete(S)}}}else{const{nodeTransactionSubscriptions:y}=f.current.getState();y.has(g)||y.set(g,new Map);const S=Nm++;return ke(y.get(g)).set(S,v),{release:()=>{const h=y.get(g);h&&(h.delete(S),h.size===0&&y.delete(g))}}}},s=v=>{Pm(f.current);for(const g of Object.keys(v))ke(f.current.getState().nextTree).transactionMetadata[g]=v[g]},l=v=>{Pm(f.current);const g=ke(o.current.nextTree);let y;try{Lf=!0,y=v(g)}finally{Lf=!1}y!==g&&(o.current.nextTree=y,fw().early&&Sp(f.current,o.current,y),ke(u.current)())},u=dP(null),c=cP(v=>{u.current=v},[u]),f=Tm(()=>n??{storeID:cw(),getState:()=>o.current,replaceState:l,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:s});n!=null&&(f.current=n),o=Tm(()=>e!=null?gP(f.current,e):t!=null?yP(t):uw());const p=fP(()=>tc==null?void 0:tc(o,()=>o.current.currentTree.version),[o]);return Nf(()=>{const v=f.current;for(const g of new Set(v.getState().knownAtoms))rP(v,g,"get");return()=>{for(const g of v.getState().knownAtoms)tP(v,g)}},[f]),q.createElement(vw.Provider,{value:f},q.createElement(mw.Provider,{value:p},q.createElement(mP,{setNotifyBatcherOfChange:c}),r))}function SP(e){const{override:t,...n}=e,r=Jl();return t===!1&&r.current!==hw?e.children:q.createElement(wP,n)}function _P(){return Jl().current.storeID}var kn={RecoilRoot:SP,useStoreRef:Jl,useRecoilMutableSource:hP,useRecoilStoreID:_P,notifyComponents_FOR_TESTING:Sp,sendEndOfBatchNotifications_FOR_TESTING:gw};function bP(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}var EP=bP;const{useEffect:CP,useRef:RP}=q;function xP(e){const t=RP();return CP(()=>{t.current=e}),t.current}var yw=xP;const{useStoreRef:kP}=kn,{SUSPENSE_TIMEOUT_MS:OP}=Ur,{updateRetainCount:ii}=Ur,{RetentionZone:TP}=Kl,{useEffect:PP,useRef:NP}=q,{isSSR:Lm}=wp;function LP(e){if(ye("recoil_memory_managament_2020"))return AP(e)}function AP(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof TP?a:a.key),r=kP();PP(()=>{if(!ye("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!Lm)window.clearTimeout(o.current),o.current=null;else for(const s of n)ii(a,s,1);return()=>{for(const s of n)ii(a,s,-1)}},[r,...n]);const o=NP(),i=yw(n);if(!Lm&&(i===void 0||!EP(i,n))){const a=r.current;for(const s of n)ii(a,s,1);if(i)for(const s of i)ii(a,s,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const s of n)ii(a,s,-1)},OP)}}var _p=LP;function IP(){return"<component name not available>"}var Ca=IP;const{batchUpdates:DP}=ql,{DEFAULT_VALUE:ww}=ft,{currentRendererSupportsUseSyncExternalStore:MP,reactMode:jo,useMutableSource:$P,useSyncExternalStore:UP}=_a,{useRecoilMutableSource:FP,useStoreRef:pn}=kn,{AbstractRecoilValue:Af,getRecoilValueAsLoadable:Ra,setRecoilValue:ll,setUnvalidatedRecoilValue:jP,subscribeToRecoilValue:To}=dn,{useCallback:ct,useEffect:Po,useMemo:Sw,useRef:Pi,useState:bp}=q,{setByAddingToSet:zP}=z1;function Ep(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{n.current.getState().suspendedComponentResolvers.add(o)}):e.state==="hasError"?e.contents:ae(`Invalid value of loadable atom "${t.key}"`)}function BP(){const e=Ca(),t=pn(),[,n]=bp([]),r=Pi(new Set);r.current=new Set;const o=Pi(new Set),i=Pi(new Map),a=ct(l=>{const u=i.current.get(l);u&&(u.release(),i.current.delete(l))},[i]),s=ct((l,u)=>{i.current.has(u)&&n([])},[]);return Po(()=>{const l=t.current;Oi(r.current,o.current).forEach(u=>{if(i.current.has(u))return;const c=To(l,new Af(u),p=>s(p,u),e);i.current.set(u,c),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(l.getState(),u)}):s(l.getState(),u)}),Oi(o.current,r.current).forEach(u=>{a(u)}),o.current=r.current}),Po(()=>{const l=i.current;return Oi(r.current,new Set(l.keys())).forEach(u=>{const c=To(t.current,new Af(u),f=>s(f,u),e);l.set(u,c)}),()=>l.forEach((u,c)=>a(c))},[e,t,a,s]),Sw(()=>{function l(g){return y=>{ll(t.current,g,y)}}function u(g){return()=>ll(t.current,g,ww)}function c(g){var y;r.current.has(g.key)||(r.current=zP(r.current,g.key));const S=t.current.getState();return Ra(t.current,g,jo().early&&(y=S.nextTree)!==null&&y!==void 0?y:S.currentTree)}function f(g){const y=c(g);return Ep(y,g,t)}function p(g){return[f(g),l(g)]}function v(g){return[c(g),l(g)]}return{getRecoilValue:f,getRecoilValueLoadable:c,getRecoilState:p,getRecoilStateLoadable:v,getSetRecoilState:l,getResetRecoilState:u}},[r,t])}const VP={current:0};function WP(e){const t=pn(),n=Ca(),r=ct(()=>{var s;const l=t.current,u=l.getState(),c=jo().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return{loadable:Ra(l,e,c),key:e.key}},[t,e]),o=ct(s=>{let l;return()=>{var u,c;const f=s();return(u=l)!==null&&u!==void 0&&u.loadable.is(f.loadable)&&((c=l)===null||c===void 0?void 0:c.key)===f.key?l:(l=f,f)}},[]),i=Sw(()=>o(r),[r,o]),a=ct(s=>{const l=t.current;return To(l,e,s,n).release},[t,e,n]);return UP(a,i,i).loadable}function HP(e){const t=pn(),n=ct(()=>{var u;const c=t.current,f=c.getState(),p=jo().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return Ra(c,e,p)},[t,e]),r=ct(()=>n(),[n]),o=Ca(),i=ct((u,c)=>{const f=t.current;return To(f,e,()=>{if(!ye("recoil_suppress_rerender_in_callback"))return c();const v=n();l.current.is(v)||c(),l.current=v},o).release},[t,e,o,n]),a=FP();if(a==null)throw ae("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const s=$P(a,r,i),l=Pi(s);return Po(()=>{l.current=s}),s}function If(e){const t=pn(),n=Ca(),r=ct(()=>{var l;const u=t.current,c=u.getState(),f=jo().early&&(l=c.nextTree)!==null&&l!==void 0?l:c.currentTree;return Ra(u,e,f)},[t,e]),o=ct(()=>({loadable:r(),key:e.key}),[r,e.key]),i=ct(l=>{const u=o();return l.loadable.is(u.loadable)&&l.key===u.key?l:u},[o]);Po(()=>{const l=To(t.current,e,u=>{s(i)},n);return s(i),l.release},[n,e,t,i]);const[a,s]=bp(o);return a.key!==e.key?o().loadable:a.loadable}function KP(e){const t=pn(),[,n]=bp([]),r=Ca(),o=ct(()=>{var s;const l=t.current,u=l.getState(),c=jo().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return Ra(l,e,c)},[t,e]),i=o(),a=Pi(i);return Po(()=>{a.current=i}),Po(()=>{const s=t.current,l=s.getState(),u=To(s,e,f=>{var p;if(!ye("recoil_suppress_rerender_in_callback"))return n([]);const v=o();(p=a.current)!==null&&p!==void 0&&p.is(v)||n(v),a.current=v},r);if(l.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var c;if(!ye("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(c=a.current)!==null&&c!==void 0&&c.is(f)||n(f),a.current=f}return u.release},[r,o,e,t]),i}function Cp(e){return ye("recoil_memory_managament_2020")&&_p(e),{TRANSITION_SUPPORT:If,SYNC_EXTERNAL_STORE:MP()?WP:If,MUTABLE_SOURCE:HP,LEGACY:KP}[jo().mode](e)}function _w(e){const t=pn(),n=Cp(e);return Ep(n,e,t)}function Zl(e){const t=pn();return ct(n=>{ll(t.current,e,n)},[t,e])}function QP(e){const t=pn();return ct(()=>{ll(t.current,e,ww)},[t,e])}function qP(e){return[_w(e),Zl(e)]}function GP(e){return[Cp(e),Zl(e)]}function YP(){const e=pn();return(t,n={})=>{DP(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>jP(e.current,new Af(o),r))})}}function bw(e){return ye("recoil_memory_managament_2020")&&_p(e),If(e)}function Ew(e){const t=pn(),n=bw(e);return Ep(n,e,t)}function XP(e){return[Ew(e),Zl(e)]}var JP={recoilComponentGetRecoilValueCount_FOR_TESTING:VP,useRecoilInterface:BP,useRecoilState:qP,useRecoilStateLoadable:GP,useRecoilValue:_w,useRecoilValueLoadable:Cp,useResetRecoilState:QP,useSetRecoilState:Zl,useSetUnvalidatedAtomValues:YP,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:bw,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ew,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:XP};function ZP(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var eN=ZP;function tN(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var nN=tN;function rN(...e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].keys();let o;for(;!(o=r.next()).done;)t.set(o.value,e[n].get(o.value))}return t}var oN=rN;const{batchUpdates:iN}=ql,{DEFAULT_VALUE:aN,getNode:Cw,nodes:sN}=ft,{useStoreRef:Rp}=kn,{AbstractRecoilValue:lN,setRecoilValueLoadable:uN}=dn,{SUSPENSE_TIMEOUT_MS:cN}=Ur,{cloneSnapshot:ul}=Xl,{useCallback:eu,useEffect:Rw,useRef:Am,useState:fN}=q,{isSSR:Im}=wp;function tu(e){const t=Rp();Rw(()=>t.current.subscribeToTransactions(e).release,[e,t])}function Dm(e){const t=e.atomValues.toMap(),n=sl(eN(t,(r,o)=>{const a=Cw(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return oN(e.nonvalidatedAtoms.toMap(),n)}function dN(e){tu(eu(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=Dm(r),i=Dm(n),a=sl(sN,l=>{var u,c,f,p;return{persistence_UNSTABLE:{type:(u=(c=l.persistence_UNSTABLE)===null||c===void 0?void 0:c.type)!==null&&u!==void 0?u:"none",backButton:(f=(p=l.persistence_UNSTABLE)===null||p===void 0?void 0:p.backButton)!==null&&f!==void 0?f:!1}}}),s=nN(r.dirtyAtoms,l=>o.has(l)||i.has(l));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))}function pN(e){tu(eu(t=>{const n=ul(t,"latest"),r=ul(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function hN(){const e=Rp(),[t,n]=fN(()=>ul(e.current)),r=yw(t),o=Am(),i=Am();if(tu(eu(s=>n(ul(s)),[])),Rw(()=>{const s=t.retain();if(o.current&&!Im){var l;window.clearTimeout(o.current),o.current=null,(l=i.current)===null||l===void 0||l.call(i),i.current=null}return()=>{window.setTimeout(s,10)}},[t]),r!==t&&!Im){if(o.current){var a;window.clearTimeout(o.current),o.current=null,(a=i.current)===null||a===void 0||a.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var s;o.current=null,(s=i.current)===null||s===void 0||s.call(i),i.current=null},cN)}return t}function xw(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;iN(()=>{const a=new Set;for(const u of[o.atomValues.keys(),i.atomValues.keys()])for(const c of u){var s,l;((s=o.atomValues.get(c))===null||s===void 0?void 0:s.contents)!==((l=i.atomValues.get(c))===null||l===void 0?void 0:l.contents)&&Cw(c).shouldRestoreFromSnapshots&&a.add(c)}a.forEach(u=>{uN(e,new lN(u),i.atomValues.has(u)?ke(i.atomValues.get(u)):aN)}),e.replaceState(u=>({...u,stateID:t.getID()}))})}function vN(){const e=Rp();return eu(t=>xw(e.current,t),[e])}var kw={useRecoilSnapshot:hN,gotoSnapshot:xw,useGotoRecoilSnapshot:vN,useRecoilTransactionObserver:pN,useTransactionObservation_DEPRECATED:dN,useTransactionSubscription_DEPRECATED:tu};const{peekNodeInfo:mN}=cr,{useStoreRef:gN}=kn;function yN(){const e=gN();return({key:t})=>mN(e.current,e.current.getState().currentTree,t)}var wN=yN;const{reactMode:SN}=_a,{RecoilRoot:_N,useStoreRef:bN}=kn,{useMemo:EN}=q;function CN(){SN().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=bN().current;return EN(()=>{function t({children:n}){return q.createElement(_N,{store_INTERNAL:e},n)}return t},[e])}var RN=CN;const{loadableWithValue:xN}=Sa,{initializeNode:kN}=cr,{DEFAULT_VALUE:ON,getNode:TN}=ft,{copyTreeState:PN,getRecoilValueAsLoadable:NN,invalidateDownstreams:LN,writeLoadableToTreeState:AN}=dn;function Mm(e){return TN(e.key).nodeType==="atom"}class IN{constructor(t,n){ie(this,"_store",void 0),ie(this,"_treeState",void 0),ie(this,"_changes",void 0),ie(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Mm(r))throw ae("Reading selectors within atomicUpdate is not supported");const o=NN(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:ae(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),ie(this,"set",(r,o)=>{if(!Mm(r))throw ae("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else kN(this._store,r.key,"set"),this._changes.set(r.key,o)}),ie(this,"reset",r=>{this.set(r,ON)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=PN(this._treeState);for(const[n,r]of this._changes)AN(t,n,xN(r));return LN(this._store,t),t}}function DN(e){return t=>{e.replaceState(n=>{const r=new IN(e,n);return t(r),r.newTreeState_INTERNAL()})}}var MN={atomicUpdater:DN},$N=MN.atomicUpdater,Ow=Object.freeze({__proto__:null,atomicUpdater:$N});function UN(e,t){if(!e)throw new Error(t)}var FN=UN,hi=FN;const{atomicUpdater:jN}=Ow,{batchUpdates:zN}=ql,{DEFAULT_VALUE:BN}=ft,{useStoreRef:VN}=kn,{refreshRecoilValue:WN,setRecoilValue:$m}=dn,{cloneSnapshot:HN}=Xl,{gotoSnapshot:KN}=kw,{useCallback:QN}=q;class Tw{}const qN=new Tw;function Pw(e,t,n,r){let o=qN,i;if(zN(()=>{const s="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(typeof t!="function")throw ae(s);const l=B1({...r??{},set:(c,f)=>$m(e,c,f),reset:c=>$m(e,c,BN),refresh:c=>WN(e,c),gotoSnapshot:c=>KN(e,c),transact_UNSTABLE:c=>jN(e)(c)},{snapshot:()=>{const c=HN(e);return i=c.retain(),c}}),u=t(l);if(typeof u!="function")throw ae(s);o=u(...n)}),o instanceof Tw&&hi(!1),xe(o))o.finally(()=>{var s;(s=i)===null||s===void 0||s()});else{var a;(a=i)===null||a===void 0||a()}return o}function GN(e,t){const n=VN();return QN((...r)=>Pw(n.current,e,r),t!=null?[...t,n]:void 0)}var Nw={recoilCallback:Pw,useRecoilCallback:GN};const{useStoreRef:YN}=kn,{refreshRecoilValue:XN}=dn,{useCallback:JN}=q;function ZN(e){const t=YN();return JN(()=>{const n=t.current;XN(n,e)},[e,t])}var eL=ZN;const{atomicUpdater:tL}=Ow,{useStoreRef:nL}=kn,{useMemo:rL}=q;function oL(e,t){const n=nL();return rL(()=>(...r)=>{tL(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var iL=oL;class aL{constructor(t){ie(this,"value",void 0),this.value=t}}var sL={WrappedValue:aL},lL=sL.WrappedValue,Lw=Object.freeze({__proto__:null,WrappedValue:lL});const{isFastRefreshEnabled:uL}=_a;class Um extends Error{}class cL{constructor(t){var n,r,o;ie(this,"_name",void 0),ie(this,"_numLeafs",void 0),ie(this,"_root",void 0),ie(this,"_onHit",void 0),ie(this,"_onSet",void 0),ie(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var i,a,s,l;let u,c;for(const[S,h]of t){var f,p,v;const d=this._root;if((d==null?void 0:d.type)==="leaf")throw this.invalidCacheError();const m=u;if(u=m?m.branches.get(c):d,u=(f=u)!==null&&f!==void 0?f:{type:"branch",nodeKey:S,parent:m,branches:new Map,branchKey:c},u.type!=="branch"||u.nodeKey!==S)throw this.invalidCacheError();m==null||m.branches.set(c,u),r==null||(p=r.onNodeVisit)===null||p===void 0||p.call(r,u),c=this._mapNodeValue(h),this._root=(v=this._root)!==null&&v!==void 0?v:u}const g=u?(i=u)===null||i===void 0?void 0:i.branches.get(c):this._root;if(g!=null&&(g.type!=="leaf"||g.branchKey!==c))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:u,branchKey:c};(a=u)===null||a===void 0||a.branches.set(c,y),this._root=(s=this._root)!==null&&s!==void 0?s:y,this._numLeafs++,this._onSet(y),r==null||(l=r.onNodeVisit)===null||l===void 0||l.call(r,y)};try{o()}catch(i){if(i instanceof Um)this.clear(),o();else throw i}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var i;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(i=r)===null||i===void 0?void 0:i.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=uL()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw cp(t+(this._name!=null?` - ${this._name}`:"")),new Um}}var fL={TreeCache:cL},dL=fL.TreeCache,Aw=Object.freeze({__proto__:null,TreeCache:dL});class pL{constructor(t){var n;ie(this,"_maxSize",void 0),ie(this,"_size",void 0),ie(this,"_head",void 0),ie(this,"_tail",void 0),ie(this,"_map",void 0),ie(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),a={key:t,right:i,left:null,value:n};i?i.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ke(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var hL={LRUCache:pL},vL=hL.LRUCache,Iw=Object.freeze({__proto__:null,LRUCache:vL});const{LRUCache:mL}=Iw,{TreeCache:gL}=Aw;function yL({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new mL({maxSize:t}),o=new gL({name:e,mapNodeValue:n,onHit:i=>{r.set(i,!0)},onSet:i=>{const a=r.tail();r.set(i,!0),a&&o.size()>t&&o.delete(a.key)}});return o}var Fm=yL;function jt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw ae("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(xe(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>jt(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return jt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,a]of e)o[typeof i=="string"?i:jt(i,t)]=a;return jt(o,t,n)}return e instanceof Set?jt(Array.from(e).sort((o,i)=>jt(o,t).localeCompare(jt(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?jt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${jt(o,t)}:${jt(e[o],t,o)}`).join(",")}}`}function wL(e,t={allowFunctions:!1}){return jt(e,t)}var nu=wL;const{TreeCache:SL}=Aw,Ga={equality:"reference",eviction:"keep-all",maxSize:1/0};function _L({equality:e=Ga.equality,eviction:t=Ga.eviction,maxSize:n=Ga.maxSize}=Ga,r){const o=bL(e);return EL(t,n,o,r)}function bL(e){switch(e){case"reference":return t=>t;case"value":return t=>nu(t)}throw ae(`Unrecognized equality policy ${e}`)}function EL(e,t,n,r){switch(e){case"keep-all":return new SL({name:r,mapNodeValue:n});case"lru":return Fm({name:r,maxSize:ke(t),mapNodeValue:n});case"most-recent":return Fm({name:r,maxSize:1,mapNodeValue:n})}throw ae(`Unrecognized eviction policy ${e}`)}var CL=_L;function RL(e){return()=>null}var xL={startPerfBlock:RL};const{isLoadable:kL,loadableWithError:Ya,loadableWithPromise:OL,loadableWithValue:nc}=Sa,{WrappedValue:Dw}=Lw,{getNodeLoadable:Xa,peekNodeLoadable:TL,setNodeValue:PL}=cr,{saveDepsToStore:NL}=ba,{DEFAULT_VALUE:LL,getConfigDeletionHandler:AL,getNode:IL,registerNode:jm}=ft,{isRecoilValue:DL}=Oo,{markRecoilValueModified:zm}=dn,{retainedByOptionWithDefault:ML}=Ur,{recoilCallback:$L}=Nw,{startPerfBlock:UL}=xL;class Mw{}const ai=new Mw,si=[],Ja=new Map,FL=(()=>{let e=0;return()=>e++})();function $w(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,a=new Set,s=CL(o??{equality:"reference",eviction:"keep-all"},n),l=ML(e.retainedBy_UNSTABLE),u=new Map;let c=0;function f(){return!ye("recoil_memory_managament_2020")||c>0}function p(E){return E.getState().knownSelectors.add(n),c++,()=>{c--}}function v(){return AL(n)!==void 0&&!f()}function g(E,L,A,J,F){X(L,J,F),y(E,A)}function y(E,L){K(E,L)&&ue(E),h(L,!0)}function S(E,L){K(E,L)&&(ke(M(E)).stateVersions.clear(),h(L,!1))}function h(E,L){const A=Ja.get(E);if(A!=null){for(const J of A)zm(J,ke(t));L&&Ja.delete(E)}}function d(E,L){let A=Ja.get(L);A==null&&Ja.set(L,A=new Set),A.add(E)}function m(E,L,A,J,F,z){return L.then(Z=>{if(!f())throw ue(E),ai;const Y=nc(Z);return g(E,A,F,Y,J),Z}).catch(Z=>{if(!f())throw ue(E),ai;if(xe(Z))return _(E,Z,A,J,F,z);const Y=Ya(Z);throw g(E,A,F,Y,J),Z})}function _(E,L,A,J,F,z){return L.then(Z=>{if(!f())throw ue(E),ai;z.loadingDepKey!=null&&z.loadingDepPromise===L?A.atomValues.set(z.loadingDepKey,nc(Z)):E.getState().knownSelectors.forEach(de=>{A.atomValues.delete(de)});const Y=T(E,A);if(Y&&Y.state!=="loading"){if((K(E,F)||M(E)==null)&&y(E,F),Y.state==="hasValue")return Y.contents;throw Y.contents}if(!K(E,F)){const de=W(E,A);if(de!=null)return de.loadingLoadable.contents}const[he,we]=C(E,A,F);if(he.state!=="loading"&&g(E,A,F,he,we),he.state==="hasError")throw he.contents;return he.contents}).catch(Z=>{if(Z instanceof Mw)throw ai;if(!f())throw ue(E),ai;const Y=Ya(Z);throw g(E,A,F,Y,J),Z})}function x(E,L,A,J){var F,z,Z,Y;if(K(E,J)||L.version===((F=E.getState())===null||F===void 0||(z=F.currentTree)===null||z===void 0?void 0:z.version)||L.version===((Z=E.getState())===null||Z===void 0||(Y=Z.nextTree)===null||Y===void 0?void 0:Y.version)){var he,we,de;NL(n,A,E,(he=(we=E.getState())===null||we===void 0||(de=we.nextTree)===null||de===void 0?void 0:de.version)!==null&&he!==void 0?he:E.getState().currentTree.version)}for(const Se of A)a.add(Se)}function C(E,L,A){const J=UL(n);let F=!0,z=!0;const Z=()=>{J(),z=!1};let Y,he=!1,we;const de={loadingDepKey:null,loadingDepPromise:null},Se=new Map;function rt({key:Et}){const dt=Xa(E,L,Et);switch(Se.set(Et,dt),F||(x(E,L,new Set(Se.keys()),A),S(E,A)),dt.state){case"hasValue":return dt.contents;case"hasError":throw dt.contents;case"loading":throw de.loadingDepKey=Et,de.loadingDepPromise=dt.contents,dt.contents}throw ae("Invalid Loadable state")}const dr=Et=>(...dt)=>{if(z)throw ae("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&hi(!1),$L(E,Et,dt,{node:t})};try{Y=r({get:rt,getCallback:dr}),Y=DL(Y)?rt(Y):Y,kL(Y)&&(Y.state==="hasError"&&(he=!0),Y=Y.contents),xe(Y)?Y=m(E,Y,L,Se,A,de).finally(Z):Z(),Y=Y instanceof Dw?Y.value:Y}catch(Et){Y=Et,xe(Y)?Y=_(E,Y,L,Se,A,de).finally(Z):(he=!0,Z())}return he?we=Ya(Y):xe(Y)?we=OL(Y):we=nc(Y),F=!1,pe(E,A,Se),x(E,L,new Set(Se.keys()),A),[we,Se]}function T(E,L){let A=L.atomValues.get(n);if(A!=null)return A;const J=new Set;try{A=s.get(z=>(typeof z!="string"&&hi(!1),Xa(E,L,z).contents),{onNodeVisit:z=>{z.type==="branch"&&z.nodeKey!==n&&J.add(z.nodeKey)}})}catch(z){throw ae(`Problem with cache lookup for selector "${n}": ${z.message}`)}if(A){var F;L.atomValues.set(n,A),x(E,L,J,(F=M(E))===null||F===void 0?void 0:F.executionID)}return A}function N(E,L){const A=T(E,L);if(A!=null)return ue(E),A;const J=W(E,L);if(J!=null){var F;return((F=J.loadingLoadable)===null||F===void 0?void 0:F.state)==="loading"&&d(E,J.executionID),J.loadingLoadable}const z=FL(),[Z,Y]=C(E,L,z);return Z.state==="loading"?(ee(E,z,Z,Y,L),d(E,z)):(ue(E),X(L,Z,Y)),Z}function W(E,L){const A=iw([u.has(E)?[ke(u.get(E))]:[],Wl(vp(u,([F])=>F!==E),([,F])=>F)]);function J(F){for(const[z,Z]of F)if(!Xa(E,L,z).is(Z))return!0;return!1}for(const F of A){if(F.stateVersions.get(L.version)||!J(F.depValuesDiscoveredSoFarDuringAsyncWork))return F.stateVersions.set(L.version,!0),F;F.stateVersions.set(L.version,!1)}}function M(E){return u.get(E)}function ee(E,L,A,J,F){u.set(E,{depValuesDiscoveredSoFarDuringAsyncWork:J,executionID:L,loadingLoadable:A,stateVersions:new Map([[F.version,!0]])})}function pe(E,L,A){if(K(E,L)){const J=M(E);J!=null&&(J.depValuesDiscoveredSoFarDuringAsyncWork=A)}}function ue(E){u.delete(E)}function K(E,L){var A;return L===((A=M(E))===null||A===void 0?void 0:A.executionID)}function j(E){return Array.from(E.entries()).map(([L,A])=>[L,A.contents])}function X(E,L,A){E.atomValues.set(n,L);try{s.set(j(A),L)}catch(J){throw ae(`Problem with setting cache for selector "${n}": ${J.message}`)}}function O(E){if(si.includes(n)){const L=`Recoil selector has circular dependencies: ${si.slice(si.indexOf(n)).join(" → ")}`;return Ya(ae(L))}si.push(n);try{return E()}finally{si.pop()}}function P(E,L){const A=L.atomValues.get(n);return A??s.get(J=>{var F;return typeof J!="string"&&hi(!1),(F=TL(E,L,J))===null||F===void 0?void 0:F.contents})}function H(E,L){return O(()=>N(E,L))}function $(E){E.atomValues.delete(n)}function U(E,L){t==null&&hi(!1);for(const J of a){var A;const F=IL(J);(A=F.clearCache)===null||A===void 0||A.call(F,E,L)}a.clear(),$(L),s.clear(),zm(E,t)}return i!=null?t=jm({key:n,nodeType:"selector",peek:P,get:H,set:(L,A,J)=>{let F=!1;const z=new Map;function Z({key:de}){if(F)throw ae("Recoil: Async selector sets are not currently supported.");const Se=Xa(L,A,de);if(Se.state==="hasValue")return Se.contents;if(Se.state==="loading"){const rt=`Getting value of asynchronous atom or selector "${de}" in a pending state while setting selector "${n}" is not yet supported.`;throw ae(rt)}else throw Se.contents}function Y(de,Se){if(F)throw ae("Recoil: Async selector sets are not currently supported.");const rt=typeof Se=="function"?Se(Z(de)):Se;PL(L,A,de.key,rt).forEach((Et,dt)=>z.set(dt,Et))}function he(de){Y(de,LL)}const we=i({set:Y,get:Z,reset:he},J);if(we!==void 0)throw xe(we)?ae("Recoil: Async selector sets are not currently supported."):ae("Recoil: selector set should be a void function.");return F=!0,z},init:p,invalidate:$,clearCache:U,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=jm({key:n,nodeType:"selector",peek:P,get:H,init:p,invalidate:$,clearCache:U,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}$w.value=e=>new Dw(e);var No=$w;const{isLoadable:jL,loadableWithError:rc,loadableWithPromise:oc,loadableWithValue:Hr}=Sa,{WrappedValue:Uw}=Lw,{peekNodeInfo:zL}=cr,{DEFAULT_VALUE:gr,DefaultValue:Mn,getConfigDeletionHandler:Fw,registerNode:BL,setConfigDeletionHandler:VL}=ft,{isRecoilValue:WL}=Oo,{getRecoilValueAsLoadable:HL,markRecoilValueModified:KL,setRecoilValue:Bm,setRecoilValueLoadable:QL}=dn,{retainedByOptionWithDefault:qL}=Ur,li=e=>e instanceof Uw?e.value:e;function GL(e){const{key:t,persistence_UNSTABLE:n}=e,r=qL(e.retainedBy_UNSTABLE);let o=0;function i(d){return oc(d.then(m=>(a=Hr(m),m)).catch(m=>{throw a=rc(m),m}))}let a=xe(e.default)?i(e.default):jL(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Hr(li(e.default));a.contents;let s;const l=new Map;function u(d){return d}function c(d,m){const _=m.then(x=>{var C,T;return((T=((C=d.getState().nextTree)!==null&&C!==void 0?C:d.getState().currentTree).atomValues.get(t))===null||T===void 0?void 0:T.contents)===_&&Bm(d,h,x),x}).catch(x=>{var C,T;throw((T=((C=d.getState().nextTree)!==null&&C!==void 0?C:d.getState().currentTree).atomValues.get(t))===null||T===void 0?void 0:T.contents)===_&&QL(d,h,rc(x)),x});return _}function f(d,m,_){var x;o++;const C=()=>{var M;o--,(M=l.get(d))===null||M===void 0||M.forEach(ee=>ee()),l.delete(d)};if(d.getState().knownAtoms.add(t),a.state==="loading"){const M=()=>{var ee;((ee=d.getState().nextTree)!==null&&ee!==void 0?ee:d.getState().currentTree).atomValues.has(t)||KL(d,h)};a.contents.finally(M)}const T=(x=e.effects)!==null&&x!==void 0?x:e.effects_UNSTABLE;if(T!=null){let K=function($){if(ee&&$.key===t){const U=M;return U instanceof Mn?p(d,m):xe(U)?oc(U.then(E=>E instanceof Mn?a.toPromise():E)):Hr(U)}return HL(d,$)},j=function($){return K($).toPromise()},X=function($){var U;const E=zL(d,(U=d.getState().nextTree)!==null&&U!==void 0?U:d.getState().currentTree,$.key);return ee&&$.key===t&&!(M instanceof Mn)?{...E,isSet:!0,loadable:K($)}:E},M=gr,ee=!0,pe=!1,ue=null;const O=$=>U=>{if(ee){const E=K(h),L=E.state==="hasValue"?E.contents:gr;M=typeof U=="function"?U(L):U,xe(M)&&(M=M.then(A=>(ue={effect:$,value:A},A)))}else{if(xe(U))throw ae("Setting atoms to async values is not implemented.");typeof U!="function"&&(ue={effect:$,value:li(U)}),Bm(d,h,typeof U=="function"?E=>{const L=li(U(E));return ue={effect:$,value:L},L}:li(U))}},P=$=>()=>O($)(gr),H=$=>U=>{var E;const{release:L}=d.subscribeToTransactions(A=>{var J;let{currentTree:F,previousTree:z}=A.getState();z||(z=F);const Z=(J=F.atomValues.get(t))!==null&&J!==void 0?J:a;if(Z.state==="hasValue"){var Y,he,we,de;const Se=Z.contents,rt=(Y=z.atomValues.get(t))!==null&&Y!==void 0?Y:a,dr=rt.state==="hasValue"?rt.contents:gr;((he=ue)===null||he===void 0?void 0:he.effect)!==$||((we=ue)===null||we===void 0?void 0:we.value)!==Se?U(Se,dr,!F.atomValues.has(t)):((de=ue)===null||de===void 0?void 0:de.effect)===$&&(ue=null)}},t);l.set(d,[...(E=l.get(d))!==null&&E!==void 0?E:[],L])};for(const $ of T)try{const U=$({node:h,storeID:d.storeID,parentStoreID_UNSTABLE:d.parentStoreID,trigger:_,setSelf:O($),resetSelf:P($),onSet:H($),getPromise:j,getLoadable:K,getInfo_UNSTABLE:X});if(U!=null){var N;l.set(d,[...(N=l.get(d))!==null&&N!==void 0?N:[],U])}}catch(U){M=U,pe=!0}if(ee=!1,!(M instanceof Mn)){var W;const $=pe?rc(M):xe(M)?oc(c(d,M)):Hr(li(M));$.contents,m.atomValues.set(t,$),(W=d.getState().nextTree)===null||W===void 0||W.atomValues.set(t,$)}}return C}function p(d,m){var _,x;return(_=(x=m.atomValues.get(t))!==null&&x!==void 0?x:s)!==null&&_!==void 0?_:a}function v(d,m){if(m.atomValues.has(t))return ke(m.atomValues.get(t));if(m.nonvalidatedAtoms.has(t)){if(s!=null)return s;if(n==null)return a;const _=m.nonvalidatedAtoms.get(t),x=n.validator(_,gr);return s=x instanceof Mn?a:Hr(x),s}else return a}function g(){s=void 0}function y(d,m,_){if(m.atomValues.has(t)){const x=ke(m.atomValues.get(t));if(x.state==="hasValue"&&_===x.contents)return new Map}else if(!m.nonvalidatedAtoms.has(t)&&_ instanceof Mn)return new Map;return s=void 0,new Map().set(t,Hr(_))}function S(){return Fw(t)!==void 0&&o<=0}const h=BL({key:t,nodeType:"atom",peek:p,get:v,set:y,init:f,invalidate:g,shouldDeleteConfigOnRelease:S,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 h}function xp(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return WL(n)?YL({...t,default:n}):GL({...t,default:n})}function YL(e){const t=xp({...e,default:gr,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Mn?r:ke(e.persistence_UNSTABLE).validator(r,gr)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=No({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof Mn?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return VL(n.key,Fw(e.key)),n}xp.value=e=>new Uw(e);var jw=xp;class XL{constructor(t){var n;ie(this,"_map",void 0),ie(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var JL={MapCache:XL},ZL=JL.MapCache,eA=Object.freeze({__proto__:null,MapCache:ZL});const{LRUCache:Vm}=Iw,{MapCache:tA}=eA,Za={equality:"reference",eviction:"none",maxSize:1/0};function nA({equality:e=Za.equality,eviction:t=Za.eviction,maxSize:n=Za.maxSize}=Za){const r=rA(e);return oA(t,n,r)}function rA(e){switch(e){case"reference":return t=>t;case"value":return t=>nu(t)}throw ae(`Unrecognized equality policy ${e}`)}function oA(e,t,n){switch(e){case"keep-all":return new tA({mapKey:n});case"lru":return new Vm({mapKey:n,maxSize:ke(t)});case"most-recent":return new Vm({mapKey:n,maxSize:1})}throw ae(`Unrecognized eviction policy ${e}`)}var zw=nA;const{setConfigDeletionHandler:iA}=ft;function aA(e){var t,n;const r=zw({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i,a;const s=r.get(o);if(s!=null)return s;const{cachePolicyForParams_UNSTABLE:l,...u}=e,c="default"in e?e.default:new Promise(()=>{}),f=jw({...u,key:`${e.key}__${(i=nu(o))!==null&&i!==void 0?i:"void"}`,default:typeof c=="function"?c(o):c,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(a=e.effects)!==null&&a!==void 0?a:e.effects_UNSTABLE});return r.set(o,f),iA(f.key,()=>{r.delete(o)}),f}}var sA=aA;const{setConfigDeletionHandler:lA}=ft;let uA=0;function cA(e){var t,n;const r=zw({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let a;try{a=r.get(o)}catch(p){throw ae(`Problem with cache lookup for selector ${e.key}: ${p.message}`)}if(a!=null)return a;const s=`${e.key}__selectorFamily/${(i=nu(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${uA++}`,l=p=>e.get(o)(p),u=e.cachePolicy_UNSTABLE,c=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const p=e.set;f=No({key:s,get:l,set:(g,y)=>p(o)(g,y),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else f=No({key:s,get:l,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return r.set(o,f),lA(f.key,()=>{r.delete(o)}),f}}var fr=cA;const fA=fr({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function dA(e){return fA(e)}var pA=dA;const hA=fr({key:"__error",get:e=>()=>{throw ae(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function vA(e){return hA(e)}var mA=vA;function gA(e){return e}var yA=gA;const{loadableWithError:Bw,loadableWithPromise:Vw,loadableWithValue:Ww}=Sa;function ru(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(a){r[o]=a}return[n,r]}function wA(e){return e!=null&&!xe(e)}function ou(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function Df(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function vo(e,t,n){const r=n.map((o,i)=>o==null?Ww(t[i]):xe(o)?Vw(o):Bw(o));return Df(e,r)}function SA(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const _A=fr({key:"__waitForNone",get:e=>({get:t})=>{const n=ou(e),[r,o]=ru(t,n);return vo(e,r,o)},dangerouslyAllowMutability:!0}),bA=fr({key:"__waitForAny",get:e=>({get:t})=>{const n=ou(e),[r,o]=ru(t,n);return o.some(i=>!xe(i))?vo(e,r,o):new Promise(i=>{for(const[a,s]of o.entries())xe(s)&&s.then(l=>{r[a]=l,o[a]=void 0,i(vo(e,r,o))}).catch(l=>{o[a]=l,i(vo(e,r,o))})})},dangerouslyAllowMutability:!0}),EA=fr({key:"__waitForAll",get:e=>({get:t})=>{const n=ou(e),[r,o]=ru(t,n);if(o.every(a=>a==null))return Df(e,r);const i=o.find(wA);if(i!=null)throw i;return Promise.all(o).then(a=>Df(e,SA(r,a)))},dangerouslyAllowMutability:!0}),CA=fr({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=ou(e),[r,o]=ru(t,n);return o.every(i=>!xe(i))?vo(e,r,o):Promise.all(o.map((i,a)=>xe(i)?i.then(s=>{r[a]=s,o[a]=void 0}).catch(s=>{r[a]=void 0,o[a]=s}):null)).then(()=>vo(e,r,o))},dangerouslyAllowMutability:!0}),RA=fr({key:"__noWait",get:e=>({get:t})=>{try{return No.value(Ww(t(e)))}catch(n){return No.value(xe(n)?Vw(n):Bw(n))}},dangerouslyAllowMutability:!0});var xA={waitForNone:_A,waitForAny:bA,waitForAll:EA,waitForAllSettled:CA,noWait:RA};const{RecoilLoadable:kA}=Sa,{DefaultValue:OA}=ft,{RecoilRoot:TA,useRecoilStoreID:PA}=kn,{isRecoilValue:NA}=Oo,{retentionZone:LA}=Kl,{freshSnapshot:AA}=Xl,{useRecoilState:IA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:DA,useRecoilStateLoadable:MA,useRecoilValue:$A,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:UA,useRecoilValueLoadable:FA,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:jA,useResetRecoilState:zA,useSetRecoilState:BA}=JP,{useGotoRecoilSnapshot:VA,useRecoilSnapshot:WA,useRecoilTransactionObserver:HA}=kw,{useRecoilCallback:KA}=Nw,{noWait:QA,waitForAll:qA,waitForAllSettled:GA,waitForAny:YA,waitForNone:XA}=xA;var kp={DefaultValue:OA,isRecoilValue:NA,RecoilLoadable:kA,RecoilEnv:N1,RecoilRoot:TA,useRecoilStoreID:PA,useRecoilBridgeAcrossReactRoots_UNSTABLE:RN,atom:jw,selector:No,atomFamily:sA,selectorFamily:fr,constSelector:pA,errorSelector:mA,readOnlySelector:yA,noWait:QA,waitForNone:XA,waitForAny:YA,waitForAll:qA,waitForAllSettled:GA,useRecoilValue:$A,useRecoilValueLoadable:FA,useRecoilState:IA,useRecoilStateLoadable:MA,useSetRecoilState:BA,useResetRecoilState:zA,useGetRecoilValueInfo_UNSTABLE:wN,useRecoilRefresher_UNSTABLE:eL,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:jA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:UA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:DA,useRecoilCallback:KA,useRecoilTransaction_UNSTABLE:iL,useGotoRecoilSnapshot:VA,useRecoilSnapshot:WA,useRecoilTransactionObserver_UNSTABLE:HA,snapshot_UNSTABLE:AA,useRetain:_p,retentionZone:LA},JA=kp.RecoilRoot,ZA=kp.atom,gU=kp.useRecoilState;function Mf(){return Mf=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},Mf.apply(this,arguments)}function eI(e,t){if(e==null)return{};var n=tI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Op=w.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=eI(e,["color","size"]);return q.createElement("svg",Mf({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"},a),q.createElement("polyline",{points:"20 6 9 17 4 12"}))});Op.propTypes={color:ge.string,size:ge.oneOfType([ge.string,ge.number])};Op.displayName="Check";const nI=Op;function $f(){return $f=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},$f.apply(this,arguments)}function rI(e,t){if(e==null)return{};var n=oI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Tp=w.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=rI(e,["color","size"]);return q.createElement("svg",$f({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"},a),q.createElement("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),q.createElement("line",{x1:"1",y1:"1",x2:"23",y2:"23"}))});Tp.propTypes={color:ge.string,size:ge.oneOfType([ge.string,ge.number])};Tp.displayName="EyeOff";const iI=Tp;function Uf(){return Uf=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},Uf.apply(this,arguments)}function aI(e,t){if(e==null)return{};var n=sI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Pp=w.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=aI(e,["color","size"]);return q.createElement("svg",Uf({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"},a),q.createElement("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),q.createElement("circle",{cx:"12",cy:"12",r:"3"}))});Pp.propTypes={color:ge.string,size:ge.oneOfType([ge.string,ge.number])};Pp.displayName="Eye";const lI=Pp;function Ff(){return Ff=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},Ff.apply(this,arguments)}function uI(e,t){if(e==null)return{};var n=cI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Np=w.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=uI(e,["color","size"]);return q.createElement("svg",Ff({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"},a),q.createElement("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"}))});Np.propTypes={color:ge.string,size:ge.oneOfType([ge.string,ge.number])};Np.displayName="GitHub";const fI=Np;function jf(){return jf=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},jf.apply(this,arguments)}function dI(e,t){if(e==null)return{};var n=pI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Lp=w.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=dI(e,["color","size"]);return q.createElement("svg",jf({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"},a),q.createElement("circle",{cx:"12",cy:"12",r:"10"}),q.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),q.createElement("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))});Lp.propTypes={color:ge.string,size:ge.oneOfType([ge.string,ge.number])};Lp.displayName="Info";const hI=Lp;function zf(){return zf=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},zf.apply(this,arguments)}function vI(e,t){if(e==null)return{};var n=mI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ap=w.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=vI(e,["color","size"]);return q.createElement("svg",zf({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"},a),q.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),q.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Ap.propTypes={color:ge.string,size:ge.oneOfType([ge.string,ge.number])};Ap.displayName="X";const gI=Ap;function yI(e,t){let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function Hw(e){return e.replace(/\/$/,"")}function yU(e,t){let n=String(e);for(;n.length<t;)n="0"+n;return n}const wI={"Content-Type":"application/json"};function SI({secret:e}){const t={...wI};return e&&(t.Authorization=`Bearer ${e}`),t}function Kw(e,t,n){const r="?"+t.toString(),o=new URL(e);return o.protocol==="https:"?o.protocol="wss:":o.protocol="ws:",`${Hw(o.href)}${n}${r}`}function _t({baseURL:e,secret:t}){const n=SI({secret:t});return{url:e,init:{headers:n}}}function Qw(e,t){const{baseURL:n,secret:r}=e,o=new URLSearchParams({token:r});return Kw(n,o,t)}function wU(e,t){const{baseURL:n,secret:r,logLevel:o}=e,i=new URLSearchParams({token:r,level:o});return Kw(n,i,t)}async function _I(e,t){let n={};try{const{url:r,init:o}=_t(t),i=await fetch(r+e,o);i.ok&&(n=await i.json())}catch(r){console.log(`failed to fetch ${e}`,r)}return n}const bI="_root_5bosw_1",EI="_h1_5bosw_7",Wm={root:bI,h1:EI};function CI({title:e}){return R("div",{className:Wm.root,children:R("h1",{className:Wm.h1,children:e})})}const qw=q.memo(CI);function Kt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Lo(e){return!!e&&!!e[gt]}function Ar(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===LI}(e)||Array.isArray(e)||!!e[Jm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Jm])||Ip(e)||Dp(e))}function ea(e,t,n){n===void 0&&(n=!1),zo(e)===0?(n?Object.keys:jp)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function zo(e){var t=e[gt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ip(e)?2:Dp(e)?3:0}function Bf(e,t){return zo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function RI(e,t){return zo(e)===2?e.get(t):e[t]}function Gw(e,t,n){var r=zo(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function xI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ip(e){return PI&&e instanceof Map}function Dp(e){return NI&&e instanceof Set}function mr(e){return e.o||e.t}function Mp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=AI(e);delete t[gt];for(var n=jp(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function $p(e,t){return t===void 0&&(t=!1),Up(e)||Lo(e)||!Ar(e)||(zo(e)>1&&(e.set=e.add=e.clear=e.delete=kI),Object.freeze(e),t&&ea(e,function(n,r){return $p(r,!0)},!0)),e}function kI(){Kt(2)}function Up(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function un(e){var t=II[e];return t||Kt(18,e),t}function Hm(){return ta}function ic(e,t){t&&(un("Patches"),e.u=[],e.s=[],e.v=t)}function cl(e){Vf(e),e.p.forEach(OI),e.p=null}function Vf(e){e===ta&&(ta=e.l)}function Km(e){return ta={p:[],l:ta,h:e,m:!0,_:0}}function OI(e){var t=e[gt];t.i===0||t.i===1?t.j():t.O=!0}function ac(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||un("ES5").S(t,e,r),r?(n[gt].P&&(cl(t),Kt(4)),Ar(e)&&(e=fl(t,e),t.l||dl(t,e)),t.u&&un("Patches").M(n[gt].t,e,t.u,t.s)):e=fl(t,n,[]),cl(t),t.u&&t.v(t.u,t.s),e!==Yw?e:void 0}function fl(e,t,n){if(Up(t))return t;var r=t[gt];if(!r)return ea(t,function(s,l){return Qm(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return dl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Mp(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),ea(i,function(s,l){return Qm(e,r,o,s,l,n,a)}),dl(e,o,!1),n&&e.u&&un("Patches").N(r,n,e.u,e.s)}return r.o}function Qm(e,t,n,r,o,i,a){if(Lo(o)){var s=fl(e,o,i&&t&&t.i!==3&&!Bf(t.R,r)?i.concat(r):void 0);if(Gw(n,r,s),!Lo(s))return;e.m=!1}else a&&n.add(o);if(Ar(o)&&!Up(o)){if(!e.h.D&&e._<1)return;fl(e,o),t&&t.A.l||dl(e,o)}}function dl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&$p(t,n)}function sc(e,t){var n=e[gt];return(n?mr(n):e)[t]}function qm(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Wf(e){e.P||(e.P=!0,e.l&&Wf(e.l))}function lc(e){e.o||(e.o=Mp(e.t))}function Hf(e,t,n){var r=Ip(t)?un("MapSet").F(t,n):Dp(t)?un("MapSet").T(t,n):e.g?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Hm(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,u=Kf;a&&(l=[s],u=vi);var c=Proxy.revocable(l,u),f=c.revoke,p=c.proxy;return s.k=p,s.j=f,p}(t,n):un("ES5").J(t,n);return(n?n.A:Hm()).p.push(r),r}function TI(e){return Lo(e)||Kt(22,e),function t(n){if(!Ar(n))return n;var r,o=n[gt],i=zo(n);if(o){if(!o.P&&(o.i<4||!un("ES5").K(o)))return o.t;o.I=!0,r=Gm(n,i),o.I=!1}else r=Gm(n,i);return ea(r,function(a,s){o&&RI(o.t,a)===s||Gw(r,a,t(s))}),i===3?new Set(r):r}(e)}function Gm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mp(e)}var Ym,ta,Fp=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",PI=typeof Map<"u",NI=typeof Set<"u",Xm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Yw=Fp?Symbol.for("immer-nothing"):((Ym={})["immer-nothing"]=!0,Ym),Jm=Fp?Symbol.for("immer-draftable"):"__$immer_draftable",gt=Fp?Symbol.for("immer-state"):"__$immer_state",LI=""+Object.prototype.constructor,jp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,AI=Object.getOwnPropertyDescriptors||function(e){var t={};return jp(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},II={},Kf={get:function(e,t){if(t===gt)return e;var n=mr(e);if(!Bf(n,t))return function(o,i,a){var s,l=qm(i,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Ar(r)?r:r===sc(e.t,t)?(lc(e),e.o[t]=Hf(e.A.h,r,e)):r},has:function(e,t){return t in mr(e)},ownKeys:function(e){return Reflect.ownKeys(mr(e))},set:function(e,t,n){var r=qm(mr(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=sc(mr(e),t),i=o==null?void 0:o[gt];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(xI(n,o)&&(n!==void 0||Bf(e.t,t)))return!0;lc(e),Wf(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return sc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,lc(e),Wf(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=mr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Kt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Kt(12)}},vi={};ea(Kf,function(e,t){vi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),vi.deleteProperty=function(e,t){return vi.set.call(this,e,t,void 0)},vi.set=function(e,t,n){return Kf.set.call(this,e[0],t,n,e[0])};var DI=function(){function e(n){var r=this;this.g=Xm,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var l=r;return function(y){var S=this;y===void 0&&(y=s);for(var h=arguments.length,d=Array(h>1?h-1:0),m=1;m<h;m++)d[m-1]=arguments[m];return l.produce(y,function(_){var x;return(x=i).call.apply(x,[S,_].concat(d))})}}var u;if(typeof i!="function"&&Kt(6),a!==void 0&&typeof a!="function"&&Kt(7),Ar(o)){var c=Km(r),f=Hf(r,o,void 0),p=!0;try{u=i(f),p=!1}finally{p?cl(c):Vf(c)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(y){return ic(c,a),ac(y,c)},function(y){throw cl(c),y}):(ic(c,a),ac(u,c))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Yw&&(u=void 0),r.D&&$p(u,!0),a){var v=[],g=[];un("Patches").M(o,u,v,g),a(v,g)}return u}Kt(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var c=arguments.length,f=Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];return r.produceWithPatches(u,function(v){return o.apply(void 0,[v].concat(f))})};var a,s,l=r.produce(o,i,function(u,c){a=u,s=c});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,a,s]}):[l,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Ar(n)||Kt(8),Lo(n)&&(n=TI(n));var r=Km(this),o=Hf(this,n,void 0);return o[gt].C=!0,Vf(r),o},t.finishDraft=function(n,r){var o=n&&n[gt],i=o.A;return ic(i,r),ac(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!Xm&&Kt(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=un("Patches").$;return Lo(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),yt=new DI,MI=yt.produce;yt.produceWithPatches.bind(yt);var $I=yt.setAutoFreeze.bind(yt);yt.setUseProxies.bind(yt);yt.applyPatches.bind(yt);yt.createDraft.bind(yt);yt.finishDraft.bind(yt);$I(!1);const{createContext:zp,memo:UI,useMemo:FI,useRef:jI,useEffect:zI,useCallback:Zm,useContext:Qf,useState:BI}=q,Xw=zp(null),Jw=zp(null),Zw=zp(null);function VI(){return Qf(Zw)}function WI({initialState:e,actions:t={},children:n}){const r=jI(e),[o,i]=BI(e),a=Zm(()=>r.current,[]);zI(()=>{},[a]);const s=Zm((u,c)=>{if(typeof u=="function")return u(s,a);const f=MI(a(),c);f!==r.current&&(r.current=f,i(f))},[a]),l=FI(()=>eS(t,s),[t,s]);return R(Xw.Provider,{value:o,children:R(Jw.Provider,{value:s,children:R(Zw.Provider,{value:l,children:n})})})}function On(e){return t=>{const n=UI(t);function r(o){const i=Qf(Xw),a=Qf(Jw),s=e(i,o),l={dispatch:a,...o,...s};return R(n,{...l})}return r}}function HI(e,t){return function(...n){return t(e.apply(this,n))}}function eS(e,t){const n={};for(const r in e){const o=e[r];typeof o=="function"?n[r]=HI(o,t):typeof o=="object"&&(n[r]=eS(o,t))}return n}const tS="yacd.haishan.me";function KI(){try{const e=localStorage.getItem(tS);return e?JSON.parse(e):void 0}catch{return}}function Fr(e){try{const t=JSON.stringify(e);localStorage.setItem(tS,t)}catch{}}const nS="/configs";async function rS(e){const{url:t,init:n}=_t(e);return await fetch(t+nS,n)}function QI(e){return"socks-port"in e&&(e["socket-port"]=e["socks-port"]),e}async function qI(e,t){const{url:n,init:r}=_t(e),o=JSON.stringify(QI(t));return await fetch(n+nS,{...r,body:o,method:"PATCH"})}const oS="/traffic",GI=new TextDecoder("utf-8"),es=150,na={labels:Array(es).fill(0),up:Array(es),down:Array(es),size:es,subscribers:[],appendData(e){this.up.shift(),this.down.shift(),this.labels.shift();const t=Date.now();this.up.push(e.up),this.down.push(e.down),this.labels.push(t),this.subscribers.forEach(n=>n(e))},subscribe(e){return this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}}};let ao=!1,ts="";function qf(e){na.appendData(JSON.parse(e))}function iS(e){return e.read().then(({done:t,value:n})=>{const r=GI.decode(n,{stream:!t});ts+=r;const o=ts.split(`
|
|
`),i=o[o.length-1];for(let a=0;a<o.length-1;a++)qf(o[a]);if(t){qf(i),ts="",console.log("GET /traffic streaming done"),ao=!1;return}else ts=i;return iS(e)})}let ns;function Bp(e){if(ao||ns===1)return na;ns=1;const t=Qw(e,oS),n=new WebSocket(t);return n.addEventListener("error",function(r){ns=3}),n.addEventListener("close",function(r){ns=3,YI(e)}),n.addEventListener("message",function(r){qf(r.data)}),na}function YI(e){if(ao)return na;ao=!0;const{url:t,init:n}=_t(e);return fetch(t+oS,n).then(r=>{if(r.ok){const o=r.body.getReader();iS(o)}else ao=!1},r=>{console.log("fetch /traffic error",r),ao=!1}),na}function eg(e){return t=>{t(`openModal:${e}`,n=>{n.modals[e]=!0})}}function XI(e){return t=>{t(`closeModal:${e}`,n=>{n.modals[e]=!1})}}const JI={apiConfig:!1},SU=e=>e.configs.configs,ZI=e=>e.configs.haveFetchedConfig,_U=e=>e.configs.configs["log-level"];function aS(e){return async(t,n)=>{let r;try{r=await rS(e)}catch{t(eg("apiConfig"));return}if(!r.ok){console.log("Error fetch configs",r.statusText),t(eg("apiConfig"));return}const o=await r.json();t("store/configs#fetchConfigs",a=>{a.configs.configs=o}),ZI(n())?Bp(e):t(eD())}}function eD(){return e=>{e("store/configs#markHaveFetchedConfig",t=>{t.configs.haveFetchedConfig=!0})}}function bU(e,t){return async n=>{qI(e,t).then(r=>{r.ok===!1&&console.log("Error update configs",r.statusText)},r=>{throw console.log("Error update configs",r),r}).then(()=>{n(aS(e))}),n("storeConfigsOptimisticUpdateConfigs",r=>{r.configs.configs={...r.configs.configs,...t}})}}const tD={configs:{port:7890,"socks-port":7891,"redir-port":0,"allow-lan":!1,mode:"Rule","log-level":"uninit"},haveFetchedConfig:!1},Bo=e=>{const t=e.app.selectedClashAPIConfigIndex;return e.app.clashAPIConfigs[t]},sS=e=>e.app.selectedClashAPIConfigIndex,Vp=e=>e.app.clashAPIConfigs,Wp=e=>e.app.theme,nD=e=>e.app.selectedChartStyleIndex,lS=e=>e.app.latencyTestUrl,EU=e=>e.app.collapsibleIsOpen,CU=e=>e.app.proxySortBy,RU=e=>e.app.hideUnavailableProxies,rD=e=>e.app.autoCloseOldConns,xU=e=>e.app.logStreamingPaused,oD=yI(Fr,600);function Hp(e,{baseURL:t,secret:n,metaLabel:r}){const o=Vp(e());for(let i=0;i<o.length;i++){const a=o[i];if(a.baseURL===t&&a.secret===n&&a.metaLabel===r)return i}}function iD(e){return async(t,n)=>{if(Hp(n,e))return;const o={...e,addedAt:Date.now()};t("addClashAPIConfig",i=>{i.app.clashAPIConfigs.push(o)}),Fr(n().app)}}function aD(e){return async(t,n)=>{const r=Hp(n,e);t("removeClashAPIConfig",o=>{o.app.clashAPIConfigs.splice(r,1)}),Fr(n().app)}}function sD(e){return async(t,n)=>{const r=Hp(n,e);sS(n())!==r&&t("selectClashAPIConfig",i=>{i.app.selectedClashAPIConfigIndex=r}),Fr(n().app);try{window.location.reload()}catch{}}}const uc=document.querySelector("html");function cc(e,t){const n=document.createElement("meta");n.setAttribute("name","theme-color"),n.setAttribute("content",e),t&&n.setAttribute("media",t),document.head.appendChild(n)}function lD(e){const t=Array.from(document.querySelectorAll("meta[name=theme-color]"));let n;for(const r of t)r.getAttribute("media")?document.head.removeChild(r):n=r;if(e==="auto")if(cc("#eeeeee","(prefers-color-scheme: light)"),cc("#202020","(prefers-color-scheme: dark)"),n)document.head.removeChild(n);else return;else{const r=e==="light"?"#eeeeee":"#202020";n?n.setAttribute("content",r):cc(r)}}function uS(e="dark"){e==="auto"?uc.setAttribute("data-theme","auto"):e==="dark"?uc.setAttribute("data-theme","dark"):uc.setAttribute("data-theme","light"),lD(e)}function uD(e="auto"){return(t,n)=>{Wp(n())!==e&&(uS(e),t("storeSwitchTheme",o=>{o.app.theme=e}),Fr(n().app))}}function cD(e){return(t,n)=>{t("appSelectChartStyleIndex",r=>{r.app.selectedChartStyleIndex=Number(e)}),Fr(n().app)}}function tg(e,t){return(n,r)=>{n("appUpdateAppConfig",o=>{o.app[e]=t}),Fr(r().app)}}function fD(e,t,n){return(r,o)=>{r("updateCollapsibleIsOpen",i=>{i.app.collapsibleIsOpen[`${e}:${t}`]=n}),oD(o().app)}}var Og;const dD={baseURL:((Og=document.getElementById("app"))==null?void 0:Og.getAttribute("data-base-url"))??"http://127.0.0.1:9090",secret:"",addedAt:0},pD={selectedClashAPIConfigIndex:0,clashAPIConfigs:[dD],latencyTestUrl:"http://www.gstatic.com/generate_204",selectedChartStyleIndex:0,theme:"dark",collapsibleIsOpen:{},proxySortBy:"Natural",hideUnavailableProxies:!1,autoCloseOldConns:!1,logStreamingPaused:!1};function hD(){const{search:e}=window.location,t={};if(typeof e!="string"||e==="")return t;const n=e.replace(/^\?/,"").split("&");for(let r=0;r<n.length;r++){const[o,i]=n[r].split("=");t[o]=encodeURIComponent(i)}return t}function vD(){let e=KI();e={...pD,...e};const t=hD(),n=e.clashAPIConfigs[e.selectedClashAPIConfigIndex];if(n){const r=new URL(n.baseURL);t.hostname&&(t.hostname.indexOf("http")===0?r.href=decodeURIComponent(t.hostname):r.hostname=t.hostname),t.port&&(r.port=t.port),n.baseURL=Hw(r.href),t.secret&&(n.secret=t.secret)}return(t.theme==="dark"||t.theme==="light")&&(e.theme=t.theme),uS(e.theme),e}const mD="_root_1392e_1",gD="_mono_1392e_10",yD="_link_1392e_14",fc={root:mD,mono:gD,link:yD};function ng({name:e,link:t,version:n}){return se("div",{className:fc.root,children:[R("h2",{children:e}),se("p",{children:[R("span",{children:"Version "}),R("span",{className:fc.mono,children:n})]}),R("p",{children:se("a",{className:fc.link,href:t,target:"_blank",rel:"noopener noreferrer",children:[R(fI,{size:20}),R("span",{children:"Source"})]})})]})}function wD(e){const{data:t}=lx(["/version",e.apiConfig],()=>_I("/version",e.apiConfig));return se(wn,{children:[R(qw,{title:"About"}),t&&t.version?R(ng,{name:"Clash",version:t.version,link:"https://github.com/Dreamacro/clash"}):null,R(ng,{name:"Yacd",version:"0.3.8",link:"https://github.com/haishanh/yacd"})]})}const SD=e=>({apiConfig:Bo(e)}),_D=On(SD)(wD),bD="_loading_74j3j_1",ED="_spinner_74j3j_9",CD="_rotate_74j3j_1",rg={loading:bD,spinner:ED,rotate:CD},cS=({height:e})=>{const t=e?{height:e}:{};return R("div",{className:rg.loading,style:t,children:R("div",{className:rg.spinner})})},RD=e=>({apiConfig:Bo(e),apiConfigs:Vp(e)});function xD({apiConfig:e,apiConfigs:t}){return w.useEffect(()=>{let n="yacd";if(t.length>1)try{n=`${e.metaLabel||new URL(e.baseURL).host} - yacd`}catch{}document.title=n}),R(wn,{})}const kD=On(RD)(xD),OD=new c1,TD=new A2({queryCache:OD,defaultOptions:{queries:{suspense:!0}}});var pl="NOT_FOUND";function PD(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:pl},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function ND(e,t){var n=[];function r(s){var l=n.findIndex(function(c){return t(s,c.key)});if(l>-1){var u=n[l];return l>0&&(n.splice(l,1),n.unshift(u)),u.value}return pl}function o(s,l){r(s)===pl&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var LD=function(t,n){return t===n};function AD(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function ID(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?LD:r,i=n.maxSize,a=i===void 0?1:i,s=n.resultEqualityCheck,l=AD(o),u=a===1?PD(l):ND(a,l);function c(){var f=u.get(arguments);if(f===pl){if(f=e.apply(null,arguments),s){var p=u.getEntries(),v=p.find(function(g){return s(g.value,f)});v&&(f=v.value)}u.put(arguments,f)}return f}return c.clearCache=function(){return u.clear()},c}function DD(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function MD(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=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=0,c,f={memoizeOptions:void 0},p=s.pop();if(typeof p=="object"&&(f=p,p=s.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var v=f,g=v.memoizeOptions,y=g===void 0?n:g,S=Array.isArray(y)?y:[y],h=DD(s),d=e.apply(void 0,[function(){return u++,p.apply(null,arguments)}].concat(S)),m=e(function(){for(var x=[],C=h.length,T=0;T<C;T++)x.push(h[T].apply(null,arguments));return c=d.apply(null,x),c});return Object.assign(m,{resultFunc:p,memoizedResultFunc:d,dependencies:h,lastResult:function(){return c},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),m};return o}var $D=MD(ID);const Gf=300,fS=e=>e.logs.logs,dS=e=>e.logs.tail,UD=e=>e.logs.searchText,kU=$D(fS,dS,UD,(e,t,n)=>{const r=[];for(let o=t;o>=0;o--)r.push(e[o]);if(e.length===Gf)for(let o=Gf-1;o>t;o--)r.push(e[o]);return n===""?r:r.filter(o=>o.payload.toLowerCase().indexOf(n)>=0)});function OU(e){return t=>{t("logsUpdateSearchText",n=>{n.logs.searchText=e.toLowerCase()})}}function TU(e){return(t,n)=>{const r=n(),o=fS(r),i=dS(r),a=i>=Gf-1?0:i+1;o[a]=e,t("logsAppendLog",s=>{s.logs.tail=a})}}const FD={searchText:"",logs:[],tail:-1},iu="/connections",ws=[];function jD(e){let t;try{t=JSON.parse(e)}catch{console.log("JSON.parse error",JSON.parse(e))}ws.forEach(n=>n(t))}let dc;function zD(e,t){if(dc===1&&t)return og(t);dc=1;const n=Qw(e,iu),r=new WebSocket(n);if(r.addEventListener("error",()=>dc=3),r.addEventListener("message",o=>jD(o.data)),t)return og(t)}function og(e){return ws.push(e),function(){const n=ws.indexOf(e);ws.splice(n,1)}}async function PU(e){const{url:t,init:n}=_t(e);return await fetch(t+iu,{...n,method:"DELETE"})}async function BD(e){const{url:t,init:n}=_t(e);return await fetch(t+iu,{...n})}async function VD(e,t){const{url:n,init:r}=_t(e),o=`${n}${iu}/${t}`;return await fetch(o,{...r,method:"DELETE"})}const Kp="/proxies";async function WD(e){const{url:t,init:n}=_t(e);return await(await fetch(t+Kp,n)).json()}async function HD(e,t,n){const r={name:n},{url:o,init:i}=_t(e),a=encodeURIComponent(t),s=`${o}${Kp}/${a}`;return await fetch(s,{...i,method:"PUT",body:JSON.stringify(r)})}async function pS(e,t,n="http://www.gstatic.com/generate_204"){const{url:r,init:o}=_t(e),i=`timeout=5000&url=${encodeURIComponent(n)}`,a=`${r}${Kp}/${encodeURIComponent(t)}/delay?${i}`;return await fetch(a,o)}async function KD(e){const{url:t,init:n}=_t(e),r=await fetch(t+"/providers/proxies",n);return r.status===404?{providers:{}}:await r.json()}async function hS(e,t){const{url:n,init:r}=_t(e),o={...r,method:"PUT"};return await fetch(n+"/providers/proxies/"+encodeURIComponent(t),o)}async function QD(e,t){const{url:n,init:r}=_t(e),o={...r,method:"GET"};return await fetch(n+"/providers/proxies/"+encodeURIComponent(t)+"/healthcheck",o)}const qD={proxies:{},delay:{},groupNames:[],showModalClosePrevConns:!1},vS=()=>null,GD=["Direct","Reject","Relay","Selector","Fallback","URLTest","LoadBalance","Unknown"],mS=e=>e.proxies.proxies,so=e=>e.proxies.delay,NU=e=>e.proxies.groupNames,YD=e=>e.proxies.proxyProviders||[],XD=e=>e.proxies.dangleProxyNames,LU=e=>e.proxies.showModalClosePrevConns;function JD(e,t){const n={};for(const r of e){const i=(t(r)||{history:[]}).history,a=i[i.length-1];a&&typeof a.delay=="number"&&(n[r]={kind:"Result",number:a.delay})}return n}function Vo(e){return async(t,n)=>{const[r,o]=await Promise.all([WD(e),KD(e)]),{proxyProviders:i,providerProxyRecord:a}=aM(o.providers),s={...a,...r.proxies},[l,u]=iM(s),c={...so(n()),...JD(Object.keys(s),p=>s[p])},f=[];for(const p of u)a[p]||f.push(p);t("store/proxies#fetchProxies",p=>{p.proxies.proxies=s,p.proxies.groupNames=l,p.proxies.dangleProxyNames=f,p.proxies.delay=c,p.proxies.proxyProviders=i})}}function AU(e,t){return async n=>{try{await hS(e,t)}catch{}n(Vo(e))}}function IU(e,t){return async n=>{for(let r=0;r<t.length;r++)try{await hS(e,t[r])}catch{}n(Vo(e))}}async function Qp(e,t){try{await QD(e,t)}catch{}}function DU(e,t){return async n=>{await Qp(e,t),await n(Vo(e))}}async function ZD(e,t,n){const r=await BD(e);r.ok||console.log("unable to fetch all connections",r.statusText);const i=(await r.json()).connections,a=[];for(const s of i)s.chains.indexOf(t)>-1&&s.chains.indexOf(n)<0&&a.push(s.id);await Promise.all(a.map(s=>VD(e,s).catch(vS)))}function eM(e,t,n){const r=[n,t];let o,i=n;for(;(o=e[i])&&o.now;)r.unshift(o.now),i=o.now;return r}async function tM(e,t,n,r,o){try{if((await HD(n,r,o)).ok===!1)throw new Error("failed to switch proxy: res.statusText")}catch(a){throw console.log(a,"failed to swith proxy"),a}if(e(Vo(n)),rD(t())){const a=mS(t());yS(n,a,{groupName:r,itemName:o})}}function gS(){return e=>{e("closeModalClosePrevConns",t=>{t.proxies.showModalClosePrevConns=!1})}}function yS(e,t,n){const r=eM(t,n.groupName,n.itemName);ZD(e,n.groupName,r[0])}function nM(e){return async(t,n)=>{var a;const r=n(),o=(a=r.proxies.switchProxyCtx)==null?void 0:a.to;if(!o){t(gS());return}const i=r.proxies.proxies;yS(e,i,o),t("closePrevConnsAndTheModal",s=>{s.proxies.showModalClosePrevConns=!1,s.proxies.switchProxyCtx=void 0})}}function MU(e,t,n){return async(r,o)=>{tM(r,o,e,t,n).catch(vS),r("store/proxies#switchProxy",i=>{const a=i.proxies.proxies;a[t]&&a[t].now&&(a[t].now=n)})}}function rM(e,t){return async(n,r)=>{n("set latency state to testing in progress",i=>{i.proxies.delay={...so(r()),[t]:{kind:"Testing"}}});const o=lS(r());try{const i=await pS(e,t,o);if(i.ok){const{delay:a}=await i.json();n("set latency result",s=>{s.proxies.delay={...so(r()),[t]:{kind:"Result",number:a}}})}else n("set latency testing error",a=>{a.proxies.delay={...so(r()),[t]:{kind:"Error",message:i.statusText}}})}catch(i){n("set latency testing networkish error",a=>{a.proxies.delay={...so(r()),[t]:{kind:"Error",message:i.message||i.type}}})}}}function oM(e,t){return async(n,r)=>{const o=mS(r()),i=new Map,a=new Map,s=[];t.forEach(l=>{const u=o[l];u.__provider?u.__provider&&(i.get(l)||(i.set(l,!0),n("set latency state to testing in progress",c=>{c.proxies.delay={...so(r()),[l]:{kind:"Testing"}}})),a.get(u.__provider)||(a.set(u.__provider,!0),s.push(Qp(e,u.__provider)))):i.get(l)||(i.set(l,!0),n(rM(e,l)))}),await Promise.all(s),await n(Vo(e))}}function $U(e){return async(t,n)=>{const r=XD(n()),o=lS(n());await Promise.all(r.map(a=>pS(e,a,o)));const i=YD(n());for(const a of i)await Qp(e,a.name);await t(Vo(e))}}function iM(e){let t=[],n;const r=[];for(const o in e){const i=e[o];i.all&&Array.isArray(i.all)?(t.push(o),o==="GLOBAL"&&(n=Array.from(i.all))):GD.indexOf(i.type)<0&&r.push(o)}return n&&(n.push("GLOBAL"),t=t.map(o=>[n.indexOf(o),o]).sort((o,i)=>o[0]-i[0]).map(o=>o[1])),[t,r]}function aM(e){const t=Object.keys(e),n=[],r={};for(let o=0;o<t.length;o++){const i=e[t[o]];if(i.name==="default"||i.vehicleType==="Compatible")continue;const a=i.proxies,s=[];for(let l=0;l<a.length;l++){const u=a[l];r[u.name]={...u,__provider:i.name},s.push(u.name)}i.proxies=s,n.push(i)}return{proxyProviders:n,providerProxyRecord:r}}const sM={requestDelayForProxies:oM,closeModalClosePrevConns:gS,closePrevConnsAndTheModal:nM},UU=ZA({key:"proxyFilterText",default:""}),lM={app:vD(),modals:JI,configs:tD,proxies:qD,logs:FD},uM={selectChartStyleIndex:cD,updateAppConfig:tg,app:{updateCollapsibleIsOpen:fD,updateAppConfig:tg,removeClashAPIConfig:aD,selectClashAPIConfig:sD},proxies:sM};function wS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wS(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ir(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wS(e))&&(r&&(r+=" "),r+=t);return r}const{useState:SS,useCallback:cM}=Lt;function fM(e=!1){const[t,n]=SS(e),r=cM(()=>n(o=>!o),[]);return[t,r]}function FU(e){const[t,n]=SS(e);return{value:t,set:n}}const dM="_ul_1ore2_1",pM="_li_1ore2_10",hM="_right_1ore2_21",vM="_close_1ore2_32",mM="_eye_1ore2_39",gM="_url_1ore2_54",yM="_secret_1ore2_55",wM="_metaLabel_1ore2_56",SM="_btn_1ore2_62",rn={ul:dM,li:pM,right:hM,close:vM,eye:mM,url:gM,secret:yM,metaLabel:wM,btn:SM},_M=e=>({apiConfigs:Vp(e),selectedClashAPIConfigIndex:sS(e)}),bM=On(_M)(EM);function EM({apiConfigs:e,selectedClashAPIConfigIndex:t}){const{app:{removeClashAPIConfig:n,selectClashAPIConfig:r}}=VI(),o=w.useCallback(a=>{n(a)},[n]),i=w.useCallback(a=>{r(a)},[r]);return R(wn,{children:R("ul",{className:rn.ul,children:e.map((a,s)=>R("li",{className:ir(rn.li,{[rn.isSelected]:s===t}),children:R(CM,{disableRemove:s===t,conf:a,onRemove:o,onSelect:i})},a.baseURL+a.secret+a.metaLabel))})})}function CM({conf:e,disableRemove:t,onRemove:n,onSelect:r}){const[o,i]=fM(),a=o?iI:lI,s=w.useCallback(l=>{l.stopPropagation()},[]);return se(wn,{children:[R(ig,{disabled:t,onClick:()=>n(e),className:rn.close,children:R(gI,{size:20})}),se("div",{className:rn.right,children:[e.metaLabel?se(wn,{children:[R("span",{className:rn.metaLabel,tabIndex:0,role:"button",onClick:()=>r(e),onKeyUp:s,children:e.metaLabel}),R("span",{})]}):null,R("span",{className:rn.url,tabIndex:0,role:"button",onClick:()=>r(e),onKeyUp:s,children:e.baseURL}),R("span",{}),e.secret?se(wn,{children:[R("span",{className:rn.secret,children:o?e.secret:"***"}),R(ig,{onClick:i,className:rn.eye,children:R(a,{size:16})})]}):null]})]})}function ig({children:e,onClick:t,className:n,disabled:r}){return R("button",{disabled:r,className:ir(n,rn.btn),onClick:t,children:e})}const RM="_root_zwtea_1",xM="_header_zwtea_5",kM="_icon_zwtea_10",OM="_body_zwtea_20",TM="_hostnamePort_zwtea_24",PM="_error_zwtea_36",NM="_footer_zwtea_42",Nn={root:RM,header:xM,icon:kM,body:OM,hostnamePort:TM,error:PM,footer:NM},LM="_btn_lzu00_1",AM="_circular_lzu00_27",IM="_minimal_lzu00_30",DM="_btnStart_lzu00_48",MM="_loadingContainer_lzu00_55",mi={btn:LM,circular:AM,minimal:IM,btnStart:DM,loadingContainer:MM},$M="_sectionNameType_1b9pp_1",UM="_loadingDot_1b9pp_66",FM="_dot2_1b9pp_1",jM="_dot1_1b9pp_1",zM="_dot3_1b9pp_1",_S={sectionNameType:$M,loadingDot:UM,dot2:FM,dot1:jM,dot3:zM};function jU({name:e,type:t}){return se("h2",{className:_S.sectionNameType,children:[R("span",{children:e}),R("span",{children:t})]})}function BM(){return R("span",{className:_S.loadingDot})}const{forwardRef:VM,useCallback:WM}=Lt;function HM(e,t){const{onClick:n,disabled:r=!1,isLoading:o,kind:i="primary",className:a,children:s,label:l,text:u,start:c,...f}=e,p={children:s,label:l,text:u,start:c},v=WM(y=>{o||n&&n(y)},[o,n]),g=ir(mi.btn,{[mi.minimal]:i==="minimal",[mi.circular]:i==="circular"},a);return R("button",{className:g,ref:t,onClick:v,disabled:r,...f,children:o?se(wn,{children:[R("span",{style:{display:"inline-flex",opacity:0},children:R(ag,{...p})}),R("span",{className:mi.loadingContainer,children:R(BM,{})})]}):R(ag,{...p})})}function ag({children:e,label:t,text:n,start:r}){return se(wn,{children:[r?R("span",{className:mi.btnStart,children:typeof r=="function"?r():r}):null,e||t||n]})}const KM=VM(HM),QM="_root_1or8t_1",qM="_floatAbove_1or8t_32",sg={root:QM,floatAbove:qM},{useCallback:GM}=Lt;function pc({id:e,label:t,value:n,onChange:r,...o}){const i=GM(a=>r(a),[r]);return se("div",{className:sg.root,children:[R("input",{id:e,value:n,onChange:i,...o}),R("label",{htmlFor:e,className:sg.floatAbove,children:t})]})}const YM="_path_r8pm3_1",XM="_dash_r8pm3_1",JM={path:YM,dash:XM};function qp({width:e=320,height:t=320,animate:n=!1,c0:r="currentColor",stroke:o="#eee",eye:i="#eee",mouth:a="#eee"}){const s=ir({[JM.path]:n});return R("svg",{width:e,height:t,viewBox:"0 0 320 320",xmlns:"http://www.w3.org/2000/svg",children:se("g",{fill:"none",fillRule:"evenodd",children:[R("path",{d:"M71.689 53.055c9.23-1.487 25.684 27.263 41.411 56.663 18.572-8.017 71.708-7.717 93.775 0 4.714-15.612 31.96-57.405 41.626-56.663 3.992.088 13.07 31.705 23.309 94.96 2.743 16.949 7.537 47.492 14.38 91.63-42.339 17.834-84.37 26.751-126.095 26.751-41.724 0-83.756-8.917-126.095-26.751C52.973 116.244 65.536 54.047 71.689 53.055z",stroke:o,strokeWidth:"4",strokeLinecap:"round",fill:r,className:s}),R("circle",{fill:i,cx:"216.5",cy:"181.5",r:"14.5"}),R("circle",{fill:i,cx:"104.5",cy:"181.5",r:"14.5"}),R("g",{stroke:a,strokeLinecap:"round",strokeWidth:"4",children:R("path",{d:"M175.568 218.694c-2.494 1.582-5.534 2.207-8.563 1.508-3.029-.7-5.487-2.594-7.035-5.11M143.981 218.694c2.494 1.582 5.534 2.207 8.563 1.508 3.03-.7 5.488-2.594 7.036-5.11"})})]})})}const{useState:rs,useRef:lg,useCallback:hc,useEffect:ZM}=Lt,bS=0,e3=()=>{},t3=e=>({apiConfig:Bo(e)});function n3({dispatch:e}){const[t,n]=rs(""),[r,o]=rs(""),[i,a]=rs(""),[s,l]=rs(""),u=lg(!1),c=lg(null),f=hc(y=>{u.current=!0,l("");const S=y.target,{name:h}=S,d=S.value;switch(h){case"baseURL":n(d);break;case"secret":o(d);break;case"metaLabel":a(d);break;default:throw new Error(`unknown input name ${h}`)}},[]),p=hc(()=>{r3({baseURL:t,secret:r}).then(y=>{y[0]!==bS?l(y[1]):e(iD({baseURL:t,secret:r,metaLabel:i}))})},[t,r,i,e]),v=hc(y=>{y.target instanceof Element&&(!y.target.tagName||y.target.tagName.toUpperCase()!=="INPUT")||y.key==="Enter"&&p()},[p]),g=async()=>{(await fetch("/")).json().then(S=>{S.hello==="clash"&&n(window.location.origin)},e3)};return ZM(()=>{g()},[]),se("div",{className:Nn.root,ref:c,onKeyDown:v,children:[R("div",{className:Nn.header,children:R("div",{className:Nn.icon,children:R(qp,{width:160,height:160,stroke:"var(--stroke)"})})}),se("div",{className:Nn.body,children:[se("div",{className:Nn.hostnamePort,children:[R(pc,{id:"baseURL",name:"baseURL",label:"API Base URL",type:"text",placeholder:"http://127.0.0.1:9090",value:t,onChange:f}),R(pc,{id:"secret",name:"secret",label:"Secret(optional)",value:r,type:"text",onChange:f})]}),s?R("div",{className:Nn.error,children:s}):null,R("div",{className:Nn.label,children:R(pc,{id:"metaLabel",name:"metaLabel",label:"Label(optional)",type:"text",placeholder:"",value:i,onChange:f})})]}),R("div",{className:Nn.footer,children:R(KM,{label:"Add",onClick:p})}),R("div",{style:{height:20}}),R(bM,{})]})}const ES=On(t3)(n3);async function r3(e){try{new URL(e.baseURL)}catch{if(e.baseURL){const n=e.baseURL.substring(0,7);if(n!=="http://"&&n!=="https:/")return[1,"Must starts with http:// or https://"]}return[1,"Invalid URL"]}try{const t=await rS(e);return t.status>399?[1,t.statusText]:[bS]}catch{return[1,"Failed to connect"]}}/**
|
|
* @reach/utils v0.18.0
|
|
*
|
|
* Copyright (c) 2018-2022, React Training LLC
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/function CS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Le(e,t){return n=>{if(e&&e(n),!n.defaultPrevented)return t(n)}}function ug(e){return typeof e=="boolean"}function hl(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function o3(e){return typeof e=="string"}function i3(e,t){if(e!=null)if(hl(e))e(t);else try{e.current=t}catch{throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}function jr(...e){return w.useCallback(t=>{for(let n of e)i3(n,t)},e)}function ar(e){return CS()?e?e.ownerDocument:document:null}function a3(e,t){let n=w.createContext(t);function r(i){let{children:a,...s}=i,l=w.useMemo(()=>s,Object.values(s));return w.createElement(n.Provider,{value:l},a)}function o(i){let a=w.useContext(n);if(a)return a;if(t)return t;throw Error(`${i} must be rendered inside of a ${e} component.`)}return n.displayName=`${e}Context`,r.displayName=`${e}Provider`,[r,o]}function s3(e){let t=ar(e),n=t.defaultView||window;return t?{width:t.documentElement.clientWidth??n.innerWidth,height:t.documentElement.clientHeight??n.innerHeight}:{width:0,height:0}}function Ss(e){return"which"in e?e.which===3:"button"in e?e.button===2:!1}function Ao(...e){return e.filter(t=>t!=null).join("--")}function Gp(){}function RS(){let[,e]=w.useState(Object.create(null));return w.useCallback(()=>{e(Object.create(null))},[])}var mo=CS()?w.useLayoutEffect:w.useEffect;function vc(e){const t=w.useRef(null);return w.useEffect(()=>{t.current=e},[e]),t.current}function l3(e,t){let[n,r]=w.useState(t),o=w.useCallback(i=>{e.current=i,r(i)},[]);return[n,o]}var u3=({children:e,type:t="reach-portal",containerRef:n})=>{let r=w.useRef(null),o=w.useRef(null),i=RS();return w.useEffect(()=>{n!=null&&(typeof n!="object"||!("current"in n)?console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."):n.current==null&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))},[n]),mo(()=>{if(!r.current)return;let a=r.current.ownerDocument,s=(n==null?void 0:n.current)||a.body;return o.current=a==null?void 0:a.createElement(t),s.appendChild(o.current),i(),()=>{o.current&&s&&s.removeChild(o.current)}},[t,i,n]),o.current?go.createPortal(e,o.current):w.createElement("span",{ref:r})},Yp=({unstable_skipInitialRender:e,...t})=>{let[n,r]=w.useState(!1);return w.useEffect(()=>{e&&r(!0)},[e]),e&&!n?null:w.createElement(u3,{...t})};Yp.displayName="Portal";var c3=["bottom","height","left","right","top","width"],f3=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),c3.some(function(r){return t[r]!==n[r]})},Ln=new Map,xS,d3=function e(){var t=[];Ln.forEach(function(n,r){var o=r.getBoundingClientRect();f3(o,n.rect)&&(n.rect=o,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),xS=window.requestAnimationFrame(e)};function p3(e,t){return{observe:function(){var r=Ln.size===0;Ln.has(e)?Ln.get(e).callbacks.push(t):Ln.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&d3()},unobserve:function(){var r=Ln.get(e);if(r){var o=r.callbacks.indexOf(t);o>=0&&r.callbacks.splice(o,1),r.callbacks.length||Ln.delete(e),Ln.size||cancelAnimationFrame(xS)}}}}function vl(e,t,n){let r,o;ug(t)?r=t:(r=(t==null?void 0:t.observe)??!0,o=t==null?void 0:t.onChange),hl(n)&&(o=n),w.useEffect(()=>{ug(t)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")},[t]),w.useEffect(()=>{hl(n)&&console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")},[n]);let[i,a]=w.useState(e.current),s=w.useRef(!1),l=w.useRef(!1),[u,c]=w.useState(null),f=w.useRef(o);return mo(()=>{f.current=o,e.current!==i&&a(e.current)}),mo(()=>{i&&!s.current&&(s.current=!0,c(i.getBoundingClientRect()))},[i]),mo(()=>{if(!r)return;let p=i;if(l.current||(l.current=!0,p=e.current),!p){console.warn("You need to place the ref");return}let v=p3(p,g=>{var y;(y=f.current)==null||y.call(f,g),c(g)});return v.observe(),()=>{v.unobserve()}},[r,i,e]),u}/*!
|
|
* tabbable 5.3.3
|
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
*/var h3=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Yf=h3.join(","),kS=typeof Element>"u",ra=kS?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Xf=!kS&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},v3=function(t,n,r){var o=Array.prototype.slice.apply(t.querySelectorAll(Yf));return n&&ra.call(t,Yf)&&o.unshift(t),o=o.filter(r),o},m3=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,u=e(l,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:a,candidates:u})}else{var c=ra.call(a,Yf);c&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),p=!r.shadowRootFilter||r.shadowRootFilter(a);if(f&&p){var v=e(f===!0?a.children:f.children,!0,r);r.flatten?o.push.apply(o,v):o.push({scope:a,candidates:v})}else i.unshift.apply(i,a.children)}}return o},OS=function(t,n){return t.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},g3=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},TS=function(t){return t.tagName==="INPUT"},y3=function(t){return TS(t)&&t.type==="hidden"},w3=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},S3=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},_3=function(t){if(!t.name)return!0;var n=t.form||Xf(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var i=S3(o,t.form);return!i||i===t},b3=function(t){return TS(t)&&t.type==="radio"},E3=function(t){return b3(t)&&!_3(t)},cg=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},C3=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=ra.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(ra.call(a,"details:not([open]) *"))return!0;var s=Xf(t).host,l=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!r||r==="full"){if(typeof o=="function"){for(var u=t;t;){var c=t.parentElement,f=Xf(t);if(c&&!c.shadowRoot&&o(c)===!0)return cg(t);t.assignedSlot?t=t.assignedSlot:!c&&f!==t.ownerDocument?t=f.host:t=c}t=u}if(l)return!t.getClientRects().length}else if(r==="non-zero-area")return cg(t);return!1},R3=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return ra.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},x3=function(t,n){return!(n.disabled||y3(n)||C3(n,t)||w3(n)||R3(n))},fg=function(t,n){return!(E3(n)||OS(n)<0||!x3(t,n))},k3=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},O3=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scope,s=a?o.scope:o,l=OS(s,a),u=a?e(o.candidates):s;l===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:l,item:o,isScope:a,content:u})}),r.sort(g3).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},hn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=m3([t],n.includeContainer,{filter:fg.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:k3}):r=v3(t,n.includeContainer,fg.bind(null,n)),O3(r)},Xp=w.forwardRef(function({unstable_skipInitialPortalRender:t,...n},r){return w.createElement(Yp,{unstable_skipInitialRender:t},w.createElement(PS,{ref:r,...n}))});Xp.displayName="Popover";var PS=w.forwardRef(function({as:t="div",targetRef:n,position:r=N3,unstable_observableRefs:o=[],...i},a){const s=w.useRef(null),l=vl(s,{observe:!i.hidden}),u=vl(n,{observe:!0}),c=jr(s,a);return A3(n,s),w.createElement(t,{"data-reach-popover":"",ref:c,...i,style:{position:"absolute",...T3(r,u,l,...o),...i.style}})});PS.displayName="PopoverImpl";function T3(e,t,n,...r){return n?e(t,n,...r.map(o=>o.current)):{visibility:"hidden"}}function P3(e,t,n){return{top:n?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}}var N3=(e,t)=>{if(!e||!t)return{};const{directionRight:n,directionUp:r}=L3(e,t);return{left:n?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,...P3(e,t,r)}};function L3(e,t,n=0,r=0){const o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0},i=o.right&&!o.left,a=o.left&&!o.right,s=o.bottom&&!o.top,l=o.top&&!o.bottom;return{directionRight:i,directionLeft:a,directionUp:s,directionDown:l}}function A3(e,t){const n=ar(e.current);function r(d){d.key==="Tab"&&t.current&&hn(t.current).length===0||(d.key==="Tab"&&d.shiftKey?u(d)?c(d):f(d)?p(d):g(d)&&S():d.key==="Tab"&&(i()?a(d):s()?l(d):v(d)&&S()))}w.useEffect(()=>(n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}),[]);function o(){const d=hn(n),m=d&&e.current?d.indexOf(e.current):-1,_=d&&d[m+1];return t.current&&t.current.contains(_||null)?!1:_}function i(){return e.current?e.current===n.activeElement:!1}function a(d){const m=t.current&&hn(t.current);m&&m[0]&&(d.preventDefault(),m[0].focus())}function s(){if(t.current?t.current.contains(n.activeElement||null):!1){const m=t.current&&hn(t.current);return Boolean(m&&m[m.length-1]===n.activeElement)}return!1}function l(d){const m=o();m&&(d.preventDefault(),m.focus())}function u(d){if(!d.shiftKey)return;const m=o();return d.target===m}function c(d){const m=t.current&&hn(t.current),_=m&&m[m.length-1];_&&(d.preventDefault(),_.focus())}function f(d){const m=t.current&&hn(t.current);return m?m.length===0?!1:d.target===m[0]:!1}function p(d){var m;d.preventDefault(),(m=e.current)==null||m.focus()}function v(d){const m=t.current?hn(n).filter(_=>!t.current.contains(_)):null;return m?d.target===m[m.length-1]:!1}function g(d){return d.target===hn(n)[0]}let y=[];function S(){const d=t.current&&hn(t.current);d&&(d.forEach(m=>{y.push([m,m.tabIndex]),m.tabIndex=-1}),n.addEventListener("focusin",h))}function h(){n.removeEventListener("focusin",h),y.forEach(([d,m])=>{d.tabIndex=m})}}var mc=!1,I3=0;function dg(){return++I3}var pg=Lt["useId".toString()];function NS(e){if(pg!==void 0){let o=pg();return e??o}let t=e??(mc?dg():null),[n,r]=w.useState(t);return mo(()=>{n===null&&r(dg())},[]),w.useEffect(()=>{mc===!1&&(mc=!0)},[]),e??n??void 0}function D3(e,t={}){const n=[];let r=w.createContext({descendants:n,registerDescendant:()=>Gp,...t});return r.displayName=e,r}function M3(e,t,n){let r=RS(),{registerDescendant:o,descendants:i}=w.useContext(t),a=n??i.findIndex(s=>s.element===e.element);return mo(()=>(e.element||r(),o({...e,index:a})),[e,r,a,o,...Object.values(e)]),a}function $3(){return w.useState([])}function U3(e){return w.useContext(e).descendants}function F3({context:e,children:t,items:n,set:r}){let o=w.useCallback(({element:i,index:a,...s})=>i?(r(l=>{if(a!=null&&a!==-1)return hg(l,{element:i,index:a,...s},a);if(l.length===0)return[{...s,element:i,index:0}];if(l.find(f=>f.element===i))return console.warn(`[reach-ui]: \`useDescendant\` was called with an element that was already registered.
|
|
|
|
If you are using the \`@reach/descendants\` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.
|
|
|
|
If you are using another \`reach-ui\` package, this is probably our bug!
|
|
|
|
To report a bug, open a new issue:
|
|
|
|
https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md
|
|
|
|
IMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed.`),B3(l);let u=z3(l,i),c;return u===-1?c=[...l,{...s,element:i,index:l.length}]:c=hg(l,{...s,element:i,index:u},u),c}),()=>{i&&r(l=>l.filter(u=>i!==u.element))}):Gp,[]);return w.createElement(e.Provider,{value:w.useMemo(()=>({descendants:n,registerDescendant:o}),[n,o])},t)}function j3(e,t){let{descendants:n}=w.useContext(e),{callback:r,currentIndex:o,filter:i,key:a="index",orientation:s="vertical",rotate:l=!0,rtl:u=!1}=t;return function(f){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(f.key))return;let p=o??-1,v=i?n.filter(i):n;if(!v.length)return;let g=v.findIndex(m=>m.index===o);function y(){return p===d().index?l?h():v[g]:v[(g+1)%v.length]}function S(){return p===h().index?l?d():v[g]:v[(g-1+v.length)%v.length]}function h(){return v[0]}function d(){return v[v.length-1]}switch(f.key){case"ArrowDown":if(s==="vertical"||s==="both"){f.preventDefault();let T=y();r(a==="option"?T:T[a])}break;case"ArrowUp":if(s==="vertical"||s==="both"){f.preventDefault();let T=S();r(a==="option"?T:T[a])}break;case"ArrowLeft":if(s==="horizontal"||s==="both"){f.preventDefault();let T=(u?y:S)();r(a==="option"?T:T[a])}break;case"ArrowRight":if(s==="horizontal"||s==="both"){f.preventDefault();let T=(u?S:y)();r(a==="option"?T:T[a])}break;case"PageUp":f.preventDefault();let m=(f.ctrlKey?S:h)();r(a==="option"?m:m[a]);break;case"Home":f.preventDefault();let _=h();r(a==="option"?_:_[a]);break;case"PageDown":f.preventDefault();let x=(f.ctrlKey?y:d)();r(a==="option"?x:x[a]);break;case"End":f.preventDefault();let C=d();r(a==="option"?C:C[a]);break}}}function LS(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function z3(e,t){if(!t||!e.length)return-1;let n=e.length;for(;n--;){let r=e[n].element;if(r&&LS(r,t))return n+1}return-1}function hg(e,t,n){return n==null||!(n in e)?[...e,t]:[...e.slice(0,n),t,...e.slice(n)]}function B3(e){return e.sort((t,n)=>!t.element||!n.element?0:LS(t.element,n.element)?-1:1).map((t,n)=>({...t,index:n}))}var AS="CLEAR_SELECTION_INDEX",Jp="CLICK_MENU_ITEM",oa="CLOSE_MENU",V3="OPEN_MENU_AT_FIRST_ITEM",Jf="OPEN_MENU_AT_INDEX",IS="OPEN_MENU_CLEARED",Zf="SEARCH_FOR_ITEM",Wn="SELECT_ITEM_AT_INDEX",ed="SET_BUTTON_ID",au=D3("DropdownDescendantContext"),[W3,xa]=a3("Dropdown"),H3={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},DS=({id:e,children:t})=>{let n=w.useRef(null),r=w.useRef(null),o=w.useRef(null),[i,a]=$3(),s=NS(e),l=e||Ao("menu",s),u=Ao("menu-button",l),[c,f]=w.useReducer(J3,{...H3,triggerId:u}),p=w.useRef(!1),v=w.useRef([]),g=w.useRef(!1),y=w.useRef({x:0,y:0});return w.useEffect(()=>{c.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{ml(r.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[c.isExpanded]),w.createElement(F3,{context:au,items:i,set:a},w.createElement(W3,{dispatch:f,dropdownId:l,dropdownRef:r,mouseDownStartPosRef:y,popoverRef:o,readyToSelect:g,selectCallbacks:v,state:c,triggerClickedRef:p,triggerRef:n},hl(t)?t({isExpanded:c.isExpanded,isOpen:c.isExpanded}):t))};DS.displayName="DropdownProvider";function MS({onKeyDown:e,onMouseDown:t,id:n,ref:r,...o}){let{dispatch:i,dropdownId:a,mouseDownStartPosRef:s,triggerClickedRef:l,triggerRef:u,state:{triggerId:c,isExpanded:f}}=xa("useDropdownTrigger"),p=jr(u,r),v=zS(),g=w.useMemo(()=>v.findIndex(h=>!h.disabled),[v]);w.useEffect(()=>{n!=null&&n!==c&&i({type:ed,payload:n})},[c,i,n]),w.useEffect(()=>{n==null&&i({type:ed,payload:Ao("menu-button",a)})},[a,i,n]);function y(h){switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),i({type:Jf,payload:{index:g}});break;case"Enter":case" ":i({type:Jf,payload:{index:g}});break}}function S(h){Ss(h.nativeEvent)||(s.current={x:h.clientX,y:h.clientY},f||(l.current=!0),i(f?{type:oa}:{type:IS}))}return{data:{isExpanded:f,controls:a},props:{...o,ref:p,id:c||void 0,onKeyDown:Le(e,y),onMouseDown:Le(t,S),type:"button"}}}var K3=w.forwardRef(({as:e="button",...t},n)=>{let{props:r}=MS({...t,ref:n});return w.createElement(e,{"data-reach-dropdown-trigger":"",...r})});K3.displayName="DropdownTrigger";function $S({index:e,isLink:t=!1,onClick:n,onDragStart:r,onMouseDown:o,onMouseEnter:i,onMouseLeave:a,onMouseMove:s,onMouseUp:l,onSelect:u,disabled:c,onFocus:f,valueText:p,ref:v,...g}){let{dispatch:y,dropdownRef:S,mouseDownStartPosRef:h,readyToSelect:d,selectCallbacks:m,triggerRef:_,state:{selectionIndex:x,isExpanded:C}}=xa("useDropdownItem"),T=w.useRef(null),[N,W]=w.useState(p||""),M=w.useCallback(z=>{!p&&(z!=null&&z.textContent)&&W(z.textContent)},[p]),ee=w.useRef(!1),[pe,ue]=l3(T,null),K=w.useMemo(()=>({element:pe,key:N,disabled:c,isLink:t}),[c,pe,t,N]),j=M3(K,au,e),X=j===x&&!c,O=jr(v,ue,M);m.current[j]=u;function P(){ml(_.current),u&&u(),y({type:Jp})}function H(z){Ss(z.nativeEvent)||t&&(c?z.preventDefault():P())}function $(z){t&&z.preventDefault()}function U(z){Ss(z.nativeEvent)||(t?ee.current=!0:z.preventDefault())}function E(z){let Z=ar(S.current);!X&&j!=null&&!c&&(S!=null&&S.current&&S.current!==Z.activeElement&&T.current!==Z.activeElement&&S.current.focus(),y({type:Wn,payload:{index:j}}))}function L(z){y({type:AS})}function A(z){if(!d.current){let Z=8,Y=Math.abs(z.clientX-h.current.x),he=Math.abs(z.clientY-h.current.y);(Y>Z||he>Z)&&(d.current=!0)}!X&&j!=null&&!c&&y({type:Wn,payload:{index:j,dropdownRef:S}})}function J(){d.current=!0,!X&&j!=null&&!c&&y({type:Wn,payload:{index:j}})}function F(z){if(!Ss(z.nativeEvent)){if(!d.current){d.current=!0;return}t?ee.current?ee.current=!1:T.current&&T.current.click():c||P()}}return w.useEffect(()=>{if(C){let z=window.setTimeout(()=>{d.current=!0},400);return()=>{window.clearTimeout(z)}}else d.current=!1},[C,d]),w.useEffect(()=>{let z=ar(T.current);return z.addEventListener("mouseup",Z),()=>{z.removeEventListener("mouseup",Z)};function Z(){ee.current=!1}},[]),{data:{disabled:c},props:{id:jS(j),tabIndex:-1,...g,ref:O,"data-disabled":c?"":void 0,"data-selected":X?"":void 0,"data-valuetext":N,onClick:Le(n,H),onDragStart:Le(r,$),onMouseDown:Le(o,U),onMouseEnter:Le(i,E),onMouseLeave:Le(a,L),onMouseMove:Le(s,A),onFocus:Le(f,J),onMouseUp:Le(l,F)}}}var Q3=w.forwardRef(({as:e="div",...t},n)=>{let{props:r}=$S({...t,ref:n});return w.createElement(e,{"data-reach-dropdown-item":"",...r})});Q3.displayName="DropdownItem";function US({id:e,onKeyDown:t,ref:n,...r}){let{dispatch:o,triggerRef:i,dropdownRef:a,selectCallbacks:s,dropdownId:l,state:{isExpanded:u,triggerId:c,selectionIndex:f,typeaheadQuery:p}}=xa("useDropdownItems"),v=zS(),g=jr(a,n);w.useEffect(()=>{let m=Y3(v,p);p&&m!=null&&o({type:Wn,payload:{index:m,dropdownRef:a}});let _=window.setTimeout(()=>p&&o({type:Zf,payload:""}),1e3);return()=>window.clearTimeout(_)},[o,v,p,a]);let y=vc(v.length),S=vc(v[f]),h=vc(f);w.useEffect(()=>{f>v.length-1?o({type:Wn,payload:{index:v.length-1,dropdownRef:a}}):y!==v.length&&f>-1&&S&&h===f&&v[f]!==S&&o({type:Wn,payload:{index:v.findIndex(m=>m.key===(S==null?void 0:S.key)),dropdownRef:a}})},[a,o,v,y,S,h,f]);let d=Le(function(_){let{key:x}=_;if(u)switch(x){case"Enter":case" ":let C=v.find(T=>T.index===f);C&&!C.disabled&&(_.preventDefault(),C.isLink&&C.element?C.element.click():(ml(i.current),s.current[C.index]&&s.current[C.index](),o({type:Jp})));break;case"Escape":ml(i.current),o({type:oa});break;case"Tab":_.preventDefault();break;default:if(o3(x)&&x.length===1){let T=p+x.toLowerCase();o({type:Zf,payload:T})}break}},j3(au,{currentIndex:f,orientation:"vertical",rotate:!1,filter:m=>!m.disabled,callback:m=>{o({type:Wn,payload:{index:m,dropdownRef:a}})},key:"index"}));return{data:{activeDescendant:jS(f)||void 0,triggerId:c},props:{tabIndex:-1,...r,ref:g,id:l,onKeyDown:Le(t,d)}}}var q3=w.forwardRef(({as:e="div",...t},n)=>{let{props:r}=US({...t,ref:n});return w.createElement(e,{"data-reach-dropdown-items":"",...r})});q3.displayName="DropdownItems";function FS({onBlur:e,portal:t=!0,position:n,ref:r,...o}){let{triggerRef:i,triggerClickedRef:a,dispatch:s,dropdownRef:l,popoverRef:u,state:{isExpanded:c}}=xa("useDropdownPopover"),f=jr(u,r);return w.useEffect(()=>{if(!c)return;let p=ar(u.current);function v(g){a.current?a.current=!1:X3(u.current,g.target)||s({type:oa})}return p.addEventListener("mousedown",v),()=>{p.removeEventListener("mousedown",v)}},[a,i,s,l,u,c]),{data:{portal:t,position:n,targetRef:i,isExpanded:c},props:{ref:f,hidden:!c,onBlur:Le(e,p=>{p.currentTarget.contains(p.relatedTarget)||s({type:oa})}),...o}}}var G3=w.forwardRef(({as:e="div",...t},n)=>{let{data:{portal:r,targetRef:o,position:i},props:a}=FS({...t,ref:n}),s={"data-reach-dropdown-popover":""};return r?w.createElement(Xp,{...a,...s,as:e,targetRef:o,position:i,unstable_skipInitialPortalRender:!0}):w.createElement(e,{...a,...s})});G3.displayName="DropdownPopover";function Y3(e,t=""){if(!t)return null;let n=e.find(r=>{var o,i,a;return r.disabled?!1:(a=(i=(o=r.element)==null?void 0:o.dataset)==null?void 0:i.valuetext)==null?void 0:a.toLowerCase().startsWith(t)});return n?e.indexOf(n):null}function jS(e){let{dropdownId:t}=xa("useItemId");return e!=null&&e>-1?Ao(`option-${e}`,t):void 0}function ml(e){e&&e.focus()}function X3(e,t){return!!(e&&e.contains(t))}function J3(e,t={}){switch(t.type){case Jp:return{...e,isExpanded:!1,selectionIndex:-1};case oa:return{...e,isExpanded:!1,selectionIndex:-1};case V3:return{...e,isExpanded:!0,selectionIndex:0};case Jf:return{...e,isExpanded:!0,selectionIndex:t.payload.index};case IS:return{...e,isExpanded:!0,selectionIndex:-1};case Wn:{let{dropdownRef:n={current:null}}=t.payload;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(n.current){let r=ar(n.current);n.current!==(r==null?void 0:r.activeElement)&&n.current.focus()}return{...e,selectionIndex:t.payload.max!=null?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)}}return e}case AS:return{...e,selectionIndex:-1};case ed:return{...e,triggerId:t.payload};case Zf:return typeof t.payload<"u"?{...e,typeaheadQuery:t.payload}:e;default:return e}}function zS(){return U3(au)}var td={},Z3={get exports(){return td},set exports(e){td=e}},me={};/** @license React v16.13.1
|
|
* react-is.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var ze=typeof Symbol=="function"&&Symbol.for,Zp=ze?Symbol.for("react.element"):60103,eh=ze?Symbol.for("react.portal"):60106,su=ze?Symbol.for("react.fragment"):60107,lu=ze?Symbol.for("react.strict_mode"):60108,uu=ze?Symbol.for("react.profiler"):60114,cu=ze?Symbol.for("react.provider"):60109,fu=ze?Symbol.for("react.context"):60110,th=ze?Symbol.for("react.async_mode"):60111,du=ze?Symbol.for("react.concurrent_mode"):60111,pu=ze?Symbol.for("react.forward_ref"):60112,hu=ze?Symbol.for("react.suspense"):60113,e4=ze?Symbol.for("react.suspense_list"):60120,vu=ze?Symbol.for("react.memo"):60115,mu=ze?Symbol.for("react.lazy"):60116,t4=ze?Symbol.for("react.block"):60121,n4=ze?Symbol.for("react.fundamental"):60117,r4=ze?Symbol.for("react.responder"):60118,o4=ze?Symbol.for("react.scope"):60119;function bt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zp:switch(e=e.type,e){case th:case du:case su:case uu:case lu:case hu:return e;default:switch(e=e&&e.$$typeof,e){case fu:case pu:case mu:case vu:case cu:return e;default:return t}}case eh:return t}}}function BS(e){return bt(e)===du}me.AsyncMode=th;me.ConcurrentMode=du;me.ContextConsumer=fu;me.ContextProvider=cu;me.Element=Zp;me.ForwardRef=pu;me.Fragment=su;me.Lazy=mu;me.Memo=vu;me.Portal=eh;me.Profiler=uu;me.StrictMode=lu;me.Suspense=hu;me.isAsyncMode=function(e){return BS(e)||bt(e)===th};me.isConcurrentMode=BS;me.isContextConsumer=function(e){return bt(e)===fu};me.isContextProvider=function(e){return bt(e)===cu};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zp};me.isForwardRef=function(e){return bt(e)===pu};me.isFragment=function(e){return bt(e)===su};me.isLazy=function(e){return bt(e)===mu};me.isMemo=function(e){return bt(e)===vu};me.isPortal=function(e){return bt(e)===eh};me.isProfiler=function(e){return bt(e)===uu};me.isStrictMode=function(e){return bt(e)===lu};me.isSuspense=function(e){return bt(e)===hu};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===su||e===du||e===uu||e===lu||e===hu||e===e4||typeof e=="object"&&e!==null&&(e.$$typeof===mu||e.$$typeof===vu||e.$$typeof===cu||e.$$typeof===fu||e.$$typeof===pu||e.$$typeof===n4||e.$$typeof===r4||e.$$typeof===o4||e.$$typeof===t4)};me.typeOf=bt;(function(e){e.exports=me})(Z3);var VS=w.forwardRef(({as:e=w.Fragment,id:t,children:n,...r},o)=>{let a=w.useMemo(()=>{try{return td.isFragment(w.createElement(e,null))}catch{return!1}},[e])?{}:{ref:o,id:t,"data-reach-menu":"",...r};return w.createElement(e,{...a},w.createElement(DS,{id:t,children:n}))});VS.displayName="Menu";var WS=w.forwardRef(({as:e="button",...t},n)=>{let{data:{isExpanded:r,controls:o},props:i}=MS({...t,ref:n});return w.createElement(e,{"aria-expanded":r?!0:void 0,"aria-haspopup":!0,"aria-controls":o,...i,"data-reach-menu-button":""})});WS.displayName="MenuButton";var nh=w.forwardRef(({as:e="div",...t},n)=>{let{data:{disabled:r},props:o}=$S({...t,ref:n});return w.createElement(e,{role:"menuitem",...o,"aria-disabled":r||void 0,"data-reach-menu-item":""})});nh.displayName="MenuItemImpl";var HS=w.forwardRef(({as:e="div",...t},n)=>w.createElement(nh,{...t,ref:n,as:e}));HS.displayName="MenuItem";var KS=w.forwardRef(({as:e="div",...t},n)=>{let{data:{activeDescendant:r,triggerId:o},props:i}=US({...t,ref:n});return w.createElement(e,{"aria-activedescendant":r,"aria-labelledby":o||void 0,role:"menu",...i,"data-reach-menu-items":""})});KS.displayName="MenuItems";var i4=w.forwardRef(({as:e="a",component:t,onSelect:n,...r},o)=>(w.useEffect(()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[t]),w.createElement(nh,{...r,ref:o,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:n||Gp})));i4.displayName="MenuLink";var QS=w.forwardRef(({portal:e=!0,...t},n)=>w.createElement(qS,{portal:e},w.createElement(KS,{...t,ref:n,"data-reach-menu-list":""})));QS.displayName="MenuList";var qS=w.forwardRef(({as:e="div",...t},n)=>{let{data:{portal:r,targetRef:o,position:i},props:a}=FS({...t,ref:n}),s={"data-reach-menu-popover":""};return r?w.createElement(Xp,{...a,...s,as:e,targetRef:o,position:i,unstable_skipInitialPortalRender:!0}):w.createElement(e,{...a,...s})});qS.displayName="MenuPopover";var GS=w.forwardRef(function({as:t="span",style:n={},...r},o){return w.createElement(t,{ref:o,style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal",...n},...r})});GS.displayName="VisuallyHidden";var a4=100,s4=500,nd={initial:"IDLE",states:{IDLE:{enter:gc,on:{MOUSE_ENTER:"FOCUSED",FOCUS:"VISIBLE"}},FOCUSED:{enter:c4,leave:f4,on:{MOUSE_MOVE:"FOCUSED",MOUSE_LEAVE:"IDLE",MOUSE_DOWN:"DISMISSED",BLUR:"IDLE",REST:"VISIBLE"}},VISIBLE:{on:{FOCUS:"FOCUSED",MOUSE_ENTER:"FOCUSED",MOUSE_LEAVE:"LEAVING_VISIBLE",BLUR:"LEAVING_VISIBLE",MOUSE_DOWN:"DISMISSED",SELECT_WITH_KEYBOARD:"DISMISSED",GLOBAL_MOUSE_MOVE:"LEAVING_VISIBLE"}},LEAVING_VISIBLE:{enter:d4,leave:()=>{p4(),gc()},on:{MOUSE_ENTER:"VISIBLE",FOCUS:"VISIBLE",TIME_COMPLETE:"IDLE"}},DISMISSED:{leave:()=>{gc()},on:{MOUSE_LEAVE:"IDLE",BLUR:"IDLE"}}}},Pt={value:nd.initial,context:{id:null}},_s=[];function l4(e){return _s.push(e),()=>{_s.splice(_s.indexOf(e),1)}}function u4(){_s.forEach(e=>e(Pt))}var rd;function c4(){window.clearTimeout(rd),rd=window.setTimeout(()=>{Vt({type:"REST"})},a4)}function f4(){window.clearTimeout(rd)}var od;function d4(){window.clearTimeout(od),od=window.setTimeout(()=>Vt({type:"TIME_COMPLETE"}),s4)}function p4(){window.clearTimeout(od)}function gc(){Pt.context.id=null}function h4({id:e,onPointerEnter:t,onPointerMove:n,onPointerLeave:r,onPointerDown:o,onMouseEnter:i,onMouseMove:a,onMouseLeave:s,onMouseDown:l,onFocus:u,onBlur:c,onKeyDown:f,disabled:p,ref:v,DEBUG_STYLE:g}={}){let y=String(NS(e)),[S,h]=w.useState(g?!0:vg(y,!0)),d=w.useRef(null),m=jr(v,d),_=vl(d,{observe:S});w.useEffect(()=>l4(()=>{h(vg(y))}),[y]),w.useEffect(()=>{let X=ar(d.current);function O(P){(P.key==="Escape"||P.key==="Esc")&&Pt.value==="VISIBLE"&&Vt({type:"SELECT_WITH_KEYBOARD"})}return X.addEventListener("keydown",O),()=>X.removeEventListener("keydown",O)},[]),y4({disabled:p,isVisible:S,ref:d});function x(X,O){return typeof window<"u"&&"PointerEvent"in window?X:Le(X,O)}function C(X){return function(P){P.pointerType==="mouse"&&X(P)}}function T(){Vt({type:"MOUSE_ENTER",id:y})}function N(){Vt({type:"MOUSE_MOVE",id:y})}function W(){Vt({type:"MOUSE_LEAVE"})}function M(){Pt.context.id===y&&Vt({type:"MOUSE_DOWN"})}function ee(){window.__REACH_DISABLE_TOOLTIPS||Vt({type:"FOCUS",id:y})}function pe(){Pt.context.id===y&&Vt({type:"BLUR"})}function ue(X){(X.key==="Enter"||X.key===" ")&&Vt({type:"SELECT_WITH_KEYBOARD"})}return[{"aria-describedby":S?Ao("tooltip",y):void 0,"data-state":S?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:m,onPointerEnter:Le(t,C(T)),onPointerMove:Le(n,C(N)),onPointerLeave:Le(r,C(W)),onPointerDown:Le(o,C(M)),onMouseEnter:x(i,T),onMouseMove:x(a,N),onMouseLeave:x(s,W),onMouseDown:x(l,M),onFocus:Le(u,ee),onBlur:Le(c,pe),onKeyDown:Le(f,ue)},{id:y,triggerRect:_,isVisible:S},S]}var rh=w.forwardRef(function({children:e,label:t,ariaLabel:n,id:r,DEBUG_STYLE:o,...i},a){let s=w.Children.only(e);w.useEffect(()=>{n&&console.warn("The `ariaLabel prop is deprecated and will be removed from @reach/tooltip in a future version of Reach UI. Please use `aria-label` instead.")},[n]);let[l,u]=h4({id:r,onPointerEnter:s.props.onPointerEnter,onPointerMove:s.props.onPointerMove,onPointerLeave:s.props.onPointerLeave,onPointerDown:s.props.onPointerDown,onMouseEnter:s.props.onMouseEnter,onMouseMove:s.props.onMouseMove,onMouseLeave:s.props.onMouseLeave,onMouseDown:s.props.onMouseDown,onFocus:s.props.onFocus,onBlur:s.props.onBlur,onKeyDown:s.props.onKeyDown,disabled:s.props.disabled,ref:s.ref,DEBUG_STYLE:o});return w.createElement(w.Fragment,null,w.cloneElement(s,l),w.createElement(YS,{ref:a,label:t,"aria-label":n,...u,...i}))});rh.displayName="Tooltip";var YS=w.forwardRef(function({label:t,ariaLabel:n,isVisible:r,id:o,...i},a){return r?w.createElement(Yp,null,w.createElement(XS,{ref:a,label:t,"aria-label":n,isVisible:r,...i,id:Ao("tooltip",String(o))})):null});YS.displayName="TooltipPopup";var XS=w.forwardRef(function({ariaLabel:t,"aria-label":n,as:r="div",id:o,isVisible:i,label:a,position:s=g4,style:l,triggerRect:u,...c},f){let p=(n||t)!=null,v=w.useRef(null),g=jr(f,v),y=vl(v,{observe:i});return w.createElement(w.Fragment,null,w.createElement(r,{role:p?void 0:"tooltip",...c,ref:g,"data-reach-tooltip":"",id:p?void 0:o,style:{...l,...v4(s,u,y)}},a),p&&w.createElement(GS,{role:"tooltip",id:o},n||t))});XS.displayName="TooltipContent";function v4(e,t,n){return n?e(t,n):{visibility:"hidden"}}var m4=8,g4=(e,t,n=m4)=>{let{width:r,height:o}=s3();if(!e||!t)return{};let i={top:e.top-t.height<0,right:r<e.left+t.width,bottom:o<e.bottom+t.height+n,left:e.left-t.width<0},a=i.right&&!i.left,s=i.bottom&&!i.top;return{left:a?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,top:s?`${e.top-n-t.height+window.pageYOffset}px`:`${e.top+n+e.height+window.pageYOffset}px`}};function y4({disabled:e,isVisible:t,ref:n}){w.useEffect(()=>{if(!(typeof window<"u"&&"PointerEvent"in window)||!e||!t)return;let r=ar(n.current);function o(i){t&&(i.target instanceof Element&&i.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||Vt({type:"GLOBAL_MOUSE_MOVE"}))}return r.addEventListener("mousemove",o),()=>{r.removeEventListener("mousemove",o)}},[e,t,n])}function Vt(e){let{value:t,context:n,changed:r}=w4(Pt,e);r&&(Pt={value:t,context:n},u4())}function w4(e,t){let n=nd.states[e.value],r=n&&n.on&&n.on[t.type];if(!r)return{...e,changed:!1};n&&n.leave&&n.leave(e.context,t);const{type:o,...i}=t;let a={...Pt.context,...i},s=typeof r=="string"?r:r.target,l=nd.states[s];return l&&l.enter&&l.enter(e.context,t),{value:s,context:a,changed:!0}}function vg(e,t){return Pt.context.id===e&&(t?Pt.value==="VISIBLE":Pt.value==="VISIBLE"||Pt.value==="LEAVING_VISIBLE")}function S4(e){let t={};const n={},r={};function o(l="default"){return n[l]=e(l).then(u=>{delete n[l],t[l]=u}).catch(u=>{r[l]=u}),n[l]}function i(l="default"){t[l]!==void 0||n[l]||o(l)}function a(l="default"){if(t[l]!==void 0)return t[l];throw r[l]?r[l]:n[l]?n[l]:o(l)}function s(l){l?delete t[l]:t={}}return{preload:i,read:a,clear:s}}const oh=S4(()=>_n(()=>import("./index-534e085e.js"),[],import.meta.url)),_4="_checkWrapper_1nrct_45",b4="_active_1nrct_51",mg={checkWrapper:_4,active:b4};function E4({theme:e,dispatch:t}){const{t:n}=la(),r=w.useMemo(()=>{switch(e){case"dark":return R(gg,{});case"auto":return R(R4,{});case"light":return R(C4,{});default:return console.assert(!1,"Unknown theme"),R(gg,{})}},[e]),o=w.useCallback(i=>t(uD(i)),[t]);return se(VS,{children:[R(rh,{label:n("switch_theme"),"aria-label":"switch theme",children:R(WS,{children:r})}),se(QS,{children:[R(yc,{value:"auto",label:"Auto",active:e==="auto",onSelect:o}),R(yc,{value:"dark",label:"Dark",active:e==="dark",onSelect:o}),R(yc,{value:"light",label:"Light",active:e==="light",onSelect:o})]})]})}function yc(e){const t=ir(mg.checkWrapper,{[mg.active]:e.active});return se(HS,{onSelect:()=>e.onSelect(e.value),children:[R("span",{className:t,children:R(nI,{size:14})}),R("span",{children:e.label})]})}function gg(){const t=oh.read().motion;return R("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R(t.path,{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z",initial:{rotate:-30},animate:{rotate:0},transition:{duration:.7}})})}function C4(){const t=oh.read().motion;return se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R("circle",{cx:"12",cy:"12",r:"5"}),se(t.g,{initial:{scale:.7},animate:{scale:1},transition:{duration:.5},children:[R("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),R("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),R("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),R("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),R("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),R("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),R("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),R("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})]})}function R4(){const t=oh.read().motion;return se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R("circle",{cx:"12",cy:"12",r:"11"}),R("clipPath",{id:"cut-off-bottom",children:R(t.rect,{x:"12",y:"0",width:"12",height:"24",initial:{rotate:-30},animate:{rotate:0},transition:{duration:.7}})}),R("circle",{cx:"12",cy:"12",r:"6",clipPath:"url(#cut-off-bottom)",fill:"currentColor"})]})}const x4=e=>({theme:Wp(e)}),JS=On(x4)(E4),id=0;class k4 extends Error{constructor(t,n){super(t),this.message=t,this.code=n}}const ad={[id]:{message:"Browser not supported!",detail:'This browser does not support "fetch", please choose another one.'},default:{message:"Oops, something went wrong!"}};function O4(e){const{code:t}=e;return typeof t=="number"?ad[t]:ad.default}const T4="_content_b98hm_1",P4="_container_b98hm_16",N4="_overlay_b98hm_22",L4="_fixed_b98hm_26",os={content:T4,container:P4,overlay:N4,fixed:L4},A4="_overlay_1i06e_1",I4="_content_1i06e_10",yg={overlay:A4,content:I4};function D4({isOpen:e,onRequestClose:t,className:n,overlayClassName:r,children:o,...i}){const a=ir(n,yg.content),s=ir(r,yg.overlay);return R(n1,{isOpen:e,onRequestClose:t,className:a,overlayClassName:s,...i,children:o})}const M4=w.memo(D4),{useCallback:$4,useEffect:U4}=Lt;function F4({dispatch:e,apiConfig:t,modals:n}){if(!window.fetch){const{detail:o}=ad[id];throw new k4(o,id)}const r=$4(()=>{e(XI("apiConfig"))},[e]);return U4(()=>{e(aS(t))},[e,t]),se(M4,{isOpen:n.apiConfig,className:os.content,overlayClassName:os.overlay,shouldCloseOnOverlayClick:!1,shouldCloseOnEsc:!1,onRequestClose:r,children:[R("div",{className:os.container,children:R(ES,{})}),R("div",{className:os.fixed,children:R(JS,{})})]})}const j4=e=>({modals:e.modals,apiConfig:Bo(e)}),z4=On(j4)(F4),B4={hasProcessPath:!1},V4=w.createContext(B4),W4="_root_4m2cd_1",H4="_yacd_4m2cd_14",K4="_link_4m2cd_23",wc={root:W4,yacd:H4,link:K4};function Q4({width:e=24,height:t=24}={}){return R("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"})})}const q4="https://github.com/haishanh/yacd/issues";function G4({message:e,detail:t}){return se("div",{className:wc.root,children:[R("div",{className:wc.yacd,children:R(qp,{width:150,height:150})}),e?R("h1",{children:e}):null,t?R("p",{children:t}):null,R("p",{children:se("a",{className:wc.link,href:q4,children:[R(Q4,{width:16,height:16}),"haishanh/yacd"]})})]})}class Y4 extends w.Component{constructor(){super(...arguments);ch(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}render(){if(this.state.error){const{message:n,detail:r}=O4(this.state.error);return R(G4,{message:n,detail:r})}else return this.props.children}}const X4="_root_4oasi_1",J4="_chart_4oasi_10",wg={root:X4,chart:J4};var ih=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};function Sg(e,t,n,r=0,o=!1){for(const a of t)if(ih(n,a.args)){if(o)return;if(a.error)throw a.error;if(a.response)return a.response;throw a.promise}const i={args:n,promise:e(...n).then(a=>i.response=a??!0).catch(a=>i.error=a??"unknown error").then(()=>{r>0&&setTimeout(()=>{const a=t.indexOf(i);a!==-1&&t.splice(a,1)},r)})};if(t.push(i),!o)throw i.promise}function Z4(e,...t){if(t===void 0||t.length===0)e.splice(0,e.length);else{const n=e.find(r=>ih(t,r.args));if(n){const r=e.indexOf(n);r!==-1&&e.splice(r,1)}}}function e$(e,t=0){const n=[];return{read:(...r)=>Sg(e,n,r,t),preload:(...r)=>void Sg(e,n,r,t,!0),clear:(...r)=>Z4(n,...r),peek:(...r)=>{var o;return(o=n.find(i=>ih(r,i.args)))==null?void 0:o.response}}}const _g=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];function ia(e){if(e<1e3)return e+" B";const t=Math.min(Math.floor(Math.log10(e)/3),_g.length-1);e=Number((e/Math.pow(1e3,t)).toPrecision(3));const n=_g[t];return e+" "+n}const t$=e$(()=>_n(()=>import("./chart-lib-ced68107.js"),[],import.meta.url)),bg={borderWidth:1,pointRadius:0,tension:.2,fill:!0},n$={responsive:!0,maintainAspectRatio:!0,plugins:{legend:{labels:{boxWidth:20}}},scales:{x:{display:!1,type:"category"},y:{type:"linear",display:!0,grid:{display:!0,color:"#555",drawTicks:!1},border:{display:!1,dash:[3,6]},ticks:{callback(e){return ia(e)+"/s "}}}}},Eg=[{down:{backgroundColor:"rgba(176, 209, 132, 0.8)",borderColor:"rgb(176, 209, 132)"},up:{backgroundColor:"rgba(181, 220, 231, 0.8)",borderColor:"rgb(181, 220, 231)"}},{up:{backgroundColor:"rgb(98, 190, 100)",borderColor:"rgb(78,146,79)"},down:{backgroundColor:"rgb(160, 230, 66)",borderColor:"rgb(110, 156, 44)"}},{up:{backgroundColor:"rgba(94, 175, 223, 0.3)",borderColor:"rgb(94, 175, 223)"},down:{backgroundColor:"rgba(139, 227, 195, 0.3)",borderColor:"rgb(139, 227, 195)"}},{up:{backgroundColor:"rgba(242, 174, 62, 0.3)",borderColor:"rgb(242, 174, 62)"},down:{backgroundColor:"rgba(69, 154, 248, 0.3)",borderColor:"rgb(69, 154, 248)"}}],{useEffect:r$}=q;function o$(e,t,n,r,o={}){r$(()=>{const i=document.getElementById(t).getContext("2d"),a={...n$,...o},s=new e(i,{type:"line",data:n,options:a}),l=r&&r.subscribe(()=>s.update());return()=>{l&&l(),s.destroy()}},[e,t,n,r,o])}const{useMemo:i$}=Lt,a$={position:"relative",maxWidth:1e3},s$=e=>({apiConfig:Bo(e),selectedChartStyleIndex:nD(e)}),l$=On(s$)(u$);function u$({apiConfig:e,selectedChartStyleIndex:t}){const n=t$.read(),r=Bp(e),{t:o}=la(),i=i$(()=>({labels:r.labels,datasets:[{...bg,...Eg[t].up,label:o("Up"),data:r.up},{...bg,...Eg[t].down,label:o("Down"),data:r.down}]}),[r,t,o]);return o$(n.Chart,"trafficChart",i,r),R("div",{style:a$,children:R("canvas",{id:"trafficChart"})})}const c$="_TrafficNow_hzna1_1",f$="_sec_hzna1_10",Kr={TrafficNow:c$,sec:f$},{useState:ZS,useEffect:e_,useCallback:d$}=Lt,p$=e=>({apiConfig:Bo(e)}),h$=On(p$)(v$);function v$({apiConfig:e}){const{t}=la(),{upStr:n,downStr:r}=m$(e),{upTotal:o,dlTotal:i,connNumber:a}=g$(e);return se("div",{className:Kr.TrafficNow,children:[se("div",{className:Kr.sec,children:[R("div",{children:t("Upload")}),R("div",{children:n})]}),se("div",{className:Kr.sec,children:[R("div",{children:t("Download")}),R("div",{children:r})]}),se("div",{className:Kr.sec,children:[R("div",{children:t("Upload Total")}),R("div",{children:o})]}),se("div",{className:Kr.sec,children:[R("div",{children:t("Download Total")}),R("div",{children:i})]}),se("div",{className:Kr.sec,children:[R("div",{children:t("Active Connections")}),R("div",{children:a})]})]})}function m$(e){const[t,n]=ZS({upStr:"0 B/s",downStr:"0 B/s"});return e_(()=>Bp(e).subscribe(r=>n({upStr:ia(r.up)+"/s",downStr:ia(r.down)+"/s"})),[e]),t}function g$(e){const[t,n]=ZS({upTotal:"0 B",dlTotal:"0 B",connNumber:0}),r=d$(({downloadTotal:o,uploadTotal:i,connections:a})=>{n({upTotal:ia(i),dlTotal:ia(o),connNumber:a.length})},[n]);return e_(()=>zD(e,r),[e,r]),t}function y$(){const{t:e}=la();return se("div",{children:[R(qw,{title:e("Overview")}),se("div",{className:wg.root,children:[R("div",{children:R(h$,{})}),R("div",{className:wg.chart,children:R(w.Suspense,{fallback:R(cS,{height:"200px"}),children:R(l$,{})})})]})]})}const w$="_lo_pmly2_1",S$={lo:w$};function _$(){return R("div",{className:S$.lo,children:R(qp,{width:280,height:280,animate:!0,c0:"transparent",c1:"#646464"})})}const b$="_app_1s3k7_1",E$="_content_1s3k7_18",t_={app:b$,content:E$};var n_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Cg=q.createContext&&q.createContext(n_),tr=globalThis&&globalThis.__assign||function(){return tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tr.apply(this,arguments)},C$=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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};function r_(e){return e&&e.map(function(t,n){return q.createElement(t.tag,tr({key:n},t.attr),r_(t.child))})}function Wo(e){return function(t){return q.createElement(R$,tr({attr:tr({},e.attr)},t),r_(e.child))}}function R$(e){var t=function(n){var r=e.attr,o=e.size,i=e.title,a=C$(e,["attr","size","title"]),s=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),q.createElement("svg",tr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:tr(tr({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&q.createElement("title",null,i),e.children)};return Cg!==void 0?q.createElement(Cg.Consumer,null,function(n){return t(n)}):t(n_)}function x$(e){return Wo({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#3F51B5",points:"42,37 6,37 6,25 16,10 30,17 42,6"}},{tag:"polygon",attr:{fill:"#00BCD4",points:"42,42 6,42 6,32 16,24 30,26 42,17"}}]})(e)}function k$(e){return Wo({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#90CAF9",points:"40,45 8,45 8,3 30,3 40,13"}},{tag:"polygon",attr:{fill:"#E1F5FE",points:"38.5,14 29,14 29,4.5"}},{tag:"g",attr:{fill:"#1976D2"},child:[{tag:"rect",attr:{x:"16",y:"21",width:"17",height:"2"}},{tag:"rect",attr:{x:"16",y:"25",width:"13",height:"2"}},{tag:"rect",attr:{x:"16",y:"29",width:"17",height:"2"}},{tag:"rect",attr:{x:"16",y:"33",width:"13",height:"2"}}]}]})(e)}function O$(e){return Wo({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#7CB342",d:"M24,4C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4z"}},{tag:"path",attr:{fill:"#0277BD",d:"M45,24c0,11.7-9.5,21-21,21S3,35.7,3,24S12.3,3,24,3S45,12.3,45,24z M23.8,33.7c0-0.4-0.2-0.6-0.6-0.8 c-1.3-0.4-2.5-0.4-3.6-1.5c-0.2-0.4-0.2-0.8-0.4-1.3c-0.4-0.4-1.5-0.6-2.1-0.8c-0.8,0-1.7,0-2.7,0c-0.4,0-1.1,0-1.5,0 c-0.6-0.2-1.1-1.1-1.5-1.7c0-0.2,0-0.6-0.4-0.6c-0.4-0.2-0.8,0.2-1.3,0c-0.2-0.2-0.2-0.4-0.2-0.6c0-0.6,0.4-1.3,0.8-1.7 c0.6-0.4,1.3,0.2,1.9,0.2c0.2,0,0.2,0,0.4,0.2c0.6,0.2,0.8,1,0.8,1.7c0,0.2,0,0.4,0,0.4c0,0.2,0.2,0.2,0.4,0.2 c0.2-1.1,0.2-2.1,0.4-3.2c0-1.3,1.3-2.5,2.3-2.9c0.4-0.2,0.6,0.2,1.1,0c1.3-0.4,4.4-1.7,3.8-3.4c-0.4-1.5-1.7-2.9-3.4-2.7 c-0.4,0.2-0.6,0.4-1,0.6c-0.6,0.4-1.9,1.7-2.5,1.7c-1.1-0.2-1.1-1.7-0.8-2.3c0.2-0.8,2.1-3.6,3.4-3.1c0.2,0.2,0.6,0.6,0.8,0.8 c0.4,0.2,1.1,0.2,1.7,0.2c0.2,0,0.4,0,0.6-0.2c0.2-0.2,0.2-0.2,0.2-0.4c0-0.6-0.6-1.3-1-1.7c-0.4-0.4-1.1-0.8-1.7-1.1 c-2.1-0.6-5.5,0.2-7.1,1.7s-2.9,4-3.8,6.1c-0.4,1.3-0.8,2.9-1,4.4c-0.2,1-0.4,1.9,0.2,2.9c0.6,1.3,1.9,2.5,3.2,3.4 c0.8,0.6,2.5,0.6,3.4,1.7c0.6,0.8,0.4,1.9,0.4,2.9c0,1.3,0.8,2.3,1.3,3.4c0.2,0.6,0.4,1.5,0.6,2.1c0,0.2,0.2,1.5,0.2,1.7 c1.3,0.6,2.3,1.3,3.8,1.7c0.2,0,1-1.3,1-1.5c0.6-0.6,1.1-1.5,1.7-1.9c0.4-0.2,0.8-0.4,1.3-0.8c0.4-0.4,0.6-1.3,0.8-1.9 C23.8,35.1,24,34.3,23.8,33.7z M24.2,14.3c0.2,0,0.4-0.2,0.8-0.4c0.6-0.4,1.3-1.1,1.9-1.5c0.6-0.4,1.3-1.1,1.7-1.5 c0.6-0.4,1.1-1.3,1.3-1.9c0.2-0.4,0.8-1.3,0.6-1.9c-0.2-0.4-1.3-0.6-1.7-0.8c-1.7-0.4-3.1-0.6-4.8-0.6c-0.6,0-1.5,0.2-1.7,0.8 c-0.2,1.1,0.6,0.8,1.5,1.1c0,0,0.2,1.7,0.2,1.9c0.2,1-0.4,1.7-0.4,2.7c0,0.6,0,1.7,0.4,2.1L24.2,14.3z M41.8,29 c0.2-0.4,0.2-1.1,0.4-1.5c0.2-1,0.2-2.1,0.2-3.1c0-2.1-0.2-4.2-0.8-6.1c-0.4-0.6-0.6-1.3-0.8-1.9c-0.4-1.1-1-2.1-1.9-2.9 c-0.8-1.1-1.9-4-3.8-3.1c-0.6,0.2-1,1-1.5,1.5c-0.4,0.6-0.8,1.3-1.3,1.9c-0.2,0.2-0.4,0.6-0.2,0.8c0,0.2,0.2,0.2,0.4,0.2 c0.4,0.2,0.6,0.2,1,0.4c0.2,0,0.4,0.2,0.2,0.4c0,0,0,0.2-0.2,0.2c-1,1.1-2.1,1.9-3.1,2.9c-0.2,0.2-0.4,0.6-0.4,0.8 c0,0.2,0.2,0.2,0.2,0.4c0,0.2-0.2,0.2-0.4,0.4c-0.4,0.2-0.8,0.4-1.1,0.6c-0.2,0.4,0,1.1-0.2,1.5c-0.2,1.1-0.8,1.9-1.3,2.9 c-0.4,0.6-0.6,1.3-1,1.9c0,0.8-0.2,1.5,0.2,2.1c1,1.5,2.9,0.6,4.4,1.3c0.4,0.2,0.8,0.2,1.1,0.6c0.6,0.6,0.6,1.7,0.8,2.3 c0.2,0.8,0.4,1.7,0.8,2.5c0.2,1,0.6,2.1,0.8,2.9c1.9-1.5,3.6-3.1,4.8-5.2C40.6,32.4,41.2,30.7,41.8,29z"}}]})(e)}function T$(e){return Wo({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"g",attr:{fill:"#1976D2"},child:[{tag:"path",attr:{d:"M38,13h-3c-5.5,0-10,4.5-10,10s4.5,10,10,10h3c5.5,0,10-4.5,10-10S43.5,13,38,13z M38,29h-3 c-3.3,0-6-2.7-6-6s2.7-6,6-6h3c3.3,0,6,2.7,6,6S41.3,29,38,29z"}},{tag:"path",attr:{d:"M13,13h-3C4.5,13,0,17.5,0,23s4.5,10,10,10h3c5.5,0,10-4.5,10-10S18.5,13,13,13z M13,29h-3 c-3.3,0-6-2.7-6-6s2.7-6,6-6h3c3.3,0,6,2.7,6,6S16.3,29,13,29z"}}]},{tag:"path",attr:{fill:"#42A5F5",d:"M33,21H15c-1.1,0-2,0.9-2,2s0.9,2,2,2h18c1.1,0,2-0.9,2-2S34.1,21,33,21z"}}]})(e)}function P$(e){return Wo({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"rect",attr:{x:"16.7",y:"1.6",transform:"matrix(-.707 -.707 .707 -.707 24 57.941)",fill:"#FFA000",width:"14.6",height:"44.8"}},{tag:"g",attr:{fill:"#9E6400"},child:[{tag:"rect",attr:{x:"17.9",y:"20.2",transform:"matrix(-.707 -.707 .707 -.707 21.177 51.125)",width:"6.6",height:"2"}},{tag:"rect",attr:{x:"22.3",y:"15.2",transform:"matrix(-.707 -.707 .707 -.707 29.833 44.71)",width:"3.7",height:"2"}},{tag:"rect",attr:{x:"25.9",y:"12.2",transform:"matrix(-.707 -.707 .707 -.707 40.49 43.125)",width:"6.6",height:"2"}},{tag:"rect",attr:{x:"31.2",y:"6.3",transform:"matrix(.707 -.707 .707 .707 3.643 25.147)",width:"2",height:"3.7"}},{tag:"rect",attr:{x:"6.3",y:"31.2",transform:"matrix(-.707 -.707 .707 -.707 -8.794 60.71)",width:"3.7",height:"2"}},{tag:"rect",attr:{x:"9.9",y:"28.2",transform:"matrix(-.707 -.707 .707 -.707 1.863 59.125)",width:"6.6",height:"2"}},{tag:"rect",attr:{x:"14.3",y:"23.2",transform:"matrix(-.707 -.707 .707 -.707 10.52 52.71)",width:"3.7",height:"2"}}]}]})(e)}function N$(e){return Wo({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#607D8B",d:"M39.6,27.2c0.1-0.7,0.2-1.4,0.2-2.2s-0.1-1.5-0.2-2.2l4.5-3.2c0.4-0.3,0.6-0.9,0.3-1.4L40,10.8 c-0.3-0.5-0.8-0.7-1.3-0.4l-5,2.3c-1.2-0.9-2.4-1.6-3.8-2.2l-0.5-5.5c-0.1-0.5-0.5-0.9-1-0.9h-8.6c-0.5,0-1,0.4-1,0.9l-0.5,5.5 c-1.4,0.6-2.7,1.3-3.8,2.2l-5-2.3c-0.5-0.2-1.1,0-1.3,0.4l-4.3,7.4c-0.3,0.5-0.1,1.1,0.3,1.4l4.5,3.2c-0.1,0.7-0.2,1.4-0.2,2.2 s0.1,1.5,0.2,2.2L4,30.4c-0.4,0.3-0.6,0.9-0.3,1.4L8,39.2c0.3,0.5,0.8,0.7,1.3,0.4l5-2.3c1.2,0.9,2.4,1.6,3.8,2.2l0.5,5.5 c0.1,0.5,0.5,0.9,1,0.9h8.6c0.5,0,1-0.4,1-0.9l0.5-5.5c1.4-0.6,2.7-1.3,3.8-2.2l5,2.3c0.5,0.2,1.1,0,1.3-0.4l4.3-7.4 c0.3-0.5,0.1-1.1-0.3-1.4L39.6,27.2z M24,35c-5.5,0-10-4.5-10-10c0-5.5,4.5-10,10-10c5.5,0,10,4.5,10,10C34,30.5,29.5,35,24,35z"}},{tag:"path",attr:{fill:"#455A64",d:"M24,13c-6.6,0-12,5.4-12,12c0,6.6,5.4,12,12,12s12-5.4,12-12C36,18.4,30.6,13,24,13z M24,30 c-2.8,0-5-2.2-5-5c0-2.8,2.2-5,5-5s5,2.2,5,5C29,27.8,26.8,30,24,30z"}}]})(e)}const L$="_root_r8ke8_1",A$="_logoPlaceholder_r8ke8_12",I$="_rows_r8ke8_21",D$="_row_r8ke8_21",M$="_rowActive_r8ke8_68",$$="_label_r8ke8_80",U$="_footer_r8ke8_97",F$="_iconWrapper_r8ke8_108",Fn={root:L$,logoPlaceholder:A$,rows:I$,row:D$,rowActive:M$,label:$$,footer:U$,iconWrapper:F$},j$={activity:x$,globe:O$,command:P$,file:k$,settings:N$,link:T$},z$=w.memo(function({isActive:t,to:n,iconId:r,labelText:o}){const i=j$[r],a=ir(Fn.row,t?Fn.rowActive:null);return se(C1,{to:n,className:a,children:[R(i,{}),R("div",{className:Fn.label,children:o})]})}),B$=[{to:"/",iconId:"activity",labelText:"Overview"},{to:"/proxies",iconId:"globe",labelText:"Proxies"},{to:"/rules",iconId:"command",labelText:"Rules"},{to:"/connections",iconId:"link",labelText:"Conns"},{to:"/configs",iconId:"settings",labelText:"Config"},{to:"/logs",iconId:"file",labelText:"Logs"}];function V$(){const{t:e}=la(),t=ya();return se("div",{className:Fn.root,children:[R("div",{className:Fn.logoPlaceholder}),R("div",{className:Fn.rows,children:B$.map(({to:n,iconId:r,labelText:o})=>R(z$,{to:n,isActive:t.pathname===n,iconId:r,labelText:e(o)},n))}),se("div",{className:Fn.footer,children:[R(JS,{}),R(rh,{label:e("about"),children:R(C1,{to:"/about",className:Fn.iconWrapper,children:R(hI,{size:20})})})]})]})}const W$="_input_mh4af_1",zU={input:W$},H$="_animate_1w0e8_1",BU={animate:H$,"zap-pulse":"_zap-pulse_1w0e8_1"};function sd(){return sd=Object.assign?Object.assign.bind():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},sd.apply(this,arguments)}var K$=q.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},q.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),Q$=q.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},q.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function Rg(e){if(e.length===7)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function xg(e,t,n,r,o){return function(i,a,s,l,u){var c=(i-s)/(a-s);if(c===0)return l;if(c===1)return u;for(var f="#",p=1;p<6;p+=2){var v=parseInt(l.substr(p,2),16),g=parseInt(u.substr(p,2),16),y=Math.round((1-c)*v+c*g).toString(16);y.length===1&&(y="0"+y),f+=y}return f}(e,t,n,Rg(r),Rg(o))}var bs=function(e){function t(n){e.call(this,n);var r=n.height,o=n.width,i=n.checked;this.t=n.handleDiameter||r-2,this.i=Math.max(o-r,o-(r+this.t)/2),this.o=Math.max(0,(r-this.t)/2),this.state={h:i?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.m=this.m.bind(this),this.M=this.M.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.componentDidMount=function(){this.W=!0},t.prototype.componentDidUpdate=function(n){n.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},t.prototype.componentWillUnmount=function(){this.W=!1},t.prototype.I=function(n){this.H.focus(),this.setState({R:n,j:!0,B:Date.now()})},t.prototype.L=function(n){var r=this.state,o=r.R,i=r.h,a=(this.props.checked?this.i:this.o)+n-o;r.N||n===o||this.setState({N:!0});var s=Math.min(this.i,Math.max(this.o,a));s!==i&&this.setState({h:s})},t.prototype.U=function(n){var r=this.state,o=r.h,i=r.N,a=r.B,s=this.props.checked,l=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var u=Date.now()-a;(!i||u<250||s&&o<=l||!s&&o>=l)&&this.A(n),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(n){n.preventDefault(),typeof n.button=="number"&&n.button!==0||(this.I(n.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(n){n.preventDefault(),this.L(n.clientX)},t.prototype.g=function(n){this.U(n),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(n){this.X=null,this.I(n.touches[0].clientX)},t.prototype.m=function(n){this.L(n.touches[0].clientX)},t.prototype.M=function(n){n.preventDefault(),this.U(n)},t.prototype.$=function(n){Date.now()-this.l>50&&(this.A(n),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(n){this.H=n},t.prototype.T=function(n){n.preventDefault(),this.H.focus(),this.A(n),this.W&&this.setState({j:!1})},t.prototype.A=function(n){var r=this.props;(0,r.onChange)(!r.checked,n,r.id)},t.prototype.render=function(){var n=this.props,r=n.checked,o=n.disabled,i=n.className,a=n.offColor,s=n.onColor,l=n.offHandleColor,u=n.onHandleColor,c=n.checkedIcon,f=n.uncheckedIcon,p=n.checkedHandleIcon,v=n.uncheckedHandleIcon,g=n.boxShadow,y=n.activeBoxShadow,S=n.height,h=n.width,d=n.borderRadius,m=function(j,X){var O={};for(var P in j)Object.prototype.hasOwnProperty.call(j,P)&&X.indexOf(P)===-1&&(O[P]=j[P]);return O}(n,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),_=this.state,x=_.h,C=_.N,T=_.j,N={position:"relative",display:"inline-block",textAlign:"left",opacity:o?.5:1,direction:"ltr",borderRadius:S/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},W={height:S,width:h,margin:Math.max(0,(this.t-S)/2),position:"relative",background:xg(x,this.i,this.o,a,s),borderRadius:typeof d=="number"?d:S/2,cursor:o?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},M={height:S,width:Math.min(1.5*S,h-(this.t+S)/2+1),position:"relative",opacity:(x-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},ee={height:S,width:Math.min(1.5*S,h-(this.t+S)/2+1),position:"absolute",opacity:1-(x-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},pe={height:this.t,width:this.t,background:xg(x,this.i,this.o,l,u),display:"inline-block",cursor:o?"default":"pointer",borderRadius:typeof d=="number"?d-1:"50%",position:"absolute",transform:"translateX("+x+"px)",top:Math.max(0,(S-this.t)/2),outline:0,boxShadow:T?y:g,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},ue={height:this.t,width:this.t,opacity:Math.max(2*(1-(x-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},K={height:this.t,width:this.t,opacity:Math.max(2*((x-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return q.createElement("div",{className:i,style:N},q.createElement("div",{className:"react-switch-bg",style:W,onClick:o?null:this.T,onMouseDown:function(j){return j.preventDefault()}},c&&q.createElement("div",{style:M},c),f&&q.createElement("div",{style:ee},f)),q.createElement("div",{className:"react-switch-handle",style:pe,onClick:function(j){return j.preventDefault()},onMouseDown:o?null:this.p,onTouchStart:o?null:this.k,onTouchMove:o?null:this.m,onTouchEnd:o?null:this.M,onTouchCancel:o?null:this.O},v&&q.createElement("div",{style:ue},v),p&&q.createElement("div",{style:K},p)),q.createElement("input",sd({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:o,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},m,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(w.Component);bs.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:K$,checkedIcon:Q$,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56};const q$=bs.default?bs.default:bs;function G$({checked:e=!1,onChange:t,theme:n,name:r}){return R(q$,{onChange:t,checked:e,uncheckedIcon:!1,checkedIcon:!1,offColor:n==="dark"?"#393939":"#e9e9e9",onColor:"#047aff",offHandleColor:"#fff",onHandleColor:"#fff",handleDiameter:24,height:28,width:44,className:"rs",name:r})}const VU=On(e=>({theme:Wp(e)}))(G$),Y$="_ToggleSwitch_10mtp_1",X$="_slider_10mtp_28",kg={ToggleSwitch:Y$,slider:X$};function J$({options:e,value:t,name:n,onChange:r}){const o=w.useMemo(()=>e.map(s=>s.value).indexOf(t),[e,t]),i=w.useCallback(s=>{const l=Math.floor(100/e.length);if(s===e.length-1)return 100-e.length*l+l;if(s>-1)return l},[e]),a=w.useMemo(()=>({width:i(o)+"%",left:o*i(0)+"%"}),[o,i]);return se("div",{className:kg.ToggleSwitch,children:[R("div",{className:kg.slider,style:a}),e.map((s,l)=>{const u=`${n}-${s.label}`;return se("label",{htmlFor:u,className:l===0?"":"border-left",style:{width:i(l)+"%"},children:[R("input",{id:u,name:n,type:"radio",value:s.value,checked:t===s.value,onChange:r}),R("div",{children:s.label})]},u)})]})}q.memo(J$);const{lazy:ka,Suspense:o_}=Lt,Z$=ka(()=>_n(()=>import("./Connections-2c1d9d67.js"),["./Connections-2c1d9d67.js","./useRemainingViewPortHeight-175c2a6c.js","./chevron-down-fcc32a65.js","./index-2a3ca6b4.js","./Fab-169bb281.js","./Fab-a0a7e573.css","./play-30aef65c.js","./Connections-fb8ea59b.css"],import.meta.url)),eU=ka(()=>_n(()=>import("./Config-b8a90983.js"),["./Config-b8a90983.js","./logs-08774dd8.js","./Select-4fa356cc.js","./Select-1e55eba1.css","./Config-35023b66.css"],import.meta.url)),tU=ka(()=>_n(()=>import("./Logs-ad267e02.js"),["./Logs-ad267e02.js","./index.esm-37f2c08f.js","./logs-08774dd8.js","./debounce-c1ba2006.js","./useRemainingViewPortHeight-175c2a6c.js","./Fab-169bb281.js","./Fab-a0a7e573.css","./play-30aef65c.js","./Logs-4b8e75d1.css"],import.meta.url)),nU=ka(()=>_n(()=>import("./Proxies-869a8128.js"),["./Proxies-869a8128.js","./chevron-down-fcc32a65.js","./Fab-169bb281.js","./Fab-a0a7e573.css","./TextFitler-4f121c73.js","./debounce-c1ba2006.js","./TextFitler-b21c0577.css","./index-2a3ca6b4.js","./Select-4fa356cc.js","./Select-1e55eba1.css","./Proxies-bee4beaa.css"],import.meta.url)),rU=ka(()=>_n(()=>import("./Rules-6bba7454.js"),["./Rules-6bba7454.js","./index.esm-37f2c08f.js","./TextFitler-4f121c73.js","./debounce-c1ba2006.js","./TextFitler-b21c0577.css","./index-2a3ca6b4.js","./Fab-169bb281.js","./Fab-a0a7e573.css","./useRemainingViewPortHeight-175c2a6c.js","./Rules-e11cb70e.css"],import.meta.url)),oU=[{path:"/",element:R(y$,{})},{path:"/connections",element:R(V4.Provider,{value:{hasProcessPath:!1},children:R(Z$,{})})},{path:"/configs",element:R(eU,{})},{path:"/logs",element:R(tU,{})},{path:"/proxies",element:R(nU,{})},{path:"/rules",element:R(rU,{})},{path:"/about",element:R(_D,{})},!1].filter(Boolean);function iU(){return E1(oU)}function aU(){return se(wn,{children:[R(z4,{}),R(V$,{}),R("div",{className:t_.content,children:R(o_,{fallback:R(_$,{}),children:R(iU,{})})})]})}function sU(){return E1([{path:"/backend",element:R(ES,{})},{path:"*",element:R(aU,{})}])}const lU=()=>R(Y4,{children:R(JA,{children:R(WI,{initialState:lM,actions:uM,children:R(q2,{client:TD,children:R(lk,{children:se("div",{className:t_.app,children:[R(kD,{}),R(o_,{fallback:R(cS,{}),children:R(sU,{})})]})})})})})}),uU=Boolean(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function cU(e){if("serviceWorker"in navigator){if(new URL("",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n="/sw.js";uU?(fU(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker")})):i_(n,e)})}}function i_(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function fU(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(o=>{o.unregister().then(()=>{window.location.reload()})}):i_(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}pU();const a_=document.getElementById("app"),dU=Q0(a_);function Sc(e){const t=document.createElement("link");t.href=e,t.rel="preload",t.as="font",t.crossOrigin="",document.head.appendChild(t)}function pU(){Sc(eE),Sc(tE),Sc(nE)}n1.setAppElement(a_);dU.render(R(w.StrictMode,{children:R(lU,{})}));cU();console.log("Checkout the repo: https://github.com/haishanh/yacd");console.log("Version:","0.3.8");console.log("Commit hash:","8337591");export{mS as $,nD as A,KM as B,qw as C,lS as D,wU as E,wn as F,_t as G,yU as H,gI as I,UD as J,OU as K,TU as L,V4 as M,kU as N,_U as O,xU as P,Hn as Q,q as R,qp as S,BU as T,jU as U,gU as V,UU as W,GD as X,h4 as Y,YS as Z,_c as _,vU as a,so as a0,MU as a1,FU as a2,rh as a3,EU as a4,CU as a5,RU as a6,AU as a7,IU as a8,$U as a9,DU as aa,oh as ab,rD as ac,Vo as ad,NU as ae,YD as af,LU as ag,va as ah,am as ai,T2 as aj,Ie as ak,mU as al,Q2 as am,K2 as an,Z2 as ao,ZA as ap,lx as aq,se as b,ir as c,n1 as d,On as e,PU as f,zD as g,Bo as h,Lt as i,R as j,ge as k,t$ as l,yg as m,bg as n,Eg as o,ia as p,o$ as q,w as r,zU as s,SU as t,la as u,aS as v,eg as w,bU as x,VI as y,VU as z};
|